]> git.sur5r.net Git - openldap/blob - configure
Merge remote-tracking branch 'origin/mdb.master'
[openldap] / configure
1 #! /bin/sh
2 # From configure.in Id: 24b557375703efe20373a424f6f186bd237f286e .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68.
5 #
6 # Copyright 1998-2014 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 #
10 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
12 # Foundation, Inc.
13 #
14 #
15 # This configure script is free software; the Free Software Foundation
16 # gives unlimited permission to copy, distribute and modify it.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24   emulate sh
25   NULLCMD=:
26   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27   # is contrary to our usage.  Disable this feature.
28   alias -g '${1+"$@"}'='"$@"'
29   setopt NO_GLOB_SUBST
30 else
31   case `(set -o) 2>/dev/null` in #(
32   *posix*) :
33     set -o posix ;; #(
34   *) :
35      ;;
36 esac
37 fi
38
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='print -r --'
52   as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54   as_echo='printf %s\n'
55   as_echo_n='printf %s'
56 else
57   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59     as_echo_n='/usr/ucb/echo -n'
60   else
61     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62     as_echo_n_body='eval
63       arg=$1;
64       case $arg in #(
65       *"$as_nl"*)
66         expr "X$arg" : "X\\(.*\\)$as_nl";
67         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68       esac;
69       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70     '
71     export as_echo_n_body
72     as_echo_n='sh -c $as_echo_n_body as_echo'
73   fi
74   export as_echo_body
75   as_echo='sh -c $as_echo_body as_echo'
76 fi
77
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80   PATH_SEPARATOR=:
81   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83       PATH_SEPARATOR=';'
84   }
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order.  Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" ""        $as_nl"
94
95 # Find who we are.  Look in the path if we contain no directory separator.
96 as_myself=
97 case $0 in #((
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105   done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   exit 1
118 fi
119
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there.  '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # CDPATH.
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
141 if test "x$CONFIG_SHELL" = x; then
142   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143   emulate sh
144   NULLCMD=:
145   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146   # is contrary to our usage.  Disable this feature.
147   alias -g '\${1+\"\$@\"}'='\"\$@\"'
148   setopt NO_GLOB_SUBST
149 else
150   case \`(set -o) 2>/dev/null\` in #(
151   *posix*) :
152     set -o posix ;; #(
153   *) :
154      ;;
155 esac
156 fi
157 "
158   as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
163
164 exitcode=0
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
171 else
172   exitcode=1; echo positional parameters were not saved.
173 fi
174 test x\$exitcode = x0 || exit 1"
175   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180   if (eval "$as_required") 2>/dev/null; then :
181   as_have_required=yes
182 else
183   as_have_required=no
184 fi
185   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186
187 else
188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 as_found=false
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 do
192   IFS=$as_save_IFS
193   test -z "$as_dir" && as_dir=.
194   as_found=:
195   case $as_dir in #(
196          /*)
197            for as_base in sh bash ksh sh5; do
198              # Try only shells that exist, to save several forks.
199              as_shell=$as_dir/$as_base
200              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   CONFIG_SHELL=$as_shell as_have_required=yes
203                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204   break 2
205 fi
206 fi
207            done;;
208        esac
209   as_found=false
210 done
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213   CONFIG_SHELL=$SHELL as_have_required=yes
214 fi; }
215 IFS=$as_save_IFS
216
217
218       if test "x$CONFIG_SHELL" != x; then :
219   # We cannot yet assume a decent shell, so we have to provide a
220         # neutralization value for shells without unset; and this also
221         # works around shells that cannot unset nonexistent variables.
222         # Preserve -v and -x to the replacement shell.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         case $- in # ((((
228           *v*x* | *x*v* ) as_opts=-vx ;;
229           *v* ) as_opts=-v ;;
230           *x* ) as_opts=-x ;;
231           * ) as_opts= ;;
232         esac
233         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 fi
235
236     if test x$as_have_required = xno; then :
237   $as_echo "$0: This script requires a shell more modern than all"
238   $as_echo "$0: the shells that I found on your system."
239   if test x${ZSH_VERSION+set} = xset ; then
240     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
241     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242   else
243     $as_echo "$0: Please tell bug-autoconf@gnu.org and
244 $0: <http://www.openldap.org/its/> about your system,
245 $0: including any error possibly output before this
246 $0: message. Then install a modern shell, or manually run
247 $0: the script under such a shell if you do have one."
248   fi
249   exit 1
250 fi
251 fi
252 fi
253 SHELL=${CONFIG_SHELL-/bin/sh}
254 export SHELL
255 # Unset more variables known to interfere with behavior of common tools.
256 CLICOLOR_FORCE= GREP_OPTIONS=
257 unset CLICOLOR_FORCE GREP_OPTIONS
258
259 ## --------------------- ##
260 ## M4sh Shell Functions. ##
261 ## --------------------- ##
262 # as_fn_unset VAR
263 # ---------------
264 # Portably unset VAR.
265 as_fn_unset ()
266 {
267   { eval $1=; unset $1;}
268 }
269 as_unset=as_fn_unset
270
271 # as_fn_set_status STATUS
272 # -----------------------
273 # Set $? to STATUS, without forking.
274 as_fn_set_status ()
275 {
276   return $1
277 } # as_fn_set_status
278
279 # as_fn_exit STATUS
280 # -----------------
281 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 as_fn_exit ()
283 {
284   set +e
285   as_fn_set_status $1
286   exit $1
287 } # as_fn_exit
288
289 # as_fn_mkdir_p
290 # -------------
291 # Create "$as_dir" as a directory, including parents if necessary.
292 as_fn_mkdir_p ()
293 {
294
295   case $as_dir in #(
296   -*) as_dir=./$as_dir;;
297   esac
298   test -d "$as_dir" || eval $as_mkdir_p || {
299     as_dirs=
300     while :; do
301       case $as_dir in #(
302       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303       *) as_qdir=$as_dir;;
304       esac
305       as_dirs="'$as_qdir' $as_dirs"
306       as_dir=`$as_dirname -- "$as_dir" ||
307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
308          X"$as_dir" : 'X\(//\)[^/]' \| \
309          X"$as_dir" : 'X\(//\)$' \| \
310          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
311 $as_echo X"$as_dir" |
312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
313             s//\1/
314             q
315           }
316           /^X\(\/\/\)[^/].*/{
317             s//\1/
318             q
319           }
320           /^X\(\/\/\)$/{
321             s//\1/
322             q
323           }
324           /^X\(\/\).*/{
325             s//\1/
326             q
327           }
328           s/.*/./; q'`
329       test -d "$as_dir" && break
330     done
331     test -z "$as_dirs" || eval "mkdir $as_dirs"
332   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333
334
335 } # as_fn_mkdir_p
336 # as_fn_append VAR VALUE
337 # ----------------------
338 # Append the text in VALUE to the end of the definition contained in VAR. Take
339 # advantage of any shell optimizations that allow amortized linear growth over
340 # repeated appends, instead of the typical quadratic growth present in naive
341 # implementations.
342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
343   eval 'as_fn_append ()
344   {
345     eval $1+=\$2
346   }'
347 else
348   as_fn_append ()
349   {
350     eval $1=\$$1\$2
351   }
352 fi # as_fn_append
353
354 # as_fn_arith ARG...
355 # ------------------
356 # Perform arithmetic evaluation on the ARGs, and store the result in the
357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
358 # must be portable across $(()) and expr.
359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360   eval 'as_fn_arith ()
361   {
362     as_val=$(( $* ))
363   }'
364 else
365   as_fn_arith ()
366   {
367     as_val=`expr "$@" || test $? -eq 1`
368   }
369 fi # as_fn_arith
370
371
372 # as_fn_error STATUS ERROR [LINENO LOG_FD]
373 # ----------------------------------------
374 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
375 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
376 # script with STATUS, using 1 if that was 0.
377 as_fn_error ()
378 {
379   as_status=$1; test $as_status -eq 0 && as_status=1
380   if test "$4"; then
381     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
382     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383   fi
384   $as_echo "$as_me: error: $2" >&2
385   as_fn_exit $as_status
386 } # as_fn_error
387
388 if expr a : '\(a\)' >/dev/null 2>&1 &&
389    test "X`expr 00001 : '.*\(...\)'`" = X001; then
390   as_expr=expr
391 else
392   as_expr=false
393 fi
394
395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396   as_basename=basename
397 else
398   as_basename=false
399 fi
400
401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402   as_dirname=dirname
403 else
404   as_dirname=false
405 fi
406
407 as_me=`$as_basename -- "$0" ||
408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
409          X"$0" : 'X\(//\)$' \| \
410          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 $as_echo X/"$0" |
412     sed '/^.*\/\([^/][^/]*\)\/*$/{
413             s//\1/
414             q
415           }
416           /^X\/\(\/\/\)$/{
417             s//\1/
418             q
419           }
420           /^X\/\(\/\).*/{
421             s//\1/
422             q
423           }
424           s/.*/./; q'`
425
426 # Avoid depending upon Character Ranges.
427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
430 as_cr_digits='0123456789'
431 as_cr_alnum=$as_cr_Letters$as_cr_digits
432
433
434   as_lineno_1=$LINENO as_lineno_1a=$LINENO
435   as_lineno_2=$LINENO as_lineno_2a=$LINENO
436   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
437   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
438   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465 ECHO_C= ECHO_N= ECHO_T=
466 case `echo -n x` in #(((((
467 -n*)
468   case `echo 'xy\c'` in
469   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
470   xy)  ECHO_C='\c';;
471   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
472        ECHO_T=' ';;
473   esac;;
474 *)
475   ECHO_N='-n';;
476 esac
477
478 rm -f conf$$ conf$$.exe conf$$.file
479 if test -d conf$$.dir; then
480   rm -f conf$$.dir/conf$$.file
481 else
482   rm -f conf$$.dir
483   mkdir conf$$.dir 2>/dev/null
484 fi
485 if (echo >conf$$.file) 2>/dev/null; then
486   if ln -s conf$$.file conf$$ 2>/dev/null; then
487     as_ln_s='ln -s'
488     # ... but there are two gotchas:
489     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
490     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
491     # In both cases, we have to default to `cp -p'.
492     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493       as_ln_s='cp -p'
494   elif ln conf$$.file conf$$ 2>/dev/null; then
495     as_ln_s=ln
496   else
497     as_ln_s='cp -p'
498   fi
499 else
500   as_ln_s='cp -p'
501 fi
502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
503 rmdir conf$$.dir 2>/dev/null
504
505 if mkdir -p . 2>/dev/null; then
506   as_mkdir_p='mkdir -p "$as_dir"'
507 else
508   test -d ./-p && rmdir ./-p
509   as_mkdir_p=false
510 fi
511
512 if test -x / >/dev/null 2>&1; then
513   as_test_x='test -x'
514 else
515   if ls -dL / >/dev/null 2>&1; then
516     as_ls_L_option=L
517   else
518     as_ls_L_option=
519   fi
520   as_test_x='
521     eval sh -c '\''
522       if test -d "$1"; then
523         test -d "$1/.";
524       else
525         case $1 in #(
526         -*)set "./$1";;
527         esac;
528         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
529         ???[sx]*):;;*)false;;esac;fi
530     '\'' sh
531   '
532 fi
533 as_executable_p=$as_test_x
534
535 # Sed expression to map a string onto a valid CPP name.
536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537
538 # Sed expression to map a string onto a valid variable name.
539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540
541
542
543 # Check that we are running under the correct shell.
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546 case X$ECHO in
547 X*--fallback-echo)
548   # Remove one level of quotation (which was required for Make).
549   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550   ;;
551 esac
552
553 echo=${ECHO-echo}
554 if test "X$1" = X--no-reexec; then
555   # Discard the --no-reexec flag, and continue.
556   shift
557 elif test "X$1" = X--fallback-echo; then
558   # Avoid inline document here, it may be left over
559   :
560 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
561   # Yippee, $echo works!
562   :
563 else
564   # Restart under the correct shell.
565   exec $SHELL "$0" --no-reexec ${1+"$@"}
566 fi
567
568 if test "X$1" = X--fallback-echo; then
569   # used as fallback echo
570   shift
571   cat <<EOF
572 $*
573 EOF
574   exit 0
575 fi
576
577 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 # if CDPATH is set.
579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580
581 if test -z "$ECHO"; then
582 if test "X${echo_test_string+set}" != Xset; then
583 # find a string as large as possible, as long as the shell can cope with it
584   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
585     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
586     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
587        echo_test_string=`eval $cmd` &&
588        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
589     then
590       break
591     fi
592   done
593 fi
594
595 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
596    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
597    test "X$echo_testing_string" = "X$echo_test_string"; then
598   :
599 else
600   # The Solaris, AIX, and Digital Unix default echo programs unquote
601   # backslashes.  This makes it impossible to quote backslashes using
602   #   echo "$something" | sed 's/\\/\\\\/g'
603   #
604   # So, first we look for a working echo in the user's PATH.
605
606   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
607   for dir in $PATH /usr/ucb; do
608     IFS="$lt_save_ifs"
609     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
610        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
611        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
612        test "X$echo_testing_string" = "X$echo_test_string"; then
613       echo="$dir/echo"
614       break
615     fi
616   done
617   IFS="$lt_save_ifs"
618
619   if test "X$echo" = Xecho; then
620     # We didn't find a better echo, so look for alternatives.
621     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       # This shell has a builtin print -r that does the trick.
625       echo='print -r'
626     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
627          test "X$CONFIG_SHELL" != X/bin/ksh; then
628       # If we have ksh, try running configure again with it.
629       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
630       export ORIGINAL_CONFIG_SHELL
631       CONFIG_SHELL=/bin/ksh
632       export CONFIG_SHELL
633       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634     else
635       # Try using printf.
636       echo='printf %s\n'
637       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
638          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
639          test "X$echo_testing_string" = "X$echo_test_string"; then
640         # Cool, printf works
641         :
642       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643            test "X$echo_testing_string" = 'X\t' &&
644            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645            test "X$echo_testing_string" = "X$echo_test_string"; then
646         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647         export CONFIG_SHELL
648         SHELL="$CONFIG_SHELL"
649         export SHELL
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652            test "X$echo_testing_string" = 'X\t' &&
653            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654            test "X$echo_testing_string" = "X$echo_test_string"; then
655         echo="$CONFIG_SHELL $0 --fallback-echo"
656       else
657         # maybe with a smaller string...
658         prev=:
659
660         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
661           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
662           then
663             break
664           fi
665           prev="$cmd"
666         done
667
668         if test "$prev" != 'sed 50q "$0"'; then
669           echo_test_string=`eval $prev`
670           export echo_test_string
671           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672         else
673           # Oops.  We lost completely, so just stick with echo.
674           echo=echo
675         fi
676       fi
677     fi
678   fi
679 fi
680 fi
681
682 # Copy echo and quote the copy suitably for passing to libtool from
683 # the Makefile, instead of quoting the original, which is used later.
684 ECHO=$echo
685 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
686    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 fi
688
689
690
691
692 test -n "$DJDIR" || exec 7<&0 </dev/null
693 exec 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711
712 # Identity of this package.
713 PACKAGE_NAME=
714 PACKAGE_TARNAME=
715 PACKAGE_VERSION=
716 PACKAGE_STRING=
717 PACKAGE_BUGREPORT=
718 PACKAGE_URL=
719
720 ac_unique_file="OpenLDAP"
721 ac_unique_file="build/version.sh"
722 ac_default_prefix=/usr/local
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #ifdef HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #ifdef HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #ifdef STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # ifdef HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #ifdef HAVE_STRING_H
741 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #ifdef HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #ifdef HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #ifdef HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #ifdef HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='LTLIBOBJS
760 SLAPD_SQL_INCLUDES
761 SLAPD_SQL_LIBS
762 SLAPD_SQL_LDFLAGS
763 SLAPD_GMP_LIBS
764 SLAPD_SLP_LIBS
765 ICU_LIBS
766 AUTH_LIBS
767 LIBSLAPI
768 SLAPI_LIBS
769 MODULES_LIBS
770 TLS_LIBS
771 SASL_LIBS
772 KRB5_LIBS
773 KRB4_LIBS
774 MOD_PERL_LDFLAGS
775 SLAPD_PERL_LDFLAGS
776 PERL_CPPFLAGS
777 SLAPD_DYNAMIC_OVERLAYS
778 SLAPD_STATIC_OVERLAYS
779 SLAPD_DYNAMIC_BACKENDS
780 SLAPD_STATIC_BACKENDS
781 SLAPD_NO_STATIC
782 SLAPD_MODULES_LDFLAGS
783 SLAPD_MODULES_CPPFLAGS
784 WRAP_LIBS
785 LUTIL_LIBS
786 LTHREAD_LIBS
787 SLAPD_NDB_INCS
788 SLAPD_NDB_LIBS
789 BDB_LIBS
790 SLAPD_LIBS
791 LDAP_LIBS
792 BUILD_VALSORT
793 BUILD_UNIQUE
794 BUILD_TRANSLUCENT
795 BUILD_SYNCPROV
796 BUILD_SSSVLV
797 BUILD_SEQMOD
798 BUILD_RWM
799 BUILD_RETCODE
800 BUILD_REFINT
801 BUILD_PROXYCACHE
802 BUILD_PPOLICY
803 BUILD_MEMBEROF
804 BUILD_LASTMOD
805 BUILD_DYNLIST
806 BUILD_DYNGROUP
807 BUILD_DEREF
808 BUILD_DENYOP
809 BUILD_DDS
810 BUILD_CONSTRAINT
811 BUILD_COLLECT
812 BUILD_AUDITLOG
813 BUILD_ACCESSLOG
814 BUILD_SQL
815 BUILD_SOCK
816 BUILD_SHELL
817 BUILD_PERL
818 BUILD_RELAY
819 BUILD_PASSWD
820 BUILD_NULL
821 BUILD_NDB
822 BUILD_MONITOR
823 BUILD_META
824 BUILD_MDB
825 BUILD_LDAP
826 BUILD_HDB
827 BUILD_DNSSRV
828 BUILD_BDB
829 SLAPD_SLAPI_DEPEND
830 BUILD_SLAPI
831 BUILD_SLAPD
832 BUILD_LIBS_DYNAMIC
833 BUILD_THREAD
834 WITH_ACI_ENABLED
835 WITH_MODULES_ENABLED
836 WITH_TLS
837 WITH_SASL
838 PLAT
839 LIBSRCS
840 LIBOBJS
841 MYSQL
842 LTSTATIC
843 OL_MKDEP_FLAGS
844 OL_MKDEP
845 PERLBIN
846 LIBTOOL
847 CPP
848 OBJDUMP
849 AS
850 DLLTOOL
851 RANLIB
852 ECHO
853 LN_S
854 EGREP
855 GREP
856 am__fastdepCC_FALSE
857 am__fastdepCC_TRUE
858 CCDEPMODE
859 AMDEPBACKSLASH
860 AMDEP_FALSE
861 AMDEP_TRUE
862 am__quote
863 am__include
864 DEPDIR
865 OBJEXT
866 EXEEXT
867 ac_ct_CC
868 CPPFLAGS
869 LDFLAGS
870 CFLAGS
871 AR
872 CC
873 ldap_subdir
874 top_builddir
875 OPENLDAP_RELEASE_DATE
876 OPENLDAP_LIBVERSION
877 OPENLDAP_LIBRELEASE
878 am__untar
879 am__tar
880 AMTAR
881 am__leading_dot
882 SET_MAKE
883 AWK
884 mkdir_p
885 INSTALL_STRIP_PROGRAM
886 STRIP
887 install_sh
888 MAKEINFO
889 AUTOHEADER
890 AUTOMAKE
891 AUTOCONF
892 ACLOCAL
893 VERSION
894 PACKAGE
895 CYGPATH_W
896 INSTALL_DATA
897 INSTALL_SCRIPT
898 INSTALL_PROGRAM
899 target_os
900 target_vendor
901 target_cpu
902 target
903 host_os
904 host_vendor
905 host_cpu
906 host
907 build_os
908 build_vendor
909 build_cpu
910 build
911 target_alias
912 host_alias
913 build_alias
914 LIBS
915 ECHO_T
916 ECHO_N
917 ECHO_C
918 DEFS
919 mandir
920 localedir
921 libdir
922 psdir
923 pdfdir
924 dvidir
925 htmldir
926 infodir
927 docdir
928 oldincludedir
929 includedir
930 localstatedir
931 sharedstatedir
932 sysconfdir
933 datadir
934 datarootdir
935 libexecdir
936 sbindir
937 bindir
938 program_transform_name
939 prefix
940 exec_prefix
941 PACKAGE_URL
942 PACKAGE_BUGREPORT
943 PACKAGE_STRING
944 PACKAGE_VERSION
945 PACKAGE_TARNAME
946 PACKAGE_NAME
947 PATH_SEPARATOR
948 SHELL'
949 ac_subst_files=''
950 ac_user_opts='
951 enable_option_checking
952 with_subdir
953 enable_debug
954 enable_dynamic
955 enable_syslog
956 enable_proctitle
957 enable_ipv6
958 enable_local
959 with_cyrus_sasl
960 with_fetch
961 with_threads
962 with_tls
963 with_yielding_select
964 with_mp
965 with_odbc
966 enable_xxslapdoptions
967 enable_slapd
968 enable_dynacl
969 enable_aci
970 enable_cleartext
971 enable_crypt
972 enable_lmpasswd
973 enable_spasswd
974 enable_modules
975 enable_rewrite
976 enable_rlookups
977 enable_slapi
978 enable_slp
979 enable_wrappers
980 enable_xxslapbackends
981 enable_backends
982 enable_bdb
983 enable_dnssrv
984 enable_hdb
985 enable_ldap
986 enable_mdb
987 enable_meta
988 enable_monitor
989 enable_ndb
990 enable_null
991 enable_passwd
992 enable_perl
993 enable_relay
994 enable_shell
995 enable_sock
996 enable_sql
997 enable_xxslapoverlays
998 enable_overlays
999 enable_accesslog
1000 enable_auditlog
1001 enable_collect
1002 enable_constraint
1003 enable_dds
1004 enable_deref
1005 enable_dyngroup
1006 enable_dynlist
1007 enable_memberof
1008 enable_ppolicy
1009 enable_proxycache
1010 enable_refint
1011 enable_retcode
1012 enable_rwm
1013 enable_seqmod
1014 enable_sssvlv
1015 enable_syncprov
1016 enable_translucent
1017 enable_unique
1018 enable_valsort
1019 enable_xxliboptions
1020 enable_static
1021 enable_shared
1022 enable_fast_install
1023 enable_dependency_tracking
1024 with_gnu_ld
1025 enable_libtool_lock
1026 with_pic
1027 with_tags
1028 with_xxinstall
1029 '
1030       ac_precious_vars='build_alias
1031 host_alias
1032 target_alias
1033 CC
1034 CFLAGS
1035 LDFLAGS
1036 LIBS
1037 CPPFLAGS
1038 CPP'
1039
1040
1041 # Initialize some variables set by options.
1042 ac_init_help=
1043 ac_init_version=false
1044 ac_unrecognized_opts=
1045 ac_unrecognized_sep=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file=/dev/null
1049 exec_prefix=NONE
1050 no_create=
1051 no_recursion=
1052 prefix=NONE
1053 program_prefix=NONE
1054 program_suffix=NONE
1055 program_transform_name=s,x,x,
1056 silent=
1057 site=
1058 srcdir=
1059 verbose=
1060 x_includes=NONE
1061 x_libraries=NONE
1062
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir='${exec_prefix}/bin'
1070 sbindir='${exec_prefix}/sbin'
1071 libexecdir='${exec_prefix}/libexec'
1072 datarootdir='${prefix}/share'
1073 datadir='${datarootdir}'
1074 sysconfdir='${prefix}/etc'
1075 sharedstatedir='${prefix}/com'
1076 localstatedir='${prefix}/var'
1077 includedir='${prefix}/include'
1078 oldincludedir='/usr/include'
1079 docdir='${datarootdir}/doc/${PACKAGE}'
1080 infodir='${datarootdir}/info'
1081 htmldir='${docdir}'
1082 dvidir='${docdir}'
1083 pdfdir='${docdir}'
1084 psdir='${docdir}'
1085 libdir='${exec_prefix}/lib'
1086 localedir='${datarootdir}/locale'
1087 mandir='${datarootdir}/man'
1088
1089 ac_prev=
1090 ac_dashdash=
1091 for ac_option
1092 do
1093   # If the previous option needs an argument, assign it.
1094   if test -n "$ac_prev"; then
1095     eval $ac_prev=\$ac_option
1096     ac_prev=
1097     continue
1098   fi
1099
1100   case $ac_option in
1101   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1102   *=)   ac_optarg= ;;
1103   *)    ac_optarg=yes ;;
1104   esac
1105
1106   # Accept the important Cygnus configure options, so we can diagnose typos.
1107
1108   case $ac_dashdash$ac_option in
1109   --)
1110     ac_dashdash=yes ;;
1111
1112   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1113     ac_prev=bindir ;;
1114   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115     bindir=$ac_optarg ;;
1116
1117   -build | --build | --buil | --bui | --bu)
1118     ac_prev=build_alias ;;
1119   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120     build_alias=$ac_optarg ;;
1121
1122   -cache-file | --cache-file | --cache-fil | --cache-fi \
1123   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124     ac_prev=cache_file ;;
1125   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127     cache_file=$ac_optarg ;;
1128
1129   --config-cache | -C)
1130     cache_file=config.cache ;;
1131
1132   -datadir | --datadir | --datadi | --datad)
1133     ac_prev=datadir ;;
1134   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135     datadir=$ac_optarg ;;
1136
1137   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138   | --dataroo | --dataro | --datar)
1139     ac_prev=datarootdir ;;
1140   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142     datarootdir=$ac_optarg ;;
1143
1144   -disable-* | --disable-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid feature name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "enable_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval enable_$ac_useropt=no ;;
1159
1160   -docdir | --docdir | --docdi | --doc | --do)
1161     ac_prev=docdir ;;
1162   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163     docdir=$ac_optarg ;;
1164
1165   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166     ac_prev=dvidir ;;
1167   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168     dvidir=$ac_optarg ;;
1169
1170   -enable-* | --enable-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid feature name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "enable_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval enable_$ac_useropt=\$ac_optarg ;;
1185
1186   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1187   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1188   | --exec | --exe | --ex)
1189     ac_prev=exec_prefix ;;
1190   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1191   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1192   | --exec=* | --exe=* | --ex=*)
1193     exec_prefix=$ac_optarg ;;
1194
1195   -gas | --gas | --ga | --g)
1196     # Obsolete; use --with-gas.
1197     with_gas=yes ;;
1198
1199   -help | --help | --hel | --he | -h)
1200     ac_init_help=long ;;
1201   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1202     ac_init_help=recursive ;;
1203   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1204     ac_init_help=short ;;
1205
1206   -host | --host | --hos | --ho)
1207     ac_prev=host_alias ;;
1208   -host=* | --host=* | --hos=* | --ho=*)
1209     host_alias=$ac_optarg ;;
1210
1211   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1212     ac_prev=htmldir ;;
1213   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1214   | --ht=*)
1215     htmldir=$ac_optarg ;;
1216
1217   -includedir | --includedir | --includedi | --included | --include \
1218   | --includ | --inclu | --incl | --inc)
1219     ac_prev=includedir ;;
1220   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1221   | --includ=* | --inclu=* | --incl=* | --inc=*)
1222     includedir=$ac_optarg ;;
1223
1224   -infodir | --infodir | --infodi | --infod | --info | --inf)
1225     ac_prev=infodir ;;
1226   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1227     infodir=$ac_optarg ;;
1228
1229   -libdir | --libdir | --libdi | --libd)
1230     ac_prev=libdir ;;
1231   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1232     libdir=$ac_optarg ;;
1233
1234   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1235   | --libexe | --libex | --libe)
1236     ac_prev=libexecdir ;;
1237   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1238   | --libexe=* | --libex=* | --libe=*)
1239     libexecdir=$ac_optarg ;;
1240
1241   -localedir | --localedir | --localedi | --localed | --locale)
1242     ac_prev=localedir ;;
1243   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1244     localedir=$ac_optarg ;;
1245
1246   -localstatedir | --localstatedir | --localstatedi | --localstated \
1247   | --localstate | --localstat | --localsta | --localst | --locals)
1248     ac_prev=localstatedir ;;
1249   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1250   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1251     localstatedir=$ac_optarg ;;
1252
1253   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1254     ac_prev=mandir ;;
1255   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1256     mandir=$ac_optarg ;;
1257
1258   -nfp | --nfp | --nf)
1259     # Obsolete; use --without-fp.
1260     with_fp=no ;;
1261
1262   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1263   | --no-cr | --no-c | -n)
1264     no_create=yes ;;
1265
1266   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1267   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1268     no_recursion=yes ;;
1269
1270   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1271   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1272   | --oldin | --oldi | --old | --ol | --o)
1273     ac_prev=oldincludedir ;;
1274   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1275   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1276   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1277     oldincludedir=$ac_optarg ;;
1278
1279   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1280     ac_prev=prefix ;;
1281   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1282     prefix=$ac_optarg ;;
1283
1284   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1285   | --program-pre | --program-pr | --program-p)
1286     ac_prev=program_prefix ;;
1287   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1288   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1289     program_prefix=$ac_optarg ;;
1290
1291   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1292   | --program-suf | --program-su | --program-s)
1293     ac_prev=program_suffix ;;
1294   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1295   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1296     program_suffix=$ac_optarg ;;
1297
1298   -program-transform-name | --program-transform-name \
1299   | --program-transform-nam | --program-transform-na \
1300   | --program-transform-n | --program-transform- \
1301   | --program-transform | --program-transfor \
1302   | --program-transfo | --program-transf \
1303   | --program-trans | --program-tran \
1304   | --progr-tra | --program-tr | --program-t)
1305     ac_prev=program_transform_name ;;
1306   -program-transform-name=* | --program-transform-name=* \
1307   | --program-transform-nam=* | --program-transform-na=* \
1308   | --program-transform-n=* | --program-transform-=* \
1309   | --program-transform=* | --program-transfor=* \
1310   | --program-transfo=* | --program-transf=* \
1311   | --program-trans=* | --program-tran=* \
1312   | --progr-tra=* | --program-tr=* | --program-t=*)
1313     program_transform_name=$ac_optarg ;;
1314
1315   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1316     ac_prev=pdfdir ;;
1317   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1318     pdfdir=$ac_optarg ;;
1319
1320   -psdir | --psdir | --psdi | --psd | --ps)
1321     ac_prev=psdir ;;
1322   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1323     psdir=$ac_optarg ;;
1324
1325   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326   | -silent | --silent | --silen | --sile | --sil)
1327     silent=yes ;;
1328
1329   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1330     ac_prev=sbindir ;;
1331   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1332   | --sbi=* | --sb=*)
1333     sbindir=$ac_optarg ;;
1334
1335   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1336   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1337   | --sharedst | --shareds | --shared | --share | --shar \
1338   | --sha | --sh)
1339     ac_prev=sharedstatedir ;;
1340   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1341   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1342   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1343   | --sha=* | --sh=*)
1344     sharedstatedir=$ac_optarg ;;
1345
1346   -site | --site | --sit)
1347     ac_prev=site ;;
1348   -site=* | --site=* | --sit=*)
1349     site=$ac_optarg ;;
1350
1351   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1352     ac_prev=srcdir ;;
1353   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1354     srcdir=$ac_optarg ;;
1355
1356   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1357   | --syscon | --sysco | --sysc | --sys | --sy)
1358     ac_prev=sysconfdir ;;
1359   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1360   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1361     sysconfdir=$ac_optarg ;;
1362
1363   -target | --target | --targe | --targ | --tar | --ta | --t)
1364     ac_prev=target_alias ;;
1365   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1366     target_alias=$ac_optarg ;;
1367
1368   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1369     verbose=yes ;;
1370
1371   -version | --version | --versio | --versi | --vers | -V)
1372     ac_init_version=: ;;
1373
1374   -with-* | --with-*)
1375     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376     # Reject names that are not valid shell variable names.
1377     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378       as_fn_error $? "invalid package name: $ac_useropt"
1379     ac_useropt_orig=$ac_useropt
1380     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381     case $ac_user_opts in
1382       *"
1383 "with_$ac_useropt"
1384 "*) ;;
1385       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386          ac_unrecognized_sep=', ';;
1387     esac
1388     eval with_$ac_useropt=\$ac_optarg ;;
1389
1390   -without-* | --without-*)
1391     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392     # Reject names that are not valid shell variable names.
1393     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394       as_fn_error $? "invalid package name: $ac_useropt"
1395     ac_useropt_orig=$ac_useropt
1396     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397     case $ac_user_opts in
1398       *"
1399 "with_$ac_useropt"
1400 "*) ;;
1401       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402          ac_unrecognized_sep=', ';;
1403     esac
1404     eval with_$ac_useropt=no ;;
1405
1406   --x)
1407     # Obsolete; use --with-x.
1408     with_x=yes ;;
1409
1410   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411   | --x-incl | --x-inc | --x-in | --x-i)
1412     ac_prev=x_includes ;;
1413   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415     x_includes=$ac_optarg ;;
1416
1417   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419     ac_prev=x_libraries ;;
1420   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422     x_libraries=$ac_optarg ;;
1423
1424   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1425 Try \`$0 --help' for more information"
1426     ;;
1427
1428   *=*)
1429     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430     # Reject names that are not valid shell variable names.
1431     case $ac_envvar in #(
1432       '' | [0-9]* | *[!_$as_cr_alnum]* )
1433       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1434     esac
1435     eval $ac_envvar=\$ac_optarg
1436     export $ac_envvar ;;
1437
1438   *)
1439     # FIXME: should be removed in autoconf 3.0.
1440     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1444     ;;
1445
1446   esac
1447 done
1448
1449 if test -n "$ac_prev"; then
1450   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451   as_fn_error $? "missing argument to $ac_option"
1452 fi
1453
1454 if test -n "$ac_unrecognized_opts"; then
1455   case $enable_option_checking in
1456     no) ;;
1457     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1458     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459   esac
1460 fi
1461
1462 # Check all directory arguments for consistency.
1463 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464                 datadir sysconfdir sharedstatedir localstatedir includedir \
1465                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466                 libdir localedir mandir
1467 do
1468   eval ac_val=\$$ac_var
1469   # Remove trailing slashes.
1470   case $ac_val in
1471     */ )
1472       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473       eval $ac_var=\$ac_val;;
1474   esac
1475   # Be sure to have absolute directory names.
1476   case $ac_val in
1477     [\\/$]* | ?:[\\/]* )  continue;;
1478     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1479   esac
1480   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1481 done
1482
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1486 build=$build_alias
1487 host=$host_alias
1488 target=$target_alias
1489
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492   if test "x$build_alias" = x; then
1493     cross_compiling=maybe
1494     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1495     If a cross compiler is detected then cross compile mode will be used" >&2
1496   elif test "x$build_alias" != "x$host_alias"; then
1497     cross_compiling=yes
1498   fi
1499 fi
1500
1501 ac_tool_prefix=
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503
1504 test "$silent" = yes && exec 6>/dev/null
1505
1506
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510   as_fn_error $? "working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512   as_fn_error $? "pwd does not report name of working directory"
1513
1514
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517   ac_srcdir_defaulted=yes
1518   # Try the directory containing this script, then the parent directory.
1519   ac_confdir=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521          X"$as_myself" : 'X\(//\)[^/]' \| \
1522          X"$as_myself" : 'X\(//\)$' \| \
1523          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1526             s//\1/
1527             q
1528           }
1529           /^X\(\/\/\)[^/].*/{
1530             s//\1/
1531             q
1532           }
1533           /^X\(\/\/\)$/{
1534             s//\1/
1535             q
1536           }
1537           /^X\(\/\).*/{
1538             s//\1/
1539             q
1540           }
1541           s/.*/./; q'`
1542   srcdir=$ac_confdir
1543   if test ! -r "$srcdir/$ac_unique_file"; then
1544     srcdir=..
1545   fi
1546 else
1547   ac_srcdir_defaulted=no
1548 fi
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1552 fi
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 ac_abs_confdir=`(
1555         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1556         pwd)`
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559   srcdir=.
1560 fi
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1564 case $srcdir in
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 esac
1567 for ac_var in $ac_precious_vars; do
1568   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569   eval ac_env_${ac_var}_value=\$${ac_var}
1570   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 done
1573
1574 #
1575 # Report the --help message.
1576 #
1577 if test "$ac_init_help" = "long"; then
1578   # Omit some internal or obsolete options to make the list less imposing.
1579   # This message is too long to be a string in the A/UX 3.1 sh.
1580   cat <<_ACEOF
1581 \`configure' configures this package to adapt to many kinds of systems.
1582
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE.  See below for descriptions of some of the useful variables.
1587
1588 Defaults for the options are specified in brackets.
1589
1590 Configuration:
1591   -h, --help              display this help and exit
1592       --help=short        display options specific to this package
1593       --help=recursive    display the short help of all the included packages
1594   -V, --version           display version information and exit
1595   -q, --quiet, --silent   do not print \`checking ...' messages
1596       --cache-file=FILE   cache test results in FILE [disabled]
1597   -C, --config-cache      alias for \`--cache-file=config.cache'
1598   -n, --no-create         do not create output files
1599       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1600
1601 Installation directories:
1602   --prefix=PREFIX         install architecture-independent files in PREFIX
1603                           [$ac_default_prefix]
1604   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1605                           [PREFIX]
1606
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1611
1612 For better control, use the options below.
1613
1614 Fine tuning of the installation directories:
1615   --bindir=DIR            user executables [EPREFIX/bin]
1616   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1617   --libexecdir=DIR        program executables [EPREFIX/libexec]
1618   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1619   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1620   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1621   --libdir=DIR            object code libraries [EPREFIX/lib]
1622   --includedir=DIR        C header files [PREFIX/include]
1623   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1624   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1625   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1626   --infodir=DIR           info documentation [DATAROOTDIR/info]
1627   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1628   --mandir=DIR            man documentation [DATAROOTDIR/man]
1629   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1630   --htmldir=DIR           html documentation [DOCDIR]
1631   --dvidir=DIR            dvi documentation [DOCDIR]
1632   --pdfdir=DIR            pdf documentation [DOCDIR]
1633   --psdir=DIR             ps documentation [DOCDIR]
1634 _ACEOF
1635
1636   cat <<\_ACEOF
1637
1638 Program names:
1639   --program-prefix=PREFIX            prepend PREFIX to installed program names
1640   --program-suffix=SUFFIX            append SUFFIX to installed program names
1641   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1642
1643 System types:
1644   --build=BUILD     configure for building on BUILD [guessed]
1645   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1646   --target=TARGET   configure for building compilers for TARGET [HOST]
1647 _ACEOF
1648 fi
1649
1650 if test -n "$ac_init_help"; then
1651
1652   cat <<\_ACEOF
1653
1654 Optional Features:
1655   --disable-option-checking  ignore unrecognized --enable/--with options
1656   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1657   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1658   --enable-debug          enable debugging no|yes|traditional [yes]
1659   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1660   --enable-syslog         enable syslog support [auto]
1661   --enable-proctitle      enable proctitle support [yes]
1662   --enable-ipv6           enable IPv6 support [auto]
1663   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1664
1665 SLAPD (Standalone LDAP Daemon) Options:
1666   --enable-slapd          enable building slapd [yes]
1667     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1668     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1669     --enable-cleartext    enable cleartext passwords [yes]
1670     --enable-crypt        enable crypt(3) passwords [no]
1671     --enable-lmpasswd     enable LAN Manager passwords [no]
1672     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1673     --enable-modules      enable dynamic module support [no]
1674     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1675     --enable-rlookups     enable reverse lookups of client hostnames [no]
1676     --enable-slapi        enable SLAPI support (experimental) [no]
1677     --enable-slp          enable SLPv2 support [no]
1678     --enable-wrappers     enable tcp wrapper support [no]
1679
1680 SLAPD Backend Options:
1681     --enable-backends     enable all available backends no|yes|mod
1682     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1683     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1684     --enable-hdb          enable Hierarchical DB backend no|yes|mod [no]
1685     --enable-ldap         enable ldap backend no|yes|mod [no]
1686     --enable-mdb          enable mdb database backend no|yes|mod [yes]
1687     --enable-meta         enable metadirectory backend no|yes|mod [no]
1688     --enable-monitor      enable monitor backend no|yes|mod [yes]
1689     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1690     --enable-null         enable null backend no|yes|mod [no]
1691     --enable-passwd       enable passwd backend no|yes|mod [no]
1692     --enable-perl         enable perl backend no|yes|mod [no]
1693     --enable-relay        enable relay backend no|yes|mod [yes]
1694     --enable-shell        enable shell backend no|yes|mod [no]
1695     --enable-sock         enable sock backend no|yes|mod [no]
1696     --enable-sql          enable sql backend no|yes|mod [no]
1697
1698 SLAPD Overlay Options:
1699     --enable-overlays     enable all available overlays no|yes|mod
1700     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1701     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1702     --enable-collect      Collect overlay no|yes|mod [no]
1703     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1704     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1705     --enable-deref        Dereference overlay no|yes|mod [no]
1706     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1707     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1708     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1709     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1710     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1711     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1712     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1713     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1714     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1715     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1716     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1717     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1718     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1719     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1720
1721 Library Generation & Linking Options
1722   --enable-static[=PKGS]  build static libraries [default=yes]
1723   --enable-shared[=PKGS]  build shared libraries [default=yes]
1724   --enable-fast-install[=PKGS]
1725                           optimize for fast installation [default=yes]
1726   --disable-dependency-tracking  speeds up one-time build
1727   --enable-dependency-tracking   do not reject slow dependency extractors
1728   --disable-libtool-lock  avoid locking (might break parallel builds)
1729
1730 Optional Packages:
1731   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1732   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1733   --with-subdir=DIR       change default subdirectory used for installs
1734   --with-cyrus-sasl       with Cyrus SASL support [auto]
1735   --with-fetch            with fetch(3) URL support [auto]
1736   --with-threads          with threads [auto]
1737   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1738   --with-yielding-select  with implicitly yielding select [auto]
1739   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1740   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1741   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1742   --with-pic              try to use only PIC/non-PIC objects [default=use
1743                           both]
1744   --with-tags[=TAGS]      include additional configurations [automatic]
1745
1746 See INSTALL file for further details.
1747
1748 Some influential environment variables:
1749   CC          C compiler command
1750   CFLAGS      C compiler flags
1751   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1752               nonstandard directory <lib dir>
1753   LIBS        libraries to pass to the linker, e.g. -l<library>
1754   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1755               you have headers in a nonstandard directory <include dir>
1756   CPP         C preprocessor
1757
1758 Use these variables to override the choices made by `configure' or to help
1759 it to find libraries and programs with nonstandard names/locations.
1760
1761 Report bugs to the package provider.
1762 _ACEOF
1763 ac_status=$?
1764 fi
1765
1766 if test "$ac_init_help" = "recursive"; then
1767   # If there are subdirs, report their specific --help.
1768   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769     test -d "$ac_dir" ||
1770       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771       continue
1772     ac_builddir=.
1773
1774 case "$ac_dir" in
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *)
1777   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778   # A ".." for each directory in $ac_dir_suffix.
1779   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780   case $ac_top_builddir_sub in
1781   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783   esac ;;
1784 esac
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1789
1790 case $srcdir in
1791   .)  # We are building in place.
1792     ac_srcdir=.
1793     ac_top_srcdir=$ac_top_builddir_sub
1794     ac_abs_top_srcdir=$ac_pwd ;;
1795   [\\/]* | ?:[\\/]* )  # Absolute name.
1796     ac_srcdir=$srcdir$ac_dir_suffix;
1797     ac_top_srcdir=$srcdir
1798     ac_abs_top_srcdir=$srcdir ;;
1799   *) # Relative name.
1800     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801     ac_top_srcdir=$ac_top_build_prefix$srcdir
1802     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 esac
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806     cd "$ac_dir" || { ac_status=$?; continue; }
1807     # Check for guested configure.
1808     if test -f "$ac_srcdir/configure.gnu"; then
1809       echo &&
1810       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811     elif test -f "$ac_srcdir/configure"; then
1812       echo &&
1813       $SHELL "$ac_srcdir/configure" --help=recursive
1814     else
1815       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816     fi || ac_status=$?
1817     cd "$ac_pwd" || { ac_status=$?; break; }
1818   done
1819 fi
1820
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1823   cat <<\_ACEOF
1824 configure
1825 generated by GNU Autoconf 2.68
1826
1827 Copyright (C) 2010 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1830
1831 Copyright 1998-2014 The OpenLDAP Foundation. All rights reserved.
1832 Restrictions apply, see COPYRIGHT and LICENSE files.
1833 _ACEOF
1834   exit
1835 fi
1836
1837 ## ------------------------ ##
1838 ## Autoconf initialization. ##
1839 ## ------------------------ ##
1840
1841 # ac_fn_c_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext
1848   if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_compile") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest.$ac_objext; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_compile
1878
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   rm -f conftest.$ac_objext conftest$ac_exeext
1886   if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_link") 2>conftest.err
1894   ac_status=$?
1895   if test -s conftest.err; then
1896     grep -v '^ *+' conftest.err >conftest.er1
1897     cat conftest.er1 >&5
1898     mv -f conftest.er1 conftest.err
1899   fi
1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901   test $ac_status = 0; } && {
1902          test -z "$ac_c_werror_flag" ||
1903          test ! -s conftest.err
1904        } && test -s conftest$ac_exeext && {
1905          test "$cross_compiling" = yes ||
1906          $as_test_x conftest$ac_exeext
1907        }; then :
1908   ac_retval=0
1909 else
1910   $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913         ac_retval=1
1914 fi
1915   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917   # interfere with the next link command; also delete a directory that is
1918   # left behind by Apple's compiler.  We do this before executing the actions.
1919   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921   as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_link
1924
1925 # ac_fn_c_try_cpp LINENO
1926 # ----------------------
1927 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_cpp ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   if { { ac_try="$ac_cpp conftest.$ac_ext"
1932 case "(($ac_try" in
1933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934   *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939   ac_status=$?
1940   if test -s conftest.err; then
1941     grep -v '^ *+' conftest.err >conftest.er1
1942     cat conftest.er1 >&5
1943     mv -f conftest.er1 conftest.err
1944   fi
1945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946   test $ac_status = 0; } > conftest.i && {
1947          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1948          test ! -s conftest.err
1949        }; then :
1950   ac_retval=0
1951 else
1952   $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955     ac_retval=1
1956 fi
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958   as_fn_set_status $ac_retval
1959
1960 } # ac_fn_c_try_cpp
1961
1962 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1963 # -------------------------------------------------------
1964 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1965 # the include files in INCLUDES and setting the cache variable VAR
1966 # accordingly.
1967 ac_fn_c_check_header_mongrel ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   if eval \${$3+:} false; then :
1971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if eval \${$3+:} false; then :
1974   $as_echo_n "(cached) " >&6
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 else
1980   # Is the header compilable?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1982 $as_echo_n "checking $2 usability... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 #include <$2>
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   ac_header_compiler=yes
1990 else
1991   ac_header_compiler=no
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1995 $as_echo "$ac_header_compiler" >&6; }
1996
1997 # Is the header present?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1999 $as_echo_n "checking $2 presence... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 #include <$2>
2003 _ACEOF
2004 if ac_fn_c_try_cpp "$LINENO"; then :
2005   ac_header_preproc=yes
2006 else
2007   ac_header_preproc=no
2008 fi
2009 rm -f conftest.err conftest.i conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2011 $as_echo "$ac_header_preproc" >&6; }
2012
2013 # So?  What about this header?
2014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2015   yes:no: )
2016     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2017 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2018     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020     ;;
2021   no:yes:* )
2022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2023 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2024     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2025 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2027 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2029 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032 ( $as_echo "## --------------------------------------------- ##
2033 ## Report this to <http://www.openldap.org/its/> ##
2034 ## --------------------------------------------- ##"
2035      ) | sed "s/^/$as_me: WARNING:     /" >&2
2036     ;;
2037 esac
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   eval "$3=\$ac_header_compiler"
2044 fi
2045 eval ac_res=\$$3
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 fi
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_header_mongrel
2052
2053 # ac_fn_c_try_run LINENO
2054 # ----------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056 # that executables *can* be run.
2057 ac_fn_c_try_run ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   if { { ac_try="$ac_link"
2061 case "(($ac_try" in
2062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063   *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067   (eval "$ac_link") 2>&5
2068   ac_status=$?
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071   { { case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077   (eval "$ac_try") 2>&5
2078   ac_status=$?
2079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080   test $ac_status = 0; }; }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: program exited with status $ac_status" >&5
2084        $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087        ac_retval=$ac_status
2088 fi
2089   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091   as_fn_set_status $ac_retval
2092
2093 } # ac_fn_c_try_run
2094
2095 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2096 # -------------------------------------------------------
2097 # Tests whether HEADER exists and can be compiled using the include files in
2098 # INCLUDES, setting the cache variable VAR accordingly.
2099 ac_fn_c_check_header_compile ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105   $as_echo_n "(cached) " >&6
2106 else
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 #include <$2>
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   eval "$3=yes"
2114 else
2115   eval "$3=no"
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 eval ac_res=\$$3
2120                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124 } # ac_fn_c_check_header_compile
2125
2126 # ac_fn_c_check_func LINENO FUNC VAR
2127 # ----------------------------------
2128 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2129 ac_fn_c_check_func ()
2130 {
2131   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval \${$3+:} false; then :
2135   $as_echo_n "(cached) " >&6
2136 else
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2141 #define $2 innocuous_$2
2142
2143 /* System header to define __stub macros and hopefully few prototypes,
2144     which can conflict with char $2 (); below.
2145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2146     <limits.h> exists even on freestanding compilers.  */
2147
2148 #ifdef __STDC__
2149 # include <limits.h>
2150 #else
2151 # include <assert.h>
2152 #endif
2153
2154 #undef $2
2155
2156 /* Override any GCC internal prototype to avoid an error.
2157    Use char because int might match the return type of a GCC
2158    builtin and then its argument prototype would still apply.  */
2159 #ifdef __cplusplus
2160 extern "C"
2161 #endif
2162 char $2 ();
2163 /* The GNU C library defines this for functions which it implements
2164     to always fail with ENOSYS.  Some functions are actually named
2165     something starting with __ and the normal name is an alias.  */
2166 #if defined __stub_$2 || defined __stub___$2
2167 choke me
2168 #endif
2169
2170 int
2171 main ()
2172 {
2173 return $2 ();
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_link "$LINENO"; then :
2179   eval "$3=yes"
2180 else
2181   eval "$3=no"
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext \
2184     conftest$ac_exeext conftest.$ac_ext
2185 fi
2186 eval ac_res=\$$3
2187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190
2191 } # ac_fn_c_check_func
2192
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   eval "$3=no"
2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 $4
2209 int
2210 main ()
2211 {
2212 if (sizeof ($2))
2213          return 0;
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h.  */
2221 $4
2222 int
2223 main ()
2224 {
2225 if (sizeof (($2)))
2226             return 0;
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232
2233 else
2234   eval "$3=yes"
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 eval ac_res=\$$3
2241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245 } # ac_fn_c_check_type
2246
2247 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2248 # ----------------------------------------------------
2249 # Tries to find if the field MEMBER exists in type AGGR, after including
2250 # INCLUDES, setting cache variable VAR accordingly.
2251 ac_fn_c_check_member ()
2252 {
2253   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2255 $as_echo_n "checking for $2.$3... " >&6; }
2256 if eval \${$4+:} false; then :
2257   $as_echo_n "(cached) " >&6
2258 else
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $5
2262 int
2263 main ()
2264 {
2265 static $2 ac_aggr;
2266 if (ac_aggr.$3)
2267 return 0;
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273   eval "$4=yes"
2274 else
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $5
2278 int
2279 main ()
2280 {
2281 static $2 ac_aggr;
2282 if (sizeof ac_aggr.$3)
2283 return 0;
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289   eval "$4=yes"
2290 else
2291   eval "$4=no"
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 eval ac_res=\$$4
2298                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301
2302 } # ac_fn_c_check_member
2303
2304 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2305 # --------------------------------------------
2306 # Tries to find the compile-time value of EXPR in a program that includes
2307 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2308 # computed
2309 ac_fn_c_compute_int ()
2310 {
2311   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312   if test "$cross_compiling" = yes; then
2313     # Depending upon the size, compute the lo and hi bounds.
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 $4
2317 int
2318 main ()
2319 {
2320 static int test_array [1 - 2 * !(($2) >= 0)];
2321 test_array [0] = 0
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328   ac_lo=0 ac_mid=0
2329   while :; do
2330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 int
2334 main ()
2335 {
2336 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2337 test_array [0] = 0
2338
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344   ac_hi=$ac_mid; break
2345 else
2346   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2347                         if test $ac_lo -le $ac_mid; then
2348                           ac_lo= ac_hi=
2349                           break
2350                         fi
2351                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354   done
2355 else
2356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h.  */
2358 $4
2359 int
2360 main ()
2361 {
2362 static int test_array [1 - 2 * !(($2) < 0)];
2363 test_array [0] = 0
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370   ac_hi=-1 ac_mid=-1
2371   while :; do
2372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 int
2376 main ()
2377 {
2378 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2379 test_array [0] = 0
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386   ac_lo=$ac_mid; break
2387 else
2388   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2389                         if test $ac_mid -le $ac_hi; then
2390                           ac_lo= ac_hi=
2391                           break
2392                         fi
2393                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2394 fi
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396   done
2397 else
2398   ac_lo= ac_hi=
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 # Binary search between lo and hi bounds.
2404 while test "x$ac_lo" != "x$ac_hi"; do
2405   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h.  */
2408 $4
2409 int
2410 main ()
2411 {
2412 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2413 test_array [0] = 0
2414
2415   ;
2416   return 0;
2417 }
2418 _ACEOF
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420   ac_hi=$ac_mid
2421 else
2422   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 case $ac_lo in #((
2427 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2428 '') ac_retval=1 ;;
2429 esac
2430   else
2431     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 $4
2434 static long int longval () { return $2; }
2435 static unsigned long int ulongval () { return $2; }
2436 #include <stdio.h>
2437 #include <stdlib.h>
2438 int
2439 main ()
2440 {
2441
2442   FILE *f = fopen ("conftest.val", "w");
2443   if (! f)
2444     return 1;
2445   if (($2) < 0)
2446     {
2447       long int i = longval ();
2448       if (i != ($2))
2449         return 1;
2450       fprintf (f, "%ld", i);
2451     }
2452   else
2453     {
2454       unsigned long int i = ulongval ();
2455       if (i != ($2))
2456         return 1;
2457       fprintf (f, "%lu", i);
2458     }
2459   /* Do not output a trailing newline, as this causes \r\n confusion
2460      on some platforms.  */
2461   return ferror (f) || fclose (f) != 0;
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_c_try_run "$LINENO"; then :
2468   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2469 else
2470   ac_retval=1
2471 fi
2472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2473   conftest.$ac_objext conftest.beam conftest.$ac_ext
2474 rm -f conftest.val
2475
2476   fi
2477   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478   as_fn_set_status $ac_retval
2479
2480 } # ac_fn_c_compute_int
2481 cat >config.log <<_ACEOF
2482 This file contains any messages produced by compilers while
2483 running configure, to aid debugging if configure makes a mistake.
2484
2485 It was created by $as_me, which was
2486 generated by GNU Autoconf 2.68.  Invocation command line was
2487
2488   $ $0 $@
2489
2490 _ACEOF
2491 exec 5>>config.log
2492 {
2493 cat <<_ASUNAME
2494 ## --------- ##
2495 ## Platform. ##
2496 ## --------- ##
2497
2498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2503
2504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2505 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2506
2507 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2508 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2510 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2511 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2512 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2513 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2514
2515 _ASUNAME
2516
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522     $as_echo "PATH: $as_dir"
2523   done
2524 IFS=$as_save_IFS
2525
2526 } >&5
2527
2528 cat >&5 <<_ACEOF
2529
2530
2531 ## ----------- ##
2532 ## Core tests. ##
2533 ## ----------- ##
2534
2535 _ACEOF
2536
2537
2538 # Keep a trace of the command line.
2539 # Strip out --no-create and --no-recursion so they do not pile up.
2540 # Strip out --silent because we don't want to record it for future runs.
2541 # Also quote any args containing shell meta-characters.
2542 # Make two passes to allow for proper duplicate-argument suppression.
2543 ac_configure_args=
2544 ac_configure_args0=
2545 ac_configure_args1=
2546 ac_must_keep_next=false
2547 for ac_pass in 1 2
2548 do
2549   for ac_arg
2550   do
2551     case $ac_arg in
2552     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2553     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2554     | -silent | --silent | --silen | --sile | --sil)
2555       continue ;;
2556     *\'*)
2557       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2558     esac
2559     case $ac_pass in
2560     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2561     2)
2562       as_fn_append ac_configure_args1 " '$ac_arg'"
2563       if test $ac_must_keep_next = true; then
2564         ac_must_keep_next=false # Got value, back to normal.
2565       else
2566         case $ac_arg in
2567           *=* | --config-cache | -C | -disable-* | --disable-* \
2568           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2569           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2570           | -with-* | --with-* | -without-* | --without-* | --x)
2571             case "$ac_configure_args0 " in
2572               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2573             esac
2574             ;;
2575           -* ) ac_must_keep_next=true ;;
2576         esac
2577       fi
2578       as_fn_append ac_configure_args " '$ac_arg'"
2579       ;;
2580     esac
2581   done
2582 done
2583 { ac_configure_args0=; unset ac_configure_args0;}
2584 { ac_configure_args1=; unset ac_configure_args1;}
2585
2586 # When interrupted or exit'd, cleanup temporary files, and complete
2587 # config.log.  We remove comments because anyway the quotes in there
2588 # would cause problems or look ugly.
2589 # WARNING: Use '\'' to represent an apostrophe within the trap.
2590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2591 trap 'exit_status=$?
2592   # Save into config.log some information that might help in debugging.
2593   {
2594     echo
2595
2596     $as_echo "## ---------------- ##
2597 ## Cache variables. ##
2598 ## ---------------- ##"
2599     echo
2600     # The following way of writing the cache mishandles newlines in values,
2601 (
2602   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603     eval ac_val=\$$ac_var
2604     case $ac_val in #(
2605     *${as_nl}*)
2606       case $ac_var in #(
2607       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2609       esac
2610       case $ac_var in #(
2611       _ | IFS | as_nl) ;; #(
2612       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613       *) { eval $ac_var=; unset $ac_var;} ;;
2614       esac ;;
2615     esac
2616   done
2617   (set) 2>&1 |
2618     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619     *${as_nl}ac_space=\ *)
2620       sed -n \
2621         "s/'\''/'\''\\\\'\'''\''/g;
2622           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2623       ;; #(
2624     *)
2625       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2626       ;;
2627     esac |
2628     sort
2629 )
2630     echo
2631
2632     $as_echo "## ----------------- ##
2633 ## Output variables. ##
2634 ## ----------------- ##"
2635     echo
2636     for ac_var in $ac_subst_vars
2637     do
2638       eval ac_val=\$$ac_var
2639       case $ac_val in
2640       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641       esac
2642       $as_echo "$ac_var='\''$ac_val'\''"
2643     done | sort
2644     echo
2645
2646     if test -n "$ac_subst_files"; then
2647       $as_echo "## ------------------- ##
2648 ## File substitutions. ##
2649 ## ------------------- ##"
2650       echo
2651       for ac_var in $ac_subst_files
2652       do
2653         eval ac_val=\$$ac_var
2654         case $ac_val in
2655         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656         esac
2657         $as_echo "$ac_var='\''$ac_val'\''"
2658       done | sort
2659       echo
2660     fi
2661
2662     if test -s confdefs.h; then
2663       $as_echo "## ----------- ##
2664 ## confdefs.h. ##
2665 ## ----------- ##"
2666       echo
2667       cat confdefs.h
2668       echo
2669     fi
2670     test "$ac_signal" != 0 &&
2671       $as_echo "$as_me: caught signal $ac_signal"
2672     $as_echo "$as_me: exit $exit_status"
2673   } >&5
2674   rm -f core *.core core.conftest.* &&
2675     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2676     exit $exit_status
2677 ' 0
2678 for ac_signal in 1 2 13 15; do
2679   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2680 done
2681 ac_signal=0
2682
2683 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2684 rm -f -r conftest* confdefs.h
2685
2686 $as_echo "/* confdefs.h */" > confdefs.h
2687
2688 # Predefined preprocessor variables.
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_NAME "$PACKAGE_NAME"
2692 _ACEOF
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2696 _ACEOF
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2700 _ACEOF
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_STRING "$PACKAGE_STRING"
2704 _ACEOF
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2708 _ACEOF
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_URL "$PACKAGE_URL"
2712 _ACEOF
2713
2714
2715 # Let the site file select an alternate cache file if it wants to.
2716 # Prefer an explicitly selected file to automatically selected ones.
2717 ac_site_file1=NONE
2718 ac_site_file2=NONE
2719 if test -n "$CONFIG_SITE"; then
2720   # We do not want a PATH search for config.site.
2721   case $CONFIG_SITE in #((
2722     -*)  ac_site_file1=./$CONFIG_SITE;;
2723     */*) ac_site_file1=$CONFIG_SITE;;
2724     *)   ac_site_file1=./$CONFIG_SITE;;
2725   esac
2726 elif test "x$prefix" != xNONE; then
2727   ac_site_file1=$prefix/share/config.site
2728   ac_site_file2=$prefix/etc/config.site
2729 else
2730   ac_site_file1=$ac_default_prefix/share/config.site
2731   ac_site_file2=$ac_default_prefix/etc/config.site
2732 fi
2733 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2734 do
2735   test "x$ac_site_file" = xNONE && continue
2736   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2737     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2738 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2739     sed 's/^/| /' "$ac_site_file" >&5
2740     . "$ac_site_file" \
2741       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 as_fn_error $? "failed to load site script $ac_site_file
2744 See \`config.log' for more details" "$LINENO" 5; }
2745   fi
2746 done
2747
2748
2749 # Check that the precious variables saved in the cache have kept the same
2750 # value.
2751 ac_cache_corrupted=false
2752 for ac_var in $ac_precious_vars; do
2753   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754   eval ac_new_set=\$ac_env_${ac_var}_set
2755   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756   eval ac_new_val=\$ac_env_${ac_var}_value
2757   case $ac_old_set,$ac_new_set in
2758     set,)
2759       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2760 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761       ac_cache_corrupted=: ;;
2762     ,set)
2763       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2764 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2765       ac_cache_corrupted=: ;;
2766     ,);;
2767     *)
2768       if test "x$ac_old_val" != "x$ac_new_val"; then
2769         # differences in whitespace do not lead to failure.
2770         ac_old_val_w=`echo x $ac_old_val`
2771         ac_new_val_w=`echo x $ac_new_val`
2772         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2774 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2775           ac_cache_corrupted=:
2776         else
2777           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2778 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779           eval $ac_var=\$ac_old_val
2780         fi
2781         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2782 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2783         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2784 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2785       fi;;
2786   esac
2787   # Pass precious variables to config.status.
2788   if test "$ac_new_set" = set; then
2789     case $ac_new_val in
2790     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2791     *) ac_arg=$ac_var=$ac_new_val ;;
2792     esac
2793     case " $ac_configure_args " in
2794       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2795       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2796     esac
2797   fi
2798 done
2799 if $ac_cache_corrupted; then
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2803 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2804   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2805 fi
2806 ## -------------------- ##
2807 ## Main body of script. ##
2808 ## -------------------- ##
2809
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843 ac_aux_dir=
2844 for ac_dir in build "$srcdir"/build; do
2845   if test -f "$ac_dir/install-sh"; then
2846     ac_aux_dir=$ac_dir
2847     ac_install_sh="$ac_aux_dir/install-sh -c"
2848     break
2849   elif test -f "$ac_dir/install.sh"; then
2850     ac_aux_dir=$ac_dir
2851     ac_install_sh="$ac_aux_dir/install.sh -c"
2852     break
2853   elif test -f "$ac_dir/shtool"; then
2854     ac_aux_dir=$ac_dir
2855     ac_install_sh="$ac_aux_dir/shtool install -c"
2856     break
2857   fi
2858 done
2859 if test -z "$ac_aux_dir"; then
2860   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2861 fi
2862
2863 # These three variables are undocumented and unsupported,
2864 # and are intended to be withdrawn in a future Autoconf release.
2865 # They can cause serious problems if a builder's source tree is in a directory
2866 # whose full name contains unusual characters.
2867 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2868 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2869 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2870
2871
2872 eval `$ac_aux_dir/version.sh`
2873 if test -z "$OL_STRING"; then
2874         as_fn_error $? "could not determine version" "$LINENO" 5
2875 fi
2876
2877 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2878         ac_cv_shtool="$ac_aux_dir/shtool"
2879 else
2880         as_fn_error $? "no shtool found in $ac_aux_dir" "$LINENO" 5
2881 fi
2882
2883 SHTOOL="$ac_cv_shtool"
2884
2885 TB="" TN=""
2886 if test -t 1; then
2887         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2888         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2889 fi
2890
2891 OPENLDAP_REPO=""
2892 if test -d $ac_aux_dir/../.git; then
2893         OPENLDAP_REPO="(from Git clone) "
2894 elif test -d $ac_aux_dir/CVS; then
2895         OPENLDAP_REPO="(from CVS checkout) "
2896 fi
2897
2898 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2899
2900 # Make sure we can run config.sub.
2901 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2902   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2905 $as_echo_n "checking build system type... " >&6; }
2906 if ${ac_cv_build+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   ac_build_alias=$build_alias
2910 test "x$ac_build_alias" = x &&
2911   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2912 test "x$ac_build_alias" = x &&
2913   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2914 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2915   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2916
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2919 $as_echo "$ac_cv_build" >&6; }
2920 case $ac_cv_build in
2921 *-*-*) ;;
2922 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2923 esac
2924 build=$ac_cv_build
2925 ac_save_IFS=$IFS; IFS='-'
2926 set x $ac_cv_build
2927 shift
2928 build_cpu=$1
2929 build_vendor=$2
2930 shift; shift
2931 # Remember, the first character of IFS is used to create $*,
2932 # except with old shells:
2933 build_os=$*
2934 IFS=$ac_save_IFS
2935 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2936
2937
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2939 $as_echo_n "checking host system type... " >&6; }
2940 if ${ac_cv_host+:} false; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   if test "x$host_alias" = x; then
2944   ac_cv_host=$ac_cv_build
2945 else
2946   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2947     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2948 fi
2949
2950 fi
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2952 $as_echo "$ac_cv_host" >&6; }
2953 case $ac_cv_host in
2954 *-*-*) ;;
2955 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2956 esac
2957 host=$ac_cv_host
2958 ac_save_IFS=$IFS; IFS='-'
2959 set x $ac_cv_host
2960 shift
2961 host_cpu=$1
2962 host_vendor=$2
2963 shift; shift
2964 # Remember, the first character of IFS is used to create $*,
2965 # except with old shells:
2966 host_os=$*
2967 IFS=$ac_save_IFS
2968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2969
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2972 $as_echo_n "checking target system type... " >&6; }
2973 if ${ac_cv_target+:} false; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test "x$target_alias" = x; then
2977   ac_cv_target=$ac_cv_host
2978 else
2979   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2980     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2981 fi
2982
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2985 $as_echo "$ac_cv_target" >&6; }
2986 case $ac_cv_target in
2987 *-*-*) ;;
2988 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2989 esac
2990 target=$ac_cv_target
2991 ac_save_IFS=$IFS; IFS='-'
2992 set x $ac_cv_target
2993 shift
2994 target_cpu=$1
2995 target_vendor=$2
2996 shift; shift
2997 # Remember, the first character of IFS is used to create $*,
2998 # except with old shells:
2999 target_os=$*
3000 IFS=$ac_save_IFS
3001 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3002
3003
3004 # The aliases save the names the user supplied, while $host etc.
3005 # will get canonicalized.
3006 test -n "$target_alias" &&
3007   test "$program_prefix$program_suffix$program_transform_name" = \
3008     NONENONEs,x,x, &&
3009   program_prefix=${target_alias}-
3010
3011 am__api_version="1.9"
3012 # Find a good install program.  We prefer a C program (faster),
3013 # so one script is as good as another.  But avoid the broken or
3014 # incompatible versions:
3015 # SysV /etc/install, /usr/sbin/install
3016 # SunOS /usr/etc/install
3017 # IRIX /sbin/install
3018 # AIX /bin/install
3019 # AmigaOS /C/install, which installs bootblocks on floppy discs
3020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3023 # OS/2's system install, which has a completely different semantic
3024 # ./install, which can be erroneously created by make from ./install.sh.
3025 # Reject install programs that cannot install multiple files.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3027 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3028 if test -z "$INSTALL"; then
3029 if ${ac_cv_path_install+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037     # Account for people who put trailing slashes in PATH elements.
3038 case $as_dir/ in #((
3039   ./ | .// | /[cC]/* | \
3040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3041   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3042   /usr/ucb/* ) ;;
3043   *)
3044     # OSF1 and SCO ODT 3.0 have their own names for install.
3045     # Don't use installbsd from OSF since it installs stuff as root
3046     # by default.
3047     for ac_prog in ginstall scoinst install; do
3048       for ac_exec_ext in '' $ac_executable_extensions; do
3049         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3050           if test $ac_prog = install &&
3051             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052             # AIX install.  It has an incompatible calling convention.
3053             :
3054           elif test $ac_prog = install &&
3055             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056             # program-specific install script used by HP pwplus--don't use.
3057             :
3058           else
3059             rm -rf conftest.one conftest.two conftest.dir
3060             echo one > conftest.one
3061             echo two > conftest.two
3062             mkdir conftest.dir
3063             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3064               test -s conftest.one && test -s conftest.two &&
3065               test -s conftest.dir/conftest.one &&
3066               test -s conftest.dir/conftest.two
3067             then
3068               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3069               break 3
3070             fi
3071           fi
3072         fi
3073       done
3074     done
3075     ;;
3076 esac
3077
3078   done
3079 IFS=$as_save_IFS
3080
3081 rm -rf conftest.one conftest.two conftest.dir
3082
3083 fi
3084   if test "${ac_cv_path_install+set}" = set; then
3085     INSTALL=$ac_cv_path_install
3086   else
3087     # As a last resort, use the slow shell script.  Don't cache a
3088     # value for INSTALL within a source directory, because that will
3089     # break other packages using the cache if that directory is
3090     # removed, or if the value is a relative name.
3091     INSTALL=$ac_install_sh
3092   fi
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3095 $as_echo "$INSTALL" >&6; }
3096
3097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3098 # It thinks the first close brace ends the variable substitution.
3099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3100
3101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3102
3103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3104
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3106 $as_echo_n "checking whether build environment is sane... " >&6; }
3107 # Just in case
3108 sleep 1
3109 echo timestamp > conftest.file
3110 # Do `set' in a subshell so we don't clobber the current shell's
3111 # arguments.  Must try -L first in case configure is actually a
3112 # symlink; some systems play weird games with the mod time of symlinks
3113 # (eg FreeBSD returns the mod time of the symlink's containing
3114 # directory).
3115 if (
3116    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3117    if test "$*" = "X"; then
3118       # -L didn't work.
3119       set X `ls -t $srcdir/configure conftest.file`
3120    fi
3121    rm -f conftest.file
3122    if test "$*" != "X $srcdir/configure conftest.file" \
3123       && test "$*" != "X conftest.file $srcdir/configure"; then
3124
3125       # If neither matched, then we have a broken ls.  This can happen
3126       # if, for instance, CONFIG_SHELL is bash and it inherits a
3127       # broken ls alias from the environment.  This has actually
3128       # happened.  Such a system could not be considered "sane".
3129       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3130 alias in your environment" "$LINENO" 5
3131    fi
3132
3133    test "$2" = conftest.file
3134    )
3135 then
3136    # Ok.
3137    :
3138 else
3139    as_fn_error $? "newly created file is older than distributed files!
3140 Check your system clock" "$LINENO" 5
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3144 test "$program_prefix" != NONE &&
3145   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3146 # Use a double $ so make ignores it.
3147 test "$program_suffix" != NONE &&
3148   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3149 # Double any \ or $.
3150 # By default was `s,x,x', remove it if useless.
3151 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3152 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3153
3154 # expand $ac_aux_dir to an absolute path
3155 am_aux_dir=`cd $ac_aux_dir && pwd`
3156
3157 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3158 # Use eval to expand $SHELL
3159 if eval "$MISSING --run true"; then
3160   am_missing_run="$MISSING --run "
3161 else
3162   am_missing_run=
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3164 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3165 fi
3166
3167 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3168   # We used to keeping the `.' as first argument, in order to
3169   # allow $(mkdir_p) to be used without argument.  As in
3170   #   $(mkdir_p) $(somedir)
3171   # where $(somedir) is conditionally defined.  However this is wrong
3172   # for two reasons:
3173   #  1. if the package is installed by a user who cannot write `.'
3174   #     make install will fail,
3175   #  2. the above comment should most certainly read
3176   #     $(mkdir_p) $(DESTDIR)$(somedir)
3177   #     so it does not work when $(somedir) is undefined and
3178   #     $(DESTDIR) is not.
3179   #  To support the latter case, we have to write
3180   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3181   #  so the `.' trick is pointless.
3182   mkdir_p='mkdir -p --'
3183 else
3184   # On NextStep and OpenStep, the `mkdir' command does not
3185   # recognize any option.  It will interpret all options as
3186   # directories to create, and then abort because `.' already
3187   # exists.
3188   for d in ./-p ./--version;
3189   do
3190     test -d $d && rmdir $d
3191   done
3192   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3193   if test -f "$ac_aux_dir/mkinstalldirs"; then
3194     mkdir_p='$(mkinstalldirs)'
3195   else
3196     mkdir_p='$(install_sh) -d'
3197   fi
3198 fi
3199
3200 for ac_prog in gawk mawk nawk awk
3201 do
3202   # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_AWK+:} false; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   if test -n "$AWK"; then
3210   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217     for ac_exec_ext in '' $ac_executable_extensions; do
3218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219     ac_cv_prog_AWK="$ac_prog"
3220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224   done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 AWK=$ac_cv_prog_AWK
3230 if test -n "$AWK"; then
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3232 $as_echo "$AWK" >&6; }
3233 else
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239   test -n "$AWK" && break
3240 done
3241
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3243 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3244 set x ${MAKE-make}
3245 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3246 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   cat >conftest.make <<\_ACEOF
3250 SHELL = /bin/sh
3251 all:
3252         @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3255 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256   *@@@%%%=?*=@@@%%%*)
3257     eval ac_cv_prog_make_${ac_make}_set=yes;;
3258   *)
3259     eval ac_cv_prog_make_${ac_make}_set=no;;
3260 esac
3261 rm -f conftest.make
3262 fi
3263 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266   SET_MAKE=
3267 else
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270   SET_MAKE="MAKE=${MAKE-make}"
3271 fi
3272
3273 rm -rf .tst 2>/dev/null
3274 mkdir .tst 2>/dev/null
3275 if test -d .tst; then
3276   am__leading_dot=.
3277 else
3278   am__leading_dot=_
3279 fi
3280 rmdir .tst 2>/dev/null
3281
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284    test -f $srcdir/config.status; then
3285   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3286 fi
3287
3288 # test whether we have cygpath
3289 if test -z "$CYGPATH_W"; then
3290   if (cygpath --version) >/dev/null 2>/dev/null; then
3291     CYGPATH_W='cygpath -w'
3292   else
3293     CYGPATH_W=echo
3294   fi
3295 fi
3296
3297
3298 # Define the identity of the package.
3299  PACKAGE=$OL_PACKAGE
3300  VERSION=$OL_VERSION
3301
3302
3303 # Some tools Automake needs.
3304
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306
3307
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309
3310
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312
3313
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315
3316
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318
3319 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3320
3321 # Installed binaries are usually stripped using `strip' when the user
3322 # run `make install-strip'.  However `strip' might not be the right
3323 # tool to use in cross-compilation environments, therefore Automake
3324 # will honor the `STRIP' environment variable to overrule this program.
3325 if test "$cross_compiling" != no; then
3326   if test -n "$ac_tool_prefix"; then
3327   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}strip; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_STRIP+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   if test -n "$STRIP"; then
3335   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342     for ac_exec_ext in '' $ac_executable_extensions; do
3343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 STRIP=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3357 $as_echo "$STRIP" >&6; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 if test -z "$ac_cv_prog_STRIP"; then
3366   ac_ct_STRIP=$STRIP
3367   # Extract the first word of "strip", so it can be a program name with args.
3368 set dummy strip; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$ac_ct_STRIP"; then
3375   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384     ac_cv_prog_ac_ct_STRIP="strip"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3395 if test -n "$ac_ct_STRIP"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3397 $as_echo "$ac_ct_STRIP" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403   if test "x$ac_ct_STRIP" = x; then
3404     STRIP=":"
3405   else
3406     case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412     STRIP=$ac_ct_STRIP
3413   fi
3414 else
3415   STRIP="$ac_cv_prog_STRIP"
3416 fi
3417
3418 fi
3419 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3420
3421 # We need awk for the "check" target.  The system "awk" is bad on
3422 # some platforms.
3423 # Always define AMTAR for backward compatibility.
3424
3425 AMTAR=${AMTAR-"${am_missing_run}tar"}
3426
3427 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428
3429
3430
3431
3432
3433 cat >>confdefs.h <<_ACEOF
3434 #define OPENLDAP_PACKAGE "$PACKAGE"
3435 _ACEOF
3436
3437
3438 cat >>confdefs.h <<_ACEOF
3439 #define OPENLDAP_VERSION "$VERSION"
3440 _ACEOF
3441
3442
3443
3444 cat >>confdefs.h <<_ACEOF
3445 #define LDAP_VENDOR_VERSION $OL_API_INC
3446 _ACEOF
3447
3448
3449 cat >>confdefs.h <<_ACEOF
3450 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3451 _ACEOF
3452
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3456 _ACEOF
3457
3458
3459 cat >>confdefs.h <<_ACEOF
3460 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3461 _ACEOF
3462
3463
3464 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3465
3466 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3467
3468 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3469
3470
3471
3472
3473
3474 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3475
3476 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3477
3478 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3479
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3482 $as_echo_n "checking configure arguments... " >&6; }
3483
3484
3485 top_builddir=`pwd`
3486
3487 ldap_subdir="/openldap"
3488
3489
3490 # Check whether --with-subdir was given.
3491 if test "${with_subdir+set}" = set; then :
3492   withval=$with_subdir; case "$withval" in
3493         no) ldap_subdir=""
3494                 ;;
3495         yes)
3496                 ;;
3497         /*|\\*)
3498                 ldap_subdir="$withval"
3499                 ;;
3500         *)
3501                 ldap_subdir="/$withval"
3502                 ;;
3503 esac
3504
3505 fi
3506
3507
3508 # OpenLDAP --enable-debug
3509
3510         # Check whether --enable-debug was given.
3511 if test "${enable_debug+set}" = set; then :
3512   enableval=$enable_debug;
3513         ol_arg=invalid
3514         for ol_val in no yes traditional ; do
3515                 if test "$enableval" = "$ol_val" ; then
3516                         ol_arg="$ol_val"
3517                 fi
3518         done
3519         if test "$ol_arg" = "invalid" ; then
3520                 as_fn_error $? "bad value $enableval for --enable-debug" "$LINENO" 5
3521         fi
3522         ol_enable_debug="$ol_arg"
3523
3524 else
3525         ol_enable_debug=yes
3526 fi
3527
3528 # end --enable-debug
3529 # OpenLDAP --enable-dynamic
3530
3531         # Check whether --enable-dynamic was given.
3532 if test "${enable_dynamic+set}" = set; then :
3533   enableval=$enable_dynamic;
3534         ol_arg=invalid
3535         for ol_val in auto yes no ; do
3536                 if test "$enableval" = "$ol_val" ; then
3537                         ol_arg="$ol_val"
3538                 fi
3539         done
3540         if test "$ol_arg" = "invalid" ; then
3541                 as_fn_error $? "bad value $enableval for --enable-dynamic" "$LINENO" 5
3542         fi
3543         ol_enable_dynamic="$ol_arg"
3544
3545 else
3546         ol_enable_dynamic=no
3547 fi
3548
3549 # end --enable-dynamic
3550 # OpenLDAP --enable-syslog
3551
3552         # Check whether --enable-syslog was given.
3553 if test "${enable_syslog+set}" = set; then :
3554   enableval=$enable_syslog;
3555         ol_arg=invalid
3556         for ol_val in auto yes no ; do
3557                 if test "$enableval" = "$ol_val" ; then
3558                         ol_arg="$ol_val"
3559                 fi
3560         done
3561         if test "$ol_arg" = "invalid" ; then
3562                 as_fn_error $? "bad value $enableval for --enable-syslog" "$LINENO" 5
3563         fi
3564         ol_enable_syslog="$ol_arg"
3565
3566 else
3567         ol_enable_syslog=auto
3568 fi
3569
3570 # end --enable-syslog
3571 # OpenLDAP --enable-proctitle
3572
3573         # Check whether --enable-proctitle was given.
3574 if test "${enable_proctitle+set}" = set; then :
3575   enableval=$enable_proctitle;
3576         ol_arg=invalid
3577         for ol_val in auto yes no ; do
3578                 if test "$enableval" = "$ol_val" ; then
3579                         ol_arg="$ol_val"
3580                 fi
3581         done
3582         if test "$ol_arg" = "invalid" ; then
3583                 as_fn_error $? "bad value $enableval for --enable-proctitle" "$LINENO" 5
3584         fi
3585         ol_enable_proctitle="$ol_arg"
3586
3587 else
3588         ol_enable_proctitle=yes
3589 fi
3590
3591 # end --enable-proctitle
3592 ol_enable_referrals=${ol_enable_referrals-no}
3593 # OpenLDAP --enable-ipv6
3594
3595         # Check whether --enable-ipv6 was given.
3596 if test "${enable_ipv6+set}" = set; then :
3597   enableval=$enable_ipv6;
3598         ol_arg=invalid
3599         for ol_val in auto yes no ; do
3600                 if test "$enableval" = "$ol_val" ; then
3601                         ol_arg="$ol_val"
3602                 fi
3603         done
3604         if test "$ol_arg" = "invalid" ; then
3605                 as_fn_error $? "bad value $enableval for --enable-ipv6" "$LINENO" 5
3606         fi
3607         ol_enable_ipv6="$ol_arg"
3608
3609 else
3610         ol_enable_ipv6=auto
3611 fi
3612
3613 # end --enable-ipv6
3614 # OpenLDAP --enable-local
3615
3616         # Check whether --enable-local was given.
3617 if test "${enable_local+set}" = set; then :
3618   enableval=$enable_local;
3619         ol_arg=invalid
3620         for ol_val in auto yes no ; do
3621                 if test "$enableval" = "$ol_val" ; then
3622                         ol_arg="$ol_val"
3623                 fi
3624         done
3625         if test "$ol_arg" = "invalid" ; then
3626                 as_fn_error $? "bad value $enableval for --enable-local" "$LINENO" 5
3627         fi
3628         ol_enable_local="$ol_arg"
3629
3630 else
3631         ol_enable_local=auto
3632 fi
3633
3634 # end --enable-local
3635
3636 # OpenLDAP --with-cyrus_sasl
3637
3638 # Check whether --with-cyrus_sasl was given.
3639 if test "${with_cyrus_sasl+set}" = set; then :
3640   withval=$with_cyrus_sasl;
3641         ol_arg=invalid
3642         for ol_val in auto yes no  ; do
3643                 if test "$withval" = "$ol_val" ; then
3644                         ol_arg="$ol_val"
3645                 fi
3646         done
3647         if test "$ol_arg" = "invalid" ; then
3648                 as_fn_error $? "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3649         fi
3650         ol_with_cyrus_sasl="$ol_arg"
3651
3652 else
3653         ol_with_cyrus_sasl="auto"
3654 fi
3655 # end --with-cyrus_sasl
3656
3657 # OpenLDAP --with-fetch
3658
3659 # Check whether --with-fetch was given.
3660 if test "${with_fetch+set}" = set; then :
3661   withval=$with_fetch;
3662         ol_arg=invalid
3663         for ol_val in auto yes no  ; do
3664                 if test "$withval" = "$ol_val" ; then
3665                         ol_arg="$ol_val"
3666                 fi
3667         done
3668         if test "$ol_arg" = "invalid" ; then
3669                 as_fn_error $? "bad value $withval for --with-fetch" "$LINENO" 5
3670         fi
3671         ol_with_fetch="$ol_arg"
3672
3673 else
3674         ol_with_fetch="auto"
3675 fi
3676 # end --with-fetch
3677
3678 # OpenLDAP --with-threads
3679
3680 # Check whether --with-threads was given.
3681 if test "${with_threads+set}" = set; then :
3682   withval=$with_threads;
3683         ol_arg=invalid
3684         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
3685                 if test "$withval" = "$ol_val" ; then
3686                         ol_arg="$ol_val"
3687                 fi
3688         done
3689         if test "$ol_arg" = "invalid" ; then
3690                 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
3691         fi
3692         ol_with_threads="$ol_arg"
3693
3694 else
3695         ol_with_threads="auto"
3696 fi
3697 # end --with-threads
3698
3699 # OpenLDAP --with-tls
3700
3701 # Check whether --with-tls was given.
3702 if test "${with_tls+set}" = set; then :
3703   withval=$with_tls;
3704         ol_arg=invalid
3705         for ol_val in auto openssl gnutls moznss yes no  ; do
3706                 if test "$withval" = "$ol_val" ; then
3707                         ol_arg="$ol_val"
3708                 fi
3709         done
3710         if test "$ol_arg" = "invalid" ; then
3711                 as_fn_error $? "bad value $withval for --with-tls" "$LINENO" 5
3712         fi
3713         ol_with_tls="$ol_arg"
3714
3715 else
3716         ol_with_tls="auto"
3717 fi
3718 # end --with-tls
3719
3720 # OpenLDAP --with-yielding_select
3721
3722 # Check whether --with-yielding_select was given.
3723 if test "${with_yielding_select+set}" = set; then :
3724   withval=$with_yielding_select;
3725         ol_arg=invalid
3726         for ol_val in auto yes no manual  ; do
3727                 if test "$withval" = "$ol_val" ; then
3728                         ol_arg="$ol_val"
3729                 fi
3730         done
3731         if test "$ol_arg" = "invalid" ; then
3732                 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
3733         fi
3734         ol_with_yielding_select="$ol_arg"
3735
3736 else
3737         ol_with_yielding_select="auto"
3738 fi
3739 # end --with-yielding_select
3740
3741 # OpenLDAP --with-mp
3742
3743 # Check whether --with-mp was given.
3744 if test "${with_mp+set}" = set; then :
3745   withval=$with_mp;
3746         ol_arg=invalid
3747         for ol_val in auto longlong long bignum gmp yes no ; do
3748                 if test "$withval" = "$ol_val" ; then
3749                         ol_arg="$ol_val"
3750                 fi
3751         done
3752         if test "$ol_arg" = "invalid" ; then
3753                 as_fn_error $? "bad value $withval for --with-mp" "$LINENO" 5
3754         fi
3755         ol_with_mp="$ol_arg"
3756
3757 else
3758         ol_with_mp="auto"
3759 fi
3760 # end --with-mp
3761
3762 # OpenLDAP --with-odbc
3763
3764 # Check whether --with-odbc was given.
3765 if test "${with_odbc+set}" = set; then :
3766   withval=$with_odbc;
3767         ol_arg=invalid
3768         for ol_val in auto iodbc unixodbc odbc32  ; do
3769                 if test "$withval" = "$ol_val" ; then
3770                         ol_arg="$ol_val"
3771                 fi
3772         done
3773         if test "$ol_arg" = "invalid" ; then
3774                 as_fn_error $? "bad value $withval for --with-odbc" "$LINENO" 5
3775         fi
3776         ol_with_odbc="$ol_arg"
3777
3778 else
3779         ol_with_odbc="auto"
3780 fi
3781 # end --with-odbc
3782
3783
3784
3785 # Check whether --enable-xxslapdoptions was given.
3786 if test "${enable_xxslapdoptions+set}" = set; then :
3787   enableval=$enable_xxslapdoptions;
3788 fi
3789
3790 # OpenLDAP --enable-slapd
3791
3792         # Check whether --enable-slapd was given.
3793 if test "${enable_slapd+set}" = set; then :
3794   enableval=$enable_slapd;
3795         ol_arg=invalid
3796         for ol_val in auto yes no ; do
3797                 if test "$enableval" = "$ol_val" ; then
3798                         ol_arg="$ol_val"
3799                 fi
3800         done
3801         if test "$ol_arg" = "invalid" ; then
3802                 as_fn_error $? "bad value $enableval for --enable-slapd" "$LINENO" 5
3803         fi
3804         ol_enable_slapd="$ol_arg"
3805
3806 else
3807         ol_enable_slapd=yes
3808 fi
3809
3810 # end --enable-slapd
3811 # OpenLDAP --enable-dynacl
3812
3813         # Check whether --enable-dynacl was given.
3814 if test "${enable_dynacl+set}" = set; then :
3815   enableval=$enable_dynacl;
3816         ol_arg=invalid
3817         for ol_val in auto yes no ; do
3818                 if test "$enableval" = "$ol_val" ; then
3819                         ol_arg="$ol_val"
3820                 fi
3821         done
3822         if test "$ol_arg" = "invalid" ; then
3823                 as_fn_error $? "bad value $enableval for --enable-dynacl" "$LINENO" 5
3824         fi
3825         ol_enable_dynacl="$ol_arg"
3826
3827 else
3828         ol_enable_dynacl=no
3829 fi
3830
3831 # end --enable-dynacl
3832 # OpenLDAP --enable-aci
3833
3834         # Check whether --enable-aci was given.
3835 if test "${enable_aci+set}" = set; then :
3836   enableval=$enable_aci;
3837         ol_arg=invalid
3838         for ol_val in no yes mod ; do
3839                 if test "$enableval" = "$ol_val" ; then
3840                         ol_arg="$ol_val"
3841                 fi
3842         done
3843         if test "$ol_arg" = "invalid" ; then
3844                 as_fn_error $? "bad value $enableval for --enable-aci" "$LINENO" 5
3845         fi
3846         ol_enable_aci="$ol_arg"
3847
3848 else
3849         ol_enable_aci=no
3850 fi
3851
3852 # end --enable-aci
3853 # OpenLDAP --enable-cleartext
3854
3855         # Check whether --enable-cleartext was given.
3856 if test "${enable_cleartext+set}" = set; then :
3857   enableval=$enable_cleartext;
3858         ol_arg=invalid
3859         for ol_val in auto yes no ; do
3860                 if test "$enableval" = "$ol_val" ; then
3861                         ol_arg="$ol_val"
3862                 fi
3863         done
3864         if test "$ol_arg" = "invalid" ; then
3865                 as_fn_error $? "bad value $enableval for --enable-cleartext" "$LINENO" 5
3866         fi
3867         ol_enable_cleartext="$ol_arg"
3868
3869 else
3870         ol_enable_cleartext=yes
3871 fi
3872
3873 # end --enable-cleartext
3874 # OpenLDAP --enable-crypt
3875
3876         # Check whether --enable-crypt was given.
3877 if test "${enable_crypt+set}" = set; then :
3878   enableval=$enable_crypt;
3879         ol_arg=invalid
3880         for ol_val in auto yes no ; do
3881                 if test "$enableval" = "$ol_val" ; then
3882                         ol_arg="$ol_val"
3883                 fi
3884         done
3885         if test "$ol_arg" = "invalid" ; then
3886                 as_fn_error $? "bad value $enableval for --enable-crypt" "$LINENO" 5
3887         fi
3888         ol_enable_crypt="$ol_arg"
3889
3890 else
3891         ol_enable_crypt=no
3892 fi
3893
3894 # end --enable-crypt
3895 # OpenLDAP --enable-lmpasswd
3896
3897         # Check whether --enable-lmpasswd was given.
3898 if test "${enable_lmpasswd+set}" = set; then :
3899   enableval=$enable_lmpasswd;
3900         ol_arg=invalid
3901         for ol_val in auto yes no ; do
3902                 if test "$enableval" = "$ol_val" ; then
3903                         ol_arg="$ol_val"
3904                 fi
3905         done
3906         if test "$ol_arg" = "invalid" ; then
3907                 as_fn_error $? "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3908         fi
3909         ol_enable_lmpasswd="$ol_arg"
3910
3911 else
3912         ol_enable_lmpasswd=no
3913 fi
3914
3915 # end --enable-lmpasswd
3916 # OpenLDAP --enable-spasswd
3917
3918         # Check whether --enable-spasswd was given.
3919 if test "${enable_spasswd+set}" = set; then :
3920   enableval=$enable_spasswd;
3921         ol_arg=invalid
3922         for ol_val in auto yes no ; do
3923                 if test "$enableval" = "$ol_val" ; then
3924                         ol_arg="$ol_val"
3925                 fi
3926         done
3927         if test "$ol_arg" = "invalid" ; then
3928                 as_fn_error $? "bad value $enableval for --enable-spasswd" "$LINENO" 5
3929         fi
3930         ol_enable_spasswd="$ol_arg"
3931
3932 else
3933         ol_enable_spasswd=no
3934 fi
3935
3936 # end --enable-spasswd
3937 # OpenLDAP --enable-modules
3938
3939         # Check whether --enable-modules was given.
3940 if test "${enable_modules+set}" = set; then :
3941   enableval=$enable_modules;
3942         ol_arg=invalid
3943         for ol_val in auto yes no ; do
3944                 if test "$enableval" = "$ol_val" ; then
3945                         ol_arg="$ol_val"
3946                 fi
3947         done
3948         if test "$ol_arg" = "invalid" ; then
3949                 as_fn_error $? "bad value $enableval for --enable-modules" "$LINENO" 5
3950         fi
3951         ol_enable_modules="$ol_arg"
3952
3953 else
3954         ol_enable_modules=no
3955 fi
3956
3957 # end --enable-modules
3958 # OpenLDAP --enable-rewrite
3959
3960         # Check whether --enable-rewrite was given.
3961 if test "${enable_rewrite+set}" = set; then :
3962   enableval=$enable_rewrite;
3963         ol_arg=invalid
3964         for ol_val in auto yes no ; do
3965                 if test "$enableval" = "$ol_val" ; then
3966                         ol_arg="$ol_val"
3967                 fi
3968         done
3969         if test "$ol_arg" = "invalid" ; then
3970                 as_fn_error $? "bad value $enableval for --enable-rewrite" "$LINENO" 5
3971         fi
3972         ol_enable_rewrite="$ol_arg"
3973
3974 else
3975         ol_enable_rewrite=auto
3976 fi
3977
3978 # end --enable-rewrite
3979 # OpenLDAP --enable-rlookups
3980
3981         # Check whether --enable-rlookups was given.
3982 if test "${enable_rlookups+set}" = set; then :
3983   enableval=$enable_rlookups;
3984         ol_arg=invalid
3985         for ol_val in auto yes no ; do
3986                 if test "$enableval" = "$ol_val" ; then
3987                         ol_arg="$ol_val"
3988                 fi
3989         done
3990         if test "$ol_arg" = "invalid" ; then
3991                 as_fn_error $? "bad value $enableval for --enable-rlookups" "$LINENO" 5
3992         fi
3993         ol_enable_rlookups="$ol_arg"
3994
3995 else
3996         ol_enable_rlookups=no
3997 fi
3998
3999 # end --enable-rlookups
4000 # OpenLDAP --enable-slapi
4001
4002         # Check whether --enable-slapi was given.
4003 if test "${enable_slapi+set}" = set; then :
4004   enableval=$enable_slapi;
4005         ol_arg=invalid
4006         for ol_val in auto yes no ; do
4007                 if test "$enableval" = "$ol_val" ; then
4008                         ol_arg="$ol_val"
4009                 fi
4010         done
4011         if test "$ol_arg" = "invalid" ; then
4012                 as_fn_error $? "bad value $enableval for --enable-slapi" "$LINENO" 5
4013         fi
4014         ol_enable_slapi="$ol_arg"
4015
4016 else
4017         ol_enable_slapi=no
4018 fi
4019
4020 # end --enable-slapi
4021 # OpenLDAP --enable-slp
4022
4023         # Check whether --enable-slp was given.
4024 if test "${enable_slp+set}" = set; then :
4025   enableval=$enable_slp;
4026         ol_arg=invalid
4027         for ol_val in auto yes no ; do
4028                 if test "$enableval" = "$ol_val" ; then
4029                         ol_arg="$ol_val"
4030                 fi
4031         done
4032         if test "$ol_arg" = "invalid" ; then
4033                 as_fn_error $? "bad value $enableval for --enable-slp" "$LINENO" 5
4034         fi
4035         ol_enable_slp="$ol_arg"
4036
4037 else
4038         ol_enable_slp=no
4039 fi
4040
4041 # end --enable-slp
4042 # OpenLDAP --enable-wrappers
4043
4044         # Check whether --enable-wrappers was given.
4045 if test "${enable_wrappers+set}" = set; then :
4046   enableval=$enable_wrappers;
4047         ol_arg=invalid
4048         for ol_val in auto yes no ; do
4049                 if test "$enableval" = "$ol_val" ; then
4050                         ol_arg="$ol_val"
4051                 fi
4052         done
4053         if test "$ol_arg" = "invalid" ; then
4054                 as_fn_error $? "bad value $enableval for --enable-wrappers" "$LINENO" 5
4055         fi
4056         ol_enable_wrappers="$ol_arg"
4057
4058 else
4059         ol_enable_wrappers=no
4060 fi
4061
4062 # end --enable-wrappers
4063
4064 Backends="bdb \
4065         dnssrv \
4066         hdb \
4067         ldap \
4068         mdb \
4069         meta \
4070         monitor \
4071         ndb \
4072         null \
4073         passwd \
4074         perl \
4075         relay \
4076         shell \
4077         sock \
4078         sql"
4079
4080 # Check whether --enable-xxslapbackends was given.
4081 if test "${enable_xxslapbackends+set}" = set; then :
4082   enableval=$enable_xxslapbackends;
4083 fi
4084
4085
4086 # OpenLDAP --enable-backends
4087
4088         # Check whether --enable-backends was given.
4089 if test "${enable_backends+set}" = set; then :
4090   enableval=$enable_backends;
4091         ol_arg=invalid
4092         for ol_val in no yes mod ; do
4093                 if test "$enableval" = "$ol_val" ; then
4094                         ol_arg="$ol_val"
4095                 fi
4096         done
4097         if test "$ol_arg" = "invalid" ; then
4098                 as_fn_error $? "bad value $enableval for --enable-backends" "$LINENO" 5
4099         fi
4100         ol_enable_backends="$ol_arg"
4101
4102 fi
4103
4104 # end --enable-backends
4105 # OpenLDAP --enable-bdb
4106
4107         # Check whether --enable-bdb was given.
4108 if test "${enable_bdb+set}" = set; then :
4109   enableval=$enable_bdb;
4110         ol_arg=invalid
4111         for ol_val in no yes mod ; do
4112                 if test "$enableval" = "$ol_val" ; then
4113                         ol_arg="$ol_val"
4114                 fi
4115         done
4116         if test "$ol_arg" = "invalid" ; then
4117                 as_fn_error $? "bad value $enableval for --enable-bdb" "$LINENO" 5
4118         fi
4119         ol_enable_bdb="$ol_arg"
4120
4121 else
4122         ol_enable_bdb=${ol_enable_backends:-no}
4123 fi
4124
4125 # end --enable-bdb
4126 # OpenLDAP --enable-dnssrv
4127
4128         # Check whether --enable-dnssrv was given.
4129 if test "${enable_dnssrv+set}" = set; then :
4130   enableval=$enable_dnssrv;
4131         ol_arg=invalid
4132         for ol_val in no yes mod ; do
4133                 if test "$enableval" = "$ol_val" ; then
4134                         ol_arg="$ol_val"
4135                 fi
4136         done
4137         if test "$ol_arg" = "invalid" ; then
4138                 as_fn_error $? "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4139         fi
4140         ol_enable_dnssrv="$ol_arg"
4141
4142 else
4143         ol_enable_dnssrv=${ol_enable_backends:-no}
4144 fi
4145
4146 # end --enable-dnssrv
4147 # OpenLDAP --enable-hdb
4148
4149         # Check whether --enable-hdb was given.
4150 if test "${enable_hdb+set}" = set; then :
4151   enableval=$enable_hdb;
4152         ol_arg=invalid
4153         for ol_val in no yes mod ; do
4154                 if test "$enableval" = "$ol_val" ; then
4155                         ol_arg="$ol_val"
4156                 fi
4157         done
4158         if test "$ol_arg" = "invalid" ; then
4159                 as_fn_error $? "bad value $enableval for --enable-hdb" "$LINENO" 5
4160         fi
4161         ol_enable_hdb="$ol_arg"
4162
4163 else
4164         ol_enable_hdb=${ol_enable_backends:-no}
4165 fi
4166
4167 # end --enable-hdb
4168 # OpenLDAP --enable-ldap
4169
4170         # Check whether --enable-ldap was given.
4171 if test "${enable_ldap+set}" = set; then :
4172   enableval=$enable_ldap;
4173         ol_arg=invalid
4174         for ol_val in no yes mod ; do
4175                 if test "$enableval" = "$ol_val" ; then
4176                         ol_arg="$ol_val"
4177                 fi
4178         done
4179         if test "$ol_arg" = "invalid" ; then
4180                 as_fn_error $? "bad value $enableval for --enable-ldap" "$LINENO" 5
4181         fi
4182         ol_enable_ldap="$ol_arg"
4183
4184 else
4185         ol_enable_ldap=${ol_enable_backends:-no}
4186 fi
4187
4188 # end --enable-ldap
4189 # OpenLDAP --enable-mdb
4190
4191         # Check whether --enable-mdb was given.
4192 if test "${enable_mdb+set}" = set; then :
4193   enableval=$enable_mdb;
4194         ol_arg=invalid
4195         for ol_val in no yes mod ; do
4196                 if test "$enableval" = "$ol_val" ; then
4197                         ol_arg="$ol_val"
4198                 fi
4199         done
4200         if test "$ol_arg" = "invalid" ; then
4201                 as_fn_error $? "bad value $enableval for --enable-mdb" "$LINENO" 5
4202         fi
4203         ol_enable_mdb="$ol_arg"
4204
4205 else
4206         ol_enable_mdb=${ol_enable_backends:-yes}
4207 fi
4208
4209 # end --enable-mdb
4210 # OpenLDAP --enable-meta
4211
4212         # Check whether --enable-meta was given.
4213 if test "${enable_meta+set}" = set; then :
4214   enableval=$enable_meta;
4215         ol_arg=invalid
4216         for ol_val in no yes mod ; do
4217                 if test "$enableval" = "$ol_val" ; then
4218                         ol_arg="$ol_val"
4219                 fi
4220         done
4221         if test "$ol_arg" = "invalid" ; then
4222                 as_fn_error $? "bad value $enableval for --enable-meta" "$LINENO" 5
4223         fi
4224         ol_enable_meta="$ol_arg"
4225
4226 else
4227         ol_enable_meta=${ol_enable_backends:-no}
4228 fi
4229
4230 # end --enable-meta
4231 # OpenLDAP --enable-monitor
4232
4233         # Check whether --enable-monitor was given.
4234 if test "${enable_monitor+set}" = set; then :
4235   enableval=$enable_monitor;
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-monitor" "$LINENO" 5
4244         fi
4245         ol_enable_monitor="$ol_arg"
4246
4247 else
4248         ol_enable_monitor=${ol_enable_backends:-yes}
4249 fi
4250
4251 # end --enable-monitor
4252 # OpenLDAP --enable-ndb
4253
4254         # Check whether --enable-ndb was given.
4255 if test "${enable_ndb+set}" = set; then :
4256   enableval=$enable_ndb;
4257         ol_arg=invalid
4258         for ol_val in no yes mod ; do
4259                 if test "$enableval" = "$ol_val" ; then
4260                         ol_arg="$ol_val"
4261                 fi
4262         done
4263         if test "$ol_arg" = "invalid" ; then
4264                 as_fn_error $? "bad value $enableval for --enable-ndb" "$LINENO" 5
4265         fi
4266         ol_enable_ndb="$ol_arg"
4267
4268 else
4269         ol_enable_ndb=${ol_enable_backends:-no}
4270 fi
4271
4272 # end --enable-ndb
4273 # OpenLDAP --enable-null
4274
4275         # Check whether --enable-null was given.
4276 if test "${enable_null+set}" = set; then :
4277   enableval=$enable_null;
4278         ol_arg=invalid
4279         for ol_val in no yes mod ; do
4280                 if test "$enableval" = "$ol_val" ; then
4281                         ol_arg="$ol_val"
4282                 fi
4283         done
4284         if test "$ol_arg" = "invalid" ; then
4285                 as_fn_error $? "bad value $enableval for --enable-null" "$LINENO" 5
4286         fi
4287         ol_enable_null="$ol_arg"
4288
4289 else
4290         ol_enable_null=${ol_enable_backends:-no}
4291 fi
4292
4293 # end --enable-null
4294 # OpenLDAP --enable-passwd
4295
4296         # Check whether --enable-passwd was given.
4297 if test "${enable_passwd+set}" = set; then :
4298   enableval=$enable_passwd;
4299         ol_arg=invalid
4300         for ol_val in no yes mod ; do
4301                 if test "$enableval" = "$ol_val" ; then
4302                         ol_arg="$ol_val"
4303                 fi
4304         done
4305         if test "$ol_arg" = "invalid" ; then
4306                 as_fn_error $? "bad value $enableval for --enable-passwd" "$LINENO" 5
4307         fi
4308         ol_enable_passwd="$ol_arg"
4309
4310 else
4311         ol_enable_passwd=${ol_enable_backends:-no}
4312 fi
4313
4314 # end --enable-passwd
4315 # OpenLDAP --enable-perl
4316
4317         # Check whether --enable-perl was given.
4318 if test "${enable_perl+set}" = set; then :
4319   enableval=$enable_perl;
4320         ol_arg=invalid
4321         for ol_val in no yes mod ; do
4322                 if test "$enableval" = "$ol_val" ; then
4323                         ol_arg="$ol_val"
4324                 fi
4325         done
4326         if test "$ol_arg" = "invalid" ; then
4327                 as_fn_error $? "bad value $enableval for --enable-perl" "$LINENO" 5
4328         fi
4329         ol_enable_perl="$ol_arg"
4330
4331 else
4332         ol_enable_perl=${ol_enable_backends:-no}
4333 fi
4334
4335 # end --enable-perl
4336 # OpenLDAP --enable-relay
4337
4338         # Check whether --enable-relay was given.
4339 if test "${enable_relay+set}" = set; then :
4340   enableval=$enable_relay;
4341         ol_arg=invalid
4342         for ol_val in no yes mod ; do
4343                 if test "$enableval" = "$ol_val" ; then
4344                         ol_arg="$ol_val"
4345                 fi
4346         done
4347         if test "$ol_arg" = "invalid" ; then
4348                 as_fn_error $? "bad value $enableval for --enable-relay" "$LINENO" 5
4349         fi
4350         ol_enable_relay="$ol_arg"
4351
4352 else
4353         ol_enable_relay=${ol_enable_backends:-yes}
4354 fi
4355
4356 # end --enable-relay
4357 # OpenLDAP --enable-shell
4358
4359         # Check whether --enable-shell was given.
4360 if test "${enable_shell+set}" = set; then :
4361   enableval=$enable_shell;
4362         ol_arg=invalid
4363         for ol_val in no yes mod ; do
4364                 if test "$enableval" = "$ol_val" ; then
4365                         ol_arg="$ol_val"
4366                 fi
4367         done
4368         if test "$ol_arg" = "invalid" ; then
4369                 as_fn_error $? "bad value $enableval for --enable-shell" "$LINENO" 5
4370         fi
4371         ol_enable_shell="$ol_arg"
4372
4373 else
4374         ol_enable_shell=${ol_enable_backends:-no}
4375 fi
4376
4377 # end --enable-shell
4378 # OpenLDAP --enable-sock
4379
4380         # Check whether --enable-sock was given.
4381 if test "${enable_sock+set}" = set; then :
4382   enableval=$enable_sock;
4383         ol_arg=invalid
4384         for ol_val in no yes mod ; do
4385                 if test "$enableval" = "$ol_val" ; then
4386                         ol_arg="$ol_val"
4387                 fi
4388         done
4389         if test "$ol_arg" = "invalid" ; then
4390                 as_fn_error $? "bad value $enableval for --enable-sock" "$LINENO" 5
4391         fi
4392         ol_enable_sock="$ol_arg"
4393
4394 else
4395         ol_enable_sock=${ol_enable_backends:-no}
4396 fi
4397
4398 # end --enable-sock
4399 # OpenLDAP --enable-sql
4400
4401         # Check whether --enable-sql was given.
4402 if test "${enable_sql+set}" = set; then :
4403   enableval=$enable_sql;
4404         ol_arg=invalid
4405         for ol_val in no yes mod ; do
4406                 if test "$enableval" = "$ol_val" ; then
4407                         ol_arg="$ol_val"
4408                 fi
4409         done
4410         if test "$ol_arg" = "invalid" ; then
4411                 as_fn_error $? "bad value $enableval for --enable-sql" "$LINENO" 5
4412         fi
4413         ol_enable_sql="$ol_arg"
4414
4415 else
4416         ol_enable_sql=${ol_enable_backends:-no}
4417 fi
4418
4419 # end --enable-sql
4420
4421 Overlays="accesslog \
4422         auditlog \
4423         collect \
4424         constraint \
4425         dds \
4426         deref \
4427         dyngroup \
4428         dynlist \
4429         memberof \
4430         ppolicy \
4431         proxycache \
4432         refint \
4433         retcode \
4434         rwm \
4435         seqmod \
4436         sssvlv \
4437         syncprov \
4438         translucent \
4439         unique \
4440         valsort"
4441
4442 # Check whether --enable-xxslapoverlays was given.
4443 if test "${enable_xxslapoverlays+set}" = set; then :
4444   enableval=$enable_xxslapoverlays;
4445 fi
4446
4447
4448 # OpenLDAP --enable-overlays
4449
4450         # Check whether --enable-overlays was given.
4451 if test "${enable_overlays+set}" = set; then :
4452   enableval=$enable_overlays;
4453         ol_arg=invalid
4454         for ol_val in no yes mod ; do
4455                 if test "$enableval" = "$ol_val" ; then
4456                         ol_arg="$ol_val"
4457                 fi
4458         done
4459         if test "$ol_arg" = "invalid" ; then
4460                 as_fn_error $? "bad value $enableval for --enable-overlays" "$LINENO" 5
4461         fi
4462         ol_enable_overlays="$ol_arg"
4463
4464 fi
4465
4466 # end --enable-overlays
4467 # OpenLDAP --enable-accesslog
4468
4469         # Check whether --enable-accesslog was given.
4470 if test "${enable_accesslog+set}" = set; then :
4471   enableval=$enable_accesslog;
4472         ol_arg=invalid
4473         for ol_val in no yes mod ; do
4474                 if test "$enableval" = "$ol_val" ; then
4475                         ol_arg="$ol_val"
4476                 fi
4477         done
4478         if test "$ol_arg" = "invalid" ; then
4479                 as_fn_error $? "bad value $enableval for --enable-accesslog" "$LINENO" 5
4480         fi
4481         ol_enable_accesslog="$ol_arg"
4482
4483 else
4484         ol_enable_accesslog=${ol_enable_overlays:-no}
4485 fi
4486
4487 # end --enable-accesslog
4488
4489 # OpenLDAP --enable-auditlog
4490
4491         # Check whether --enable-auditlog was given.
4492 if test "${enable_auditlog+set}" = set; then :
4493   enableval=$enable_auditlog;
4494         ol_arg=invalid
4495         for ol_val in no yes mod ; do
4496                 if test "$enableval" = "$ol_val" ; then
4497                         ol_arg="$ol_val"
4498                 fi
4499         done
4500         if test "$ol_arg" = "invalid" ; then
4501                 as_fn_error $? "bad value $enableval for --enable-auditlog" "$LINENO" 5
4502         fi
4503         ol_enable_auditlog="$ol_arg"
4504
4505 else
4506         ol_enable_auditlog=${ol_enable_overlays:-no}
4507 fi
4508
4509 # end --enable-auditlog
4510
4511 # OpenLDAP --enable-collect
4512
4513         # Check whether --enable-collect was given.
4514 if test "${enable_collect+set}" = set; then :
4515   enableval=$enable_collect;
4516         ol_arg=invalid
4517         for ol_val in no yes mod ; do
4518                 if test "$enableval" = "$ol_val" ; then
4519                         ol_arg="$ol_val"
4520                 fi
4521         done
4522         if test "$ol_arg" = "invalid" ; then
4523                 as_fn_error $? "bad value $enableval for --enable-collect" "$LINENO" 5
4524         fi
4525         ol_enable_collect="$ol_arg"
4526
4527 else
4528         ol_enable_collect=${ol_enable_overlays:-no}
4529 fi
4530
4531 # end --enable-collect
4532
4533 # OpenLDAP --enable-constraint
4534
4535         # Check whether --enable-constraint was given.
4536 if test "${enable_constraint+set}" = set; then :
4537   enableval=$enable_constraint;
4538         ol_arg=invalid
4539         for ol_val in no yes mod ; do
4540                 if test "$enableval" = "$ol_val" ; then
4541                         ol_arg="$ol_val"
4542                 fi
4543         done
4544         if test "$ol_arg" = "invalid" ; then
4545                 as_fn_error $? "bad value $enableval for --enable-constraint" "$LINENO" 5
4546         fi
4547         ol_enable_constraint="$ol_arg"
4548
4549 else
4550         ol_enable_constraint=${ol_enable_overlays:-no}
4551 fi
4552
4553 # end --enable-constraint
4554
4555 # OpenLDAP --enable-dds
4556
4557         # Check whether --enable-dds was given.
4558 if test "${enable_dds+set}" = set; then :
4559   enableval=$enable_dds;
4560         ol_arg=invalid
4561         for ol_val in no yes mod ; do
4562                 if test "$enableval" = "$ol_val" ; then
4563                         ol_arg="$ol_val"
4564                 fi
4565         done
4566         if test "$ol_arg" = "invalid" ; then
4567                 as_fn_error $? "bad value $enableval for --enable-dds" "$LINENO" 5
4568         fi
4569         ol_enable_dds="$ol_arg"
4570
4571 else
4572         ol_enable_dds=${ol_enable_overlays:-no}
4573 fi
4574
4575 # end --enable-dds
4576
4577 # OpenLDAP --enable-deref
4578
4579         # Check whether --enable-deref was given.
4580 if test "${enable_deref+set}" = set; then :
4581   enableval=$enable_deref;
4582         ol_arg=invalid
4583         for ol_val in no yes mod ; do
4584                 if test "$enableval" = "$ol_val" ; then
4585                         ol_arg="$ol_val"
4586                 fi
4587         done
4588         if test "$ol_arg" = "invalid" ; then
4589                 as_fn_error $? "bad value $enableval for --enable-deref" "$LINENO" 5
4590         fi
4591         ol_enable_deref="$ol_arg"
4592
4593 else
4594         ol_enable_deref=${ol_enable_overlays:-no}
4595 fi
4596
4597 # end --enable-deref
4598
4599 # OpenLDAP --enable-dyngroup
4600
4601         # Check whether --enable-dyngroup was given.
4602 if test "${enable_dyngroup+set}" = set; then :
4603   enableval=$enable_dyngroup;
4604         ol_arg=invalid
4605         for ol_val in no yes mod ; do
4606                 if test "$enableval" = "$ol_val" ; then
4607                         ol_arg="$ol_val"
4608                 fi
4609         done
4610         if test "$ol_arg" = "invalid" ; then
4611                 as_fn_error $? "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4612         fi
4613         ol_enable_dyngroup="$ol_arg"
4614
4615 else
4616         ol_enable_dyngroup=${ol_enable_overlays:-no}
4617 fi
4618
4619 # end --enable-dyngroup
4620
4621 # OpenLDAP --enable-dynlist
4622
4623         # Check whether --enable-dynlist was given.
4624 if test "${enable_dynlist+set}" = set; then :
4625   enableval=$enable_dynlist;
4626         ol_arg=invalid
4627         for ol_val in no yes mod ; do
4628                 if test "$enableval" = "$ol_val" ; then
4629                         ol_arg="$ol_val"
4630                 fi
4631         done
4632         if test "$ol_arg" = "invalid" ; then
4633                 as_fn_error $? "bad value $enableval for --enable-dynlist" "$LINENO" 5
4634         fi
4635         ol_enable_dynlist="$ol_arg"
4636
4637 else
4638         ol_enable_dynlist=${ol_enable_overlays:-no}
4639 fi
4640
4641 # end --enable-dynlist
4642
4643 # OpenLDAP --enable-memberof
4644
4645         # Check whether --enable-memberof was given.
4646 if test "${enable_memberof+set}" = set; then :
4647   enableval=$enable_memberof;
4648         ol_arg=invalid
4649         for ol_val in no yes mod ; do
4650                 if test "$enableval" = "$ol_val" ; then
4651                         ol_arg="$ol_val"
4652                 fi
4653         done
4654         if test "$ol_arg" = "invalid" ; then
4655                 as_fn_error $? "bad value $enableval for --enable-memberof" "$LINENO" 5
4656         fi
4657         ol_enable_memberof="$ol_arg"
4658
4659 else
4660         ol_enable_memberof=${ol_enable_overlays:-no}
4661 fi
4662
4663 # end --enable-memberof
4664
4665 # OpenLDAP --enable-ppolicy
4666
4667         # Check whether --enable-ppolicy was given.
4668 if test "${enable_ppolicy+set}" = set; then :
4669   enableval=$enable_ppolicy;
4670         ol_arg=invalid
4671         for ol_val in no yes mod ; do
4672                 if test "$enableval" = "$ol_val" ; then
4673                         ol_arg="$ol_val"
4674                 fi
4675         done
4676         if test "$ol_arg" = "invalid" ; then
4677                 as_fn_error $? "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4678         fi
4679         ol_enable_ppolicy="$ol_arg"
4680
4681 else
4682         ol_enable_ppolicy=${ol_enable_overlays:-no}
4683 fi
4684
4685 # end --enable-ppolicy
4686
4687 # OpenLDAP --enable-proxycache
4688
4689         # Check whether --enable-proxycache was given.
4690 if test "${enable_proxycache+set}" = set; then :
4691   enableval=$enable_proxycache;
4692         ol_arg=invalid
4693         for ol_val in no yes mod ; do
4694                 if test "$enableval" = "$ol_val" ; then
4695                         ol_arg="$ol_val"
4696                 fi
4697         done
4698         if test "$ol_arg" = "invalid" ; then
4699                 as_fn_error $? "bad value $enableval for --enable-proxycache" "$LINENO" 5
4700         fi
4701         ol_enable_proxycache="$ol_arg"
4702
4703 else
4704         ol_enable_proxycache=${ol_enable_overlays:-no}
4705 fi
4706
4707 # end --enable-proxycache
4708
4709 # OpenLDAP --enable-refint
4710
4711         # Check whether --enable-refint was given.
4712 if test "${enable_refint+set}" = set; then :
4713   enableval=$enable_refint;
4714         ol_arg=invalid
4715         for ol_val in no yes mod ; do
4716                 if test "$enableval" = "$ol_val" ; then
4717                         ol_arg="$ol_val"
4718                 fi
4719         done
4720         if test "$ol_arg" = "invalid" ; then
4721                 as_fn_error $? "bad value $enableval for --enable-refint" "$LINENO" 5
4722         fi
4723         ol_enable_refint="$ol_arg"
4724
4725 else
4726         ol_enable_refint=${ol_enable_overlays:-no}
4727 fi
4728
4729 # end --enable-refint
4730
4731 # OpenLDAP --enable-retcode
4732
4733         # Check whether --enable-retcode was given.
4734 if test "${enable_retcode+set}" = set; then :
4735   enableval=$enable_retcode;
4736         ol_arg=invalid
4737         for ol_val in no yes mod ; do
4738                 if test "$enableval" = "$ol_val" ; then
4739                         ol_arg="$ol_val"
4740                 fi
4741         done
4742         if test "$ol_arg" = "invalid" ; then
4743                 as_fn_error $? "bad value $enableval for --enable-retcode" "$LINENO" 5
4744         fi
4745         ol_enable_retcode="$ol_arg"
4746
4747 else
4748         ol_enable_retcode=${ol_enable_overlays:-no}
4749 fi
4750
4751 # end --enable-retcode
4752
4753 # OpenLDAP --enable-rwm
4754
4755         # Check whether --enable-rwm was given.
4756 if test "${enable_rwm+set}" = set; then :
4757   enableval=$enable_rwm;
4758         ol_arg=invalid
4759         for ol_val in no yes mod ; do
4760                 if test "$enableval" = "$ol_val" ; then
4761                         ol_arg="$ol_val"
4762                 fi
4763         done
4764         if test "$ol_arg" = "invalid" ; then
4765                 as_fn_error $? "bad value $enableval for --enable-rwm" "$LINENO" 5
4766         fi
4767         ol_enable_rwm="$ol_arg"
4768
4769 else
4770         ol_enable_rwm=${ol_enable_overlays:-no}
4771 fi
4772
4773 # end --enable-rwm
4774
4775 # OpenLDAP --enable-seqmod
4776
4777         # Check whether --enable-seqmod was given.
4778 if test "${enable_seqmod+set}" = set; then :
4779   enableval=$enable_seqmod;
4780         ol_arg=invalid
4781         for ol_val in no yes mod ; do
4782                 if test "$enableval" = "$ol_val" ; then
4783                         ol_arg="$ol_val"
4784                 fi
4785         done
4786         if test "$ol_arg" = "invalid" ; then
4787                 as_fn_error $? "bad value $enableval for --enable-seqmod" "$LINENO" 5
4788         fi
4789         ol_enable_seqmod="$ol_arg"
4790
4791 else
4792         ol_enable_seqmod=${ol_enable_overlays:-no}
4793 fi
4794
4795 # end --enable-seqmod
4796
4797 # OpenLDAP --enable-sssvlv
4798
4799         # Check whether --enable-sssvlv was given.
4800 if test "${enable_sssvlv+set}" = set; then :
4801   enableval=$enable_sssvlv;
4802         ol_arg=invalid
4803         for ol_val in no yes mod ; do
4804                 if test "$enableval" = "$ol_val" ; then
4805                         ol_arg="$ol_val"
4806                 fi
4807         done
4808         if test "$ol_arg" = "invalid" ; then
4809                 as_fn_error $? "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4810         fi
4811         ol_enable_sssvlv="$ol_arg"
4812
4813 else
4814         ol_enable_sssvlv=${ol_enable_overlays:-no}
4815 fi
4816
4817 # end --enable-sssvlv
4818
4819 # OpenLDAP --enable-syncprov
4820
4821         # Check whether --enable-syncprov was given.
4822 if test "${enable_syncprov+set}" = set; then :
4823   enableval=$enable_syncprov;
4824         ol_arg=invalid
4825         for ol_val in no yes mod ; do
4826                 if test "$enableval" = "$ol_val" ; then
4827                         ol_arg="$ol_val"
4828                 fi
4829         done
4830         if test "$ol_arg" = "invalid" ; then
4831                 as_fn_error $? "bad value $enableval for --enable-syncprov" "$LINENO" 5
4832         fi
4833         ol_enable_syncprov="$ol_arg"
4834
4835 else
4836         ol_enable_syncprov=${ol_enable_overlays:-yes}
4837 fi
4838
4839 # end --enable-syncprov
4840
4841 # OpenLDAP --enable-translucent
4842
4843         # Check whether --enable-translucent was given.
4844 if test "${enable_translucent+set}" = set; then :
4845   enableval=$enable_translucent;
4846         ol_arg=invalid
4847         for ol_val in no yes mod ; do
4848                 if test "$enableval" = "$ol_val" ; then
4849                         ol_arg="$ol_val"
4850                 fi
4851         done
4852         if test "$ol_arg" = "invalid" ; then
4853                 as_fn_error $? "bad value $enableval for --enable-translucent" "$LINENO" 5
4854         fi
4855         ol_enable_translucent="$ol_arg"
4856
4857 else
4858         ol_enable_translucent=${ol_enable_overlays:-no}
4859 fi
4860
4861 # end --enable-translucent
4862
4863 # OpenLDAP --enable-unique
4864
4865         # Check whether --enable-unique was given.
4866 if test "${enable_unique+set}" = set; then :
4867   enableval=$enable_unique;
4868         ol_arg=invalid
4869         for ol_val in no yes mod ; do
4870                 if test "$enableval" = "$ol_val" ; then
4871                         ol_arg="$ol_val"
4872                 fi
4873         done
4874         if test "$ol_arg" = "invalid" ; then
4875                 as_fn_error $? "bad value $enableval for --enable-unique" "$LINENO" 5
4876         fi
4877         ol_enable_unique="$ol_arg"
4878
4879 else
4880         ol_enable_unique=${ol_enable_overlays:-no}
4881 fi
4882
4883 # end --enable-unique
4884
4885 # OpenLDAP --enable-valsort
4886
4887         # Check whether --enable-valsort was given.
4888 if test "${enable_valsort+set}" = set; then :
4889   enableval=$enable_valsort;
4890         ol_arg=invalid
4891         for ol_val in no yes mod ; do
4892                 if test "$enableval" = "$ol_val" ; then
4893                         ol_arg="$ol_val"
4894                 fi
4895         done
4896         if test "$ol_arg" = "invalid" ; then
4897                 as_fn_error $? "bad value $enableval for --enable-valsort" "$LINENO" 5
4898         fi
4899         ol_enable_valsort="$ol_arg"
4900
4901 else
4902         ol_enable_valsort=${ol_enable_overlays:-no}
4903 fi
4904
4905 # end --enable-valsort
4906
4907
4908 # Check whether --enable-xxliboptions was given.
4909 if test "${enable_xxliboptions+set}" = set; then :
4910   enableval=$enable_xxliboptions;
4911 fi
4912
4913 # Check whether --enable-static was given.
4914 if test "${enable_static+set}" = set; then :
4915   enableval=$enable_static; p=${PACKAGE-default}
4916     case $enableval in
4917     yes) enable_static=yes ;;
4918     no) enable_static=no ;;
4919     *)
4920      enable_static=no
4921       # Look at the argument we got.  We use all the common list separators.
4922       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4923       for pkg in $enableval; do
4924         IFS="$lt_save_ifs"
4925         if test "X$pkg" = "X$p"; then
4926           enable_static=yes
4927         fi
4928       done
4929       IFS="$lt_save_ifs"
4930       ;;
4931     esac
4932 else
4933   enable_static=yes
4934 fi
4935
4936
4937 # Check whether --enable-shared was given.
4938 if test "${enable_shared+set}" = set; then :
4939   enableval=$enable_shared; p=${PACKAGE-default}
4940     case $enableval in
4941     yes) enable_shared=yes ;;
4942     no) enable_shared=no ;;
4943     *)
4944       enable_shared=no
4945       # Look at the argument we got.  We use all the common list separators.
4946       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4947       for pkg in $enableval; do
4948         IFS="$lt_save_ifs"
4949         if test "X$pkg" = "X$p"; then
4950           enable_shared=yes
4951         fi
4952       done
4953       IFS="$lt_save_ifs"
4954       ;;
4955     esac
4956 else
4957   enable_shared=yes
4958 fi
4959
4960
4961
4962
4963 # validate options
4964 if test $ol_enable_slapd = no ; then
4965                 if test $ol_enable_slapi = yes ; then
4966                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4967 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4968         fi
4969         case "$ol_enable_backends" in yes | mod)
4970                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4971 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4972         esac
4973         for i in $Backends; do
4974                 eval "ol_tmp=\$ol_enable_$i"
4975                 if test $ol_tmp != no ; then
4976                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4977 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4978                         eval "ol_enable_$i=no"
4979                 fi
4980         done
4981         if test $ol_enable_modules = yes ; then
4982                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4983 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4984         fi
4985         if test $ol_enable_wrappers = yes ; then
4986                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4987 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4988         fi
4989         if test $ol_enable_rlookups = yes ; then
4990                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4991 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4992         fi
4993         if test $ol_enable_dynacl = yes ; then
4994                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4995 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4996         fi
4997         if test $ol_enable_aci != no ; then
4998                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4999 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
5000         fi
5001         if test $ol_enable_rewrite = yes ; then
5002                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
5003 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
5004         fi
5005                 case "$ol_enable_overlays" in yes | mod)
5006                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
5007 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
5008         esac
5009         for i in $Overlays; do
5010                 eval "ol_tmp=\$ol_enable_$i"
5011                 if test $ol_tmp != no ; then
5012                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5013 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5014                         eval "ol_enable_$i=no"
5015                 fi
5016         done
5017
5018         # force settings to no
5019         ol_enable_slapi=no
5020
5021         ol_enable_backends=
5022         ol_enable_overlays=
5023         ol_enable_modules=no
5024         ol_enable_rlookups=no
5025         ol_enable_dynacl=no
5026         ol_enable_aci=no
5027         ol_enable_wrappers=no
5028
5029         ol_enable_rewrite=no
5030
5031 elif test $ol_enable_modules != yes &&
5032         test $ol_enable_bdb = no &&
5033         test $ol_enable_dnssrv = no &&
5034         test $ol_enable_hdb = no &&
5035         test $ol_enable_ldap = no &&
5036         test $ol_enable_mdb = no &&
5037         test $ol_enable_meta = no &&
5038         test $ol_enable_monitor = no &&
5039         test $ol_enable_ndb = no &&
5040         test $ol_enable_null = no &&
5041         test $ol_enable_passwd = no &&
5042         test $ol_enable_perl = no &&
5043         test $ol_enable_relay = no &&
5044         test $ol_enable_shell = no &&
5045         test $ol_enable_sock = no &&
5046         test $ol_enable_sql = no ; then
5047
5048         if test $ol_enable_slapd = yes ; then
5049                 as_fn_error $? "slapd requires a backend" "$LINENO" 5
5050         else
5051                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5052 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5053                 ol_enable_slapd=no
5054         fi
5055 fi
5056
5057 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5058         as_fn_error $? "--enable-meta requires --enable-ldap" "$LINENO" 5
5059 fi
5060
5061 if test $ol_enable_lmpasswd = yes ; then
5062         if test $ol_with_tls = no ; then
5063                 as_fn_error $? "LAN Manager passwords require OpenSSL" "$LINENO" 5
5064         fi
5065 fi
5066
5067 if test $ol_enable_spasswd = yes ; then
5068         if test $ol_with_cyrus_sasl = no ; then
5069                 as_fn_error $? "options require --with-cyrus-sasl" "$LINENO" 5
5070         fi
5071         ol_with_cyrus_sasl=yes
5072 fi
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5075 $as_echo "done" >&6; }
5076
5077 LDAP_LIBS=
5078 BDB_LIBS=
5079 SLAPD_NDB_LIBS=
5080 SLAPD_NDB_INCS=
5081 LTHREAD_LIBS=
5082 LUTIL_LIBS=
5083
5084 SLAPD_LIBS=
5085
5086 BUILD_SLAPD=no
5087
5088 BUILD_THREAD=no
5089
5090 BUILD_SLAPI=no
5091 SLAPD_SLAPI_DEPEND=
5092
5093 BUILD_BDB=no
5094 BUILD_DNSSRV=no
5095 BUILD_HDB=no
5096 BUILD_LDAP=no
5097 BUILD_MDB=no
5098 BUILD_META=no
5099 BUILD_MONITOR=no
5100 BUILD_NDB=no
5101 BUILD_NULL=no
5102 BUILD_PASSWD=no
5103 BUILD_PERL=no
5104 BUILD_RELAY=no
5105 BUILD_SHELL=no
5106 BUILD_SOCK=no
5107 BUILD_SQL=no
5108
5109 BUILD_ACCESSLOG=no
5110 BUILD_AUDITLOG=no
5111 BUILD_CONSTRAINT=no
5112 BUILD_DDS=no
5113 BUILD_DENYOP=no
5114 BUILD_DEREF=no
5115 BUILD_DYNGROUP=no
5116 BUILD_DYNLIST=no
5117 BUILD_LASTMOD=no
5118 BUILD_MEMBEROF=no
5119 BUILD_PPOLICY=no
5120 BUILD_PROXYCACHE=no
5121 BUILD_REFINT=no
5122 BUILD_RETCODE=no
5123 BUILD_RWM=no
5124 BUILD_SEQMOD=no
5125 BUILD_SSSVLV=no
5126 BUILD_SYNCPROV=no
5127 BUILD_TRANSLUCENT=no
5128 BUILD_UNIQUE=no
5129 BUILD_VALSORT=no
5130
5131 SLAPD_STATIC_OVERLAYS=
5132 SLAPD_DYNAMIC_OVERLAYS=
5133
5134 SLAPD_MODULES_LDFLAGS=
5135 SLAPD_MODULES_CPPFLAGS=
5136
5137 SLAPD_STATIC_BACKENDS=back-ldif
5138 SLAPD_DYNAMIC_BACKENDS=
5139
5140 SLAPD_PERL_LDFLAGS=
5141 MOD_PERL_LDFLAGS=
5142 PERL_CPPFLAGS=
5143
5144 SLAPD_SQL_LDFLAGS=
5145 SLAPD_SQL_LIBS=
5146 SLAPD_SQL_INCLUDES=
5147
5148 KRB4_LIBS=
5149 KRB5_LIBS=
5150 SASL_LIBS=
5151 TLS_LIBS=
5152 MODULES_LIBS=
5153 SLAPI_LIBS=
5154 LIBSLAPI=
5155 AUTH_LIBS=
5156 ICU_LIBS=
5157
5158 SLAPD_SLP_LIBS=
5159 SLAPD_GMP_LIBS=
5160
5161
5162
5163 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5164
5165
5166
5167
5168 ol_aix_threads=no
5169 case "$target" in
5170 *-*-aix*)       if test -z "$CC" ; then
5171                 case "$ol_with_threads" in
5172                 auto | yes |  posix) ol_aix_threads=yes ;;
5173                 esac
5174         fi
5175 ;;
5176 esac
5177
5178 if test $ol_aix_threads = yes ; then
5179         if test -z "${CC}" ; then
5180                 for ac_prog in cc_r xlc_r cc
5181 do
5182   # Extract the first word of "$ac_prog", so it can be a program name with args.
5183 set dummy $ac_prog; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_CC+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   if test -n "$CC"; then
5190   ac_cv_prog_CC="$CC" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_prog_CC="$ac_prog"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 CC=$ac_cv_prog_CC
5210 if test -n "$CC"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5212 $as_echo "$CC" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219   test -n "$CC" && break
5220 done
5221
5222
5223                 if test "$CC" = cc ; then
5224                                                 if test $ol_with_threads != auto ; then
5225                                 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5226                         else
5227                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5228 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5229                         fi
5230                         ol_with_threads=no
5231                 fi
5232         fi
5233
5234         case ${CC} in cc_r | xlc_r)
5235                 ol_with_threads=posix
5236                 ol_cv_pthread_create=yes
5237                 ;;
5238         esac
5239 fi
5240
5241 if test -z "${CC}"; then
5242         for ac_prog in cc gcc
5243 do
5244   # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_CC+:} false; then :
5249   $as_echo_n "(cached) " >&6
5250 else
5251   if test -n "$CC"; then
5252   ac_cv_prog_CC="$CC" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257   IFS=$as_save_IFS
5258   test -z "$as_dir" && as_dir=.
5259     for ac_exec_ext in '' $ac_executable_extensions; do
5260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261     ac_cv_prog_CC="$ac_prog"
5262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266   done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 CC=$ac_cv_prog_CC
5272 if test -n "$CC"; then
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5274 $as_echo "$CC" >&6; }
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281   test -n "$CC" && break
5282 done
5283 test -n "$CC" || CC="missing"
5284
5285
5286         if test "${CC}" = "missing" ; then
5287                 as_fn_error $? "Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." "$LINENO" 5
5288         fi
5289 fi
5290
5291 if test -z "${AR}"; then
5292         for ac_prog in ar gar
5293 do
5294   # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_AR+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if test -n "$AR"; then
5302   ac_cv_prog_AR="$AR" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309     for ac_exec_ext in '' $ac_executable_extensions; do
5310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311     ac_cv_prog_AR="$ac_prog"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 AR=$ac_cv_prog_AR
5322 if test -n "$AR"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324 $as_echo "$AR" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331   test -n "$AR" && break
5332 done
5333 test -n "$AR" || AR="missing"
5334
5335
5336         if test "${AR}" = "missing" ; then
5337                 as_fn_error $? "Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." "$LINENO" 5
5338         fi
5339 fi
5340
5341
5342
5343
5344
5345 # Check whether --enable-fast-install was given.
5346 if test "${enable_fast_install+set}" = set; then :
5347   enableval=$enable_fast_install; p=${PACKAGE-default}
5348     case $enableval in
5349     yes) enable_fast_install=yes ;;
5350     no) enable_fast_install=no ;;
5351     *)
5352       enable_fast_install=no
5353       # Look at the argument we got.  We use all the common list separators.
5354       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5355       for pkg in $enableval; do
5356         IFS="$lt_save_ifs"
5357         if test "X$pkg" = "X$p"; then
5358           enable_fast_install=yes
5359         fi
5360       done
5361       IFS="$lt_save_ifs"
5362       ;;
5363     esac
5364 else
5365   enable_fast_install=yes
5366 fi
5367
5368
5369 DEPDIR="${am__leading_dot}deps"
5370
5371 ac_config_commands="$ac_config_commands depfiles"
5372
5373
5374 am_make=${MAKE-make}
5375 cat > confinc << 'END'
5376 am__doit:
5377         @echo done
5378 .PHONY: am__doit
5379 END
5380 # If we don't find an include directive, just comment out the code.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5382 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5383 am__include="#"
5384 am__quote=
5385 _am_result=none
5386 # First try GNU make style include.
5387 echo "include confinc" > confmf
5388 # We grep out `Entering directory' and `Leaving directory'
5389 # messages which can occur if `w' ends up in MAKEFLAGS.
5390 # In particular we don't look at `^make:' because GNU make might
5391 # be invoked under some other name (usually "gmake"), in which
5392 # case it prints its new name instead of `make'.
5393 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5394    am__include=include
5395    am__quote=
5396    _am_result=GNU
5397 fi
5398 # Now try BSD make style include.
5399 if test "$am__include" = "#"; then
5400    echo '.include "confinc"' > confmf
5401    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5402       am__include=.include
5403       am__quote="\""
5404       _am_result=BSD
5405    fi
5406 fi
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5410 $as_echo "$_am_result" >&6; }
5411 rm -f confinc confmf
5412
5413 # Check whether --enable-dependency-tracking was given.
5414 if test "${enable_dependency_tracking+set}" = set; then :
5415   enableval=$enable_dependency_tracking;
5416 fi
5417
5418 if test "x$enable_dependency_tracking" != xno; then
5419   am_depcomp="$ac_aux_dir/depcomp"
5420   AMDEPBACKSLASH='\'
5421 fi
5422
5423
5424 if test "x$enable_dependency_tracking" != xno; then
5425   AMDEP_TRUE=
5426   AMDEP_FALSE='#'
5427 else
5428   AMDEP_TRUE='#'
5429   AMDEP_FALSE=
5430 fi
5431
5432
5433
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439 if test -n "$ac_tool_prefix"; then
5440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_CC+:} false; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   if test -n "$CC"; then
5448   ac_cv_prog_CC="$CC" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 CC=$ac_cv_prog_CC
5468 if test -n "$CC"; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5470 $as_echo "$CC" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476
5477 fi
5478 if test -z "$ac_cv_prog_CC"; then
5479   ac_ct_CC=$CC
5480   # Extract the first word of "gcc", so it can be a program name with args.
5481 set dummy gcc; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   if test -n "$ac_ct_CC"; then
5488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495     for ac_exec_ext in '' $ac_executable_extensions; do
5496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497     ac_cv_prog_ac_ct_CC="gcc"
5498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499     break 2
5500   fi
5501 done
5502   done
5503 IFS=$as_save_IFS
5504
5505 fi
5506 fi
5507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5508 if test -n "$ac_ct_CC"; then
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5510 $as_echo "$ac_ct_CC" >&6; }
5511 else
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515
5516   if test "x$ac_ct_CC" = x; then
5517     CC=""
5518   else
5519     case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525     CC=$ac_ct_CC
5526   fi
5527 else
5528   CC="$ac_cv_prog_CC"
5529 fi
5530
5531 if test -z "$CC"; then
5532           if test -n "$ac_tool_prefix"; then
5533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}cc; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_CC+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   if test -n "$CC"; then
5541   ac_cv_prog_CC="$CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_prog_CC="${ac_tool_prefix}cc"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 CC=$ac_cv_prog_CC
5561 if test -n "$CC"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5563 $as_echo "$CC" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570   fi
5571 fi
5572 if test -z "$CC"; then
5573   # Extract the first word of "cc", so it can be a program name with args.
5574 set dummy cc; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_CC+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   if test -n "$CC"; then
5581   ac_cv_prog_CC="$CC" # Let the user override the test.
5582 else
5583   ac_prog_rejected=no
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5592        ac_prog_rejected=yes
5593        continue
5594      fi
5595     ac_cv_prog_CC="cc"
5596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597     break 2
5598   fi
5599 done
5600   done
5601 IFS=$as_save_IFS
5602
5603 if test $ac_prog_rejected = yes; then
5604   # We found a bogon in the path, so make sure we never use it.
5605   set dummy $ac_cv_prog_CC
5606   shift
5607   if test $# != 0; then
5608     # We chose a different compiler from the bogus one.
5609     # However, it has the same basename, so the bogon will be chosen
5610     # first if we set CC to just the basename; use the full file name.
5611     shift
5612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5613   fi
5614 fi
5615 fi
5616 fi
5617 CC=$ac_cv_prog_CC
5618 if test -n "$CC"; then
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5620 $as_echo "$CC" >&6; }
5621 else
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627 fi
5628 if test -z "$CC"; then
5629   if test -n "$ac_tool_prefix"; then
5630   for ac_prog in cl.exe
5631   do
5632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_CC+:} false; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   if test -n "$CC"; then
5640   ac_cv_prog_CC="$CC" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654   done
5655 IFS=$as_save_IFS
5656
5657 fi
5658 fi
5659 CC=$ac_cv_prog_CC
5660 if test -n "$CC"; then
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5662 $as_echo "$CC" >&6; }
5663 else
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669     test -n "$CC" && break
5670   done
5671 fi
5672 if test -z "$CC"; then
5673   ac_ct_CC=$CC
5674   for ac_prog in cl.exe
5675 do
5676   # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$ac_ct_CC"; then
5684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693     ac_cv_prog_ac_ct_CC="$ac_prog"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5704 if test -n "$ac_ct_CC"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5706 $as_echo "$ac_ct_CC" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713   test -n "$ac_ct_CC" && break
5714 done
5715
5716   if test "x$ac_ct_CC" = x; then
5717     CC=""
5718   else
5719     case $cross_compiling:$ac_tool_warned in
5720 yes:)
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5724 esac
5725     CC=$ac_ct_CC
5726   fi
5727 fi
5728
5729 fi
5730
5731
5732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5734 as_fn_error $? "no acceptable C compiler found in \$PATH
5735 See \`config.log' for more details" "$LINENO" 5; }
5736
5737 # Provide some information about the compiler.
5738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5739 set X $ac_compile
5740 ac_compiler=$2
5741 for ac_option in --version -v -V -qversion; do
5742   { { ac_try="$ac_compiler $ac_option >&5"
5743 case "(($ac_try" in
5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745   *) ac_try_echo=$ac_try;;
5746 esac
5747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5748 $as_echo "$ac_try_echo"; } >&5
5749   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5750   ac_status=$?
5751   if test -s conftest.err; then
5752     sed '10a\
5753 ... rest of stderr output deleted ...
5754          10q' conftest.err >conftest.er1
5755     cat conftest.er1 >&5
5756   fi
5757   rm -f conftest.er1 conftest.err
5758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759   test $ac_status = 0; }
5760 done
5761
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h.  */
5764
5765 int
5766 main ()
5767 {
5768
5769   ;
5770   return 0;
5771 }
5772 _ACEOF
5773 ac_clean_files_save=$ac_clean_files
5774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5775 # Try to create an executable without -o first, disregard a.out.
5776 # It will help us diagnose broken compilers, and finding out an intuition
5777 # of exeext.
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5779 $as_echo_n "checking whether the C compiler works... " >&6; }
5780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5781
5782 # The possible output files:
5783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5784
5785 ac_rmfiles=
5786 for ac_file in $ac_files
5787 do
5788   case $ac_file in
5789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5790     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5791   esac
5792 done
5793 rm -f $ac_rmfiles
5794
5795 if { { ac_try="$ac_link_default"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5801 $as_echo "$ac_try_echo"; } >&5
5802   (eval "$ac_link_default") 2>&5
5803   ac_status=$?
5804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805   test $ac_status = 0; }; then :
5806   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5808 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5809 # so that the user can short-circuit this test for compilers unknown to
5810 # Autoconf.
5811 for ac_file in $ac_files ''
5812 do
5813   test -f "$ac_file" || continue
5814   case $ac_file in
5815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5816         ;;
5817     [ab].out )
5818         # We found the default executable, but exeext='' is most
5819         # certainly right.
5820         break;;
5821     *.* )
5822         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5823         then :; else
5824            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5825         fi
5826         # We set ac_cv_exeext here because the later test for it is not
5827         # safe: cross compilers may not add the suffix if given an `-o'
5828         # argument, so we may need to know it at that point already.
5829         # Even if this section looks crufty: it has the advantage of
5830         # actually working.
5831         break;;
5832     * )
5833         break;;
5834   esac
5835 done
5836 test "$ac_cv_exeext" = no && ac_cv_exeext=
5837
5838 else
5839   ac_file=''
5840 fi
5841 if test -z "$ac_file"; then :
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 $as_echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error 77 "C compiler cannot create executables
5850 See \`config.log' for more details" "$LINENO" 5; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5853 $as_echo "yes" >&6; }
5854 fi
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5856 $as_echo_n "checking for C compiler default output file name... " >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5858 $as_echo "$ac_file" >&6; }
5859 ac_exeext=$ac_cv_exeext
5860
5861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5862 ac_clean_files=$ac_clean_files_save
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5864 $as_echo_n "checking for suffix of executables... " >&6; }
5865 if { { ac_try="$ac_link"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5871 $as_echo "$ac_try_echo"; } >&5
5872   (eval "$ac_link") 2>&5
5873   ac_status=$?
5874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875   test $ac_status = 0; }; then :
5876   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5877 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5878 # work properly (i.e., refer to `conftest.exe'), while it won't with
5879 # `rm'.
5880 for ac_file in conftest.exe conftest conftest.*; do
5881   test -f "$ac_file" || continue
5882   case $ac_file in
5883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5884     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5885           break;;
5886     * ) break;;
5887   esac
5888 done
5889 else
5890   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5893 See \`config.log' for more details" "$LINENO" 5; }
5894 fi
5895 rm -f conftest conftest$ac_cv_exeext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5897 $as_echo "$ac_cv_exeext" >&6; }
5898
5899 rm -f conftest.$ac_ext
5900 EXEEXT=$ac_cv_exeext
5901 ac_exeext=$EXEEXT
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h.  */
5904 #include <stdio.h>
5905 int
5906 main ()
5907 {
5908 FILE *f = fopen ("conftest.out", "w");
5909  return ferror (f) || fclose (f) != 0;
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 ac_clean_files="$ac_clean_files conftest.out"
5916 # Check that the compiler produces executables we can run.  If not, either
5917 # the compiler is broken, or we cross compile.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5919 $as_echo_n "checking whether we are cross compiling... " >&6; }
5920 if test "$cross_compiling" != yes; then
5921   { { ac_try="$ac_link"
5922 case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5927 $as_echo "$ac_try_echo"; } >&5
5928   (eval "$ac_link") 2>&5
5929   ac_status=$?
5930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931   test $ac_status = 0; }
5932   if { ac_try='./conftest$ac_cv_exeext'
5933   { { case "(($ac_try" in
5934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935   *) ac_try_echo=$ac_try;;
5936 esac
5937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5938 $as_echo "$ac_try_echo"; } >&5
5939   (eval "$ac_try") 2>&5
5940   ac_status=$?
5941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942   test $ac_status = 0; }; }; then
5943     cross_compiling=no
5944   else
5945     if test "$cross_compiling" = maybe; then
5946         cross_compiling=yes
5947     else
5948         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 as_fn_error $? "cannot run C compiled programs.
5951 If you meant to cross compile, use \`--host'.
5952 See \`config.log' for more details" "$LINENO" 5; }
5953     fi
5954   fi
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5957 $as_echo "$cross_compiling" >&6; }
5958
5959 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5960 ac_clean_files=$ac_clean_files_save
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5962 $as_echo_n "checking for suffix of object files... " >&6; }
5963 if ${ac_cv_objext+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h.  */
5968
5969 int
5970 main ()
5971 {
5972
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.o conftest.obj
5978 if { { ac_try="$ac_compile"
5979 case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984 $as_echo "$ac_try_echo"; } >&5
5985   (eval "$ac_compile") 2>&5
5986   ac_status=$?
5987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5988   test $ac_status = 0; }; then :
5989   for ac_file in conftest.o conftest.obj conftest.*; do
5990   test -f "$ac_file" || continue;
5991   case $ac_file in
5992     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5993     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5994        break;;
5995   esac
5996 done
5997 else
5998   $as_echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 as_fn_error $? "cannot compute suffix of object files: cannot compile
6004 See \`config.log' for more details" "$LINENO" 5; }
6005 fi
6006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6009 $as_echo "$ac_cv_objext" >&6; }
6010 OBJEXT=$ac_cv_objext
6011 ac_objext=$OBJEXT
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6013 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6014 if ${ac_cv_c_compiler_gnu+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h.  */
6019
6020 int
6021 main ()
6022 {
6023 #ifndef __GNUC__
6024        choke me
6025 #endif
6026
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032   ac_compiler_gnu=yes
6033 else
6034   ac_compiler_gnu=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6042 if test $ac_compiler_gnu = yes; then
6043   GCC=yes
6044 else
6045   GCC=
6046 fi
6047 ac_test_CFLAGS=${CFLAGS+set}
6048 ac_save_CFLAGS=$CFLAGS
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6051 if ${ac_cv_prog_cc_g+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   ac_save_c_werror_flag=$ac_c_werror_flag
6055    ac_c_werror_flag=yes
6056    ac_cv_prog_cc_g=no
6057    CFLAGS="-g"
6058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h.  */
6060
6061 int
6062 main ()
6063 {
6064
6065   ;
6066   return 0;
6067 }
6068 _ACEOF
6069 if ac_fn_c_try_compile "$LINENO"; then :
6070   ac_cv_prog_cc_g=yes
6071 else
6072   CFLAGS=""
6073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h.  */
6075
6076 int
6077 main ()
6078 {
6079
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 if ac_fn_c_try_compile "$LINENO"; then :
6085
6086 else
6087   ac_c_werror_flag=$ac_save_c_werror_flag
6088          CFLAGS="-g"
6089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h.  */
6091
6092 int
6093 main ()
6094 {
6095
6096   ;
6097   return 0;
6098 }
6099 _ACEOF
6100 if ac_fn_c_try_compile "$LINENO"; then :
6101   ac_cv_prog_cc_g=yes
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108    ac_c_werror_flag=$ac_save_c_werror_flag
6109 fi
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6111 $as_echo "$ac_cv_prog_cc_g" >&6; }
6112 if test "$ac_test_CFLAGS" = set; then
6113   CFLAGS=$ac_save_CFLAGS
6114 elif test $ac_cv_prog_cc_g = yes; then
6115   if test "$GCC" = yes; then
6116     CFLAGS="-g -O2"
6117   else
6118     CFLAGS="-g"
6119   fi
6120 else
6121   if test "$GCC" = yes; then
6122     CFLAGS="-O2"
6123   else
6124     CFLAGS=
6125   fi
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6128 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6129 if ${ac_cv_prog_cc_c89+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   ac_cv_prog_cc_c89=no
6133 ac_save_CC=$CC
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h.  */
6136 #include <stdarg.h>
6137 #include <stdio.h>
6138 #include <sys/types.h>
6139 #include <sys/stat.h>
6140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6141 struct buf { int x; };
6142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6143 static char *e (p, i)
6144      char **p;
6145      int i;
6146 {
6147   return p[i];
6148 }
6149 static char *f (char * (*g) (char **, int), char **p, ...)
6150 {
6151   char *s;
6152   va_list v;
6153   va_start (v,p);
6154   s = g (p, va_arg (v,int));
6155   va_end (v);
6156   return s;
6157 }
6158
6159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6160    function prototypes and stuff, but not '\xHH' hex character constants.
6161    These don't provoke an error unfortunately, instead are silently treated
6162    as 'x'.  The following induces an error, until -std is added to get
6163    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6164    array size at least.  It's necessary to write '\x00'==0 to get something
6165    that's true only with -std.  */
6166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6167
6168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6169    inside strings and character constants.  */
6170 #define FOO(x) 'x'
6171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6172
6173 int test (int i, double x);
6174 struct s1 {int (*f) (int a);};
6175 struct s2 {int (*f) (double a);};
6176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6177 int argc;
6178 char **argv;
6179 int
6180 main ()
6181 {
6182 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6183   ;
6184   return 0;
6185 }
6186 _ACEOF
6187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6188         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6189 do
6190   CC="$ac_save_CC $ac_arg"
6191   if ac_fn_c_try_compile "$LINENO"; then :
6192   ac_cv_prog_cc_c89=$ac_arg
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext
6195   test "x$ac_cv_prog_cc_c89" != "xno" && break
6196 done
6197 rm -f conftest.$ac_ext
6198 CC=$ac_save_CC
6199
6200 fi
6201 # AC_CACHE_VAL
6202 case "x$ac_cv_prog_cc_c89" in
6203   x)
6204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6205 $as_echo "none needed" >&6; } ;;
6206   xno)
6207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6208 $as_echo "unsupported" >&6; } ;;
6209   *)
6210     CC="$CC $ac_cv_prog_cc_c89"
6211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6213 esac
6214 if test "x$ac_cv_prog_cc_c89" != xno; then :
6215
6216 fi
6217
6218 ac_ext=c
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6223
6224 depcc="$CC"   am_compiler_list=
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6227 $as_echo_n "checking dependency style of $depcc... " >&6; }
6228 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6232   # We make a subdir and do the tests there.  Otherwise we can end up
6233   # making bogus files that we don't know about and never remove.  For
6234   # instance it was reported that on HP-UX the gcc test will end up
6235   # making a dummy file named `D' -- because `-MD' means `put the output
6236   # in D'.
6237   mkdir conftest.dir
6238   # Copy depcomp to subdir because otherwise we won't find it if we're
6239   # using a relative directory.
6240   cp "$am_depcomp" conftest.dir
6241   cd conftest.dir
6242   # We will build objects and dependencies in a subdirectory because
6243   # it helps to detect inapplicable dependency modes.  For instance
6244   # both Tru64's cc and ICC support -MD to output dependencies as a
6245   # side effect of compilation, but ICC will put the dependencies in
6246   # the current directory while Tru64 will put them in the object
6247   # directory.
6248   mkdir sub
6249
6250   am_cv_CC_dependencies_compiler_type=none
6251   if test "$am_compiler_list" = ""; then
6252      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6253   fi
6254   for depmode in $am_compiler_list; do
6255     # Setup a source with many dependencies, because some compilers
6256     # like to wrap large dependency lists on column 80 (with \), and
6257     # we should not choose a depcomp mode which is confused by this.
6258     #
6259     # We need to recreate these files for each test, as the compiler may
6260     # overwrite some of them when testing with obscure command lines.
6261     # This happens at least with the AIX C compiler.
6262     : > sub/conftest.c
6263     for i in 1 2 3 4 5 6; do
6264       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6265       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266       # Solaris 8's {/usr,}/bin/sh.
6267       touch sub/conftst$i.h
6268     done
6269     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6270
6271     case $depmode in
6272     nosideeffect)
6273       # after this tag, mechanisms are not by side-effect, so they'll
6274       # only be used when explicitly requested
6275       if test "x$enable_dependency_tracking" = xyes; then
6276         continue
6277       else
6278         break
6279       fi
6280       ;;
6281     none) break ;;
6282     esac
6283     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6284     # mode.  It turns out that the SunPro C++ compiler does not properly
6285     # handle `-M -o', and we need to detect this.
6286     if depmode=$depmode \
6287        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6288        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6289        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6290          >/dev/null 2>conftest.err &&
6291        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6292        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6293        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6294       # icc doesn't choke on unknown options, it will just issue warnings
6295       # or remarks (even with -Werror).  So we grep stderr for any message
6296       # that says an option was ignored or not supported.
6297       # When given -MP, icc 7.0 and 7.1 complain thusly:
6298       #   icc: Command line warning: ignoring option '-M'; no argument required
6299       # The diagnosis changed in icc 8.0:
6300       #   icc: Command line remark: option '-MP' not supported
6301       if (grep 'ignoring option' conftest.err ||
6302           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6303         am_cv_CC_dependencies_compiler_type=$depmode
6304         break
6305       fi
6306     fi
6307   done
6308
6309   cd ..
6310   rm -rf conftest.dir
6311 else
6312   am_cv_CC_dependencies_compiler_type=none
6313 fi
6314
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6319
6320
6321
6322 if
6323   test "x$enable_dependency_tracking" != xno \
6324   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6325   am__fastdepCC_TRUE=
6326   am__fastdepCC_FALSE='#'
6327 else
6328   am__fastdepCC_TRUE='#'
6329   am__fastdepCC_FALSE=
6330 fi
6331
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6334 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6335 if ${lt_cv_path_SED+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   # Loop through the user's path and test for sed and gsed.
6339 # Then use that list of sed's as ones to test for truncation.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345   for lt_ac_prog in sed gsed; do
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6348         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6349       fi
6350     done
6351   done
6352 done
6353 lt_ac_max=0
6354 lt_ac_count=0
6355 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6356 # along with /bin/sed that truncates output.
6357 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6358   test ! -f $lt_ac_sed && continue
6359   cat /dev/null > conftest.in
6360   lt_ac_count=0
6361   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6362   # Check for GNU sed and select it if it is found.
6363   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6364     lt_cv_path_SED=$lt_ac_sed
6365     break
6366   fi
6367   while true; do
6368     cat conftest.in conftest.in >conftest.tmp
6369     mv conftest.tmp conftest.in
6370     cp conftest.in conftest.nl
6371     echo >>conftest.nl
6372     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6373     cmp -s conftest.out conftest.nl || break
6374     # 10000 chars as input seems more than enough
6375     test $lt_ac_count -gt 10 && break
6376     lt_ac_count=`expr $lt_ac_count + 1`
6377     if test $lt_ac_count -gt $lt_ac_max; then
6378       lt_ac_max=$lt_ac_count
6379       lt_cv_path_SED=$lt_ac_sed
6380     fi
6381   done
6382 done
6383
6384 fi
6385
6386 SED=$lt_cv_path_SED
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6388 $as_echo "$SED" >&6; }
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6391 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6392 if ${ac_cv_path_GREP+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -z "$GREP"; then
6396   ac_path_GREP_found=false
6397   # Loop through the user's path and test for each of PROGNAME-LIST
6398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_prog in grep ggrep; do
6404     for ac_exec_ext in '' $ac_executable_extensions; do
6405       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6406       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6407 # Check for GNU ac_path_GREP and select it if it is found.
6408   # Check for GNU $ac_path_GREP
6409 case `"$ac_path_GREP" --version 2>&1` in
6410 *GNU*)
6411   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6412 *)
6413   ac_count=0
6414   $as_echo_n 0123456789 >"conftest.in"
6415   while :
6416   do
6417     cat "conftest.in" "conftest.in" >"conftest.tmp"
6418     mv "conftest.tmp" "conftest.in"
6419     cp "conftest.in" "conftest.nl"
6420     $as_echo 'GREP' >> "conftest.nl"
6421     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6422     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6423     as_fn_arith $ac_count + 1 && ac_count=$as_val
6424     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6425       # Best one so far, save it but keep looking for a better one
6426       ac_cv_path_GREP="$ac_path_GREP"
6427       ac_path_GREP_max=$ac_count
6428     fi
6429     # 10*(2^10) chars as input seems more than enough
6430     test $ac_count -gt 10 && break
6431   done
6432   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6433 esac
6434
6435       $ac_path_GREP_found && break 3
6436     done
6437   done
6438   done
6439 IFS=$as_save_IFS
6440   if test -z "$ac_cv_path_GREP"; then
6441     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6442   fi
6443 else
6444   ac_cv_path_GREP=$GREP
6445 fi
6446
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6449 $as_echo "$ac_cv_path_GREP" >&6; }
6450  GREP="$ac_cv_path_GREP"
6451
6452
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6454 $as_echo_n "checking for egrep... " >&6; }
6455 if ${ac_cv_path_EGREP+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6459    then ac_cv_path_EGREP="$GREP -E"
6460    else
6461      if test -z "$EGREP"; then
6462   ac_path_EGREP_found=false
6463   # Loop through the user's path and test for each of PROGNAME-LIST
6464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_prog in egrep; do
6470     for ac_exec_ext in '' $ac_executable_extensions; do
6471       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6472       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6473 # Check for GNU ac_path_EGREP and select it if it is found.
6474   # Check for GNU $ac_path_EGREP
6475 case `"$ac_path_EGREP" --version 2>&1` in
6476 *GNU*)
6477   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6478 *)
6479   ac_count=0
6480   $as_echo_n 0123456789 >"conftest.in"
6481   while :
6482   do
6483     cat "conftest.in" "conftest.in" >"conftest.tmp"
6484     mv "conftest.tmp" "conftest.in"
6485     cp "conftest.in" "conftest.nl"
6486     $as_echo 'EGREP' >> "conftest.nl"
6487     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6488     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6489     as_fn_arith $ac_count + 1 && ac_count=$as_val
6490     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6491       # Best one so far, save it but keep looking for a better one
6492       ac_cv_path_EGREP="$ac_path_EGREP"
6493       ac_path_EGREP_max=$ac_count
6494     fi
6495     # 10*(2^10) chars as input seems more than enough
6496     test $ac_count -gt 10 && break
6497   done
6498   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6499 esac
6500
6501       $ac_path_EGREP_found && break 3
6502     done
6503   done
6504   done
6505 IFS=$as_save_IFS
6506   if test -z "$ac_cv_path_EGREP"; then
6507     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6508   fi
6509 else
6510   ac_cv_path_EGREP=$EGREP
6511 fi
6512
6513    fi
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6516 $as_echo "$ac_cv_path_EGREP" >&6; }
6517  EGREP="$ac_cv_path_EGREP"
6518
6519
6520
6521 # Check whether --with-gnu-ld was given.
6522 if test "${with_gnu_ld+set}" = set; then :
6523   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6524 else
6525   with_gnu_ld=no
6526 fi
6527
6528 ac_prog=ld
6529 if test "$GCC" = yes; then
6530   # Check if gcc -print-prog-name=ld gives a path.
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6532 $as_echo_n "checking for ld used by $CC... " >&6; }
6533   case $host in
6534   *-*-mingw*)
6535     # gcc leaves a trailing carriage return which upsets mingw
6536     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6537   *)
6538     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6539   esac
6540   case $ac_prog in
6541     # Accept absolute paths.
6542     [\\/]* | ?:[\\/]*)
6543       re_direlt='/[^/][^/]*/\.\./'
6544       # Canonicalize the pathname of ld
6545       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6546       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6547         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6548       done
6549       test -z "$LD" && LD="$ac_prog"
6550       ;;
6551   "")
6552     # If it fails, then pretend we aren't using GCC.
6553     ac_prog=ld
6554     ;;
6555   *)
6556     # If it is relative, then search for the first ld in PATH.
6557     with_gnu_ld=unknown
6558     ;;
6559   esac
6560 elif test "$with_gnu_ld" = yes; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6562 $as_echo_n "checking for GNU ld... " >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6565 $as_echo_n "checking for non-GNU ld... " >&6; }
6566 fi
6567 if ${lt_cv_path_LD+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   if test -z "$LD"; then
6571   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6572   for ac_dir in $PATH; do
6573     IFS="$lt_save_ifs"
6574     test -z "$ac_dir" && ac_dir=.
6575     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6576       lt_cv_path_LD="$ac_dir/$ac_prog"
6577       # Check to see if the program is GNU ld.  I'd rather use --version,
6578       # but apparently some variants of GNU ld only accept -v.
6579       # Break only if it was the GNU/non-GNU ld that we prefer.
6580       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6581       *GNU* | *'with BFD'*)
6582         test "$with_gnu_ld" != no && break
6583         ;;
6584       *)
6585         test "$with_gnu_ld" != yes && break
6586         ;;
6587       esac
6588     fi
6589   done
6590   IFS="$lt_save_ifs"
6591 else
6592   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6593 fi
6594 fi
6595
6596 LD="$lt_cv_path_LD"
6597 if test -n "$LD"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6599 $as_echo "$LD" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6606 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6607 if ${lt_cv_prog_gnu_ld+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6611 case `$LD -v 2>&1 </dev/null` in
6612 *GNU* | *'with BFD'*)
6613   lt_cv_prog_gnu_ld=yes
6614   ;;
6615 *)
6616   lt_cv_prog_gnu_ld=no
6617   ;;
6618 esac
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6621 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6622 with_gnu_ld=$lt_cv_prog_gnu_ld
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6627 if ${lt_cv_ld_reload_flag+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   lt_cv_ld_reload_flag='-r'
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6634 reload_flag=$lt_cv_ld_reload_flag
6635 case $reload_flag in
6636 "" | " "*) ;;
6637 *) reload_flag=" $reload_flag" ;;
6638 esac
6639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6640 case $host_os in
6641   darwin*)
6642     if test "$GCC" = yes; then
6643       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6644     else
6645       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6646     fi
6647     ;;
6648 esac
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6651 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6652 if ${lt_cv_path_NM+:} false; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655   if test -n "$NM"; then
6656   # Let the user override the test.
6657   lt_cv_path_NM="$NM"
6658 else
6659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6660   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6661     IFS="$lt_save_ifs"
6662     test -z "$ac_dir" && ac_dir=.
6663     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6664     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6665       # Check to see if the nm accepts a BSD-compat flag.
6666       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6667       #   nm: unknown option "B" ignored
6668       # Tru64's nm complains that /dev/null is an invalid object file
6669       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6670       */dev/null* | *'Invalid file or object type'*)
6671         lt_cv_path_NM="$tmp_nm -B"
6672         break
6673         ;;
6674       *)
6675         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6676         */dev/null*)
6677           lt_cv_path_NM="$tmp_nm -p"
6678           break
6679           ;;
6680         *)
6681           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6682           continue # so that we can try to find one that supports BSD flags
6683           ;;
6684         esac
6685       esac
6686     fi
6687   done
6688   IFS="$lt_save_ifs"
6689   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6690 fi
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6693 $as_echo "$lt_cv_path_NM" >&6; }
6694 NM="$lt_cv_path_NM"
6695
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6697 $as_echo_n "checking whether ln -s works... " >&6; }
6698 LN_S=$as_ln_s
6699 if test "$LN_S" = "ln -s"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6701 $as_echo "yes" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6704 $as_echo "no, using $LN_S" >&6; }
6705 fi
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6708 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6709 if ${lt_cv_deplibs_check_method+:} false; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   lt_cv_file_magic_cmd='$MAGIC_CMD'
6713 lt_cv_file_magic_test_file=
6714 lt_cv_deplibs_check_method='unknown'
6715 # Need to set the preceding variable on all platforms that support
6716 # interlibrary dependencies.
6717 # 'none' -- dependencies not supported.
6718 # `unknown' -- same as none, but documents that we really don't know.
6719 # 'pass_all' -- all dependencies passed with no checks.
6720 # 'test_compile' -- check by making test program.
6721 # 'file_magic [[regex]]' -- check by looking for files in library path
6722 # which responds to the $file_magic_cmd with a given extended regex.
6723 # If you have `file' or equivalent on your system and you're not sure
6724 # whether `pass_all' will *always* work, you probably want this one.
6725
6726 case $host_os in
6727 aix4* | aix5*)
6728   lt_cv_deplibs_check_method=pass_all
6729   ;;
6730
6731 beos*)
6732   lt_cv_deplibs_check_method=pass_all
6733   ;;
6734
6735 bsdi[45]*)
6736   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6737   lt_cv_file_magic_cmd='/usr/bin/file -L'
6738   lt_cv_file_magic_test_file=/shlib/libc.so
6739   ;;
6740
6741 cygwin*)
6742   # func_win32_libid is a shell function defined in ltmain.sh
6743   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6744   lt_cv_file_magic_cmd='func_win32_libid'
6745   ;;
6746
6747 mingw* | pw32*)
6748   # Base MSYS/MinGW do not provide the 'file' command needed by
6749   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6750   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6751   lt_cv_file_magic_cmd='$OBJDUMP -f'
6752   ;;
6753
6754 darwin* | rhapsody*)
6755   lt_cv_deplibs_check_method=pass_all
6756   ;;
6757
6758 freebsd* | kfreebsd*-gnu | dragonfly*)
6759   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6760     case $host_cpu in
6761     i*86 )
6762       # Not sure whether the presence of OpenBSD here was a mistake.
6763       # Let's accept both of them until this is cleared up.
6764       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6765       lt_cv_file_magic_cmd=/usr/bin/file
6766       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6767       ;;
6768     esac
6769   else
6770     lt_cv_deplibs_check_method=pass_all
6771   fi
6772   ;;
6773
6774 gnu*)
6775   lt_cv_deplibs_check_method=pass_all
6776   ;;
6777
6778 hpux10.20* | hpux11*)
6779   lt_cv_file_magic_cmd=/usr/bin/file
6780   case $host_cpu in
6781   ia64*)
6782     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6783     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6784     ;;
6785   hppa*64*)
6786     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6787     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6788     ;;
6789   *)
6790     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6791     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6792     ;;
6793   esac
6794   ;;
6795
6796 irix5* | irix6* | nonstopux*)
6797   case $LD in
6798   *-32|*"-32 ") libmagic=32-bit;;
6799   *-n32|*"-n32 ") libmagic=N32;;
6800   *-64|*"-64 ") libmagic=64-bit;;
6801   *) libmagic=never-match;;
6802   esac
6803   lt_cv_deplibs_check_method=pass_all
6804   ;;
6805
6806 # This must be Linux ELF.
6807 linux*)
6808   lt_cv_deplibs_check_method=pass_all
6809   ;;
6810
6811 netbsd*)
6812   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6814   else
6815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6816   fi
6817   ;;
6818
6819 newos6*)
6820   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6821   lt_cv_file_magic_cmd=/usr/bin/file
6822   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6823   ;;
6824
6825 nto-qnx*)
6826   lt_cv_deplibs_check_method=unknown
6827   ;;
6828
6829 openbsd*)
6830   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6832   else
6833     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6834   fi
6835   ;;
6836
6837 osf3* | osf4* | osf5*)
6838   lt_cv_deplibs_check_method=pass_all
6839   ;;
6840
6841 sco3.2v5*)
6842   lt_cv_deplibs_check_method=pass_all
6843   ;;
6844
6845 solaris*)
6846   lt_cv_deplibs_check_method=pass_all
6847   ;;
6848
6849 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6850   case $host_vendor in
6851   motorola)
6852     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]'
6853     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6854     ;;
6855   ncr)
6856     lt_cv_deplibs_check_method=pass_all
6857     ;;
6858   sequent)
6859     lt_cv_file_magic_cmd='/bin/file'
6860     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6861     ;;
6862   sni)
6863     lt_cv_file_magic_cmd='/bin/file'
6864     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6865     lt_cv_file_magic_test_file=/lib/libc.so
6866     ;;
6867   siemens)
6868     lt_cv_deplibs_check_method=pass_all
6869     ;;
6870   esac
6871   ;;
6872
6873 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6874   lt_cv_deplibs_check_method=pass_all
6875   ;;
6876 esac
6877
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6880 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6881 file_magic_cmd=$lt_cv_file_magic_cmd
6882 deplibs_check_method=$lt_cv_deplibs_check_method
6883 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6884
6885
6886
6887
6888 # If no C compiler was specified, use CC.
6889 LTCC=${LTCC-"$CC"}
6890
6891 # Allow CC to be a program name with arguments.
6892 compiler=$CC
6893
6894
6895 # Check whether --enable-libtool-lock was given.
6896 if test "${enable_libtool_lock+set}" = set; then :
6897   enableval=$enable_libtool_lock;
6898 fi
6899
6900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6901
6902 # Some flags need to be propagated to the compiler or linker for good
6903 # libtool support.
6904 case $host in
6905 ia64-*-hpux*)
6906   # Find out which ABI we are using.
6907   echo 'int i;' > conftest.$ac_ext
6908   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6909   (eval $ac_compile) 2>&5
6910   ac_status=$?
6911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912   test $ac_status = 0; }; then
6913     case `/usr/bin/file conftest.$ac_objext` in
6914     *ELF-32*)
6915       HPUX_IA64_MODE="32"
6916       ;;
6917     *ELF-64*)
6918       HPUX_IA64_MODE="64"
6919       ;;
6920     esac
6921   fi
6922   rm -rf conftest*
6923   ;;
6924 *-*-irix6*)
6925   # Find out which ABI we are using.
6926   echo '#line 6926 "configure"' > conftest.$ac_ext
6927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6928   (eval $ac_compile) 2>&5
6929   ac_status=$?
6930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931   test $ac_status = 0; }; then
6932    if test "$lt_cv_prog_gnu_ld" = yes; then
6933     case `/usr/bin/file conftest.$ac_objext` in
6934     *32-bit*)
6935       LD="${LD-ld} -melf32bsmip"
6936       ;;
6937     *N32*)
6938       LD="${LD-ld} -melf32bmipn32"
6939       ;;
6940     *64-bit*)
6941       LD="${LD-ld} -melf64bmip"
6942       ;;
6943     esac
6944    else
6945     case `/usr/bin/file conftest.$ac_objext` in
6946     *32-bit*)
6947       LD="${LD-ld} -32"
6948       ;;
6949     *N32*)
6950       LD="${LD-ld} -n32"
6951       ;;
6952     *64-bit*)
6953       LD="${LD-ld} -64"
6954       ;;
6955     esac
6956    fi
6957   fi
6958   rm -rf conftest*
6959   ;;
6960
6961 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6962   # Find out which ABI we are using.
6963   echo 'int i;' > conftest.$ac_ext
6964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965   (eval $ac_compile) 2>&5
6966   ac_status=$?
6967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968   test $ac_status = 0; }; then
6969     case `/usr/bin/file conftest.o` in
6970     *32-bit*)
6971       case $host in
6972         x86_64-*linux*)
6973           LD="${LD-ld} -m elf_i386"
6974           ;;
6975         ppc64-*linux*|powerpc64-*linux*)
6976           LD="${LD-ld} -m elf32ppclinux"
6977           ;;
6978         s390x-*linux*)
6979           LD="${LD-ld} -m elf_s390"
6980           ;;
6981         sparc64-*linux*)
6982           LD="${LD-ld} -m elf32_sparc"
6983           ;;
6984       esac
6985       ;;
6986     *64-bit*)
6987       case $host in
6988         x86_64-*linux*)
6989           LD="${LD-ld} -m elf_x86_64"
6990           ;;
6991         ppc*-*linux*|powerpc*-*linux*)
6992           LD="${LD-ld} -m elf64ppc"
6993           ;;
6994         s390*-*linux*)
6995           LD="${LD-ld} -m elf64_s390"
6996           ;;
6997         sparc*-*linux*)
6998           LD="${LD-ld} -m elf64_sparc"
6999           ;;
7000       esac
7001       ;;
7002     esac
7003   fi
7004   rm -rf conftest*
7005   ;;
7006
7007 *-*-sco3.2v5*)
7008   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7009   SAVE_CFLAGS="$CFLAGS"
7010   CFLAGS="$CFLAGS -belf"
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7012 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7013 if ${lt_cv_cc_needs_belf+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024
7025 int
7026 main ()
7027 {
7028
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"; then :
7034   lt_cv_cc_needs_belf=yes
7035 else
7036   lt_cv_cc_needs_belf=no
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext \
7039     conftest$ac_exeext conftest.$ac_ext
7040      ac_ext=c
7041 ac_cpp='$CPP $CPPFLAGS'
7042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7048 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7049   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7050     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7051     CFLAGS="$SAVE_CFLAGS"
7052   fi
7053   ;;
7054 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7055   if test -n "$ac_tool_prefix"; then
7056   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_DLLTOOL+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$DLLTOOL"; then
7064   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 DLLTOOL=$ac_cv_prog_DLLTOOL
7084 if test -n "$DLLTOOL"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7086 $as_echo "$DLLTOOL" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_DLLTOOL"; then
7095   ac_ct_DLLTOOL=$DLLTOOL
7096   # Extract the first word of "dlltool", so it can be a program name with args.
7097 set dummy dlltool; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$ac_ct_DLLTOOL"; then
7104   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7124 if test -n "$ac_ct_DLLTOOL"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7126 $as_echo "$ac_ct_DLLTOOL" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132   if test "x$ac_ct_DLLTOOL" = x; then
7133     DLLTOOL="false"
7134   else
7135     case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     DLLTOOL=$ac_ct_DLLTOOL
7142   fi
7143 else
7144   DLLTOOL="$ac_cv_prog_DLLTOOL"
7145 fi
7146
7147   if test -n "$ac_tool_prefix"; then
7148   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}as; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_AS+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test -n "$AS"; then
7156   ac_cv_prog_AS="$AS" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_AS="${ac_tool_prefix}as"
7166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170   done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 AS=$ac_cv_prog_AS
7176 if test -n "$AS"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7178 $as_echo "$AS" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_AS"; then
7187   ac_ct_AS=$AS
7188   # Extract the first word of "as", so it can be a program name with args.
7189 set dummy as; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$ac_ct_AS"; then
7196   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_ac_ct_AS="as"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7216 if test -n "$ac_ct_AS"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7218 $as_echo "$ac_ct_AS" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224   if test "x$ac_ct_AS" = x; then
7225     AS="false"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233     AS=$ac_ct_AS
7234   fi
7235 else
7236   AS="$ac_cv_prog_AS"
7237 fi
7238
7239   if test -n "$ac_tool_prefix"; then
7240   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_OBJDUMP+:} false; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$OBJDUMP"; then
7248   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 OBJDUMP=$ac_cv_prog_OBJDUMP
7268 if test -n "$OBJDUMP"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7270 $as_echo "$OBJDUMP" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_OBJDUMP"; then
7279   ac_ct_OBJDUMP=$OBJDUMP
7280   # Extract the first word of "objdump", so it can be a program name with args.
7281 set dummy objdump; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$ac_ct_OBJDUMP"; then
7288   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7308 if test -n "$ac_ct_OBJDUMP"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7310 $as_echo "$ac_ct_OBJDUMP" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316   if test "x$ac_ct_OBJDUMP" = x; then
7317     OBJDUMP="false"
7318   else
7319     case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325     OBJDUMP=$ac_ct_OBJDUMP
7326   fi
7327 else
7328   OBJDUMP="$ac_cv_prog_OBJDUMP"
7329 fi
7330
7331   ;;
7332
7333 esac
7334
7335 need_locks="$enable_libtool_lock"
7336
7337
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7345 # On Suns, sometimes $CPP names a directory.
7346 if test -n "$CPP" && test -d "$CPP"; then
7347   CPP=
7348 fi
7349 if test -z "$CPP"; then
7350   if ${ac_cv_prog_CPP+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353       # Double quotes because CPP needs to be expanded
7354     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7355     do
7356       ac_preproc_ok=false
7357 for ac_c_preproc_warn_flag in '' yes
7358 do
7359   # Use a header file that comes with gcc, so configuring glibc
7360   # with a fresh cross-compiler works.
7361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362   # <limits.h> exists even on freestanding compilers.
7363   # On the NeXT, cc -E runs the code through the compiler's parser,
7364   # not just through cpp. "Syntax error" is here to catch this case.
7365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h.  */
7367 #ifdef __STDC__
7368 # include <limits.h>
7369 #else
7370 # include <assert.h>
7371 #endif
7372                      Syntax error
7373 _ACEOF
7374 if ac_fn_c_try_cpp "$LINENO"; then :
7375
7376 else
7377   # Broken: fails on valid input.
7378 continue
7379 fi
7380 rm -f conftest.err conftest.i conftest.$ac_ext
7381
7382   # OK, works on sane cases.  Now check whether nonexistent headers
7383   # can be detected and how.
7384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h.  */
7386 #include <ac_nonexistent.h>
7387 _ACEOF
7388 if ac_fn_c_try_cpp "$LINENO"; then :
7389   # Broken: success on invalid input.
7390 continue
7391 else
7392   # Passes both tests.
7393 ac_preproc_ok=:
7394 break
7395 fi
7396 rm -f conftest.err conftest.i conftest.$ac_ext
7397
7398 done
7399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7400 rm -f conftest.i conftest.err conftest.$ac_ext
7401 if $ac_preproc_ok; then :
7402   break
7403 fi
7404
7405     done
7406     ac_cv_prog_CPP=$CPP
7407
7408 fi
7409   CPP=$ac_cv_prog_CPP
7410 else
7411   ac_cv_prog_CPP=$CPP
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7414 $as_echo "$CPP" >&6; }
7415 ac_preproc_ok=false
7416 for ac_c_preproc_warn_flag in '' yes
7417 do
7418   # Use a header file that comes with gcc, so configuring glibc
7419   # with a fresh cross-compiler works.
7420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7421   # <limits.h> exists even on freestanding compilers.
7422   # On the NeXT, cc -E runs the code through the compiler's parser,
7423   # not just through cpp. "Syntax error" is here to catch this case.
7424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h.  */
7426 #ifdef __STDC__
7427 # include <limits.h>
7428 #else
7429 # include <assert.h>
7430 #endif
7431                      Syntax error
7432 _ACEOF
7433 if ac_fn_c_try_cpp "$LINENO"; then :
7434
7435 else
7436   # Broken: fails on valid input.
7437 continue
7438 fi
7439 rm -f conftest.err conftest.i conftest.$ac_ext
7440
7441   # OK, works on sane cases.  Now check whether nonexistent headers
7442   # can be detected and how.
7443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h.  */
7445 #include <ac_nonexistent.h>
7446 _ACEOF
7447 if ac_fn_c_try_cpp "$LINENO"; then :
7448   # Broken: success on invalid input.
7449 continue
7450 else
7451   # Passes both tests.
7452 ac_preproc_ok=:
7453 break
7454 fi
7455 rm -f conftest.err conftest.i conftest.$ac_ext
7456
7457 done
7458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7459 rm -f conftest.i conftest.err conftest.$ac_ext
7460 if $ac_preproc_ok; then :
7461
7462 else
7463   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7465 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7466 See \`config.log' for more details" "$LINENO" 5; }
7467 fi
7468
7469 ac_ext=c
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7477 $as_echo_n "checking for ANSI C header files... " >&6; }
7478 if ${ac_cv_header_stdc+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h.  */
7483 #include <stdlib.h>
7484 #include <stdarg.h>
7485 #include <string.h>
7486 #include <float.h>
7487
7488 int
7489 main ()
7490 {
7491
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497   ac_cv_header_stdc=yes
7498 else
7499   ac_cv_header_stdc=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502
7503 if test $ac_cv_header_stdc = yes; then
7504   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507 #include <string.h>
7508
7509 _ACEOF
7510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7511   $EGREP "memchr" >/dev/null 2>&1; then :
7512
7513 else
7514   ac_cv_header_stdc=no
7515 fi
7516 rm -f conftest*
7517
7518 fi
7519
7520 if test $ac_cv_header_stdc = yes; then
7521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h.  */
7524 #include <stdlib.h>
7525
7526 _ACEOF
7527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528   $EGREP "free" >/dev/null 2>&1; then :
7529
7530 else
7531   ac_cv_header_stdc=no
7532 fi
7533 rm -f conftest*
7534
7535 fi
7536
7537 if test $ac_cv_header_stdc = yes; then
7538   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7539   if test "$cross_compiling" = yes; then :
7540   :
7541 else
7542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h.  */
7544 #include <ctype.h>
7545 #include <stdlib.h>
7546 #if ((' ' & 0x0FF) == 0x020)
7547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7549 #else
7550 # define ISLOWER(c) \
7551                    (('a' <= (c) && (c) <= 'i') \
7552                      || ('j' <= (c) && (c) <= 'r') \
7553                      || ('s' <= (c) && (c) <= 'z'))
7554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7555 #endif
7556
7557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7558 int
7559 main ()
7560 {
7561   int i;
7562   for (i = 0; i < 256; i++)
7563     if (XOR (islower (i), ISLOWER (i))
7564         || toupper (i) != TOUPPER (i))
7565       return 2;
7566   return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_run "$LINENO"; then :
7570
7571 else
7572   ac_cv_header_stdc=no
7573 fi
7574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7575   conftest.$ac_objext conftest.beam conftest.$ac_ext
7576 fi
7577
7578 fi
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7581 $as_echo "$ac_cv_header_stdc" >&6; }
7582 if test $ac_cv_header_stdc = yes; then
7583
7584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7585
7586 fi
7587
7588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7590                   inttypes.h stdint.h unistd.h
7591 do :
7592   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7593 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7594 "
7595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7596   cat >>confdefs.h <<_ACEOF
7597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7598 _ACEOF
7599
7600 fi
7601
7602 done
7603
7604
7605 for ac_header in dlfcn.h
7606 do :
7607   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7608 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7609   cat >>confdefs.h <<_ACEOF
7610 #define HAVE_DLFCN_H 1
7611 _ACEOF
7612
7613 fi
7614
7615 done
7616
7617
7618 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7619
7620 # find the maximum length of command line arguments
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7622 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7623 if ${lt_cv_sys_max_cmd_len+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626     i=0
7627   teststring="ABCD"
7628
7629   case $build_os in
7630   msdosdjgpp*)
7631     # On DJGPP, this test can blow up pretty badly due to problems in libc
7632     # (any single argument exceeding 2000 bytes causes a buffer overrun
7633     # during glob expansion).  Even if it were fixed, the result of this
7634     # check would be larger than it should be.
7635     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7636     ;;
7637
7638   gnu*)
7639     # Under GNU Hurd, this test is not required because there is
7640     # no limit to the length of command line arguments.
7641     # Libtool will interpret -1 as no limit whatsoever
7642     lt_cv_sys_max_cmd_len=-1;
7643     ;;
7644
7645   cygwin* | mingw*)
7646     # On Win9x/ME, this test blows up -- it succeeds, but takes
7647     # about 5 minutes as the teststring grows exponentially.
7648     # Worse, since 9x/ME are not pre-emptively multitasking,
7649     # you end up with a "frozen" computer, even though with patience
7650     # the test eventually succeeds (with a max line length of 256k).
7651     # Instead, let's just punt: use the minimum linelength reported by
7652     # all of the supported platforms: 8192 (on NT/2K/XP).
7653     lt_cv_sys_max_cmd_len=8192;
7654     ;;
7655
7656   amigaos*)
7657     # On AmigaOS with pdksh, this test takes hours, literally.
7658     # So we just punt and use a minimum line length of 8192.
7659     lt_cv_sys_max_cmd_len=8192;
7660     ;;
7661
7662   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7663     # This has been around since 386BSD, at least.  Likely further.
7664     if test -x /sbin/sysctl; then
7665       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7666     elif test -x /usr/sbin/sysctl; then
7667       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7668     else
7669       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7670     fi
7671     # And add a safety zone
7672     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7673     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7674     ;;
7675   osf*)
7676     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7677     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7678     # nice to cause kernel panics so lets avoid the loop below.
7679     # First set a reasonable default.
7680     lt_cv_sys_max_cmd_len=16384
7681     #
7682     if test -x /sbin/sysconfig; then
7683       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7684         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7685       esac
7686     fi
7687     ;;
7688   *)
7689     # If test is not a shell built-in, we'll probably end up computing a
7690     # maximum length that is only half of the actual maximum length, but
7691     # we can't tell.
7692     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7693     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7694                = "XX$teststring") >/dev/null 2>&1 &&
7695             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7696             lt_cv_sys_max_cmd_len=$new_result &&
7697             test $i != 17 # 1/2 MB should be enough
7698     do
7699       i=`expr $i + 1`
7700       teststring=$teststring$teststring
7701     done
7702     teststring=
7703     # Add a significant safety factor because C++ compilers can tack on massive
7704     # amounts of additional arguments before passing them to the linker.
7705     # It appears as though 1/2 is a usable value.
7706     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7707     ;;
7708   esac
7709
7710 fi
7711
7712 if test -n $lt_cv_sys_max_cmd_len ; then
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7714 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7717 $as_echo "none" >&6; }
7718 fi
7719
7720
7721
7722
7723 # Check for command to grab the raw symbol name followed by C symbol from nm.
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7725 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7726 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729
7730 # These are sane defaults that work on at least a few old systems.
7731 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7732
7733 # Character class describing NM global symbol codes.
7734 symcode='[BCDEGRST]'
7735
7736 # Regexp to match symbols that can be accessed directly from C.
7737 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7738
7739 # Transform an extracted symbol line into a proper C declaration
7740 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7741
7742 # Transform an extracted symbol line into symbol name and symbol address
7743 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7744
7745 # Define system-specific variables.
7746 case $host_os in
7747 aix*)
7748   symcode='[BCDT]'
7749   ;;
7750 cygwin* | mingw* | pw32*)
7751   symcode='[ABCDGISTW]'
7752   ;;
7753 hpux*) # Its linker distinguishes data from code symbols
7754   if test "$host_cpu" = ia64; then
7755     symcode='[ABCDEGRST]'
7756   fi
7757   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7758   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7759   ;;
7760 linux*)
7761   if test "$host_cpu" = ia64; then
7762     symcode='[ABCDGIRSTW]'
7763     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7764     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7765   fi
7766   ;;
7767 irix* | nonstopux*)
7768   symcode='[BCDEGRST]'
7769   ;;
7770 osf*)
7771   symcode='[BCDEGQRST]'
7772   ;;
7773 solaris* | sysv5*)
7774   symcode='[BDRT]'
7775   ;;
7776 sysv4)
7777   symcode='[DFNSTU]'
7778   ;;
7779 esac
7780
7781 # Handle CRLF in mingw tool chain
7782 opt_cr=
7783 case $build_os in
7784 mingw*)
7785   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7786   ;;
7787 esac
7788
7789 # If we're using GNU nm, then use its standard symbol codes.
7790 case `$NM -V 2>&1` in
7791 *GNU* | *'with BFD'*)
7792   symcode='[ABCDGIRSTW]' ;;
7793 esac
7794
7795 # Try without a prefix undercore, then with it.
7796 for ac_symprfx in "" "_"; do
7797
7798   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7799   symxfrm="\\1 $ac_symprfx\\2 \\2"
7800
7801   # Write the raw and C identifiers.
7802   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7803
7804   # Check to see that the pipe works correctly.
7805   pipe_works=no
7806
7807   rm -f conftest*
7808   cat > conftest.$ac_ext <<EOF
7809 #ifdef __cplusplus
7810 extern "C" {
7811 #endif
7812 char nm_test_var;
7813 void nm_test_func(){}
7814 #ifdef __cplusplus
7815 }
7816 #endif
7817 int main(){nm_test_var='a';nm_test_func();return(0);}
7818 EOF
7819
7820   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821   (eval $ac_compile) 2>&5
7822   ac_status=$?
7823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824   test $ac_status = 0; }; then
7825     # Now try to grab the symbols.
7826     nlist=conftest.nm
7827     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7828   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7829   ac_status=$?
7830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831   test $ac_status = 0; } && test -s "$nlist"; then
7832       # Try sorting and uniquifying the output.
7833       if sort "$nlist" | uniq > "$nlist"T; then
7834         mv -f "$nlist"T "$nlist"
7835       else
7836         rm -f "$nlist"T
7837       fi
7838
7839       # Make sure that we snagged all the symbols we need.
7840       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7841         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7842           cat <<EOF > conftest.$ac_ext
7843 #ifdef __cplusplus
7844 extern "C" {
7845 #endif
7846
7847 EOF
7848           # Now generate the symbol file.
7849           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7850
7851           cat <<EOF >> conftest.$ac_ext
7852 #if defined (__STDC__) && __STDC__
7853 # define lt_ptr_t void *
7854 #else
7855 # define lt_ptr_t char *
7856 # define const
7857 #endif
7858
7859 /* The mapping between symbol names and symbols. */
7860 const struct {
7861   const char *name;
7862   lt_ptr_t address;
7863 }
7864 lt_preloaded_symbols[] =
7865 {
7866 EOF
7867           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7868           cat <<\EOF >> conftest.$ac_ext
7869   {0, (lt_ptr_t) 0}
7870 };
7871
7872 #ifdef __cplusplus
7873 }
7874 #endif
7875 EOF
7876           # Now try linking the two files.
7877           mv conftest.$ac_objext conftstm.$ac_objext
7878           lt_save_LIBS="$LIBS"
7879           lt_save_CFLAGS="$CFLAGS"
7880           LIBS="conftstm.$ac_objext"
7881           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7882           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7883   (eval $ac_link) 2>&5
7884   ac_status=$?
7885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7887             pipe_works=yes
7888           fi
7889           LIBS="$lt_save_LIBS"
7890           CFLAGS="$lt_save_CFLAGS"
7891         else
7892           echo "cannot find nm_test_func in $nlist" >&5
7893         fi
7894       else
7895         echo "cannot find nm_test_var in $nlist" >&5
7896       fi
7897     else
7898       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7899     fi
7900   else
7901     echo "$progname: failed program was:" >&5
7902     cat conftest.$ac_ext >&5
7903   fi
7904   rm -f conftest* conftst*
7905
7906   # Do not use the global_symbol_pipe unless it works.
7907   if test "$pipe_works" = yes; then
7908     break
7909   else
7910     lt_cv_sys_global_symbol_pipe=
7911   fi
7912 done
7913
7914 fi
7915
7916 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7917   lt_cv_sys_global_symbol_to_cdecl=
7918 fi
7919 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7921 $as_echo "failed" >&6; }
7922 else
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7924 $as_echo "ok" >&6; }
7925 fi
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7928 $as_echo_n "checking for objdir... " >&6; }
7929 if ${lt_cv_objdir+:} false; then :
7930   $as_echo_n "(cached) " >&6
7931 else
7932   rm -f .libs 2>/dev/null
7933 mkdir .libs 2>/dev/null
7934 if test -d .libs; then
7935   lt_cv_objdir=.libs
7936 else
7937   # MS-DOS does not allow filenames that begin with a dot.
7938   lt_cv_objdir=_libs
7939 fi
7940 rmdir .libs 2>/dev/null
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7943 $as_echo "$lt_cv_objdir" >&6; }
7944 objdir=$lt_cv_objdir
7945
7946
7947
7948
7949
7950 case $host_os in
7951 aix3*)
7952   # AIX sometimes has problems with the GCC collect2 program.  For some
7953   # reason, if we set the COLLECT_NAMES environment variable, the problems
7954   # vanish in a puff of smoke.
7955   if test "X${COLLECT_NAMES+set}" != Xset; then
7956     COLLECT_NAMES=
7957     export COLLECT_NAMES
7958   fi
7959   ;;
7960 esac
7961
7962 # Sed substitution that helps us do robust quoting.  It backslashifies
7963 # metacharacters that are still active within double-quoted strings.
7964 Xsed='sed -e 1s/^X//'
7965 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7966
7967 # Same as above, but do not quote variable references.
7968 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7969
7970 # Sed substitution to delay expansion of an escaped shell variable in a
7971 # double_quote_subst'ed string.
7972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7973
7974 # Sed substitution to avoid accidental globbing in evaled expressions
7975 no_glob_subst='s/\*/\\\*/g'
7976
7977 # Constants:
7978 rm="rm -f"
7979
7980 # Global variables:
7981 default_ofile=libtool
7982 can_build_shared=yes
7983
7984 # All known linkers require a `.a' archive for static linking (except MSVC,
7985 # which needs '.lib').
7986 libext=a
7987 ltmain="$ac_aux_dir/ltmain.sh"
7988 ofile="$default_ofile"
7989 with_gnu_ld="$lt_cv_prog_gnu_ld"
7990
7991 if test -n "$ac_tool_prefix"; then
7992   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}ar; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_AR+:} false; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   if test -n "$AR"; then
8000   ac_cv_prog_AR="$AR" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007     for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_prog_AR="${ac_tool_prefix}ar"
8010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014   done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 AR=$ac_cv_prog_AR
8020 if test -n "$AR"; then
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8022 $as_echo "$AR" >&6; }
8023 else
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_AR"; then
8031   ac_ct_AR=$AR
8032   # Extract the first word of "ar", so it can be a program name with args.
8033 set dummy ar; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   if test -n "$ac_ct_AR"; then
8040   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_prog_ac_ct_AR="ar"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8060 if test -n "$ac_ct_AR"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8062 $as_echo "$ac_ct_AR" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068   if test "x$ac_ct_AR" = x; then
8069     AR="false"
8070   else
8071     case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077     AR=$ac_ct_AR
8078   fi
8079 else
8080   AR="$ac_cv_prog_AR"
8081 fi
8082
8083 if test -n "$ac_tool_prefix"; then
8084   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_RANLIB+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if test -n "$RANLIB"; then
8092   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099     for ac_exec_ext in '' $ac_executable_extensions; do
8100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106   done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 RANLIB=$ac_cv_prog_RANLIB
8112 if test -n "$RANLIB"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8114 $as_echo "$RANLIB" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_RANLIB"; then
8123   ac_ct_RANLIB=$RANLIB
8124   # Extract the first word of "ranlib", so it can be a program name with args.
8125 set dummy ranlib; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   if test -n "$ac_ct_RANLIB"; then
8132   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141     ac_cv_prog_ac_ct_RANLIB="ranlib"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8152 if test -n "$ac_ct_RANLIB"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8154 $as_echo "$ac_ct_RANLIB" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160   if test "x$ac_ct_RANLIB" = x; then
8161     RANLIB=":"
8162   else
8163     case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169     RANLIB=$ac_ct_RANLIB
8170   fi
8171 else
8172   RANLIB="$ac_cv_prog_RANLIB"
8173 fi
8174
8175 if test -n "$ac_tool_prefix"; then
8176   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}strip; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if ${ac_cv_prog_STRIP+:} false; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   if test -n "$STRIP"; then
8184   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191     for ac_exec_ext in '' $ac_executable_extensions; do
8192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198   done
8199 IFS=$as_save_IFS
8200
8201 fi
8202 fi
8203 STRIP=$ac_cv_prog_STRIP
8204 if test -n "$STRIP"; then
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8206 $as_echo "$STRIP" >&6; }
8207 else
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_STRIP"; then
8215   ac_ct_STRIP=$STRIP
8216   # Extract the first word of "strip", so it can be a program name with args.
8217 set dummy strip; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   if test -n "$ac_ct_STRIP"; then
8224   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231     for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_prog_ac_ct_STRIP="strip"
8234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238   done
8239 IFS=$as_save_IFS
8240
8241 fi
8242 fi
8243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8244 if test -n "$ac_ct_STRIP"; then
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8246 $as_echo "$ac_ct_STRIP" >&6; }
8247 else
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252   if test "x$ac_ct_STRIP" = x; then
8253     STRIP=":"
8254   else
8255     case $cross_compiling:$ac_tool_warned in
8256 yes:)
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8260 esac
8261     STRIP=$ac_ct_STRIP
8262   fi
8263 else
8264   STRIP="$ac_cv_prog_STRIP"
8265 fi
8266
8267
8268 old_CC="$CC"
8269 old_CFLAGS="$CFLAGS"
8270
8271 # Set sane defaults for various variables
8272 test -z "$AR" && AR=ar
8273 test -z "$AR_FLAGS" && AR_FLAGS=cru
8274 test -z "$AS" && AS=as
8275 test -z "$CC" && CC=cc
8276 test -z "$LTCC" && LTCC=$CC
8277 test -z "$DLLTOOL" && DLLTOOL=dlltool
8278 test -z "$LD" && LD=ld
8279 test -z "$LN_S" && LN_S="ln -s"
8280 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8281 test -z "$NM" && NM=nm
8282 test -z "$SED" && SED=sed
8283 test -z "$OBJDUMP" && OBJDUMP=objdump
8284 test -z "$RANLIB" && RANLIB=:
8285 test -z "$STRIP" && STRIP=:
8286 test -z "$ac_objext" && ac_objext=o
8287
8288 # Determine commands to create old-style static archives.
8289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8290 old_postinstall_cmds='chmod 644 $oldlib'
8291 old_postuninstall_cmds=
8292
8293 if test -n "$RANLIB"; then
8294   case $host_os in
8295   openbsd*)
8296     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8297     ;;
8298   *)
8299     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8300     ;;
8301   esac
8302   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8303 fi
8304
8305 for cc_temp in $compiler""; do
8306   case $cc_temp in
8307     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8308     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8309     \-*) ;;
8310     *) break;;
8311   esac
8312 done
8313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8314
8315
8316 # Only perform the check for file, if the check method requires it
8317 case $deplibs_check_method in
8318 file_magic*)
8319   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   case $MAGIC_CMD in
8326 [\\/*] |  ?:[\\/]*)
8327   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8328   ;;
8329 *)
8330   lt_save_MAGIC_CMD="$MAGIC_CMD"
8331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333   for ac_dir in $ac_dummy; do
8334     IFS="$lt_save_ifs"
8335     test -z "$ac_dir" && ac_dir=.
8336     if test -f $ac_dir/${ac_tool_prefix}file; then
8337       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8338       if test -n "$file_magic_test_file"; then
8339         case $deplibs_check_method in
8340         "file_magic "*)
8341           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344             $EGREP "$file_magic_regex" > /dev/null; then
8345             :
8346           else
8347             cat <<EOF 1>&2
8348
8349 *** Warning: the command libtool uses to detect shared libraries,
8350 *** $file_magic_cmd, produces output that libtool cannot recognize.
8351 *** The result is that libtool may fail to recognize shared libraries
8352 *** as such.  This will affect the creation of libtool libraries that
8353 *** depend on shared libraries, but programs linked with such libtool
8354 *** libraries will work regardless of this problem.  Nevertheless, you
8355 *** may want to report the problem to your system manager and/or to
8356 *** bug-libtool@gnu.org
8357
8358 EOF
8359           fi ;;
8360         esac
8361       fi
8362       break
8363     fi
8364   done
8365   IFS="$lt_save_ifs"
8366   MAGIC_CMD="$lt_save_MAGIC_CMD"
8367   ;;
8368 esac
8369 fi
8370
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if test -n "$MAGIC_CMD"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374 $as_echo "$MAGIC_CMD" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380 if test -z "$lt_cv_path_MAGIC_CMD"; then
8381   if test -n "$ac_tool_prefix"; then
8382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8383 $as_echo_n "checking for file... " >&6; }
8384 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   case $MAGIC_CMD in
8388 [\\/*] |  ?:[\\/]*)
8389   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8390   ;;
8391 *)
8392   lt_save_MAGIC_CMD="$MAGIC_CMD"
8393   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8394   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8395   for ac_dir in $ac_dummy; do
8396     IFS="$lt_save_ifs"
8397     test -z "$ac_dir" && ac_dir=.
8398     if test -f $ac_dir/file; then
8399       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8400       if test -n "$file_magic_test_file"; then
8401         case $deplibs_check_method in
8402         "file_magic "*)
8403           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8404           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8405           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8406             $EGREP "$file_magic_regex" > /dev/null; then
8407             :
8408           else
8409             cat <<EOF 1>&2
8410
8411 *** Warning: the command libtool uses to detect shared libraries,
8412 *** $file_magic_cmd, produces output that libtool cannot recognize.
8413 *** The result is that libtool may fail to recognize shared libraries
8414 *** as such.  This will affect the creation of libtool libraries that
8415 *** depend on shared libraries, but programs linked with such libtool
8416 *** libraries will work regardless of this problem.  Nevertheless, you
8417 *** may want to report the problem to your system manager and/or to
8418 *** bug-libtool@gnu.org
8419
8420 EOF
8421           fi ;;
8422         esac
8423       fi
8424       break
8425     fi
8426   done
8427   IFS="$lt_save_ifs"
8428   MAGIC_CMD="$lt_save_MAGIC_CMD"
8429   ;;
8430 esac
8431 fi
8432
8433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8434 if test -n "$MAGIC_CMD"; then
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8436 $as_echo "$MAGIC_CMD" >&6; }
8437 else
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441
8442   else
8443     MAGIC_CMD=:
8444   fi
8445 fi
8446
8447   fi
8448   ;;
8449 esac
8450
8451 enable_dlopen=yes
8452 enable_win32_dll=yes
8453
8454 # Check whether --enable-libtool-lock was given.
8455 if test "${enable_libtool_lock+set}" = set; then :
8456   enableval=$enable_libtool_lock;
8457 fi
8458
8459 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8460
8461
8462 # Check whether --with-pic was given.
8463 if test "${with_pic+set}" = set; then :
8464   withval=$with_pic; pic_mode="$withval"
8465 else
8466   pic_mode=default
8467 fi
8468
8469 test -z "$pic_mode" && pic_mode=default
8470
8471 # Use C for the default configuration in the libtool script
8472 tagname=
8473 lt_save_CC="$CC"
8474 ac_ext=c
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479
8480
8481 # Source file extension for C test sources.
8482 ac_ext=c
8483
8484 # Object file extension for compiled C test sources.
8485 objext=o
8486 objext=$objext
8487
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;\n"
8490
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}\n'
8493
8494
8495 # If no C compiler was specified, use CC.
8496 LTCC=${LTCC-"$CC"}
8497
8498 # Allow CC to be a program name with arguments.
8499 compiler=$CC
8500
8501
8502 # save warnings/boilerplate of simple test code
8503 ac_outfile=conftest.$ac_objext
8504 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8505 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8506 _lt_compiler_boilerplate=`cat conftest.err`
8507 $rm conftest*
8508
8509 ac_outfile=conftest.$ac_objext
8510 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8511 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8512 _lt_linker_boilerplate=`cat conftest.err`
8513 $rm conftest*
8514
8515
8516 #
8517 # Check for any special shared library compilation flags.
8518 #
8519 lt_prog_cc_shlib=
8520 if test "$GCC" = no; then
8521   case $host_os in
8522   sco3.2v5*)
8523     lt_prog_cc_shlib='-belf'
8524     ;;
8525   esac
8526 fi
8527 if test -n "$lt_prog_cc_shlib"; then
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8529 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8530   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8531   else
8532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8533 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8534     lt_cv_prog_cc_can_build_shared=no
8535   fi
8536 fi
8537
8538
8539 #
8540 # Check to make sure the static flag actually works.
8541 #
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8543 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8544 if ${lt_prog_compiler_static_works+:} false; then :
8545   $as_echo_n "(cached) " >&6
8546 else
8547   lt_prog_compiler_static_works=no
8548    save_LDFLAGS="$LDFLAGS"
8549    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8550    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8551    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552      # The linker can only warn and ignore the option if not recognized
8553      # So say no if there are warnings
8554      if test -s conftest.err; then
8555        # Append any errors to the config.log.
8556        cat conftest.err 1>&5
8557        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8558        $SED '/^$/d' conftest.err >conftest.er2
8559        if diff conftest.exp conftest.er2 >/dev/null; then
8560          lt_prog_compiler_static_works=yes
8561        fi
8562      else
8563        lt_prog_compiler_static_works=yes
8564      fi
8565    fi
8566    $rm conftest*
8567    LDFLAGS="$save_LDFLAGS"
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8571 $as_echo "$lt_prog_compiler_static_works" >&6; }
8572
8573 if test x"$lt_prog_compiler_static_works" = xyes; then
8574     :
8575 else
8576     lt_prog_compiler_static=
8577 fi
8578
8579
8580
8581
8582 lt_prog_compiler_no_builtin_flag=
8583
8584 if test "$GCC" = yes; then
8585   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8586
8587
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8589 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8590 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8591   $as_echo_n "(cached) " >&6
8592 else
8593   lt_cv_prog_compiler_rtti_exceptions=no
8594   ac_outfile=conftest.$ac_objext
8595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8596    lt_compiler_flag="-fno-rtti -fno-exceptions"
8597    # Insert the option either (1) after the last *FLAGS variable, or
8598    # (2) before a word containing "conftest.", or (3) at the end.
8599    # Note that $ac_compile itself does not contain backslashes and begins
8600    # with a dollar sign (not a hyphen), so the echo should work correctly.
8601    # The option is referenced via a variable to avoid confusing sed.
8602    lt_compile=`echo "$ac_compile" | $SED \
8603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605    -e 's:$: $lt_compiler_flag:'`
8606    (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607    (eval "$lt_compile" 2>conftest.err)
8608    ac_status=$?
8609    cat conftest.err >&5
8610    echo "$as_me:8610: \$? = $ac_status" >&5
8611    if (exit $ac_status) && test -s "$ac_outfile"; then
8612      # The compiler can only warn and ignore the option if not recognized
8613      # So say no if there are warnings other than the usual output.
8614      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8615      $SED '/^$/d' conftest.err >conftest.er2
8616      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8617        lt_cv_prog_compiler_rtti_exceptions=yes
8618      fi
8619    fi
8620    $rm conftest*
8621
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8624 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8625
8626 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8627     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8628 else
8629     :
8630 fi
8631
8632 fi
8633
8634 lt_prog_compiler_wl=
8635 lt_prog_compiler_pic=
8636 lt_prog_compiler_static=
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8639 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8640
8641   if test "$GCC" = yes; then
8642     lt_prog_compiler_wl='-Wl,'
8643     lt_prog_compiler_static='-static'
8644
8645     case $host_os in
8646       aix*)
8647       # All AIX code is PIC.
8648       if test "$host_cpu" = ia64; then
8649         # AIX 5 now supports IA64 processor
8650         lt_prog_compiler_static='-Bstatic'
8651       fi
8652       ;;
8653
8654     amigaos*)
8655       # FIXME: we need at least 68020 code to build shared libraries, but
8656       # adding the `-m68020' flag to GCC prevents building anything better,
8657       # like `-m68040'.
8658       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8659       ;;
8660
8661     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662       # PIC is the default for these OSes.
8663       ;;
8664
8665     mingw* | pw32* | os2*)
8666       # This hack is so that the source file can tell whether it is being
8667       # built for inclusion in a dll (and should export symbols for example).
8668       lt_prog_compiler_pic='-DDLL_EXPORT'
8669       ;;
8670
8671     darwin* | rhapsody*)
8672       # PIC is the default on this platform
8673       # Common symbols not allowed in MH_DYLIB files
8674       lt_prog_compiler_pic='-fno-common'
8675       ;;
8676
8677     msdosdjgpp*)
8678       # Just because we use GCC doesn't mean we suddenly get shared libraries
8679       # on systems that don't support them.
8680       lt_prog_compiler_can_build_shared=no
8681       enable_shared=no
8682       ;;
8683
8684     sysv4*MP*)
8685       if test -d /usr/nec; then
8686         lt_prog_compiler_pic=-Kconform_pic
8687       fi
8688       ;;
8689
8690     hpux*)
8691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8692       # not for PA HP-UX.
8693       case $host_cpu in
8694       hppa*64*|ia64*)
8695         # +Z the default
8696         ;;
8697       *)
8698         lt_prog_compiler_pic='-fPIC'
8699         ;;
8700       esac
8701       ;;
8702
8703     *)
8704       lt_prog_compiler_pic='-fPIC'
8705       ;;
8706     esac
8707   else
8708     # PORTME Check for flag to pass linker flags through the system compiler.
8709     case $host_os in
8710     aix*)
8711       lt_prog_compiler_wl='-Wl,'
8712       if test "$host_cpu" = ia64; then
8713         # AIX 5 now supports IA64 processor
8714         lt_prog_compiler_static='-Bstatic'
8715       else
8716         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8717       fi
8718       ;;
8719       darwin*)
8720         # PIC is the default on this platform
8721         # Common symbols not allowed in MH_DYLIB files
8722        case $cc_basename in
8723          xlc*)
8724          lt_prog_compiler_pic='-qnocommon'
8725          lt_prog_compiler_wl='-Wl,'
8726          ;;
8727        esac
8728        ;;
8729
8730     mingw* | pw32* | os2*)
8731       # This hack is so that the source file can tell whether it is being
8732       # built for inclusion in a dll (and should export symbols for example).
8733       lt_prog_compiler_pic='-DDLL_EXPORT'
8734       ;;
8735
8736     hpux9* | hpux10* | hpux11*)
8737       lt_prog_compiler_wl='-Wl,'
8738       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8739       # not for PA HP-UX.
8740       case $host_cpu in
8741       hppa*64*|ia64*)
8742         # +Z the default
8743         ;;
8744       *)
8745         lt_prog_compiler_pic='+Z'
8746         ;;
8747       esac
8748       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8749       lt_prog_compiler_static='${wl}-a ${wl}archive'
8750       ;;
8751
8752     irix5* | irix6* | nonstopux*)
8753       lt_prog_compiler_wl='-Wl,'
8754       # PIC (with -KPIC) is the default.
8755       lt_prog_compiler_static='-non_shared'
8756       ;;
8757
8758     newsos6)
8759       lt_prog_compiler_pic='-KPIC'
8760       lt_prog_compiler_static='-Bstatic'
8761       ;;
8762
8763     linux*)
8764       case $cc_basename in
8765       icc* | ecc*)
8766         lt_prog_compiler_wl='-Wl,'
8767         lt_prog_compiler_pic='-KPIC'
8768         lt_prog_compiler_static='-static'
8769         ;;
8770       pgcc* | pgf77* | pgf90* | pgf95*)
8771         # Portland Group compilers (*not* the Pentium gcc compiler,
8772         # which looks to be a dead project)
8773         lt_prog_compiler_wl='-Wl,'
8774         lt_prog_compiler_pic='-fpic'
8775         lt_prog_compiler_static='-Bstatic'
8776         ;;
8777       ccc*)
8778         lt_prog_compiler_wl='-Wl,'
8779         # All Alpha code is PIC.
8780         lt_prog_compiler_static='-non_shared'
8781         ;;
8782       esac
8783       ;;
8784
8785     osf3* | osf4* | osf5*)
8786       lt_prog_compiler_wl='-Wl,'
8787       # All OSF/1 code is PIC.
8788       lt_prog_compiler_static='-non_shared'
8789       ;;
8790
8791     sco3.2v5*)
8792       lt_prog_compiler_pic='-Kpic'
8793       lt_prog_compiler_static='-dn'
8794       ;;
8795
8796     solaris*)
8797       lt_prog_compiler_pic='-KPIC'
8798       lt_prog_compiler_static='-Bstatic'
8799       case $cc_basename in
8800       f77* | f90* | f95*)
8801         lt_prog_compiler_wl='-Qoption ld ';;
8802       *)
8803         lt_prog_compiler_wl='-Wl,';;
8804       esac
8805       ;;
8806
8807     sunos4*)
8808       lt_prog_compiler_wl='-Qoption ld '
8809       lt_prog_compiler_pic='-PIC'
8810       lt_prog_compiler_static='-Bstatic'
8811       ;;
8812
8813     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8814       lt_prog_compiler_wl='-Wl,'
8815       lt_prog_compiler_pic='-KPIC'
8816       lt_prog_compiler_static='-Bstatic'
8817       ;;
8818
8819     sysv4*MP*)
8820       if test -d /usr/nec ;then
8821         lt_prog_compiler_pic='-Kconform_pic'
8822         lt_prog_compiler_static='-Bstatic'
8823       fi
8824       ;;
8825
8826     unicos*)
8827       lt_prog_compiler_wl='-Wl,'
8828       lt_prog_compiler_can_build_shared=no
8829       ;;
8830
8831     uts4*)
8832       lt_prog_compiler_pic='-pic'
8833       lt_prog_compiler_static='-Bstatic'
8834       ;;
8835
8836     *)
8837       lt_prog_compiler_can_build_shared=no
8838       ;;
8839     esac
8840   fi
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8843 $as_echo "$lt_prog_compiler_pic" >&6; }
8844
8845 #
8846 # Check to make sure the PIC flag actually works.
8847 #
8848 if test -n "$lt_prog_compiler_pic"; then
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8852 if ${lt_prog_compiler_pic_works+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   lt_prog_compiler_pic_works=no
8856   ac_outfile=conftest.$ac_objext
8857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8858    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8859    # Insert the option either (1) after the last *FLAGS variable, or
8860    # (2) before a word containing "conftest.", or (3) at the end.
8861    # Note that $ac_compile itself does not contain backslashes and begins
8862    # with a dollar sign (not a hyphen), so the echo should work correctly.
8863    # The option is referenced via a variable to avoid confusing sed.
8864    lt_compile=`echo "$ac_compile" | $SED \
8865    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867    -e 's:$: $lt_compiler_flag:'`
8868    (eval echo "\"\$as_me:8868: $lt_compile\"" >&5)
8869    (eval "$lt_compile" 2>conftest.err)
8870    ac_status=$?
8871    cat conftest.err >&5
8872    echo "$as_me:8872: \$? = $ac_status" >&5
8873    if (exit $ac_status) && test -s "$ac_outfile"; then
8874      # The compiler can only warn and ignore the option if not recognized
8875      # So say no if there are warnings other than the usual output.
8876      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8877      $SED '/^$/d' conftest.err >conftest.er2
8878      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8879        lt_prog_compiler_pic_works=yes
8880      fi
8881    fi
8882    $rm conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8886 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8887
8888 if test x"$lt_prog_compiler_pic_works" = xyes; then
8889     case $lt_prog_compiler_pic in
8890      "" | " "*) ;;
8891      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8892      esac
8893 else
8894     lt_prog_compiler_pic=
8895      lt_prog_compiler_can_build_shared=no
8896 fi
8897
8898 fi
8899 case $host_os in
8900   # For platforms which do not support PIC, -DPIC is meaningless:
8901   *djgpp*)
8902     lt_prog_compiler_pic=
8903     ;;
8904   *)
8905     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8906     ;;
8907 esac
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8911 if ${lt_cv_prog_compiler_c_o+:} false; then :
8912   $as_echo_n "(cached) " >&6
8913 else
8914   lt_cv_prog_compiler_c_o=no
8915    $rm -r conftest 2>/dev/null
8916    mkdir conftest
8917    cd conftest
8918    mkdir out
8919    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8920
8921    lt_compiler_flag="-o out/conftest2.$ac_objext"
8922    # Insert the option either (1) after the last *FLAGS variable, or
8923    # (2) before a word containing "conftest.", or (3) at the end.
8924    # Note that $ac_compile itself does not contain backslashes and begins
8925    # with a dollar sign (not a hyphen), so the echo should work correctly.
8926    lt_compile=`echo "$ac_compile" | $SED \
8927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8929    -e 's:$: $lt_compiler_flag:'`
8930    (eval echo "\"\$as_me:8930: $lt_compile\"" >&5)
8931    (eval "$lt_compile" 2>out/conftest.err)
8932    ac_status=$?
8933    cat out/conftest.err >&5
8934    echo "$as_me:8934: \$? = $ac_status" >&5
8935    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8936    then
8937      # The compiler can only warn and ignore the option if not recognized
8938      # So say no if there are warnings
8939      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8940      $SED '/^$/d' out/conftest.err >out/conftest.er2
8941      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8942        lt_cv_prog_compiler_c_o=yes
8943      fi
8944    fi
8945    chmod u+w . 2>&5
8946    $rm conftest*
8947    # SGI C++ compiler will create directory out/ii_files/ for
8948    # template instantiation
8949    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8950    $rm out/* && rmdir out
8951    cd ..
8952    rmdir conftest
8953    $rm conftest*
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8958
8959
8960 hard_links="nottested"
8961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8962   # do not overwrite the value of need_locks provided by the user
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8964 $as_echo_n "checking if we can lock with hard links... " >&6; }
8965   hard_links=yes
8966   $rm conftest*
8967   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8968   touch conftest.a
8969   ln conftest.a conftest.b 2>&5 || hard_links=no
8970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8972 $as_echo "$hard_links" >&6; }
8973   if test "$hard_links" = no; then
8974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8976     need_locks=warn
8977   fi
8978 else
8979   need_locks=no
8980 fi
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8983 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8984
8985   runpath_var=
8986   allow_undefined_flag=
8987   enable_shared_with_static_runtimes=no
8988   archive_cmds=
8989   archive_expsym_cmds=
8990   old_archive_From_new_cmds=
8991   old_archive_from_expsyms_cmds=
8992   export_dynamic_flag_spec=
8993   whole_archive_flag_spec=
8994   thread_safe_flag_spec=
8995   hardcode_libdir_flag_spec=
8996   hardcode_libdir_flag_spec_ld=
8997   hardcode_libdir_separator=
8998   hardcode_direct=no
8999   hardcode_minus_L=no
9000   hardcode_shlibpath_var=unsupported
9001   link_all_deplibs=unknown
9002   hardcode_automatic=no
9003   module_cmds=
9004   module_expsym_cmds=
9005   always_export_symbols=no
9006   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9007   # include_expsyms should be a list of space-separated symbols to be *always*
9008   # included in the symbol list
9009   include_expsyms=
9010   # exclude_expsyms can be an extended regexp of symbols to exclude
9011   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9012   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9013   # as well as any symbol that contains `d'.
9014   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9015   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9016   # platforms (ab)use it in PIC code, but their linkers get confused if
9017   # the symbol is explicitly referenced.  Since portable code cannot
9018   # rely on this symbol name, it's probably fine to never include it in
9019   # preloaded symbol tables.
9020   extract_expsyms_cmds=
9021   # Just being paranoid about ensuring that cc_basename is set.
9022   for cc_temp in $compiler""; do
9023   case $cc_temp in
9024     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9025     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9026     \-*) ;;
9027     *) break;;
9028   esac
9029 done
9030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9031
9032   case $host_os in
9033   cygwin* | mingw* | pw32*)
9034     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9035     # When not using gcc, we currently assume that we are using
9036     # Microsoft Visual C++.
9037     if test "$GCC" != yes; then
9038       with_gnu_ld=no
9039     fi
9040     ;;
9041   openbsd*)
9042     with_gnu_ld=no
9043     ;;
9044   esac
9045
9046   ld_shlibs=yes
9047   if test "$with_gnu_ld" = yes; then
9048     # If archive_cmds runs LD, not CC, wlarc should be empty
9049     wlarc='${wl}'
9050
9051     # Set some defaults for GNU ld with shared library support. These
9052     # are reset later if shared libraries are not supported. Putting them
9053     # here allows them to be overridden if necessary.
9054     runpath_var=LD_RUN_PATH
9055     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9056     export_dynamic_flag_spec='${wl}--export-dynamic'
9057     # ancient GNU ld didn't support --whole-archive et. al.
9058     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9059         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9060       else
9061         whole_archive_flag_spec=
9062     fi
9063     supports_anon_versioning=no
9064     case `$LD -v 2>/dev/null` in
9065       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9066       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9067       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9068       *\ 2.11.*) ;; # other 2.11 versions
9069       *) supports_anon_versioning=yes ;;
9070     esac
9071
9072     # See if GNU ld supports shared libraries.
9073     case $host_os in
9074     aix3* | aix4* | aix5*)
9075       # On AIX/PPC, the GNU linker is very broken
9076       if test "$host_cpu" != ia64; then
9077         ld_shlibs=no
9078         cat <<EOF 1>&2
9079
9080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9081 *** to be unable to reliably create shared libraries on AIX.
9082 *** Therefore, libtool is disabling shared libraries support.  If you
9083 *** really care for shared libraries, you may want to modify your PATH
9084 *** so that a non-GNU linker is found, and then restart.
9085
9086 EOF
9087       fi
9088       ;;
9089
9090     amigaos*)
9091       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)'
9092       hardcode_libdir_flag_spec='-L$libdir'
9093       hardcode_minus_L=yes
9094
9095       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9096       # that the semantics of dynamic libraries on AmigaOS, at least up
9097       # to version 4, is to share data among multiple programs linked
9098       # with the same dynamic library.  Since this doesn't match the
9099       # behavior of shared libraries on other platforms, we can't use
9100       # them.
9101       ld_shlibs=no
9102       ;;
9103
9104     beos*)
9105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9106         allow_undefined_flag=unsupported
9107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9108         # support --undefined.  This deserves some investigation.  FIXME
9109         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110       else
9111         ld_shlibs=no
9112       fi
9113       ;;
9114
9115     cygwin* | mingw* | pw32*)
9116       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9117       # as there is no search path for DLLs.
9118       hardcode_libdir_flag_spec='-L$libdir'
9119       allow_undefined_flag=unsupported
9120       always_export_symbols=no
9121       enable_shared_with_static_runtimes=yes
9122       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9123
9124       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9126         # If the export-symbols file already is a .def file (1st line
9127         # is EXPORTS), use it as is; otherwise, prepend...
9128         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129           cp $export_symbols $output_objdir/$soname.def;
9130         else
9131           echo EXPORTS > $output_objdir/$soname.def;
9132           cat $export_symbols >> $output_objdir/$soname.def;
9133         fi~
9134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9135       else
9136         ld_shlibs=no
9137       fi
9138       ;;
9139
9140     linux*)
9141       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9142         tmp_addflag=
9143         case $cc_basename,$host_cpu in
9144         pgcc*)                          # Portland Group C compiler
9145           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9146           tmp_addflag=' $pic_flag'
9147           ;;
9148         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9149           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9150           tmp_addflag=' $pic_flag -Mnomain' ;;
9151         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9152           tmp_addflag=' -i_dynamic' ;;
9153         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9154           tmp_addflag=' -i_dynamic -nofor_main' ;;
9155         ifc* | ifort*)                  # Intel Fortran compiler
9156           tmp_addflag=' -nofor_main' ;;
9157         esac
9158         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159
9160         if test $supports_anon_versioning = yes; then
9161           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9162   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9163   $echo "local: *; };" >> $output_objdir/$libname.ver~
9164           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9165         fi
9166       else
9167         ld_shlibs=no
9168       fi
9169       ;;
9170
9171     netbsd*)
9172       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9173         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9174         wlarc=
9175       else
9176         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9178       fi
9179       ;;
9180
9181     solaris* | sysv5*)
9182       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9183         ld_shlibs=no
9184         cat <<EOF 1>&2
9185
9186 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9187 *** create shared libraries on Solaris systems.  Therefore, libtool
9188 *** is disabling shared libraries support.  We urge you to upgrade GNU
9189 *** binutils to release 2.9.1 or newer.  Another option is to modify
9190 *** your PATH or compiler configuration so that the native linker is
9191 *** used, and then restart.
9192
9193 EOF
9194       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9195         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9197       else
9198         ld_shlibs=no
9199       fi
9200       ;;
9201
9202     sunos4*)
9203       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9204       wlarc=
9205       hardcode_direct=yes
9206       hardcode_shlibpath_var=no
9207       ;;
9208
9209     *)
9210       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9211         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9213       else
9214         ld_shlibs=no
9215       fi
9216       ;;
9217     esac
9218
9219     if test "$ld_shlibs" = no; then
9220       runpath_var=
9221       hardcode_libdir_flag_spec=
9222       export_dynamic_flag_spec=
9223       whole_archive_flag_spec=
9224     fi
9225   else
9226     # PORTME fill in a description of your system's linker (not GNU ld)
9227     case $host_os in
9228     aix3*)
9229       allow_undefined_flag=unsupported
9230       always_export_symbols=yes
9231       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'
9232       # Note: this linker hardcodes the directories in LIBPATH if there
9233       # are no directories specified by -L.
9234       hardcode_minus_L=yes
9235       if test "$GCC" = yes && test -z "$link_static_flag"; then
9236         # Neither direct hardcoding nor static linking is supported with a
9237         # broken collect2.
9238         hardcode_direct=unsupported
9239       fi
9240       ;;
9241
9242     aix4* | aix5*)
9243       if test "$host_cpu" = ia64; then
9244         # On IA64, the linker does run time linking by default, so we don't
9245         # have to do anything special.
9246         aix_use_runtimelinking=no
9247         exp_sym_flag='-Bexport'
9248         no_entry_flag=""
9249       else
9250         # If we're using GNU nm, then we don't want the "-C" option.
9251         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9252         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9253           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9254         else
9255           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9256         fi
9257         aix_use_runtimelinking=no
9258
9259         # Test if we are trying to use run time linking or normal
9260         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9261         # need to do runtime linking.
9262         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9263           for ld_flag in $LDFLAGS; do
9264           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9265             aix_use_runtimelinking=yes
9266             break
9267           fi
9268           done
9269         esac
9270
9271         exp_sym_flag='-bexport'
9272         no_entry_flag='-bnoentry'
9273       fi
9274
9275       # When large executables or shared objects are built, AIX ld can
9276       # have problems creating the table of contents.  If linking a library
9277       # or program results in "error TOC overflow" add -mminimal-toc to
9278       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9279       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9280
9281       archive_cmds=''
9282       hardcode_direct=yes
9283       hardcode_libdir_separator=':'
9284       link_all_deplibs=yes
9285
9286       if test "$GCC" = yes; then
9287         case $host_os in aix4.[012]|aix4.[012].*)
9288         # We only want to do this on AIX 4.2 and lower, the check
9289         # below for broken collect2 doesn't work under 4.3+
9290           collect2name=`${CC} -print-prog-name=collect2`
9291           if test -f "$collect2name" && \
9292            strings "$collect2name" | grep resolve_lib_name >/dev/null
9293           then
9294           # We have reworked collect2
9295           hardcode_direct=yes
9296           else
9297           # We have old collect2
9298           hardcode_direct=unsupported
9299           # It fails to find uninstalled libraries when the uninstalled
9300           # path is not listed in the libpath.  Setting hardcode_minus_L
9301           # to unsupported forces relinking
9302           hardcode_minus_L=yes
9303           hardcode_libdir_flag_spec='-L$libdir'
9304           hardcode_libdir_separator=
9305           fi
9306         esac
9307         shared_flag='-shared'
9308         if test "$aix_use_runtimelinking" = yes; then
9309           shared_flag="$shared_flag "'${wl}-G'
9310         fi
9311       else
9312         # not using gcc
9313         if test "$host_cpu" = ia64; then
9314         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315         # chokes on -Wl,-G. The following line is correct:
9316           shared_flag='-G'
9317         else
9318         if test "$aix_use_runtimelinking" = yes; then
9319             shared_flag='${wl}-G'
9320           else
9321             shared_flag='${wl}-bM:SRE'
9322         fi
9323         fi
9324       fi
9325
9326       # It seems that -bexpall does not export symbols beginning with
9327       # underscore (_), so it is better to generate a list of symbols to export.
9328       always_export_symbols=yes
9329       if test "$aix_use_runtimelinking" = yes; then
9330         # Warning - without using the other runtime loading flags (-brtl),
9331         # -berok will link without error, but may produce a broken library.
9332         allow_undefined_flag='-berok'
9333        # Determine the default libpath from the value encoded in an empty executable.
9334        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h.  */
9336
9337 int
9338 main ()
9339 {
9340
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"; then :
9346
9347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9348 }'`
9349 # Check for a 64-bit object if we didn't find anything.
9350 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9351 }'`; fi
9352 fi
9353 rm -f core conftest.err conftest.$ac_objext \
9354     conftest$ac_exeext conftest.$ac_ext
9355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9356
9357        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9358         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9359        else
9360         if test "$host_cpu" = ia64; then
9361           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9362           allow_undefined_flag="-z nodefs"
9363           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9364         else
9365          # Determine the default libpath from the value encoded in an empty executable.
9366          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h.  */
9368
9369 int
9370 main ()
9371 {
9372
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378
9379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9380 }'`
9381 # Check for a 64-bit object if we didn't find anything.
9382 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9383 }'`; fi
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386     conftest$ac_exeext conftest.$ac_ext
9387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9388
9389          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9390           # Warning - without using the other run time loading flags,
9391           # -berok will link without error, but may produce a broken library.
9392           no_undefined_flag=' ${wl}-bernotok'
9393           allow_undefined_flag=' ${wl}-berok'
9394           # -bexpall does not export symbols beginning with underscore (_)
9395           always_export_symbols=yes
9396           # Exported symbols can be pulled into shared objects from archives
9397           whole_archive_flag_spec=' '
9398           archive_cmds_need_lc=yes
9399           # This is similar to how AIX traditionally builds its shared libraries.
9400           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9401         fi
9402       fi
9403       ;;
9404
9405     amigaos*)
9406       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)'
9407       hardcode_libdir_flag_spec='-L$libdir'
9408       hardcode_minus_L=yes
9409       # see comment about different semantics on the GNU ld section
9410       ld_shlibs=no
9411       ;;
9412
9413     bsdi[45]*)
9414       export_dynamic_flag_spec=-rdynamic
9415       ;;
9416
9417     cygwin* | mingw* | pw32*)
9418       # When not using gcc, we currently assume that we are using
9419       # Microsoft Visual C++.
9420       # hardcode_libdir_flag_spec is actually meaningless, as there is
9421       # no search path for DLLs.
9422       hardcode_libdir_flag_spec=' '
9423       allow_undefined_flag=unsupported
9424       # Tell ltmain to make .lib files, not .a files.
9425       libext=lib
9426       # Tell ltmain to make .dll files, not .so files.
9427       shrext_cmds=".dll"
9428       # FIXME: Setting linknames here is a bad hack.
9429       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9430       # The linker will automatically build a .lib file if we build a DLL.
9431       old_archive_From_new_cmds='true'
9432       # FIXME: Should let the user specify the lib program.
9433       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9434       fix_srcfile_path='`cygpath -w "$srcfile"`'
9435       enable_shared_with_static_runtimes=yes
9436       ;;
9437
9438     darwin* | rhapsody*)
9439       case $host_os in
9440         rhapsody* | darwin1.[012])
9441          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9442          ;;
9443        *) # Darwin 1.3 on
9444          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9445            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9446          else
9447            case ${MACOSX_DEPLOYMENT_TARGET} in
9448              10.[012])
9449                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9450                ;;
9451              10.*)
9452                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9453                ;;
9454            esac
9455          fi
9456          ;;
9457       esac
9458       archive_cmds_need_lc=no
9459       hardcode_direct=no
9460       hardcode_automatic=yes
9461       hardcode_shlibpath_var=unsupported
9462       whole_archive_flag_spec=''
9463       link_all_deplibs=yes
9464     if test "$GCC" = yes ; then
9465         output_verbose_link_cmd='echo'
9466         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9467       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9468       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9469       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9470       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9471     else
9472       case $cc_basename in
9473         xlc*)
9474          output_verbose_link_cmd='echo'
9475          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9476          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9477           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9478          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9479           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9480           ;;
9481        *)
9482          ld_shlibs=no
9483           ;;
9484       esac
9485     fi
9486       ;;
9487
9488     dgux*)
9489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490       hardcode_libdir_flag_spec='-L$libdir'
9491       hardcode_shlibpath_var=no
9492       ;;
9493
9494     freebsd1*)
9495       ld_shlibs=no
9496       ;;
9497
9498     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9499     # support.  Future versions do this automatically, but an explicit c++rt0.o
9500     # does not break anything, and helps significantly (at the cost of a little
9501     # extra space).
9502     freebsd2.2*)
9503       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9504       hardcode_libdir_flag_spec='-R$libdir'
9505       hardcode_direct=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9510     freebsd2*)
9511       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9512       hardcode_direct=yes
9513       hardcode_minus_L=yes
9514       hardcode_shlibpath_var=no
9515       ;;
9516
9517     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9518     freebsd* | kfreebsd*-gnu | dragonfly*)
9519       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9520       hardcode_libdir_flag_spec='-R$libdir'
9521       hardcode_direct=yes
9522       hardcode_shlibpath_var=no
9523       ;;
9524
9525     hpux9*)
9526       if test "$GCC" = yes; then
9527         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9528       else
9529         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9530       fi
9531       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9532       hardcode_libdir_separator=:
9533       hardcode_direct=yes
9534
9535       # hardcode_minus_L: Not really in the search PATH,
9536       # but as the default location of the library.
9537       hardcode_minus_L=yes
9538       export_dynamic_flag_spec='${wl}-E'
9539       ;;
9540
9541     hpux10* | hpux11*)
9542       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9543         case $host_cpu in
9544         hppa*64*|ia64*)
9545           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546           ;;
9547         *)
9548           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9549           ;;
9550         esac
9551       else
9552         case $host_cpu in
9553         hppa*64*|ia64*)
9554           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9555           ;;
9556         *)
9557           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558           ;;
9559         esac
9560       fi
9561       if test "$with_gnu_ld" = no; then
9562         case $host_cpu in
9563         hppa*64*)
9564           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565           hardcode_libdir_flag_spec_ld='+b $libdir'
9566           hardcode_libdir_separator=:
9567           hardcode_direct=no
9568           hardcode_shlibpath_var=no
9569           ;;
9570         ia64*)
9571           hardcode_libdir_flag_spec='-L$libdir'
9572           hardcode_direct=no
9573           hardcode_shlibpath_var=no
9574
9575           # hardcode_minus_L: Not really in the search PATH,
9576           # but as the default location of the library.
9577           hardcode_minus_L=yes
9578           ;;
9579         *)
9580           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9581           hardcode_libdir_separator=:
9582           hardcode_direct=yes
9583           export_dynamic_flag_spec='${wl}-E'
9584
9585           # hardcode_minus_L: Not really in the search PATH,
9586           # but as the default location of the library.
9587           hardcode_minus_L=yes
9588           ;;
9589         esac
9590       fi
9591       ;;
9592
9593     irix5* | irix6* | nonstopux*)
9594       if test "$GCC" = yes; then
9595         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9596       else
9597         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9598         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9599       fi
9600       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601       hardcode_libdir_separator=:
9602       link_all_deplibs=yes
9603       ;;
9604
9605     netbsd*)
9606       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9607         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9608       else
9609         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9610       fi
9611       hardcode_libdir_flag_spec='-R$libdir'
9612       hardcode_direct=yes
9613       hardcode_shlibpath_var=no
9614       ;;
9615
9616     newsos6)
9617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618       hardcode_direct=yes
9619       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620       hardcode_libdir_separator=:
9621       hardcode_shlibpath_var=no
9622       ;;
9623
9624     openbsd*)
9625       hardcode_direct=yes
9626       hardcode_shlibpath_var=no
9627       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9628         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9629         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9630         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631         export_dynamic_flag_spec='${wl}-E'
9632       else
9633        case $host_os in
9634          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9635            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636            hardcode_libdir_flag_spec='-R$libdir'
9637            ;;
9638          *)
9639            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9641            ;;
9642        esac
9643       fi
9644       ;;
9645
9646     os2*)
9647       hardcode_libdir_flag_spec='-L$libdir'
9648       hardcode_minus_L=yes
9649       allow_undefined_flag=unsupported
9650       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9651       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9652       ;;
9653
9654     osf3*)
9655       if test "$GCC" = yes; then
9656         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9657         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9658       else
9659         allow_undefined_flag=' -expect_unresolved \*'
9660         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9661       fi
9662       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663       hardcode_libdir_separator=:
9664       ;;
9665
9666     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9667       if test "$GCC" = yes; then
9668         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9669         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9670         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9671       else
9672         allow_undefined_flag=' -expect_unresolved \*'
9673         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9674         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9675         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9676
9677         # Both c and cxx compiler support -rpath directly
9678         hardcode_libdir_flag_spec='-rpath $libdir'
9679       fi
9680       hardcode_libdir_separator=:
9681       ;;
9682
9683     sco3.2v5*)
9684       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685       hardcode_shlibpath_var=no
9686       export_dynamic_flag_spec='${wl}-Bexport'
9687       runpath_var=LD_RUN_PATH
9688       hardcode_runpath_var=yes
9689       ;;
9690
9691     solaris*)
9692       no_undefined_flag=' -z text'
9693       if test "$GCC" = yes; then
9694         wlarc='${wl}'
9695         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9697           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9698       else
9699         wlarc=''
9700         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9702         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9703       fi
9704       hardcode_libdir_flag_spec='-R$libdir'
9705       hardcode_shlibpath_var=no
9706       case $host_os in
9707       solaris2.[0-5] | solaris2.[0-5].*) ;;
9708       *)
9709         # The compiler driver will combine linker options so we
9710         # cannot just pass the convience library names through
9711         # without $wl, iff we do not link with $LD.
9712         # Luckily, gcc supports the same syntax we need for Sun Studio.
9713         # Supported since Solaris 2.6 (maybe 2.5.1?)
9714         case $wlarc in
9715         '')
9716           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9717         *)
9718           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9719         esac ;;
9720       esac
9721       link_all_deplibs=yes
9722       ;;
9723
9724     sunos4*)
9725       if test "x$host_vendor" = xsequent; then
9726         # Use $CC to link under sequent, because it throws in some extra .o
9727         # files that make .init and .fini sections work.
9728         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9729       else
9730         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9731       fi
9732       hardcode_libdir_flag_spec='-L$libdir'
9733       hardcode_direct=yes
9734       hardcode_minus_L=yes
9735       hardcode_shlibpath_var=no
9736       ;;
9737
9738     sysv4)
9739       case $host_vendor in
9740         sni)
9741           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742           hardcode_direct=yes # is this really true???
9743         ;;
9744         siemens)
9745           ## LD is ld it makes a PLAMLIB
9746           ## CC just makes a GrossModule.
9747           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9748           reload_cmds='$CC -r -o $output$reload_objs'
9749           hardcode_direct=no
9750         ;;
9751         motorola)
9752           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9754         ;;
9755       esac
9756       runpath_var='LD_RUN_PATH'
9757       hardcode_shlibpath_var=no
9758       ;;
9759
9760     sysv4.3*)
9761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_shlibpath_var=no
9763       export_dynamic_flag_spec='-Bexport'
9764       ;;
9765
9766     sysv4*MP*)
9767       if test -d /usr/nec; then
9768         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769         hardcode_shlibpath_var=no
9770         runpath_var=LD_RUN_PATH
9771         hardcode_runpath_var=yes
9772         ld_shlibs=yes
9773       fi
9774       ;;
9775
9776     sysv4.2uw2*)
9777       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9778       hardcode_direct=yes
9779       hardcode_minus_L=no
9780       hardcode_shlibpath_var=no
9781       hardcode_runpath_var=yes
9782       runpath_var=LD_RUN_PATH
9783       ;;
9784
9785    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9786       no_undefined_flag='${wl}-z ${wl}text'
9787       if test "$GCC" = yes; then
9788         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789       else
9790         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791       fi
9792       runpath_var='LD_RUN_PATH'
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     sysv5*)
9797       no_undefined_flag=' -z text'
9798       # $CC -shared without GNU ld will not create a library from C++
9799       # object files and a static libstdc++, better avoid it by now
9800       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9802                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9803       hardcode_libdir_flag_spec=
9804       hardcode_shlibpath_var=no
9805       runpath_var='LD_RUN_PATH'
9806       ;;
9807
9808     uts4*)
9809       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810       hardcode_libdir_flag_spec='-L$libdir'
9811       hardcode_shlibpath_var=no
9812       ;;
9813
9814     *)
9815       ld_shlibs=no
9816       ;;
9817     esac
9818   fi
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9821 $as_echo "$ld_shlibs" >&6; }
9822 test "$ld_shlibs" = no && can_build_shared=no
9823
9824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9825 if test "$GCC" = yes; then
9826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9827 fi
9828
9829 #
9830 # Do we need to explicitly link libc?
9831 #
9832 case "x$archive_cmds_need_lc" in
9833 x|xyes)
9834   # Assume -lc should be added
9835   archive_cmds_need_lc=yes
9836
9837   if test "$enable_shared" = yes && test "$GCC" = yes; then
9838     case $archive_cmds in
9839     *'~'*)
9840       # FIXME: we may have to deal with multi-command sequences.
9841       ;;
9842     '$CC '*)
9843       # Test whether the compiler implicitly links with -lc since on some
9844       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9845       # to ld, don't add -lc before -lgcc.
9846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9848       $rm conftest*
9849       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9850
9851       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9852   (eval $ac_compile) 2>&5
9853   ac_status=$?
9854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855   test $ac_status = 0; } 2>conftest.err; then
9856         soname=conftest
9857         lib=conftest
9858         libobjs=conftest.$ac_objext
9859         deplibs=
9860         wl=$lt_prog_compiler_wl
9861         compiler_flags=-v
9862         linker_flags=-v
9863         verstring=
9864         output_objdir=.
9865         libname=conftest
9866         lt_save_allow_undefined_flag=$allow_undefined_flag
9867         allow_undefined_flag=
9868         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9869   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9870   ac_status=$?
9871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9872   test $ac_status = 0; }
9873         then
9874           archive_cmds_need_lc=no
9875         else
9876           archive_cmds_need_lc=yes
9877         fi
9878         allow_undefined_flag=$lt_save_allow_undefined_flag
9879       else
9880         cat conftest.err 1>&5
9881       fi
9882       $rm conftest*
9883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9884 $as_echo "$archive_cmds_need_lc" >&6; }
9885       ;;
9886     esac
9887   fi
9888   ;;
9889 esac
9890
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9892 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9893 library_names_spec=
9894 libname_spec='lib$name'
9895 soname_spec=
9896 shrext_cmds=".so"
9897 postinstall_cmds=
9898 postuninstall_cmds=
9899 finish_cmds=
9900 finish_eval=
9901 shlibpath_var=
9902 shlibpath_overrides_runpath=unknown
9903 version_type=none
9904 dynamic_linker="$host_os ld.so"
9905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9906 if test "$GCC" = yes; then
9907   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9908   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9909     # if the path contains ";" then we assume it to be the separator
9910     # otherwise default to the standard path separator (i.e. ":") - it is
9911     # assumed that no part of a normal pathname contains ";" but that should
9912     # okay in the real world where ";" in dirpaths is itself problematic.
9913     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9914   else
9915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9916   fi
9917 else
9918   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9919 fi
9920 need_lib_prefix=unknown
9921 hardcode_into_libs=no
9922
9923 # when you set need_version to no, make sure it does not cause -set_version
9924 # flags to be left without arguments
9925 need_version=unknown
9926
9927 case $host_os in
9928 aix3*)
9929   version_type=linux
9930   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9931   shlibpath_var=LIBPATH
9932
9933   # AIX 3 has no versioning support, so we append a major version to the name.
9934   soname_spec='${libname}${release}${shared_ext}$major'
9935   ;;
9936
9937 aix4* | aix5*)
9938   version_type=linux
9939   need_lib_prefix=no
9940   need_version=no
9941   hardcode_into_libs=yes
9942   if test "$host_cpu" = ia64; then
9943     # AIX 5 supports IA64
9944     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9945     shlibpath_var=LD_LIBRARY_PATH
9946   else
9947     # With GCC up to 2.95.x, collect2 would create an import file
9948     # for dependence libraries.  The import file would start with
9949     # the line `#! .'.  This would cause the generated library to
9950     # depend on `.', always an invalid library.  This was fixed in
9951     # development snapshots of GCC prior to 3.0.
9952     case $host_os in
9953       aix4 | aix4.[01] | aix4.[01].*)
9954       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9955            echo ' yes '
9956            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9957         :
9958       else
9959         can_build_shared=no
9960       fi
9961       ;;
9962     esac
9963     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9964     # soname into executable. Probably we can add versioning support to
9965     # collect2, so additional links can be useful in future.
9966     if test "$aix_use_runtimelinking" = yes; then
9967       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9968       # instead of lib<name>.a to let people know that these are not
9969       # typical AIX shared libraries.
9970       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971     else
9972       # We preserve .a as extension for shared libraries through AIX4.2
9973       # and later when we are not doing run time linking.
9974       library_names_spec='${libname}${release}.a $libname.a'
9975       soname_spec='${libname}${release}${shared_ext}$major'
9976     fi
9977     shlibpath_var=LIBPATH
9978   fi
9979   ;;
9980
9981 amigaos*)
9982   library_names_spec='$libname.ixlibrary $libname.a'
9983   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9984   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9985   ;;
9986
9987 beos*)
9988   library_names_spec='${libname}${shared_ext}'
9989   dynamic_linker="$host_os ld.so"
9990   shlibpath_var=LIBRARY_PATH
9991   ;;
9992
9993 bsdi[45]*)
9994   version_type=linux
9995   need_version=no
9996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997   soname_spec='${libname}${release}${shared_ext}$major'
9998   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9999   shlibpath_var=LD_LIBRARY_PATH
10000   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10001   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10002   # the default ld.so.conf also contains /usr/contrib/lib and
10003   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10004   # libtool to hard-code these into programs
10005   ;;
10006
10007 cygwin* | mingw* | pw32*)
10008   version_type=windows
10009   shrext_cmds=".dll"
10010   need_version=no
10011   need_lib_prefix=no
10012
10013   case $GCC,$host_os in
10014   yes,cygwin* | yes,mingw* | yes,pw32*)
10015     library_names_spec='$libname.dll.a'
10016     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10017     postinstall_cmds='base_file=`basename \${file}`~
10018       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10019       dldir=$destdir/`dirname \$dlpath`~
10020       test -d \$dldir || mkdir -p \$dldir~
10021       $install_prog $dir/$dlname \$dldir/$dlname~
10022       chmod a+x \$dldir/$dlname'
10023     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10024       dlpath=$dir/\$dldll~
10025        $rm \$dlpath'
10026     shlibpath_overrides_runpath=yes
10027
10028     case $host_os in
10029     cygwin*)
10030       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10031       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10032       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10033       ;;
10034     mingw*)
10035       # MinGW DLLs use traditional 'lib' prefix
10036       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10038       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10039         # It is most probably a Windows format PATH printed by
10040         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10041         # path with ; separators, and with drive letters. We can handle the
10042         # drive letters (cygwin fileutils understands them), so leave them,
10043         # especially as we might pass files found there to a mingw objdump,
10044         # which wouldn't understand a cygwinified path. Ahh.
10045         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10046       else
10047         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10048       fi
10049       ;;
10050     pw32*)
10051       # pw32 DLLs use 'pw' prefix rather than 'lib'
10052       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10053       ;;
10054     esac
10055     ;;
10056
10057   *)
10058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10059     ;;
10060   esac
10061   dynamic_linker='Win32 ld.exe'
10062   # FIXME: first we should search . and the directory the executable is in
10063   shlibpath_var=PATH
10064   ;;
10065
10066 darwin* | rhapsody*)
10067   dynamic_linker="$host_os dyld"
10068   version_type=darwin
10069   need_lib_prefix=no
10070   need_version=no
10071   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10072   soname_spec='${libname}${release}${major}$shared_ext'
10073   shlibpath_overrides_runpath=yes
10074   shlibpath_var=DYLD_LIBRARY_PATH
10075   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10076   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10077   if test "$GCC" = yes; then
10078     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10079   else
10080     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10081   fi
10082   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10083   ;;
10084
10085 dgux*)
10086   version_type=linux
10087   need_lib_prefix=no
10088   need_version=no
10089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10090   soname_spec='${libname}${release}${shared_ext}$major'
10091   shlibpath_var=LD_LIBRARY_PATH
10092   ;;
10093
10094 freebsd1*)
10095   dynamic_linker=no
10096   ;;
10097
10098 kfreebsd*-gnu)
10099   version_type=linux
10100   need_lib_prefix=no
10101   need_version=no
10102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10103   soname_spec='${libname}${release}${shared_ext}$major'
10104   shlibpath_var=LD_LIBRARY_PATH
10105   shlibpath_overrides_runpath=no
10106   hardcode_into_libs=yes
10107   dynamic_linker='GNU ld.so'
10108   ;;
10109
10110 freebsd* | dragonfly*)
10111   # DragonFly does not have aout.  When/if they implement a new
10112   # versioning mechanism, adjust this.
10113   if test -x /usr/bin/objformat; then
10114     objformat=`/usr/bin/objformat`
10115   else
10116     case $host_os in
10117     freebsd[123]*) objformat=aout ;;
10118     *) objformat=elf ;;
10119     esac
10120   fi
10121   version_type=freebsd-$objformat
10122   case $version_type in
10123     freebsd-elf*)
10124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10125       need_version=no
10126       need_lib_prefix=no
10127       ;;
10128     freebsd-*)
10129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10130       need_version=yes
10131       ;;
10132   esac
10133   shlibpath_var=LD_LIBRARY_PATH
10134   case $host_os in
10135   freebsd2*)
10136     shlibpath_overrides_runpath=yes
10137     ;;
10138   freebsd3.[01]* | freebsdelf3.[01]*)
10139     shlibpath_overrides_runpath=yes
10140     hardcode_into_libs=yes
10141     ;;
10142   *) # from 3.2 on
10143     shlibpath_overrides_runpath=no
10144     hardcode_into_libs=yes
10145     ;;
10146   esac
10147   ;;
10148
10149 gnu*)
10150   version_type=linux
10151   need_lib_prefix=no
10152   need_version=no
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   shlibpath_var=LD_LIBRARY_PATH
10156   hardcode_into_libs=yes
10157   ;;
10158
10159 hpux9* | hpux10* | hpux11*)
10160   # Give a soname corresponding to the major version so that dld.sl refuses to
10161   # link against other versions.
10162   version_type=sunos
10163   need_lib_prefix=no
10164   need_version=no
10165   case $host_cpu in
10166   ia64*)
10167     shrext_cmds='.so'
10168     hardcode_into_libs=yes
10169     dynamic_linker="$host_os dld.so"
10170     shlibpath_var=LD_LIBRARY_PATH
10171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173     soname_spec='${libname}${release}${shared_ext}$major'
10174     if test "X$HPUX_IA64_MODE" = X32; then
10175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10176     else
10177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10178     fi
10179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10180     ;;
10181    hppa*64*)
10182      shrext_cmds='.sl'
10183      hardcode_into_libs=yes
10184      dynamic_linker="$host_os dld.sl"
10185      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10186      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188      soname_spec='${libname}${release}${shared_ext}$major'
10189      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10190      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10191      ;;
10192    *)
10193     shrext_cmds='.sl'
10194     dynamic_linker="$host_os dld.sl"
10195     shlibpath_var=SHLIB_PATH
10196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198     soname_spec='${libname}${release}${shared_ext}$major'
10199     ;;
10200   esac
10201   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10202   postinstall_cmds='chmod 555 $lib'
10203   ;;
10204
10205 irix5* | irix6* | nonstopux*)
10206   case $host_os in
10207     nonstopux*) version_type=nonstopux ;;
10208     *)
10209         if test "$lt_cv_prog_gnu_ld" = yes; then
10210                 version_type=linux
10211         else
10212                 version_type=irix
10213         fi ;;
10214   esac
10215   need_lib_prefix=no
10216   need_version=no
10217   soname_spec='${libname}${release}${shared_ext}$major'
10218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10219   case $host_os in
10220   irix5* | nonstopux*)
10221     libsuff= shlibsuff=
10222     ;;
10223   *)
10224     case $LD in # libtool.m4 will add one of these switches to LD
10225     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10226       libsuff= shlibsuff= libmagic=32-bit;;
10227     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10228       libsuff=32 shlibsuff=N32 libmagic=N32;;
10229     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10230       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10231     *) libsuff= shlibsuff= libmagic=never-match;;
10232     esac
10233     ;;
10234   esac
10235   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10236   shlibpath_overrides_runpath=no
10237   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10238   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10239   hardcode_into_libs=yes
10240   ;;
10241
10242 # No shared lib support for Linux oldld, aout, or coff.
10243 linux*oldld* | linux*aout* | linux*coff*)
10244   dynamic_linker=no
10245   ;;
10246
10247 # This must be Linux ELF.
10248 linux*)
10249   version_type=linux
10250   need_lib_prefix=no
10251   need_version=no
10252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253   soname_spec='${libname}${release}${shared_ext}$major'
10254   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   shlibpath_overrides_runpath=no
10257   # This implies no fast_install, which is unacceptable.
10258   # Some rework will be needed to allow for fast_install
10259   # before this can be enabled.
10260   hardcode_into_libs=yes
10261
10262   # Append ld.so.conf contents to the search path
10263   if test -f /etc/ld.so.conf; then
10264     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10265     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10266   fi
10267
10268   # We used to test for /lib/ld.so.1 and disable shared libraries on
10269   # powerpc, because MkLinux only supported shared libraries with the
10270   # GNU dynamic linker.  Since this was broken with cross compilers,
10271   # most powerpc-linux boxes support dynamic linking these days and
10272   # people can always --disable-shared, the test was removed, and we
10273   # assume the GNU/Linux dynamic linker is in use.
10274   dynamic_linker='GNU/Linux ld.so'
10275   ;;
10276
10277 knetbsd*-gnu)
10278   version_type=linux
10279   need_lib_prefix=no
10280   need_version=no
10281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282   soname_spec='${libname}${release}${shared_ext}$major'
10283   shlibpath_var=LD_LIBRARY_PATH
10284   shlibpath_overrides_runpath=no
10285   hardcode_into_libs=yes
10286   dynamic_linker='GNU ld.so'
10287   ;;
10288
10289 netbsd*)
10290   version_type=sunos
10291   need_lib_prefix=no
10292   need_version=no
10293   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296     dynamic_linker='NetBSD (a.out) ld.so'
10297   else
10298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10299     soname_spec='${libname}${release}${shared_ext}$major'
10300     dynamic_linker='NetBSD ld.elf_so'
10301   fi
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   hardcode_into_libs=yes
10305   ;;
10306
10307 newsos6)
10308   version_type=linux
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310   shlibpath_var=LD_LIBRARY_PATH
10311   shlibpath_overrides_runpath=yes
10312   ;;
10313
10314 nto-qnx*)
10315   version_type=linux
10316   need_lib_prefix=no
10317   need_version=no
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   shlibpath_overrides_runpath=yes
10322   ;;
10323
10324 openbsd*)
10325   version_type=sunos
10326   need_lib_prefix=no
10327   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10328   case $host_os in
10329     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10330     *)                         need_version=no  ;;
10331   esac
10332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10334   shlibpath_var=LD_LIBRARY_PATH
10335   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10336     case $host_os in
10337       openbsd2.[89] | openbsd2.[89].*)
10338         shlibpath_overrides_runpath=no
10339         ;;
10340       *)
10341         shlibpath_overrides_runpath=yes
10342         ;;
10343       esac
10344   else
10345     shlibpath_overrides_runpath=yes
10346   fi
10347   ;;
10348
10349 os2*)
10350   libname_spec='$name'
10351   shrext_cmds=".dll"
10352   need_lib_prefix=no
10353   library_names_spec='$libname${shared_ext} $libname.a'
10354   dynamic_linker='OS/2 ld.exe'
10355   shlibpath_var=LIBPATH
10356   ;;
10357
10358 osf3* | osf4* | osf5*)
10359   version_type=osf
10360   need_lib_prefix=no
10361   need_version=no
10362   soname_spec='${libname}${release}${shared_ext}$major'
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364   shlibpath_var=LD_LIBRARY_PATH
10365   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10366   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10367   ;;
10368
10369 sco3.2v5*)
10370   version_type=osf
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   shlibpath_var=LD_LIBRARY_PATH
10374   ;;
10375
10376 solaris*)
10377   version_type=linux
10378   need_lib_prefix=no
10379   need_version=no
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381   soname_spec='${libname}${release}${shared_ext}$major'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   shlibpath_overrides_runpath=yes
10384   hardcode_into_libs=yes
10385   # ldd complains unless libraries are executable
10386   postinstall_cmds='chmod +x $lib'
10387   ;;
10388
10389 sunos4*)
10390   version_type=sunos
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10392   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10393   shlibpath_var=LD_LIBRARY_PATH
10394   shlibpath_overrides_runpath=yes
10395   if test "$with_gnu_ld" = yes; then
10396     need_lib_prefix=no
10397   fi
10398   need_version=yes
10399   ;;
10400
10401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10402   version_type=linux
10403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404   soname_spec='${libname}${release}${shared_ext}$major'
10405   shlibpath_var=LD_LIBRARY_PATH
10406   case $host_vendor in
10407     sni)
10408       shlibpath_overrides_runpath=no
10409       need_lib_prefix=no
10410       export_dynamic_flag_spec='${wl}-Blargedynsym'
10411       runpath_var=LD_RUN_PATH
10412       ;;
10413     siemens)
10414       need_lib_prefix=no
10415       ;;
10416     motorola)
10417       need_lib_prefix=no
10418       need_version=no
10419       shlibpath_overrides_runpath=no
10420       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10421       ;;
10422   esac
10423   ;;
10424
10425 sysv4*MP*)
10426   if test -d /usr/nec ;then
10427     version_type=linux
10428     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10429     soname_spec='$libname${shared_ext}.$major'
10430     shlibpath_var=LD_LIBRARY_PATH
10431   fi
10432   ;;
10433
10434 uts4*)
10435   version_type=linux
10436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437   soname_spec='${libname}${release}${shared_ext}$major'
10438   shlibpath_var=LD_LIBRARY_PATH
10439   ;;
10440
10441 *)
10442   dynamic_linker=no
10443   ;;
10444 esac
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10446 $as_echo "$dynamic_linker" >&6; }
10447 test "$dynamic_linker" = no && can_build_shared=no
10448
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10450 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10451 hardcode_action=
10452 if test -n "$hardcode_libdir_flag_spec" || \
10453    test -n "$runpath_var" || \
10454    test "X$hardcode_automatic" = "Xyes" ; then
10455
10456   # We can hardcode non-existant directories.
10457   if test "$hardcode_direct" != no &&
10458      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10459      # have to relink, otherwise we might link with an installed library
10460      # when we should be linking with a yet-to-be-installed one
10461      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10462      test "$hardcode_minus_L" != no; then
10463     # Linking always hardcodes the temporary library directory.
10464     hardcode_action=relink
10465   else
10466     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10467     hardcode_action=immediate
10468   fi
10469 else
10470   # We cannot hardcode anything, or else we can only hardcode existing
10471   # directories.
10472   hardcode_action=unsupported
10473 fi
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10475 $as_echo "$hardcode_action" >&6; }
10476
10477 if test "$hardcode_action" = relink; then
10478   # Fast installation is not supported
10479   enable_fast_install=no
10480 elif test "$shlibpath_overrides_runpath" = yes ||
10481      test "$enable_shared" = no; then
10482   # Fast installation is not necessary
10483   enable_fast_install=needless
10484 fi
10485
10486 striplib=
10487 old_striplib=
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10489 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10490 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10491   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10492   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; }
10495 else
10496 # FIXME - insert some real tests, host_os isn't really good enough
10497   case $host_os in
10498    darwin*)
10499        if test -n "$STRIP" ; then
10500          striplib="$STRIP -x"
10501          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502 $as_echo "yes" >&6; }
10503        else
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507        ;;
10508    *)
10509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10511     ;;
10512   esac
10513 fi
10514
10515 if test "x$enable_dlopen" != xyes; then
10516   enable_dlopen=unknown
10517   enable_dlopen_self=unknown
10518   enable_dlopen_self_static=unknown
10519 else
10520   lt_cv_dlopen=no
10521   lt_cv_dlopen_libs=
10522
10523   case $host_os in
10524   beos*)
10525     lt_cv_dlopen="load_add_on"
10526     lt_cv_dlopen_libs=
10527     lt_cv_dlopen_self=yes
10528     ;;
10529
10530   mingw* | pw32*)
10531     lt_cv_dlopen="LoadLibrary"
10532     lt_cv_dlopen_libs=
10533    ;;
10534
10535   cygwin*)
10536     lt_cv_dlopen="dlopen"
10537     lt_cv_dlopen_libs=
10538    ;;
10539
10540   darwin*)
10541   # if libdl is installed we need to link against it
10542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10544 if ${ac_cv_lib_dl_dlopen+:} false; then :
10545   $as_echo_n "(cached) " >&6
10546 else
10547   ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-ldl  $LIBS"
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h.  */
10551
10552 /* Override any GCC internal prototype to avoid an error.
10553    Use char because int might match the return type of a GCC
10554    builtin and then its argument prototype would still apply.  */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char dlopen ();
10559 int
10560 main ()
10561 {
10562 return dlopen ();
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568   ac_cv_lib_dl_dlopen=yes
10569 else
10570   ac_cv_lib_dl_dlopen=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext \
10573     conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10578 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10580 else
10581
10582     lt_cv_dlopen="dyld"
10583     lt_cv_dlopen_libs=
10584     lt_cv_dlopen_self=yes
10585
10586 fi
10587
10588    ;;
10589
10590   *)
10591     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10592 if test "x$ac_cv_func_shl_load" = xyes; then :
10593   lt_cv_dlopen="shl_load"
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10596 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10597 if ${ac_cv_lib_dld_shl_load+:} false; then :
10598   $as_echo_n "(cached) " >&6
10599 else
10600   ac_check_lib_save_LIBS=$LIBS
10601 LIBS="-ldld  $LIBS"
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h.  */
10604
10605 /* Override any GCC internal prototype to avoid an error.
10606    Use char because int might match the return type of a GCC
10607    builtin and then its argument prototype would still apply.  */
10608 #ifdef __cplusplus
10609 extern "C"
10610 #endif
10611 char shl_load ();
10612 int
10613 main ()
10614 {
10615 return shl_load ();
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"; then :
10621   ac_cv_lib_dld_shl_load=yes
10622 else
10623   ac_cv_lib_dld_shl_load=no
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext \
10626     conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10630 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10631 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10632   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10633 else
10634   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10635 if test "x$ac_cv_func_dlopen" = xyes; then :
10636   lt_cv_dlopen="dlopen"
10637 else
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10640 if ${ac_cv_lib_dl_dlopen+:} false; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643   ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-ldl  $LIBS"
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h.  */
10647
10648 /* Override any GCC internal prototype to avoid an error.
10649    Use char because int might match the return type of a GCC
10650    builtin and then its argument prototype would still apply.  */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char dlopen ();
10655 int
10656 main ()
10657 {
10658 return dlopen ();
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664   ac_cv_lib_dl_dlopen=yes
10665 else
10666   ac_cv_lib_dl_dlopen=no
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext \
10669     conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10671 fi
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10674 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10675   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10676 else
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10678 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10679 if ${ac_cv_lib_svld_dlopen+:} false; then :
10680   $as_echo_n "(cached) " >&6
10681 else
10682   ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-lsvld  $LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h.  */
10686
10687 /* Override any GCC internal prototype to avoid an error.
10688    Use char because int might match the return type of a GCC
10689    builtin and then its argument prototype would still apply.  */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char dlopen ();
10694 int
10695 main ()
10696 {
10697 return dlopen ();
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703   ac_cv_lib_svld_dlopen=yes
10704 else
10705   ac_cv_lib_svld_dlopen=no
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext \
10708     conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10710 fi
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10712 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10713 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10714   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10715 else
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10717 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10718 if ${ac_cv_lib_dld_dld_link+:} false; then :
10719   $as_echo_n "(cached) " >&6
10720 else
10721   ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-ldld  $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h.  */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727    Use char because int might match the return type of a GCC
10728    builtin and then its argument prototype would still apply.  */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char dld_link ();
10733 int
10734 main ()
10735 {
10736 return dld_link ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742   ac_cv_lib_dld_dld_link=yes
10743 else
10744   ac_cv_lib_dld_dld_link=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext \
10747     conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10751 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10752 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10753   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10754 fi
10755
10756
10757 fi
10758
10759
10760 fi
10761
10762
10763 fi
10764
10765
10766 fi
10767
10768
10769 fi
10770
10771     ;;
10772   esac
10773
10774   if test "x$lt_cv_dlopen" != xno; then
10775     enable_dlopen=yes
10776   else
10777     enable_dlopen=no
10778   fi
10779
10780   case $lt_cv_dlopen in
10781   dlopen)
10782     save_CPPFLAGS="$CPPFLAGS"
10783     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10784
10785     save_LDFLAGS="$LDFLAGS"
10786     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10787
10788     save_LIBS="$LIBS"
10789     LIBS="$lt_cv_dlopen_libs $LIBS"
10790
10791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10792 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10793 if ${lt_cv_dlopen_self+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796           if test "$cross_compiling" = yes; then :
10797   lt_cv_dlopen_self=cross
10798 else
10799   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10800   lt_status=$lt_dlunknown
10801   cat > conftest.$ac_ext <<EOF
10802 #line 10802 "configure"
10803 #include "confdefs.h"
10804
10805 #if HAVE_DLFCN_H
10806 #include <dlfcn.h>
10807 #endif
10808
10809 #include <stdio.h>
10810
10811 #ifdef RTLD_GLOBAL
10812 #  define LT_DLGLOBAL           RTLD_GLOBAL
10813 #else
10814 #  ifdef DL_GLOBAL
10815 #    define LT_DLGLOBAL         DL_GLOBAL
10816 #  else
10817 #    define LT_DLGLOBAL         0
10818 #  endif
10819 #endif
10820
10821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10822    find out it does not work in some platform. */
10823 #ifndef LT_DLLAZY_OR_NOW
10824 #  ifdef RTLD_LAZY
10825 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10826 #  else
10827 #    ifdef DL_LAZY
10828 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10829 #    else
10830 #      ifdef RTLD_NOW
10831 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10832 #      else
10833 #        ifdef DL_NOW
10834 #          define LT_DLLAZY_OR_NOW      DL_NOW
10835 #        else
10836 #          define LT_DLLAZY_OR_NOW      0
10837 #        endif
10838 #      endif
10839 #    endif
10840 #  endif
10841 #endif
10842
10843 #ifdef __cplusplus
10844 extern "C" void exit (int);
10845 #endif
10846
10847 void fnord() { int i=42;}
10848 int main ()
10849 {
10850   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10851   int status = $lt_dlunknown;
10852
10853   if (self)
10854     {
10855       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10856       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10857       /* dlclose (self); */
10858     }
10859
10860     exit (status);
10861 }
10862 EOF
10863   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10864   (eval $ac_link) 2>&5
10865   ac_status=$?
10866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10868     (./conftest; exit; ) >&5 2>/dev/null
10869     lt_status=$?
10870     case x$lt_status in
10871       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10872       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10873       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10874     esac
10875   else :
10876     # compilation failed
10877     lt_cv_dlopen_self=no
10878   fi
10879 fi
10880 rm -fr conftest*
10881
10882
10883 fi
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10885 $as_echo "$lt_cv_dlopen_self" >&6; }
10886
10887     if test "x$lt_cv_dlopen_self" = xyes; then
10888       LDFLAGS="$LDFLAGS $link_static_flag"
10889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10890 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10891 if ${lt_cv_dlopen_self_static+:} false; then :
10892   $as_echo_n "(cached) " >&6
10893 else
10894           if test "$cross_compiling" = yes; then :
10895   lt_cv_dlopen_self_static=cross
10896 else
10897   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10898   lt_status=$lt_dlunknown
10899   cat > conftest.$ac_ext <<EOF
10900 #line 10900 "configure"
10901 #include "confdefs.h"
10902
10903 #if HAVE_DLFCN_H
10904 #include <dlfcn.h>
10905 #endif
10906
10907 #include <stdio.h>
10908
10909 #ifdef RTLD_GLOBAL
10910 #  define LT_DLGLOBAL           RTLD_GLOBAL
10911 #else
10912 #  ifdef DL_GLOBAL
10913 #    define LT_DLGLOBAL         DL_GLOBAL
10914 #  else
10915 #    define LT_DLGLOBAL         0
10916 #  endif
10917 #endif
10918
10919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10920    find out it does not work in some platform. */
10921 #ifndef LT_DLLAZY_OR_NOW
10922 #  ifdef RTLD_LAZY
10923 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10924 #  else
10925 #    ifdef DL_LAZY
10926 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10927 #    else
10928 #      ifdef RTLD_NOW
10929 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10930 #      else
10931 #        ifdef DL_NOW
10932 #          define LT_DLLAZY_OR_NOW      DL_NOW
10933 #        else
10934 #          define LT_DLLAZY_OR_NOW      0
10935 #        endif
10936 #      endif
10937 #    endif
10938 #  endif
10939 #endif
10940
10941 #ifdef __cplusplus
10942 extern "C" void exit (int);
10943 #endif
10944
10945 void fnord() { int i=42;}
10946 int main ()
10947 {
10948   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10949   int status = $lt_dlunknown;
10950
10951   if (self)
10952     {
10953       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10954       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955       /* dlclose (self); */
10956     }
10957
10958     exit (status);
10959 }
10960 EOF
10961   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10962   (eval $ac_link) 2>&5
10963   ac_status=$?
10964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10965   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10966     (./conftest; exit; ) >&5 2>/dev/null
10967     lt_status=$?
10968     case x$lt_status in
10969       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10970       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10971       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10972     esac
10973   else :
10974     # compilation failed
10975     lt_cv_dlopen_self_static=no
10976   fi
10977 fi
10978 rm -fr conftest*
10979
10980
10981 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10984     fi
10985
10986     CPPFLAGS="$save_CPPFLAGS"
10987     LDFLAGS="$save_LDFLAGS"
10988     LIBS="$save_LIBS"
10989     ;;
10990   esac
10991
10992   case $lt_cv_dlopen_self in
10993   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10994   *) enable_dlopen_self=unknown ;;
10995   esac
10996
10997   case $lt_cv_dlopen_self_static in
10998   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10999   *) enable_dlopen_self_static=unknown ;;
11000   esac
11001 fi
11002
11003
11004 # Report which librarie types wil actually be built
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11006 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11008 $as_echo "$can_build_shared" >&6; }
11009
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11011 $as_echo_n "checking whether to build shared libraries... " >&6; }
11012 test "$can_build_shared" = "no" && enable_shared=no
11013
11014 # On AIX, shared libraries and static libraries use the same namespace, and
11015 # are all built from PIC.
11016 case $host_os in
11017 aix3*)
11018   test "$enable_shared" = yes && enable_static=no
11019   if test -n "$RANLIB"; then
11020     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11021     postinstall_cmds='$RANLIB $lib'
11022   fi
11023   ;;
11024
11025 aix4* | aix5*)
11026   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11027     test "$enable_shared" = yes && enable_static=no
11028   fi
11029     ;;
11030 esac
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11032 $as_echo "$enable_shared" >&6; }
11033
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11035 $as_echo_n "checking whether to build static libraries... " >&6; }
11036 # Make sure either enable_shared or enable_static is yes.
11037 test "$enable_shared" = yes || enable_static=yes
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11039 $as_echo "$enable_static" >&6; }
11040
11041 # The else clause should only fire when bootstrapping the
11042 # libtool distribution, otherwise you forgot to ship ltmain.sh
11043 # with your package, and you will get complaints that there are
11044 # no rules to generate ltmain.sh.
11045 if test -f "$ltmain"; then
11046   # See if we are running on zsh, and set the options which allow our commands through
11047   # without removal of \ escapes.
11048   if test -n "${ZSH_VERSION+set}" ; then
11049     setopt NO_GLOB_SUBST
11050   fi
11051   # Now quote all the things that may contain metacharacters while being
11052   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11053   # variables and quote the copies for generation of the libtool script.
11054   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11055     SED SHELL STRIP \
11056     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11057     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11058     deplibs_check_method reload_flag reload_cmds need_locks \
11059     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11060     lt_cv_sys_global_symbol_to_c_name_address \
11061     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11062     old_postinstall_cmds old_postuninstall_cmds \
11063     compiler \
11064     CC \
11065     LD \
11066     lt_prog_compiler_wl \
11067     lt_prog_compiler_pic \
11068     lt_prog_compiler_static \
11069     lt_prog_compiler_no_builtin_flag \
11070     export_dynamic_flag_spec \
11071     thread_safe_flag_spec \
11072     whole_archive_flag_spec \
11073     enable_shared_with_static_runtimes \
11074     old_archive_cmds \
11075     old_archive_from_new_cmds \
11076     predep_objects \
11077     postdep_objects \
11078     predeps \
11079     postdeps \
11080     compiler_lib_search_path \
11081     archive_cmds \
11082     archive_expsym_cmds \
11083     postinstall_cmds \
11084     postuninstall_cmds \
11085     old_archive_from_expsyms_cmds \
11086     allow_undefined_flag \
11087     no_undefined_flag \
11088     export_symbols_cmds \
11089     hardcode_libdir_flag_spec \
11090     hardcode_libdir_flag_spec_ld \
11091     hardcode_libdir_separator \
11092     hardcode_automatic \
11093     module_cmds \
11094     module_expsym_cmds \
11095     lt_cv_prog_compiler_c_o \
11096     exclude_expsyms \
11097     include_expsyms; do
11098
11099     case $var in
11100     old_archive_cmds | \
11101     old_archive_from_new_cmds | \
11102     archive_cmds | \
11103     archive_expsym_cmds | \
11104     module_cmds | \
11105     module_expsym_cmds | \
11106     old_archive_from_expsyms_cmds | \
11107     export_symbols_cmds | \
11108     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11109     postinstall_cmds | postuninstall_cmds | \
11110     old_postinstall_cmds | old_postuninstall_cmds | \
11111     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11112       # Double-quote double-evaled strings.
11113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11114       ;;
11115     *)
11116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11117       ;;
11118     esac
11119   done
11120
11121   case $lt_echo in
11122   *'\$0 --fallback-echo"')
11123     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11124     ;;
11125   esac
11126
11127 cfgfile="${ofile}T"
11128   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11129   $rm -f "$cfgfile"
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11131 $as_echo "$as_me: creating $ofile" >&6;}
11132
11133   cat <<__EOF__ >> "$cfgfile"
11134 #! $SHELL
11135
11136 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11137 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11138 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11139 #
11140 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11141 # Free Software Foundation, Inc.
11142 #
11143 # This file is part of GNU Libtool:
11144 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11145 #
11146 # This program is free software; you can redistribute it and/or modify
11147 # it under the terms of the GNU General Public License as published by
11148 # the Free Software Foundation; either version 2 of the License, or
11149 # (at your option) any later version.
11150 #
11151 # This program is distributed in the hope that it will be useful, but
11152 # WITHOUT ANY WARRANTY; without even the implied warranty of
11153 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11154 # General Public License for more details.
11155 #
11156 # You should have received a copy of the GNU General Public License
11157 # along with this program; if not, write to the Free Software
11158 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11159 #
11160 # As a special exception to the GNU General Public License, if you
11161 # distribute this file as part of a program that contains a
11162 # configuration script generated by Autoconf, you may include it under
11163 # the same distribution terms that you use for the rest of that program.
11164
11165 # A sed program that does not truncate output.
11166 SED=$lt_SED
11167
11168 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11169 Xsed="$SED -e 1s/^X//"
11170
11171 # The HP-UX ksh and POSIX shell print the target directory to stdout
11172 # if CDPATH is set.
11173 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11174
11175 # The names of the tagged configurations supported by this script.
11176 available_tags=
11177
11178 # ### BEGIN LIBTOOL CONFIG
11179
11180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11181
11182 # Shell to use when invoking shell scripts.
11183 SHELL=$lt_SHELL
11184
11185 # Whether or not to build shared libraries.
11186 build_libtool_libs=$enable_shared
11187
11188 # Whether or not to build static libraries.
11189 build_old_libs=$enable_static
11190
11191 # Whether or not to add -lc for building shared libraries.
11192 build_libtool_need_lc=$archive_cmds_need_lc
11193
11194 # Whether or not to disallow shared libs when runtime libs are static
11195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11196
11197 # Whether or not to optimize for fast installation.
11198 fast_install=$enable_fast_install
11199
11200 # The host system.
11201 host_alias=$host_alias
11202 host=$host
11203 host_os=$host_os
11204
11205 # The build system.
11206 build_alias=$build_alias
11207 build=$build
11208 build_os=$build_os
11209
11210 # An echo program that does not interpret backslashes.
11211 echo=$lt_echo
11212
11213 # The archiver.
11214 AR=$lt_AR
11215 AR_FLAGS=$lt_AR_FLAGS
11216
11217 # A C compiler.
11218 LTCC=$lt_LTCC
11219
11220 # A language-specific compiler.
11221 CC=$lt_compiler
11222
11223 # Is the compiler the GNU C compiler?
11224 with_gcc=$GCC
11225
11226 # An ERE matcher.
11227 EGREP=$lt_EGREP
11228
11229 # The linker used to build libraries.
11230 LD=$lt_LD
11231
11232 # Whether we need hard or soft links.
11233 LN_S=$lt_LN_S
11234
11235 # A BSD-compatible nm program.
11236 NM=$lt_NM
11237
11238 # A symbol stripping program
11239 STRIP=$lt_STRIP
11240
11241 # Used to examine libraries when file_magic_cmd begins "file"
11242 MAGIC_CMD=$MAGIC_CMD
11243
11244 # Used on cygwin: DLL creation program.
11245 DLLTOOL="$DLLTOOL"
11246
11247 # Used on cygwin: object dumper.
11248 OBJDUMP="$OBJDUMP"
11249
11250 # Used on cygwin: assembler.
11251 AS="$AS"
11252
11253 # The name of the directory that contains temporary libtool files.
11254 objdir=$objdir
11255
11256 # How to create reloadable object files.
11257 reload_flag=$lt_reload_flag
11258 reload_cmds=$lt_reload_cmds
11259
11260 # How to pass a linker flag through the compiler.
11261 wl=$lt_lt_prog_compiler_wl
11262
11263 # Object file suffix (normally "o").
11264 objext="$ac_objext"
11265
11266 # Old archive suffix (normally "a").
11267 libext="$libext"
11268
11269 # Shared library suffix (normally ".so").
11270 shrext_cmds='$shrext_cmds'
11271
11272 # Executable file suffix (normally "").
11273 exeext="$exeext"
11274
11275 # Additional compiler flags for building library objects.
11276 pic_flag=$lt_lt_prog_compiler_pic
11277 pic_mode=$pic_mode
11278
11279 # What is the maximum length of a command?
11280 max_cmd_len=$lt_cv_sys_max_cmd_len
11281
11282 # Does compiler simultaneously support -c and -o options?
11283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11284
11285 # Must we lock files when doing compilation?
11286 need_locks=$lt_need_locks
11287
11288 # Do we need the lib prefix for modules?
11289 need_lib_prefix=$need_lib_prefix
11290
11291 # Do we need a version for libraries?
11292 need_version=$need_version
11293
11294 # Whether dlopen is supported.
11295 dlopen_support=$enable_dlopen
11296
11297 # Whether dlopen of programs is supported.
11298 dlopen_self=$enable_dlopen_self
11299
11300 # Whether dlopen of statically linked programs is supported.
11301 dlopen_self_static=$enable_dlopen_self_static
11302
11303 # Compiler flag to prevent dynamic linking.
11304 link_static_flag=$lt_lt_prog_compiler_static
11305
11306 # Compiler flag to turn off builtin functions.
11307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11308
11309 # Compiler flag to allow reflexive dlopens.
11310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11311
11312 # Compiler flag to generate shared objects directly from archives.
11313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11314
11315 # Compiler flag to generate thread-safe objects.
11316 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11317
11318 # Library versioning type.
11319 version_type=$version_type
11320
11321 # Format of library name prefix.
11322 libname_spec=$lt_libname_spec
11323
11324 # List of archive names.  First name is the real one, the rest are links.
11325 # The last name is the one that the linker finds with -lNAME.
11326 library_names_spec=$lt_library_names_spec
11327
11328 # The coded name of the library, if different from the real name.
11329 soname_spec=$lt_soname_spec
11330
11331 # Commands used to build and install an old-style archive.
11332 RANLIB=$lt_RANLIB
11333 old_archive_cmds=$lt_old_archive_cmds
11334 old_postinstall_cmds=$lt_old_postinstall_cmds
11335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11336
11337 # Create an old-style archive from a shared archive.
11338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11339
11340 # Create a temporary old-style archive to link instead of a shared archive.
11341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11342
11343 # Commands used to build and install a shared archive.
11344 archive_cmds=$lt_archive_cmds
11345 archive_expsym_cmds=$lt_archive_expsym_cmds
11346 postinstall_cmds=$lt_postinstall_cmds
11347 postuninstall_cmds=$lt_postuninstall_cmds
11348
11349 # Commands used to build a loadable module (assumed same as above if empty)
11350 module_cmds=$lt_module_cmds
11351 module_expsym_cmds=$lt_module_expsym_cmds
11352
11353 # Commands to strip libraries.
11354 old_striplib=$lt_old_striplib
11355 striplib=$lt_striplib
11356
11357 # Dependencies to place before the objects being linked to create a
11358 # shared library.
11359 predep_objects=$lt_predep_objects
11360
11361 # Dependencies to place after the objects being linked to create a
11362 # shared library.
11363 postdep_objects=$lt_postdep_objects
11364
11365 # Dependencies to place before the objects being linked to create a
11366 # shared library.
11367 predeps=$lt_predeps
11368
11369 # Dependencies to place after the objects being linked to create a
11370 # shared library.
11371 postdeps=$lt_postdeps
11372
11373 # The library search path used internally by the compiler when linking
11374 # a shared library.
11375 compiler_lib_search_path=$lt_compiler_lib_search_path
11376
11377 # Method to check whether dependent libraries are shared objects.
11378 deplibs_check_method=$lt_deplibs_check_method
11379
11380 # Command to use when deplibs_check_method == file_magic.
11381 file_magic_cmd=$lt_file_magic_cmd
11382
11383 # Flag that allows shared libraries with undefined symbols to be built.
11384 allow_undefined_flag=$lt_allow_undefined_flag
11385
11386 # Flag that forces no undefined symbols.
11387 no_undefined_flag=$lt_no_undefined_flag
11388
11389 # Commands used to finish a libtool library installation in a directory.
11390 finish_cmds=$lt_finish_cmds
11391
11392 # Same as above, but a single script fragment to be evaled but not shown.
11393 finish_eval=$lt_finish_eval
11394
11395 # Take the output of nm and produce a listing of raw symbols and C names.
11396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11397
11398 # Transform the output of nm in a proper C declaration
11399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11400
11401 # Transform the output of nm in a C name address pair
11402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11403
11404 # This is the shared library runtime path variable.
11405 runpath_var=$runpath_var
11406
11407 # This is the shared library path variable.
11408 shlibpath_var=$shlibpath_var
11409
11410 # Is shlibpath searched before the hard-coded library search path?
11411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11412
11413 # How to hardcode a shared library path into an executable.
11414 hardcode_action=$hardcode_action
11415
11416 # Whether we should hardcode library paths into libraries.
11417 hardcode_into_libs=$hardcode_into_libs
11418
11419 # Flag to hardcode \$libdir into a binary during linking.
11420 # This must work even if \$libdir does not exist.
11421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11422
11423 # If ld is used when linking, flag to hardcode \$libdir into
11424 # a binary during linking. This must work even if \$libdir does
11425 # not exist.
11426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11427
11428 # Whether we need a single -rpath flag with a separated argument.
11429 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11430
11431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11432 # resulting binary.
11433 hardcode_direct=$hardcode_direct
11434
11435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11436 # resulting binary.
11437 hardcode_minus_L=$hardcode_minus_L
11438
11439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11440 # the resulting binary.
11441 hardcode_shlibpath_var=$hardcode_shlibpath_var
11442
11443 # Set to yes if building a shared library automatically hardcodes DIR into the library
11444 # and all subsequent libraries and executables linked against it.
11445 hardcode_automatic=$hardcode_automatic
11446
11447 # Variables whose values should be saved in libtool wrapper scripts and
11448 # restored at relink time.
11449 variables_saved_for_relink="$variables_saved_for_relink"
11450
11451 # Whether libtool must link a program against all its dependency libraries.
11452 link_all_deplibs=$link_all_deplibs
11453
11454 # Compile-time system search path for libraries
11455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11456
11457 # Run-time system search path for libraries
11458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11459
11460 # Fix the shell variable \$srcfile for the compiler.
11461 fix_srcfile_path="$fix_srcfile_path"
11462
11463 # Set to yes if exported symbols are required.
11464 always_export_symbols=$always_export_symbols
11465
11466 # The commands to list exported symbols.
11467 export_symbols_cmds=$lt_export_symbols_cmds
11468
11469 # The commands to extract the exported symbol list from a shared archive.
11470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11471
11472 # Symbols that should not be listed in the preloaded symbols.
11473 exclude_expsyms=$lt_exclude_expsyms
11474
11475 # Symbols that must always be exported.
11476 include_expsyms=$lt_include_expsyms
11477
11478 # ### END LIBTOOL CONFIG
11479
11480 __EOF__
11481
11482
11483   case $host_os in
11484   aix3*)
11485     cat <<\EOF >> "$cfgfile"
11486
11487 # AIX sometimes has problems with the GCC collect2 program.  For some
11488 # reason, if we set the COLLECT_NAMES environment variable, the problems
11489 # vanish in a puff of smoke.
11490 if test "X${COLLECT_NAMES+set}" != Xset; then
11491   COLLECT_NAMES=
11492   export COLLECT_NAMES
11493 fi
11494 EOF
11495     ;;
11496   esac
11497
11498   # We use sed instead of cat because bash on DJGPP gets confused if
11499   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11500   # text mode, it properly converts lines to CR/LF.  This bash problem
11501   # is reportedly fixed, but why not run on old versions too?
11502   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11503
11504   mv -f "$cfgfile" "$ofile" || \
11505     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11506   chmod +x "$ofile"
11507
11508 else
11509   # If there is no Makefile yet, we rely on a make rule to execute
11510   # `config.status --recheck' to rerun these tests and create the
11511   # libtool script then.
11512   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11513   if test -f "$ltmain_in"; then
11514     test -f Makefile && make "$ltmain"
11515   fi
11516 fi
11517
11518
11519 ac_ext=c
11520 ac_cpp='$CPP $CPPFLAGS'
11521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524
11525 CC="$lt_save_CC"
11526
11527
11528 # Check whether --with-tags was given.
11529 if test "${with_tags+set}" = set; then :
11530   withval=$with_tags; tagnames="$withval"
11531 fi
11532
11533
11534 if test -f "$ltmain" && test -n "$tagnames"; then
11535   if test ! -f "${ofile}"; then
11536     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11537 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11538   fi
11539
11540   if test -z "$LTCC"; then
11541     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11542     if test -z "$LTCC"; then
11543       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11544 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11545     else
11546       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11547 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11548     fi
11549   fi
11550
11551   # Extract list of available tagged configurations in $ofile.
11552   # Note that this assumes the entire list is on one line.
11553   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11554
11555   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11556   for tagname in $tagnames; do
11557     IFS="$lt_save_ifs"
11558     # Check whether tagname contains only valid characters
11559     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11560     "") ;;
11561     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
11562         ;;
11563     esac
11564
11565     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11566     then
11567       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
11568     fi
11569
11570     # Update the list of available tags.
11571     if test -n "$tagname"; then
11572       echo appending configuration tag \"$tagname\" to $ofile
11573
11574       case $tagname in
11575       CXX)
11576         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11577             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11578             (test "X$CXX" != "Xg++"))) ; then
11579           :
11580         else
11581           tagname=""
11582         fi
11583         ;;
11584
11585       F77)
11586         if test -n "$F77" && test "X$F77" != "Xno"; then
11587           :
11588         else
11589           tagname=""
11590         fi
11591         ;;
11592
11593       GCJ)
11594         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11595           :
11596         else
11597           tagname=""
11598         fi
11599         ;;
11600
11601       RC)
11602
11603
11604 # Source file extension for RC test sources.
11605 ac_ext=rc
11606
11607 # Object file extension for compiled RC test sources.
11608 objext=o
11609 objext_RC=$objext
11610
11611 # Code to be used in simple compile tests
11612 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11613
11614 # Code to be used in simple link tests
11615 lt_simple_link_test_code="$lt_simple_compile_test_code"
11616
11617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11618
11619 # If no C compiler was specified, use CC.
11620 LTCC=${LTCC-"$CC"}
11621
11622 # Allow CC to be a program name with arguments.
11623 compiler=$CC
11624
11625
11626 # save warnings/boilerplate of simple test code
11627 ac_outfile=conftest.$ac_objext
11628 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11630 _lt_compiler_boilerplate=`cat conftest.err`
11631 $rm conftest*
11632
11633 ac_outfile=conftest.$ac_objext
11634 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11636 _lt_linker_boilerplate=`cat conftest.err`
11637 $rm conftest*
11638
11639
11640 # Allow CC to be a program name with arguments.
11641 lt_save_CC="$CC"
11642 CC=${RC-"windres"}
11643 compiler=$CC
11644 compiler_RC=$CC
11645 for cc_temp in $compiler""; do
11646   case $cc_temp in
11647     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11648     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11649     \-*) ;;
11650     *) break;;
11651   esac
11652 done
11653 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11654
11655 lt_cv_prog_compiler_c_o_RC=yes
11656
11657 # The else clause should only fire when bootstrapping the
11658 # libtool distribution, otherwise you forgot to ship ltmain.sh
11659 # with your package, and you will get complaints that there are
11660 # no rules to generate ltmain.sh.
11661 if test -f "$ltmain"; then
11662   # See if we are running on zsh, and set the options which allow our commands through
11663   # without removal of \ escapes.
11664   if test -n "${ZSH_VERSION+set}" ; then
11665     setopt NO_GLOB_SUBST
11666   fi
11667   # Now quote all the things that may contain metacharacters while being
11668   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11669   # variables and quote the copies for generation of the libtool script.
11670   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11671     SED SHELL STRIP \
11672     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11673     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11674     deplibs_check_method reload_flag reload_cmds need_locks \
11675     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11676     lt_cv_sys_global_symbol_to_c_name_address \
11677     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11678     old_postinstall_cmds old_postuninstall_cmds \
11679     compiler_RC \
11680     CC_RC \
11681     LD_RC \
11682     lt_prog_compiler_wl_RC \
11683     lt_prog_compiler_pic_RC \
11684     lt_prog_compiler_static_RC \
11685     lt_prog_compiler_no_builtin_flag_RC \
11686     export_dynamic_flag_spec_RC \
11687     thread_safe_flag_spec_RC \
11688     whole_archive_flag_spec_RC \
11689     enable_shared_with_static_runtimes_RC \
11690     old_archive_cmds_RC \
11691     old_archive_from_new_cmds_RC \
11692     predep_objects_RC \
11693     postdep_objects_RC \
11694     predeps_RC \
11695     postdeps_RC \
11696     compiler_lib_search_path_RC \
11697     archive_cmds_RC \
11698     archive_expsym_cmds_RC \
11699     postinstall_cmds_RC \
11700     postuninstall_cmds_RC \
11701     old_archive_from_expsyms_cmds_RC \
11702     allow_undefined_flag_RC \
11703     no_undefined_flag_RC \
11704     export_symbols_cmds_RC \
11705     hardcode_libdir_flag_spec_RC \
11706     hardcode_libdir_flag_spec_ld_RC \
11707     hardcode_libdir_separator_RC \
11708     hardcode_automatic_RC \
11709     module_cmds_RC \
11710     module_expsym_cmds_RC \
11711     lt_cv_prog_compiler_c_o_RC \
11712     exclude_expsyms_RC \
11713     include_expsyms_RC; do
11714
11715     case $var in
11716     old_archive_cmds_RC | \
11717     old_archive_from_new_cmds_RC | \
11718     archive_cmds_RC | \
11719     archive_expsym_cmds_RC | \
11720     module_cmds_RC | \
11721     module_expsym_cmds_RC | \
11722     old_archive_from_expsyms_cmds_RC | \
11723     export_symbols_cmds_RC | \
11724     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11725     postinstall_cmds | postuninstall_cmds | \
11726     old_postinstall_cmds | old_postuninstall_cmds | \
11727     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11728       # Double-quote double-evaled strings.
11729       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11730       ;;
11731     *)
11732       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11733       ;;
11734     esac
11735   done
11736
11737   case $lt_echo in
11738   *'\$0 --fallback-echo"')
11739     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11740     ;;
11741   esac
11742
11743 cfgfile="$ofile"
11744
11745   cat <<__EOF__ >> "$cfgfile"
11746 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11747
11748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11749
11750 # Shell to use when invoking shell scripts.
11751 SHELL=$lt_SHELL
11752
11753 # Whether or not to build shared libraries.
11754 build_libtool_libs=$enable_shared
11755
11756 # Whether or not to build static libraries.
11757 build_old_libs=$enable_static
11758
11759 # Whether or not to add -lc for building shared libraries.
11760 build_libtool_need_lc=$archive_cmds_need_lc_RC
11761
11762 # Whether or not to disallow shared libs when runtime libs are static
11763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11764
11765 # Whether or not to optimize for fast installation.
11766 fast_install=$enable_fast_install
11767
11768 # The host system.
11769 host_alias=$host_alias
11770 host=$host
11771 host_os=$host_os
11772
11773 # The build system.
11774 build_alias=$build_alias
11775 build=$build
11776 build_os=$build_os
11777
11778 # An echo program that does not interpret backslashes.
11779 echo=$lt_echo
11780
11781 # The archiver.
11782 AR=$lt_AR
11783 AR_FLAGS=$lt_AR_FLAGS
11784
11785 # A C compiler.
11786 LTCC=$lt_LTCC
11787
11788 # A language-specific compiler.
11789 CC=$lt_compiler_RC
11790
11791 # Is the compiler the GNU C compiler?
11792 with_gcc=$GCC_RC
11793
11794 # An ERE matcher.
11795 EGREP=$lt_EGREP
11796
11797 # The linker used to build libraries.
11798 LD=$lt_LD_RC
11799
11800 # Whether we need hard or soft links.
11801 LN_S=$lt_LN_S
11802
11803 # A BSD-compatible nm program.
11804 NM=$lt_NM
11805
11806 # A symbol stripping program
11807 STRIP=$lt_STRIP
11808
11809 # Used to examine libraries when file_magic_cmd begins "file"
11810 MAGIC_CMD=$MAGIC_CMD
11811
11812 # Used on cygwin: DLL creation program.
11813 DLLTOOL="$DLLTOOL"
11814
11815 # Used on cygwin: object dumper.
11816 OBJDUMP="$OBJDUMP"
11817
11818 # Used on cygwin: assembler.
11819 AS="$AS"
11820
11821 # The name of the directory that contains temporary libtool files.
11822 objdir=$objdir
11823
11824 # How to create reloadable object files.
11825 reload_flag=$lt_reload_flag
11826 reload_cmds=$lt_reload_cmds
11827
11828 # How to pass a linker flag through the compiler.
11829 wl=$lt_lt_prog_compiler_wl_RC
11830
11831 # Object file suffix (normally "o").
11832 objext="$ac_objext"
11833
11834 # Old archive suffix (normally "a").
11835 libext="$libext"
11836
11837 # Shared library suffix (normally ".so").
11838 shrext_cmds='$shrext_cmds'
11839
11840 # Executable file suffix (normally "").
11841 exeext="$exeext"
11842
11843 # Additional compiler flags for building library objects.
11844 pic_flag=$lt_lt_prog_compiler_pic_RC
11845 pic_mode=$pic_mode
11846
11847 # What is the maximum length of a command?
11848 max_cmd_len=$lt_cv_sys_max_cmd_len
11849
11850 # Does compiler simultaneously support -c and -o options?
11851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11852
11853 # Must we lock files when doing compilation?
11854 need_locks=$lt_need_locks
11855
11856 # Do we need the lib prefix for modules?
11857 need_lib_prefix=$need_lib_prefix
11858
11859 # Do we need a version for libraries?
11860 need_version=$need_version
11861
11862 # Whether dlopen is supported.
11863 dlopen_support=$enable_dlopen
11864
11865 # Whether dlopen of programs is supported.
11866 dlopen_self=$enable_dlopen_self
11867
11868 # Whether dlopen of statically linked programs is supported.
11869 dlopen_self_static=$enable_dlopen_self_static
11870
11871 # Compiler flag to prevent dynamic linking.
11872 link_static_flag=$lt_lt_prog_compiler_static_RC
11873
11874 # Compiler flag to turn off builtin functions.
11875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11876
11877 # Compiler flag to allow reflexive dlopens.
11878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11879
11880 # Compiler flag to generate shared objects directly from archives.
11881 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11882
11883 # Compiler flag to generate thread-safe objects.
11884 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11885
11886 # Library versioning type.
11887 version_type=$version_type
11888
11889 # Format of library name prefix.
11890 libname_spec=$lt_libname_spec
11891
11892 # List of archive names.  First name is the real one, the rest are links.
11893 # The last name is the one that the linker finds with -lNAME.
11894 library_names_spec=$lt_library_names_spec
11895
11896 # The coded name of the library, if different from the real name.
11897 soname_spec=$lt_soname_spec
11898
11899 # Commands used to build and install an old-style archive.
11900 RANLIB=$lt_RANLIB
11901 old_archive_cmds=$lt_old_archive_cmds_RC
11902 old_postinstall_cmds=$lt_old_postinstall_cmds
11903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11904
11905 # Create an old-style archive from a shared archive.
11906 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11907
11908 # Create a temporary old-style archive to link instead of a shared archive.
11909 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11910
11911 # Commands used to build and install a shared archive.
11912 archive_cmds=$lt_archive_cmds_RC
11913 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11914 postinstall_cmds=$lt_postinstall_cmds
11915 postuninstall_cmds=$lt_postuninstall_cmds
11916
11917 # Commands used to build a loadable module (assumed same as above if empty)
11918 module_cmds=$lt_module_cmds_RC
11919 module_expsym_cmds=$lt_module_expsym_cmds_RC
11920
11921 # Commands to strip libraries.
11922 old_striplib=$lt_old_striplib
11923 striplib=$lt_striplib
11924
11925 # Dependencies to place before the objects being linked to create a
11926 # shared library.
11927 predep_objects=$lt_predep_objects_RC
11928
11929 # Dependencies to place after the objects being linked to create a
11930 # shared library.
11931 postdep_objects=$lt_postdep_objects_RC
11932
11933 # Dependencies to place before the objects being linked to create a
11934 # shared library.
11935 predeps=$lt_predeps_RC
11936
11937 # Dependencies to place after the objects being linked to create a
11938 # shared library.
11939 postdeps=$lt_postdeps_RC
11940
11941 # The library search path used internally by the compiler when linking
11942 # a shared library.
11943 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11944
11945 # Method to check whether dependent libraries are shared objects.
11946 deplibs_check_method=$lt_deplibs_check_method
11947
11948 # Command to use when deplibs_check_method == file_magic.
11949 file_magic_cmd=$lt_file_magic_cmd
11950
11951 # Flag that allows shared libraries with undefined symbols to be built.
11952 allow_undefined_flag=$lt_allow_undefined_flag_RC
11953
11954 # Flag that forces no undefined symbols.
11955 no_undefined_flag=$lt_no_undefined_flag_RC
11956
11957 # Commands used to finish a libtool library installation in a directory.
11958 finish_cmds=$lt_finish_cmds
11959
11960 # Same as above, but a single script fragment to be evaled but not shown.
11961 finish_eval=$lt_finish_eval
11962
11963 # Take the output of nm and produce a listing of raw symbols and C names.
11964 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11965
11966 # Transform the output of nm in a proper C declaration
11967 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11968
11969 # Transform the output of nm in a C name address pair
11970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11971
11972 # This is the shared library runtime path variable.
11973 runpath_var=$runpath_var
11974
11975 # This is the shared library path variable.
11976 shlibpath_var=$shlibpath_var
11977
11978 # Is shlibpath searched before the hard-coded library search path?
11979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11980
11981 # How to hardcode a shared library path into an executable.
11982 hardcode_action=$hardcode_action_RC
11983
11984 # Whether we should hardcode library paths into libraries.
11985 hardcode_into_libs=$hardcode_into_libs
11986
11987 # Flag to hardcode \$libdir into a binary during linking.
11988 # This must work even if \$libdir does not exist.
11989 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11990
11991 # If ld is used when linking, flag to hardcode \$libdir into
11992 # a binary during linking. This must work even if \$libdir does
11993 # not exist.
11994 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11995
11996 # Whether we need a single -rpath flag with a separated argument.
11997 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11998
11999 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12000 # resulting binary.
12001 hardcode_direct=$hardcode_direct_RC
12002
12003 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12004 # resulting binary.
12005 hardcode_minus_L=$hardcode_minus_L_RC
12006
12007 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12008 # the resulting binary.
12009 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12010
12011 # Set to yes if building a shared library automatically hardcodes DIR into the library
12012 # and all subsequent libraries and executables linked against it.
12013 hardcode_automatic=$hardcode_automatic_RC
12014
12015 # Variables whose values should be saved in libtool wrapper scripts and
12016 # restored at relink time.
12017 variables_saved_for_relink="$variables_saved_for_relink"
12018
12019 # Whether libtool must link a program against all its dependency libraries.
12020 link_all_deplibs=$link_all_deplibs_RC
12021
12022 # Compile-time system search path for libraries
12023 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12024
12025 # Run-time system search path for libraries
12026 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12027
12028 # Fix the shell variable \$srcfile for the compiler.
12029 fix_srcfile_path="$fix_srcfile_path_RC"
12030
12031 # Set to yes if exported symbols are required.
12032 always_export_symbols=$always_export_symbols_RC
12033
12034 # The commands to list exported symbols.
12035 export_symbols_cmds=$lt_export_symbols_cmds_RC
12036
12037 # The commands to extract the exported symbol list from a shared archive.
12038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12039
12040 # Symbols that should not be listed in the preloaded symbols.
12041 exclude_expsyms=$lt_exclude_expsyms_RC
12042
12043 # Symbols that must always be exported.
12044 include_expsyms=$lt_include_expsyms_RC
12045
12046 # ### END LIBTOOL TAG CONFIG: $tagname
12047
12048 __EOF__
12049
12050
12051 else
12052   # If there is no Makefile yet, we rely on a make rule to execute
12053   # `config.status --recheck' to rerun these tests and create the
12054   # libtool script then.
12055   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12056   if test -f "$ltmain_in"; then
12057     test -f Makefile && make "$ltmain"
12058   fi
12059 fi
12060
12061
12062 ac_ext=c
12063 ac_cpp='$CPP $CPPFLAGS'
12064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12067
12068 CC="$lt_save_CC"
12069
12070         ;;
12071
12072       *)
12073         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
12074         ;;
12075       esac
12076
12077       # Append the new tag name to the list of available tags.
12078       if test -n "$tagname" ; then
12079       available_tags="$available_tags $tagname"
12080     fi
12081     fi
12082   done
12083   IFS="$lt_save_ifs"
12084
12085   # Now substitute the updated list of available tags.
12086   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12087     mv "${ofile}T" "$ofile"
12088     chmod +x "$ofile"
12089   else
12090     rm -f "${ofile}T"
12091     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
12092   fi
12093 fi
12094
12095
12096
12097 # This can be used to rebuild libtool when needed
12098 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12099
12100 # Always use our own libtool.
12101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12102
12103 # Prevent multiple expansion
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114 ol_link_perl=no
12115 if test $ol_enable_perl != no ; then
12116         # Extract the first word of "perl", so it can be a program name with args.
12117 set dummy perl; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_path_PERLBIN+:} false; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   case $PERLBIN in
12124   [\\/]* | ?:[\\/]*)
12125   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12126   ;;
12127   *)
12128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12130 do
12131   IFS=$as_save_IFS
12132   test -z "$as_dir" && as_dir=.
12133     for ac_exec_ext in '' $ac_executable_extensions; do
12134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12135     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137     break 2
12138   fi
12139 done
12140   done
12141 IFS=$as_save_IFS
12142
12143   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12144   ;;
12145 esac
12146 fi
12147 PERLBIN=$ac_cv_path_PERLBIN
12148 if test -n "$PERLBIN"; then
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12150 $as_echo "$PERLBIN" >&6; }
12151 else
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155
12156
12157
12158         if test "no$PERLBIN" = "no" ; then
12159                 if test $ol_enable_perl = yes ; then
12160                         as_fn_error $? "could not locate perl" "$LINENO" 5
12161                 fi
12162
12163         else
12164                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12165                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12166
12167                 if test x"$ol_enable_perl" = "xyes" ; then
12168                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12169                 else
12170                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12171                 fi
12172                                 ol_link_perl=yes
12173         fi
12174 fi
12175
12176 ac_ext=c
12177 ac_cpp='$CPP $CPPFLAGS'
12178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12182 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12183 # On Suns, sometimes $CPP names a directory.
12184 if test -n "$CPP" && test -d "$CPP"; then
12185   CPP=
12186 fi
12187 if test -z "$CPP"; then
12188   if ${ac_cv_prog_CPP+:} false; then :
12189   $as_echo_n "(cached) " >&6
12190 else
12191       # Double quotes because CPP needs to be expanded
12192     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12193     do
12194       ac_preproc_ok=false
12195 for ac_c_preproc_warn_flag in '' yes
12196 do
12197   # Use a header file that comes with gcc, so configuring glibc
12198   # with a fresh cross-compiler works.
12199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12200   # <limits.h> exists even on freestanding compilers.
12201   # On the NeXT, cc -E runs the code through the compiler's parser,
12202   # not just through cpp. "Syntax error" is here to catch this case.
12203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h.  */
12205 #ifdef __STDC__
12206 # include <limits.h>
12207 #else
12208 # include <assert.h>
12209 #endif
12210                      Syntax error
12211 _ACEOF
12212 if ac_fn_c_try_cpp "$LINENO"; then :
12213
12214 else
12215   # Broken: fails on valid input.
12216 continue
12217 fi
12218 rm -f conftest.err conftest.i conftest.$ac_ext
12219
12220   # OK, works on sane cases.  Now check whether nonexistent headers
12221   # can be detected and how.
12222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h.  */
12224 #include <ac_nonexistent.h>
12225 _ACEOF
12226 if ac_fn_c_try_cpp "$LINENO"; then :
12227   # Broken: success on invalid input.
12228 continue
12229 else
12230   # Passes both tests.
12231 ac_preproc_ok=:
12232 break
12233 fi
12234 rm -f conftest.err conftest.i conftest.$ac_ext
12235
12236 done
12237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12238 rm -f conftest.i conftest.err conftest.$ac_ext
12239 if $ac_preproc_ok; then :
12240   break
12241 fi
12242
12243     done
12244     ac_cv_prog_CPP=$CPP
12245
12246 fi
12247   CPP=$ac_cv_prog_CPP
12248 else
12249   ac_cv_prog_CPP=$CPP
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12252 $as_echo "$CPP" >&6; }
12253 ac_preproc_ok=false
12254 for ac_c_preproc_warn_flag in '' yes
12255 do
12256   # Use a header file that comes with gcc, so configuring glibc
12257   # with a fresh cross-compiler works.
12258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12259   # <limits.h> exists even on freestanding compilers.
12260   # On the NeXT, cc -E runs the code through the compiler's parser,
12261   # not just through cpp. "Syntax error" is here to catch this case.
12262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h.  */
12264 #ifdef __STDC__
12265 # include <limits.h>
12266 #else
12267 # include <assert.h>
12268 #endif
12269                      Syntax error
12270 _ACEOF
12271 if ac_fn_c_try_cpp "$LINENO"; then :
12272
12273 else
12274   # Broken: fails on valid input.
12275 continue
12276 fi
12277 rm -f conftest.err conftest.i conftest.$ac_ext
12278
12279   # OK, works on sane cases.  Now check whether nonexistent headers
12280   # can be detected and how.
12281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283 #include <ac_nonexistent.h>
12284 _ACEOF
12285 if ac_fn_c_try_cpp "$LINENO"; then :
12286   # Broken: success on invalid input.
12287 continue
12288 else
12289   # Passes both tests.
12290 ac_preproc_ok=:
12291 break
12292 fi
12293 rm -f conftest.err conftest.i conftest.$ac_ext
12294
12295 done
12296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12297 rm -f conftest.i conftest.err conftest.$ac_ext
12298 if $ac_preproc_ok; then :
12299
12300 else
12301   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12303 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12304 See \`config.log' for more details" "$LINENO" 5; }
12305 fi
12306
12307 ac_ext=c
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12314 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12315 if ${ol_cv_msvc+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h.  */
12320
12321 #ifndef _MSC_VER
12322 #include <__FOO__/generate_error.h>
12323 #endif
12324
12325 _ACEOF
12326 if ac_fn_c_try_cpp "$LINENO"; then :
12327   ol_cv_msvc=yes
12328 else
12329   ol_cv_msvc=no
12330 fi
12331 rm -f conftest.err conftest.i conftest.$ac_ext
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12334 $as_echo "$ol_cv_msvc" >&6; }
12335
12336 case $host_os in
12337   *mingw32* ) ac_cv_mingw32=yes ;;
12338   *cygwin* ) ac_cv_cygwin=yes ;;
12339   *interix* ) ac_cv_interix=yes ;;
12340 esac
12341
12342
12343
12344
12345 cat >>confdefs.h <<_ACEOF
12346 #define EXEEXT "${EXEEXT}"
12347 _ACEOF
12348
12349
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12351 $as_echo_n "checking for be_app in -lbe... " >&6; }
12352 if ${ac_cv_lib_be_be_app+:} false; then :
12353   $as_echo_n "(cached) " >&6
12354 else
12355   ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-lbe -lroot -lnet $LIBS"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359
12360 /* Override any GCC internal prototype to avoid an error.
12361    Use char because int might match the return type of a GCC
12362    builtin and then its argument prototype would still apply.  */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 char be_app ();
12367 int
12368 main ()
12369 {
12370 return be_app ();
12371   ;
12372   return 0;
12373 }
12374 _ACEOF
12375 if ac_fn_c_try_link "$LINENO"; then :
12376   ac_cv_lib_be_be_app=yes
12377 else
12378   ac_cv_lib_be_be_app=no
12379 fi
12380 rm -f core conftest.err conftest.$ac_objext \
12381     conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12385 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12386 if test "x$ac_cv_lib_be_be_app" = xyes; then :
12387   LIBS="$LIBS -lbe -lroot -lnet"
12388 else
12389   :
12390 fi
12391
12392
12393 ac_ext=c
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398 if test -n "$ac_tool_prefix"; then
12399   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_prog_CC+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   if test -n "$CC"; then
12407   ac_cv_prog_CC="$CC" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12411 do
12412   IFS=$as_save_IFS
12413   test -z "$as_dir" && as_dir=.
12414     for ac_exec_ext in '' $ac_executable_extensions; do
12415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418     break 2
12419   fi
12420 done
12421   done
12422 IFS=$as_save_IFS
12423
12424 fi
12425 fi
12426 CC=$ac_cv_prog_CC
12427 if test -n "$CC"; then
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12429 $as_echo "$CC" >&6; }
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436 fi
12437 if test -z "$ac_cv_prog_CC"; then
12438   ac_ct_CC=$CC
12439   # Extract the first word of "gcc", so it can be a program name with args.
12440 set dummy gcc; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   if test -n "$ac_ct_CC"; then
12447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12448 else
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454     for ac_exec_ext in '' $ac_executable_extensions; do
12455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456     ac_cv_prog_ac_ct_CC="gcc"
12457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458     break 2
12459   fi
12460 done
12461   done
12462 IFS=$as_save_IFS
12463
12464 fi
12465 fi
12466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12467 if test -n "$ac_ct_CC"; then
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12469 $as_echo "$ac_ct_CC" >&6; }
12470 else
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474
12475   if test "x$ac_ct_CC" = x; then
12476     CC=""
12477   else
12478     case $cross_compiling:$ac_tool_warned in
12479 yes:)
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482 ac_tool_warned=yes ;;
12483 esac
12484     CC=$ac_ct_CC
12485   fi
12486 else
12487   CC="$ac_cv_prog_CC"
12488 fi
12489
12490 if test -z "$CC"; then
12491           if test -n "$ac_tool_prefix"; then
12492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12493 set dummy ${ac_tool_prefix}cc; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_prog_CC+:} false; then :
12497   $as_echo_n "(cached) " >&6
12498 else
12499   if test -n "$CC"; then
12500   ac_cv_prog_CC="$CC" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505   IFS=$as_save_IFS
12506   test -z "$as_dir" && as_dir=.
12507     for ac_exec_ext in '' $ac_executable_extensions; do
12508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509     ac_cv_prog_CC="${ac_tool_prefix}cc"
12510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511     break 2
12512   fi
12513 done
12514   done
12515 IFS=$as_save_IFS
12516
12517 fi
12518 fi
12519 CC=$ac_cv_prog_CC
12520 if test -n "$CC"; then
12521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12522 $as_echo "$CC" >&6; }
12523 else
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527
12528
12529   fi
12530 fi
12531 if test -z "$CC"; then
12532   # Extract the first word of "cc", so it can be a program name with args.
12533 set dummy cc; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if ${ac_cv_prog_CC+:} false; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   if test -n "$CC"; then
12540   ac_cv_prog_CC="$CC" # Let the user override the test.
12541 else
12542   ac_prog_rejected=no
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546   IFS=$as_save_IFS
12547   test -z "$as_dir" && as_dir=.
12548     for ac_exec_ext in '' $ac_executable_extensions; do
12549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12551        ac_prog_rejected=yes
12552        continue
12553      fi
12554     ac_cv_prog_CC="cc"
12555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556     break 2
12557   fi
12558 done
12559   done
12560 IFS=$as_save_IFS
12561
12562 if test $ac_prog_rejected = yes; then
12563   # We found a bogon in the path, so make sure we never use it.
12564   set dummy $ac_cv_prog_CC
12565   shift
12566   if test $# != 0; then
12567     # We chose a different compiler from the bogus one.
12568     # However, it has the same basename, so the bogon will be chosen
12569     # first if we set CC to just the basename; use the full file name.
12570     shift
12571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12572   fi
12573 fi
12574 fi
12575 fi
12576 CC=$ac_cv_prog_CC
12577 if test -n "$CC"; then
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12579 $as_echo "$CC" >&6; }
12580 else
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585
12586 fi
12587 if test -z "$CC"; then
12588   if test -n "$ac_tool_prefix"; then
12589   for ac_prog in cl.exe
12590   do
12591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_prog_CC+:} false; then :
12596   $as_echo_n "(cached) " >&6
12597 else
12598   if test -n "$CC"; then
12599   ac_cv_prog_CC="$CC" # Let the user override the test.
12600 else
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606     for ac_exec_ext in '' $ac_executable_extensions; do
12607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615
12616 fi
12617 fi
12618 CC=$ac_cv_prog_CC
12619 if test -n "$CC"; then
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12621 $as_echo "$CC" >&6; }
12622 else
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628     test -n "$CC" && break
12629   done
12630 fi
12631 if test -z "$CC"; then
12632   ac_ct_CC=$CC
12633   for ac_prog in cl.exe
12634 do
12635   # Extract the first word of "$ac_prog", so it can be a program name with args.
12636 set dummy $ac_prog; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   if test -n "$ac_ct_CC"; then
12643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12644 else
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648   IFS=$as_save_IFS
12649   test -z "$as_dir" && as_dir=.
12650     for ac_exec_ext in '' $ac_executable_extensions; do
12651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652     ac_cv_prog_ac_ct_CC="$ac_prog"
12653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654     break 2
12655   fi
12656 done
12657   done
12658 IFS=$as_save_IFS
12659
12660 fi
12661 fi
12662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12663 if test -n "$ac_ct_CC"; then
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12665 $as_echo "$ac_ct_CC" >&6; }
12666 else
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670
12671
12672   test -n "$ac_ct_CC" && break
12673 done
12674
12675   if test "x$ac_ct_CC" = x; then
12676     CC=""
12677   else
12678     case $cross_compiling:$ac_tool_warned in
12679 yes:)
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12682 ac_tool_warned=yes ;;
12683 esac
12684     CC=$ac_ct_CC
12685   fi
12686 fi
12687
12688 fi
12689
12690
12691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12693 as_fn_error $? "no acceptable C compiler found in \$PATH
12694 See \`config.log' for more details" "$LINENO" 5; }
12695
12696 # Provide some information about the compiler.
12697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12698 set X $ac_compile
12699 ac_compiler=$2
12700 for ac_option in --version -v -V -qversion; do
12701   { { ac_try="$ac_compiler $ac_option >&5"
12702 case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12707 $as_echo "$ac_try_echo"; } >&5
12708   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12709   ac_status=$?
12710   if test -s conftest.err; then
12711     sed '10a\
12712 ... rest of stderr output deleted ...
12713          10q' conftest.err >conftest.er1
12714     cat conftest.er1 >&5
12715   fi
12716   rm -f conftest.er1 conftest.err
12717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718   test $ac_status = 0; }
12719 done
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12723 if ${ac_cv_c_compiler_gnu+:} false; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h.  */
12728
12729 int
12730 main ()
12731 {
12732 #ifndef __GNUC__
12733        choke me
12734 #endif
12735
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741   ac_compiler_gnu=yes
12742 else
12743   ac_compiler_gnu=no
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12747
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12751 if test $ac_compiler_gnu = yes; then
12752   GCC=yes
12753 else
12754   GCC=
12755 fi
12756 ac_test_CFLAGS=${CFLAGS+set}
12757 ac_save_CFLAGS=$CFLAGS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12760 if ${ac_cv_prog_cc_g+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   ac_save_c_werror_flag=$ac_c_werror_flag
12764    ac_c_werror_flag=yes
12765    ac_cv_prog_cc_g=no
12766    CFLAGS="-g"
12767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h.  */
12769
12770 int
12771 main ()
12772 {
12773
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779   ac_cv_prog_cc_g=yes
12780 else
12781   CFLAGS=""
12782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h.  */
12784
12785 int
12786 main ()
12787 {
12788
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794
12795 else
12796   ac_c_werror_flag=$ac_save_c_werror_flag
12797          CFLAGS="-g"
12798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800
12801 int
12802 main ()
12803 {
12804
12805   ;
12806   return 0;
12807 }
12808 _ACEOF
12809 if ac_fn_c_try_compile "$LINENO"; then :
12810   ac_cv_prog_cc_g=yes
12811 fi
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817    ac_c_werror_flag=$ac_save_c_werror_flag
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12820 $as_echo "$ac_cv_prog_cc_g" >&6; }
12821 if test "$ac_test_CFLAGS" = set; then
12822   CFLAGS=$ac_save_CFLAGS
12823 elif test $ac_cv_prog_cc_g = yes; then
12824   if test "$GCC" = yes; then
12825     CFLAGS="-g -O2"
12826   else
12827     CFLAGS="-g"
12828   fi
12829 else
12830   if test "$GCC" = yes; then
12831     CFLAGS="-O2"
12832   else
12833     CFLAGS=
12834   fi
12835 fi
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12838 if ${ac_cv_prog_cc_c89+:} false; then :
12839   $as_echo_n "(cached) " >&6
12840 else
12841   ac_cv_prog_cc_c89=no
12842 ac_save_CC=$CC
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845 #include <stdarg.h>
12846 #include <stdio.h>
12847 #include <sys/types.h>
12848 #include <sys/stat.h>
12849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12850 struct buf { int x; };
12851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12852 static char *e (p, i)
12853      char **p;
12854      int i;
12855 {
12856   return p[i];
12857 }
12858 static char *f (char * (*g) (char **, int), char **p, ...)
12859 {
12860   char *s;
12861   va_list v;
12862   va_start (v,p);
12863   s = g (p, va_arg (v,int));
12864   va_end (v);
12865   return s;
12866 }
12867
12868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12869    function prototypes and stuff, but not '\xHH' hex character constants.
12870    These don't provoke an error unfortunately, instead are silently treated
12871    as 'x'.  The following induces an error, until -std is added to get
12872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12873    array size at least.  It's necessary to write '\x00'==0 to get something
12874    that's true only with -std.  */
12875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12876
12877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12878    inside strings and character constants.  */
12879 #define FOO(x) 'x'
12880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12881
12882 int test (int i, double x);
12883 struct s1 {int (*f) (int a);};
12884 struct s2 {int (*f) (double a);};
12885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12886 int argc;
12887 char **argv;
12888 int
12889 main ()
12890 {
12891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12898 do
12899   CC="$ac_save_CC $ac_arg"
12900   if ac_fn_c_try_compile "$LINENO"; then :
12901   ac_cv_prog_cc_c89=$ac_arg
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext
12904   test "x$ac_cv_prog_cc_c89" != "xno" && break
12905 done
12906 rm -f conftest.$ac_ext
12907 CC=$ac_save_CC
12908
12909 fi
12910 # AC_CACHE_VAL
12911 case "x$ac_cv_prog_cc_c89" in
12912   x)
12913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12914 $as_echo "none needed" >&6; } ;;
12915   xno)
12916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12917 $as_echo "unsupported" >&6; } ;;
12918   *)
12919     CC="$CC $ac_cv_prog_cc_c89"
12920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12922 esac
12923 if test "x$ac_cv_prog_cc_c89" != xno; then :
12924
12925 fi
12926
12927 ac_ext=c
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933 depcc="$CC"   am_compiler_list=
12934
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12936 $as_echo_n "checking dependency style of $depcc... " >&6; }
12937 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12941   # We make a subdir and do the tests there.  Otherwise we can end up
12942   # making bogus files that we don't know about and never remove.  For
12943   # instance it was reported that on HP-UX the gcc test will end up
12944   # making a dummy file named `D' -- because `-MD' means `put the output
12945   # in D'.
12946   mkdir conftest.dir
12947   # Copy depcomp to subdir because otherwise we won't find it if we're
12948   # using a relative directory.
12949   cp "$am_depcomp" conftest.dir
12950   cd conftest.dir
12951   # We will build objects and dependencies in a subdirectory because
12952   # it helps to detect inapplicable dependency modes.  For instance
12953   # both Tru64's cc and ICC support -MD to output dependencies as a
12954   # side effect of compilation, but ICC will put the dependencies in
12955   # the current directory while Tru64 will put them in the object
12956   # directory.
12957   mkdir sub
12958
12959   am_cv_CC_dependencies_compiler_type=none
12960   if test "$am_compiler_list" = ""; then
12961      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12962   fi
12963   for depmode in $am_compiler_list; do
12964     # Setup a source with many dependencies, because some compilers
12965     # like to wrap large dependency lists on column 80 (with \), and
12966     # we should not choose a depcomp mode which is confused by this.
12967     #
12968     # We need to recreate these files for each test, as the compiler may
12969     # overwrite some of them when testing with obscure command lines.
12970     # This happens at least with the AIX C compiler.
12971     : > sub/conftest.c
12972     for i in 1 2 3 4 5 6; do
12973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12975       # Solaris 8's {/usr,}/bin/sh.
12976       touch sub/conftst$i.h
12977     done
12978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12979
12980     case $depmode in
12981     nosideeffect)
12982       # after this tag, mechanisms are not by side-effect, so they'll
12983       # only be used when explicitly requested
12984       if test "x$enable_dependency_tracking" = xyes; then
12985         continue
12986       else
12987         break
12988       fi
12989       ;;
12990     none) break ;;
12991     esac
12992     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12993     # mode.  It turns out that the SunPro C++ compiler does not properly
12994     # handle `-M -o', and we need to detect this.
12995     if depmode=$depmode \
12996        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12997        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12998        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12999          >/dev/null 2>conftest.err &&
13000        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13001        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13002        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13003       # icc doesn't choke on unknown options, it will just issue warnings
13004       # or remarks (even with -Werror).  So we grep stderr for any message
13005       # that says an option was ignored or not supported.
13006       # When given -MP, icc 7.0 and 7.1 complain thusly:
13007       #   icc: Command line warning: ignoring option '-M'; no argument required
13008       # The diagnosis changed in icc 8.0:
13009       #   icc: Command line remark: option '-MP' not supported
13010       if (grep 'ignoring option' conftest.err ||
13011           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13012         am_cv_CC_dependencies_compiler_type=$depmode
13013         break
13014       fi
13015     fi
13016   done
13017
13018   cd ..
13019   rm -rf conftest.dir
13020 else
13021   am_cv_CC_dependencies_compiler_type=none
13022 fi
13023
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13028
13029
13030
13031 if
13032   test "x$enable_dependency_tracking" != xno \
13033   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13034   am__fastdepCC_TRUE=
13035   am__fastdepCC_FALSE='#'
13036 else
13037   am__fastdepCC_TRUE='#'
13038   am__fastdepCC_FALSE=
13039 fi
13040
13041
13042 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13043         as_fn_error $? "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13044 fi
13045
13046 # test for make depend flag
13047 OL_MKDEP=
13048 OL_MKDEP_FLAGS=
13049 if test -z "${MKDEP}"; then
13050         OL_MKDEP="${CC-cc}"
13051         if test -z "${MKDEP_FLAGS}"; then
13052                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13053 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13054 if ${ol_cv_mkdep+:} false; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057
13058                         ol_cv_mkdep=no
13059                         for flag in "-M" "-xM"; do
13060                                 cat > conftest.c <<EOF
13061  noCode;
13062 EOF
13063                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13064   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13065   (eval $ac_try) 2>&5
13066   ac_status=$?
13067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068   test $ac_status = 0; }; } \
13069                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13070                                 then
13071                                         if test ! -f conftest."${ac_object}" ; then
13072                                                 ol_cv_mkdep=$flag
13073                                                 OL_MKDEP_FLAGS="$flag"
13074                                                 break
13075                                         fi
13076                                 fi
13077                         done
13078                         rm -f conftest*
13079
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13082 $as_echo "$ol_cv_mkdep" >&6; }
13083                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13084         else
13085                 cc_cv_mkdep=yes
13086                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13087         fi
13088 else
13089         cc_cv_mkdep=yes
13090         OL_MKDEP="${MKDEP}"
13091         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13092 fi
13093
13094
13095
13096 if test "${ol_cv_mkdep}" = no ; then
13097         # this will soon become an error
13098         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13099 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13100 fi
13101
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13103 $as_echo_n "checking for afopen in -ls... " >&6; }
13104 if ${ac_cv_lib_s_afopen+:} false; then :
13105   $as_echo_n "(cached) " >&6
13106 else
13107   ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-ls  $LIBS"
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h.  */
13111
13112 /* Override any GCC internal prototype to avoid an error.
13113    Use char because int might match the return type of a GCC
13114    builtin and then its argument prototype would still apply.  */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 char afopen ();
13119 int
13120 main ()
13121 {
13122 return afopen ();
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_c_try_link "$LINENO"; then :
13128   ac_cv_lib_s_afopen=yes
13129 else
13130   ac_cv_lib_s_afopen=no
13131 fi
13132 rm -f core conftest.err conftest.$ac_objext \
13133     conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13137 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13138 if test "x$ac_cv_lib_s_afopen" = xyes; then :
13139
13140         AUTH_LIBS=-ls
13141
13142 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13143
13144
13145 fi
13146
13147
13148 case "$target" in
13149 *-ibm-openedition)
13150         ac_cv_func_getopt=no
13151
13152 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13153
13154         ;;
13155 esac
13156
13157 ol_link_modules=no
13158 WITH_MODULES_ENABLED=no
13159 if test $ol_enable_modules != no ; then
13160         for ac_header in ltdl.h
13161 do :
13162   ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13163 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13164   cat >>confdefs.h <<_ACEOF
13165 #define HAVE_LTDL_H 1
13166 _ACEOF
13167
13168 fi
13169
13170 done
13171
13172
13173         if test $ac_cv_header_ltdl_h = no ; then
13174                 as_fn_error $? "could not locate libtool ltdl.h" "$LINENO" 5
13175         fi
13176
13177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13178 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13179 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
13180   $as_echo_n "(cached) " >&6
13181 else
13182   ac_check_lib_save_LIBS=$LIBS
13183 LIBS="-lltdl  $LIBS"
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h.  */
13186
13187 /* Override any GCC internal prototype to avoid an error.
13188    Use char because int might match the return type of a GCC
13189    builtin and then its argument prototype would still apply.  */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 char lt_dlinit ();
13194 int
13195 main ()
13196 {
13197 return lt_dlinit ();
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"; then :
13203   ac_cv_lib_ltdl_lt_dlinit=yes
13204 else
13205   ac_cv_lib_ltdl_lt_dlinit=no
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext \
13208     conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13212 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13213 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
13214
13215                 MODULES_LIBS=-lltdl
13216
13217 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13218
13219
13220 fi
13221
13222
13223         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13224                 as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
13225         fi
13226         ol_link_modules=yes
13227         WITH_MODULES_ENABLED=yes
13228
13229 else
13230         for i in $Backends; do
13231                 eval "ol_tmp=\$ol_enable_$i"
13232                 if test $ol_tmp = mod ; then
13233                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13234 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13235                         eval "ol_enable_$i=yes"
13236                 fi
13237         done
13238         for i in $Overlays; do
13239                 eval "ol_tmp=\$ol_enable_$i"
13240                 if test $ol_tmp = mod ; then
13241                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13242 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13243                         eval "ol_enable_$i=yes"
13244                 fi
13245         done
13246 fi
13247
13248 # test for EBCDIC
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13250 $as_echo_n "checking for EBCDIC... " >&6; }
13251 if ${ol_cv_cpp_ebcdic+:} false; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254
13255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h.  */
13257
13258 #if !('M' == 0xd4)
13259 #include <__ASCII__/generate_error.h>
13260 #endif
13261
13262 _ACEOF
13263 if ac_fn_c_try_cpp "$LINENO"; then :
13264   ol_cv_cpp_ebcdic=yes
13265 else
13266   ol_cv_cpp_ebcdic=no
13267 fi
13268 rm -f conftest.err conftest.i conftest.$ac_ext
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13271 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13272 if test $ol_cv_cpp_ebcdic = yes ; then
13273
13274 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13275
13276 fi
13277
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13279 $as_echo_n "checking for ANSI C header files... " >&6; }
13280 if ${ol_cv_header_stdc+:} false; then :
13281   $as_echo_n "(cached) " >&6
13282 else
13283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h.  */
13285 #include <stdlib.h>
13286 #include <stdarg.h>
13287 #include <string.h>
13288 #include <float.h>
13289 _ACEOF
13290 if ac_fn_c_try_cpp "$LINENO"; then :
13291   ol_cv_header_stdc=yes
13292 else
13293   ol_cv_header_stdc=no
13294 fi
13295 rm -f conftest.err conftest.i conftest.$ac_ext
13296
13297 if test $ol_cv_header_stdc = yes; then
13298   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h.  */
13301 #include <string.h>
13302
13303 _ACEOF
13304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305   $EGREP "memchr" >/dev/null 2>&1; then :
13306
13307 else
13308   ol_cv_header_stdc=no
13309 fi
13310 rm -f conftest*
13311
13312 fi
13313
13314 if test $ol_cv_header_stdc = yes; then
13315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h.  */
13318 #include <stdlib.h>
13319
13320 _ACEOF
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322   $EGREP "free" >/dev/null 2>&1; then :
13323
13324 else
13325   ol_cv_header_stdc=no
13326 fi
13327 rm -f conftest*
13328
13329 fi
13330
13331 if test $ol_cv_header_stdc = yes; then
13332   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13333 if test "$cross_compiling" = yes; then :
13334   :
13335 else
13336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h.  */
13338 #include <ctype.h>
13339 #ifndef HAVE_EBCDIC
13340 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13341 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13342 #else
13343 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13344                 || ('j' <= (c) && (c) <= 'r') \
13345                 || ('s' <= (c) && (c) <= 'z'))
13346 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13347 #endif
13348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13349 int main () { int i; for (i = 0; i < 256; i++)
13350 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13351 exit (0); }
13352
13353 _ACEOF
13354 if ac_fn_c_try_run "$LINENO"; then :
13355
13356 else
13357   ol_cv_header_stdc=no
13358 fi
13359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13360   conftest.$ac_objext conftest.beam conftest.$ac_ext
13361 fi
13362
13363 fi
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13366 $as_echo "$ol_cv_header_stdc" >&6; }
13367 if test $ol_cv_header_stdc = yes; then
13368   $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13369
13370 fi
13371 ac_cv_header_stdc=disable
13372
13373
13374 if test $ol_cv_header_stdc != yes; then
13375         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13376 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13377 fi
13378
13379 ac_header_dirent=no
13380 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13381   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13383 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13384 if eval \${$as_ac_Header+:} false; then :
13385   $as_echo_n "(cached) " >&6
13386 else
13387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h.  */
13389 #include <sys/types.h>
13390 #include <$ac_hdr>
13391
13392 int
13393 main ()
13394 {
13395 if ((DIR *) 0)
13396 return 0;
13397   ;
13398   return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402   eval "$as_ac_Header=yes"
13403 else
13404   eval "$as_ac_Header=no"
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 eval ac_res=\$$as_ac_Header
13409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13410 $as_echo "$ac_res" >&6; }
13411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13412   cat >>confdefs.h <<_ACEOF
13413 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13414 _ACEOF
13415
13416 ac_header_dirent=$ac_hdr; break
13417 fi
13418
13419 done
13420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13421 if test $ac_header_dirent = dirent.h; then
13422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13423 $as_echo_n "checking for library containing opendir... " >&6; }
13424 if ${ac_cv_search_opendir+:} false; then :
13425   $as_echo_n "(cached) " >&6
13426 else
13427   ac_func_search_save_LIBS=$LIBS
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h.  */
13430
13431 /* Override any GCC internal prototype to avoid an error.
13432    Use char because int might match the return type of a GCC
13433    builtin and then its argument prototype would still apply.  */
13434 #ifdef __cplusplus
13435 extern "C"
13436 #endif
13437 char opendir ();
13438 int
13439 main ()
13440 {
13441 return opendir ();
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 for ac_lib in '' dir; do
13447   if test -z "$ac_lib"; then
13448     ac_res="none required"
13449   else
13450     ac_res=-l$ac_lib
13451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13452   fi
13453   if ac_fn_c_try_link "$LINENO"; then :
13454   ac_cv_search_opendir=$ac_res
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext \
13457     conftest$ac_exeext
13458   if ${ac_cv_search_opendir+:} false; then :
13459   break
13460 fi
13461 done
13462 if ${ac_cv_search_opendir+:} false; then :
13463
13464 else
13465   ac_cv_search_opendir=no
13466 fi
13467 rm conftest.$ac_ext
13468 LIBS=$ac_func_search_save_LIBS
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13471 $as_echo "$ac_cv_search_opendir" >&6; }
13472 ac_res=$ac_cv_search_opendir
13473 if test "$ac_res" != no; then :
13474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13475
13476 fi
13477
13478 else
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13480 $as_echo_n "checking for library containing opendir... " >&6; }
13481 if ${ac_cv_search_opendir+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   ac_func_search_save_LIBS=$LIBS
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h.  */
13487
13488 /* Override any GCC internal prototype to avoid an error.
13489    Use char because int might match the return type of a GCC
13490    builtin and then its argument prototype would still apply.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 char opendir ();
13495 int
13496 main ()
13497 {
13498 return opendir ();
13499   ;
13500   return 0;
13501 }
13502 _ACEOF
13503 for ac_lib in '' x; do
13504   if test -z "$ac_lib"; then
13505     ac_res="none required"
13506   else
13507     ac_res=-l$ac_lib
13508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13509   fi
13510   if ac_fn_c_try_link "$LINENO"; then :
13511   ac_cv_search_opendir=$ac_res
13512 fi
13513 rm -f core conftest.err conftest.$ac_objext \
13514     conftest$ac_exeext
13515   if ${ac_cv_search_opendir+:} false; then :
13516   break
13517 fi
13518 done
13519 if ${ac_cv_search_opendir+:} false; then :
13520
13521 else
13522   ac_cv_search_opendir=no
13523 fi
13524 rm conftest.$ac_ext
13525 LIBS=$ac_func_search_save_LIBS
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13528 $as_echo "$ac_cv_search_opendir" >&6; }
13529 ac_res=$ac_cv_search_opendir
13530 if test "$ac_res" != no; then :
13531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13532
13533 fi
13534
13535 fi
13536
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13538 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13539 if ${ac_cv_header_sys_wait_h+:} false; then :
13540   $as_echo_n "(cached) " >&6
13541 else
13542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544 #include <sys/types.h>
13545 #include <sys/wait.h>
13546 #ifndef WEXITSTATUS
13547 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13548 #endif
13549 #ifndef WIFEXITED
13550 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13551 #endif
13552
13553 int
13554 main ()
13555 {
13556   int s;
13557   wait (&s);
13558   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_compile "$LINENO"; then :
13564   ac_cv_header_sys_wait_h=yes
13565 else
13566   ac_cv_header_sys_wait_h=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13571 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13572 if test $ac_cv_header_sys_wait_h = yes; then
13573
13574 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13575
13576 fi
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13579 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13580 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h.  */
13585 #include <sys/types.h>
13586 #include <termios.h>
13587 #ifdef TIOCGWINSZ
13588   yes
13589 #endif
13590
13591 _ACEOF
13592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13593   $EGREP "yes" >/dev/null 2>&1; then :
13594   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13595 else
13596   ac_cv_sys_tiocgwinsz_in_termios_h=no
13597 fi
13598 rm -f conftest*
13599
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13602 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13603
13604 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13606 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13607 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
13608   $as_echo_n "(cached) " >&6
13609 else
13610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h.  */
13612 #include <sys/types.h>
13613 #include <sys/ioctl.h>
13614 #ifdef TIOCGWINSZ
13615   yes
13616 #endif
13617
13618 _ACEOF
13619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13620   $EGREP "yes" >/dev/null 2>&1; then :
13621   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13622 else
13623   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13624 fi
13625 rm -f conftest*
13626
13627 fi
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13629 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13630
13631   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13632
13633 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13634
13635   fi
13636 fi
13637
13638
13639 for ac_header in \
13640         arpa/inet.h             \
13641         arpa/nameser.h  \
13642         assert.h                \
13643         bits/types.h    \
13644         conio.h                 \
13645         crypt.h                 \
13646         direct.h                \
13647         errno.h                 \
13648         fcntl.h                 \
13649         filio.h                 \
13650         getopt.h                \
13651         grp.h                   \
13652         io.h                    \
13653         libutil.h               \
13654         limits.h                \
13655         locale.h                \
13656         malloc.h                \
13657         memory.h                \
13658         psap.h                  \
13659         pwd.h                   \
13660         process.h               \
13661         sgtty.h                 \
13662         shadow.h                \
13663         stddef.h                \
13664         string.h                \
13665         strings.h               \
13666         sysexits.h              \
13667         sys/file.h              \
13668         sys/filio.h             \
13669         sys/fstyp.h             \
13670         sys/errno.h             \
13671         sys/ioctl.h             \
13672         sys/param.h             \
13673         sys/privgrp.h   \
13674         sys/resource.h  \
13675         sys/select.h    \
13676         sys/socket.h    \
13677         sys/stat.h              \
13678         sys/syslog.h    \
13679         sys/time.h              \
13680         sys/types.h             \
13681         sys/uio.h               \
13682         sys/vmount.h    \
13683         syslog.h                \
13684         termios.h               \
13685         unistd.h                \
13686         utime.h                 \
13687
13688 do :
13689   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13690 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13692   cat >>confdefs.h <<_ACEOF
13693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13694 _ACEOF
13695
13696 fi
13697
13698 done
13699
13700
13701 if test "$ac_cv_mingw32" = yes \
13702         -o "$ac_cv_interix" = yes \
13703         -o "$ol_cv_msvc" = yes
13704 then
13705         for ac_header in winsock.h winsock2.h
13706 do :
13707   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13710   cat >>confdefs.h <<_ACEOF
13711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13712 _ACEOF
13713
13714 fi
13715
13716 done
13717
13718 fi
13719
13720 for ac_header in resolv.h
13721 do :
13722   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13723 #include <netinet/in.h>
13724
13725 "
13726 if test "x$ac_cv_header_resolv_h" = xyes; then :
13727   cat >>confdefs.h <<_ACEOF
13728 #define HAVE_RESOLV_H 1
13729 _ACEOF
13730
13731 fi
13732
13733 done
13734
13735
13736 for ac_header in netinet/tcp.h
13737 do :
13738   ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13739 #include <netinet/in.h>
13740
13741 "
13742 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
13743   cat >>confdefs.h <<_ACEOF
13744 #define HAVE_NETINET_TCP_H 1
13745 _ACEOF
13746
13747 fi
13748
13749 done
13750
13751
13752 for ac_header in sys/ucred.h
13753 do :
13754   ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13755 #ifdef HAVE_SYS_PARAM_H
13756 #include <sys/param.h>
13757 #endif
13758
13759 "
13760 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
13761   cat >>confdefs.h <<_ACEOF
13762 #define HAVE_SYS_UCRED_H 1
13763 _ACEOF
13764
13765 fi
13766
13767 done
13768
13769
13770
13771 for ac_func in sigaction sigset
13772 do :
13773   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13774 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13775 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13776   cat >>confdefs.h <<_ACEOF
13777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13778 _ACEOF
13779
13780 fi
13781 done
13782
13783
13784 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13786 $as_echo_n "checking for sigset in -lV3... " >&6; }
13787 if ${ac_cv_lib_V3_sigset+:} false; then :
13788   $as_echo_n "(cached) " >&6
13789 else
13790   ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lV3  $LIBS"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h.  */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796    Use char because int might match the return type of a GCC
13797    builtin and then its argument prototype would still apply.  */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 char sigset ();
13802 int
13803 main ()
13804 {
13805 return sigset ();
13806   ;
13807   return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_link "$LINENO"; then :
13811   ac_cv_lib_V3_sigset=yes
13812 else
13813   ac_cv_lib_V3_sigset=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext \
13816     conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13820 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13821 if test "x$ac_cv_lib_V3_sigset" = xyes; then :
13822   cat >>confdefs.h <<_ACEOF
13823 #define HAVE_LIBV3 1
13824 _ACEOF
13825
13826   LIBS="-lV3 $LIBS"
13827
13828 fi
13829
13830 fi
13831
13832 if test $ol_cv_msvc = yes ; then
13833    ol_cv_winsock=yes
13834 fi
13835
13836 if test "$ac_cv_header_winsock_h" = yes; then
13837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13838 $as_echo_n "checking for winsock... " >&6; }
13839 if ${ol_cv_winsock+:} false; then :
13840   $as_echo_n "(cached) " >&6
13841 else
13842
13843         save_LIBS="$LIBS"
13844         for curlib in none ws2_32 wsock32; do
13845                 if test $curlib != none ; then
13846                 LIBS="$save_LIBS -l$curlib"
13847                 fi
13848                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h.  */
13850 #include <winsock.h>
13851
13852 int
13853 main ()
13854 {
13855
13856                         socket(0,0,0);
13857                         select(0,NULL,NULL,NULL,NULL);
13858                         closesocket(0);
13859                         gethostname(NULL,0);
13860
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 if ac_fn_c_try_link "$LINENO"; then :
13866   ol_cv_winsock=$curlib
13867 else
13868   ol_cv_winsock=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871     conftest$ac_exeext conftest.$ac_ext
13872
13873                 test "$ol_cv_winsock" != no && break
13874         done
13875         LIBS="$save_LIBS"
13876
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13879 $as_echo "$ol_cv_winsock" >&6; }
13880
13881         if test $ol_cv_winsock != no ; then
13882
13883 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13884
13885         ac_cv_func_socket=yes
13886         ac_cv_func_select=yes
13887         ac_cv_func_closesocket=yes
13888         ac_cv_func_gethostname=yes
13889
13890                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13891                 LIBS="$LIBS -l$ol_cv_winsock"
13892                 fi
13893
13894         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13895
13896 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13897
13898         fi
13899         fi
13900 fi
13901
13902
13903 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13904 if test "x$ac_cv_func_socket" = xyes; then :
13905   :
13906 else
13907
13908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13909 $as_echo_n "checking for main in -lsocket... " >&6; }
13910 if ${ac_cv_lib_socket_main+:} false; then :
13911   $as_echo_n "(cached) " >&6
13912 else
13913   ac_check_lib_save_LIBS=$LIBS
13914 LIBS="-lsocket  $LIBS"
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h.  */
13917
13918
13919 int
13920 main ()
13921 {
13922 return main ();
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 if ac_fn_c_try_link "$LINENO"; then :
13928   ac_cv_lib_socket_main=yes
13929 else
13930   ac_cv_lib_socket_main=no
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext \
13933     conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13937 $as_echo "$ac_cv_lib_socket_main" >&6; }
13938 if test "x$ac_cv_lib_socket_main" = xyes; then :
13939   cat >>confdefs.h <<_ACEOF
13940 #define HAVE_LIBSOCKET 1
13941 _ACEOF
13942
13943   LIBS="-lsocket $LIBS"
13944
13945 fi
13946
13947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
13948 $as_echo_n "checking for socket in -lnet... " >&6; }
13949 if ${ac_cv_lib_net_socket+:} false; then :
13950   $as_echo_n "(cached) " >&6
13951 else
13952   ac_check_lib_save_LIBS=$LIBS
13953 LIBS="-lnet  $LIBS"
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h.  */
13956
13957 /* Override any GCC internal prototype to avoid an error.
13958    Use char because int might match the return type of a GCC
13959    builtin and then its argument prototype would still apply.  */
13960 #ifdef __cplusplus
13961 extern "C"
13962 #endif
13963 char socket ();
13964 int
13965 main ()
13966 {
13967 return socket ();
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 if ac_fn_c_try_link "$LINENO"; then :
13973   ac_cv_lib_net_socket=yes
13974 else
13975   ac_cv_lib_net_socket=no
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext \
13978     conftest$ac_exeext conftest.$ac_ext
13979 LIBS=$ac_check_lib_save_LIBS
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
13982 $as_echo "$ac_cv_lib_net_socket" >&6; }
13983 if test "x$ac_cv_lib_net_socket" = xyes; then :
13984   cat >>confdefs.h <<_ACEOF
13985 #define HAVE_LIBNET 1
13986 _ACEOF
13987
13988   LIBS="-lnet $LIBS"
13989
13990 fi
13991
13992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
13993 $as_echo_n "checking for main in -lnsl_s... " >&6; }
13994 if ${ac_cv_lib_nsl_s_main+:} false; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   ac_check_lib_save_LIBS=$LIBS
13998 LIBS="-lnsl_s  $LIBS"
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h.  */
14001
14002
14003 int
14004 main ()
14005 {
14006 return main ();
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_link "$LINENO"; then :
14012   ac_cv_lib_nsl_s_main=yes
14013 else
14014   ac_cv_lib_nsl_s_main=no
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext \
14017     conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14021 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14022 if test "x$ac_cv_lib_nsl_s_main" = xyes; then :
14023   cat >>confdefs.h <<_ACEOF
14024 #define HAVE_LIBNSL_S 1
14025 _ACEOF
14026
14027   LIBS="-lnsl_s $LIBS"
14028
14029 fi
14030
14031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14032 $as_echo_n "checking for main in -lnsl... " >&6; }
14033 if ${ac_cv_lib_nsl_main+:} false; then :
14034   $as_echo_n "(cached) " >&6
14035 else
14036   ac_check_lib_save_LIBS=$LIBS
14037 LIBS="-lnsl  $LIBS"
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h.  */
14040
14041
14042 int
14043 main ()
14044 {
14045 return main ();
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051   ac_cv_lib_nsl_main=yes
14052 else
14053   ac_cv_lib_nsl_main=no
14054 fi
14055 rm -f core conftest.err conftest.$ac_objext \
14056     conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14058 fi
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14060 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14061 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14062   cat >>confdefs.h <<_ACEOF
14063 #define HAVE_LIBNSL 1
14064 _ACEOF
14065
14066   LIBS="-lnsl $LIBS"
14067
14068 fi
14069
14070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14071 $as_echo_n "checking for socket in -linet... " >&6; }
14072 if ${ac_cv_lib_inet_socket+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   ac_check_lib_save_LIBS=$LIBS
14076 LIBS="-linet  $LIBS"
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h.  */
14079
14080 /* Override any GCC internal prototype to avoid an error.
14081    Use char because int might match the return type of a GCC
14082    builtin and then its argument prototype would still apply.  */
14083 #ifdef __cplusplus
14084 extern "C"
14085 #endif
14086 char socket ();
14087 int
14088 main ()
14089 {
14090 return socket ();
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_link "$LINENO"; then :
14096   ac_cv_lib_inet_socket=yes
14097 else
14098   ac_cv_lib_inet_socket=no
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext \
14101     conftest$ac_exeext conftest.$ac_ext
14102 LIBS=$ac_check_lib_save_LIBS
14103 fi
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14105 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14106 if test "x$ac_cv_lib_inet_socket" = xyes; then :
14107   cat >>confdefs.h <<_ACEOF
14108 #define HAVE_LIBINET 1
14109 _ACEOF
14110
14111   LIBS="-linet $LIBS"
14112
14113 fi
14114
14115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14116 $as_echo_n "checking for main in -lgen... " >&6; }
14117 if ${ac_cv_lib_gen_main+:} false; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   ac_check_lib_save_LIBS=$LIBS
14121 LIBS="-lgen  $LIBS"
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h.  */
14124
14125
14126 int
14127 main ()
14128 {
14129 return main ();
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 if ac_fn_c_try_link "$LINENO"; then :
14135   ac_cv_lib_gen_main=yes
14136 else
14137   ac_cv_lib_gen_main=no
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext \
14140     conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14142 fi
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14144 $as_echo "$ac_cv_lib_gen_main" >&6; }
14145 if test "x$ac_cv_lib_gen_main" = xyes; then :
14146   cat >>confdefs.h <<_ACEOF
14147 #define HAVE_LIBGEN 1
14148 _ACEOF
14149
14150   LIBS="-lgen $LIBS"
14151
14152 fi
14153
14154
14155 fi
14156
14157
14158 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14159 if test "x$ac_cv_func_select" = xyes; then :
14160   :
14161 else
14162   as_fn_error $? "select() required." "$LINENO" 5
14163 fi
14164
14165
14166 if test "${ac_cv_header_winsock_h}" != yes; then
14167                                 for ac_header in sys/select.h sys/socket.h
14168 do :
14169   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14172   cat >>confdefs.h <<_ACEOF
14173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14174 _ACEOF
14175
14176 fi
14177
14178 done
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14181 $as_echo_n "checking types of arguments for select... " >&6; }
14182 if ${ac_cv_func_select_args+:} false; then :
14183   $as_echo_n "(cached) " >&6
14184 else
14185   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14186  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14187   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h.  */
14190 $ac_includes_default
14191 #ifdef HAVE_SYS_SELECT_H
14192 # include <sys/select.h>
14193 #endif
14194 #ifdef HAVE_SYS_SOCKET_H
14195 # include <sys/socket.h>
14196 #endif
14197
14198 int
14199 main ()
14200 {
14201 extern int select ($ac_arg1,
14202                                             $ac_arg234, $ac_arg234, $ac_arg234,
14203                                             $ac_arg5);
14204   ;
14205   return 0;
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_compile "$LINENO"; then :
14209   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14210 fi
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212   done
14213  done
14214 done
14215 # Provide a safe default value.
14216 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14220 $as_echo "$ac_cv_func_select_args" >&6; }
14221 ac_save_IFS=$IFS; IFS=','
14222 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14223 IFS=$ac_save_IFS
14224 shift
14225
14226 cat >>confdefs.h <<_ACEOF
14227 #define SELECT_TYPE_ARG1 $1
14228 _ACEOF
14229
14230
14231 cat >>confdefs.h <<_ACEOF
14232 #define SELECT_TYPE_ARG234 ($2)
14233 _ACEOF
14234
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define SELECT_TYPE_ARG5 ($3)
14238 _ACEOF
14239
14240 rm -f conftest*
14241
14242 fi
14243
14244
14245 for ac_func in poll
14246 do :
14247   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14249 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14250   cat >>confdefs.h <<_ACEOF
14251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14252 _ACEOF
14253
14254 fi
14255 done
14256
14257 if test $ac_cv_func_poll = yes; then
14258 for ac_header in poll.h sys/poll.h
14259 do :
14260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14263   cat >>confdefs.h <<_ACEOF
14264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14265 _ACEOF
14266
14267 fi
14268
14269 done
14270
14271 fi
14272
14273 for ac_header in sys/epoll.h
14274 do :
14275   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14278   cat >>confdefs.h <<_ACEOF
14279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14280 _ACEOF
14281
14282 fi
14283
14284 done
14285
14286 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14288 $as_echo_n "checking for epoll system call... " >&6; }
14289         if test "$cross_compiling" = yes; then :
14290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291 $as_echo "no" >&6; }
14292 else
14293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h.  */
14295 int main(int argc, char **argv)
14296 {
14297         int epfd = epoll_create(256);
14298         exit (epfd == -1 ? 1 : 0);
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_run "$LINENO"; then :
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; }
14304
14305 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14306
14307 else
14308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 fi
14311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14312   conftest.$ac_objext conftest.beam conftest.$ac_ext
14313 fi
14314
14315 fi
14316
14317 for ac_header in sys/devpoll.h
14318 do :
14319   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14322   cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 fi
14327
14328 done
14329
14330 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14331                 -a "${ac_cv_header_poll_h}" = yes ; \
14332 then
14333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14334 $as_echo_n "checking for /dev/poll... " >&6; }
14335         if test "$cross_compiling" = yes; then :
14336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14338 else
14339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h.  */
14341 int main(int argc, char **argv)
14342 {
14343         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14344         exit (devpollfd == -1 ? 1 : 0);
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_run "$LINENO"; then :
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349 $as_echo "yes" >&6; }
14350
14351 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14352
14353 else
14354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356 fi
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14358   conftest.$ac_objext conftest.beam conftest.$ac_ext
14359 fi
14360
14361 fi
14362
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14364 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14365 if ${ol_cv_dcl_sys_errlist+:} false; then :
14366   $as_echo_n "(cached) " >&6
14367 else
14368
14369         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h.  */
14371
14372 #include <stdio.h>
14373 #include <sys/types.h>
14374 #include <errno.h>
14375 #ifdef _WIN32
14376 #include <stdlib.h>
14377 #endif
14378 int
14379 main ()
14380 {
14381 char *c = (char *) *sys_errlist
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 if ac_fn_c_try_compile "$LINENO"; then :
14387   ol_cv_dcl_sys_errlist=yes
14388         ol_cv_have_sys_errlist=yes
14389 else
14390   ol_cv_dcl_sys_errlist=no
14391 fi
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 fi
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14395 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14396 #
14397 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14398 if test $ol_cv_dcl_sys_errlist = no ; then
14399
14400 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14401
14402
14403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14404 $as_echo_n "checking existence of sys_errlist... " >&6; }
14405 if ${ol_cv_have_sys_errlist+:} false; then :
14406   $as_echo_n "(cached) " >&6
14407 else
14408
14409                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h.  */
14411 #include <errno.h>
14412 int
14413 main ()
14414 {
14415 char *c = (char *) *sys_errlist
14416   ;
14417   return 0;
14418 }
14419 _ACEOF
14420 if ac_fn_c_try_link "$LINENO"; then :
14421   ol_cv_have_sys_errlist=yes
14422 else
14423   ol_cv_have_sys_errlist=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext \
14426     conftest$ac_exeext conftest.$ac_ext
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14429 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14430 fi
14431 if test $ol_cv_have_sys_errlist = yes ; then
14432
14433 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14434
14435 fi
14436  for ac_func in strerror strerror_r
14437 do :
14438   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14441   cat >>confdefs.h <<_ACEOF
14442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14443 _ACEOF
14444
14445 fi
14446 done
14447
14448 ol_cv_func_strerror_r=no
14449 if test "${ac_cv_func_strerror_r}" = yes ; then
14450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14451 $as_echo_n "checking non-posix strerror_r... " >&6; }
14452 if ${ol_cv_nonposix_strerror_r+:} false; then :
14453   $as_echo_n "(cached) " >&6
14454 else
14455
14456         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h.  */
14458 #include <string.h>
14459 _ACEOF
14460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14461   $EGREP "strerror_r" >/dev/null 2>&1; then :
14462   ol_decl_strerror_r=yes
14463 else
14464   ol_decl_strerror_r=no
14465 fi
14466 rm -f conftest*
14467
14468         if test $ol_decl_strerror_r = yes ; then
14469                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h.  */
14471 #include <string.h>
14472 int
14473 main ()
14474 {
14475    /* from autoconf 2.59 */
14476                                 char buf[100];
14477                                 char x = *strerror_r (0, buf, sizeof buf);
14478                                 char *p = strerror_r (0, buf, sizeof buf);
14479
14480   ;
14481   return 0;
14482 }
14483 _ACEOF
14484 if ac_fn_c_try_compile "$LINENO"; then :
14485   ol_cv_nonposix_strerror_r=yes
14486 else
14487   ol_cv_nonposix_strerror_r=no
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490         else
14491                 if test "$cross_compiling" = yes; then :
14492   ol_cv_nonposix_strerror=no
14493 else
14494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h.  */
14496
14497                         main() {
14498                                 char buf[100];
14499                                 buf[0] = 0;
14500                                 strerror_r( 1, buf, sizeof buf );
14501                                 exit( buf[0] == 0 );
14502                         }
14503
14504 _ACEOF
14505 if ac_fn_c_try_run "$LINENO"; then :
14506   ol_cv_nonposix_strerror_r=yes
14507 else
14508   ol_cv_nonposix_strerror=no
14509 fi
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14511   conftest.$ac_objext conftest.beam conftest.$ac_ext
14512 fi
14513
14514         fi
14515
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14518 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14519 if test $ol_cv_nonposix_strerror_r = yes ; then
14520
14521 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14522
14523 fi
14524
14525 elif test "${ac_cv_func_strerror}" = no ; then
14526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14527 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14528 if ${ol_cv_dcl_sys_errlist+:} false; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531
14532         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h.  */
14534
14535 #include <stdio.h>
14536 #include <sys/types.h>
14537 #include <errno.h>
14538 #ifdef _WIN32
14539 #include <stdlib.h>
14540 #endif
14541 int
14542 main ()
14543 {
14544 char *c = (char *) *sys_errlist
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550   ol_cv_dcl_sys_errlist=yes
14551         ol_cv_have_sys_errlist=yes
14552 else
14553   ol_cv_dcl_sys_errlist=no
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14558 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14559 #
14560 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14561 if test $ol_cv_dcl_sys_errlist = no ; then
14562
14563 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14564
14565
14566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14567 $as_echo_n "checking existence of sys_errlist... " >&6; }
14568 if ${ol_cv_have_sys_errlist+:} false; then :
14569   $as_echo_n "(cached) " >&6
14570 else
14571
14572                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574 #include <errno.h>
14575 int
14576 main ()
14577 {
14578 char *c = (char *) *sys_errlist
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_link "$LINENO"; then :
14584   ol_cv_have_sys_errlist=yes
14585 else
14586   ol_cv_have_sys_errlist=no
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext \
14589     conftest$ac_exeext conftest.$ac_ext
14590 fi
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14592 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14593 fi
14594 if test $ol_cv_have_sys_errlist = yes ; then
14595
14596 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14597
14598 fi
14599
14600 fi
14601
14602
14603 for ac_header in regex.h
14604 do :
14605   ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14606 #ifdef HAVE_SYS_TYPES_H
14607 #include <sys/types.h>
14608 #endif
14609
14610 "
14611 if test "x$ac_cv_header_regex_h" = xyes; then :
14612   cat >>confdefs.h <<_ACEOF
14613 #define HAVE_REGEX_H 1
14614 _ACEOF
14615
14616 fi
14617
14618 done
14619
14620
14621 if test "$ac_cv_header_regex_h" != yes ; then
14622         as_fn_error $? "POSIX regex.h required." "$LINENO" 5
14623 fi
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14625 $as_echo_n "checking for library containing regfree... " >&6; }
14626 if ${ac_cv_search_regfree+:} false; then :
14627   $as_echo_n "(cached) " >&6
14628 else
14629   ac_func_search_save_LIBS=$LIBS
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h.  */
14632
14633 /* Override any GCC internal prototype to avoid an error.
14634    Use char because int might match the return type of a GCC
14635    builtin and then its argument prototype would still apply.  */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 char regfree ();
14640 int
14641 main ()
14642 {
14643 return regfree ();
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 for ac_lib in '' regex gnuregex; do
14649   if test -z "$ac_lib"; then
14650     ac_res="none required"
14651   else
14652     ac_res=-l$ac_lib
14653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14654   fi
14655   if ac_fn_c_try_link "$LINENO"; then :
14656   ac_cv_search_regfree=$ac_res
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext \
14659     conftest$ac_exeext
14660   if ${ac_cv_search_regfree+:} false; then :
14661   break
14662 fi
14663 done
14664 if ${ac_cv_search_regfree+:} false; then :
14665
14666 else
14667   ac_cv_search_regfree=no
14668 fi
14669 rm conftest.$ac_ext
14670 LIBS=$ac_func_search_save_LIBS
14671 fi
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14673 $as_echo "$ac_cv_search_regfree" >&6; }
14674 ac_res=$ac_cv_search_regfree
14675 if test "$ac_res" != no; then :
14676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14677   :
14678 else
14679   as_fn_error $? "POSIX regex required." "$LINENO" 5
14680 fi
14681
14682
14683
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14685 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14686 if ${ol_cv_c_posix_regex+:} false; then :
14687   $as_echo_n "(cached) " >&6
14688 else
14689
14690         if test "$cross_compiling" = yes; then :
14691   ol_cv_c_posix_regex=cross
14692 else
14693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h.  */
14695
14696 #include <sys/types.h>
14697 #include <regex.h>
14698 static char *pattern, *string;
14699 main()
14700 {
14701         int rc;
14702         regex_t re;
14703
14704         pattern = "^A";
14705
14706         if(regcomp(&re, pattern, 0)) {
14707                 return -1;
14708         }
14709
14710         string = "ALL MATCH";
14711
14712         rc = regexec(&re, string, 0, (void*)0, 0);
14713
14714         regfree(&re);
14715
14716         return rc;
14717 }
14718 _ACEOF
14719 if ac_fn_c_try_run "$LINENO"; then :
14720   ol_cv_c_posix_regex=yes
14721 else
14722   ol_cv_c_posix_regex=no
14723 fi
14724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14725   conftest.$ac_objext conftest.beam conftest.$ac_ext
14726 fi
14727
14728 fi
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14730 $as_echo "$ol_cv_c_posix_regex" >&6; }
14731
14732 if test "$ol_cv_c_posix_regex" = no ; then
14733         as_fn_error $? "broken POSIX regex!" "$LINENO" 5
14734 fi
14735
14736
14737 have_uuid=no
14738 for ac_header in sys/uuid.h
14739 do :
14740   ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14741 if test "x$ac_cv_header_sys_uuid_h" = xyes; then :
14742   cat >>confdefs.h <<_ACEOF
14743 #define HAVE_SYS_UUID_H 1
14744 _ACEOF
14745
14746 fi
14747
14748 done
14749
14750 if test $ac_cv_header_sys_uuid_h = yes ; then
14751         save_LIBS="$LIBS"
14752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14753 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14754 if ${ac_cv_search_uuid_to_str+:} false; then :
14755   $as_echo_n "(cached) " >&6
14756 else
14757   ac_func_search_save_LIBS=$LIBS
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h.  */
14760
14761 /* Override any GCC internal prototype to avoid an error.
14762    Use char because int might match the return type of a GCC
14763    builtin and then its argument prototype would still apply.  */
14764 #ifdef __cplusplus
14765 extern "C"
14766 #endif
14767 char uuid_to_str ();
14768 int
14769 main ()
14770 {
14771 return uuid_to_str ();
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 for ac_lib in '' uuid; do
14777   if test -z "$ac_lib"; then
14778     ac_res="none required"
14779   else
14780     ac_res=-l$ac_lib
14781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14782   fi
14783   if ac_fn_c_try_link "$LINENO"; then :
14784   ac_cv_search_uuid_to_str=$ac_res
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext \
14787     conftest$ac_exeext
14788   if ${ac_cv_search_uuid_to_str+:} false; then :
14789   break
14790 fi
14791 done
14792 if ${ac_cv_search_uuid_to_str+:} false; then :
14793
14794 else
14795   ac_cv_search_uuid_to_str=no
14796 fi
14797 rm conftest.$ac_ext
14798 LIBS=$ac_func_search_save_LIBS
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14801 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14802 ac_res=$ac_cv_search_uuid_to_str
14803 if test "$ac_res" != no; then :
14804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14805   have_uuid=yes
14806 else
14807   :
14808 fi
14809
14810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14811 $as_echo_n "checking for library containing uuid_create... " >&6; }
14812 if ${ac_cv_search_uuid_create+:} false; then :
14813   $as_echo_n "(cached) " >&6
14814 else
14815   ac_func_search_save_LIBS=$LIBS
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h.  */
14818
14819 /* Override any GCC internal prototype to avoid an error.
14820    Use char because int might match the return type of a GCC
14821    builtin and then its argument prototype would still apply.  */
14822 #ifdef __cplusplus
14823 extern "C"
14824 #endif
14825 char uuid_create ();
14826 int
14827 main ()
14828 {
14829 return uuid_create ();
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 for ac_lib in '' uuid; do
14835   if test -z "$ac_lib"; then
14836     ac_res="none required"
14837   else
14838     ac_res=-l$ac_lib
14839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14840   fi
14841   if ac_fn_c_try_link "$LINENO"; then :
14842   ac_cv_search_uuid_create=$ac_res
14843 fi
14844 rm -f core conftest.err conftest.$ac_objext \
14845     conftest$ac_exeext
14846   if ${ac_cv_search_uuid_create+:} false; then :
14847   break
14848 fi
14849 done
14850 if ${ac_cv_search_uuid_create+:} false; then :
14851
14852 else
14853   ac_cv_search_uuid_create=no
14854 fi
14855 rm conftest.$ac_ext
14856 LIBS=$ac_func_search_save_LIBS
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14859 $as_echo "$ac_cv_search_uuid_create" >&6; }
14860 ac_res=$ac_cv_search_uuid_create
14861 if test "$ac_res" != no; then :
14862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14863   :
14864 else
14865   have_uuid=no
14866 fi
14867
14868         LIBS="$save_LIBS"
14869
14870         if test $have_uuid = yes ; then
14871
14872 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14873
14874
14875                 test "$ac_cv_search_uuid_to_str" = "none required" || \
14876                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14877         fi
14878 fi
14879
14880 if test $have_uuid = no ; then
14881         for ac_header in uuid/uuid.h
14882 do :
14883   ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14884 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
14885   cat >>confdefs.h <<_ACEOF
14886 #define HAVE_UUID_UUID_H 1
14887 _ACEOF
14888
14889 fi
14890
14891 done
14892
14893         if test $ac_cv_header_uuid_uuid_h = yes ; then
14894                 save_LIBS="$LIBS"
14895                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14896 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14897 if ${ac_cv_search_uuid_generate+:} false; then :
14898   $as_echo_n "(cached) " >&6
14899 else
14900   ac_func_search_save_LIBS=$LIBS
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h.  */
14903
14904 /* Override any GCC internal prototype to avoid an error.
14905    Use char because int might match the return type of a GCC
14906    builtin and then its argument prototype would still apply.  */
14907 #ifdef __cplusplus
14908 extern "C"
14909 #endif
14910 char uuid_generate ();
14911 int
14912 main ()
14913 {
14914 return uuid_generate ();
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 for ac_lib in '' uuid; do
14920   if test -z "$ac_lib"; then
14921     ac_res="none required"
14922   else
14923     ac_res=-l$ac_lib
14924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14925   fi
14926   if ac_fn_c_try_link "$LINENO"; then :
14927   ac_cv_search_uuid_generate=$ac_res
14928 fi
14929 rm -f core conftest.err conftest.$ac_objext \
14930     conftest$ac_exeext
14931   if ${ac_cv_search_uuid_generate+:} false; then :
14932   break
14933 fi
14934 done
14935 if ${ac_cv_search_uuid_generate+:} false; then :
14936
14937 else
14938   ac_cv_search_uuid_generate=no
14939 fi
14940 rm conftest.$ac_ext
14941 LIBS=$ac_func_search_save_LIBS
14942 fi
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
14944 $as_echo "$ac_cv_search_uuid_generate" >&6; }
14945 ac_res=$ac_cv_search_uuid_generate
14946 if test "$ac_res" != no; then :
14947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14948   have_uuid=yes
14949 else
14950   :
14951 fi
14952
14953                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
14954 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
14955 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14956   $as_echo_n "(cached) " >&6
14957 else
14958   ac_func_search_save_LIBS=$LIBS
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h.  */
14961
14962 /* Override any GCC internal prototype to avoid an error.
14963    Use char because int might match the return type of a GCC
14964    builtin and then its argument prototype would still apply.  */
14965 #ifdef __cplusplus
14966 extern "C"
14967 #endif
14968 char uuid_unparse_lower ();
14969 int
14970 main ()
14971 {
14972 return uuid_unparse_lower ();
14973   ;
14974   return 0;
14975 }
14976 _ACEOF
14977 for ac_lib in '' uuid; do
14978   if test -z "$ac_lib"; then
14979     ac_res="none required"
14980   else
14981     ac_res=-l$ac_lib
14982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14983   fi
14984   if ac_fn_c_try_link "$LINENO"; then :
14985   ac_cv_search_uuid_unparse_lower=$ac_res
14986 fi
14987 rm -f core conftest.err conftest.$ac_objext \
14988     conftest$ac_exeext
14989   if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14990   break
14991 fi
14992 done
14993 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14994
14995 else
14996   ac_cv_search_uuid_unparse_lower=no
14997 fi
14998 rm conftest.$ac_ext
14999 LIBS=$ac_func_search_save_LIBS
15000 fi
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15002 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15003 ac_res=$ac_cv_search_uuid_unparse_lower
15004 if test "$ac_res" != no; then :
15005   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15006   :
15007 else
15008   have_uuid=no
15009 fi
15010
15011                 LIBS="$save_LIBS"
15012
15013                 if test $have_uuid = yes ; then
15014
15015 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15016
15017
15018                         test "$ac_cv_search_uuid_generate" = "none required" || \
15019                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15020                 fi
15021         fi
15022 fi
15023
15024 if test $have_uuid = no ; then
15025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15026 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15027         save_LIBS="$LIBS"
15028         LIBS="$LIBS -lrpcrt4"
15029         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h.  */
15031
15032                 int __stdcall UuidCreate(void *);
15033                 int __stdcall UuidToStringA(void *,void **);
15034
15035 int
15036 main ()
15037 {
15038
15039                 UuidCreate(0);
15040                 UuidToStringA(0,0);
15041
15042   ;
15043   return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047   need_rpcrt=yes
15048 else
15049   need_rpcrt=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext \
15052     conftest$ac_exeext conftest.$ac_ext
15053         if test $need_rpcrt = yes; then
15054                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15055         fi
15056         LIBS="$save_LIBS"
15057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15058 $as_echo "$need_rpcrt" >&6; }
15059 fi
15060
15061 ol_cv_lib_resolver=no
15062 if test $ol_cv_lib_resolver = no ; then
15063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15064 $as_echo_n "checking for resolver link (default)... " >&6; }
15065 if ${ol_cv_resolver_none+:} false; then :
15066   $as_echo_n "(cached) " >&6
15067 else
15068
15069         ol_RESOLVER_LIB=
15070         ol_LIBS=$LIBS
15071         LIBS="$ol_RESOLVER_LIB $LIBS"
15072
15073         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h.  */
15075
15076 #ifdef HAVE_SYS_TYPES_H
15077 #       include <sys/types.h>
15078 #endif
15079 #include <netinet/in.h>
15080 #ifdef HAVE_ARPA_NAMESER_H
15081 #       include <arpa/nameser.h>
15082 #endif
15083 #ifdef HAVE_RESOLV_H
15084 #       include <resolv.h>
15085 #endif
15086
15087 int
15088 main ()
15089 {
15090 {
15091         int len, status;
15092         char *request = NULL;
15093         unsigned char reply[64*1024];
15094         unsigned char host[64*1024];
15095         unsigned char *p;
15096
15097 #ifdef NS_HFIXEDSZ
15098         /* Bind 8/9 interface */
15099         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15100 #else
15101         /* Bind 4 interface */
15102 # ifndef T_SRV
15103 #  define T_SRV 33
15104 # endif
15105         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15106 #endif
15107         p = reply;
15108 #ifdef NS_HFIXEDSZ
15109         /* Bind 8/9 interface */
15110         p += NS_HFIXEDSZ;
15111 #elif defined(HFIXEDSZ)
15112         /* Bind 4 interface w/ HFIXEDSZ */
15113         p += HFIXEDSZ;
15114 #else
15115         /* Bind 4 interface w/o HFIXEDSZ */
15116         p += sizeof(HEADER);
15117 #endif
15118         status = dn_expand( reply, reply+len, p, host, sizeof(host));
15119 }
15120   ;
15121   return 0;
15122 }
15123 _ACEOF
15124 if ac_fn_c_try_link "$LINENO"; then :
15125   ol_cv_resolver_none=yes
15126 else
15127   ol_cv_resolver_none=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext \
15130     conftest$ac_exeext conftest.$ac_ext
15131
15132         LIBS="$ol_LIBS"
15133
15134 fi
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15136 $as_echo "$ol_cv_resolver_none" >&6; }
15137
15138         if test $ol_cv_resolver_none = yes ; then
15139                 ol_cv_lib_resolver=yes
15140         fi
15141 fi
15142
15143 if test $ol_cv_lib_resolver = no ; then
15144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15145 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15146 if ${ol_cv_resolver_resolv+:} false; then :
15147   $as_echo_n "(cached) " >&6
15148 else
15149
15150         ol_RESOLVER_LIB=-lresolv
15151         ol_LIBS=$LIBS
15152         LIBS="$ol_RESOLVER_LIB $LIBS"
15153
15154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h.  */
15156
15157 #ifdef HAVE_SYS_TYPES_H
15158 #       include <sys/types.h>
15159 #endif
15160 #include <netinet/in.h>
15161 #ifdef HAVE_ARPA_NAMESER_H
15162 #       include <arpa/nameser.h>
15163 #endif
15164 #ifdef HAVE_RESOLV_H
15165 #       include <resolv.h>
15166 #endif
15167
15168 int
15169 main ()
15170 {
15171 {
15172         int len, status;
15173         char *request = NULL;
15174         unsigned char reply[64*1024];
15175         unsigned char host[64*1024];
15176         unsigned char *p;
15177
15178 #ifdef NS_HFIXEDSZ
15179         /* Bind 8/9 interface */
15180         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15181 #else
15182         /* Bind 4 interface */
15183 # ifndef T_SRV
15184 #  define T_SRV 33
15185 # endif
15186         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15187 #endif
15188         p = reply;
15189 #ifdef NS_HFIXEDSZ
15190         /* Bind 8/9 interface */
15191         p += NS_HFIXEDSZ;
15192 #elif defined(HFIXEDSZ)
15193         /* Bind 4 interface w/ HFIXEDSZ */
15194         p += HFIXEDSZ;
15195 #else
15196         /* Bind 4 interface w/o HFIXEDSZ */
15197         p += sizeof(HEADER);
15198 #endif
15199         status = dn_expand( reply, reply+len, p, host, sizeof(host));
15200 }
15201   ;
15202   return 0;
15203 }
15204 _ACEOF
15205 if ac_fn_c_try_link "$LINENO"; then :
15206   ol_cv_resolver_resolv=yes
15207 else
15208   ol_cv_resolver_resolv=no
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext \
15211     conftest$ac_exeext conftest.$ac_ext
15212
15213         LIBS="$ol_LIBS"
15214
15215 fi
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15217 $as_echo "$ol_cv_resolver_resolv" >&6; }
15218
15219         if test $ol_cv_resolver_resolv = yes ; then
15220                 ol_cv_lib_resolver=-lresolv
15221         fi
15222 fi
15223
15224 if test $ol_cv_lib_resolver = no ; then
15225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15226 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15227 if ${ol_cv_resolver_bind+:} false; then :
15228   $as_echo_n "(cached) " >&6
15229 else
15230
15231         ol_RESOLVER_LIB=-lbind
15232         ol_LIBS=$LIBS
15233         LIBS="$ol_RESOLVER_LIB $LIBS"
15234
15235         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h.  */
15237
15238 #ifdef HAVE_SYS_TYPES_H
15239 #       include <sys/types.h>
15240 #endif
15241 #include <netinet/in.h>
15242 #ifdef HAVE_ARPA_NAMESER_H
15243 #       include <arpa/nameser.h>
15244 #endif
15245 #ifdef HAVE_RESOLV_H
15246 #       include <resolv.h>
15247 #endif
15248
15249 int
15250 main ()
15251 {
15252 {
15253         int len, status;
15254         char *request = NULL;
15255         unsigned char reply[64*1024];
15256         unsigned char host[64*1024];
15257         unsigned char *p;
15258
15259 #ifdef NS_HFIXEDSZ
15260         /* Bind 8/9 interface */
15261         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15262 #else
15263         /* Bind 4 interface */
15264 # ifndef T_SRV
15265 #  define T_SRV 33
15266 # endif
15267         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15268 #endif
15269         p = reply;
15270 #ifdef NS_HFIXEDSZ
15271         /* Bind 8/9 interface */
15272         p += NS_HFIXEDSZ;
15273 #elif defined(HFIXEDSZ)
15274         /* Bind 4 interface w/ HFIXEDSZ */
15275         p += HFIXEDSZ;
15276 #else
15277         /* Bind 4 interface w/o HFIXEDSZ */
15278         p += sizeof(HEADER);
15279 #endif
15280         status = dn_expand( reply, reply+len, p, host, sizeof(host));
15281 }
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 if ac_fn_c_try_link "$LINENO"; then :
15287   ol_cv_resolver_bind=yes
15288 else
15289   ol_cv_resolver_bind=no
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292     conftest$ac_exeext conftest.$ac_ext
15293
15294         LIBS="$ol_LIBS"
15295
15296 fi
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15298 $as_echo "$ol_cv_resolver_bind" >&6; }
15299
15300         if test $ol_cv_resolver_bind = yes ; then
15301                 ol_cv_lib_resolver=-lbind
15302         fi
15303 fi
15304
15305
15306
15307 ol_link_dnssrv=no
15308 if test "$ol_cv_lib_resolver" != no ; then
15309
15310 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15311
15312
15313         if test "$ol_enable_dnssrv" != no ; then
15314                 ol_link_dnssrv=yes
15315         fi
15316
15317         if test "$ol_cv_lib_resolver" != yes ; then
15318                 LIBS="$ol_cv_lib_resolver $LIBS"
15319         fi
15320 fi
15321
15322 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15323         if test "$ol_link_dnssrv" = no ; then
15324                 as_fn_error $? "DNSSRV requires res_query()" "$LINENO" 5
15325         fi
15326 else
15327         ol_enable_dnssrv=no
15328 fi
15329
15330 for ac_func in hstrerror
15331 do :
15332   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15335   cat >>confdefs.h <<_ACEOF
15336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15337 _ACEOF
15338
15339 fi
15340 done
15341
15342
15343 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15344 do :
15345   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15348   cat >>confdefs.h <<_ACEOF
15349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15350 _ACEOF
15351
15352 fi
15353 done
15354
15355
15356 ol_link_ipv6=no
15357 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15358         if test $ol_enable_ipv6 = yes ; then
15359                 as_fn_error $? "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15360         fi
15361 elif test $ol_enable_ipv6 != no ; then
15362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15363 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15364 if ${ol_cv_inet6_addrstrlen+:} false; then :
15365   $as_echo_n "(cached) " >&6
15366 else
15367
15368                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h.  */
15370
15371 #                       include <netinet/in.h>
15372 #                       ifdef INET6_ADDRSTRLEN
15373                                 __has_inet6_addrstrlen__;
15374 #                       endif
15375
15376 _ACEOF
15377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15378   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15379   ol_cv_inet6_addrstrlen=yes
15380 else
15381   ol_cv_inet6_addrstrlen=no
15382 fi
15383 rm -f conftest*
15384
15385 fi
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15387 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15388
15389
15390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15391 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15392 if ${ol_cv_struct_sockaddr_storage+:} false; then :
15393   $as_echo_n "(cached) " >&6
15394 else
15395
15396                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h.  */
15398
15399 #include <sys/types.h>
15400 #include <sys/socket.h>
15401
15402 int
15403 main ()
15404 {
15405
15406                         struct sockaddr_storage ss;
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413   ol_cv_struct_sockaddr_storage=yes
15414 else
15415   ol_cv_struct_sockaddr_storage=no
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 fi
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15420 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15421
15422         if test $ol_cv_inet6_addrstrlen = yes &&
15423            test $ol_cv_struct_sockaddr_storage = yes ; then
15424                 ol_link_ipv6=yes
15425         elif test $ol_enable_ipv6 = yes &&
15426              test $ol_cv_inet6_addrstrlen = no ; then
15427                 as_fn_error $? "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15428         elif test $ol_enable_ipv6 = yes &&
15429              test $ol_cv_struct_sockaddr_storage = no ; then
15430                 as_fn_error $? "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15431         fi
15432 fi
15433
15434 if test $ol_enable_local != no ; then
15435         for ac_header in sys/un.h
15436 do :
15437   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15438 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15440   cat >>confdefs.h <<_ACEOF
15441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 fi
15445
15446 done
15447
15448
15449         if test $ol_enable_local = auto ; then
15450                 ol_enable_local=$ac_cv_header_sys_un_h
15451         elif test $ac_cv_header_sys_un_h = no ; then
15452                 as_fn_error $? "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15453         fi
15454 fi
15455
15456
15457 if test $ol_with_tls = yes ; then
15458         ol_with_tls=auto
15459 fi
15460
15461 ol_link_tls=no
15462 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15463         for ac_header in openssl/ssl.h
15464 do :
15465   ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15466 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
15467   cat >>confdefs.h <<_ACEOF
15468 #define HAVE_OPENSSL_SSL_H 1
15469 _ACEOF
15470
15471 fi
15472
15473 done
15474
15475
15476         if test $ac_cv_header_openssl_ssl_h = yes ; then
15477                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
15478 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
15479 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lssl -lcrypto $LIBS"
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h.  */
15486
15487 /* Override any GCC internal prototype to avoid an error.
15488    Use char because int might match the return type of a GCC
15489    builtin and then its argument prototype would still apply.  */
15490 #ifdef __cplusplus
15491 extern "C"
15492 #endif
15493 char SSL_library_init ();
15494 int
15495 main ()
15496 {
15497 return SSL_library_init ();
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 if ac_fn_c_try_link "$LINENO"; then :
15503   ac_cv_lib_ssl_SSL_library_init=yes
15504 else
15505   ac_cv_lib_ssl_SSL_library_init=no
15506 fi
15507 rm -f core conftest.err conftest.$ac_objext \
15508     conftest$ac_exeext conftest.$ac_ext
15509 LIBS=$ac_check_lib_save_LIBS
15510 fi
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15512 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
15513 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
15514   have_openssl=yes
15515                         need_rsaref=no
15516 else
15517   have_openssl=no
15518 fi
15519
15520
15521                 if test $have_openssl = no ; then
15522                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15523 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15524 if ${ac_cv_lib_ssl_ssl3_accept+:} false; then :
15525   $as_echo_n "(cached) " >&6
15526 else
15527   ac_check_lib_save_LIBS=$LIBS
15528 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h.  */
15531
15532 /* Override any GCC internal prototype to avoid an error.
15533    Use char because int might match the return type of a GCC
15534    builtin and then its argument prototype would still apply.  */
15535 #ifdef __cplusplus
15536 extern "C"
15537 #endif
15538 char ssl3_accept ();
15539 int
15540 main ()
15541 {
15542 return ssl3_accept ();
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 if ac_fn_c_try_link "$LINENO"; then :
15548   ac_cv_lib_ssl_ssl3_accept=yes
15549 else
15550   ac_cv_lib_ssl_ssl3_accept=no
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext \
15553     conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15557 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15558 if test "x$ac_cv_lib_ssl_ssl3_accept" = xyes; then :
15559   have_openssl=yes
15560                                 need_rsaref=yes
15561 else
15562   have_openssl=no
15563 fi
15564
15565                 fi
15566
15567                 if test $have_openssl = yes ; then
15568                         ol_with_tls=openssl
15569                         ol_link_tls=yes
15570
15571
15572 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15573
15574
15575                         if test $need_rsaref = yes; then
15576
15577 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15578
15579
15580                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15581                         else
15582                                 TLS_LIBS="-lssl -lcrypto"
15583                         fi
15584
15585                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15586 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15587 if ${ol_cv_ssl_crl_compat+:} false; then :
15588   $as_echo_n "(cached) " >&6
15589 else
15590
15591                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h.  */
15593
15594 #ifdef HAVE_OPENSSL_SSL_H
15595 #include <openssl/ssl.h>
15596 #endif
15597
15598 /* Require 0.9.7d+ */
15599 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15600         char *__ssl_compat = "0.9.7d";
15601 #endif
15602
15603 _ACEOF
15604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15605   $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15606   ol_cv_ssl_crl_compat=yes
15607 else
15608   ol_cv_ssl_crl_compat=no
15609 fi
15610 rm -f conftest*
15611
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15614 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15615
15616                         if test $ol_cv_ssl_crl_compat = yes ; then
15617
15618 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15619
15620                         fi
15621                 fi
15622         fi
15623 fi
15624
15625 if test $ol_link_tls = no ; then
15626         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15627                 for ac_header in gnutls/gnutls.h
15628 do :
15629   ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15630 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
15631   cat >>confdefs.h <<_ACEOF
15632 #define HAVE_GNUTLS_GNUTLS_H 1
15633 _ACEOF
15634
15635 fi
15636
15637 done
15638
15639
15640                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15641                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15642 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15643 if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
15644   $as_echo_n "(cached) " >&6
15645 else
15646   ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lgnutls  $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h.  */
15650
15651 /* Override any GCC internal prototype to avoid an error.
15652    Use char because int might match the return type of a GCC
15653    builtin and then its argument prototype would still apply.  */
15654 #ifdef __cplusplus
15655 extern "C"
15656 #endif
15657 char gnutls_init ();
15658 int
15659 main ()
15660 {
15661 return gnutls_init ();
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"; then :
15667   ac_cv_lib_gnutls_gnutls_init=yes
15668 else
15669   ac_cv_lib_gnutls_gnutls_init=no
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext \
15672     conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15676 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15677 if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
15678   have_gnutls=yes
15679 else
15680   have_gnutls=no
15681 fi
15682
15683
15684                         if test $have_gnutls = yes ; then
15685                                 ol_with_tls=gnutls
15686                                 ol_link_tls=yes
15687
15688                                 TLS_LIBS="-lgnutls"
15689
15690
15691 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15692
15693                         fi
15694                 fi
15695         fi
15696 fi
15697
15698 if test $ol_link_tls = no ; then
15699         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15700                 have_moznss=no
15701                 for ac_header in nssutil.h
15702 do :
15703   ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15704 if test "x$ac_cv_header_nssutil_h" = xyes; then :
15705   cat >>confdefs.h <<_ACEOF
15706 #define HAVE_NSSUTIL_H 1
15707 _ACEOF
15708
15709 fi
15710
15711 done
15712
15713                 if test "$ac_cv_header_nssutil_h" = yes ; then
15714                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15715 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15716 if ${ac_cv_lib_nss3_NSS_Initialize+:} false; then :
15717   $as_echo_n "(cached) " >&6
15718 else
15719   ac_check_lib_save_LIBS=$LIBS
15720 LIBS="-lnss3  $LIBS"
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h.  */
15723
15724 /* Override any GCC internal prototype to avoid an error.
15725    Use char because int might match the return type of a GCC
15726    builtin and then its argument prototype would still apply.  */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char NSS_Initialize ();
15731 int
15732 main ()
15733 {
15734 return NSS_Initialize ();
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 if ac_fn_c_try_link "$LINENO"; then :
15740   ac_cv_lib_nss3_NSS_Initialize=yes
15741 else
15742   ac_cv_lib_nss3_NSS_Initialize=no
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext \
15745     conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15747 fi
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15749 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15750 if test "x$ac_cv_lib_nss3_NSS_Initialize" = xyes; then :
15751    have_moznss=yes
15752 else
15753    have_moznss=no
15754 fi
15755
15756                 fi
15757
15758                 if test "$have_moznss" = yes ; then
15759                         ol_with_tls=moznss
15760                         ol_link_tls=yes
15761
15762 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15763
15764                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15765                 else
15766                         if test $ol_with_tls = moznss ; then
15767                         as_fn_error $? "MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" "$LINENO" 5
15768                         fi
15769                 fi
15770         fi
15771 fi
15772
15773 WITH_TLS=no
15774 if test $ol_link_tls = yes ; then
15775
15776 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15777
15778         WITH_TLS=yes
15779 elif test $ol_with_tls = auto ; then
15780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15781 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15782         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15783 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15784 elif test $ol_with_tls != no ; then
15785         as_fn_error $? "Could not locate TLS/SSL package" "$LINENO" 5
15786 else
15787         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15788 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15789 fi
15790
15791 if test $ol_enable_lmpasswd != no; then
15792         if test $ol_link_tls != yes ; then
15793                 as_fn_error $? "LAN Manager passwords require OpenSSL" "$LINENO" 5
15794         fi
15795
15796
15797 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15798
15799 fi
15800
15801 ol_link_threads=no
15802
15803 case $ol_with_threads in auto | yes | nt)
15804
15805
15806         ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15807 if test "x$ac_cv_func__beginthread" = xyes; then :
15808
15809 fi
15810
15811
15812         if test $ac_cv_func__beginthread = yes ; then
15813
15814 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15815
15816                 ol_cv_nt_threads=yes
15817         fi
15818
15819
15820         if test "$ol_cv_nt_threads" = yes ; then
15821                 ol_link_threads=nt
15822                 ol_with_threads=found
15823                 ol_with_yielding_select=yes
15824
15825
15826 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15827
15828
15829 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15830
15831         fi
15832
15833         if test $ol_with_threads = nt ; then
15834                 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
15835         fi
15836         ;;
15837 esac
15838
15839 case $ol_with_threads in auto | yes | posix)
15840
15841         for ac_header in pthread.h
15842 do :
15843   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15844 if test "x$ac_cv_header_pthread_h" = xyes; then :
15845   cat >>confdefs.h <<_ACEOF
15846 #define HAVE_PTHREAD_H 1
15847 _ACEOF
15848
15849 fi
15850
15851 done
15852
15853
15854         if test $ac_cv_header_pthread_h = yes ; then
15855                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15856 $as_echo_n "checking POSIX thread version... " >&6; }
15857 if ${ol_cv_pthread_version+:} false; then :
15858   $as_echo_n "(cached) " >&6
15859 else
15860
15861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h.  */
15863
15864 #               include <pthread.h>
15865
15866 int
15867 main ()
15868 {
15869
15870                 int i = PTHREAD_CREATE_JOINABLE;
15871
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 if ac_fn_c_try_compile "$LINENO"; then :
15877
15878         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880 #include <pthread.h>
15881
15882 _ACEOF
15883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15884   $EGREP "pthread_detach" >/dev/null 2>&1; then :
15885   ol_cv_pthread_version=10
15886 else
15887   ol_cv_pthread_version=8
15888 fi
15889 rm -f conftest*
15890
15891 else
15892
15893         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h.  */
15895
15896 #               include <pthread.h>
15897 #               ifdef PTHREAD_CREATE_UNDETACHED
15898                 draft7
15899 #               endif
15900
15901 _ACEOF
15902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15903   $EGREP "draft7" >/dev/null 2>&1; then :
15904   ol_cv_pthread_version=7
15905 else
15906
15907         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h.  */
15909 #include <pthread.h>
15910
15911 _ACEOF
15912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15913   $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15914   ol_cv_pthread_version=6
15915 else
15916
15917         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919
15920 #               include <pthread.h>
15921 #ifdef          PTHREAD_MUTEX_INITIALIZER
15922                 draft5
15923 #endif
15924
15925 _ACEOF
15926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15927   $EGREP "draft5" >/dev/null 2>&1; then :
15928   ol_cv_pthread_version=5
15929 else
15930   ol_cv_pthread_version=4
15931 fi
15932 rm -f conftest*
15933
15934 fi
15935 rm -f conftest*
15936
15937 fi
15938 rm -f conftest*
15939
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942
15943 fi
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15945 $as_echo "$ol_cv_pthread_version" >&6; }
15946
15947
15948                 if test $ol_cv_pthread_version != 0 ; then
15949
15950 cat >>confdefs.h <<_ACEOF
15951 #define HAVE_PTHREADS $ol_cv_pthread_version
15952 _ACEOF
15953
15954                 else
15955                         as_fn_error $? "unknown pthread version" "$LINENO" 5
15956                 fi
15957
15958                 # consider threads found
15959                 ol_with_threads=found
15960
15961
15962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15963 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15964 if ${ol_cv_header_linux_threads+:} false; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h.  */
15969 #include <pthread.h>
15970 _ACEOF
15971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15972   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15973   ol_cv_header_linux_threads=yes
15974 else
15975   ol_cv_header_linux_threads=no
15976 fi
15977 rm -f conftest*
15978
15979
15980 fi
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
15982 $as_echo "$ol_cv_header_linux_threads" >&6; }
15983         if test $ol_cv_header_linux_threads = yes; then
15984
15985 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
15986
15987         fi
15988
15989
15990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
15991 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
15992 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
15993   $as_echo_n "(cached) " >&6
15994 else
15995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h.  */
15997 #include <pthread.h>
15998 #ifdef _POSIX_THREAD_IS_GNU_PTH
15999         __gnu_pth__;
16000 #endif
16001
16002 _ACEOF
16003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16004   $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16005   ol_cv_header_gnu_pth_pthread_h=yes
16006 else
16007   ol_cv_header_gnu_pth_pthread_h=no
16008 fi
16009 rm -f conftest*
16010
16011
16012 fi
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16014 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16015
16016
16017                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16018                         for ac_header in sched.h
16019 do :
16020   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16021 if test "x$ac_cv_header_sched_h" = xyes; then :
16022   cat >>confdefs.h <<_ACEOF
16023 #define HAVE_SCHED_H 1
16024 _ACEOF
16025
16026 fi
16027
16028 done
16029
16030                 fi
16031
16032
16033                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16034 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16035 if ${ol_cv_pthread_create+:} false; then :
16036   $as_echo_n "(cached) " >&6
16037 else
16038
16039                         if test "$cross_compiling" = yes; then :
16040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h.  */
16042
16043 /* pthread test headers */
16044 #include <pthread.h>
16045 #if HAVE_PTHREADS < 7
16046 #include <errno.h>
16047 #endif
16048 #ifndef NULL
16049 #define NULL (void*)0
16050 #endif
16051
16052 static void *task(p)
16053         void *p;
16054 {
16055         return (void *) (p == NULL);
16056 }
16057
16058 int
16059 main ()
16060 {
16061
16062         /* pthread test function */
16063 #ifndef PTHREAD_CREATE_DETACHED
16064 #define PTHREAD_CREATE_DETACHED 1
16065 #endif
16066         pthread_t t;
16067         int status;
16068         int detach = PTHREAD_CREATE_DETACHED;
16069
16070 #if HAVE_PTHREADS > 4
16071         /* Final pthreads */
16072         pthread_attr_t attr;
16073
16074         status = pthread_attr_init(&attr);
16075         if( status ) return status;
16076
16077 #if HAVE_PTHREADS < 7
16078         status = pthread_attr_setdetachstate(&attr, &detach);
16079         if( status < 0 ) status = errno;
16080 #else
16081         status = pthread_attr_setdetachstate(&attr, detach);
16082 #endif
16083         if( status ) return status;
16084         status = pthread_create( &t, &attr, task, NULL );
16085 #if HAVE_PTHREADS < 7
16086         if( status < 0 ) status = errno;
16087 #endif
16088         if( status ) return status;
16089 #else
16090         /* Draft 4 pthreads */
16091         status = pthread_create( &t, pthread_attr_default, task, NULL );
16092         if( status ) return errno;
16093
16094         /* give thread a chance to complete */
16095         /* it should remain joinable and hence detachable */
16096         sleep( 1 );
16097
16098         status = pthread_detach( &t );
16099         if( status ) return errno;
16100 #endif
16101
16102 #ifdef HAVE_LINUX_THREADS
16103         pthread_kill_other_threads_np();
16104 #endif
16105
16106         return 0;
16107
16108   ;
16109   return 0;
16110 }
16111 _ACEOF
16112 if ac_fn_c_try_link "$LINENO"; then :
16113   ol_cv_pthread_create=yes
16114 else
16115   ol_cv_pthread_create=no
16116 fi
16117 rm -f core conftest.err conftest.$ac_objext \
16118     conftest$ac_exeext conftest.$ac_ext
16119 else
16120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h.  */
16122
16123 /* pthread test headers */
16124 #include <pthread.h>
16125 #if HAVE_PTHREADS < 7
16126 #include <errno.h>
16127 #endif
16128 #ifndef NULL
16129 #define NULL (void*)0
16130 #endif
16131
16132 static void *task(p)
16133         void *p;
16134 {
16135         return (void *) (p == NULL);
16136 }
16137
16138
16139 int main(argc, argv)
16140         int argc;
16141         char **argv;
16142 {
16143
16144         /* pthread test function */
16145 #ifndef PTHREAD_CREATE_DETACHED
16146 #define PTHREAD_CREATE_DETACHED 1
16147 #endif
16148         pthread_t t;
16149         int status;
16150         int detach = PTHREAD_CREATE_DETACHED;
16151
16152 #if HAVE_PTHREADS > 4
16153         /* Final pthreads */
16154         pthread_attr_t attr;
16155
16156         status = pthread_attr_init(&attr);
16157         if( status ) return status;
16158
16159 #if HAVE_PTHREADS < 7
16160         status = pthread_attr_setdetachstate(&attr, &detach);
16161         if( status < 0 ) status = errno;
16162 #else
16163         status = pthread_attr_setdetachstate(&attr, detach);
16164 #endif
16165         if( status ) return status;
16166         status = pthread_create( &t, &attr, task, NULL );
16167 #if HAVE_PTHREADS < 7
16168         if( status < 0 ) status = errno;
16169 #endif
16170         if( status ) return status;
16171 #else
16172         /* Draft 4 pthreads */
16173         status = pthread_create( &t, pthread_attr_default, task, NULL );
16174         if( status ) return errno;
16175
16176         /* give thread a chance to complete */
16177         /* it should remain joinable and hence detachable */
16178         sleep( 1 );
16179
16180         status = pthread_detach( &t );
16181         if( status ) return errno;
16182 #endif
16183
16184 #ifdef HAVE_LINUX_THREADS
16185         pthread_kill_other_threads_np();
16186 #endif
16187
16188         return 0;
16189
16190 }
16191
16192 _ACEOF
16193 if ac_fn_c_try_run "$LINENO"; then :
16194   ol_cv_pthread_create=yes
16195 else
16196   ol_cv_pthread_create=no
16197 fi
16198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16199   conftest.$ac_objext conftest.beam conftest.$ac_ext
16200 fi
16201
16202 fi
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16204 $as_echo "$ol_cv_pthread_create" >&6; }
16205
16206                 if test $ol_cv_pthread_create != no ; then
16207                         ol_link_threads=posix
16208                         ol_link_pthreads=""
16209                 fi
16210
16211                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16212 if test "$ol_link_threads" = no ; then
16213         # try -kthread
16214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16215 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16216 if ${ol_cv_pthread_kthread+:} false; then :
16217   $as_echo_n "(cached) " >&6
16218 else
16219
16220                 # save the flags
16221                 ol_LIBS="$LIBS"
16222                 LIBS="-kthread $LIBS"
16223
16224                 if test "$cross_compiling" = yes; then :
16225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h.  */
16227
16228 /* pthread test headers */
16229 #include <pthread.h>
16230 #if HAVE_PTHREADS < 7
16231 #include <errno.h>
16232 #endif
16233 #ifndef NULL
16234 #define NULL (void*)0
16235 #endif
16236
16237 static void *task(p)
16238         void *p;
16239 {
16240         return (void *) (p == NULL);
16241 }
16242
16243 int
16244 main ()
16245 {
16246
16247         /* pthread test function */
16248 #ifndef PTHREAD_CREATE_DETACHED
16249 #define PTHREAD_CREATE_DETACHED 1
16250 #endif
16251         pthread_t t;
16252         int status;
16253         int detach = PTHREAD_CREATE_DETACHED;
16254
16255 #if HAVE_PTHREADS > 4
16256         /* Final pthreads */
16257         pthread_attr_t attr;
16258
16259         status = pthread_attr_init(&attr);
16260         if( status ) return status;
16261
16262 #if HAVE_PTHREADS < 7
16263         status = pthread_attr_setdetachstate(&attr, &detach);
16264         if( status < 0 ) status = errno;
16265 #else
16266         status = pthread_attr_setdetachstate(&attr, detach);
16267 #endif
16268         if( status ) return status;
16269         status = pthread_create( &t, &attr, task, NULL );
16270 #if HAVE_PTHREADS < 7
16271         if( status < 0 ) status = errno;
16272 #endif
16273         if( status ) return status;
16274 #else
16275         /* Draft 4 pthreads */
16276         status = pthread_create( &t, pthread_attr_default, task, NULL );
16277         if( status ) return errno;
16278
16279         /* give thread a chance to complete */
16280         /* it should remain joinable and hence detachable */
16281         sleep( 1 );
16282
16283         status = pthread_detach( &t );
16284         if( status ) return errno;
16285 #endif
16286
16287 #ifdef HAVE_LINUX_THREADS
16288         pthread_kill_other_threads_np();
16289 #endif
16290
16291         return 0;
16292
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 if ac_fn_c_try_link "$LINENO"; then :
16298   ol_cv_pthread_kthread=yes
16299 else
16300   ol_cv_pthread_kthread=no
16301 fi
16302 rm -f core conftest.err conftest.$ac_objext \
16303     conftest$ac_exeext conftest.$ac_ext
16304 else
16305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h.  */
16307
16308 /* pthread test headers */
16309 #include <pthread.h>
16310 #if HAVE_PTHREADS < 7
16311 #include <errno.h>
16312 #endif
16313 #ifndef NULL
16314 #define NULL (void*)0
16315 #endif
16316
16317 static void *task(p)
16318         void *p;
16319 {
16320         return (void *) (p == NULL);
16321 }
16322
16323
16324 int main(argc, argv)
16325         int argc;
16326         char **argv;
16327 {
16328
16329         /* pthread test function */
16330 #ifndef PTHREAD_CREATE_DETACHED
16331 #define PTHREAD_CREATE_DETACHED 1
16332 #endif
16333         pthread_t t;
16334         int status;
16335         int detach = PTHREAD_CREATE_DETACHED;
16336
16337 #if HAVE_PTHREADS > 4
16338         /* Final pthreads */
16339         pthread_attr_t attr;
16340
16341         status = pthread_attr_init(&attr);
16342         if( status ) return status;
16343
16344 #if HAVE_PTHREADS < 7
16345         status = pthread_attr_setdetachstate(&attr, &detach);
16346         if( status < 0 ) status = errno;
16347 #else
16348         status = pthread_attr_setdetachstate(&attr, detach);
16349 #endif
16350         if( status ) return status;
16351         status = pthread_create( &t, &attr, task, NULL );
16352 #if HAVE_PTHREADS < 7
16353         if( status < 0 ) status = errno;
16354 #endif
16355         if( status ) return status;
16356 #else
16357         /* Draft 4 pthreads */
16358         status = pthread_create( &t, pthread_attr_default, task, NULL );
16359         if( status ) return errno;
16360
16361         /* give thread a chance to complete */
16362         /* it should remain joinable and hence detachable */
16363         sleep( 1 );
16364
16365         status = pthread_detach( &t );
16366         if( status ) return errno;
16367 #endif
16368
16369 #ifdef HAVE_LINUX_THREADS
16370         pthread_kill_other_threads_np();
16371 #endif
16372
16373         return 0;
16374
16375 }
16376
16377 _ACEOF
16378 if ac_fn_c_try_run "$LINENO"; then :
16379   ol_cv_pthread_kthread=yes
16380 else
16381   ol_cv_pthread_kthread=no
16382 fi
16383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16384   conftest.$ac_objext conftest.beam conftest.$ac_ext
16385 fi
16386
16387
16388                 # restore the LIBS
16389                 LIBS="$ol_LIBS"
16390
16391 fi
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16393 $as_echo "$ol_cv_pthread_kthread" >&6; }
16394
16395         if test $ol_cv_pthread_kthread = yes ; then
16396                 ol_link_pthreads="-kthread"
16397                 ol_link_threads=posix
16398         fi
16399 fi
16400
16401                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16402 if test "$ol_link_threads" = no ; then
16403         # try -pthread
16404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16405 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16406 if ${ol_cv_pthread_pthread+:} false; then :
16407   $as_echo_n "(cached) " >&6
16408 else
16409
16410                 # save the flags
16411                 ol_LIBS="$LIBS"
16412                 LIBS="-pthread $LIBS"
16413
16414                 if test "$cross_compiling" = yes; then :
16415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h.  */
16417
16418 /* pthread test headers */
16419 #include <pthread.h>
16420 #if HAVE_PTHREADS < 7
16421 #include <errno.h>
16422 #endif
16423 #ifndef NULL
16424 #define NULL (void*)0
16425 #endif
16426
16427 static void *task(p)
16428         void *p;
16429 {
16430         return (void *) (p == NULL);
16431 }
16432
16433 int
16434 main ()
16435 {
16436
16437         /* pthread test function */
16438 #ifndef PTHREAD_CREATE_DETACHED
16439 #define PTHREAD_CREATE_DETACHED 1
16440 #endif
16441         pthread_t t;
16442         int status;
16443         int detach = PTHREAD_CREATE_DETACHED;
16444
16445 #if HAVE_PTHREADS > 4
16446         /* Final pthreads */
16447         pthread_attr_t attr;
16448
16449         status = pthread_attr_init(&attr);
16450         if( status ) return status;
16451
16452 #if HAVE_PTHREADS < 7
16453         status = pthread_attr_setdetachstate(&attr, &detach);
16454         if( status < 0 ) status = errno;
16455 #else
16456         status = pthread_attr_setdetachstate(&attr, detach);
16457 #endif
16458         if( status ) return status;
16459         status = pthread_create( &t, &attr, task, NULL );
16460 #if HAVE_PTHREADS < 7
16461         if( status < 0 ) status = errno;
16462 #endif
16463         if( status ) return status;
16464 #else
16465         /* Draft 4 pthreads */
16466         status = pthread_create( &t, pthread_attr_default, task, NULL );
16467         if( status ) return errno;
16468
16469         /* give thread a chance to complete */
16470         /* it should remain joinable and hence detachable */
16471         sleep( 1 );
16472
16473         status = pthread_detach( &t );
16474         if( status ) return errno;
16475 #endif
16476
16477 #ifdef HAVE_LINUX_THREADS
16478         pthread_kill_other_threads_np();
16479 #endif
16480
16481         return 0;
16482
16483   ;
16484   return 0;
16485 }
16486 _ACEOF
16487 if ac_fn_c_try_link "$LINENO"; then :
16488   ol_cv_pthread_pthread=yes
16489 else
16490   ol_cv_pthread_pthread=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext \
16493     conftest$ac_exeext conftest.$ac_ext
16494 else
16495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h.  */
16497
16498 /* pthread test headers */
16499 #include <pthread.h>
16500 #if HAVE_PTHREADS < 7
16501 #include <errno.h>
16502 #endif
16503 #ifndef NULL
16504 #define NULL (void*)0
16505 #endif
16506
16507 static void *task(p)
16508         void *p;
16509 {
16510         return (void *) (p == NULL);
16511 }
16512
16513
16514 int main(argc, argv)
16515         int argc;
16516         char **argv;
16517 {
16518
16519         /* pthread test function */
16520 #ifndef PTHREAD_CREATE_DETACHED
16521 #define PTHREAD_CREATE_DETACHED 1
16522 #endif
16523         pthread_t t;
16524         int status;
16525         int detach = PTHREAD_CREATE_DETACHED;
16526
16527 #if HAVE_PTHREADS > 4
16528         /* Final pthreads */
16529         pthread_attr_t attr;
16530
16531         status = pthread_attr_init(&attr);
16532         if( status ) return status;
16533
16534 #if HAVE_PTHREADS < 7
16535         status = pthread_attr_setdetachstate(&attr, &detach);
16536         if( status < 0 ) status = errno;
16537 #else
16538         status = pthread_attr_setdetachstate(&attr, detach);
16539 #endif
16540         if( status ) return status;
16541         status = pthread_create( &t, &attr, task, NULL );
16542 #if HAVE_PTHREADS < 7
16543         if( status < 0 ) status = errno;
16544 #endif
16545         if( status ) return status;
16546 #else
16547         /* Draft 4 pthreads */
16548         status = pthread_create( &t, pthread_attr_default, task, NULL );
16549         if( status ) return errno;
16550
16551         /* give thread a chance to complete */
16552         /* it should remain joinable and hence detachable */
16553         sleep( 1 );
16554
16555         status = pthread_detach( &t );
16556         if( status ) return errno;
16557 #endif
16558
16559 #ifdef HAVE_LINUX_THREADS
16560         pthread_kill_other_threads_np();
16561 #endif
16562
16563         return 0;
16564
16565 }
16566
16567 _ACEOF
16568 if ac_fn_c_try_run "$LINENO"; then :
16569   ol_cv_pthread_pthread=yes
16570 else
16571   ol_cv_pthread_pthread=no
16572 fi
16573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16574   conftest.$ac_objext conftest.beam conftest.$ac_ext
16575 fi
16576
16577
16578                 # restore the LIBS
16579                 LIBS="$ol_LIBS"
16580
16581 fi
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16583 $as_echo "$ol_cv_pthread_pthread" >&6; }
16584
16585         if test $ol_cv_pthread_pthread = yes ; then
16586                 ol_link_pthreads="-pthread"
16587                 ol_link_threads=posix
16588         fi
16589 fi
16590
16591                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16592 if test "$ol_link_threads" = no ; then
16593         # try -pthreads
16594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16595 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16596 if ${ol_cv_pthread_pthreads+:} false; then :
16597   $as_echo_n "(cached) " >&6
16598 else
16599
16600                 # save the flags
16601                 ol_LIBS="$LIBS"
16602                 LIBS="-pthreads $LIBS"
16603
16604                 if test "$cross_compiling" = yes; then :
16605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h.  */
16607
16608 /* pthread test headers */
16609 #include <pthread.h>
16610 #if HAVE_PTHREADS < 7
16611 #include <errno.h>
16612 #endif
16613 #ifndef NULL
16614 #define NULL (void*)0
16615 #endif
16616
16617 static void *task(p)
16618         void *p;
16619 {
16620         return (void *) (p == NULL);
16621 }
16622
16623 int
16624 main ()
16625 {
16626
16627         /* pthread test function */
16628 #ifndef PTHREAD_CREATE_DETACHED
16629 #define PTHREAD_CREATE_DETACHED 1
16630 #endif
16631         pthread_t t;
16632         int status;
16633         int detach = PTHREAD_CREATE_DETACHED;
16634
16635 #if HAVE_PTHREADS > 4
16636         /* Final pthreads */
16637         pthread_attr_t attr;
16638
16639         status = pthread_attr_init(&attr);
16640         if( status ) return status;
16641
16642 #if HAVE_PTHREADS < 7
16643         status = pthread_attr_setdetachstate(&attr, &detach);
16644         if( status < 0 ) status = errno;
16645 #else
16646         status = pthread_attr_setdetachstate(&attr, detach);
16647 #endif
16648         if( status ) return status;
16649         status = pthread_create( &t, &attr, task, NULL );
16650 #if HAVE_PTHREADS < 7
16651         if( status < 0 ) status = errno;
16652 #endif
16653         if( status ) return status;
16654 #else
16655         /* Draft 4 pthreads */
16656         status = pthread_create( &t, pthread_attr_default, task, NULL );
16657         if( status ) return errno;
16658
16659         /* give thread a chance to complete */
16660         /* it should remain joinable and hence detachable */
16661         sleep( 1 );
16662
16663         status = pthread_detach( &t );
16664         if( status ) return errno;
16665 #endif
16666
16667 #ifdef HAVE_LINUX_THREADS
16668         pthread_kill_other_threads_np();
16669 #endif
16670
16671         return 0;
16672
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 if ac_fn_c_try_link "$LINENO"; then :
16678   ol_cv_pthread_pthreads=yes
16679 else
16680   ol_cv_pthread_pthreads=no
16681 fi
16682 rm -f core conftest.err conftest.$ac_objext \
16683     conftest$ac_exeext conftest.$ac_ext
16684 else
16685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h.  */
16687
16688 /* pthread test headers */
16689 #include <pthread.h>
16690 #if HAVE_PTHREADS < 7
16691 #include <errno.h>
16692 #endif
16693 #ifndef NULL
16694 #define NULL (void*)0
16695 #endif
16696
16697 static void *task(p)
16698         void *p;
16699 {
16700         return (void *) (p == NULL);
16701 }
16702
16703
16704 int main(argc, argv)
16705         int argc;
16706         char **argv;
16707 {
16708
16709         /* pthread test function */
16710 #ifndef PTHREAD_CREATE_DETACHED
16711 #define PTHREAD_CREATE_DETACHED 1
16712 #endif
16713         pthread_t t;
16714         int status;
16715         int detach = PTHREAD_CREATE_DETACHED;
16716
16717 #if HAVE_PTHREADS > 4
16718         /* Final pthreads */
16719         pthread_attr_t attr;
16720
16721         status = pthread_attr_init(&attr);
16722         if( status ) return status;
16723
16724 #if HAVE_PTHREADS < 7
16725         status = pthread_attr_setdetachstate(&attr, &detach);
16726         if( status < 0 ) status = errno;
16727 #else
16728         status = pthread_attr_setdetachstate(&attr, detach);
16729 #endif
16730         if( status ) return status;
16731         status = pthread_create( &t, &attr, task, NULL );
16732 #if HAVE_PTHREADS < 7
16733         if( status < 0 ) status = errno;
16734 #endif
16735         if( status ) return status;
16736 #else
16737         /* Draft 4 pthreads */
16738         status = pthread_create( &t, pthread_attr_default, task, NULL );
16739         if( status ) return errno;
16740
16741         /* give thread a chance to complete */
16742         /* it should remain joinable and hence detachable */
16743         sleep( 1 );
16744
16745         status = pthread_detach( &t );
16746         if( status ) return errno;
16747 #endif
16748
16749 #ifdef HAVE_LINUX_THREADS
16750         pthread_kill_other_threads_np();
16751 #endif
16752
16753         return 0;
16754
16755 }
16756
16757 _ACEOF
16758 if ac_fn_c_try_run "$LINENO"; then :
16759   ol_cv_pthread_pthreads=yes
16760 else
16761   ol_cv_pthread_pthreads=no
16762 fi
16763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16764   conftest.$ac_objext conftest.beam conftest.$ac_ext
16765 fi
16766
16767
16768                 # restore the LIBS
16769                 LIBS="$ol_LIBS"
16770
16771 fi
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16773 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16774
16775         if test $ol_cv_pthread_pthreads = yes ; then
16776                 ol_link_pthreads="-pthreads"
16777                 ol_link_threads=posix
16778         fi
16779 fi
16780
16781                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16782 if test "$ol_link_threads" = no ; then
16783         # try -mthreads
16784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16785 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16786 if ${ol_cv_pthread_mthreads+:} false; then :
16787   $as_echo_n "(cached) " >&6
16788 else
16789
16790                 # save the flags
16791                 ol_LIBS="$LIBS"
16792                 LIBS="-mthreads $LIBS"
16793
16794                 if test "$cross_compiling" = yes; then :
16795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h.  */
16797
16798 /* pthread test headers */
16799 #include <pthread.h>
16800 #if HAVE_PTHREADS < 7
16801 #include <errno.h>
16802 #endif
16803 #ifndef NULL
16804 #define NULL (void*)0
16805 #endif
16806
16807 static void *task(p)
16808         void *p;
16809 {
16810         return (void *) (p == NULL);
16811 }
16812
16813 int
16814 main ()
16815 {
16816
16817         /* pthread test function */
16818 #ifndef PTHREAD_CREATE_DETACHED
16819 #define PTHREAD_CREATE_DETACHED 1
16820 #endif
16821         pthread_t t;
16822         int status;
16823         int detach = PTHREAD_CREATE_DETACHED;
16824
16825 #if HAVE_PTHREADS > 4
16826         /* Final pthreads */
16827         pthread_attr_t attr;
16828
16829         status = pthread_attr_init(&attr);
16830         if( status ) return status;
16831
16832 #if HAVE_PTHREADS < 7
16833         status = pthread_attr_setdetachstate(&attr, &detach);
16834         if( status < 0 ) status = errno;
16835 #else
16836         status = pthread_attr_setdetachstate(&attr, detach);
16837 #endif
16838         if( status ) return status;
16839         status = pthread_create( &t, &attr, task, NULL );
16840 #if HAVE_PTHREADS < 7
16841         if( status < 0 ) status = errno;
16842 #endif
16843         if( status ) return status;
16844 #else
16845         /* Draft 4 pthreads */
16846         status = pthread_create( &t, pthread_attr_default, task, NULL );
16847         if( status ) return errno;
16848
16849         /* give thread a chance to complete */
16850         /* it should remain joinable and hence detachable */
16851         sleep( 1 );
16852
16853         status = pthread_detach( &t );
16854         if( status ) return errno;
16855 #endif
16856
16857 #ifdef HAVE_LINUX_THREADS
16858         pthread_kill_other_threads_np();
16859 #endif
16860
16861         return 0;
16862
16863   ;
16864   return 0;
16865 }
16866 _ACEOF
16867 if ac_fn_c_try_link "$LINENO"; then :
16868   ol_cv_pthread_mthreads=yes
16869 else
16870   ol_cv_pthread_mthreads=no
16871 fi
16872 rm -f core conftest.err conftest.$ac_objext \
16873     conftest$ac_exeext conftest.$ac_ext
16874 else
16875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h.  */
16877
16878 /* pthread test headers */
16879 #include <pthread.h>
16880 #if HAVE_PTHREADS < 7
16881 #include <errno.h>
16882 #endif
16883 #ifndef NULL
16884 #define NULL (void*)0
16885 #endif
16886
16887 static void *task(p)
16888         void *p;
16889 {
16890         return (void *) (p == NULL);
16891 }
16892
16893
16894 int main(argc, argv)
16895         int argc;
16896         char **argv;
16897 {
16898
16899         /* pthread test function */
16900 #ifndef PTHREAD_CREATE_DETACHED
16901 #define PTHREAD_CREATE_DETACHED 1
16902 #endif
16903         pthread_t t;
16904         int status;
16905         int detach = PTHREAD_CREATE_DETACHED;
16906
16907 #if HAVE_PTHREADS > 4
16908         /* Final pthreads */
16909         pthread_attr_t attr;
16910
16911         status = pthread_attr_init(&attr);
16912         if( status ) return status;
16913
16914 #if HAVE_PTHREADS < 7
16915         status = pthread_attr_setdetachstate(&attr, &detach);
16916         if( status < 0 ) status = errno;
16917 #else
16918         status = pthread_attr_setdetachstate(&attr, detach);
16919 #endif
16920         if( status ) return status;
16921         status = pthread_create( &t, &attr, task, NULL );
16922 #if HAVE_PTHREADS < 7
16923         if( status < 0 ) status = errno;
16924 #endif
16925         if( status ) return status;
16926 #else
16927         /* Draft 4 pthreads */
16928         status = pthread_create( &t, pthread_attr_default, task, NULL );
16929         if( status ) return errno;
16930
16931         /* give thread a chance to complete */
16932         /* it should remain joinable and hence detachable */
16933         sleep( 1 );
16934
16935         status = pthread_detach( &t );
16936         if( status ) return errno;
16937 #endif
16938
16939 #ifdef HAVE_LINUX_THREADS
16940         pthread_kill_other_threads_np();
16941 #endif
16942
16943         return 0;
16944
16945 }
16946
16947 _ACEOF
16948 if ac_fn_c_try_run "$LINENO"; then :
16949   ol_cv_pthread_mthreads=yes
16950 else
16951   ol_cv_pthread_mthreads=no
16952 fi
16953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16954   conftest.$ac_objext conftest.beam conftest.$ac_ext
16955 fi
16956
16957
16958                 # restore the LIBS
16959                 LIBS="$ol_LIBS"
16960
16961 fi
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16963 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16964
16965         if test $ol_cv_pthread_mthreads = yes ; then
16966                 ol_link_pthreads="-mthreads"
16967                 ol_link_threads=posix
16968         fi
16969 fi
16970
16971                 # Pthread try link: -thread (ol_cv_pthread_thread)
16972 if test "$ol_link_threads" = no ; then
16973         # try -thread
16974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16975 $as_echo_n "checking for pthread link with -thread... " >&6; }
16976 if ${ol_cv_pthread_thread+:} false; then :
16977   $as_echo_n "(cached) " >&6
16978 else
16979
16980                 # save the flags
16981                 ol_LIBS="$LIBS"
16982                 LIBS="-thread $LIBS"
16983
16984                 if test "$cross_compiling" = yes; then :
16985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h.  */
16987
16988 /* pthread test headers */
16989 #include <pthread.h>
16990 #if HAVE_PTHREADS < 7
16991 #include <errno.h>
16992 #endif
16993 #ifndef NULL
16994 #define NULL (void*)0
16995 #endif
16996
16997 static void *task(p)
16998         void *p;
16999 {
17000         return (void *) (p == NULL);
17001 }
17002
17003 int
17004 main ()
17005 {
17006
17007         /* pthread test function */
17008 #ifndef PTHREAD_CREATE_DETACHED
17009 #define PTHREAD_CREATE_DETACHED 1
17010 #endif
17011         pthread_t t;
17012         int status;
17013         int detach = PTHREAD_CREATE_DETACHED;
17014
17015 #if HAVE_PTHREADS > 4
17016         /* Final pthreads */
17017         pthread_attr_t attr;
17018
17019         status = pthread_attr_init(&attr);
17020         if( status ) return status;
17021
17022 #if HAVE_PTHREADS < 7
17023         status = pthread_attr_setdetachstate(&attr, &detach);
17024         if( status < 0 ) status = errno;
17025 #else
17026         status = pthread_attr_setdetachstate(&attr, detach);
17027 #endif
17028         if( status ) return status;
17029         status = pthread_create( &t, &attr, task, NULL );
17030 #if HAVE_PTHREADS < 7
17031         if( status < 0 ) status = errno;
17032 #endif
17033         if( status ) return status;
17034 #else
17035         /* Draft 4 pthreads */
17036         status = pthread_create( &t, pthread_attr_default, task, NULL );
17037         if( status ) return errno;
17038
17039         /* give thread a chance to complete */
17040         /* it should remain joinable and hence detachable */
17041         sleep( 1 );
17042
17043         status = pthread_detach( &t );
17044         if( status ) return errno;
17045 #endif
17046
17047 #ifdef HAVE_LINUX_THREADS
17048         pthread_kill_other_threads_np();
17049 #endif
17050
17051         return 0;
17052
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 if ac_fn_c_try_link "$LINENO"; then :
17058   ol_cv_pthread_thread=yes
17059 else
17060   ol_cv_pthread_thread=no
17061 fi
17062 rm -f core conftest.err conftest.$ac_objext \
17063     conftest$ac_exeext conftest.$ac_ext
17064 else
17065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h.  */
17067
17068 /* pthread test headers */
17069 #include <pthread.h>
17070 #if HAVE_PTHREADS < 7
17071 #include <errno.h>
17072 #endif
17073 #ifndef NULL
17074 #define NULL (void*)0
17075 #endif
17076
17077 static void *task(p)
17078         void *p;
17079 {
17080         return (void *) (p == NULL);
17081 }
17082
17083
17084 int main(argc, argv)
17085         int argc;
17086         char **argv;
17087 {
17088
17089         /* pthread test function */
17090 #ifndef PTHREAD_CREATE_DETACHED
17091 #define PTHREAD_CREATE_DETACHED 1
17092 #endif
17093         pthread_t t;
17094         int status;
17095         int detach = PTHREAD_CREATE_DETACHED;
17096
17097 #if HAVE_PTHREADS > 4
17098         /* Final pthreads */
17099         pthread_attr_t attr;
17100
17101         status = pthread_attr_init(&attr);
17102         if( status ) return status;
17103
17104 #if HAVE_PTHREADS < 7
17105         status = pthread_attr_setdetachstate(&attr, &detach);
17106         if( status < 0 ) status = errno;
17107 #else
17108         status = pthread_attr_setdetachstate(&attr, detach);
17109 #endif
17110         if( status ) return status;
17111         status = pthread_create( &t, &attr, task, NULL );
17112 #if HAVE_PTHREADS < 7
17113         if( status < 0 ) status = errno;
17114 #endif
17115         if( status ) return status;
17116 #else
17117         /* Draft 4 pthreads */
17118         status = pthread_create( &t, pthread_attr_default, task, NULL );
17119         if( status ) return errno;
17120
17121         /* give thread a chance to complete */
17122         /* it should remain joinable and hence detachable */
17123         sleep( 1 );
17124
17125         status = pthread_detach( &t );
17126         if( status ) return errno;
17127 #endif
17128
17129 #ifdef HAVE_LINUX_THREADS
17130         pthread_kill_other_threads_np();
17131 #endif
17132
17133         return 0;
17134
17135 }
17136
17137 _ACEOF
17138 if ac_fn_c_try_run "$LINENO"; then :
17139   ol_cv_pthread_thread=yes
17140 else
17141   ol_cv_pthread_thread=no
17142 fi
17143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17144   conftest.$ac_objext conftest.beam conftest.$ac_ext
17145 fi
17146
17147
17148                 # restore the LIBS
17149                 LIBS="$ol_LIBS"
17150
17151 fi
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17153 $as_echo "$ol_cv_pthread_thread" >&6; }
17154
17155         if test $ol_cv_pthread_thread = yes ; then
17156                 ol_link_pthreads="-thread"
17157                 ol_link_threads=posix
17158         fi
17159 fi
17160
17161
17162                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17163 if test "$ol_link_threads" = no ; then
17164         # try -lpthread -lmach -lexc -lc_r
17165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17166 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17167 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
17168   $as_echo_n "(cached) " >&6
17169 else
17170
17171                 # save the flags
17172                 ol_LIBS="$LIBS"
17173                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17174
17175                 if test "$cross_compiling" = yes; then :
17176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177 /* end confdefs.h.  */
17178
17179 /* pthread test headers */
17180 #include <pthread.h>
17181 #if HAVE_PTHREADS < 7
17182 #include <errno.h>
17183 #endif
17184 #ifndef NULL
17185 #define NULL (void*)0
17186 #endif
17187
17188 static void *task(p)
17189         void *p;
17190 {
17191         return (void *) (p == NULL);
17192 }
17193
17194 int
17195 main ()
17196 {
17197
17198         /* pthread test function */
17199 #ifndef PTHREAD_CREATE_DETACHED
17200 #define PTHREAD_CREATE_DETACHED 1
17201 #endif
17202         pthread_t t;
17203         int status;
17204         int detach = PTHREAD_CREATE_DETACHED;
17205
17206 #if HAVE_PTHREADS > 4
17207         /* Final pthreads */
17208         pthread_attr_t attr;
17209
17210         status = pthread_attr_init(&attr);
17211         if( status ) return status;
17212
17213 #if HAVE_PTHREADS < 7
17214         status = pthread_attr_setdetachstate(&attr, &detach);
17215         if( status < 0 ) status = errno;
17216 #else
17217         status = pthread_attr_setdetachstate(&attr, detach);
17218 #endif
17219         if( status ) return status;
17220         status = pthread_create( &t, &attr, task, NULL );
17221 #if HAVE_PTHREADS < 7
17222         if( status < 0 ) status = errno;
17223 #endif
17224         if( status ) return status;
17225 #else
17226         /* Draft 4 pthreads */
17227         status = pthread_create( &t, pthread_attr_default, task, NULL );
17228         if( status ) return errno;
17229
17230         /* give thread a chance to complete */
17231         /* it should remain joinable and hence detachable */
17232         sleep( 1 );
17233
17234         status = pthread_detach( &t );
17235         if( status ) return errno;
17236 #endif
17237
17238 #ifdef HAVE_LINUX_THREADS
17239         pthread_kill_other_threads_np();
17240 #endif
17241
17242         return 0;
17243
17244   ;
17245   return 0;
17246 }
17247 _ACEOF
17248 if ac_fn_c_try_link "$LINENO"; then :
17249   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17250 else
17251   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17252 fi
17253 rm -f core conftest.err conftest.$ac_objext \
17254     conftest$ac_exeext conftest.$ac_ext
17255 else
17256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h.  */
17258
17259 /* pthread test headers */
17260 #include <pthread.h>
17261 #if HAVE_PTHREADS < 7
17262 #include <errno.h>
17263 #endif
17264 #ifndef NULL
17265 #define NULL (void*)0
17266 #endif
17267
17268 static void *task(p)
17269         void *p;
17270 {
17271         return (void *) (p == NULL);
17272 }
17273
17274
17275 int main(argc, argv)
17276         int argc;
17277         char **argv;
17278 {
17279
17280         /* pthread test function */
17281 #ifndef PTHREAD_CREATE_DETACHED
17282 #define PTHREAD_CREATE_DETACHED 1
17283 #endif
17284         pthread_t t;
17285         int status;
17286         int detach = PTHREAD_CREATE_DETACHED;
17287
17288 #if HAVE_PTHREADS > 4
17289         /* Final pthreads */
17290         pthread_attr_t attr;
17291
17292         status = pthread_attr_init(&attr);
17293         if( status ) return status;
17294
17295 #if HAVE_PTHREADS < 7
17296         status = pthread_attr_setdetachstate(&attr, &detach);
17297         if( status < 0 ) status = errno;
17298 #else
17299         status = pthread_attr_setdetachstate(&attr, detach);
17300 #endif
17301         if( status ) return status;
17302         status = pthread_create( &t, &attr, task, NULL );
17303 #if HAVE_PTHREADS < 7
17304         if( status < 0 ) status = errno;
17305 #endif
17306         if( status ) return status;
17307 #else
17308         /* Draft 4 pthreads */
17309         status = pthread_create( &t, pthread_attr_default, task, NULL );
17310         if( status ) return errno;
17311
17312         /* give thread a chance to complete */
17313         /* it should remain joinable and hence detachable */
17314         sleep( 1 );
17315
17316         status = pthread_detach( &t );
17317         if( status ) return errno;
17318 #endif
17319
17320 #ifdef HAVE_LINUX_THREADS
17321         pthread_kill_other_threads_np();
17322 #endif
17323
17324         return 0;
17325
17326 }
17327
17328 _ACEOF
17329 if ac_fn_c_try_run "$LINENO"; then :
17330   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17331 else
17332   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17333 fi
17334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17335   conftest.$ac_objext conftest.beam conftest.$ac_ext
17336 fi
17337
17338
17339                 # restore the LIBS
17340                 LIBS="$ol_LIBS"
17341
17342 fi
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17344 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17345
17346         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17347                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17348                 ol_link_threads=posix
17349         fi
17350 fi
17351
17352                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17353 if test "$ol_link_threads" = no ; then
17354         # try -lpthread -lmach -lexc
17355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17356 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17357 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
17358   $as_echo_n "(cached) " >&6
17359 else
17360
17361                 # save the flags
17362                 ol_LIBS="$LIBS"
17363                 LIBS="-lpthread -lmach -lexc $LIBS"
17364
17365                 if test "$cross_compiling" = yes; then :
17366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h.  */
17368
17369 /* pthread test headers */
17370 #include <pthread.h>
17371 #if HAVE_PTHREADS < 7
17372 #include <errno.h>
17373 #endif
17374 #ifndef NULL
17375 #define NULL (void*)0
17376 #endif
17377
17378 static void *task(p)
17379         void *p;
17380 {
17381         return (void *) (p == NULL);
17382 }
17383
17384 int
17385 main ()
17386 {
17387
17388         /* pthread test function */
17389 #ifndef PTHREAD_CREATE_DETACHED
17390 #define PTHREAD_CREATE_DETACHED 1
17391 #endif
17392         pthread_t t;
17393         int status;
17394         int detach = PTHREAD_CREATE_DETACHED;
17395
17396 #if HAVE_PTHREADS > 4
17397         /* Final pthreads */
17398         pthread_attr_t attr;
17399
17400         status = pthread_attr_init(&attr);
17401         if( status ) return status;
17402
17403 #if HAVE_PTHREADS < 7
17404         status = pthread_attr_setdetachstate(&attr, &detach);
17405         if( status < 0 ) status = errno;
17406 #else
17407         status = pthread_attr_setdetachstate(&attr, detach);
17408 #endif
17409         if( status ) return status;
17410         status = pthread_create( &t, &attr, task, NULL );
17411 #if HAVE_PTHREADS < 7
17412         if( status < 0 ) status = errno;
17413 #endif
17414         if( status ) return status;
17415 #else
17416         /* Draft 4 pthreads */
17417         status = pthread_create( &t, pthread_attr_default, task, NULL );
17418         if( status ) return errno;
17419
17420         /* give thread a chance to complete */
17421         /* it should remain joinable and hence detachable */
17422         sleep( 1 );
17423
17424         status = pthread_detach( &t );
17425         if( status ) return errno;
17426 #endif
17427
17428 #ifdef HAVE_LINUX_THREADS
17429         pthread_kill_other_threads_np();
17430 #endif
17431
17432         return 0;
17433
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_link "$LINENO"; then :
17439   ol_cv_pthread_lpthread_lmach_lexc=yes
17440 else
17441   ol_cv_pthread_lpthread_lmach_lexc=no
17442 fi
17443 rm -f core conftest.err conftest.$ac_objext \
17444     conftest$ac_exeext conftest.$ac_ext
17445 else
17446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h.  */
17448
17449 /* pthread test headers */
17450 #include <pthread.h>
17451 #if HAVE_PTHREADS < 7
17452 #include <errno.h>
17453 #endif
17454 #ifndef NULL
17455 #define NULL (void*)0
17456 #endif
17457
17458 static void *task(p)
17459         void *p;
17460 {
17461         return (void *) (p == NULL);
17462 }
17463
17464
17465 int main(argc, argv)
17466         int argc;
17467         char **argv;
17468 {
17469
17470         /* pthread test function */
17471 #ifndef PTHREAD_CREATE_DETACHED
17472 #define PTHREAD_CREATE_DETACHED 1
17473 #endif
17474         pthread_t t;
17475         int status;
17476         int detach = PTHREAD_CREATE_DETACHED;
17477
17478 #if HAVE_PTHREADS > 4
17479         /* Final pthreads */
17480         pthread_attr_t attr;
17481
17482         status = pthread_attr_init(&attr);
17483         if( status ) return status;
17484
17485 #if HAVE_PTHREADS < 7
17486         status = pthread_attr_setdetachstate(&attr, &detach);
17487         if( status < 0 ) status = errno;
17488 #else
17489         status = pthread_attr_setdetachstate(&attr, detach);
17490 #endif
17491         if( status ) return status;
17492         status = pthread_create( &t, &attr, task, NULL );
17493 #if HAVE_PTHREADS < 7
17494         if( status < 0 ) status = errno;
17495 #endif
17496         if( status ) return status;
17497 #else
17498         /* Draft 4 pthreads */
17499         status = pthread_create( &t, pthread_attr_default, task, NULL );
17500         if( status ) return errno;
17501
17502         /* give thread a chance to complete */
17503         /* it should remain joinable and hence detachable */
17504         sleep( 1 );
17505
17506         status = pthread_detach( &t );
17507         if( status ) return errno;
17508 #endif
17509
17510 #ifdef HAVE_LINUX_THREADS
17511         pthread_kill_other_threads_np();
17512 #endif
17513
17514         return 0;
17515
17516 }
17517
17518 _ACEOF
17519 if ac_fn_c_try_run "$LINENO"; then :
17520   ol_cv_pthread_lpthread_lmach_lexc=yes
17521 else
17522   ol_cv_pthread_lpthread_lmach_lexc=no
17523 fi
17524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17525   conftest.$ac_objext conftest.beam conftest.$ac_ext
17526 fi
17527
17528
17529                 # restore the LIBS
17530                 LIBS="$ol_LIBS"
17531
17532 fi
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17534 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17535
17536         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17537                 ol_link_pthreads="-lpthread -lmach -lexc"
17538                 ol_link_threads=posix
17539         fi
17540 fi
17541
17542
17543                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17544 if test "$ol_link_threads" = no ; then
17545         # try -lpthread -Wl,-woff,85
17546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17547 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17548 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
17549   $as_echo_n "(cached) " >&6
17550 else
17551
17552                 # save the flags
17553                 ol_LIBS="$LIBS"
17554                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17555
17556                 if test "$cross_compiling" = yes; then :
17557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h.  */
17559
17560 /* pthread test headers */
17561 #include <pthread.h>
17562 #if HAVE_PTHREADS < 7
17563 #include <errno.h>
17564 #endif
17565 #ifndef NULL
17566 #define NULL (void*)0
17567 #endif
17568
17569 static void *task(p)
17570         void *p;
17571 {
17572         return (void *) (p == NULL);
17573 }
17574
17575 int
17576 main ()
17577 {
17578
17579         /* pthread test function */
17580 #ifndef PTHREAD_CREATE_DETACHED
17581 #define PTHREAD_CREATE_DETACHED 1
17582 #endif
17583         pthread_t t;
17584         int status;
17585         int detach = PTHREAD_CREATE_DETACHED;
17586
17587 #if HAVE_PTHREADS > 4
17588         /* Final pthreads */
17589         pthread_attr_t attr;
17590
17591         status = pthread_attr_init(&attr);
17592         if( status ) return status;
17593
17594 #if HAVE_PTHREADS < 7
17595         status = pthread_attr_setdetachstate(&attr, &detach);
17596         if( status < 0 ) status = errno;
17597 #else
17598         status = pthread_attr_setdetachstate(&attr, detach);
17599 #endif
17600         if( status ) return status;
17601         status = pthread_create( &t, &attr, task, NULL );
17602 #if HAVE_PTHREADS < 7
17603         if( status < 0 ) status = errno;
17604 #endif
17605         if( status ) return status;
17606 #else
17607         /* Draft 4 pthreads */
17608         status = pthread_create( &t, pthread_attr_default, task, NULL );
17609         if( status ) return errno;
17610
17611         /* give thread a chance to complete */
17612         /* it should remain joinable and hence detachable */
17613         sleep( 1 );
17614
17615         status = pthread_detach( &t );
17616         if( status ) return errno;
17617 #endif
17618
17619 #ifdef HAVE_LINUX_THREADS
17620         pthread_kill_other_threads_np();
17621 #endif
17622
17623         return 0;
17624
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 if ac_fn_c_try_link "$LINENO"; then :
17630   ol_cv_pthread_lib_lpthread_woff=yes
17631 else
17632   ol_cv_pthread_lib_lpthread_woff=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext \
17635     conftest$ac_exeext conftest.$ac_ext
17636 else
17637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h.  */
17639
17640 /* pthread test headers */
17641 #include <pthread.h>
17642 #if HAVE_PTHREADS < 7
17643 #include <errno.h>
17644 #endif
17645 #ifndef NULL
17646 #define NULL (void*)0
17647 #endif
17648
17649 static void *task(p)
17650         void *p;
17651 {
17652         return (void *) (p == NULL);
17653 }
17654
17655
17656 int main(argc, argv)
17657         int argc;
17658         char **argv;
17659 {
17660
17661         /* pthread test function */
17662 #ifndef PTHREAD_CREATE_DETACHED
17663 #define PTHREAD_CREATE_DETACHED 1
17664 #endif
17665         pthread_t t;
17666         int status;
17667         int detach = PTHREAD_CREATE_DETACHED;
17668
17669 #if HAVE_PTHREADS > 4
17670         /* Final pthreads */
17671         pthread_attr_t attr;
17672
17673         status = pthread_attr_init(&attr);
17674         if( status ) return status;
17675
17676 #if HAVE_PTHREADS < 7
17677         status = pthread_attr_setdetachstate(&attr, &detach);
17678         if( status < 0 ) status = errno;
17679 #else
17680         status = pthread_attr_setdetachstate(&attr, detach);
17681 #endif
17682         if( status ) return status;
17683         status = pthread_create( &t, &attr, task, NULL );
17684 #if HAVE_PTHREADS < 7
17685         if( status < 0 ) status = errno;
17686 #endif
17687         if( status ) return status;
17688 #else
17689         /* Draft 4 pthreads */
17690         status = pthread_create( &t, pthread_attr_default, task, NULL );
17691         if( status ) return errno;
17692
17693         /* give thread a chance to complete */
17694         /* it should remain joinable and hence detachable */
17695         sleep( 1 );
17696
17697         status = pthread_detach( &t );
17698         if( status ) return errno;
17699 #endif
17700
17701 #ifdef HAVE_LINUX_THREADS
17702         pthread_kill_other_threads_np();
17703 #endif
17704
17705         return 0;
17706
17707 }
17708
17709 _ACEOF
17710 if ac_fn_c_try_run "$LINENO"; then :
17711   ol_cv_pthread_lib_lpthread_woff=yes
17712 else
17713   ol_cv_pthread_lib_lpthread_woff=no
17714 fi
17715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17716   conftest.$ac_objext conftest.beam conftest.$ac_ext
17717 fi
17718
17719
17720                 # restore the LIBS
17721                 LIBS="$ol_LIBS"
17722
17723 fi
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17725 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17726
17727         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17728                 ol_link_pthreads="-lpthread -Wl,-woff,85"
17729                 ol_link_threads=posix
17730         fi
17731 fi
17732
17733
17734                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17735 if test "$ol_link_threads" = no ; then
17736         # try -lpthread
17737         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17738 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17739 if ${ol_cv_pthread_lpthread+:} false; then :
17740   $as_echo_n "(cached) " >&6
17741 else
17742
17743                 # save the flags
17744                 ol_LIBS="$LIBS"
17745                 LIBS="-lpthread $LIBS"
17746
17747                 if test "$cross_compiling" = yes; then :
17748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h.  */
17750
17751 /* pthread test headers */
17752 #include <pthread.h>
17753 #if HAVE_PTHREADS < 7
17754 #include <errno.h>
17755 #endif
17756 #ifndef NULL
17757 #define NULL (void*)0
17758 #endif
17759
17760 static void *task(p)
17761         void *p;
17762 {
17763         return (void *) (p == NULL);
17764 }
17765
17766 int
17767 main ()
17768 {
17769
17770         /* pthread test function */
17771 #ifndef PTHREAD_CREATE_DETACHED
17772 #define PTHREAD_CREATE_DETACHED 1
17773 #endif
17774         pthread_t t;
17775         int status;
17776         int detach = PTHREAD_CREATE_DETACHED;
17777
17778 #if HAVE_PTHREADS > 4
17779         /* Final pthreads */
17780         pthread_attr_t attr;
17781
17782         status = pthread_attr_init(&attr);
17783         if( status ) return status;
17784
17785 #if HAVE_PTHREADS < 7
17786         status = pthread_attr_setdetachstate(&attr, &detach);
17787         if( status < 0 ) status = errno;
17788 #else
17789         status = pthread_attr_setdetachstate(&attr, detach);
17790 #endif
17791         if( status ) return status;
17792         status = pthread_create( &t, &attr, task, NULL );
17793 #if HAVE_PTHREADS < 7
17794         if( status < 0 ) status = errno;
17795 #endif
17796         if( status ) return status;
17797 #else
17798         /* Draft 4 pthreads */
17799         status = pthread_create( &t, pthread_attr_default, task, NULL );
17800         if( status ) return errno;
17801
17802         /* give thread a chance to complete */
17803         /* it should remain joinable and hence detachable */
17804         sleep( 1 );
17805
17806         status = pthread_detach( &t );
17807         if( status ) return errno;
17808 #endif
17809
17810 #ifdef HAVE_LINUX_THREADS
17811         pthread_kill_other_threads_np();
17812 #endif
17813
17814         return 0;
17815
17816   ;
17817   return 0;
17818 }
17819 _ACEOF
17820 if ac_fn_c_try_link "$LINENO"; then :
17821   ol_cv_pthread_lpthread=yes
17822 else
17823   ol_cv_pthread_lpthread=no
17824 fi
17825 rm -f core conftest.err conftest.$ac_objext \
17826     conftest$ac_exeext conftest.$ac_ext
17827 else
17828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h.  */
17830
17831 /* pthread test headers */
17832 #include <pthread.h>
17833 #if HAVE_PTHREADS < 7
17834 #include <errno.h>
17835 #endif
17836 #ifndef NULL
17837 #define NULL (void*)0
17838 #endif
17839
17840 static void *task(p)
17841         void *p;
17842 {
17843         return (void *) (p == NULL);
17844 }
17845
17846
17847 int main(argc, argv)
17848         int argc;
17849         char **argv;
17850 {
17851
17852         /* pthread test function */
17853 #ifndef PTHREAD_CREATE_DETACHED
17854 #define PTHREAD_CREATE_DETACHED 1
17855 #endif
17856         pthread_t t;
17857         int status;
17858         int detach = PTHREAD_CREATE_DETACHED;
17859
17860 #if HAVE_PTHREADS > 4
17861         /* Final pthreads */
17862         pthread_attr_t attr;
17863
17864         status = pthread_attr_init(&attr);
17865         if( status ) return status;
17866
17867 #if HAVE_PTHREADS < 7
17868         status = pthread_attr_setdetachstate(&attr, &detach);
17869         if( status < 0 ) status = errno;
17870 #else
17871         status = pthread_attr_setdetachstate(&attr, detach);
17872 #endif
17873         if( status ) return status;
17874         status = pthread_create( &t, &attr, task, NULL );
17875 #if HAVE_PTHREADS < 7
17876         if( status < 0 ) status = errno;
17877 #endif
17878         if( status ) return status;
17879 #else
17880         /* Draft 4 pthreads */
17881         status = pthread_create( &t, pthread_attr_default, task, NULL );
17882         if( status ) return errno;
17883
17884         /* give thread a chance to complete */
17885         /* it should remain joinable and hence detachable */
17886         sleep( 1 );
17887
17888         status = pthread_detach( &t );
17889         if( status ) return errno;
17890 #endif
17891
17892 #ifdef HAVE_LINUX_THREADS
17893         pthread_kill_other_threads_np();
17894 #endif
17895
17896         return 0;
17897
17898 }
17899
17900 _ACEOF
17901 if ac_fn_c_try_run "$LINENO"; then :
17902   ol_cv_pthread_lpthread=yes
17903 else
17904   ol_cv_pthread_lpthread=no
17905 fi
17906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17907   conftest.$ac_objext conftest.beam conftest.$ac_ext
17908 fi
17909
17910
17911                 # restore the LIBS
17912                 LIBS="$ol_LIBS"
17913
17914 fi
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17916 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17917
17918         if test $ol_cv_pthread_lpthread = yes ; then
17919                 ol_link_pthreads="-lpthread"
17920                 ol_link_threads=posix
17921         fi
17922 fi
17923
17924                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17925 if test "$ol_link_threads" = no ; then
17926         # try -lc_r
17927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17928 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17929 if ${ol_cv_pthread_lc_r+:} false; then :
17930   $as_echo_n "(cached) " >&6
17931 else
17932
17933                 # save the flags
17934                 ol_LIBS="$LIBS"
17935                 LIBS="-lc_r $LIBS"
17936
17937                 if test "$cross_compiling" = yes; then :
17938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h.  */
17940
17941 /* pthread test headers */
17942 #include <pthread.h>
17943 #if HAVE_PTHREADS < 7
17944 #include <errno.h>
17945 #endif
17946 #ifndef NULL
17947 #define NULL (void*)0
17948 #endif
17949
17950 static void *task(p)
17951         void *p;
17952 {
17953         return (void *) (p == NULL);
17954 }
17955
17956 int
17957 main ()
17958 {
17959
17960         /* pthread test function */
17961 #ifndef PTHREAD_CREATE_DETACHED
17962 #define PTHREAD_CREATE_DETACHED 1
17963 #endif
17964         pthread_t t;
17965         int status;
17966         int detach = PTHREAD_CREATE_DETACHED;
17967
17968 #if HAVE_PTHREADS > 4
17969         /* Final pthreads */
17970         pthread_attr_t attr;
17971
17972         status = pthread_attr_init(&attr);
17973         if( status ) return status;
17974
17975 #if HAVE_PTHREADS < 7
17976         status = pthread_attr_setdetachstate(&attr, &detach);
17977         if( status < 0 ) status = errno;
17978 #else
17979         status = pthread_attr_setdetachstate(&attr, detach);
17980 #endif
17981         if( status ) return status;
17982         status = pthread_create( &t, &attr, task, NULL );
17983 #if HAVE_PTHREADS < 7
17984         if( status < 0 ) status = errno;
17985 #endif
17986         if( status ) return status;
17987 #else
17988         /* Draft 4 pthreads */
17989         status = pthread_create( &t, pthread_attr_default, task, NULL );
17990         if( status ) return errno;
17991
17992         /* give thread a chance to complete */
17993         /* it should remain joinable and hence detachable */
17994         sleep( 1 );
17995
17996         status = pthread_detach( &t );
17997         if( status ) return errno;
17998 #endif
17999
18000 #ifdef HAVE_LINUX_THREADS
18001         pthread_kill_other_threads_np();
18002 #endif
18003
18004         return 0;
18005
18006   ;
18007   return 0;
18008 }
18009 _ACEOF
18010 if ac_fn_c_try_link "$LINENO"; then :
18011   ol_cv_pthread_lc_r=yes
18012 else
18013   ol_cv_pthread_lc_r=no
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext \
18016     conftest$ac_exeext conftest.$ac_ext
18017 else
18018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h.  */
18020
18021 /* pthread test headers */
18022 #include <pthread.h>
18023 #if HAVE_PTHREADS < 7
18024 #include <errno.h>
18025 #endif
18026 #ifndef NULL
18027 #define NULL (void*)0
18028 #endif
18029
18030 static void *task(p)
18031         void *p;
18032 {
18033         return (void *) (p == NULL);
18034 }
18035
18036
18037 int main(argc, argv)
18038         int argc;
18039         char **argv;
18040 {
18041
18042         /* pthread test function */
18043 #ifndef PTHREAD_CREATE_DETACHED
18044 #define PTHREAD_CREATE_DETACHED 1
18045 #endif
18046         pthread_t t;
18047         int status;
18048         int detach = PTHREAD_CREATE_DETACHED;
18049
18050 #if HAVE_PTHREADS > 4
18051         /* Final pthreads */
18052         pthread_attr_t attr;
18053
18054         status = pthread_attr_init(&attr);
18055         if( status ) return status;
18056
18057 #if HAVE_PTHREADS < 7
18058         status = pthread_attr_setdetachstate(&attr, &detach);
18059         if( status < 0 ) status = errno;
18060 #else
18061         status = pthread_attr_setdetachstate(&attr, detach);
18062 #endif
18063         if( status ) return status;
18064         status = pthread_create( &t, &attr, task, NULL );
18065 #if HAVE_PTHREADS < 7
18066         if( status < 0 ) status = errno;
18067 #endif
18068         if( status ) return status;
18069 #else
18070         /* Draft 4 pthreads */
18071         status = pthread_create( &t, pthread_attr_default, task, NULL );
18072         if( status ) return errno;
18073
18074         /* give thread a chance to complete */
18075         /* it should remain joinable and hence detachable */
18076         sleep( 1 );
18077
18078         status = pthread_detach( &t );
18079         if( status ) return errno;
18080 #endif
18081
18082 #ifdef HAVE_LINUX_THREADS
18083         pthread_kill_other_threads_np();
18084 #endif
18085
18086         return 0;
18087
18088 }
18089
18090 _ACEOF
18091 if ac_fn_c_try_run "$LINENO"; then :
18092   ol_cv_pthread_lc_r=yes
18093 else
18094   ol_cv_pthread_lc_r=no
18095 fi
18096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18097   conftest.$ac_objext conftest.beam conftest.$ac_ext
18098 fi
18099
18100
18101                 # restore the LIBS
18102                 LIBS="$ol_LIBS"
18103
18104 fi
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18106 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18107
18108         if test $ol_cv_pthread_lc_r = yes ; then
18109                 ol_link_pthreads="-lc_r"
18110                 ol_link_threads=posix
18111         fi
18112 fi
18113
18114
18115                 # Pthread try link: -threads (ol_cv_pthread_threads)
18116 if test "$ol_link_threads" = no ; then
18117         # try -threads
18118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18119 $as_echo_n "checking for pthread link with -threads... " >&6; }
18120 if ${ol_cv_pthread_threads+:} false; then :
18121   $as_echo_n "(cached) " >&6
18122 else
18123
18124                 # save the flags
18125                 ol_LIBS="$LIBS"
18126                 LIBS="-threads $LIBS"
18127
18128                 if test "$cross_compiling" = yes; then :
18129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h.  */
18131
18132 /* pthread test headers */
18133 #include <pthread.h>
18134 #if HAVE_PTHREADS < 7
18135 #include <errno.h>
18136 #endif
18137 #ifndef NULL
18138 #define NULL (void*)0
18139 #endif
18140
18141 static void *task(p)
18142         void *p;
18143 {
18144         return (void *) (p == NULL);
18145 }
18146
18147 int
18148 main ()
18149 {
18150
18151         /* pthread test function */
18152 #ifndef PTHREAD_CREATE_DETACHED
18153 #define PTHREAD_CREATE_DETACHED 1
18154 #endif
18155         pthread_t t;
18156         int status;
18157         int detach = PTHREAD_CREATE_DETACHED;
18158
18159 #if HAVE_PTHREADS > 4
18160         /* Final pthreads */
18161         pthread_attr_t attr;
18162
18163         status = pthread_attr_init(&attr);
18164         if( status ) return status;
18165
18166 #if HAVE_PTHREADS < 7
18167         status = pthread_attr_setdetachstate(&attr, &detach);
18168         if( status < 0 ) status = errno;
18169 #else
18170         status = pthread_attr_setdetachstate(&attr, detach);
18171 #endif
18172         if( status ) return status;
18173         status = pthread_create( &t, &attr, task, NULL );
18174 #if HAVE_PTHREADS < 7
18175         if( status < 0 ) status = errno;
18176 #endif
18177         if( status ) return status;
18178 #else
18179         /* Draft 4 pthreads */
18180         status = pthread_create( &t, pthread_attr_default, task, NULL );
18181         if( status ) return errno;
18182
18183         /* give thread a chance to complete */
18184         /* it should remain joinable and hence detachable */
18185         sleep( 1 );
18186
18187         status = pthread_detach( &t );
18188         if( status ) return errno;
18189 #endif
18190
18191 #ifdef HAVE_LINUX_THREADS
18192         pthread_kill_other_threads_np();
18193 #endif
18194
18195         return 0;
18196
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"; then :
18202   ol_cv_pthread_threads=yes
18203 else
18204   ol_cv_pthread_threads=no
18205 fi
18206 rm -f core conftest.err conftest.$ac_objext \
18207     conftest$ac_exeext conftest.$ac_ext
18208 else
18209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h.  */
18211
18212 /* pthread test headers */
18213 #include <pthread.h>
18214 #if HAVE_PTHREADS < 7
18215 #include <errno.h>
18216 #endif
18217 #ifndef NULL
18218 #define NULL (void*)0
18219 #endif
18220
18221 static void *task(p)
18222         void *p;
18223 {
18224         return (void *) (p == NULL);
18225 }
18226
18227
18228 int main(argc, argv)
18229         int argc;
18230         char **argv;
18231 {
18232
18233         /* pthread test function */
18234 #ifndef PTHREAD_CREATE_DETACHED
18235 #define PTHREAD_CREATE_DETACHED 1
18236 #endif
18237         pthread_t t;
18238         int status;
18239         int detach = PTHREAD_CREATE_DETACHED;
18240
18241 #if HAVE_PTHREADS > 4
18242         /* Final pthreads */
18243         pthread_attr_t attr;
18244
18245         status = pthread_attr_init(&attr);
18246         if( status ) return status;
18247
18248 #if HAVE_PTHREADS < 7
18249         status = pthread_attr_setdetachstate(&attr, &detach);
18250         if( status < 0 ) status = errno;
18251 #else
18252         status = pthread_attr_setdetachstate(&attr, detach);
18253 #endif
18254         if( status ) return status;
18255         status = pthread_create( &t, &attr, task, NULL );
18256 #if HAVE_PTHREADS < 7
18257         if( status < 0 ) status = errno;
18258 #endif
18259         if( status ) return status;
18260 #else
18261         /* Draft 4 pthreads */
18262         status = pthread_create( &t, pthread_attr_default, task, NULL );
18263         if( status ) return errno;
18264
18265         /* give thread a chance to complete */
18266         /* it should remain joinable and hence detachable */
18267         sleep( 1 );
18268
18269         status = pthread_detach( &t );
18270         if( status ) return errno;
18271 #endif
18272
18273 #ifdef HAVE_LINUX_THREADS
18274         pthread_kill_other_threads_np();
18275 #endif
18276
18277         return 0;
18278
18279 }
18280
18281 _ACEOF
18282 if ac_fn_c_try_run "$LINENO"; then :
18283   ol_cv_pthread_threads=yes
18284 else
18285   ol_cv_pthread_threads=no
18286 fi
18287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18288   conftest.$ac_objext conftest.beam conftest.$ac_ext
18289 fi
18290
18291
18292                 # restore the LIBS
18293                 LIBS="$ol_LIBS"
18294
18295 fi
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18297 $as_echo "$ol_cv_pthread_threads" >&6; }
18298
18299         if test $ol_cv_pthread_threads = yes ; then
18300                 ol_link_pthreads="-threads"
18301                 ol_link_threads=posix
18302         fi
18303 fi
18304
18305
18306                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18307 if test "$ol_link_threads" = no ; then
18308         # try -lpthreads -lmach -lexc -lc_r
18309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18310 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18311 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
18312   $as_echo_n "(cached) " >&6
18313 else
18314
18315                 # save the flags
18316                 ol_LIBS="$LIBS"
18317                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18318
18319                 if test "$cross_compiling" = yes; then :
18320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h.  */
18322
18323 /* pthread test headers */
18324 #include <pthread.h>
18325 #if HAVE_PTHREADS < 7
18326 #include <errno.h>
18327 #endif
18328 #ifndef NULL
18329 #define NULL (void*)0
18330 #endif
18331
18332 static void *task(p)
18333         void *p;
18334 {
18335         return (void *) (p == NULL);
18336 }
18337
18338 int
18339 main ()
18340 {
18341
18342         /* pthread test function */
18343 #ifndef PTHREAD_CREATE_DETACHED
18344 #define PTHREAD_CREATE_DETACHED 1
18345 #endif
18346         pthread_t t;
18347         int status;
18348         int detach = PTHREAD_CREATE_DETACHED;
18349
18350 #if HAVE_PTHREADS > 4
18351         /* Final pthreads */
18352         pthread_attr_t attr;
18353
18354         status = pthread_attr_init(&attr);
18355         if( status ) return status;
18356
18357 #if HAVE_PTHREADS < 7
18358         status = pthread_attr_setdetachstate(&attr, &detach);
18359         if( status < 0 ) status = errno;
18360 #else
18361         status = pthread_attr_setdetachstate(&attr, detach);
18362 #endif
18363         if( status ) return status;
18364         status = pthread_create( &t, &attr, task, NULL );
18365 #if HAVE_PTHREADS < 7
18366         if( status < 0 ) status = errno;
18367 #endif
18368         if( status ) return status;
18369 #else
18370         /* Draft 4 pthreads */
18371         status = pthread_create( &t, pthread_attr_default, task, NULL );
18372         if( status ) return errno;
18373
18374         /* give thread a chance to complete */
18375         /* it should remain joinable and hence detachable */
18376         sleep( 1 );
18377
18378         status = pthread_detach( &t );
18379         if( status ) return errno;
18380 #endif
18381
18382 #ifdef HAVE_LINUX_THREADS
18383         pthread_kill_other_threads_np();
18384 #endif
18385
18386         return 0;
18387
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 if ac_fn_c_try_link "$LINENO"; then :
18393   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18394 else
18395   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18396 fi
18397 rm -f core conftest.err conftest.$ac_objext \
18398     conftest$ac_exeext conftest.$ac_ext
18399 else
18400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h.  */
18402
18403 /* pthread test headers */
18404 #include <pthread.h>
18405 #if HAVE_PTHREADS < 7
18406 #include <errno.h>
18407 #endif
18408 #ifndef NULL
18409 #define NULL (void*)0
18410 #endif
18411
18412 static void *task(p)
18413         void *p;
18414 {
18415         return (void *) (p == NULL);
18416 }
18417
18418
18419 int main(argc, argv)
18420         int argc;
18421         char **argv;
18422 {
18423
18424         /* pthread test function */
18425 #ifndef PTHREAD_CREATE_DETACHED
18426 #define PTHREAD_CREATE_DETACHED 1
18427 #endif
18428         pthread_t t;
18429         int status;
18430         int detach = PTHREAD_CREATE_DETACHED;
18431
18432 #if HAVE_PTHREADS > 4
18433         /* Final pthreads */
18434         pthread_attr_t attr;
18435
18436         status = pthread_attr_init(&attr);
18437         if( status ) return status;
18438
18439 #if HAVE_PTHREADS < 7
18440         status = pthread_attr_setdetachstate(&attr, &detach);
18441         if( status < 0 ) status = errno;
18442 #else
18443         status = pthread_attr_setdetachstate(&attr, detach);
18444 #endif
18445         if( status ) return status;
18446         status = pthread_create( &t, &attr, task, NULL );
18447 #if HAVE_PTHREADS < 7
18448         if( status < 0 ) status = errno;
18449 #endif
18450         if( status ) return status;
18451 #else
18452         /* Draft 4 pthreads */
18453         status = pthread_create( &t, pthread_attr_default, task, NULL );
18454         if( status ) return errno;
18455
18456         /* give thread a chance to complete */
18457         /* it should remain joinable and hence detachable */
18458         sleep( 1 );
18459
18460         status = pthread_detach( &t );
18461         if( status ) return errno;
18462 #endif
18463
18464 #ifdef HAVE_LINUX_THREADS
18465         pthread_kill_other_threads_np();
18466 #endif
18467
18468         return 0;
18469
18470 }
18471
18472 _ACEOF
18473 if ac_fn_c_try_run "$LINENO"; then :
18474   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18475 else
18476   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18477 fi
18478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18479   conftest.$ac_objext conftest.beam conftest.$ac_ext
18480 fi
18481
18482
18483                 # restore the LIBS
18484                 LIBS="$ol_LIBS"
18485
18486 fi
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18488 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18489
18490         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18491                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18492                 ol_link_threads=posix
18493         fi
18494 fi
18495
18496                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18497 if test "$ol_link_threads" = no ; then
18498         # try -lpthreads -lmach -lexc
18499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18500 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18501 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
18502   $as_echo_n "(cached) " >&6
18503 else
18504
18505                 # save the flags
18506                 ol_LIBS="$LIBS"
18507                 LIBS="-lpthreads -lmach -lexc $LIBS"
18508
18509                 if test "$cross_compiling" = yes; then :
18510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h.  */
18512
18513 /* pthread test headers */
18514 #include <pthread.h>
18515 #if HAVE_PTHREADS < 7
18516 #include <errno.h>
18517 #endif
18518 #ifndef NULL
18519 #define NULL (void*)0
18520 #endif
18521
18522 static void *task(p)
18523         void *p;
18524 {
18525         return (void *) (p == NULL);
18526 }
18527
18528 int
18529 main ()
18530 {
18531
18532         /* pthread test function */
18533 #ifndef PTHREAD_CREATE_DETACHED
18534 #define PTHREAD_CREATE_DETACHED 1
18535 #endif
18536         pthread_t t;
18537         int status;
18538         int detach = PTHREAD_CREATE_DETACHED;
18539
18540 #if HAVE_PTHREADS > 4
18541         /* Final pthreads */
18542         pthread_attr_t attr;
18543
18544         status = pthread_attr_init(&attr);
18545         if( status ) return status;
18546
18547 #if HAVE_PTHREADS < 7
18548         status = pthread_attr_setdetachstate(&attr, &detach);
18549         if( status < 0 ) status = errno;
18550 #else
18551         status = pthread_attr_setdetachstate(&attr, detach);
18552 #endif
18553         if( status ) return status;
18554         status = pthread_create( &t, &attr, task, NULL );
18555 #if HAVE_PTHREADS < 7
18556         if( status < 0 ) status = errno;
18557 #endif
18558         if( status ) return status;
18559 #else
18560         /* Draft 4 pthreads */
18561         status = pthread_create( &t, pthread_attr_default, task, NULL );
18562         if( status ) return errno;
18563
18564         /* give thread a chance to complete */
18565         /* it should remain joinable and hence detachable */
18566         sleep( 1 );
18567
18568         status = pthread_detach( &t );
18569         if( status ) return errno;
18570 #endif
18571
18572 #ifdef HAVE_LINUX_THREADS
18573         pthread_kill_other_threads_np();
18574 #endif
18575
18576         return 0;
18577
18578   ;
18579   return 0;
18580 }
18581 _ACEOF
18582 if ac_fn_c_try_link "$LINENO"; then :
18583   ol_cv_pthread_lpthreads_lmach_lexc=yes
18584 else
18585   ol_cv_pthread_lpthreads_lmach_lexc=no
18586 fi
18587 rm -f core conftest.err conftest.$ac_objext \
18588     conftest$ac_exeext conftest.$ac_ext
18589 else
18590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h.  */
18592
18593 /* pthread test headers */
18594 #include <pthread.h>
18595 #if HAVE_PTHREADS < 7
18596 #include <errno.h>
18597 #endif
18598 #ifndef NULL
18599 #define NULL (void*)0
18600 #endif
18601
18602 static void *task(p)
18603         void *p;
18604 {
18605         return (void *) (p == NULL);
18606 }
18607
18608
18609 int main(argc, argv)
18610         int argc;
18611         char **argv;
18612 {
18613
18614         /* pthread test function */
18615 #ifndef PTHREAD_CREATE_DETACHED
18616 #define PTHREAD_CREATE_DETACHED 1
18617 #endif
18618         pthread_t t;
18619         int status;
18620         int detach = PTHREAD_CREATE_DETACHED;
18621
18622 #if HAVE_PTHREADS > 4
18623         /* Final pthreads */
18624         pthread_attr_t attr;
18625
18626         status = pthread_attr_init(&attr);
18627         if( status ) return status;
18628
18629 #if HAVE_PTHREADS < 7
18630         status = pthread_attr_setdetachstate(&attr, &detach);
18631         if( status < 0 ) status = errno;
18632 #else
18633         status = pthread_attr_setdetachstate(&attr, detach);
18634 #endif
18635         if( status ) return status;
18636         status = pthread_create( &t, &attr, task, NULL );
18637 #if HAVE_PTHREADS < 7
18638         if( status < 0 ) status = errno;
18639 #endif
18640         if( status ) return status;
18641 #else
18642         /* Draft 4 pthreads */
18643         status = pthread_create( &t, pthread_attr_default, task, NULL );
18644         if( status ) return errno;
18645
18646         /* give thread a chance to complete */
18647         /* it should remain joinable and hence detachable */
18648         sleep( 1 );
18649
18650         status = pthread_detach( &t );
18651         if( status ) return errno;
18652 #endif
18653
18654 #ifdef HAVE_LINUX_THREADS
18655         pthread_kill_other_threads_np();
18656 #endif
18657
18658         return 0;
18659
18660 }
18661
18662 _ACEOF
18663 if ac_fn_c_try_run "$LINENO"; then :
18664   ol_cv_pthread_lpthreads_lmach_lexc=yes
18665 else
18666   ol_cv_pthread_lpthreads_lmach_lexc=no
18667 fi
18668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18669   conftest.$ac_objext conftest.beam conftest.$ac_ext
18670 fi
18671
18672
18673                 # restore the LIBS
18674                 LIBS="$ol_LIBS"
18675
18676 fi
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18678 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18679
18680         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18681                 ol_link_pthreads="-lpthreads -lmach -lexc"
18682                 ol_link_threads=posix
18683         fi
18684 fi
18685
18686                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18687 if test "$ol_link_threads" = no ; then
18688         # try -lpthreads -lexc
18689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18690 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18691 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
18692   $as_echo_n "(cached) " >&6
18693 else
18694
18695                 # save the flags
18696                 ol_LIBS="$LIBS"
18697                 LIBS="-lpthreads -lexc $LIBS"
18698
18699                 if test "$cross_compiling" = yes; then :
18700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h.  */
18702
18703 /* pthread test headers */
18704 #include <pthread.h>
18705 #if HAVE_PTHREADS < 7
18706 #include <errno.h>
18707 #endif
18708 #ifndef NULL
18709 #define NULL (void*)0
18710 #endif
18711
18712 static void *task(p)
18713         void *p;
18714 {
18715         return (void *) (p == NULL);
18716 }
18717
18718 int
18719 main ()
18720 {
18721
18722         /* pthread test function */
18723 #ifndef PTHREAD_CREATE_DETACHED
18724 #define PTHREAD_CREATE_DETACHED 1
18725 #endif
18726         pthread_t t;
18727         int status;
18728         int detach = PTHREAD_CREATE_DETACHED;
18729
18730 #if HAVE_PTHREADS > 4
18731         /* Final pthreads */
18732         pthread_attr_t attr;
18733
18734         status = pthread_attr_init(&attr);
18735         if( status ) return status;
18736
18737 #if HAVE_PTHREADS < 7
18738         status = pthread_attr_setdetachstate(&attr, &detach);
18739         if( status < 0 ) status = errno;
18740 #else
18741         status = pthread_attr_setdetachstate(&attr, detach);
18742 #endif
18743         if( status ) return status;
18744         status = pthread_create( &t, &attr, task, NULL );
18745 #if HAVE_PTHREADS < 7
18746         if( status < 0 ) status = errno;
18747 #endif
18748         if( status ) return status;
18749 #else
18750         /* Draft 4 pthreads */
18751         status = pthread_create( &t, pthread_attr_default, task, NULL );
18752         if( status ) return errno;
18753
18754         /* give thread a chance to complete */
18755         /* it should remain joinable and hence detachable */
18756         sleep( 1 );
18757
18758         status = pthread_detach( &t );
18759         if( status ) return errno;
18760 #endif
18761
18762 #ifdef HAVE_LINUX_THREADS
18763         pthread_kill_other_threads_np();
18764 #endif
18765
18766         return 0;
18767
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 if ac_fn_c_try_link "$LINENO"; then :
18773   ol_cv_pthread_lpthreads_lexc=yes
18774 else
18775   ol_cv_pthread_lpthreads_lexc=no
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext \
18778     conftest$ac_exeext conftest.$ac_ext
18779 else
18780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h.  */
18782
18783 /* pthread test headers */
18784 #include <pthread.h>
18785 #if HAVE_PTHREADS < 7
18786 #include <errno.h>
18787 #endif
18788 #ifndef NULL
18789 #define NULL (void*)0
18790 #endif
18791
18792 static void *task(p)
18793         void *p;
18794 {
18795         return (void *) (p == NULL);
18796 }
18797
18798
18799 int main(argc, argv)
18800         int argc;
18801         char **argv;
18802 {
18803
18804         /* pthread test function */
18805 #ifndef PTHREAD_CREATE_DETACHED
18806 #define PTHREAD_CREATE_DETACHED 1
18807 #endif
18808         pthread_t t;
18809         int status;
18810         int detach = PTHREAD_CREATE_DETACHED;
18811
18812 #if HAVE_PTHREADS > 4
18813         /* Final pthreads */
18814         pthread_attr_t attr;
18815
18816         status = pthread_attr_init(&attr);
18817         if( status ) return status;
18818
18819 #if HAVE_PTHREADS < 7
18820         status = pthread_attr_setdetachstate(&attr, &detach);
18821         if( status < 0 ) status = errno;
18822 #else
18823         status = pthread_attr_setdetachstate(&attr, detach);
18824 #endif
18825         if( status ) return status;
18826         status = pthread_create( &t, &attr, task, NULL );
18827 #if HAVE_PTHREADS < 7
18828         if( status < 0 ) status = errno;
18829 #endif
18830         if( status ) return status;
18831 #else
18832         /* Draft 4 pthreads */
18833         status = pthread_create( &t, pthread_attr_default, task, NULL );
18834         if( status ) return errno;
18835
18836         /* give thread a chance to complete */
18837         /* it should remain joinable and hence detachable */
18838         sleep( 1 );
18839
18840         status = pthread_detach( &t );
18841         if( status ) return errno;
18842 #endif
18843
18844 #ifdef HAVE_LINUX_THREADS
18845         pthread_kill_other_threads_np();
18846 #endif
18847
18848         return 0;
18849
18850 }
18851
18852 _ACEOF
18853 if ac_fn_c_try_run "$LINENO"; then :
18854   ol_cv_pthread_lpthreads_lexc=yes
18855 else
18856   ol_cv_pthread_lpthreads_lexc=no
18857 fi
18858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18859   conftest.$ac_objext conftest.beam conftest.$ac_ext
18860 fi
18861
18862
18863                 # restore the LIBS
18864                 LIBS="$ol_LIBS"
18865
18866 fi
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18868 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18869
18870         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18871                 ol_link_pthreads="-lpthreads -lexc"
18872                 ol_link_threads=posix
18873         fi
18874 fi
18875
18876
18877                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18878 if test "$ol_link_threads" = no ; then
18879         # try -lpthreads
18880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18881 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18882 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
18883   $as_echo_n "(cached) " >&6
18884 else
18885
18886                 # save the flags
18887                 ol_LIBS="$LIBS"
18888                 LIBS="-lpthreads $LIBS"
18889
18890                 if test "$cross_compiling" = yes; then :
18891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h.  */
18893
18894 /* pthread test headers */
18895 #include <pthread.h>
18896 #if HAVE_PTHREADS < 7
18897 #include <errno.h>
18898 #endif
18899 #ifndef NULL
18900 #define NULL (void*)0
18901 #endif
18902
18903 static void *task(p)
18904         void *p;
18905 {
18906         return (void *) (p == NULL);
18907 }
18908
18909 int
18910 main ()
18911 {
18912
18913         /* pthread test function */
18914 #ifndef PTHREAD_CREATE_DETACHED
18915 #define PTHREAD_CREATE_DETACHED 1
18916 #endif
18917         pthread_t t;
18918         int status;
18919         int detach = PTHREAD_CREATE_DETACHED;
18920
18921 #if HAVE_PTHREADS > 4
18922         /* Final pthreads */
18923         pthread_attr_t attr;
18924
18925         status = pthread_attr_init(&attr);
18926         if( status ) return status;
18927
18928 #if HAVE_PTHREADS < 7
18929         status = pthread_attr_setdetachstate(&attr, &detach);
18930         if( status < 0 ) status = errno;
18931 #else
18932         status = pthread_attr_setdetachstate(&attr, detach);
18933 #endif
18934         if( status ) return status;
18935         status = pthread_create( &t, &attr, task, NULL );
18936 #if HAVE_PTHREADS < 7
18937         if( status < 0 ) status = errno;
18938 #endif
18939         if( status ) return status;
18940 #else
18941         /* Draft 4 pthreads */
18942         status = pthread_create( &t, pthread_attr_default, task, NULL );
18943         if( status ) return errno;
18944
18945         /* give thread a chance to complete */
18946         /* it should remain joinable and hence detachable */
18947         sleep( 1 );
18948
18949         status = pthread_detach( &t );
18950         if( status ) return errno;
18951 #endif
18952
18953 #ifdef HAVE_LINUX_THREADS
18954         pthread_kill_other_threads_np();
18955 #endif
18956
18957         return 0;
18958
18959   ;
18960   return 0;
18961 }
18962 _ACEOF
18963 if ac_fn_c_try_link "$LINENO"; then :
18964   ol_cv_pthread_lib_lpthreads=yes
18965 else
18966   ol_cv_pthread_lib_lpthreads=no
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext \
18969     conftest$ac_exeext conftest.$ac_ext
18970 else
18971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h.  */
18973
18974 /* pthread test headers */
18975 #include <pthread.h>
18976 #if HAVE_PTHREADS < 7
18977 #include <errno.h>
18978 #endif
18979 #ifndef NULL
18980 #define NULL (void*)0
18981 #endif
18982
18983 static void *task(p)
18984         void *p;
18985 {
18986         return (void *) (p == NULL);
18987 }
18988
18989
18990 int main(argc, argv)
18991         int argc;
18992         char **argv;
18993 {
18994
18995         /* pthread test function */
18996 #ifndef PTHREAD_CREATE_DETACHED
18997 #define PTHREAD_CREATE_DETACHED 1
18998 #endif
18999         pthread_t t;
19000         int status;
19001         int detach = PTHREAD_CREATE_DETACHED;
19002
19003 #if HAVE_PTHREADS > 4
19004         /* Final pthreads */
19005         pthread_attr_t attr;
19006
19007         status = pthread_attr_init(&attr);
19008         if( status ) return status;
19009
19010 #if HAVE_PTHREADS < 7
19011         status = pthread_attr_setdetachstate(&attr, &detach);
19012         if( status < 0 ) status = errno;
19013 #else
19014         status = pthread_attr_setdetachstate(&attr, detach);
19015 #endif
19016         if( status ) return status;
19017         status = pthread_create( &t, &attr, task, NULL );
19018 #if HAVE_PTHREADS < 7
19019         if( status < 0 ) status = errno;
19020 #endif
19021         if( status ) return status;
19022 #else
19023         /* Draft 4 pthreads */
19024         status = pthread_create( &t, pthread_attr_default, task, NULL );
19025         if( status ) return errno;
19026
19027         /* give thread a chance to complete */
19028         /* it should remain joinable and hence detachable */
19029         sleep( 1 );
19030
19031         status = pthread_detach( &t );
19032         if( status ) return errno;
19033 #endif
19034
19035 #ifdef HAVE_LINUX_THREADS
19036         pthread_kill_other_threads_np();
19037 #endif
19038
19039         return 0;
19040
19041 }
19042
19043 _ACEOF
19044 if ac_fn_c_try_run "$LINENO"; then :
19045   ol_cv_pthread_lib_lpthreads=yes
19046 else
19047   ol_cv_pthread_lib_lpthreads=no
19048 fi
19049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19050   conftest.$ac_objext conftest.beam conftest.$ac_ext
19051 fi
19052
19053
19054                 # restore the LIBS
19055                 LIBS="$ol_LIBS"
19056
19057 fi
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19059 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19060
19061         if test $ol_cv_pthread_lib_lpthreads = yes ; then
19062                 ol_link_pthreads="-lpthreads"
19063                 ol_link_threads=posix
19064         fi
19065 fi
19066
19067
19068                 if test $ol_link_threads != no ; then
19069                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19070
19071                                                 save_CPPFLAGS="$CPPFLAGS"
19072                         save_LIBS="$LIBS"
19073                         LIBS="$LTHREAD_LIBS $LIBS"
19074
19075                                                                                                 for ac_func in sched_yield pthread_yield thr_yield
19076 do :
19077   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19079 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19080   cat >>confdefs.h <<_ACEOF
19081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19082 _ACEOF
19083
19084 fi
19085 done
19086
19087
19088                         if test $ac_cv_func_sched_yield = no &&
19089                            test $ac_cv_func_pthread_yield = no &&
19090                            test $ac_cv_func_thr_yield = no ; then
19091                                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19092 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19093 if ${ac_cv_lib_rt_sched_yield+:} false; then :
19094   $as_echo_n "(cached) " >&6
19095 else
19096   ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lrt  $LIBS"
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h.  */
19100
19101 /* Override any GCC internal prototype to avoid an error.
19102    Use char because int might match the return type of a GCC
19103    builtin and then its argument prototype would still apply.  */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 char sched_yield ();
19108 int
19109 main ()
19110 {
19111 return sched_yield ();
19112   ;
19113   return 0;
19114 }
19115 _ACEOF
19116 if ac_fn_c_try_link "$LINENO"; then :
19117   ac_cv_lib_rt_sched_yield=yes
19118 else
19119   ac_cv_lib_rt_sched_yield=no
19120 fi
19121 rm -f core conftest.err conftest.$ac_objext \
19122     conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19124 fi
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19126 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19127 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
19128   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19129
19130 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19131
19132                                         ac_cv_func_sched_yield=yes
19133 else
19134   ac_cv_func_sched_yield=no
19135 fi
19136
19137                         fi
19138                         if test $ac_cv_func_sched_yield = no &&
19139                            test $ac_cv_func_pthread_yield = no &&
19140                            test "$ac_cv_func_thr_yield" = no ; then
19141                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19142 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19143                         fi
19144
19145                                                 for ac_func in pthread_kill
19146 do :
19147   ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19148 if test "x$ac_cv_func_pthread_kill" = xyes; then :
19149   cat >>confdefs.h <<_ACEOF
19150 #define HAVE_PTHREAD_KILL 1
19151 _ACEOF
19152
19153 fi
19154 done
19155
19156
19157                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19158 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19159 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
19160   $as_echo_n "(cached) " >&6
19161 else
19162
19163                                                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h.  */
19165
19166 #include <pthread.h>
19167 pthread_rwlock_t rwlock;
19168
19169 int
19170 main ()
19171 {
19172 pthread_rwlock_destroy(&rwlock);
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 if ac_fn_c_try_link "$LINENO"; then :
19178   ol_cv_func_pthread_rwlock_destroy=yes
19179 else
19180   ol_cv_func_pthread_rwlock_destroy=no
19181 fi
19182 rm -f core conftest.err conftest.$ac_objext \
19183     conftest$ac_exeext conftest.$ac_ext
19184
19185 fi
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19187 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19188                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19189
19190 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19191
19192                         fi
19193
19194                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19195 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19196 if ${ol_cv_func_pthread_detach+:} false; then :
19197   $as_echo_n "(cached) " >&6
19198 else
19199
19200                                                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h.  */
19202
19203 #include <pthread.h>
19204 #ifndef NULL
19205 #define NULL (void*)0
19206 #endif
19207
19208 int
19209 main ()
19210 {
19211 pthread_detach(NULL);
19212   ;
19213   return 0;
19214 }
19215 _ACEOF
19216 if ac_fn_c_try_link "$LINENO"; then :
19217   ol_cv_func_pthread_detach=yes
19218 else
19219   ol_cv_func_pthread_detach=no
19220 fi
19221 rm -f core conftest.err conftest.$ac_objext \
19222     conftest$ac_exeext conftest.$ac_ext
19223
19224 fi
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19226 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19227
19228                         if test $ol_cv_func_pthread_detach = no ; then
19229                                 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
19230                         fi
19231
19232
19233 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19234
19235
19236                                                 for ac_func in \
19237                                 pthread_setconcurrency \
19238                                 pthread_getconcurrency \
19239                                 thr_setconcurrency \
19240                                 thr_getconcurrency \
19241
19242 do :
19243   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19246   cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19248 _ACEOF
19249
19250 fi
19251 done
19252
19253
19254
19255         for ac_func in pthread_kill_other_threads_np
19256 do :
19257   ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19258 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
19259   cat >>confdefs.h <<_ACEOF
19260 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19261 _ACEOF
19262
19263 fi
19264 done
19265
19266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19267 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19268 if ${ol_cv_sys_linux_threads+:} false; then :
19269   $as_echo_n "(cached) " >&6
19270 else
19271   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19272 fi
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19274 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19275
19276
19277
19278
19279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19280 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19281 if ${ol_cv_linux_threads+:} false; then :
19282   $as_echo_n "(cached) " >&6
19283 else
19284
19285                 if test $ol_cv_header_linux_threads = yes &&
19286                    test $ol_cv_sys_linux_threads = yes; then
19287                         ol_cv_linux_threads=yes
19288                 elif test $ol_cv_header_linux_threads = no &&
19289                      test $ol_cv_sys_linux_threads = no; then
19290                         ol_cv_linux_threads=no
19291                 else
19292                         ol_cv_linux_threads=error
19293                 fi
19294
19295 fi
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19297 $as_echo "$ol_cv_linux_threads" >&6; }
19298
19299
19300                         if test $ol_cv_linux_threads = error; then
19301                                 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
19302                         fi
19303
19304                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19305 $as_echo_n "checking if pthread_create() works... " >&6; }
19306 if ${ol_cv_pthread_create_works+:} false; then :
19307   $as_echo_n "(cached) " >&6
19308 else
19309
19310                         if test "$cross_compiling" = yes; then :
19311                                 ol_cv_pthread_create_works=yes
19312 else
19313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h.  */
19315
19316 /* pthread test headers */
19317 #include <pthread.h>
19318 #if HAVE_PTHREADS < 7
19319 #include <errno.h>
19320 #endif
19321 #ifndef NULL
19322 #define NULL (void*)0
19323 #endif
19324
19325 static void *task(p)
19326         void *p;
19327 {
19328         return (void *) (p == NULL);
19329 }
19330
19331
19332 int main(argc, argv)
19333         int argc;
19334         char **argv;
19335 {
19336
19337         /* pthread test function */
19338 #ifndef PTHREAD_CREATE_DETACHED
19339 #define PTHREAD_CREATE_DETACHED 1
19340 #endif
19341         pthread_t t;
19342         int status;
19343         int detach = PTHREAD_CREATE_DETACHED;
19344
19345 #if HAVE_PTHREADS > 4
19346         /* Final pthreads */
19347         pthread_attr_t attr;
19348
19349         status = pthread_attr_init(&attr);
19350         if( status ) return status;
19351
19352 #if HAVE_PTHREADS < 7
19353         status = pthread_attr_setdetachstate(&attr, &detach);
19354         if( status < 0 ) status = errno;
19355 #else
19356         status = pthread_attr_setdetachstate(&attr, detach);
19357 #endif
19358         if( status ) return status;
19359         status = pthread_create( &t, &attr, task, NULL );
19360 #if HAVE_PTHREADS < 7
19361         if( status < 0 ) status = errno;
19362 #endif
19363         if( status ) return status;
19364 #else
19365         /* Draft 4 pthreads */
19366         status = pthread_create( &t, pthread_attr_default, task, NULL );
19367         if( status ) return errno;
19368
19369         /* give thread a chance to complete */
19370         /* it should remain joinable and hence detachable */
19371         sleep( 1 );
19372
19373         status = pthread_detach( &t );
19374         if( status ) return errno;
19375 #endif
19376
19377 #ifdef HAVE_LINUX_THREADS
19378         pthread_kill_other_threads_np();
19379 #endif
19380
19381         return 0;
19382
19383 }
19384
19385 _ACEOF
19386 if ac_fn_c_try_run "$LINENO"; then :
19387   ol_cv_pthread_create_works=yes
19388 else
19389   ol_cv_pthread_create_works=no
19390 fi
19391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19392   conftest.$ac_objext conftest.beam conftest.$ac_ext
19393 fi
19394
19395 fi
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19397 $as_echo "$ol_cv_pthread_create_works" >&6; }
19398
19399                         if test $ol_cv_pthread_create_works = no ; then
19400                                 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
19401                         fi
19402
19403                         ol_replace_broken_yield=no
19404
19405                         if test $ol_replace_broken_yield = yes ; then
19406
19407 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19408
19409                         fi
19410
19411                                                 if test $ol_with_yielding_select = auto ; then
19412                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19413 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19414 if ${ol_cv_pthread_select_yields+:} false; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417
19418                                 if test "$cross_compiling" = yes; then :
19419   ol_cv_pthread_select_yields=cross
19420 else
19421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422 /* end confdefs.h.  */
19423
19424 #include <sys/types.h>
19425 #include <sys/time.h>
19426 #include <unistd.h>
19427 #include <pthread.h>
19428 #ifndef NULL
19429 #define NULL (void*) 0
19430 #endif
19431
19432 static int fildes[2];
19433
19434 static void *task(p)
19435         void *p;
19436 {
19437         int i;
19438         struct timeval tv;
19439
19440         fd_set rfds;
19441
19442         tv.tv_sec=10;
19443         tv.tv_usec=0;
19444
19445         FD_ZERO(&rfds);
19446         FD_SET(fildes[0], &rfds);
19447
19448         /* we're not interested in any fds */
19449         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19450
19451         if(i < 0) {
19452                 perror("select");
19453                 exit(10);
19454         }
19455
19456         exit(0); /* if we exit here, the select blocked the whole process */
19457 }
19458
19459 int main(argc, argv)
19460         int argc;
19461         char **argv;
19462 {
19463         pthread_t t;
19464
19465         /* create a pipe to select */
19466         if(pipe(&fildes[0])) {
19467                 perror("select");
19468                 exit(1);
19469         }
19470
19471 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19472         (void) pthread_setconcurrency(2);
19473 #else
19474 #ifdef HAVE_THR_SETCONCURRENCY
19475         /* Set Solaris LWP concurrency to 2 */
19476         thr_setconcurrency(2);
19477 #endif
19478 #endif
19479
19480 #if HAVE_PTHREADS < 6
19481         pthread_create(&t, pthread_attr_default, task, NULL);
19482 #else
19483         pthread_create(&t, NULL, task, NULL);
19484 #endif
19485
19486         /* make sure task runs first */
19487 #ifdef HAVE_THR_YIELD
19488         thr_yield();
19489 #elif defined( HAVE_SCHED_YIELD )
19490         sched_yield();
19491 #elif defined( HAVE_PTHREAD_YIELD )
19492         pthread_yield();
19493 #endif
19494
19495         exit(2);
19496 }
19497 _ACEOF
19498 if ac_fn_c_try_run "$LINENO"; then :
19499   ol_cv_pthread_select_yields=no
19500 else
19501   ol_cv_pthread_select_yields=yes
19502 fi
19503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19504   conftest.$ac_objext conftest.beam conftest.$ac_ext
19505 fi
19506
19507 fi
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19509 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19510
19511                                 if test $ol_cv_pthread_select_yields = cross ; then
19512                                         as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19513                                 fi
19514
19515                                 if test $ol_cv_pthread_select_yields = yes ; then
19516                                         ol_with_yielding_select=yes
19517                                 fi
19518                         fi
19519
19520                                                 CPPFLAGS="$save_CPPFLAGS"
19521                         LIBS="$save_LIBS"
19522                 else
19523                         as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
19524                 fi
19525         fi
19526
19527         if test $ol_with_threads = posix ; then
19528                 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
19529         fi
19530         ;;
19531 esac
19532
19533 case $ol_with_threads in auto | yes | mach)
19534
19535                 for ac_header in mach/cthreads.h cthreads.h
19536 do :
19537   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19538 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19540   cat >>confdefs.h <<_ACEOF
19541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19542 _ACEOF
19543
19544 fi
19545
19546 done
19547
19548         if test $ac_cv_header_mach_cthreads_h = yes ; then
19549                 ol_with_threads=found
19550
19551                                 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19552 if test "x$ac_cv_func_cthread_fork" = xyes; then :
19553   ol_link_threads=yes
19554 fi
19555
19556
19557                 if test $ol_link_threads = no ; then
19558                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19559 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19560 if ${ol_cv_cthread_all_load+:} false; then :
19561   $as_echo_n "(cached) " >&6
19562 else
19563
19564                                                                 save_LIBS="$LIBS"
19565                                 LIBS="-all_load $LIBS"
19566                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h.  */
19568 #include <mach/cthreads.h>
19569 int
19570 main ()
19571 {
19572
19573                                         cthread_fork((void *)0, (void *)0);
19574
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 if ac_fn_c_try_link "$LINENO"; then :
19580   ol_cv_cthread_all_load=yes
19581 else
19582   ol_cv_cthread_all_load=no
19583 fi
19584 rm -f core conftest.err conftest.$ac_objext \
19585     conftest$ac_exeext conftest.$ac_ext
19586                                                                 LIBS="$save_LIBS"
19587
19588 fi
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19590 $as_echo "$ol_cv_cthread_all_load" >&6; }
19591
19592                         if test $ol_cv_cthread_all_load = yes ; then
19593                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19594                                 ol_link_threads=mach
19595                                 ol_with_threads=found
19596                         fi
19597                 fi
19598
19599         elif test $ac_cv_header_cthreads_h = yes ; then
19600
19601                 ol_with_threads=found
19602
19603                                 save_LIBS="$LIBS"
19604                 LIBS="$LIBS -lthreads"
19605                 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19606 if test "x$ac_cv_func_cthread_fork" = xyes; then :
19607   ol_link_threads=yes
19608 fi
19609
19610                 LIBS="$save_LIBS"
19611
19612                 if test $ol_link_threads = yes ; then
19613                         LTHREAD_LIBS="-lthreads"
19614                         ol_link_threads=mach
19615                         ol_with_threads=found
19616                 else
19617                         as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
19618                 fi
19619
19620         elif test $ol_with_threads = mach ; then
19621                 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
19622         fi
19623
19624         if test $ol_link_threads = mach ; then
19625
19626 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19627
19628         elif test $ol_with_threads = found ; then
19629                 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
19630         fi
19631         ;;
19632 esac
19633
19634 case $ol_with_threads in auto | yes | pth)
19635
19636         for ac_header in pth.h
19637 do :
19638   ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19639 if test "x$ac_cv_header_pth_h" = xyes; then :
19640   cat >>confdefs.h <<_ACEOF
19641 #define HAVE_PTH_H 1
19642 _ACEOF
19643
19644 fi
19645
19646 done
19647
19648
19649         if test $ac_cv_header_pth_h = yes ; then
19650                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19651 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19652 if ${ac_cv_lib_pth_pth_version+:} false; then :
19653   $as_echo_n "(cached) " >&6
19654 else
19655   ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-lpth  $LIBS"
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h.  */
19659
19660 /* Override any GCC internal prototype to avoid an error.
19661    Use char because int might match the return type of a GCC
19662    builtin and then its argument prototype would still apply.  */
19663 #ifdef __cplusplus
19664 extern "C"
19665 #endif
19666 char pth_version ();
19667 int
19668 main ()
19669 {
19670 return pth_version ();
19671   ;
19672   return 0;
19673 }
19674 _ACEOF
19675 if ac_fn_c_try_link "$LINENO"; then :
19676   ac_cv_lib_pth_pth_version=yes
19677 else
19678   ac_cv_lib_pth_pth_version=no
19679 fi
19680 rm -f core conftest.err conftest.$ac_objext \
19681     conftest$ac_exeext conftest.$ac_ext
19682 LIBS=$ac_check_lib_save_LIBS
19683 fi
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19685 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19686 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
19687   have_pth=yes
19688 else
19689   have_pth=no
19690 fi
19691
19692
19693                 if test $have_pth = yes ; then
19694
19695 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19696
19697                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19698                         ol_link_threads=pth
19699                         ol_with_threads=found
19700
19701                         if test $ol_with_yielding_select = auto ; then
19702                                 ol_with_yielding_select=yes
19703                         fi
19704                 fi
19705         fi
19706         ;;
19707 esac
19708
19709 case $ol_with_threads in auto | yes | lwp)
19710
19711                 for ac_header in thread.h synch.h
19712 do :
19713   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19716   cat >>confdefs.h <<_ACEOF
19717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19718 _ACEOF
19719
19720 fi
19721
19722 done
19723
19724         if test $ac_cv_header_thread_h = yes &&
19725            test $ac_cv_header_synch_h = yes ; then
19726                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19727 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19728 if ${ac_cv_lib_thread_thr_create+:} false; then :
19729   $as_echo_n "(cached) " >&6
19730 else
19731   ac_check_lib_save_LIBS=$LIBS
19732 LIBS="-lthread  $LIBS"
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h.  */
19735
19736 /* Override any GCC internal prototype to avoid an error.
19737    Use char because int might match the return type of a GCC
19738    builtin and then its argument prototype would still apply.  */
19739 #ifdef __cplusplus
19740 extern "C"
19741 #endif
19742 char thr_create ();
19743 int
19744 main ()
19745 {
19746 return thr_create ();
19747   ;
19748   return 0;
19749 }
19750 _ACEOF
19751 if ac_fn_c_try_link "$LINENO"; then :
19752   ac_cv_lib_thread_thr_create=yes
19753 else
19754   ac_cv_lib_thread_thr_create=no
19755 fi
19756 rm -f core conftest.err conftest.$ac_objext \
19757     conftest$ac_exeext conftest.$ac_ext
19758 LIBS=$ac_check_lib_save_LIBS
19759 fi
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19761 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19762 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
19763   have_thr=yes
19764 else
19765   have_thr=no
19766 fi
19767
19768
19769                 if test $have_thr = yes ; then
19770
19771 $as_echo "#define HAVE_THR 1" >>confdefs.h
19772
19773                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19774                         ol_link_threads=thr
19775
19776                         if test $ol_with_yielding_select = auto ; then
19777                                 ol_with_yielding_select=yes
19778                         fi
19779
19780                                                 for ac_func in \
19781                                 thr_setconcurrency \
19782                                 thr_getconcurrency \
19783
19784 do :
19785   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19788   cat >>confdefs.h <<_ACEOF
19789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19790 _ACEOF
19791
19792 fi
19793 done
19794
19795                 fi
19796         fi
19797         ;;
19798 esac
19799
19800 if test $ol_with_yielding_select = yes ; then
19801
19802 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19803
19804 fi
19805
19806 if test $ol_with_threads = manual ; then
19807                 ol_link_threads=yes
19808
19809         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19810 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19811
19812         for ac_header in pthread.h sched.h
19813 do :
19814   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19817   cat >>confdefs.h <<_ACEOF
19818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19819 _ACEOF
19820
19821 fi
19822
19823 done
19824
19825         for ac_func in sched_yield pthread_yield
19826 do :
19827   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19830   cat >>confdefs.h <<_ACEOF
19831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19832 _ACEOF
19833
19834 fi
19835 done
19836
19837
19838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19839 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19840 if ${ol_cv_header_linux_threads+:} false; then :
19841   $as_echo_n "(cached) " >&6
19842 else
19843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h.  */
19845 #include <pthread.h>
19846 _ACEOF
19847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19848   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19849   ol_cv_header_linux_threads=yes
19850 else
19851   ol_cv_header_linux_threads=no
19852 fi
19853 rm -f conftest*
19854
19855
19856 fi
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19858 $as_echo "$ol_cv_header_linux_threads" >&6; }
19859         if test $ol_cv_header_linux_threads = yes; then
19860
19861 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19862
19863         fi
19864
19865
19866         for ac_header in mach/cthreads.h
19867 do :
19868   ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19869 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
19870   cat >>confdefs.h <<_ACEOF
19871 #define HAVE_MACH_CTHREADS_H 1
19872 _ACEOF
19873
19874 fi
19875
19876 done
19877
19878         for ac_header in thread.h synch.h
19879 do :
19880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19881 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19883   cat >>confdefs.h <<_ACEOF
19884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19885 _ACEOF
19886
19887 fi
19888
19889 done
19890
19891 fi
19892
19893 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19894                         $as_echo "#define REENTRANT 1" >>confdefs.h
19895
19896         $as_echo "#define _REENTRANT 1" >>confdefs.h
19897
19898         $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19899
19900         $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19901
19902         $as_echo "#define THREADSAFE 1" >>confdefs.h
19903
19904         $as_echo "#define _THREADSAFE 1" >>confdefs.h
19905
19906         $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19907
19908
19909                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19910 $as_echo_n "checking for thread specific errno... " >&6; }
19911 if ${ol_cv_errno_thread_specific+:} false; then :
19912   $as_echo_n "(cached) " >&6
19913 else
19914
19915                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h.  */
19917 #include <errno.h>
19918 int
19919 main ()
19920 {
19921 errno = 0;
19922   ;
19923   return 0;
19924 }
19925 _ACEOF
19926 if ac_fn_c_try_link "$LINENO"; then :
19927   ol_cv_errno_thread_specific=yes
19928 else
19929   ol_cv_errno_thread_specific=no
19930 fi
19931 rm -f core conftest.err conftest.$ac_objext \
19932     conftest$ac_exeext conftest.$ac_ext
19933
19934 fi
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19936 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19937
19938                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19939 $as_echo_n "checking for thread specific h_errno... " >&6; }
19940 if ${ol_cv_h_errno_thread_specific+:} false; then :
19941   $as_echo_n "(cached) " >&6
19942 else
19943
19944                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h.  */
19946 #include <netdb.h>
19947 int
19948 main ()
19949 {
19950 h_errno = 0;
19951   ;
19952   return 0;
19953 }
19954 _ACEOF
19955 if ac_fn_c_try_link "$LINENO"; then :
19956   ol_cv_h_errno_thread_specific=yes
19957 else
19958   ol_cv_h_errno_thread_specific=no
19959 fi
19960 rm -f core conftest.err conftest.$ac_objext \
19961     conftest$ac_exeext conftest.$ac_ext
19962
19963 fi
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19965 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19966
19967         if test $ol_cv_errno_thread_specific != yes ||
19968            test $ol_cv_h_errno_thread_specific != yes ; then
19969                 LIBS="$LTHREAD_LIBS $LIBS"
19970                 LTHREAD_LIBS=""
19971         fi
19972
19973 fi
19974
19975 if test $ol_link_threads = no ; then
19976         if test $ol_with_threads = yes ; then
19977                 as_fn_error $? "no suitable thread support" "$LINENO" 5
19978         fi
19979
19980         if test $ol_with_threads = auto ; then
19981                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
19982 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
19983                 ol_with_threads=no
19984         fi
19985
19986
19987 $as_echo "#define NO_THREADS 1" >>confdefs.h
19988
19989         LTHREAD_LIBS=""
19990         BUILD_THREAD=no
19991 else
19992         BUILD_THREAD=yes
19993 fi
19994
19995 if test $ol_link_threads != no ; then
19996
19997 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
19998
19999 fi
20000
20001 for ac_func in \
20002         ctime_r                 \
20003         gmtime_r localtime_r \
20004         gethostbyname_r gethostbyaddr_r \
20005
20006 do :
20007   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20010   cat >>confdefs.h <<_ACEOF
20011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20012 _ACEOF
20013
20014 fi
20015 done
20016
20017
20018 if test "$ac_cv_func_ctime_r" = no ; then
20019         ol_cv_func_ctime_r_nargs=0
20020 else
20021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20022 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20023 if ${ol_cv_func_ctime_r_nargs+:} false; then :
20024   $as_echo_n "(cached) " >&6
20025 else
20026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h.  */
20028 #include <time.h>
20029 int
20030 main ()
20031 {
20032 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20033   ;
20034   return 0;
20035 }
20036 _ACEOF
20037 if ac_fn_c_try_compile "$LINENO"; then :
20038   ol_cv_func_ctime_r_nargs3=yes
20039 else
20040   ol_cv_func_ctime_r_nargs3=no
20041 fi
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043
20044         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045 /* end confdefs.h.  */
20046 #include <time.h>
20047 int
20048 main ()
20049 {
20050 time_t ti; char *buffer; ctime_r(&ti,buffer);
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 if ac_fn_c_try_compile "$LINENO"; then :
20056   ol_cv_func_ctime_r_nargs2=yes
20057 else
20058   ol_cv_func_ctime_r_nargs2=no
20059 fi
20060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20061
20062         if test $ol_cv_func_ctime_r_nargs3 = yes &&
20063            test $ol_cv_func_ctime_r_nargs2 = no ; then
20064
20065                 ol_cv_func_ctime_r_nargs=3
20066
20067         elif test $ol_cv_func_ctime_r_nargs3 = no &&
20068              test $ol_cv_func_ctime_r_nargs2 = yes ; then
20069
20070                 ol_cv_func_ctime_r_nargs=2
20071
20072         else
20073                 ol_cv_func_ctime_r_nargs=0
20074         fi
20075
20076 fi
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20078 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20079
20080   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20081
20082 cat >>confdefs.h <<_ACEOF
20083 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20084 _ACEOF
20085
20086   fi
20087
20088 fi
20089
20090 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20092 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20093 if ${ol_cv_func_gethostbyname_r_nargs+:} false; then :
20094   $as_echo_n "(cached) " >&6
20095 else
20096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h.  */
20098 #include <sys/types.h>
20099 #include <sys/socket.h>
20100 #include <netinet/in.h>
20101 #include <netdb.h>
20102 #define BUFSIZE (sizeof(struct hostent)+10)
20103 int
20104 main ()
20105 {
20106 struct hostent hent; char buffer[BUFSIZE];
20107                 int bufsize=BUFSIZE;int h_errno;
20108                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20109                         buffer, bufsize, &h_errno);
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 if ac_fn_c_try_compile "$LINENO"; then :
20115   ol_cv_func_gethostbyname_r_nargs5=yes
20116 else
20117   ol_cv_func_gethostbyname_r_nargs5=no
20118 fi
20119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20120
20121         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h.  */
20123 #include <sys/types.h>
20124 #include <sys/socket.h>
20125 #include <netinet/in.h>
20126 #include <netdb.h>
20127 #define BUFSIZE (sizeof(struct hostent)+10)
20128 int
20129 main ()
20130 {
20131 struct hostent hent;struct hostent *rhent;
20132                 char buffer[BUFSIZE];
20133                 int bufsize=BUFSIZE;int h_errno;
20134                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20135                         &rhent, &h_errno);
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 if ac_fn_c_try_compile "$LINENO"; then :
20141   ol_cv_func_gethostbyname_r_nargs6=yes
20142 else
20143   ol_cv_func_gethostbyname_r_nargs6=no
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146
20147         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20148            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20149
20150                 ol_cv_func_gethostbyname_r_nargs=5
20151
20152         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20153              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20154
20155                 ol_cv_func_gethostbyname_r_nargs=6
20156
20157         else
20158                 ol_cv_func_gethostbyname_r_nargs=0
20159         fi
20160
20161 fi
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20163 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20164   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20165
20166 cat >>confdefs.h <<_ACEOF
20167 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20168 _ACEOF
20169
20170   fi
20171
20172 else
20173         ol_cv_func_gethostbyname_r_nargs=0
20174 fi
20175
20176 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20178 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20179 if ${ol_cv_func_gethostbyaddr_r_nargs+:} false; then :
20180   $as_echo_n "(cached) " >&6
20181 else
20182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h.  */
20184 #include <sys/types.h>
20185 #include <sys/socket.h>
20186 #include <netinet/in.h>
20187 #include <netdb.h>
20188 #define BUFSIZE (sizeof(struct hostent)+10)
20189 int
20190 main ()
20191 {
20192 struct hostent hent; char buffer[BUFSIZE];
20193             struct in_addr add;
20194             size_t alen=sizeof(struct in_addr);
20195             int bufsize=BUFSIZE;int h_errno;
20196                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20197                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 if ac_fn_c_try_compile "$LINENO"; then :
20203   ol_cv_func_gethostbyaddr_r_nargs7=yes
20204 else
20205   ol_cv_func_gethostbyaddr_r_nargs7=no
20206 fi
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208
20209         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h.  */
20211 #include <sys/types.h>
20212 #include <sys/socket.h>
20213 #include <netinet/in.h>
20214 #include <netdb.h>
20215 #define BUFSIZE (sizeof(struct hostent)+10)
20216 int
20217 main ()
20218 {
20219 struct hostent hent;
20220                 struct hostent *rhent; char buffer[BUFSIZE];
20221                 struct in_addr add;
20222                 size_t alen=sizeof(struct in_addr);
20223                 int bufsize=BUFSIZE;int h_errno;
20224                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20225                         alen, AF_INET, &hent, buffer, bufsize,
20226                         &rhent, &h_errno);
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 if ac_fn_c_try_compile "$LINENO"; then :
20232   ol_cv_func_gethostbyaddr_r_nargs8=yes
20233 else
20234   ol_cv_func_gethostbyaddr_r_nargs8=no
20235 fi
20236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237
20238         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20239            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20240
20241                 ol_cv_func_gethostbyaddr_r_nargs=7
20242
20243         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20244              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20245
20246                 ol_cv_func_gethostbyaddr_r_nargs=8
20247
20248         else
20249                 ol_cv_func_gethostbyaddr_r_nargs=0
20250         fi
20251
20252 fi
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20254 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20255   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20256
20257 cat >>confdefs.h <<_ACEOF
20258 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20259 _ACEOF
20260
20261   fi
20262
20263 else
20264         ol_cv_func_gethostbyaddr_r_nargs=0
20265 fi
20266
20267 ol_link_bdb=no
20268
20269 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20270         ol_cv_berkeley_db=no
20271 for ac_header in db.h
20272 do :
20273   ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20274 if test "x$ac_cv_header_db_h" = xyes; then :
20275   cat >>confdefs.h <<_ACEOF
20276 #define HAVE_DB_H 1
20277 _ACEOF
20278
20279 fi
20280
20281 done
20282
20283 if test $ac_cv_header_db_h = yes; then
20284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20285 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20286 if ${ol_cv_bdb_major+:} false; then :
20287   $as_echo_n "(cached) " >&6
20288 else
20289
20290         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h.  */
20292
20293 #include <db.h>
20294 #ifndef DB_VERSION_MAJOR
20295 #       define DB_VERSION_MAJOR 1
20296 #endif
20297 __db_version DB_VERSION_MAJOR
20298
20299 _ACEOF
20300         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20301         ol_cv_bdb_major=${3}
20302
20303 fi
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20305 $as_echo "$ol_cv_bdb_major" >&6; }
20306 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20307         as_fn_error $? "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20308 esac
20309
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20311 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20312 if ${ol_cv_bdb_minor+:} false; then :
20313   $as_echo_n "(cached) " >&6
20314 else
20315
20316         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h.  */
20318
20319 #include <db.h>
20320 #ifndef DB_VERSION_MINOR
20321 #       define DB_VERSION_MINOR 0
20322 #endif
20323 __db_version DB_VERSION_MINOR
20324
20325 _ACEOF
20326         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20327         ol_cv_bdb_minor=${3}
20328
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20331 $as_echo "$ol_cv_bdb_minor" >&6; }
20332 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20333         as_fn_error $? "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20334 esac
20335
20336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20337 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20338 if ${ol_cv_bdb_compat+:} false; then :
20339   $as_echo_n "(cached) " >&6
20340 else
20341
20342         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h.  */
20344
20345 #include <db.h>
20346
20347  /* this check could be improved */
20348 #ifndef DB_VERSION_MAJOR
20349 #       define DB_VERSION_MAJOR 1
20350 #endif
20351 #ifndef DB_VERSION_MINOR
20352 #       define DB_VERSION_MINOR 0
20353 #endif
20354
20355 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
20356
20357 /* require 4.4 or later */
20358 #if DB_VERSION_MM >= 0x0404
20359         __db_version_compat
20360 #endif
20361
20362 _ACEOF
20363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20364   $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20365   ol_cv_bdb_compat=yes
20366 else
20367   ol_cv_bdb_compat=no
20368 fi
20369 rm -f conftest*
20370
20371 fi
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20373 $as_echo "$ol_cv_bdb_compat" >&6; }
20374
20375
20376         if test $ol_cv_bdb_compat != yes ; then
20377                 as_fn_error $? "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20378         fi
20379
20380         ol_cv_lib_db=no
20381
20382 if test $ol_cv_bdb_major = 5 ; then
20383         if test $ol_cv_lib_db = no ; then
20384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20385 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20386 if ${ol_cv_db_db_5_dot_m+:} false; then :
20387   $as_echo_n "(cached) " >&6
20388 else
20389
20390         ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20391         ol_LIBS=$LIBS
20392         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20393
20394         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20395 /* end confdefs.h.  */
20396
20397 #ifdef HAVE_DB_185_H
20398 # include <db_185.h>
20399 #else
20400 # include <db.h>
20401 #endif
20402
20403 #ifndef DB_VERSION_MAJOR
20404 # define DB_VERSION_MAJOR 1
20405 #endif
20406
20407 #ifndef NULL
20408 #define NULL ((void*)0)
20409 #endif
20410
20411 int
20412 main ()
20413 {
20414
20415 #if DB_VERSION_MAJOR > 2
20416         db_env_create( NULL, 0 );
20417 #elif DB_VERSION_MAJOR > 1
20418         db_appexit( NULL );
20419 #else
20420         (void) dbopen( NULL, 0, 0, 0, NULL);
20421 #endif
20422
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 if ac_fn_c_try_link "$LINENO"; then :
20428   ol_cv_db_db_5_dot_m=yes
20429 else
20430   ol_cv_db_db_5_dot_m=no
20431 fi
20432 rm -f core conftest.err conftest.$ac_objext \
20433     conftest$ac_exeext conftest.$ac_ext
20434
20435         LIBS="$ol_LIBS"
20436
20437 fi
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20439 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20440
20441         if test $ol_cv_db_db_5_dot_m = yes ; then
20442                 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20443         fi
20444 fi
20445
20446         if test $ol_cv_lib_db = no ; then
20447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20448 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20449 if ${ol_cv_db_db5m+:} false; then :
20450   $as_echo_n "(cached) " >&6
20451 else
20452
20453         ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20454         ol_LIBS=$LIBS
20455         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20456
20457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h.  */
20459
20460 #ifdef HAVE_DB_185_H
20461 # include <db_185.h>
20462 #else
20463 # include <db.h>
20464 #endif
20465
20466 #ifndef DB_VERSION_MAJOR
20467 # define DB_VERSION_MAJOR 1
20468 #endif
20469
20470 #ifndef NULL
20471 #define NULL ((void*)0)
20472 #endif
20473
20474 int
20475 main ()
20476 {
20477
20478 #if DB_VERSION_MAJOR > 2
20479         db_env_create( NULL, 0 );
20480 #elif DB_VERSION_MAJOR > 1
20481         db_appexit( NULL );
20482 #else
20483         (void) dbopen( NULL, 0, 0, 0, NULL);
20484 #endif
20485
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 if ac_fn_c_try_link "$LINENO"; then :
20491   ol_cv_db_db5m=yes
20492 else
20493   ol_cv_db_db5m=no
20494 fi
20495 rm -f core conftest.err conftest.$ac_objext \
20496     conftest$ac_exeext conftest.$ac_ext
20497
20498         LIBS="$ol_LIBS"
20499
20500 fi
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20502 $as_echo "$ol_cv_db_db5m" >&6; }
20503
20504         if test $ol_cv_db_db5m = yes ; then
20505                 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20506         fi
20507 fi
20508
20509         if test $ol_cv_lib_db = no ; then
20510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20511 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20512 if ${ol_cv_db_db_5m+:} false; then :
20513   $as_echo_n "(cached) " >&6
20514 else
20515
20516         ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20517         ol_LIBS=$LIBS
20518         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20519
20520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521 /* end confdefs.h.  */
20522
20523 #ifdef HAVE_DB_185_H
20524 # include <db_185.h>
20525 #else
20526 # include <db.h>
20527 #endif
20528
20529 #ifndef DB_VERSION_MAJOR
20530 # define DB_VERSION_MAJOR 1
20531 #endif
20532
20533 #ifndef NULL
20534 #define NULL ((void*)0)
20535 #endif
20536
20537 int
20538 main ()
20539 {
20540
20541 #if DB_VERSION_MAJOR > 2
20542         db_env_create( NULL, 0 );
20543 #elif DB_VERSION_MAJOR > 1
20544         db_appexit( NULL );
20545 #else
20546         (void) dbopen( NULL, 0, 0, 0, NULL);
20547 #endif
20548
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 if ac_fn_c_try_link "$LINENO"; then :
20554   ol_cv_db_db_5m=yes
20555 else
20556   ol_cv_db_db_5m=no
20557 fi
20558 rm -f core conftest.err conftest.$ac_objext \
20559     conftest$ac_exeext conftest.$ac_ext
20560
20561         LIBS="$ol_LIBS"
20562
20563 fi
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20565 $as_echo "$ol_cv_db_db_5m" >&6; }
20566
20567         if test $ol_cv_db_db_5m = yes ; then
20568                 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20569         fi
20570 fi
20571
20572         if test $ol_cv_lib_db = no ; then
20573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20574 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20575 if ${ol_cv_db_db_5_m+:} false; then :
20576   $as_echo_n "(cached) " >&6
20577 else
20578
20579         ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20580         ol_LIBS=$LIBS
20581         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20582
20583         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20584 /* end confdefs.h.  */
20585
20586 #ifdef HAVE_DB_185_H
20587 # include <db_185.h>
20588 #else
20589 # include <db.h>
20590 #endif
20591
20592 #ifndef DB_VERSION_MAJOR
20593 # define DB_VERSION_MAJOR 1
20594 #endif
20595
20596 #ifndef NULL
20597 #define NULL ((void*)0)
20598 #endif
20599
20600 int
20601 main ()
20602 {
20603
20604 #if DB_VERSION_MAJOR > 2
20605         db_env_create( NULL, 0 );
20606 #elif DB_VERSION_MAJOR > 1
20607         db_appexit( NULL );
20608 #else
20609         (void) dbopen( NULL, 0, 0, 0, NULL);
20610 #endif
20611
20612   ;
20613   return 0;
20614 }
20615 _ACEOF
20616 if ac_fn_c_try_link "$LINENO"; then :
20617   ol_cv_db_db_5_m=yes
20618 else
20619   ol_cv_db_db_5_m=no
20620 fi
20621 rm -f core conftest.err conftest.$ac_objext \
20622     conftest$ac_exeext conftest.$ac_ext
20623
20624         LIBS="$ol_LIBS"
20625
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20628 $as_echo "$ol_cv_db_db_5_m" >&6; }
20629
20630         if test $ol_cv_db_db_5_m = yes ; then
20631                 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20632         fi
20633 fi
20634
20635         if test $ol_cv_lib_db = no ; then
20636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20637 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20638 if ${ol_cv_db_db_5+:} false; then :
20639   $as_echo_n "(cached) " >&6
20640 else
20641
20642         ol_DB_LIB=-ldb-5
20643         ol_LIBS=$LIBS
20644         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20645
20646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h.  */
20648
20649 #ifdef HAVE_DB_185_H
20650 # include <db_185.h>
20651 #else
20652 # include <db.h>
20653 #endif
20654
20655 #ifndef DB_VERSION_MAJOR
20656 # define DB_VERSION_MAJOR 1
20657 #endif
20658
20659 #ifndef NULL
20660 #define NULL ((void*)0)
20661 #endif
20662
20663 int
20664 main ()
20665 {
20666
20667 #if DB_VERSION_MAJOR > 2
20668         db_env_create( NULL, 0 );
20669 #elif DB_VERSION_MAJOR > 1
20670         db_appexit( NULL );
20671 #else
20672         (void) dbopen( NULL, 0, 0, 0, NULL);
20673 #endif
20674
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 if ac_fn_c_try_link "$LINENO"; then :
20680   ol_cv_db_db_5=yes
20681 else
20682   ol_cv_db_db_5=no
20683 fi
20684 rm -f core conftest.err conftest.$ac_objext \
20685     conftest$ac_exeext conftest.$ac_ext
20686
20687         LIBS="$ol_LIBS"
20688
20689 fi
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20691 $as_echo "$ol_cv_db_db_5" >&6; }
20692
20693         if test $ol_cv_db_db_5 = yes ; then
20694                 ol_cv_lib_db=-ldb-5
20695         fi
20696 fi
20697
20698         if test $ol_cv_lib_db = no ; then
20699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20700 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20701 if ${ol_cv_db_db5+:} false; then :
20702   $as_echo_n "(cached) " >&6
20703 else
20704
20705         ol_DB_LIB=-ldb5
20706         ol_LIBS=$LIBS
20707         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20708
20709         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710 /* end confdefs.h.  */
20711
20712 #ifdef HAVE_DB_185_H
20713 # include <db_185.h>
20714 #else
20715 # include <db.h>
20716 #endif
20717
20718 #ifndef DB_VERSION_MAJOR
20719 # define DB_VERSION_MAJOR 1
20720 #endif
20721
20722 #ifndef NULL
20723 #define NULL ((void*)0)
20724 #endif
20725
20726 int
20727 main ()
20728 {
20729
20730 #if DB_VERSION_MAJOR > 2
20731         db_env_create( NULL, 0 );
20732 #elif DB_VERSION_MAJOR > 1
20733         db_appexit( NULL );
20734 #else
20735         (void) dbopen( NULL, 0, 0, 0, NULL);
20736 #endif
20737
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 if ac_fn_c_try_link "$LINENO"; then :
20743   ol_cv_db_db5=yes
20744 else
20745   ol_cv_db_db5=no
20746 fi
20747 rm -f core conftest.err conftest.$ac_objext \
20748     conftest$ac_exeext conftest.$ac_ext
20749
20750         LIBS="$ol_LIBS"
20751
20752 fi
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20754 $as_echo "$ol_cv_db_db5" >&6; }
20755
20756         if test $ol_cv_db_db5 = yes ; then
20757                 ol_cv_lib_db=-ldb5
20758         fi
20759 fi
20760
20761 elif test $ol_cv_bdb_major = 4 ; then
20762         if test $ol_cv_lib_db = no ; then
20763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20764 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20765 if ${ol_cv_db_db_4_dot_m+:} false; then :
20766   $as_echo_n "(cached) " >&6
20767 else
20768
20769         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20770         ol_LIBS=$LIBS
20771         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20772
20773         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20774 /* end confdefs.h.  */
20775
20776 #ifdef HAVE_DB_185_H
20777 # include <db_185.h>
20778 #else
20779 # include <db.h>
20780 #endif
20781
20782 #ifndef DB_VERSION_MAJOR
20783 # define DB_VERSION_MAJOR 1
20784 #endif
20785
20786 #ifndef NULL
20787 #define NULL ((void*)0)
20788 #endif
20789
20790 int
20791 main ()
20792 {
20793
20794 #if DB_VERSION_MAJOR > 2
20795         db_env_create( NULL, 0 );
20796 #elif DB_VERSION_MAJOR > 1
20797         db_appexit( NULL );
20798 #else
20799         (void) dbopen( NULL, 0, 0, 0, NULL);
20800 #endif
20801
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 if ac_fn_c_try_link "$LINENO"; then :
20807   ol_cv_db_db_4_dot_m=yes
20808 else
20809   ol_cv_db_db_4_dot_m=no
20810 fi
20811 rm -f core conftest.err conftest.$ac_objext \
20812     conftest$ac_exeext conftest.$ac_ext
20813
20814         LIBS="$ol_LIBS"
20815
20816 fi
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20818 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20819
20820         if test $ol_cv_db_db_4_dot_m = yes ; then
20821                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20822         fi
20823 fi
20824
20825         if test $ol_cv_lib_db = no ; then
20826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20827 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20828 if ${ol_cv_db_db4m+:} false; then :
20829   $as_echo_n "(cached) " >&6
20830 else
20831
20832         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20833         ol_LIBS=$LIBS
20834         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20835
20836         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h.  */
20838
20839 #ifdef HAVE_DB_185_H
20840 # include <db_185.h>
20841 #else
20842 # include <db.h>
20843 #endif
20844
20845 #ifndef DB_VERSION_MAJOR
20846 # define DB_VERSION_MAJOR 1
20847 #endif
20848
20849 #ifndef NULL
20850 #define NULL ((void*)0)
20851 #endif
20852
20853 int
20854 main ()
20855 {
20856
20857 #if DB_VERSION_MAJOR > 2
20858         db_env_create( NULL, 0 );
20859 #elif DB_VERSION_MAJOR > 1
20860         db_appexit( NULL );
20861 #else
20862         (void) dbopen( NULL, 0, 0, 0, NULL);
20863 #endif
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 if ac_fn_c_try_link "$LINENO"; then :
20870   ol_cv_db_db4m=yes
20871 else
20872   ol_cv_db_db4m=no
20873 fi
20874 rm -f core conftest.err conftest.$ac_objext \
20875     conftest$ac_exeext conftest.$ac_ext
20876
20877         LIBS="$ol_LIBS"
20878
20879 fi
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20881 $as_echo "$ol_cv_db_db4m" >&6; }
20882
20883         if test $ol_cv_db_db4m = yes ; then
20884                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20885         fi
20886 fi
20887
20888         if test $ol_cv_lib_db = no ; then
20889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20890 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20891 if ${ol_cv_db_db_4m+:} false; then :
20892   $as_echo_n "(cached) " >&6
20893 else
20894
20895         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20896         ol_LIBS=$LIBS
20897         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20898
20899         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20900 /* end confdefs.h.  */
20901
20902 #ifdef HAVE_DB_185_H
20903 # include <db_185.h>
20904 #else
20905 # include <db.h>
20906 #endif
20907
20908 #ifndef DB_VERSION_MAJOR
20909 # define DB_VERSION_MAJOR 1
20910 #endif
20911
20912 #ifndef NULL
20913 #define NULL ((void*)0)
20914 #endif
20915
20916 int
20917 main ()
20918 {
20919
20920 #if DB_VERSION_MAJOR > 2
20921         db_env_create( NULL, 0 );
20922 #elif DB_VERSION_MAJOR > 1
20923         db_appexit( NULL );
20924 #else
20925         (void) dbopen( NULL, 0, 0, 0, NULL);
20926 #endif
20927
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 if ac_fn_c_try_link "$LINENO"; then :
20933   ol_cv_db_db_4m=yes
20934 else
20935   ol_cv_db_db_4m=no
20936 fi
20937 rm -f core conftest.err conftest.$ac_objext \
20938     conftest$ac_exeext conftest.$ac_ext
20939
20940         LIBS="$ol_LIBS"
20941
20942 fi
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
20944 $as_echo "$ol_cv_db_db_4m" >&6; }
20945
20946         if test $ol_cv_db_db_4m = yes ; then
20947                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
20948         fi
20949 fi
20950
20951         if test $ol_cv_lib_db = no ; then
20952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
20953 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
20954 if ${ol_cv_db_db_4_m+:} false; then :
20955   $as_echo_n "(cached) " >&6
20956 else
20957
20958         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
20959         ol_LIBS=$LIBS
20960         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20961
20962         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h.  */
20964
20965 #ifdef HAVE_DB_185_H
20966 # include <db_185.h>
20967 #else
20968 # include <db.h>
20969 #endif
20970
20971 #ifndef DB_VERSION_MAJOR
20972 # define DB_VERSION_MAJOR 1
20973 #endif
20974
20975 #ifndef NULL
20976 #define NULL ((void*)0)
20977 #endif
20978
20979 int
20980 main ()
20981 {
20982
20983 #if DB_VERSION_MAJOR > 2
20984         db_env_create( NULL, 0 );
20985 #elif DB_VERSION_MAJOR > 1
20986         db_appexit( NULL );
20987 #else
20988         (void) dbopen( NULL, 0, 0, 0, NULL);
20989 #endif
20990
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 if ac_fn_c_try_link "$LINENO"; then :
20996   ol_cv_db_db_4_m=yes
20997 else
20998   ol_cv_db_db_4_m=no
20999 fi
21000 rm -f core conftest.err conftest.$ac_objext \
21001     conftest$ac_exeext conftest.$ac_ext
21002
21003         LIBS="$ol_LIBS"
21004
21005 fi
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21007 $as_echo "$ol_cv_db_db_4_m" >&6; }
21008
21009         if test $ol_cv_db_db_4_m = yes ; then
21010                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21011         fi
21012 fi
21013
21014         if test $ol_cv_lib_db = no ; then
21015         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21016 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21017 if ${ol_cv_db_db_4+:} false; then :
21018   $as_echo_n "(cached) " >&6
21019 else
21020
21021         ol_DB_LIB=-ldb-4
21022         ol_LIBS=$LIBS
21023         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21024
21025         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h.  */
21027
21028 #ifdef HAVE_DB_185_H
21029 # include <db_185.h>
21030 #else
21031 # include <db.h>
21032 #endif
21033
21034 #ifndef DB_VERSION_MAJOR
21035 # define DB_VERSION_MAJOR 1
21036 #endif
21037
21038 #ifndef NULL
21039 #define NULL ((void*)0)
21040 #endif
21041
21042 int
21043 main ()
21044 {
21045
21046 #if DB_VERSION_MAJOR > 2
21047         db_env_create( NULL, 0 );
21048 #elif DB_VERSION_MAJOR > 1
21049         db_appexit( NULL );
21050 #else
21051         (void) dbopen( NULL, 0, 0, 0, NULL);
21052 #endif
21053
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059   ol_cv_db_db_4=yes
21060 else
21061   ol_cv_db_db_4=no
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext \
21064     conftest$ac_exeext conftest.$ac_ext
21065
21066         LIBS="$ol_LIBS"
21067
21068 fi
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21070 $as_echo "$ol_cv_db_db_4" >&6; }
21071
21072         if test $ol_cv_db_db_4 = yes ; then
21073                 ol_cv_lib_db=-ldb-4
21074         fi
21075 fi
21076
21077         if test $ol_cv_lib_db = no ; then
21078         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21079 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21080 if ${ol_cv_db_db4+:} false; then :
21081   $as_echo_n "(cached) " >&6
21082 else
21083
21084         ol_DB_LIB=-ldb4
21085         ol_LIBS=$LIBS
21086         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21087
21088         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h.  */
21090
21091 #ifdef HAVE_DB_185_H
21092 # include <db_185.h>
21093 #else
21094 # include <db.h>
21095 #endif
21096
21097 #ifndef DB_VERSION_MAJOR
21098 # define DB_VERSION_MAJOR 1
21099 #endif
21100
21101 #ifndef NULL
21102 #define NULL ((void*)0)
21103 #endif
21104
21105 int
21106 main ()
21107 {
21108
21109 #if DB_VERSION_MAJOR > 2
21110         db_env_create( NULL, 0 );
21111 #elif DB_VERSION_MAJOR > 1
21112         db_appexit( NULL );
21113 #else
21114         (void) dbopen( NULL, 0, 0, 0, NULL);
21115 #endif
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 if ac_fn_c_try_link "$LINENO"; then :
21122   ol_cv_db_db4=yes
21123 else
21124   ol_cv_db_db4=no
21125 fi
21126 rm -f core conftest.err conftest.$ac_objext \
21127     conftest$ac_exeext conftest.$ac_ext
21128
21129         LIBS="$ol_LIBS"
21130
21131 fi
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21133 $as_echo "$ol_cv_db_db4" >&6; }
21134
21135         if test $ol_cv_db_db4 = yes ; then
21136                 ol_cv_lib_db=-ldb4
21137         fi
21138 fi
21139
21140 fi
21141 if test $ol_cv_lib_db = no ; then
21142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21143 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21144 if ${ol_cv_db_db+:} false; then :
21145   $as_echo_n "(cached) " >&6
21146 else
21147
21148         ol_DB_LIB=-ldb
21149         ol_LIBS=$LIBS
21150         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21151
21152         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h.  */
21154
21155 #ifdef HAVE_DB_185_H
21156 # include <db_185.h>
21157 #else
21158 # include <db.h>
21159 #endif
21160
21161 #ifndef DB_VERSION_MAJOR
21162 # define DB_VERSION_MAJOR 1
21163 #endif
21164
21165 #ifndef NULL
21166 #define NULL ((void*)0)
21167 #endif
21168
21169 int
21170 main ()
21171 {
21172
21173 #if DB_VERSION_MAJOR > 2
21174         db_env_create( NULL, 0 );
21175 #elif DB_VERSION_MAJOR > 1
21176         db_appexit( NULL );
21177 #else
21178         (void) dbopen( NULL, 0, 0, 0, NULL);
21179 #endif
21180
21181   ;
21182   return 0;
21183 }
21184 _ACEOF
21185 if ac_fn_c_try_link "$LINENO"; then :
21186   ol_cv_db_db=yes
21187 else
21188   ol_cv_db_db=no
21189 fi
21190 rm -f core conftest.err conftest.$ac_objext \
21191     conftest$ac_exeext conftest.$ac_ext
21192
21193         LIBS="$ol_LIBS"
21194
21195 fi
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21197 $as_echo "$ol_cv_db_db" >&6; }
21198
21199         if test $ol_cv_db_db = yes ; then
21200                 ol_cv_lib_db=-ldb
21201         fi
21202 fi
21203
21204 if test $ol_cv_lib_db = no ; then
21205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21206 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21207 if ${ol_cv_db_none+:} false; then :
21208   $as_echo_n "(cached) " >&6
21209 else
21210
21211         ol_DB_LIB=
21212         ol_LIBS=$LIBS
21213         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21214
21215         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h.  */
21217
21218 #ifdef HAVE_DB_185_H
21219 # include <db_185.h>
21220 #else
21221 # include <db.h>
21222 #endif
21223
21224 #ifndef DB_VERSION_MAJOR
21225 # define DB_VERSION_MAJOR 1
21226 #endif
21227
21228 #ifndef NULL
21229 #define NULL ((void*)0)
21230 #endif
21231
21232 int
21233 main ()
21234 {
21235
21236 #if DB_VERSION_MAJOR > 2
21237         db_env_create( NULL, 0 );
21238 #elif DB_VERSION_MAJOR > 1
21239         db_appexit( NULL );
21240 #else
21241         (void) dbopen( NULL, 0, 0, 0, NULL);
21242 #endif
21243
21244   ;
21245   return 0;
21246 }
21247 _ACEOF
21248 if ac_fn_c_try_link "$LINENO"; then :
21249   ol_cv_db_none=yes
21250 else
21251   ol_cv_db_none=no
21252 fi
21253 rm -f core conftest.err conftest.$ac_objext \
21254     conftest$ac_exeext conftest.$ac_ext
21255
21256         LIBS="$ol_LIBS"
21257
21258 fi
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21260 $as_echo "$ol_cv_db_none" >&6; }
21261
21262         if test $ol_cv_db_none = yes ; then
21263                 ol_cv_lib_db=yes
21264         fi
21265 fi
21266
21267
21268         if test "$ol_cv_lib_db" != no ; then
21269                 ol_cv_berkeley_db=yes
21270                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21271 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21272 if ${ol_cv_berkeley_db_version+:} false; then :
21273   $as_echo_n "(cached) " >&6
21274 else
21275
21276         ol_LIBS="$LIBS"
21277         LIBS="$LTHREAD_LIBS $LIBS"
21278         if test $ol_cv_lib_db != yes ; then
21279                 LIBS="$ol_cv_lib_db $LIBS"
21280         fi
21281
21282         if test "$cross_compiling" = yes; then :
21283   ol_cv_berkeley_db_version=cross
21284 else
21285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h.  */
21287
21288 #ifdef HAVE_DB_185_H
21289         choke me;
21290 #else
21291 #include <db.h>
21292 #endif
21293 #ifndef DB_VERSION_MAJOR
21294 # define DB_VERSION_MAJOR 1
21295 #endif
21296 #ifndef NULL
21297 #define NULL ((void *)0)
21298 #endif
21299 main()
21300 {
21301 #if DB_VERSION_MAJOR > 1
21302         char *version;
21303         int major, minor, patch;
21304
21305         version = db_version( &major, &minor, &patch );
21306
21307         if( major != DB_VERSION_MAJOR ||
21308                 minor != DB_VERSION_MINOR ||
21309                 patch != DB_VERSION_PATCH )
21310         {
21311                 printf("Berkeley DB version mismatch\n"
21312                         "\theader: %s\n\tlibrary: %s\n",
21313                         DB_VERSION_STRING, version);
21314                 return 1;
21315         }
21316 #endif
21317
21318         return 0;
21319 }
21320 _ACEOF
21321 if ac_fn_c_try_run "$LINENO"; then :
21322   ol_cv_berkeley_db_version=yes
21323 else
21324   ol_cv_berkeley_db_version=no
21325 fi
21326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21327   conftest.$ac_objext conftest.beam conftest.$ac_ext
21328 fi
21329
21330
21331         LIBS="$ol_LIBS"
21332
21333 fi
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21335 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21336
21337         if test $ol_cv_berkeley_db_version = no ; then
21338                 as_fn_error $? "Berkeley DB version mismatch" "$LINENO" 5
21339         fi
21340
21341                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21342 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21343 if ${ol_cv_berkeley_db_thread+:} false; then :
21344   $as_echo_n "(cached) " >&6
21345 else
21346
21347         ol_LIBS="$LIBS"
21348         LIBS="$LTHREAD_LIBS $LIBS"
21349         if test $ol_cv_lib_db != yes ; then
21350                 LIBS="$ol_cv_lib_db $LIBS"
21351         fi
21352
21353         if test "$cross_compiling" = yes; then :
21354   ol_cv_berkeley_db_thread=cross
21355 else
21356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357 /* end confdefs.h.  */
21358
21359 #ifdef HAVE_DB_185_H
21360         choke me;
21361 #else
21362 #include <db.h>
21363 #endif
21364 #ifndef NULL
21365 #define NULL ((void *)0)
21366 #endif
21367 main()
21368 {
21369         int rc;
21370         u_int32_t flags = DB_CREATE |
21371 #ifdef DB_PRIVATE
21372                 DB_PRIVATE |
21373 #endif
21374                 DB_THREAD;
21375
21376 #if DB_VERSION_MAJOR > 2
21377         DB_ENV *env = NULL;
21378
21379         rc = db_env_create( &env, 0 );
21380
21381         flags |= DB_INIT_MPOOL;
21382 #ifdef DB_MPOOL_PRIVATE
21383         flags |= DB_MPOOL_PRIVATE;
21384 #endif
21385
21386         if( rc ) {
21387                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21388                 return rc;
21389         }
21390
21391 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21392         rc = (env->open)( env, NULL, flags, 0 );
21393 #else
21394         rc = (env->open)( env, NULL, NULL, flags, 0 );
21395 #endif
21396
21397         if ( rc == 0 ) {
21398                 rc = env->close( env, 0 );
21399         }
21400
21401         if( rc ) {
21402                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21403                 return rc;
21404         }
21405
21406 #else
21407         DB_ENV env;
21408         memset( &env, '\0', sizeof(env) );
21409
21410         rc = db_appinit( NULL, NULL, &env, flags );
21411
21412         if( rc == 0 ) {
21413                 db_appexit( &env );
21414         }
21415
21416         unlink("__db_mpool.share");
21417         unlink("__db_lock.share");
21418 #endif
21419
21420         return rc;
21421 }
21422 _ACEOF
21423 if ac_fn_c_try_run "$LINENO"; then :
21424   ol_cv_berkeley_db_thread=yes
21425 else
21426   ol_cv_berkeley_db_thread=no
21427 fi
21428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21429   conftest.$ac_objext conftest.beam conftest.$ac_ext
21430 fi
21431
21432
21433         LIBS="$ol_LIBS"
21434
21435 fi
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21437 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21438
21439         if test $ol_cv_berkeley_db_thread != no ; then
21440
21441 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21442
21443         fi
21444
21445         fi
21446 fi
21447
21448
21449         if test $ol_cv_berkeley_db = no ; then
21450                 as_fn_error $? "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21451         fi
21452
21453
21454 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21455
21456
21457                         if test $ol_cv_lib_db != yes ; then
21458                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21459         fi
21460
21461         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21462
21463         ol_link_bdb=yes
21464 fi
21465
21466
21467 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21468         BUILD_LIBS_DYNAMIC=shared
21469
21470 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21471
21472         LTSTATIC=""
21473 else
21474         BUILD_LIBS_DYNAMIC=static
21475         LTSTATIC="-static"
21476 fi
21477
21478 if test $ol_enable_wrappers != no ; then
21479         for ac_header in tcpd.h
21480 do :
21481   ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21482 if test "x$ac_cv_header_tcpd_h" = xyes; then :
21483   cat >>confdefs.h <<_ACEOF
21484 #define HAVE_TCPD_H 1
21485 _ACEOF
21486
21487                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21488 $as_echo_n "checking for TCP wrappers library... " >&6; }
21489                 save_LIBS="$LIBS"
21490                 LIBS="$LIBS -lwrap"
21491                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492 /* end confdefs.h.  */
21493
21494 #include <tcpd.h>
21495 int allow_severity = 0;
21496 int deny_severity  = 0;
21497
21498 struct request_info *req;
21499
21500 int
21501 main ()
21502 {
21503
21504 hosts_access(req)
21505
21506   ;
21507   return 0;
21508 }
21509 _ACEOF
21510 if ac_fn_c_try_link "$LINENO"; then :
21511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21512 $as_echo "-lwrap" >&6; }
21513                 have_wrappers=yes
21514                 LIBS="$save_LIBS"
21515 else
21516
21517                                 LIBS="$LIBS -lnsl"
21518                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h.  */
21520
21521 #include <tcpd.h>
21522 int allow_severity = 0;
21523 int deny_severity  = 0;
21524
21525 struct request_info *req;
21526
21527 int
21528 main ()
21529 {
21530
21531 hosts_access(req)
21532
21533   ;
21534   return 0;
21535 }
21536 _ACEOF
21537 if ac_fn_c_try_link "$LINENO"; then :
21538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21539 $as_echo "-lwrap -lnsl" >&6; }
21540                 have_wrappers=yes
21541                 LIBS="$save_LIBS -lnsl"
21542 else
21543
21544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21545 $as_echo "no" >&6; }
21546                 have_wrappers=no
21547                 LIBS=$save_LIBS
21548 fi
21549 rm -f core conftest.err conftest.$ac_objext \
21550     conftest$ac_exeext conftest.$ac_ext
21551 fi
21552 rm -f core conftest.err conftest.$ac_objext \
21553     conftest$ac_exeext conftest.$ac_ext
21554 else
21555   have_wrappers=no
21556 fi
21557
21558 done
21559
21560
21561         if test $have_wrappers = yes ; then
21562
21563 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21564
21565                 WRAP_LIBS="-lwrap"
21566         elif test $ol_enable_wrappers = yes ; then
21567                 as_fn_error $? "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21568         else
21569                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21570 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21571                 WRAP_LIBS=""
21572         fi
21573 fi
21574
21575 if test $ol_enable_syslog != no ; then
21576         ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21577 if test "x$ac_cv_func_openlog" = xyes; then :
21578
21579 fi
21580
21581         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21582                 as_fn_error select appropriate options or disable "could not find syslog" "$LINENO" 5
21583         fi
21584         ol_enable_syslog=$ac_cv_func_openlog
21585 fi
21586
21587 ol_link_sql=no
21588 if test $ol_enable_sql != no ; then
21589         for ac_header in sql.h sqlext.h
21590 do :
21591   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21592 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21593 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21594   cat >>confdefs.h <<_ACEOF
21595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21596 _ACEOF
21597
21598 else
21599
21600                 as_fn_error $? "could not locate SQL headers" "$LINENO" 5
21601
21602 fi
21603
21604 done
21605
21606
21607         sql_LIBS="$LIBS"
21608         LIBS="$LTHREAD_LIBS"
21609
21610         if test $ol_with_odbc = auto ; then
21611                 ol_with_odbc="iodbc unixodbc odbc32"
21612         fi
21613
21614         for odbc in $ol_with_odbc ; do
21615                 if test $ol_link_sql = no ; then
21616                         case $odbc in
21617                         iodbc)
21618                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21619 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21620 if ${ac_cv_lib_iodbc_SQLDriverConnect+:} false; then :
21621   $as_echo_n "(cached) " >&6
21622 else
21623   ac_check_lib_save_LIBS=$LIBS
21624 LIBS="-liodbc  $LIBS"
21625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21626 /* end confdefs.h.  */
21627
21628 /* Override any GCC internal prototype to avoid an error.
21629    Use char because int might match the return type of a GCC
21630    builtin and then its argument prototype would still apply.  */
21631 #ifdef __cplusplus
21632 extern "C"
21633 #endif
21634 char SQLDriverConnect ();
21635 int
21636 main ()
21637 {
21638 return SQLDriverConnect ();
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 if ac_fn_c_try_link "$LINENO"; then :
21644   ac_cv_lib_iodbc_SQLDriverConnect=yes
21645 else
21646   ac_cv_lib_iodbc_SQLDriverConnect=no
21647 fi
21648 rm -f core conftest.err conftest.$ac_objext \
21649     conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21651 fi
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21653 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21654 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = xyes; then :
21655   have_iodbc=yes
21656 else
21657   have_iodbc=no
21658 fi
21659
21660                                 if test $have_iodbc = yes ; then
21661                                         ol_link_sql="-liodbc"
21662                                 fi
21663                                 ;;
21664
21665                         unixodbc)
21666                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21667 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21668 if ${ac_cv_lib_odbc_SQLDriverConnect+:} false; then :
21669   $as_echo_n "(cached) " >&6
21670 else
21671   ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-lodbc  $LIBS"
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h.  */
21675
21676 /* Override any GCC internal prototype to avoid an error.
21677    Use char because int might match the return type of a GCC
21678    builtin and then its argument prototype would still apply.  */
21679 #ifdef __cplusplus
21680 extern "C"
21681 #endif
21682 char SQLDriverConnect ();
21683 int
21684 main ()
21685 {
21686 return SQLDriverConnect ();
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 if ac_fn_c_try_link "$LINENO"; then :
21692   ac_cv_lib_odbc_SQLDriverConnect=yes
21693 else
21694   ac_cv_lib_odbc_SQLDriverConnect=no
21695 fi
21696 rm -f core conftest.err conftest.$ac_objext \
21697     conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21699 fi
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21701 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21702 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = xyes; then :
21703   have_odbc=yes
21704 else
21705   have_odbc=no
21706 fi
21707
21708                                 if test $have_odbc = yes ; then
21709                                         ol_link_sql="-lodbc"
21710                                 fi
21711                                 ;;
21712
21713                         odbc32)
21714                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21715 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21716 if ${ac_cv_lib_odbc32_SQLDriverConnect+:} false; then :
21717   $as_echo_n "(cached) " >&6
21718 else
21719   ac_check_lib_save_LIBS=$LIBS
21720 LIBS="-lodbc32  $LIBS"
21721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h.  */
21723
21724 /* Override any GCC internal prototype to avoid an error.
21725    Use char because int might match the return type of a GCC
21726    builtin and then its argument prototype would still apply.  */
21727 #ifdef __cplusplus
21728 extern "C"
21729 #endif
21730 char SQLDriverConnect ();
21731 int
21732 main ()
21733 {
21734 return SQLDriverConnect ();
21735   ;
21736   return 0;
21737 }
21738 _ACEOF
21739 if ac_fn_c_try_link "$LINENO"; then :
21740   ac_cv_lib_odbc32_SQLDriverConnect=yes
21741 else
21742   ac_cv_lib_odbc32_SQLDriverConnect=no
21743 fi
21744 rm -f core conftest.err conftest.$ac_objext \
21745     conftest$ac_exeext conftest.$ac_ext
21746 LIBS=$ac_check_lib_save_LIBS
21747 fi
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21749 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21750 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = xyes; then :
21751   have_odbc32=yes
21752 else
21753   have_odbc32=no
21754 fi
21755
21756
21757                                                                 if test $have_odbc32 = no ; then
21758                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21759 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21760                                         save_LIBS="$LIBS"
21761                                         LIBS="$LIBS -lodbc32"
21762                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h.  */
21764 #include <windows.h>
21765                                         #include <sqlext.h>
21766
21767 int
21768 main ()
21769 {
21770
21771                                                 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21772
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 if ac_fn_c_try_link "$LINENO"; then :
21778   have_odbc32=yes
21779 else
21780   have_odbc32=no
21781 fi
21782 rm -f core conftest.err conftest.$ac_objext \
21783     conftest$ac_exeext conftest.$ac_ext
21784                                         LIBS="$save_LIBS"
21785                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21786 $as_echo "$have_odbc32" >&6; }
21787                                 fi
21788
21789                                 if test $have_odbc32 = yes ; then
21790                                         ol_link_sql="-lodbc32"
21791                                 fi
21792                                 ;;
21793
21794                         *)
21795                                 as_fn_error $? "unknown ODBC library" "$LINENO" 5
21796                                 ;;
21797                         esac
21798                 fi
21799         done
21800
21801         LIBS="$sql_LIBS"
21802
21803         if test $ol_link_sql != no ; then
21804                 SLAPD_SQL_LIBS="$ol_link_sql"
21805
21806         elif test $ol_enable_sql != auto ; then
21807                 as_fn_error $? "could not locate suitable ODBC library" "$LINENO" 5
21808         fi
21809 fi
21810
21811 ol_link_ndb=no
21812 if test $ol_enable_ndb != no ; then
21813         # Extract the first word of "mysql_config", so it can be a program name with args.
21814 set dummy mysql_config; ac_word=$2
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21816 $as_echo_n "checking for $ac_word... " >&6; }
21817 if ${ac_cv_prog_MYSQL+:} false; then :
21818   $as_echo_n "(cached) " >&6
21819 else
21820   if test -n "$MYSQL"; then
21821   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21822 else
21823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21824 for as_dir in $PATH
21825 do
21826   IFS=$as_save_IFS
21827   test -z "$as_dir" && as_dir=.
21828     for ac_exec_ext in '' $ac_executable_extensions; do
21829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21830     ac_cv_prog_MYSQL="yes"
21831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21832     break 2
21833   fi
21834 done
21835   done
21836 IFS=$as_save_IFS
21837
21838 fi
21839 fi
21840 MYSQL=$ac_cv_prog_MYSQL
21841 if test -n "$MYSQL"; then
21842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21843 $as_echo "$MYSQL" >&6; }
21844 else
21845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21846 $as_echo "no" >&6; }
21847 fi
21848
21849
21850         if test "$MYSQL" != yes ; then
21851                 as_fn_error $? "could not locate mysql_config" "$LINENO" 5
21852         fi
21853
21854         SQL_INC=`mysql_config --include`
21855         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21856
21857         save_CPPFLAGS="$CPPFLAGS"
21858         CPPFLAGS="$SLAPD_NDB_INCS"
21859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21860 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h.  */
21863 #include <NdbApi.hpp>
21864 _ACEOF
21865 if ac_fn_c_try_cpp "$LINENO"; then :
21866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21867 $as_echo "yes" >&6; }
21868 else
21869   as_fn_error $? "could not locate NdbApi headers" "$LINENO" 5
21870
21871 fi
21872 rm -f conftest.err conftest.i conftest.$ac_ext
21873         CPPFLAGS="$save_CPPFLAGS"
21874
21875         SQL_LIB=`mysql_config --libs_r`
21876         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21877
21878         save_LDFLAGS="$LDFLAGS"
21879         save_LIBS="$LIBS"
21880         LDFLAGS="$SQL_LIB"
21881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21882 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21883 if ${ac_cv_lib_ndbclient_ndb_init+:} false; then :
21884   $as_echo_n "(cached) " >&6
21885 else
21886   ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lndbclient -lstdc++ $LIBS"
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h.  */
21890
21891 /* Override any GCC internal prototype to avoid an error.
21892    Use char because int might match the return type of a GCC
21893    builtin and then its argument prototype would still apply.  */
21894 #ifdef __cplusplus
21895 extern "C"
21896 #endif
21897 char ndb_init ();
21898 int
21899 main ()
21900 {
21901 return ndb_init ();
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 if ac_fn_c_try_link "$LINENO"; then :
21907   ac_cv_lib_ndbclient_ndb_init=yes
21908 else
21909   ac_cv_lib_ndbclient_ndb_init=no
21910 fi
21911 rm -f core conftest.err conftest.$ac_objext \
21912     conftest$ac_exeext conftest.$ac_ext
21913 LIBS=$ac_check_lib_save_LIBS
21914 fi
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
21916 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
21917 if test "x$ac_cv_lib_ndbclient_ndb_init" = xyes; then :
21918   : ok
21919 else
21920
21921                 as_fn_error $? "could not locate ndbclient library" "$LINENO" 5
21922
21923 fi
21924
21925         LIBS="$save_LIBS"
21926         LDFLAGS="$save_LDFLAGS"
21927
21928         if test "$ol_enable_ndb" = yes ; then
21929                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
21930         fi
21931 fi
21932
21933 ol_icu=no
21934 for ac_header in unicode/utypes.h
21935 do :
21936   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21937 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21939   cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21941 _ACEOF
21942
21943 fi
21944
21945 done
21946
21947 if test $ac_cv_header_unicode_utypes_h = yes ; then
21948                 OL_ICULIBS="-licuuc -licudata"
21949
21950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
21951 $as_echo_n "checking for ICU libraries... " >&6; }
21952 if ${ol_cv_lib_icu+:} false; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955
21956                 ol_LIBS="$LIBS"
21957                 LIBS="$OL_ICULIBS $LIBS"
21958                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959 /* end confdefs.h.  */
21960
21961 #include <unicode/utypes.h>
21962
21963 int
21964 main ()
21965 {
21966
21967 (void) u_errorName(0);
21968
21969   ;
21970   return 0;
21971 }
21972 _ACEOF
21973 if ac_fn_c_try_link "$LINENO"; then :
21974   ol_cv_lib_icu=yes
21975 else
21976   ol_cv_lib_icu=no
21977 fi
21978 rm -f core conftest.err conftest.$ac_objext \
21979     conftest$ac_exeext conftest.$ac_ext
21980                 LIBS="$ol_LIBS"
21981
21982 fi
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
21984 $as_echo "$ol_cv_lib_icu" >&6; }
21985
21986         if test $ol_cv_lib_icu != no ; then
21987                 ol_icu="$OL_ICULIBS"
21988
21989 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21990
21991         fi
21992 fi
21993
21994 if test "$ol_icu" = no ; then
21995         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
21996 $as_echo "$as_me: WARNING: ICU not available" >&2;}
21997 else
21998         ICU_LIBS="$ol_icu"
21999 fi
22000 WITH_SASL=no
22001 ol_link_sasl=no
22002 ol_link_spasswd=no
22003 if test $ol_with_cyrus_sasl != no ; then
22004         for ac_header in sasl/sasl.h sasl.h
22005 do :
22006   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22009   cat >>confdefs.h <<_ACEOF
22010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22011 _ACEOF
22012
22013 fi
22014
22015 done
22016
22017
22018         if test $ac_cv_header_sasl_sasl_h = yes ||
22019            test $ac_cv_header_sasl_h = yes; then
22020                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22021 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22022 if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
22023   $as_echo_n "(cached) " >&6
22024 else
22025   ac_check_lib_save_LIBS=$LIBS
22026 LIBS="-lsasl2  $LIBS"
22027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22028 /* end confdefs.h.  */
22029
22030 /* Override any GCC internal prototype to avoid an error.
22031    Use char because int might match the return type of a GCC
22032    builtin and then its argument prototype would still apply.  */
22033 #ifdef __cplusplus
22034 extern "C"
22035 #endif
22036 char sasl_client_init ();
22037 int
22038 main ()
22039 {
22040 return sasl_client_init ();
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 if ac_fn_c_try_link "$LINENO"; then :
22046   ac_cv_lib_sasl2_sasl_client_init=yes
22047 else
22048   ac_cv_lib_sasl2_sasl_client_init=no
22049 fi
22050 rm -f core conftest.err conftest.$ac_objext \
22051     conftest$ac_exeext conftest.$ac_ext
22052 LIBS=$ac_check_lib_save_LIBS
22053 fi
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22055 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22056 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
22057   ol_link_sasl="-lsasl2"
22058 else
22059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22060 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22061 if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
22062   $as_echo_n "(cached) " >&6
22063 else
22064   ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lsasl  $LIBS"
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h.  */
22068
22069 /* Override any GCC internal prototype to avoid an error.
22070    Use char because int might match the return type of a GCC
22071    builtin and then its argument prototype would still apply.  */
22072 #ifdef __cplusplus
22073 extern "C"
22074 #endif
22075 char sasl_client_init ();
22076 int
22077 main ()
22078 {
22079 return sasl_client_init ();
22080   ;
22081   return 0;
22082 }
22083 _ACEOF
22084 if ac_fn_c_try_link "$LINENO"; then :
22085   ac_cv_lib_sasl_sasl_client_init=yes
22086 else
22087   ac_cv_lib_sasl_sasl_client_init=no
22088 fi
22089 rm -f core conftest.err conftest.$ac_objext \
22090     conftest$ac_exeext conftest.$ac_ext
22091 LIBS=$ac_check_lib_save_LIBS
22092 fi
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22094 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22095 if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
22096   ol_link_sasl="-lsasl"
22097 fi
22098
22099 fi
22100
22101         fi
22102
22103         if test $ol_link_sasl = no ; then
22104                 if test $ol_with_cyrus_sasl != auto ; then
22105                         as_fn_error $? "Could not locate Cyrus SASL" "$LINENO" 5
22106                 else
22107                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22108 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22109                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22110 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22111                         if test $ol_link_tls = no ; then
22112                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22113 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22114                         fi
22115                 fi
22116         else
22117                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22118 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22119 if ${ol_cv_sasl_compat+:} false; then :
22120   $as_echo_n "(cached) " >&6
22121 else
22122
22123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h.  */
22125
22126 #ifdef HAVE_SASL_SASL_H
22127 #include <sasl/sasl.h>
22128 #else
22129 #include <sasl.h>
22130 #endif
22131
22132 /* Require 2.1.15+ */
22133 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
22134         char *__sasl_compat = "2.2+ or better okay (we guess)";
22135 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
22136         && SASL_VERSION_STEP >=15
22137         char *__sasl_compat = "2.1.15+ or better okay";
22138 #endif
22139
22140 _ACEOF
22141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22142   $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22143   ol_cv_sasl_compat=yes
22144 else
22145   ol_cv_sasl_compat=no
22146 fi
22147 rm -f conftest*
22148
22149 fi
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22151 $as_echo "$ol_cv_sasl_compat" >&6; }
22152
22153                 if test $ol_cv_sasl_compat = no ; then
22154                         ol_link_sasl=no
22155                         as_fn_error $? "Cyrus SASL library located but is incompatible" "$LINENO" 5
22156                 fi
22157
22158
22159 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22160
22161                 SASL_LIBS="$ol_link_sasl"
22162                 if test $ol_enable_spasswd != no ; then
22163                         ol_link_spasswd=yes
22164                 fi
22165
22166                 ac_save_LIBS="$LIBS"
22167                 LIBS="$LIBS $ol_link_sasl"
22168                 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22169 if test "x$ac_cv_func_sasl_version" = xyes; then :
22170
22171 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22172
22173 fi
22174
22175                 LIBS="$ac_save_LIBS"
22176
22177                 WITH_SASL=yes
22178         fi
22179
22180 else
22181         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22182 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22183         if test $ol_link_tls = no ; then
22184                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22185 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22186         fi
22187 fi
22188
22189 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22190         dev=no
22191         if test -r /dev/urandom ; then
22192                 dev="/dev/urandom";
22193         elif test -r /idev/urandom ; then
22194                 dev="/idev/urandom";
22195         elif test -r /dev/srandom ; then
22196                 dev="/dev/srandom";
22197         elif test -r /dev/random ; then
22198                 dev="/dev/random";
22199         elif test -r /idev/random ; then
22200                 dev="/idev/random";
22201         fi
22202
22203         if test $dev != no ; then
22204
22205 cat >>confdefs.h <<_ACEOF
22206 #define URANDOM_DEVICE "$dev"
22207 _ACEOF
22208
22209         fi
22210 fi
22211
22212 ol_link_fetch=no
22213 if test $ol_with_fetch != no ; then
22214         ol_LIBS=$LIBS
22215 LIBS="-lfetch -lcom_err $LIBS"
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22217 $as_echo_n "checking fetch(3) library... " >&6; }
22218 if ${ol_cv_lib_fetch+:} false; then :
22219   $as_echo_n "(cached) " >&6
22220 else
22221
22222         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h.  */
22224
22225 #ifdef HAVE_SYS_PARAM_H
22226 #include <sys/param.h>
22227 #endif
22228 #include <stdio.h>
22229 #include <fetch.h>
22230 int
22231 main ()
22232 {
22233 struct url *u = fetchParseURL("file:///");
22234   ;
22235   return 0;
22236 }
22237 _ACEOF
22238 if ac_fn_c_try_link "$LINENO"; then :
22239   ol_cv_lib_fetch=yes
22240 else
22241   ol_cv_lib_fetch=no
22242 fi
22243 rm -f core conftest.err conftest.$ac_objext \
22244     conftest$ac_exeext conftest.$ac_ext
22245 fi
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22247 $as_echo "$ol_cv_lib_fetch" >&6; }
22248 LIBS=$ol_LIBS
22249 if test $ol_cv_lib_fetch != no ; then
22250         ol_link_fetch="-lfetch -lcom_err"
22251
22252 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22253
22254 fi
22255
22256
22257         if test $ol_cv_lib_fetch != no ; then
22258                 LIBS="$LIBS $ol_link_fetch"
22259                 ol_link_fetch=freebsd
22260
22261         elif test $ol_with_fetch != auto ; then
22262                 as_fn_error $? "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22263         fi
22264 fi
22265
22266 if test $ol_enable_crypt != no ; then
22267         save_LIBS="$LIBS"
22268         LIBS="$TLS_LIBS $LIBS"
22269
22270         ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22271 if test "x$ac_cv_func_crypt" = xyes; then :
22272   have_crypt=yes
22273 else
22274
22275                 LIBS="$save_LIBS"
22276                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22277 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22278 if ${ac_cv_lib_crypt_crypt+:} false; then :
22279   $as_echo_n "(cached) " >&6
22280 else
22281   ac_check_lib_save_LIBS=$LIBS
22282 LIBS="-lcrypt  $LIBS"
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h.  */
22285
22286 /* Override any GCC internal prototype to avoid an error.
22287    Use char because int might match the return type of a GCC
22288    builtin and then its argument prototype would still apply.  */
22289 #ifdef __cplusplus
22290 extern "C"
22291 #endif
22292 char crypt ();
22293 int
22294 main ()
22295 {
22296 return crypt ();
22297   ;
22298   return 0;
22299 }
22300 _ACEOF
22301 if ac_fn_c_try_link "$LINENO"; then :
22302   ac_cv_lib_crypt_crypt=yes
22303 else
22304   ac_cv_lib_crypt_crypt=no
22305 fi
22306 rm -f core conftest.err conftest.$ac_objext \
22307     conftest$ac_exeext conftest.$ac_ext
22308 LIBS=$ac_check_lib_save_LIBS
22309 fi
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22311 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22312 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22313   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22314                         have_crypt=yes
22315 else
22316   have_crypt=no
22317 fi
22318
22319 fi
22320
22321
22322         LIBS="$save_LIBS"
22323
22324         if test $have_crypt = yes ; then
22325
22326 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22327
22328         else
22329                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22330 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22331                 if test $ol_enable_crypt = yes ; then
22332                         as_fn_error $? "could not find crypt, select appropriate options or disable" "$LINENO" 5
22333                 fi
22334
22335                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22336 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22337                 ol_enable_crypt=no
22338         fi
22339 fi
22340
22341 if test $ol_enable_proctitle != no ; then
22342         ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22343 if test "x$ac_cv_func_setproctitle" = xyes; then :
22344   have_setproctitle=yes
22345 else
22346
22347                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22348 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22349 if ${ac_cv_lib_util_setproctitle+:} false; then :
22350   $as_echo_n "(cached) " >&6
22351 else
22352   ac_check_lib_save_LIBS=$LIBS
22353 LIBS="-lutil  $LIBS"
22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h.  */
22356
22357 /* Override any GCC internal prototype to avoid an error.
22358    Use char because int might match the return type of a GCC
22359    builtin and then its argument prototype would still apply.  */
22360 #ifdef __cplusplus
22361 extern "C"
22362 #endif
22363 char setproctitle ();
22364 int
22365 main ()
22366 {
22367 return setproctitle ();
22368   ;
22369   return 0;
22370 }
22371 _ACEOF
22372 if ac_fn_c_try_link "$LINENO"; then :
22373   ac_cv_lib_util_setproctitle=yes
22374 else
22375   ac_cv_lib_util_setproctitle=no
22376 fi
22377 rm -f core conftest.err conftest.$ac_objext \
22378     conftest$ac_exeext conftest.$ac_ext
22379 LIBS=$ac_check_lib_save_LIBS
22380 fi
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22382 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22383 if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
22384   have_setproctitle=yes
22385                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
22386 else
22387   have_setproctitle=no
22388                         case " $LIBOBJS " in
22389   *" setproctitle.$ac_objext "* ) ;;
22390   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22391  ;;
22392 esac
22393
22394                         LIBSRCS="$LIBSRCS setproctitle.c"
22395 fi
22396
22397 fi
22398
22399
22400         if test $have_setproctitle = yes ; then
22401
22402 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22403
22404         fi
22405 fi
22406
22407 if test $ol_enable_slp != no ; then
22408         for ac_header in slp.h
22409 do :
22410   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22411 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22413   cat >>confdefs.h <<_ACEOF
22414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22415 _ACEOF
22416
22417 fi
22418
22419 done
22420
22421
22422         if test $ac_cv_header_slp_h = yes ; then
22423                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22424 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22425 if ${ac_cv_lib_slp_SLPOpen+:} false; then :
22426   $as_echo_n "(cached) " >&6
22427 else
22428   ac_check_lib_save_LIBS=$LIBS
22429 LIBS="-lslp  $LIBS"
22430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431 /* end confdefs.h.  */
22432
22433 /* Override any GCC internal prototype to avoid an error.
22434    Use char because int might match the return type of a GCC
22435    builtin and then its argument prototype would still apply.  */
22436 #ifdef __cplusplus
22437 extern "C"
22438 #endif
22439 char SLPOpen ();
22440 int
22441 main ()
22442 {
22443 return SLPOpen ();
22444   ;
22445   return 0;
22446 }
22447 _ACEOF
22448 if ac_fn_c_try_link "$LINENO"; then :
22449   ac_cv_lib_slp_SLPOpen=yes
22450 else
22451   ac_cv_lib_slp_SLPOpen=no
22452 fi
22453 rm -f core conftest.err conftest.$ac_objext \
22454     conftest$ac_exeext conftest.$ac_ext
22455 LIBS=$ac_check_lib_save_LIBS
22456 fi
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22458 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22459 if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
22460   have_slp=yes
22461 else
22462   have_slp=no
22463 fi
22464
22465                 if test $have_slp = yes ; then
22466
22467 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22468
22469                         SLAPD_SLP_LIBS=-lslp
22470                 fi
22471
22472         elif test $ol_enable_slp = yes ; then
22473                 as_fn_error $? "SLP not found" "$LINENO" 5
22474         fi
22475 fi
22476
22477
22478 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22479 if test "x$ac_cv_type_mode_t" = xyes; then :
22480
22481 else
22482
22483 cat >>confdefs.h <<_ACEOF
22484 #define mode_t int
22485 _ACEOF
22486
22487 fi
22488
22489 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22490 if test "x$ac_cv_type_off_t" = xyes; then :
22491
22492 else
22493
22494 cat >>confdefs.h <<_ACEOF
22495 #define off_t long
22496 _ACEOF
22497
22498 fi
22499
22500 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22501 if test "x$ac_cv_type_pid_t" = xyes; then :
22502
22503 else
22504
22505 cat >>confdefs.h <<_ACEOF
22506 #define pid_t int
22507 _ACEOF
22508
22509 fi
22510
22511 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22512 if test "x$ac_cv_type_ssize_t" = xyes; then :
22513
22514 else
22515
22516 cat >>confdefs.h <<_ACEOF
22517 #define ssize_t signed int
22518 _ACEOF
22519
22520 fi
22521
22522 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22523 if test "x$ac_cv_type_caddr_t" = xyes; then :
22524
22525 else
22526
22527 cat >>confdefs.h <<_ACEOF
22528 #define caddr_t char *
22529 _ACEOF
22530
22531 fi
22532
22533 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22534 if test "x$ac_cv_type_size_t" = xyes; then :
22535
22536 else
22537
22538 cat >>confdefs.h <<_ACEOF
22539 #define size_t unsigned
22540 _ACEOF
22541
22542 fi
22543
22544
22545 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22546 if test "x$ac_cv_type_long_long" = xyes; then :
22547
22548 cat >>confdefs.h <<_ACEOF
22549 #define HAVE_LONG_LONG 1
22550 _ACEOF
22551
22552
22553 fi
22554
22555 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22556 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22557
22558 cat >>confdefs.h <<_ACEOF
22559 #define HAVE_PTRDIFF_T 1
22560 _ACEOF
22561
22562
22563 fi
22564
22565
22566
22567 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22568 #ifdef HAVE_SYS_SOCKET_H
22569 #include <sys/socket.h>
22570 #endif
22571 "
22572 if test "x$ac_cv_type_socklen_t" = xyes; then :
22573
22574 fi
22575
22576
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22578 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22579 if ${ol_cv_type_ber_socklen_t+:} false; then :
22580   $as_echo_n "(cached) " >&6
22581 else
22582
22583         set socklen_t int unsigned "unsigned long" long size_t
22584         test "$ac_cv_type_socklen_t" = yes || shift
22585         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22586         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22587                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590 #ifdef HAVE_SYS_SOCKET_H
22591 #include <sys/socket.h>
22592 #endif
22593 extern int accept(int s, $addrtype *ap, $lentype *lp);
22594
22595 int
22596 main ()
22597 {
22598
22599 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22600
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 if ac_fn_c_try_compile "$LINENO"; then :
22606   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22607 fi
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609         done ; done
22610 fi
22611
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22613 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22614
22615 cat >>confdefs.h <<_ACEOF
22616 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22617 _ACEOF
22618
22619
22620 if test "$ac_cv_type_socklen_t" != yes; then
22621
22622 cat >>confdefs.h <<_ACEOF
22623 #define socklen_t $ol_cv_type_ber_socklen_t
22624 _ACEOF
22625
22626 fi
22627
22628
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22630 $as_echo_n "checking return type of signal handlers... " >&6; }
22631 if ${ac_cv_type_signal+:} false; then :
22632   $as_echo_n "(cached) " >&6
22633 else
22634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22635 /* end confdefs.h.  */
22636 #include <sys/types.h>
22637 #include <signal.h>
22638
22639 int
22640 main ()
22641 {
22642 return *(signal (0, 0)) (0) == 1;
22643   ;
22644   return 0;
22645 }
22646 _ACEOF
22647 if ac_fn_c_try_compile "$LINENO"; then :
22648   ac_cv_type_signal=int
22649 else
22650   ac_cv_type_signal=void
22651 fi
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653 fi
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22655 $as_echo "$ac_cv_type_signal" >&6; }
22656
22657 cat >>confdefs.h <<_ACEOF
22658 #define RETSIGTYPE $ac_cv_type_signal
22659 _ACEOF
22660
22661
22662
22663 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22664 #include <signal.h>
22665
22666 "
22667 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
22668
22669 else
22670
22671 cat >>confdefs.h <<_ACEOF
22672 #define sig_atomic_t int
22673 _ACEOF
22674
22675 fi
22676
22677
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22679 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22680 if ${ac_cv_type_uid_t+:} false; then :
22681   $as_echo_n "(cached) " >&6
22682 else
22683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h.  */
22685 #include <sys/types.h>
22686
22687 _ACEOF
22688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22689   $EGREP "uid_t" >/dev/null 2>&1; then :
22690   ac_cv_type_uid_t=yes
22691 else
22692   ac_cv_type_uid_t=no
22693 fi
22694 rm -f conftest*
22695
22696 fi
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22698 $as_echo "$ac_cv_type_uid_t" >&6; }
22699 if test $ac_cv_type_uid_t = no; then
22700
22701 $as_echo "#define uid_t int" >>confdefs.h
22702
22703
22704 $as_echo "#define gid_t int" >>confdefs.h
22705
22706 fi
22707
22708
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22710 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22711 if ${ac_cv_header_time+:} false; then :
22712   $as_echo_n "(cached) " >&6
22713 else
22714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h.  */
22716 #include <sys/types.h>
22717 #include <sys/time.h>
22718 #include <time.h>
22719
22720 int
22721 main ()
22722 {
22723 if ((struct tm *) 0)
22724 return 0;
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 if ac_fn_c_try_compile "$LINENO"; then :
22730   ac_cv_header_time=yes
22731 else
22732   ac_cv_header_time=no
22733 fi
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 fi
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22737 $as_echo "$ac_cv_header_time" >&6; }
22738 if test $ac_cv_header_time = yes; then
22739
22740 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22741
22742 fi
22743
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22745 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22746 if ${ac_cv_struct_tm+:} false; then :
22747   $as_echo_n "(cached) " >&6
22748 else
22749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h.  */
22751 #include <sys/types.h>
22752 #include <time.h>
22753
22754 int
22755 main ()
22756 {
22757 struct tm tm;
22758                                      int *p = &tm.tm_sec;
22759                                      return !p;
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 if ac_fn_c_try_compile "$LINENO"; then :
22765   ac_cv_struct_tm=time.h
22766 else
22767   ac_cv_struct_tm=sys/time.h
22768 fi
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770 fi
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22772 $as_echo "$ac_cv_struct_tm" >&6; }
22773 if test $ac_cv_struct_tm = sys/time.h; then
22774
22775 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22776
22777 fi
22778
22779 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22780 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22781
22782 cat >>confdefs.h <<_ACEOF
22783 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22784 _ACEOF
22785
22786
22787 fi
22788
22789 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
22790 #include <pwd.h>
22791 "
22792 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
22793
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
22796 _ACEOF
22797
22798
22799 fi
22800
22801 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
22802 #include <pwd.h>
22803 "
22804 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
22805
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
22808 _ACEOF
22809
22810
22811 fi
22812
22813
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
22815 $as_echo_n "checking if toupper() requires islower()... " >&6; }
22816 if ${ol_cv_c_upper_lower+:} false; then :
22817   $as_echo_n "(cached) " >&6
22818 else
22819
22820         if test "$cross_compiling" = yes; then :
22821   ol_cv_c_upper_lower=safe
22822 else
22823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h.  */
22825
22826 #include <ctype.h>
22827 main()
22828 {
22829         if ('C' == toupper('C'))
22830                 exit(0);
22831         else
22832                 exit(1);
22833 }
22834 _ACEOF
22835 if ac_fn_c_try_run "$LINENO"; then :
22836   ol_cv_c_upper_lower=no
22837 else
22838   ol_cv_c_upper_lower=yes
22839 fi
22840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22841   conftest.$ac_objext conftest.beam conftest.$ac_ext
22842 fi
22843
22844 fi
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
22846 $as_echo "$ol_cv_c_upper_lower" >&6; }
22847 if test $ol_cv_c_upper_lower != no ; then
22848
22849 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
22850
22851 fi
22852
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22854 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22855 if ${ac_cv_c_const+:} false; then :
22856   $as_echo_n "(cached) " >&6
22857 else
22858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h.  */
22860
22861 int
22862 main ()
22863 {
22864 /* FIXME: Include the comments suggested by Paul. */
22865 #ifndef __cplusplus
22866   /* Ultrix mips cc rejects this.  */
22867   typedef int charset[2];
22868   const charset cs;
22869   /* SunOS 4.1.1 cc rejects this.  */
22870   char const *const *pcpcc;
22871   char **ppc;
22872   /* NEC SVR4.0.2 mips cc rejects this.  */
22873   struct point {int x, y;};
22874   static struct point const zero = {0,0};
22875   /* AIX XL C 1.02.0.0 rejects this.
22876      It does not let you subtract one const X* pointer from another in
22877      an arm of an if-expression whose if-part is not a constant
22878      expression */
22879   const char *g = "string";
22880   pcpcc = &g + (g ? g-g : 0);
22881   /* HPUX 7.0 cc rejects these. */
22882   ++pcpcc;
22883   ppc = (char**) pcpcc;
22884   pcpcc = (char const *const *) ppc;
22885   { /* SCO 3.2v4 cc rejects this.  */
22886     char *t;
22887     char const *s = 0 ? (char *) 0 : (char const *) 0;
22888
22889     *t++ = 0;
22890     if (s) return 0;
22891   }
22892   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22893     int x[] = {25, 17};
22894     const int *foo = &x[0];
22895     ++foo;
22896   }
22897   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22898     typedef const int *iptr;
22899     iptr p = 0;
22900     ++p;
22901   }
22902   { /* AIX XL C 1.02.0.0 rejects this saying
22903        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22904     struct s { int j; const int *ap[3]; };
22905     struct s *b; b->j = 5;
22906   }
22907   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22908     const int foo = 10;
22909     if (!foo) return 0;
22910   }
22911   return !cs[0] && !zero.x;
22912 #endif
22913
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 if ac_fn_c_try_compile "$LINENO"; then :
22919   ac_cv_c_const=yes
22920 else
22921   ac_cv_c_const=no
22922 fi
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 fi
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22926 $as_echo "$ac_cv_c_const" >&6; }
22927 if test $ac_cv_c_const = no; then
22928
22929 $as_echo "#define const /**/" >>confdefs.h
22930
22931 fi
22932
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
22934 $as_echo_n "checking if compiler understands volatile... " >&6; }
22935 if ${ol_cv_c_volatile+:} false; then :
22936   $as_echo_n "(cached) " >&6
22937 else
22938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h.  */
22940 int x, y, z;
22941 int
22942 main ()
22943 {
22944 volatile int a; int * volatile b = x ? &y : &z;
22945       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22946       *b = 0;
22947   ;
22948   return 0;
22949 }
22950 _ACEOF
22951 if ac_fn_c_try_compile "$LINENO"; then :
22952   ol_cv_c_volatile=yes
22953 else
22954   ol_cv_c_volatile=no
22955 fi
22956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22957 fi
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
22959 $as_echo "$ol_cv_c_volatile" >&6; }
22960   if test $ol_cv_c_volatile = yes; then
22961     :
22962   else
22963
22964 $as_echo "#define volatile /**/" >>confdefs.h
22965
22966   fi
22967
22968
22969 if test $cross_compiling = yes ; then
22970         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
22971 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
22972
22973 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
22974
22975 else
22976          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22977 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22978 if ${ac_cv_c_bigendian+:} false; then :
22979   $as_echo_n "(cached) " >&6
22980 else
22981   ac_cv_c_bigendian=unknown
22982     # See if we're dealing with a universal compiler.
22983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22984 /* end confdefs.h.  */
22985 #ifndef __APPLE_CC__
22986                not a universal capable compiler
22987              #endif
22988              typedef int dummy;
22989
22990 _ACEOF
22991 if ac_fn_c_try_compile "$LINENO"; then :
22992
22993         # Check for potential -arch flags.  It is not universal unless
22994         # there are at least two -arch flags with different values.
22995         ac_arch=
22996         ac_prev=
22997         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22998          if test -n "$ac_prev"; then
22999            case $ac_word in
23000              i?86 | x86_64 | ppc | ppc64)
23001                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23002                  ac_arch=$ac_word
23003                else
23004                  ac_cv_c_bigendian=universal
23005                  break
23006                fi
23007                ;;
23008            esac
23009            ac_prev=
23010          elif test "x$ac_word" = "x-arch"; then
23011            ac_prev=arch
23012          fi
23013        done
23014 fi
23015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016     if test $ac_cv_c_bigendian = unknown; then
23017       # See if sys/param.h defines the BYTE_ORDER macro.
23018       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h.  */
23020 #include <sys/types.h>
23021              #include <sys/param.h>
23022
23023 int
23024 main ()
23025 {
23026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23027                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23028                      && LITTLE_ENDIAN)
23029               bogus endian macros
23030              #endif
23031
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 if ac_fn_c_try_compile "$LINENO"; then :
23037   # It does; now see whether it defined to BIG_ENDIAN or not.
23038          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23039 /* end confdefs.h.  */
23040 #include <sys/types.h>
23041                 #include <sys/param.h>
23042
23043 int
23044 main ()
23045 {
23046 #if BYTE_ORDER != BIG_ENDIAN
23047                  not big endian
23048                 #endif
23049
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 if ac_fn_c_try_compile "$LINENO"; then :
23055   ac_cv_c_bigendian=yes
23056 else
23057   ac_cv_c_bigendian=no
23058 fi
23059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23060 fi
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062     fi
23063     if test $ac_cv_c_bigendian = unknown; then
23064       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23065       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066 /* end confdefs.h.  */
23067 #include <limits.h>
23068
23069 int
23070 main ()
23071 {
23072 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23073               bogus endian macros
23074              #endif
23075
23076   ;
23077   return 0;
23078 }
23079 _ACEOF
23080 if ac_fn_c_try_compile "$LINENO"; then :
23081   # It does; now see whether it defined to _BIG_ENDIAN or not.
23082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h.  */
23084 #include <limits.h>
23085
23086 int
23087 main ()
23088 {
23089 #ifndef _BIG_ENDIAN
23090                  not big endian
23091                 #endif
23092
23093   ;
23094   return 0;
23095 }
23096 _ACEOF
23097 if ac_fn_c_try_compile "$LINENO"; then :
23098   ac_cv_c_bigendian=yes
23099 else
23100   ac_cv_c_bigendian=no
23101 fi
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 fi
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105     fi
23106     if test $ac_cv_c_bigendian = unknown; then
23107       # Compile a test program.
23108       if test "$cross_compiling" = yes; then :
23109   # Try to guess by grepping values from an object file.
23110          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h.  */
23112 short int ascii_mm[] =
23113                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23114                 short int ascii_ii[] =
23115                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23116                 int use_ascii (int i) {
23117                   return ascii_mm[i] + ascii_ii[i];
23118                 }
23119                 short int ebcdic_ii[] =
23120                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23121                 short int ebcdic_mm[] =
23122                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23123                 int use_ebcdic (int i) {
23124                   return ebcdic_mm[i] + ebcdic_ii[i];
23125                 }
23126                 extern int foo;
23127
23128 int
23129 main ()
23130 {
23131 return use_ascii (foo) == use_ebcdic (foo);
23132   ;
23133   return 0;
23134 }
23135 _ACEOF
23136 if ac_fn_c_try_compile "$LINENO"; then :
23137   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23138               ac_cv_c_bigendian=yes
23139             fi
23140             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23141               if test "$ac_cv_c_bigendian" = unknown; then
23142                 ac_cv_c_bigendian=no
23143               else
23144                 # finding both strings is unlikely to happen, but who knows?
23145                 ac_cv_c_bigendian=unknown
23146               fi
23147             fi
23148 fi
23149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23150 else
23151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h.  */
23153 $ac_includes_default
23154 int
23155 main ()
23156 {
23157
23158              /* Are we little or big endian?  From Harbison&Steele.  */
23159              union
23160              {
23161                long int l;
23162                char c[sizeof (long int)];
23163              } u;
23164              u.l = 1;
23165              return u.c[sizeof (long int) - 1] == 1;
23166
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 if ac_fn_c_try_run "$LINENO"; then :
23172   ac_cv_c_bigendian=no
23173 else
23174   ac_cv_c_bigendian=yes
23175 fi
23176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23177   conftest.$ac_objext conftest.beam conftest.$ac_ext
23178 fi
23179
23180     fi
23181 fi
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23183 $as_echo "$ac_cv_c_bigendian" >&6; }
23184  case $ac_cv_c_bigendian in #(
23185    yes)
23186      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23187 ;; #(
23188    no)
23189       ;; #(
23190    universal)
23191
23192 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23193
23194      ;; #(
23195    *)
23196      as_fn_error $? "unknown endianness
23197  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23198  esac
23199
23200 fi
23201
23202 # The cast to long int works around a bug in the HP C Compiler
23203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23205 # This bug is HP SR number 8606223364.
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23207 $as_echo_n "checking size of short... " >&6; }
23208 if ${ac_cv_sizeof_short+:} false; then :
23209   $as_echo_n "(cached) " >&6
23210 else
23211   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23212
23213 else
23214   if test "$ac_cv_type_short" = yes; then
23215      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23217 as_fn_error 77 "cannot compute sizeof (short)
23218 See \`config.log' for more details" "$LINENO" 5; }
23219    else
23220      ac_cv_sizeof_short=0
23221    fi
23222 fi
23223
23224 fi
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23226 $as_echo "$ac_cv_sizeof_short" >&6; }
23227
23228
23229
23230 cat >>confdefs.h <<_ACEOF
23231 #define SIZEOF_SHORT $ac_cv_sizeof_short
23232 _ACEOF
23233
23234
23235 # The cast to long int works around a bug in the HP C Compiler
23236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23238 # This bug is HP SR number 8606223364.
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23240 $as_echo_n "checking size of int... " >&6; }
23241 if ${ac_cv_sizeof_int+:} false; then :
23242   $as_echo_n "(cached) " >&6
23243 else
23244   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23245
23246 else
23247   if test "$ac_cv_type_int" = yes; then
23248      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23250 as_fn_error 77 "cannot compute sizeof (int)
23251 See \`config.log' for more details" "$LINENO" 5; }
23252    else
23253      ac_cv_sizeof_int=0
23254    fi
23255 fi
23256
23257 fi
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23259 $as_echo "$ac_cv_sizeof_int" >&6; }
23260
23261
23262
23263 cat >>confdefs.h <<_ACEOF
23264 #define SIZEOF_INT $ac_cv_sizeof_int
23265 _ACEOF
23266
23267
23268 # The cast to long int works around a bug in the HP C Compiler
23269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23271 # This bug is HP SR number 8606223364.
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23273 $as_echo_n "checking size of long... " >&6; }
23274 if ${ac_cv_sizeof_long+:} false; then :
23275   $as_echo_n "(cached) " >&6
23276 else
23277   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23278
23279 else
23280   if test "$ac_cv_type_long" = yes; then
23281      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23283 as_fn_error 77 "cannot compute sizeof (long)
23284 See \`config.log' for more details" "$LINENO" 5; }
23285    else
23286      ac_cv_sizeof_long=0
23287    fi
23288 fi
23289
23290 fi
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23292 $as_echo "$ac_cv_sizeof_long" >&6; }
23293
23294
23295
23296 cat >>confdefs.h <<_ACEOF
23297 #define SIZEOF_LONG $ac_cv_sizeof_long
23298 _ACEOF
23299
23300
23301 # The cast to long int works around a bug in the HP C Compiler
23302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23304 # This bug is HP SR number 8606223364.
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23306 $as_echo_n "checking size of long long... " >&6; }
23307 if ${ac_cv_sizeof_long_long+:} false; then :
23308   $as_echo_n "(cached) " >&6
23309 else
23310   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23311
23312 else
23313   if test "$ac_cv_type_long_long" = yes; then
23314      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23316 as_fn_error 77 "cannot compute sizeof (long long)
23317 See \`config.log' for more details" "$LINENO" 5; }
23318    else
23319      ac_cv_sizeof_long_long=0
23320    fi
23321 fi
23322
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23325 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23326
23327
23328
23329 cat >>confdefs.h <<_ACEOF
23330 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23331 _ACEOF
23332
23333
23334 # The cast to long int works around a bug in the HP C Compiler
23335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23337 # This bug is HP SR number 8606223364.
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23339 $as_echo_n "checking size of wchar_t... " >&6; }
23340 if ${ac_cv_sizeof_wchar_t+:} false; then :
23341   $as_echo_n "(cached) " >&6
23342 else
23343   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
23344
23345 else
23346   if test "$ac_cv_type_wchar_t" = yes; then
23347      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23349 as_fn_error 77 "cannot compute sizeof (wchar_t)
23350 See \`config.log' for more details" "$LINENO" 5; }
23351    else
23352      ac_cv_sizeof_wchar_t=0
23353    fi
23354 fi
23355
23356 fi
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23358 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23359
23360
23361
23362 cat >>confdefs.h <<_ACEOF
23363 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23364 _ACEOF
23365
23366
23367
23368 if test "$ac_cv_sizeof_int" -lt 4 ; then
23369         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23370 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23371
23372
23373 $as_echo "#define LBER_INT_T long" >>confdefs.h
23374
23375 else
23376
23377 $as_echo "#define LBER_INT_T int" >>confdefs.h
23378
23379 fi
23380
23381
23382 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23383
23384
23385 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23386
23387
23388 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23389
23390
23391 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23392         if test $ac_cv_sizeof_long_long -gt 4 ; then
23393                 ol_with_mp=longlong
23394
23395 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23396
23397         elif test $ol_with_mp = longlong ; then
23398                 as_fn_error $? "long long unusable for multiple precision" "$LINENO" 5
23399         fi
23400 fi
23401 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23402         if test $ac_cv_sizeof_long -gt 4 ; then
23403                 ol_with_mp=long
23404
23405 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23406
23407         elif test $ol_with_mp = long ; then
23408                 as_fn_error $? "long unusable for multiple precision" "$LINENO" 5
23409         fi
23410 fi
23411 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23412         for ac_header in openssl/bn.h
23413 do :
23414   ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23415 if test "x$ac_cv_header_openssl_bn_h" = xyes; then :
23416   cat >>confdefs.h <<_ACEOF
23417 #define HAVE_OPENSSL_BN_H 1
23418 _ACEOF
23419
23420 fi
23421
23422 done
23423
23424         for ac_header in openssl/crypto.h
23425 do :
23426   ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23427 if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
23428   cat >>confdefs.h <<_ACEOF
23429 #define HAVE_OPENSSL_CRYPTO_H 1
23430 _ACEOF
23431
23432 fi
23433
23434 done
23435
23436         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23437                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23438                 test "$ol_with_tls" = "found" ; then
23439                 ol_with_mp=bignum
23440
23441 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23442
23443         elif test $ol_with_mp = bignum ; then
23444                 as_fn_error $? "bignum not available" "$LINENO" 5
23445         fi
23446 fi
23447 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23448         for ac_header in gmp.h
23449 do :
23450   ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23451 if test "x$ac_cv_header_gmp_h" = xyes; then :
23452   cat >>confdefs.h <<_ACEOF
23453 #define HAVE_GMP_H 1
23454 _ACEOF
23455
23456 fi
23457
23458 done
23459
23460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23461 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23462 if ${ac_cv_lib_gmp___gmpz_add_ui+:} false; then :
23463   $as_echo_n "(cached) " >&6
23464 else
23465   ac_check_lib_save_LIBS=$LIBS
23466 LIBS="-lgmp  $LIBS"
23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468 /* end confdefs.h.  */
23469
23470 /* Override any GCC internal prototype to avoid an error.
23471    Use char because int might match the return type of a GCC
23472    builtin and then its argument prototype would still apply.  */
23473 #ifdef __cplusplus
23474 extern "C"
23475 #endif
23476 char __gmpz_add_ui ();
23477 int
23478 main ()
23479 {
23480 return __gmpz_add_ui ();
23481   ;
23482   return 0;
23483 }
23484 _ACEOF
23485 if ac_fn_c_try_link "$LINENO"; then :
23486   ac_cv_lib_gmp___gmpz_add_ui=yes
23487 else
23488   ac_cv_lib_gmp___gmpz_add_ui=no
23489 fi
23490 rm -f core conftest.err conftest.$ac_objext \
23491     conftest$ac_exeext conftest.$ac_ext
23492 LIBS=$ac_check_lib_save_LIBS
23493 fi
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23495 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23496 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = xyes; then :
23497   cat >>confdefs.h <<_ACEOF
23498 #define HAVE_LIBGMP 1
23499 _ACEOF
23500
23501   LIBS="-lgmp $LIBS"
23502
23503 fi
23504
23505         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23506
23507 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23508
23509                 ol_with_mp=gmp
23510         elif test $ol_with_mp = gmp ; then
23511                 as_fn_error $? "gmp not available" "$LINENO" 5
23512         fi
23513 fi
23514 if test $ol_with_mp = auto ; then
23515         ol_with_mp=no
23516 fi
23517
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23519 $as_echo_n "checking for working memcmp... " >&6; }
23520 if ${ac_cv_func_memcmp_working+:} false; then :
23521   $as_echo_n "(cached) " >&6
23522 else
23523   if test "$cross_compiling" = yes; then :
23524   ac_cv_func_memcmp_working=no
23525 else
23526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h.  */
23528 $ac_includes_default
23529 int
23530 main ()
23531 {
23532
23533   /* Some versions of memcmp are not 8-bit clean.  */
23534   char c0 = '\100', c1 = '\200', c2 = '\201';
23535   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23536     return 1;
23537
23538   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23539      or more and with at least one buffer not starting on a 4-byte boundary.
23540      William Lewis provided this test program.   */
23541   {
23542     char foo[21];
23543     char bar[21];
23544     int i;
23545     for (i = 0; i < 4; i++)
23546       {
23547         char *a = foo + i;
23548         char *b = bar + i;
23549         strcpy (a, "--------01111111");
23550         strcpy (b, "--------10000000");
23551         if (memcmp (a, b, 16) >= 0)
23552           return 1;
23553       }
23554     return 0;
23555   }
23556
23557   ;
23558   return 0;
23559 }
23560 _ACEOF
23561 if ac_fn_c_try_run "$LINENO"; then :
23562   ac_cv_func_memcmp_working=yes
23563 else
23564   ac_cv_func_memcmp_working=no
23565 fi
23566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23567   conftest.$ac_objext conftest.beam conftest.$ac_ext
23568 fi
23569
23570 fi
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23572 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23573 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23574   *" memcmp.$ac_objext "* ) ;;
23575   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23576  ;;
23577 esac
23578
23579
23580
23581 if test $ac_cv_func_memcmp_working = no ; then
23582
23583 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23584
23585 fi
23586
23587 for ac_func in strftime
23588 do :
23589   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23590 if test "x$ac_cv_func_strftime" = xyes; then :
23591   cat >>confdefs.h <<_ACEOF
23592 #define HAVE_STRFTIME 1
23593 _ACEOF
23594
23595 else
23596   # strftime is in -lintl on SCO UNIX.
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23598 $as_echo_n "checking for strftime in -lintl... " >&6; }
23599 if ${ac_cv_lib_intl_strftime+:} false; then :
23600   $as_echo_n "(cached) " >&6
23601 else
23602   ac_check_lib_save_LIBS=$LIBS
23603 LIBS="-lintl  $LIBS"
23604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h.  */
23606
23607 /* Override any GCC internal prototype to avoid an error.
23608    Use char because int might match the return type of a GCC
23609    builtin and then its argument prototype would still apply.  */
23610 #ifdef __cplusplus
23611 extern "C"
23612 #endif
23613 char strftime ();
23614 int
23615 main ()
23616 {
23617 return strftime ();
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 if ac_fn_c_try_link "$LINENO"; then :
23623   ac_cv_lib_intl_strftime=yes
23624 else
23625   ac_cv_lib_intl_strftime=no
23626 fi
23627 rm -f core conftest.err conftest.$ac_objext \
23628     conftest$ac_exeext conftest.$ac_ext
23629 LIBS=$ac_check_lib_save_LIBS
23630 fi
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23632 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23633 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
23634   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23635
23636 LIBS="-lintl $LIBS"
23637 fi
23638
23639 fi
23640 done
23641
23642
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23644 $as_echo_n "checking for inet_aton()... " >&6; }
23645 if ${ol_cv_func_inet_aton+:} false; then :
23646   $as_echo_n "(cached) " >&6
23647 else
23648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649 /* end confdefs.h.  */
23650
23651 #ifdef HAVE_SYS_TYPES_H
23652 #       include <sys/types.h>
23653 #endif
23654 #ifdef HAVE_SYS_SOCKET_H
23655 #       include <sys/socket.h>
23656 #       ifdef HAVE_SYS_SELECT_H
23657 #               include <sys/select.h>
23658 #       endif
23659 #       include <netinet/in.h>
23660 #       ifdef HAVE_ARPA_INET_H
23661 #               include <arpa/inet.h>
23662 #       endif
23663 #endif
23664
23665 int
23666 main ()
23667 {
23668 struct in_addr in;
23669 int rc = inet_aton( "255.255.255.255", &in );
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 if ac_fn_c_try_link "$LINENO"; then :
23675   ol_cv_func_inet_aton=yes
23676 else
23677   ol_cv_func_inet_aton=no
23678 fi
23679 rm -f core conftest.err conftest.$ac_objext \
23680     conftest$ac_exeext conftest.$ac_ext
23681 fi
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23683 $as_echo "$ol_cv_func_inet_aton" >&6; }
23684   if test $ol_cv_func_inet_aton != no; then
23685
23686 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23687
23688   fi
23689
23690
23691 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23692 if test "x$ac_cv_func__spawnlp" = xyes; then :
23693
23694 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23695
23696 fi
23697
23698
23699 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23700 if test "x$ac_cv_func__snprintf" = xyes; then :
23701   ac_cv_func_snprintf=yes
23702
23703 $as_echo "#define snprintf _snprintf" >>confdefs.h
23704
23705
23706 fi
23707
23708
23709 for ac_func in vsnprintf _vsnprintf
23710 do :
23711   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23712 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23713 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23714   cat >>confdefs.h <<_ACEOF
23715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23716 _ACEOF
23717
23718 fi
23719 done
23720
23721
23722 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23723         ac_cv_func_vsnprintf=yes
23724
23725 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23726
23727 fi
23728
23729 for ac_func in vprintf
23730 do :
23731   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23732 if test "x$ac_cv_func_vprintf" = xyes; then :
23733   cat >>confdefs.h <<_ACEOF
23734 #define HAVE_VPRINTF 1
23735 _ACEOF
23736
23737 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23738 if test "x$ac_cv_func__doprnt" = xyes; then :
23739
23740 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23741
23742 fi
23743
23744 fi
23745 done
23746
23747
23748
23749 if test $ac_cv_func_vprintf = yes ; then
23750                 for ac_func in snprintf vsnprintf
23751 do :
23752   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23755   cat >>confdefs.h <<_ACEOF
23756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23757 _ACEOF
23758
23759 fi
23760 done
23761
23762 fi
23763
23764 for ac_func in \
23765         bcopy                   \
23766         closesocket             \
23767         chroot                  \
23768         endgrent                \
23769         endpwent                \
23770         fcntl                   \
23771         flock                   \
23772         fstat                   \
23773         getdtablesize           \
23774         geteuid                 \
23775         getgrgid                \
23776         gethostname             \
23777         getpassphrase           \
23778         getpwuid                \
23779         getpwnam                \
23780         getspnam                \
23781         gettimeofday            \
23782         initgroups              \
23783         inet_ntoa_b             \
23784         ioctl                   \
23785         lockf                   \
23786         memcpy                  \
23787         memmove                 \
23788         memrchr                 \
23789         mkstemp                 \
23790         mktemp                  \
23791         pipe                    \
23792         read                    \
23793         recv                    \
23794         recvfrom                \
23795         setpwfile               \
23796         setgid                  \
23797         setegid                 \
23798         setsid                  \
23799         setuid                  \
23800         seteuid                 \
23801         signal                  \
23802         strdup                  \
23803         strpbrk                 \
23804         strrchr                 \
23805         strsep                  \
23806         strstr                  \
23807         strtol                  \
23808         strtoul                 \
23809         strtoq                  \
23810         strtouq                 \
23811         strtoll                 \
23812         strtoull                \
23813         strspn                  \
23814         sysconf                 \
23815         waitpid                 \
23816         wait4                   \
23817         write                   \
23818         send                    \
23819         sendmsg                 \
23820         sendto                  \
23821
23822 do :
23823   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23826   cat >>confdefs.h <<_ACEOF
23827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23828 _ACEOF
23829
23830 fi
23831 done
23832
23833
23834 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
23835 if test "x$ac_cv_func_getopt" = xyes; then :
23836   $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
23837
23838 else
23839   case " $LIBOBJS " in
23840   *" getopt.$ac_objext "* ) ;;
23841   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
23842  ;;
23843 esac
23844
23845 fi
23846
23847 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
23848 if test "x$ac_cv_func_getpeereid" = xyes; then :
23849   $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
23850
23851 else
23852   case " $LIBOBJS " in
23853   *" getpeereid.$ac_objext "* ) ;;
23854   *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
23855  ;;
23856 esac
23857
23858 fi
23859
23860
23861
23862 if test "$ac_cv_func_getopt" != yes; then
23863         LIBSRCS="$LIBSRCS getopt.c"
23864 fi
23865
23866 if test "$ac_cv_func_getpeereid" != yes; then
23867         for ac_func in getpeerucred
23868 do :
23869   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23872   cat >>confdefs.h <<_ACEOF
23873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23874 _ACEOF
23875
23876 fi
23877 done
23878
23879         if test "$ac_cv_func_getpeerucred" != yes ; then
23880                 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
23881 #ifdef HAVE_SYS_SOCKET_H
23882 #include <sys/socket.h>
23883 #endif
23884 "
23885 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = xyes; then :
23886
23887 cat >>confdefs.h <<_ACEOF
23888 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
23889 _ACEOF
23890
23891
23892 fi
23893
23894                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
23895                         ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
23896 #ifdef HAVE_SYS_SOCKET_H
23897 #include <sys/socket.h>
23898 #endif
23899 "
23900 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
23901
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
23904 _ACEOF
23905
23906
23907 fi
23908
23909                 fi
23910                 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
23911 if test "x$ac_cv_member_struct_stat_st_fstype" = xyes; then :
23912
23913 cat >>confdefs.h <<_ACEOF
23914 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
23915 _ACEOF
23916
23917
23918 fi
23919 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
23920 if test "x$ac_cv_member_struct_stat_st_vfstype" = xyes; then :
23921
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
23924 _ACEOF
23925
23926
23927 fi
23928
23929                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
23930                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h.  */
23932 struct stat st; char *ptr=st.st_fstype;
23933 _ACEOF
23934 if ac_fn_c_try_compile "$LINENO"; then :
23935
23936 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
23937
23938 else
23939
23940 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
23941
23942 fi
23943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944                 fi
23945         fi
23946         LIBSRCS="$LIBSRCS getpeereid.c"
23947 fi
23948
23949 if test "$ac_cv_func_snprintf" != yes ||
23950    test "$ac_cv_func_vsnprintf" != yes; then
23951         if test "$ac_cv_func_snprintf" != yes; then
23952
23953 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
23954
23955         fi
23956         if test "$ac_cv_func_vsnprintf" != yes; then
23957
23958 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
23959
23960         fi
23961 fi
23962
23963
23964 if test "$ol_enable_slapi" != no ; then
23965                         for ac_header in ltdl.h
23966 do :
23967   ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
23968 if test "x$ac_cv_header_ltdl_h" = xyes; then :
23969   cat >>confdefs.h <<_ACEOF
23970 #define HAVE_LTDL_H 1
23971 _ACEOF
23972
23973 fi
23974
23975 done
23976
23977
23978         if test $ac_cv_header_ltdl_h != yes ; then
23979                 as_fn_error $? "could not locate <ltdl.h>" "$LINENO" 5
23980         fi
23981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
23982 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
23983 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
23984   $as_echo_n "(cached) " >&6
23985 else
23986   ac_check_lib_save_LIBS=$LIBS
23987 LIBS="-lltdl  $LIBS"
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h.  */
23990
23991 /* Override any GCC internal prototype to avoid an error.
23992    Use char because int might match the return type of a GCC
23993    builtin and then its argument prototype would still apply.  */
23994 #ifdef __cplusplus
23995 extern "C"
23996 #endif
23997 char lt_dlinit ();
23998 int
23999 main ()
24000 {
24001 return lt_dlinit ();
24002   ;
24003   return 0;
24004 }
24005 _ACEOF
24006 if ac_fn_c_try_link "$LINENO"; then :
24007   ac_cv_lib_ltdl_lt_dlinit=yes
24008 else
24009   ac_cv_lib_ltdl_lt_dlinit=no
24010 fi
24011 rm -f core conftest.err conftest.$ac_objext \
24012     conftest$ac_exeext conftest.$ac_ext
24013 LIBS=$ac_check_lib_save_LIBS
24014 fi
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24016 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24017 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
24018
24019                 SLAPI_LIBS=-lltdl
24020                 LIBSLAPI=slapi/libslapi.la
24021
24022 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24023
24024
24025 else
24026   as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
24027 fi
24028
24029
24030
24031 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24032
24033 fi
24034
24035 if test "$ol_enable_debug" != no ; then
24036         if test "$ol_enable_debug" = traditional; then
24037
24038 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24039
24040         fi
24041
24042 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24043
24044 fi
24045 if test "$ol_enable_syslog" = yes ; then
24046
24047 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24048
24049 fi
24050 if test "$ol_enable_proctitle" != no ; then
24051
24052 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24053
24054 fi
24055 if test "$ol_enable_referrals" != no ; then
24056
24057 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24058
24059 fi
24060 if test "$ol_enable_local" != no; then
24061
24062 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24063
24064 fi
24065 if test "$ol_link_ipv6" != no; then
24066
24067 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24068
24069 fi
24070 if test "$ol_enable_cleartext" != no ; then
24071
24072 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24073
24074 fi
24075 if test "$ol_enable_crypt" != no ; then
24076
24077 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24078
24079 fi
24080 if test "$ol_link_spasswd" != no ; then
24081
24082 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24083
24084 fi
24085 if test "$ol_enable_rlookups" != no ; then
24086
24087 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24088
24089 fi
24090 if test "$ol_enable_aci" != no ; then
24091         if test $ol_enable_dynacl = no ; then
24092                 ol_enable_dynacl=yes
24093                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24094 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24095         fi
24096         if test "$ol_enable_aci" = mod ; then
24097                 MFLAG=SLAPD_MOD_DYNAMIC
24098                                 as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24099         else
24100                 MFLAG=SLAPD_MOD_STATIC
24101         fi
24102         WITH_ACI_ENABLED=$ol_enable_aci
24103
24104 cat >>confdefs.h <<_ACEOF
24105 #define SLAPD_ACI_ENABLED $MFLAG
24106 _ACEOF
24107
24108 else
24109         WITH_ACI_ENABLED=no
24110 fi
24111 if test "$ol_enable_dynacl" != no ; then
24112
24113 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24114
24115 fi
24116
24117 if test "$ol_link_modules" != no ; then
24118
24119 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24120
24121         BUILD_SLAPD=yes
24122         SLAPD_MODULES_LDFLAGS="-dlopen self"
24123 fi
24124
24125
24126 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24127
24128
24129 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24130
24131
24132 if test "$ol_enable_monitor" != no ; then
24133         BUILD_SLAPD=yes
24134         BUILD_MONITOR=$ol_enable_monitor
24135         if test "$ol_enable_monitor" = mod ; then
24136                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24137                 MFLAG=SLAPD_MOD_DYNAMIC
24138         else
24139                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24140                 MFLAG=SLAPD_MOD_STATIC
24141         fi
24142
24143 cat >>confdefs.h <<_ACEOF
24144 #define SLAPD_MONITOR $MFLAG
24145 _ACEOF
24146
24147 fi
24148
24149 if test "$ol_enable_bdb" != no ; then
24150         BUILD_SLAPD=yes
24151         BUILD_BDB=$ol_enable_bdb
24152         if test "$ol_enable_bdb" = mod ; then
24153                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24154                 MFLAG=SLAPD_MOD_DYNAMIC
24155         else
24156                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24157                 MFLAG=SLAPD_MOD_STATIC
24158         fi
24159
24160 cat >>confdefs.h <<_ACEOF
24161 #define SLAPD_BDB $MFLAG
24162 _ACEOF
24163
24164 fi
24165
24166 if test "$ol_enable_dnssrv" != no ; then
24167         BUILD_SLAPD=yes
24168         BUILD_DNSSRV=$ol_enable_dnssrv
24169         if test "$ol_enable_dnssrv" = mod ; then
24170                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24171                 MFLAG=SLAPD_MOD_DYNAMIC
24172         else
24173                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24174                 MFLAG=SLAPD_MOD_STATIC
24175         fi
24176
24177 cat >>confdefs.h <<_ACEOF
24178 #define SLAPD_DNSSRV $MFLAG
24179 _ACEOF
24180
24181 fi
24182
24183 if test "$ol_enable_hdb" != no ; then
24184         BUILD_SLAPD=yes
24185         BUILD_HDB=$ol_enable_hdb
24186         if test "$ol_enable_hdb" = mod ; then
24187                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24188                 MFLAG=SLAPD_MOD_DYNAMIC
24189         else
24190                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24191                 MFLAG=SLAPD_MOD_STATIC
24192         fi
24193
24194 cat >>confdefs.h <<_ACEOF
24195 #define SLAPD_HDB $MFLAG
24196 _ACEOF
24197
24198 fi
24199
24200 if test "$ol_enable_ldap" != no ; then
24201         BUILD_SLAPD=yes
24202         BUILD_LDAP=$ol_enable_ldap
24203         if test "$ol_enable_ldap" = mod ; then
24204                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24205                 MFLAG=SLAPD_MOD_DYNAMIC
24206         else
24207                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24208                 MFLAG=SLAPD_MOD_STATIC
24209         fi
24210
24211 cat >>confdefs.h <<_ACEOF
24212 #define SLAPD_LDAP $MFLAG
24213 _ACEOF
24214
24215 fi
24216
24217 if test "$ol_enable_mdb" != no ; then
24218         BUILD_SLAPD=yes
24219         BUILD_MDB=$ol_enable_mdb
24220         if test "$ol_enable_mdb" = mod ; then
24221                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24222                 MFLAG=SLAPD_MOD_DYNAMIC
24223         else
24224                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24225                 MFLAG=SLAPD_MOD_STATIC
24226         fi
24227
24228 cat >>confdefs.h <<_ACEOF
24229 #define SLAPD_MDB $MFLAG
24230 _ACEOF
24231
24232 fi
24233
24234 if test "$ol_enable_meta" != no ; then
24235         BUILD_SLAPD=yes
24236         BUILD_META=$ol_enable_meta
24237         BUILD_REWRITE=yes
24238         if test "$ol_enable_meta" = mod ; then
24239                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24240                 MFLAG=SLAPD_MOD_DYNAMIC
24241         else
24242                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24243                 MFLAG=SLAPD_MOD_STATIC
24244         fi
24245
24246 cat >>confdefs.h <<_ACEOF
24247 #define SLAPD_META $MFLAG
24248 _ACEOF
24249
24250 fi
24251
24252 if test "$ol_enable_ndb" != no ; then
24253         BUILD_SLAPD=yes
24254         BUILD_NDB=$ol_enable_ndb
24255         if test "$ol_enable_ndb" = mod ; then
24256                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24257                 MFLAG=SLAPD_MOD_DYNAMIC
24258         else
24259                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24260                 MFLAG=SLAPD_MOD_STATIC
24261         fi
24262
24263 cat >>confdefs.h <<_ACEOF
24264 #define SLAPD_NDB $MFLAG
24265 _ACEOF
24266
24267 fi
24268
24269 if test "$ol_enable_null" != no ; then
24270         BUILD_SLAPD=yes
24271         BUILD_NULL=$ol_enable_null
24272         if test "$ol_enable_null" = mod ; then
24273                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24274                 MFLAG=SLAPD_MOD_DYNAMIC
24275         else
24276                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24277                 MFLAG=SLAPD_MOD_STATIC
24278         fi
24279
24280 cat >>confdefs.h <<_ACEOF
24281 #define SLAPD_NULL $MFLAG
24282 _ACEOF
24283
24284 fi
24285
24286 if test "$ol_enable_passwd" != no ; then
24287         BUILD_SLAPD=yes
24288         BUILD_PASSWD=$ol_enable_passwd
24289         if test "$ol_enable_passwd" = mod ; then
24290                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24291                 MFLAG=SLAPD_MOD_DYNAMIC
24292         else
24293                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24294                 MFLAG=SLAPD_MOD_STATIC
24295         fi
24296
24297 cat >>confdefs.h <<_ACEOF
24298 #define SLAPD_PASSWD $MFLAG
24299 _ACEOF
24300
24301 fi
24302
24303 if test "$ol_link_perl" != no ; then
24304         BUILD_SLAPD=yes
24305         BUILD_PERL=$ol_enable_perl
24306         if test "$ol_enable_perl" = mod ; then
24307                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24308                 MFLAG=SLAPD_MOD_DYNAMIC
24309         else
24310                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24311                 MFLAG=SLAPD_MOD_STATIC
24312         fi
24313
24314 cat >>confdefs.h <<_ACEOF
24315 #define SLAPD_PERL $MFLAG
24316 _ACEOF
24317
24318 fi
24319
24320 if test "$ol_enable_relay" != no ; then
24321         BUILD_SLAPD=yes
24322         BUILD_RELAY=$ol_enable_relay
24323         if test "$ol_enable_relay" = mod ; then
24324                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24325                 MFLAG=SLAPD_MOD_DYNAMIC
24326         else
24327                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24328                 MFLAG=SLAPD_MOD_STATIC
24329         fi
24330
24331 cat >>confdefs.h <<_ACEOF
24332 #define SLAPD_RELAY $MFLAG
24333 _ACEOF
24334
24335 fi
24336
24337 if test "$ol_enable_shell" != no ; then
24338         if test "$ol_link_threads" != no ; then
24339                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24340 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24341         fi
24342         BUILD_SLAPD=yes
24343         BUILD_SHELL=$ol_enable_shell
24344         if test "$ol_enable_shell" = mod ; then
24345                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24346                 MFLAG=SLAPD_MOD_DYNAMIC
24347         else
24348                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24349                 MFLAG=SLAPD_MOD_STATIC
24350         fi
24351
24352 cat >>confdefs.h <<_ACEOF
24353 #define SLAPD_SHELL $MFLAG
24354 _ACEOF
24355
24356 fi
24357
24358 if test "$ol_enable_sock" != no ; then
24359         BUILD_SLAPD=yes
24360         BUILD_SOCK=$ol_enable_sock
24361         if test "$ol_enable_sock" = mod ; then
24362                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24363                 MFLAG=SLAPD_MOD_DYNAMIC
24364         else
24365                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24366                 MFLAG=SLAPD_MOD_STATIC
24367         fi
24368
24369 cat >>confdefs.h <<_ACEOF
24370 #define SLAPD_SOCK $MFLAG
24371 _ACEOF
24372
24373 fi
24374
24375 if test "$ol_link_sql" != no ; then
24376         BUILD_SLAPD=yes
24377         BUILD_SQL=$ol_enable_sql
24378         if test "$ol_enable_sql" = mod; then
24379                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24380                 MFLAG=SLAPD_MOD_DYNAMIC
24381         else
24382                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24383                 MFLAG=SLAPD_MOD_STATIC
24384         fi
24385
24386 cat >>confdefs.h <<_ACEOF
24387 #define SLAPD_SQL $MFLAG
24388 _ACEOF
24389
24390 fi
24391
24392 if test "$ol_enable_accesslog" != no ; then
24393         BUILD_ACCESSLOG=$ol_enable_accesslog
24394         if test "$ol_enable_accesslog" = mod ; then
24395                 MFLAG=SLAPD_MOD_DYNAMIC
24396                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24397         else
24398                 MFLAG=SLAPD_MOD_STATIC
24399                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24400         fi
24401
24402 cat >>confdefs.h <<_ACEOF
24403 #define SLAPD_OVER_ACCESSLOG $MFLAG
24404 _ACEOF
24405
24406 fi
24407
24408 if test "$ol_enable_auditlog" != no ; then
24409         BUILD_AUDITLOG=$ol_enable_auditlog
24410         if test "$ol_enable_auditlog" = mod ; then
24411                 MFLAG=SLAPD_MOD_DYNAMIC
24412                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24413         else
24414                 MFLAG=SLAPD_MOD_STATIC
24415                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24416         fi
24417
24418 cat >>confdefs.h <<_ACEOF
24419 #define SLAPD_OVER_AUDITLOG $MFLAG
24420 _ACEOF
24421
24422 fi
24423
24424 if test "$ol_enable_collect" != no ; then
24425         BUILD_COLLECT=$ol_enable_collect
24426         if test "$ol_enable_collect" = mod ; then
24427                 MFLAG=SLAPD_MOD_DYNAMIC
24428                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24429         else
24430                 MFLAG=SLAPD_MOD_STATIC
24431                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24432         fi
24433
24434 cat >>confdefs.h <<_ACEOF
24435 #define SLAPD_OVER_COLLECT $MFLAG
24436 _ACEOF
24437
24438 fi
24439
24440 if test "$ol_enable_constraint" != no ; then
24441         BUILD_CONSTRAINT=$ol_enable_constraint
24442         if test "$ol_enable_constraint" = mod ; then
24443                 MFLAG=SLAPD_MOD_DYNAMIC
24444                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24445         else
24446                 MFLAG=SLAPD_MOD_STATIC
24447                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24448         fi
24449
24450 cat >>confdefs.h <<_ACEOF
24451 #define SLAPD_OVER_CONSTRAINT $MFLAG
24452 _ACEOF
24453
24454 fi
24455
24456 if test "$ol_enable_dds" != no ; then
24457         BUILD_DDS=$ol_enable_dds
24458         if test "$ol_enable_dds" = mod ; then
24459                 MFLAG=SLAPD_MOD_DYNAMIC
24460                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24461         else
24462                 MFLAG=SLAPD_MOD_STATIC
24463                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24464         fi
24465
24466 cat >>confdefs.h <<_ACEOF
24467 #define SLAPD_OVER_DDS $MFLAG
24468 _ACEOF
24469
24470 fi
24471
24472 if test "$ol_enable_deref" != no ; then
24473         BUILD_DEREF=$ol_enable_deref
24474         if test "$ol_enable_deref" = mod ; then
24475                 MFLAG=SLAPD_MOD_DYNAMIC
24476                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24477         else
24478                 MFLAG=SLAPD_MOD_STATIC
24479                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24480         fi
24481
24482 cat >>confdefs.h <<_ACEOF
24483 #define SLAPD_OVER_DEREF $MFLAG
24484 _ACEOF
24485
24486 fi
24487
24488 if test "$ol_enable_dyngroup" != no ; then
24489         BUILD_DYNGROUP=$ol_enable_dyngroup
24490         if test "$ol_enable_dyngroup" = mod ; then
24491                 MFLAG=SLAPD_MOD_DYNAMIC
24492                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24493         else
24494                 MFLAG=SLAPD_MOD_STATIC
24495                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24496         fi
24497
24498 cat >>confdefs.h <<_ACEOF
24499 #define SLAPD_OVER_DYNGROUP $MFLAG
24500 _ACEOF
24501
24502 fi
24503
24504 if test "$ol_enable_dynlist" != no ; then
24505         BUILD_DYNLIST=$ol_enable_dynlist
24506         if test "$ol_enable_dynlist" = mod ; then
24507                 MFLAG=SLAPD_MOD_DYNAMIC
24508                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24509         else
24510                 MFLAG=SLAPD_MOD_STATIC
24511                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24512         fi
24513
24514 cat >>confdefs.h <<_ACEOF
24515 #define SLAPD_OVER_DYNLIST $MFLAG
24516 _ACEOF
24517
24518 fi
24519
24520 if test "$ol_enable_memberof" != no ; then
24521         BUILD_MEMBEROF=$ol_enable_memberof
24522         if test "$ol_enable_memberof" = mod ; then
24523                 MFLAG=SLAPD_MOD_DYNAMIC
24524                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24525         else
24526                 MFLAG=SLAPD_MOD_STATIC
24527                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24528         fi
24529
24530 cat >>confdefs.h <<_ACEOF
24531 #define SLAPD_OVER_MEMBEROF $MFLAG
24532 _ACEOF
24533
24534 fi
24535
24536 if test "$ol_enable_ppolicy" != no ; then
24537         BUILD_PPOLICY=$ol_enable_ppolicy
24538         if test "$ol_enable_ppolicy" = mod ; then
24539                 MFLAG=SLAPD_MOD_DYNAMIC
24540                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24541         else
24542                 MFLAG=SLAPD_MOD_STATIC
24543                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24544         fi
24545
24546 cat >>confdefs.h <<_ACEOF
24547 #define SLAPD_OVER_PPOLICY $MFLAG
24548 _ACEOF
24549
24550 fi
24551
24552 if test "$ol_enable_proxycache" != no ; then
24553         BUILD_PROXYCACHE=$ol_enable_proxycache
24554         if test "$ol_enable_proxycache" = mod ; then
24555                 MFLAG=SLAPD_MOD_DYNAMIC
24556                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24557         else
24558                 MFLAG=SLAPD_MOD_STATIC
24559                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24560         fi
24561
24562 cat >>confdefs.h <<_ACEOF
24563 #define SLAPD_OVER_PROXYCACHE $MFLAG
24564 _ACEOF
24565
24566 fi
24567
24568 if test "$ol_enable_refint" != no ; then
24569         BUILD_REFINT=$ol_enable_refint
24570         if test "$ol_enable_refint" = mod ; then
24571                 MFLAG=SLAPD_MOD_DYNAMIC
24572                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24573         else
24574                 MFLAG=SLAPD_MOD_STATIC
24575                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24576         fi
24577
24578 cat >>confdefs.h <<_ACEOF
24579 #define SLAPD_OVER_REFINT $MFLAG
24580 _ACEOF
24581
24582 fi
24583
24584 if test "$ol_enable_retcode" != no ; then
24585         BUILD_RETCODE=$ol_enable_retcode
24586         if test "$ol_enable_retcode" = mod ; then
24587                 MFLAG=SLAPD_MOD_DYNAMIC
24588                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24589         else
24590                 MFLAG=SLAPD_MOD_STATIC
24591                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24592         fi
24593
24594 cat >>confdefs.h <<_ACEOF
24595 #define SLAPD_OVER_RETCODE $MFLAG
24596 _ACEOF
24597
24598 fi
24599
24600 if test "$ol_enable_rwm" != no ; then
24601         BUILD_REWRITE=yes
24602         BUILD_RWM=$ol_enable_rwm
24603         if test "$ol_enable_rwm" = mod ; then
24604                 MFLAG=SLAPD_MOD_DYNAMIC
24605                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24606         else
24607                 MFLAG=SLAPD_MOD_STATIC
24608                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24609         fi
24610
24611 cat >>confdefs.h <<_ACEOF
24612 #define SLAPD_OVER_RWM $MFLAG
24613 _ACEOF
24614
24615 fi
24616
24617 if test "$ol_enable_seqmod" != no ; then
24618         BUILD_SEQMOD=$ol_enable_seqmod
24619         if test "$ol_enable_seqmod" = mod ; then
24620                 MFLAG=SLAPD_MOD_DYNAMIC
24621                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24622         else
24623                 MFLAG=SLAPD_MOD_STATIC
24624                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24625         fi
24626
24627 cat >>confdefs.h <<_ACEOF
24628 #define SLAPD_OVER_SEQMOD $MFLAG
24629 _ACEOF
24630
24631 fi
24632
24633 if test "$ol_enable_sssvlv" != no ; then
24634         BUILD_SSSVLV=$ol_enable_sssvlv
24635         if test "$ol_enable_sssvlv" = mod ; then
24636                 MFLAG=SLAPD_MOD_DYNAMIC
24637                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24638         else
24639                 MFLAG=SLAPD_MOD_STATIC
24640                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24641         fi
24642
24643 cat >>confdefs.h <<_ACEOF
24644 #define SLAPD_OVER_SSSVLV $MFLAG
24645 _ACEOF
24646
24647 fi
24648
24649 if test "$ol_enable_syncprov" != no ; then
24650         BUILD_SYNCPROV=$ol_enable_syncprov
24651         if test "$ol_enable_syncprov" = mod ; then
24652                 MFLAG=SLAPD_MOD_DYNAMIC
24653                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24654         else
24655                 MFLAG=SLAPD_MOD_STATIC
24656                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24657         fi
24658
24659 cat >>confdefs.h <<_ACEOF
24660 #define SLAPD_OVER_SYNCPROV $MFLAG
24661 _ACEOF
24662
24663 fi
24664
24665 if test "$ol_enable_translucent" != no ; then
24666         BUILD_TRANSLUCENT=$ol_enable_translucent
24667         if test "$ol_enable_translucent" = mod ; then
24668                 MFLAG=SLAPD_MOD_DYNAMIC
24669                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24670         else
24671                 MFLAG=SLAPD_MOD_STATIC
24672                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24673         fi
24674
24675 cat >>confdefs.h <<_ACEOF
24676 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24677 _ACEOF
24678
24679 fi
24680
24681 if test "$ol_enable_unique" != no ; then
24682         BUILD_UNIQUE=$ol_enable_unique
24683         if test "$ol_enable_unique" = mod ; then
24684                 MFLAG=SLAPD_MOD_DYNAMIC
24685                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24686         else
24687                 MFLAG=SLAPD_MOD_STATIC
24688                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24689         fi
24690
24691 cat >>confdefs.h <<_ACEOF
24692 #define SLAPD_OVER_UNIQUE $MFLAG
24693 _ACEOF
24694
24695 fi
24696
24697 if test "$ol_enable_valsort" != no ; then
24698         BUILD_VALSORT=$ol_enable_valsort
24699         if test "$ol_enable_valsort" = mod ; then
24700                 MFLAG=SLAPD_MOD_DYNAMIC
24701                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24702         else
24703                 MFLAG=SLAPD_MOD_STATIC
24704                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24705         fi
24706
24707 cat >>confdefs.h <<_ACEOF
24708 #define SLAPD_OVER_VALSORT $MFLAG
24709 _ACEOF
24710
24711 fi
24712
24713 if test "$ol_enable_rewrite" != no ; then
24714
24715 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24716
24717         BUILD_REWRITE=yes
24718 fi
24719
24720 if test "$ol_enable_slapi" != no ; then
24721
24722 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24723
24724         BUILD_SLAPI=yes
24725         SLAPD_SLAPI_DEPEND=libslapi.a
24726 fi
24727
24728
24729
24730 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24731         PLAT=NT
24732         SLAPD_MODULES_LDFLAGS=
24733 else
24734         PLAT=UNIX
24735 fi
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827 # Check whether --with-xxinstall was given.
24828 if test "${with_xxinstall+set}" = set; then :
24829   withval=$with_xxinstall;
24830 fi
24831
24832
24833
24834 ac_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/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-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-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-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
24835
24836
24837 ac_config_commands="$ac_config_commands default"
24838
24839
24840
24841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24842 # Let make expand exec_prefix.
24843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24844
24845 DEFS=-DHAVE_CONFIG_H
24846
24847 ac_libobjs=
24848 ac_ltlibobjs=
24849 U=
24850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24851   # 1. Remove the extension, and $U if already installed.
24852   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24853   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24854   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24855   #    will be set to the directory where LIBOBJS objects are built.
24856   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24857   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24858 done
24859 LIBOBJS=$ac_libobjs
24860
24861 LTLIBOBJS=$ac_ltlibobjs
24862
24863
24864 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24865   as_fn_error $? "conditional \"AMDEP\" was never defined.
24866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24867 fi
24868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24869   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24871 fi
24872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24873   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24875 fi
24876
24877
24878 : "${CONFIG_STATUS=./config.status}"
24879 ac_write_fail=0
24880 ac_clean_files_save=$ac_clean_files
24881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24884 as_write_fail=0
24885 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24886 #! $SHELL
24887 # Generated by $as_me.
24888 # Run this file to recreate the current configuration.
24889 # Compiler output produced by configure, useful for debugging
24890 # configure, is in config.log if it exists.
24891
24892 debug=false
24893 ac_cs_recheck=false
24894 ac_cs_silent=false
24895
24896 SHELL=\${CONFIG_SHELL-$SHELL}
24897 export SHELL
24898 _ASEOF
24899 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24900 ## -------------------- ##
24901 ## M4sh Initialization. ##
24902 ## -------------------- ##
24903
24904 # Be more Bourne compatible
24905 DUALCASE=1; export DUALCASE # for MKS sh
24906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24907   emulate sh
24908   NULLCMD=:
24909   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24910   # is contrary to our usage.  Disable this feature.
24911   alias -g '${1+"$@"}'='"$@"'
24912   setopt NO_GLOB_SUBST
24913 else
24914   case `(set -o) 2>/dev/null` in #(
24915   *posix*) :
24916     set -o posix ;; #(
24917   *) :
24918      ;;
24919 esac
24920 fi
24921
24922
24923 as_nl='
24924 '
24925 export as_nl
24926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24930 # Prefer a ksh shell builtin over an external printf program on Solaris,
24931 # but without wasting forks for bash or zsh.
24932 if test -z "$BASH_VERSION$ZSH_VERSION" \
24933     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24934   as_echo='print -r --'
24935   as_echo_n='print -rn --'
24936 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24937   as_echo='printf %s\n'
24938   as_echo_n='printf %s'
24939 else
24940   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24941     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24942     as_echo_n='/usr/ucb/echo -n'
24943   else
24944     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24945     as_echo_n_body='eval
24946       arg=$1;
24947       case $arg in #(
24948       *"$as_nl"*)
24949         expr "X$arg" : "X\\(.*\\)$as_nl";
24950         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24951       esac;
24952       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24953     '
24954     export as_echo_n_body
24955     as_echo_n='sh -c $as_echo_n_body as_echo'
24956   fi
24957   export as_echo_body
24958   as_echo='sh -c $as_echo_body as_echo'
24959 fi
24960
24961 # The user is always right.
24962 if test "${PATH_SEPARATOR+set}" != set; then
24963   PATH_SEPARATOR=:
24964   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24965     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24966       PATH_SEPARATOR=';'
24967   }
24968 fi
24969
24970
24971 # IFS
24972 # We need space, tab and new line, in precisely that order.  Quoting is
24973 # there to prevent editors from complaining about space-tab.
24974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24975 # splitting by setting IFS to empty value.)
24976 IFS=" ""        $as_nl"
24977
24978 # Find who we are.  Look in the path if we contain no directory separator.
24979 as_myself=
24980 case $0 in #((
24981   *[\\/]* ) as_myself=$0 ;;
24982   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24984 do
24985   IFS=$as_save_IFS
24986   test -z "$as_dir" && as_dir=.
24987     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24988   done
24989 IFS=$as_save_IFS
24990
24991      ;;
24992 esac
24993 # We did not find ourselves, most probably we were run as `sh COMMAND'
24994 # in which case we are not to be found in the path.
24995 if test "x$as_myself" = x; then
24996   as_myself=$0
24997 fi
24998 if test ! -f "$as_myself"; then
24999   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25000   exit 1
25001 fi
25002
25003 # Unset variables that we do not need and which cause bugs (e.g. in
25004 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25005 # suppresses any "Segmentation fault" message there.  '((' could
25006 # trigger a bug in pdksh 5.2.14.
25007 for as_var in BASH_ENV ENV MAIL MAILPATH
25008 do eval test x\${$as_var+set} = xset \
25009   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25010 done
25011 PS1='$ '
25012 PS2='> '
25013 PS4='+ '
25014
25015 # NLS nuisances.
25016 LC_ALL=C
25017 export LC_ALL
25018 LANGUAGE=C
25019 export LANGUAGE
25020
25021 # CDPATH.
25022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25023
25024
25025 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25026 # ----------------------------------------
25027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25029 # script with STATUS, using 1 if that was 0.
25030 as_fn_error ()
25031 {
25032   as_status=$1; test $as_status -eq 0 && as_status=1
25033   if test "$4"; then
25034     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25035     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25036   fi
25037   $as_echo "$as_me: error: $2" >&2
25038   as_fn_exit $as_status
25039 } # as_fn_error
25040
25041
25042 # as_fn_set_status STATUS
25043 # -----------------------
25044 # Set $? to STATUS, without forking.
25045 as_fn_set_status ()
25046 {
25047   return $1
25048 } # as_fn_set_status
25049
25050 # as_fn_exit STATUS
25051 # -----------------
25052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25053 as_fn_exit ()
25054 {
25055   set +e
25056   as_fn_set_status $1
25057   exit $1
25058 } # as_fn_exit
25059
25060 # as_fn_unset VAR
25061 # ---------------
25062 # Portably unset VAR.
25063 as_fn_unset ()
25064 {
25065   { eval $1=; unset $1;}
25066 }
25067 as_unset=as_fn_unset
25068 # as_fn_append VAR VALUE
25069 # ----------------------
25070 # Append the text in VALUE to the end of the definition contained in VAR. Take
25071 # advantage of any shell optimizations that allow amortized linear growth over
25072 # repeated appends, instead of the typical quadratic growth present in naive
25073 # implementations.
25074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25075   eval 'as_fn_append ()
25076   {
25077     eval $1+=\$2
25078   }'
25079 else
25080   as_fn_append ()
25081   {
25082     eval $1=\$$1\$2
25083   }
25084 fi # as_fn_append
25085
25086 # as_fn_arith ARG...
25087 # ------------------
25088 # Perform arithmetic evaluation on the ARGs, and store the result in the
25089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25090 # must be portable across $(()) and expr.
25091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25092   eval 'as_fn_arith ()
25093   {
25094     as_val=$(( $* ))
25095   }'
25096 else
25097   as_fn_arith ()
25098   {
25099     as_val=`expr "$@" || test $? -eq 1`
25100   }
25101 fi # as_fn_arith
25102
25103
25104 if expr a : '\(a\)' >/dev/null 2>&1 &&
25105    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25106   as_expr=expr
25107 else
25108   as_expr=false
25109 fi
25110
25111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25112   as_basename=basename
25113 else
25114   as_basename=false
25115 fi
25116
25117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25118   as_dirname=dirname
25119 else
25120   as_dirname=false
25121 fi
25122
25123 as_me=`$as_basename -- "$0" ||
25124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25125          X"$0" : 'X\(//\)$' \| \
25126          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25127 $as_echo X/"$0" |
25128     sed '/^.*\/\([^/][^/]*\)\/*$/{
25129             s//\1/
25130             q
25131           }
25132           /^X\/\(\/\/\)$/{
25133             s//\1/
25134             q
25135           }
25136           /^X\/\(\/\).*/{
25137             s//\1/
25138             q
25139           }
25140           s/.*/./; q'`
25141
25142 # Avoid depending upon Character Ranges.
25143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25146 as_cr_digits='0123456789'
25147 as_cr_alnum=$as_cr_Letters$as_cr_digits
25148
25149 ECHO_C= ECHO_N= ECHO_T=
25150 case `echo -n x` in #(((((
25151 -n*)
25152   case `echo 'xy\c'` in
25153   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25154   xy)  ECHO_C='\c';;
25155   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25156        ECHO_T=' ';;
25157   esac;;
25158 *)
25159   ECHO_N='-n';;
25160 esac
25161
25162 rm -f conf$$ conf$$.exe conf$$.file
25163 if test -d conf$$.dir; then
25164   rm -f conf$$.dir/conf$$.file
25165 else
25166   rm -f conf$$.dir
25167   mkdir conf$$.dir 2>/dev/null
25168 fi
25169 if (echo >conf$$.file) 2>/dev/null; then
25170   if ln -s conf$$.file conf$$ 2>/dev/null; then
25171     as_ln_s='ln -s'
25172     # ... but there are two gotchas:
25173     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25174     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25175     # In both cases, we have to default to `cp -p'.
25176     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25177       as_ln_s='cp -p'
25178   elif ln conf$$.file conf$$ 2>/dev/null; then
25179     as_ln_s=ln
25180   else
25181     as_ln_s='cp -p'
25182   fi
25183 else
25184   as_ln_s='cp -p'
25185 fi
25186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25187 rmdir conf$$.dir 2>/dev/null
25188
25189
25190 # as_fn_mkdir_p
25191 # -------------
25192 # Create "$as_dir" as a directory, including parents if necessary.
25193 as_fn_mkdir_p ()
25194 {
25195
25196   case $as_dir in #(
25197   -*) as_dir=./$as_dir;;
25198   esac
25199   test -d "$as_dir" || eval $as_mkdir_p || {
25200     as_dirs=
25201     while :; do
25202       case $as_dir in #(
25203       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25204       *) as_qdir=$as_dir;;
25205       esac
25206       as_dirs="'$as_qdir' $as_dirs"
25207       as_dir=`$as_dirname -- "$as_dir" ||
25208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25209          X"$as_dir" : 'X\(//\)[^/]' \| \
25210          X"$as_dir" : 'X\(//\)$' \| \
25211          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25212 $as_echo X"$as_dir" |
25213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25214             s//\1/
25215             q
25216           }
25217           /^X\(\/\/\)[^/].*/{
25218             s//\1/
25219             q
25220           }
25221           /^X\(\/\/\)$/{
25222             s//\1/
25223             q
25224           }
25225           /^X\(\/\).*/{
25226             s//\1/
25227             q
25228           }
25229           s/.*/./; q'`
25230       test -d "$as_dir" && break
25231     done
25232     test -z "$as_dirs" || eval "mkdir $as_dirs"
25233   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25234
25235
25236 } # as_fn_mkdir_p
25237 if mkdir -p . 2>/dev/null; then
25238   as_mkdir_p='mkdir -p "$as_dir"'
25239 else
25240   test -d ./-p && rmdir ./-p
25241   as_mkdir_p=false
25242 fi
25243
25244 if test -x / >/dev/null 2>&1; then
25245   as_test_x='test -x'
25246 else
25247   if ls -dL / >/dev/null 2>&1; then
25248     as_ls_L_option=L
25249   else
25250     as_ls_L_option=
25251   fi
25252   as_test_x='
25253     eval sh -c '\''
25254       if test -d "$1"; then
25255         test -d "$1/.";
25256       else
25257         case $1 in #(
25258         -*)set "./$1";;
25259         esac;
25260         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25261         ???[sx]*):;;*)false;;esac;fi
25262     '\'' sh
25263   '
25264 fi
25265 as_executable_p=$as_test_x
25266
25267 # Sed expression to map a string onto a valid CPP name.
25268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25269
25270 # Sed expression to map a string onto a valid variable name.
25271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25272
25273
25274 exec 6>&1
25275 ## ----------------------------------- ##
25276 ## Main body of $CONFIG_STATUS script. ##
25277 ## ----------------------------------- ##
25278 _ASEOF
25279 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25280
25281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25282 # Save the log message, to keep $0 and so on meaningful, and to
25283 # report actual input values of CONFIG_FILES etc. instead of their
25284 # values after options handling.
25285 ac_log="
25286 This file was extended by $as_me, which was
25287 generated by GNU Autoconf 2.68.  Invocation command line was
25288
25289   CONFIG_FILES    = $CONFIG_FILES
25290   CONFIG_HEADERS  = $CONFIG_HEADERS
25291   CONFIG_LINKS    = $CONFIG_LINKS
25292   CONFIG_COMMANDS = $CONFIG_COMMANDS
25293   $ $0 $@
25294
25295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25296 "
25297
25298 _ACEOF
25299
25300 case $ac_config_files in *"
25301 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25302 esac
25303
25304 case $ac_config_headers in *"
25305 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25306 esac
25307
25308
25309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25310 # Files that config.status was made for.
25311 config_files="$ac_config_files"
25312 config_headers="$ac_config_headers"
25313 config_commands="$ac_config_commands"
25314
25315 _ACEOF
25316
25317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25318 ac_cs_usage="\
25319 \`$as_me' instantiates files and other configuration actions
25320 from templates according to the current configuration.  Unless the files
25321 and actions are specified as TAGs, all are instantiated by default.
25322
25323 Usage: $0 [OPTION]... [TAG]...
25324
25325   -h, --help       print this help, then exit
25326   -V, --version    print version number and configuration settings, then exit
25327       --config     print configuration, then exit
25328   -q, --quiet, --silent
25329                    do not print progress messages
25330   -d, --debug      don't remove temporary files
25331       --recheck    update $as_me by reconfiguring in the same conditions
25332       --file=FILE[:TEMPLATE]
25333                    instantiate the configuration file FILE
25334       --header=FILE[:TEMPLATE]
25335                    instantiate the configuration header FILE
25336
25337 Configuration files:
25338 $config_files
25339
25340 Configuration headers:
25341 $config_headers
25342
25343 Configuration commands:
25344 $config_commands
25345
25346 Report bugs to <<http://www.openldap.org/its/>>."
25347
25348 _ACEOF
25349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25350 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25351 ac_cs_version="\\
25352 config.status
25353 configured by $0, generated by GNU Autoconf 2.68,
25354   with options \\"\$ac_cs_config\\"
25355
25356 Copyright (C) 2010 Free Software Foundation, Inc.
25357 This config.status script is free software; the Free Software Foundation
25358 gives unlimited permission to copy, distribute and modify it."
25359
25360 ac_pwd='$ac_pwd'
25361 srcdir='$srcdir'
25362 INSTALL='$INSTALL'
25363 AWK='$AWK'
25364 test -n "\$AWK" || AWK=awk
25365 _ACEOF
25366
25367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25368 # The default lists apply if the user does not specify any file.
25369 ac_need_defaults=:
25370 while test $# != 0
25371 do
25372   case $1 in
25373   --*=?*)
25374     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25375     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25376     ac_shift=:
25377     ;;
25378   --*=)
25379     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25380     ac_optarg=
25381     ac_shift=:
25382     ;;
25383   *)
25384     ac_option=$1
25385     ac_optarg=$2
25386     ac_shift=shift
25387     ;;
25388   esac
25389
25390   case $ac_option in
25391   # Handling of the options.
25392   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25393     ac_cs_recheck=: ;;
25394   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25395     $as_echo "$ac_cs_version"; exit ;;
25396   --config | --confi | --conf | --con | --co | --c )
25397     $as_echo "$ac_cs_config"; exit ;;
25398   --debug | --debu | --deb | --de | --d | -d )
25399     debug=: ;;
25400   --file | --fil | --fi | --f )
25401     $ac_shift
25402     case $ac_optarg in
25403     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25404     '') as_fn_error $? "missing file argument" ;;
25405     esac
25406     as_fn_append CONFIG_FILES " '$ac_optarg'"
25407     ac_need_defaults=false;;
25408   --header | --heade | --head | --hea )
25409     $ac_shift
25410     case $ac_optarg in
25411     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25412     esac
25413     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25414     ac_need_defaults=false;;
25415   --he | --h)
25416     # Conflict between --help and --header
25417     as_fn_error $? "ambiguous option: \`$1'
25418 Try \`$0 --help' for more information.";;
25419   --help | --hel | -h )
25420     $as_echo "$ac_cs_usage"; exit ;;
25421   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25422   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25423     ac_cs_silent=: ;;
25424
25425   # This is an error.
25426   -*) as_fn_error $? "unrecognized option: \`$1'
25427 Try \`$0 --help' for more information." ;;
25428
25429   *) as_fn_append ac_config_targets " $1"
25430      ac_need_defaults=false ;;
25431
25432   esac
25433   shift
25434 done
25435
25436 ac_configure_extra_args=
25437
25438 if $ac_cs_silent; then
25439   exec 6>/dev/null
25440   ac_configure_extra_args="$ac_configure_extra_args --silent"
25441 fi
25442
25443 _ACEOF
25444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25445 if \$ac_cs_recheck; then
25446   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25447   shift
25448   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25449   CONFIG_SHELL='$SHELL'
25450   export CONFIG_SHELL
25451   exec "\$@"
25452 fi
25453
25454 _ACEOF
25455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25456 exec 5>>config.log
25457 {
25458   echo
25459   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25460 ## Running $as_me. ##
25461 _ASBOX
25462   $as_echo "$ac_log"
25463 } >&5
25464
25465 _ACEOF
25466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25467 #
25468 # INIT-COMMANDS
25469 #
25470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25471
25472 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25473 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25474
25475
25476 _ACEOF
25477
25478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25479
25480 # Handling of arguments.
25481 for ac_config_target in $ac_config_targets
25482 do
25483   case $ac_config_target in
25484     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25485     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25486     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25487     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25488     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25489     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25490     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25491     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25492     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25493     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25494     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25495     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25496     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25497     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25498     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25499     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25500     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25501     "libraries/libldap_r/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25502     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25503     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25504     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25505     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25506     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25507     "servers/slapd/back-bdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
25508     "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" ;;
25509     "servers/slapd/back-hdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
25510     "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" ;;
25511     "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" ;;
25512     "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" ;;
25513     "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" ;;
25514     "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" ;;
25515     "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" ;;
25516     "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" ;;
25517     "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" ;;
25518     "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" ;;
25519     "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" ;;
25520     "servers/slapd/back-shell/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
25521     "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" ;;
25522     "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" ;;
25523     "servers/slapd/shell-backends/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
25524     "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" ;;
25525     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25526     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25527     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25528     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25529     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25530
25531   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25532   esac
25533 done
25534
25535
25536 # If the user did not use the arguments to specify the items to instantiate,
25537 # then the envvar interface is used.  Set only those that are not.
25538 # We use the long form for the default assignment because of an extremely
25539 # bizarre bug on SunOS 4.1.3.
25540 if $ac_need_defaults; then
25541   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25542   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25543   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25544 fi
25545
25546 # Have a temporary directory for convenience.  Make it in the build tree
25547 # simply because there is no reason against having it here, and in addition,
25548 # creating and moving files from /tmp can sometimes cause problems.
25549 # Hook for its removal unless debugging.
25550 # Note that there is a small window in which the directory will not be cleaned:
25551 # after its creation but before its name has been assigned to `$tmp'.
25552 $debug ||
25553 {
25554   tmp= ac_tmp=
25555   trap 'exit_status=$?
25556   : "${ac_tmp:=$tmp}"
25557   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25558 ' 0
25559   trap 'as_fn_exit 1' 1 2 13 15
25560 }
25561 # Create a (secure) tmp directory for tmp files.
25562
25563 {
25564   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25565   test -d "$tmp"
25566 }  ||
25567 {
25568   tmp=./conf$$-$RANDOM
25569   (umask 077 && mkdir "$tmp")
25570 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25571 ac_tmp=$tmp
25572
25573 # Set up the scripts for CONFIG_FILES section.
25574 # No need to generate them if there are no CONFIG_FILES.
25575 # This happens for instance with `./config.status config.h'.
25576 if test -n "$CONFIG_FILES"; then
25577
25578
25579 ac_cr=`echo X | tr X '\015'`
25580 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25581 # But we know of no other shell where ac_cr would be empty at this
25582 # point, so we can use a bashism as a fallback.
25583 if test "x$ac_cr" = x; then
25584   eval ac_cr=\$\'\\r\'
25585 fi
25586 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25588   ac_cs_awk_cr='\\r'
25589 else
25590   ac_cs_awk_cr=$ac_cr
25591 fi
25592
25593 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25594 _ACEOF
25595
25596
25597 {
25598   echo "cat >conf$$subs.awk <<_ACEOF" &&
25599   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25600   echo "_ACEOF"
25601 } >conf$$subs.sh ||
25602   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25604 ac_delim='%!_!# '
25605 for ac_last_try in false false false false false :; do
25606   . ./conf$$subs.sh ||
25607     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25608
25609   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25610   if test $ac_delim_n = $ac_delim_num; then
25611     break
25612   elif $ac_last_try; then
25613     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25614   else
25615     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25616   fi
25617 done
25618 rm -f conf$$subs.sh
25619
25620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25621 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25622 _ACEOF
25623 sed -n '
25624 h
25625 s/^/S["/; s/!.*/"]=/
25626 p
25627 g
25628 s/^[^!]*!//
25629 :repl
25630 t repl
25631 s/'"$ac_delim"'$//
25632 t delim
25633 :nl
25634 h
25635 s/\(.\{148\}\)..*/\1/
25636 t more1
25637 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25638 p
25639 n
25640 b repl
25641 :more1
25642 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25643 p
25644 g
25645 s/.\{148\}//
25646 t nl
25647 :delim
25648 h
25649 s/\(.\{148\}\)..*/\1/
25650 t more2
25651 s/["\\]/\\&/g; s/^/"/; s/$/"/
25652 p
25653 b
25654 :more2
25655 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25656 p
25657 g
25658 s/.\{148\}//
25659 t delim
25660 ' <conf$$subs.awk | sed '
25661 /^[^""]/{
25662   N
25663   s/\n//
25664 }
25665 ' >>$CONFIG_STATUS || ac_write_fail=1
25666 rm -f conf$$subs.awk
25667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25668 _ACAWK
25669 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25670   for (key in S) S_is_set[key] = 1
25671   FS = "\a"
25672
25673 }
25674 {
25675   line = $ 0
25676   nfields = split(line, field, "@")
25677   substed = 0
25678   len = length(field[1])
25679   for (i = 2; i < nfields; i++) {
25680     key = field[i]
25681     keylen = length(key)
25682     if (S_is_set[key]) {
25683       value = S[key]
25684       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25685       len += length(value) + length(field[++i])
25686       substed = 1
25687     } else
25688       len += 1 + keylen
25689   }
25690
25691   print line
25692 }
25693
25694 _ACAWK
25695 _ACEOF
25696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25697 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25698   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25699 else
25700   cat
25701 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25702   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25703 _ACEOF
25704
25705 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25706 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25707 # trailing colons and then remove the whole line if VPATH becomes empty
25708 # (actually we leave an empty line to preserve line numbers).
25709 if test "x$srcdir" = x.; then
25710   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
25711 h
25712 s///
25713 s/^/:/
25714 s/[      ]*$/:/
25715 s/:\$(srcdir):/:/g
25716 s/:\${srcdir}:/:/g
25717 s/:@srcdir@:/:/g
25718 s/^:*//
25719 s/:*$//
25720 x
25721 s/\(=[   ]*\).*/\1/
25722 G
25723 s/\n//
25724 s/^[^=]*=[       ]*$//
25725 }'
25726 fi
25727
25728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25729 fi # test -n "$CONFIG_FILES"
25730
25731 # Set up the scripts for CONFIG_HEADERS section.
25732 # No need to generate them if there are no CONFIG_HEADERS.
25733 # This happens for instance with `./config.status Makefile'.
25734 if test -n "$CONFIG_HEADERS"; then
25735 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25736 BEGIN {
25737 _ACEOF
25738
25739 # Transform confdefs.h into an awk script `defines.awk', embedded as
25740 # here-document in config.status, that substitutes the proper values into
25741 # config.h.in to produce config.h.
25742
25743 # Create a delimiter string that does not exist in confdefs.h, to ease
25744 # handling of long lines.
25745 ac_delim='%!_!# '
25746 for ac_last_try in false false :; do
25747   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25748   if test -z "$ac_tt"; then
25749     break
25750   elif $ac_last_try; then
25751     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25752   else
25753     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25754   fi
25755 done
25756
25757 # For the awk script, D is an array of macro values keyed by name,
25758 # likewise P contains macro parameters if any.  Preserve backslash
25759 # newline sequences.
25760
25761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25762 sed -n '
25763 s/.\{148\}/&'"$ac_delim"'/g
25764 t rset
25765 :rset
25766 s/^[     ]*#[    ]*define[       ][      ]*/ /
25767 t def
25768 d
25769 :def
25770 s/\\$//
25771 t bsnl
25772 s/["\\]/\\&/g
25773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25774 D["\1"]=" \3"/p
25775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25776 d
25777 :bsnl
25778 s/["\\]/\\&/g
25779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25780 D["\1"]=" \3\\\\\\n"\\/p
25781 t cont
25782 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25783 t cont
25784 d
25785 :cont
25786 n
25787 s/.\{148\}/&'"$ac_delim"'/g
25788 t clear
25789 :clear
25790 s/\\$//
25791 t bsnlc
25792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25793 d
25794 :bsnlc
25795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25796 b cont
25797 ' <confdefs.h | sed '
25798 s/'"$ac_delim"'/"\\\
25799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25800
25801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25802   for (key in D) D_is_set[key] = 1
25803   FS = "\a"
25804 }
25805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25806   line = \$ 0
25807   split(line, arg, " ")
25808   if (arg[1] == "#") {
25809     defundef = arg[2]
25810     mac1 = arg[3]
25811   } else {
25812     defundef = substr(arg[1], 2)
25813     mac1 = arg[2]
25814   }
25815   split(mac1, mac2, "(") #)
25816   macro = mac2[1]
25817   prefix = substr(line, 1, index(line, defundef) - 1)
25818   if (D_is_set[macro]) {
25819     # Preserve the white space surrounding the "#".
25820     print prefix "define", macro P[macro] D[macro]
25821     next
25822   } else {
25823     # Replace #undef with comments.  This is necessary, for example,
25824     # in the case of _POSIX_SOURCE, which is predefined and required
25825     # on some systems where configure will not decide to define it.
25826     if (defundef == "undef") {
25827       print "/*", prefix defundef, macro, "*/"
25828       next
25829     }
25830   }
25831 }
25832 { print }
25833 _ACAWK
25834 _ACEOF
25835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25836   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25837 fi # test -n "$CONFIG_HEADERS"
25838
25839
25840 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25841 shift
25842 for ac_tag
25843 do
25844   case $ac_tag in
25845   :[FHLC]) ac_mode=$ac_tag; continue;;
25846   esac
25847   case $ac_mode$ac_tag in
25848   :[FHL]*:*);;
25849   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25850   :[FH]-) ac_tag=-:-;;
25851   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25852   esac
25853   ac_save_IFS=$IFS
25854   IFS=:
25855   set x $ac_tag
25856   IFS=$ac_save_IFS
25857   shift
25858   ac_file=$1
25859   shift
25860
25861   case $ac_mode in
25862   :L) ac_source=$1;;
25863   :[FH])
25864     ac_file_inputs=
25865     for ac_f
25866     do
25867       case $ac_f in
25868       -) ac_f="$ac_tmp/stdin";;
25869       *) # Look for the file first in the build tree, then in the source tree
25870          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25871          # because $ac_f cannot contain `:'.
25872          test -f "$ac_f" ||
25873            case $ac_f in
25874            [\\/$]*) false;;
25875            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25876            esac ||
25877            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25878       esac
25879       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25880       as_fn_append ac_file_inputs " '$ac_f'"
25881     done
25882
25883     # Let's still pretend it is `configure' which instantiates (i.e., don't
25884     # use $as_me), people would be surprised to read:
25885     #    /* config.h.  Generated by config.status.  */
25886     configure_input='Generated from '`
25887           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25888         `' by configure.'
25889     if test x"$ac_file" != x-; then
25890       configure_input="$ac_file.  $configure_input"
25891       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25892 $as_echo "$as_me: creating $ac_file" >&6;}
25893     fi
25894     # Neutralize special characters interpreted by sed in replacement strings.
25895     case $configure_input in #(
25896     *\&* | *\|* | *\\* )
25897        ac_sed_conf_input=`$as_echo "$configure_input" |
25898        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25899     *) ac_sed_conf_input=$configure_input;;
25900     esac
25901
25902     case $ac_tag in
25903     *:-:* | *:-) cat >"$ac_tmp/stdin" \
25904       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25905     esac
25906     ;;
25907   esac
25908
25909   ac_dir=`$as_dirname -- "$ac_file" ||
25910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25911          X"$ac_file" : 'X\(//\)[^/]' \| \
25912          X"$ac_file" : 'X\(//\)$' \| \
25913          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25914 $as_echo X"$ac_file" |
25915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25916             s//\1/
25917             q
25918           }
25919           /^X\(\/\/\)[^/].*/{
25920             s//\1/
25921             q
25922           }
25923           /^X\(\/\/\)$/{
25924             s//\1/
25925             q
25926           }
25927           /^X\(\/\).*/{
25928             s//\1/
25929             q
25930           }
25931           s/.*/./; q'`
25932   as_dir="$ac_dir"; as_fn_mkdir_p
25933   ac_builddir=.
25934
25935 case "$ac_dir" in
25936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25937 *)
25938   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25939   # A ".." for each directory in $ac_dir_suffix.
25940   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25941   case $ac_top_builddir_sub in
25942   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25943   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25944   esac ;;
25945 esac
25946 ac_abs_top_builddir=$ac_pwd
25947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25948 # for backward compatibility:
25949 ac_top_builddir=$ac_top_build_prefix
25950
25951 case $srcdir in
25952   .)  # We are building in place.
25953     ac_srcdir=.
25954     ac_top_srcdir=$ac_top_builddir_sub
25955     ac_abs_top_srcdir=$ac_pwd ;;
25956   [\\/]* | ?:[\\/]* )  # Absolute name.
25957     ac_srcdir=$srcdir$ac_dir_suffix;
25958     ac_top_srcdir=$srcdir
25959     ac_abs_top_srcdir=$srcdir ;;
25960   *) # Relative name.
25961     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25962     ac_top_srcdir=$ac_top_build_prefix$srcdir
25963     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25964 esac
25965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25966
25967
25968   case $ac_mode in
25969   :F)
25970   #
25971   # CONFIG_FILE
25972   #
25973
25974   case $INSTALL in
25975   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25976   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25977   esac
25978 _ACEOF
25979
25980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25981 # If the template does not know about datarootdir, expand it.
25982 # FIXME: This hack should be removed a few years after 2.60.
25983 ac_datarootdir_hack=; ac_datarootdir_seen=
25984 ac_sed_dataroot='
25985 /datarootdir/ {
25986   p
25987   q
25988 }
25989 /@datadir@/p
25990 /@docdir@/p
25991 /@infodir@/p
25992 /@localedir@/p
25993 /@mandir@/p'
25994 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25995 *datarootdir*) ac_datarootdir_seen=yes;;
25996 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25997   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25998 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25999 _ACEOF
26000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26001   ac_datarootdir_hack='
26002   s&@datadir@&$datadir&g
26003   s&@docdir@&$docdir&g
26004   s&@infodir@&$infodir&g
26005   s&@localedir@&$localedir&g
26006   s&@mandir@&$mandir&g
26007   s&\\\${datarootdir}&$datarootdir&g' ;;
26008 esac
26009 _ACEOF
26010
26011 # Neutralize VPATH when `$srcdir' = `.'.
26012 # Shell code in configure.ac might set extrasub.
26013 # FIXME: do we really want to maintain this feature?
26014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26015 ac_sed_extra="$ac_vpsub
26016 $extrasub
26017 _ACEOF
26018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26019 :t
26020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26021 s|@configure_input@|$ac_sed_conf_input|;t t
26022 s&@top_builddir@&$ac_top_builddir_sub&;t t
26023 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26024 s&@srcdir@&$ac_srcdir&;t t
26025 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26026 s&@top_srcdir@&$ac_top_srcdir&;t t
26027 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26028 s&@builddir@&$ac_builddir&;t t
26029 s&@abs_builddir@&$ac_abs_builddir&;t t
26030 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26031 s&@INSTALL@&$ac_INSTALL&;t t
26032 $ac_datarootdir_hack
26033 "
26034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26035   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26036
26037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26038   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26039   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26040       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26041   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26042 which seems to be undefined.  Please make sure it is defined" >&5
26043 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26044 which seems to be undefined.  Please make sure it is defined" >&2;}
26045
26046   rm -f "$ac_tmp/stdin"
26047   case $ac_file in
26048   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26049   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26050   esac \
26051   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26052  ;;
26053   :H)
26054   #
26055   # CONFIG_HEADER
26056   #
26057   if test x"$ac_file" != x-; then
26058     {
26059       $as_echo "/* $configure_input  */" \
26060       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26061     } >"$ac_tmp/config.h" \
26062       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26063     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26064       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26065 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26066     else
26067       rm -f "$ac_file"
26068       mv "$ac_tmp/config.h" "$ac_file" \
26069         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26070     fi
26071   else
26072     $as_echo "/* $configure_input  */" \
26073       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26074       || as_fn_error $? "could not create -" "$LINENO" 5
26075   fi
26076 # Compute "$ac_file"'s index in $config_headers.
26077 _am_stamp_count=1
26078 for _am_header in $config_headers :; do
26079   case $_am_header in
26080     "$ac_file" | "$ac_file":* )
26081       break ;;
26082     * )
26083       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26084   esac
26085 done
26086 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26088          X"$ac_file" : 'X\(//\)[^/]' \| \
26089          X"$ac_file" : 'X\(//\)$' \| \
26090          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26091 $as_echo X"$ac_file" |
26092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26093             s//\1/
26094             q
26095           }
26096           /^X\(\/\/\)[^/].*/{
26097             s//\1/
26098             q
26099           }
26100           /^X\(\/\/\)$/{
26101             s//\1/
26102             q
26103           }
26104           /^X\(\/\).*/{
26105             s//\1/
26106             q
26107           }
26108           s/.*/./; q'`/stamp-h$_am_stamp_count
26109  ;;
26110
26111   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26112 $as_echo "$as_me: executing $ac_file commands" >&6;}
26113  ;;
26114   esac
26115
26116
26117   case $ac_file$ac_mode in
26118     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26119   # Strip MF so we end up with the name of the file.
26120   mf=`echo "$mf" | sed -e 's/:.*$//'`
26121   # Check whether this is an Automake generated Makefile or not.
26122   # We used to match only the files named `Makefile.in', but
26123   # some people rename them; so instead we look at the file content.
26124   # Grep'ing the first line is not enough: some people post-process
26125   # each Makefile.in and add a new line on top of each file to say so.
26126   # So let's grep whole file.
26127   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26128     dirpart=`$as_dirname -- "$mf" ||
26129 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26130          X"$mf" : 'X\(//\)[^/]' \| \
26131          X"$mf" : 'X\(//\)$' \| \
26132          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26133 $as_echo X"$mf" |
26134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26135             s//\1/
26136             q
26137           }
26138           /^X\(\/\/\)[^/].*/{
26139             s//\1/
26140             q
26141           }
26142           /^X\(\/\/\)$/{
26143             s//\1/
26144             q
26145           }
26146           /^X\(\/\).*/{
26147             s//\1/
26148             q
26149           }
26150           s/.*/./; q'`
26151   else
26152     continue
26153   fi
26154   # Extract the definition of DEPDIR, am__include, and am__quote
26155   # from the Makefile without running `make'.
26156   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26157   test -z "$DEPDIR" && continue
26158   am__include=`sed -n 's/^am__include = //p' < "$mf"`
26159   test -z "am__include" && continue
26160   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26161   # When using ansi2knr, U may be empty or an underscore; expand it
26162   U=`sed -n 's/^U = //p' < "$mf"`
26163   # Find all dependency output files, they are included files with
26164   # $(DEPDIR) in their names.  We invoke sed twice because it is the
26165   # simplest approach to changing $(DEPDIR) to its actual value in the
26166   # expansion.
26167   for file in `sed -n "
26168     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26169        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26170     # Make sure the directory exists.
26171     test -f "$dirpart/$file" && continue
26172     fdir=`$as_dirname -- "$file" ||
26173 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26174          X"$file" : 'X\(//\)[^/]' \| \
26175          X"$file" : 'X\(//\)$' \| \
26176          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26177 $as_echo X"$file" |
26178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26179             s//\1/
26180             q
26181           }
26182           /^X\(\/\/\)[^/].*/{
26183             s//\1/
26184             q
26185           }
26186           /^X\(\/\/\)$/{
26187             s//\1/
26188             q
26189           }
26190           /^X\(\/\).*/{
26191             s//\1/
26192             q
26193           }
26194           s/.*/./; q'`
26195     as_dir=$dirpart/$fdir; as_fn_mkdir_p
26196     # echo "creating $dirpart/$file"
26197     echo '# dummy' > "$dirpart/$file"
26198   done
26199 done
26200  ;;
26201     "default":C)
26202 chmod +x tests/run
26203 date > stamp-h
26204 BACKENDSC="servers/slapd/backends.c"
26205 echo "Making $BACKENDSC"
26206 rm -f $BACKENDSC
26207 cat > $BACKENDSC << ENDX
26208 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26209  *
26210  * Copyright 1998-2014 The OpenLDAP Foundation.
26211  * All rights reserved.
26212  *
26213  * Redistribution and use in source and binary forms, with or without
26214  * modification, are permitted only as authorized by the OpenLDAP
26215  * Public License.
26216  *
26217  * A copy of this license is available in the file LICENSE in the
26218  * top-level directory of the distribution or, alternatively, at
26219  * <http://www.OpenLDAP.org/license.html>.
26220  */
26221 /* This file is automatically generated by configure; please do not edit. */
26222
26223 #include "portable.h"
26224 #include "slap.h"
26225
26226 ENDX
26227 if test "${STATIC_BACKENDS}"; then
26228         for b in config ${STATIC_BACKENDS}; do
26229                 bb=`echo "${b}" | sed -e 's/back-//'`
26230                 cat >> $BACKENDSC << ENDX
26231 extern BI_init ${bb}_back_initialize;
26232 ENDX
26233         done
26234
26235         cat >> $BACKENDSC << ENDX
26236
26237 BackendInfo slap_binfo[] = {
26238 ENDX
26239
26240         for b in config ${STATIC_BACKENDS}; do
26241                 bb=`echo "${b}" | sed -e 's/back-//'`
26242                 echo "    Add ${bb} ..."
26243                 cat >> $BACKENDSC << ENDX
26244         { "${bb}", ${bb}_back_initialize },
26245 ENDX
26246         done
26247
26248         cat >> $BACKENDSC << ENDX
26249         { NULL, NULL },
26250 };
26251
26252 /* end of generated file */
26253 ENDX
26254 fi
26255 OVERLAYSC="servers/slapd/overlays/statover.c"
26256 echo "Making $OVERLAYSC"
26257 rm -f $OVERLAYSC
26258 cat > $OVERLAYSC << ENDX
26259 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26260  *
26261  * Copyright 1998-2014 The OpenLDAP Foundation.
26262  * All rights reserved.
26263  *
26264  * Redistribution and use in source and binary forms, with or without
26265  * modification, are permitted only as authorized by the OpenLDAP
26266  * Public License.
26267  *
26268  * A copy of this license is available in the file LICENSE in the
26269  * top-level directory of the distribution or, alternatively, at
26270  * <http://www.OpenLDAP.org/license.html>.
26271  */
26272 /* This file is automatically generated by configure; please do not edit. */
26273
26274 #include "portable.h"
26275 #include "slap.h"
26276
26277 ENDX
26278 if test "${STATIC_OVERLAYS}"; then
26279         for o in ${STATIC_OVERLAYS}; do
26280                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26281                 cat >> $OVERLAYSC << ENDX
26282 extern OV_init ${oo}_initialize;
26283 ENDX
26284         done
26285 fi
26286
26287 cat >> $OVERLAYSC << ENDX
26288
26289 OverlayInit slap_oinfo[] = {
26290 ENDX
26291
26292 if test "${STATIC_OVERLAYS}"; then
26293         for o in ${STATIC_OVERLAYS}; do
26294                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26295                 echo "    Add ${oo} ..."
26296                 cat >> $OVERLAYSC << ENDX
26297         { "${oo}", ${oo}_initialize },
26298 ENDX
26299         done
26300 fi
26301
26302         cat >> $OVERLAYSC << ENDX
26303         { NULL, NULL },
26304 };
26305
26306 /* end of generated file */
26307 ENDX
26308
26309 if test "${ol_cv_mkdep}" = no; then
26310         echo '(Do not "make depend"; we do not know how to build dependencies)'
26311 else
26312         echo 'Please run "make depend" to build dependencies'
26313 fi
26314  ;;
26315
26316   esac
26317 done # for ac_tag
26318
26319
26320 as_fn_exit 0
26321 _ACEOF
26322 ac_clean_files=$ac_clean_files_save
26323
26324 test $ac_write_fail = 0 ||
26325   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26326
26327
26328 # configure is writing to config.log, and then calls config.status.
26329 # config.status does its own redirection, appending to config.log.
26330 # Unfortunately, on DOS this fails, as config.log is still kept open
26331 # by configure, so config.status won't be able to write to it; its
26332 # output is simply discarded.  So we exec the FD to /dev/null,
26333 # effectively closing config.log, so it can be properly (re)opened and
26334 # appended to by config.status.  When coming back to configure, we
26335 # need to make the FD available again.
26336 if test "$no_create" != yes; then
26337   ac_cs_success=:
26338   ac_config_status_args=
26339   test "$silent" = yes &&
26340     ac_config_status_args="$ac_config_status_args --quiet"
26341   exec 5>/dev/null
26342   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26343   exec 5>>config.log
26344   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26345   # would make configure fail if this is the last instruction.
26346   $ac_cs_success || as_fn_exit 1
26347 fi
26348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26349   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26351 fi
26352