]> git.sur5r.net Git - openldap/blob - configure
Resync
[openldap] / configure
1 #! /bin/sh
2 # From configure.in Id: d70d5c72ac4d46432c8be2361e4f7b543378319b .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65.
5 #
6 # Copyright 1998-2011 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 Free Software Foundation,
12 # 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 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in #(
150   *posix*) :
151     set -o posix ;; #(
152   *) :
153      ;;
154 esac
155 fi
156 "
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171   exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179   if (eval "$as_required") 2>/dev/null; then :
180   as_have_required=yes
181 else
182   as_have_required=no
183 fi
184   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186 else
187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 do
191   IFS=$as_save_IFS
192   test -z "$as_dir" && as_dir=.
193   as_found=:
194   case $as_dir in #(
195          /*)
196            for as_base in sh bash ksh sh5; do
197              # Try only shells that exist, to save several forks.
198              as_shell=$as_dir/$as_base
199              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   CONFIG_SHELL=$as_shell as_have_required=yes
202                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   break 2
204 fi
205 fi
206            done;;
207        esac
208   as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212   CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
215
216
217       if test "x$CONFIG_SHELL" != x; then :
218   # We cannot yet assume a decent shell, so we have to provide a
219         # neutralization value for shells without unset; and this also
220         # works around shells that cannot unset nonexistent variables.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 fi
227
228     if test x$as_have_required = xno; then :
229   $as_echo "$0: This script requires a shell more modern than all"
230   $as_echo "$0: the shells that I found on your system."
231   if test x${ZSH_VERSION+set} = xset ; then
232     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234   else
235     $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: <http://www.openldap.org/its/> about your system,
237 $0: including any error possibly output before this
238 $0: message. Then install a modern shell, or manually run
239 $0: the script under such a shell if you do have one."
240   fi
241   exit 1
242 fi
243 fi
244 fi
245 SHELL=${CONFIG_SHELL-/bin/sh}
246 export SHELL
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
250
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
254 # as_fn_unset VAR
255 # ---------------
256 # Portably unset VAR.
257 as_fn_unset ()
258 {
259   { eval $1=; unset $1;}
260 }
261 as_unset=as_fn_unset
262
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
266 as_fn_set_status ()
267 {
268   return $1
269 } # as_fn_set_status
270
271 # as_fn_exit STATUS
272 # -----------------
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
274 as_fn_exit ()
275 {
276   set +e
277   as_fn_set_status $1
278   exit $1
279 } # as_fn_exit
280
281 # as_fn_mkdir_p
282 # -------------
283 # Create "$as_dir" as a directory, including parents if necessary.
284 as_fn_mkdir_p ()
285 {
286
287   case $as_dir in #(
288   -*) as_dir=./$as_dir;;
289   esac
290   test -d "$as_dir" || eval $as_mkdir_p || {
291     as_dirs=
292     while :; do
293       case $as_dir in #(
294       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295       *) as_qdir=$as_dir;;
296       esac
297       as_dirs="'$as_qdir' $as_dirs"
298       as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300          X"$as_dir" : 'X\(//\)[^/]' \| \
301          X"$as_dir" : 'X\(//\)$' \| \
302          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)[^/].*/{
309             s//\1/
310             q
311           }
312           /^X\(\/\/\)$/{
313             s//\1/
314             q
315           }
316           /^X\(\/\).*/{
317             s//\1/
318             q
319           }
320           s/.*/./; q'`
321       test -d "$as_dir" && break
322     done
323     test -z "$as_dirs" || eval "mkdir $as_dirs"
324   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325
326
327 } # as_fn_mkdir_p
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
333 # implementations.
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335   eval 'as_fn_append ()
336   {
337     eval $1+=\$2
338   }'
339 else
340   as_fn_append ()
341   {
342     eval $1=\$$1\$2
343   }
344 fi # as_fn_append
345
346 # as_fn_arith ARG...
347 # ------------------
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352   eval 'as_fn_arith ()
353   {
354     as_val=$(( $* ))
355   }'
356 else
357   as_fn_arith ()
358   {
359     as_val=`expr "$@" || test $? -eq 1`
360   }
361 fi # as_fn_arith
362
363
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
369 as_fn_error ()
370 {
371   as_status=$?; test $as_status -eq 0 && as_status=1
372   if test "$3"; then
373     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375   fi
376   $as_echo "$as_me: error: $1" >&2
377   as_fn_exit $as_status
378 } # as_fn_error
379
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381    test "X`expr 00001 : '.*\(...\)'`" = X001; then
382   as_expr=expr
383 else
384   as_expr=false
385 fi
386
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388   as_basename=basename
389 else
390   as_basename=false
391 fi
392
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394   as_dirname=dirname
395 else
396   as_dirname=false
397 fi
398
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401          X"$0" : 'X\(//\)$' \| \
402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 $as_echo X/"$0" |
404     sed '/^.*\/\([^/][^/]*\)\/*$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\/\)$/{
409             s//\1/
410             q
411           }
412           /^X\/\(\/\).*/{
413             s//\1/
414             q
415           }
416           s/.*/./; q'`
417
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
424
425
426   as_lineno_1=$LINENO as_lineno_1a=$LINENO
427   as_lineno_2=$LINENO as_lineno_2a=$LINENO
428   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
431   sed -n '
432     p
433     /[$]LINENO/=
434   ' <$as_myself |
435     sed '
436       s/[$]LINENO.*/&-/
437       t lineno
438       b
439       :lineno
440       N
441       :loop
442       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443       t loop
444       s/-\n.*//
445     ' >$as_me.lineno &&
446   chmod +x "$as_me.lineno" ||
447     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448
449   # Don't try to exec as it changes $[0], causing all sort of problems
450   # (the dirname of $[0] is not the place where we might find the
451   # original and so on.  Autoconf is especially sensitive to this).
452   . "./$as_me.lineno"
453   # Exit status is that of the last command.
454   exit
455 }
456
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
459 -n*)
460   case `echo 'xy\c'` in
461   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
462   xy)  ECHO_C='\c';;
463   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
464        ECHO_T=' ';;
465   esac;;
466 *)
467   ECHO_N='-n';;
468 esac
469
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472   rm -f conf$$.dir/conf$$.file
473 else
474   rm -f conf$$.dir
475   mkdir conf$$.dir 2>/dev/null
476 fi
477 if (echo >conf$$.file) 2>/dev/null; then
478   if ln -s conf$$.file conf$$ 2>/dev/null; then
479     as_ln_s='ln -s'
480     # ... but there are two gotchas:
481     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483     # In both cases, we have to default to `cp -p'.
484     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485       as_ln_s='cp -p'
486   elif ln conf$$.file conf$$ 2>/dev/null; then
487     as_ln_s=ln
488   else
489     as_ln_s='cp -p'
490   fi
491 else
492   as_ln_s='cp -p'
493 fi
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
496
497 if mkdir -p . 2>/dev/null; then
498   as_mkdir_p='mkdir -p "$as_dir"'
499 else
500   test -d ./-p && rmdir ./-p
501   as_mkdir_p=false
502 fi
503
504 if test -x / >/dev/null 2>&1; then
505   as_test_x='test -x'
506 else
507   if ls -dL / >/dev/null 2>&1; then
508     as_ls_L_option=L
509   else
510     as_ls_L_option=
511   fi
512   as_test_x='
513     eval sh -c '\''
514       if test -d "$1"; then
515         test -d "$1/.";
516       else
517         case $1 in #(
518         -*)set "./$1";;
519         esac;
520         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521         ???[sx]*):;;*)false;;esac;fi
522     '\'' sh
523   '
524 fi
525 as_executable_p=$as_test_x
526
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
533
534
535 # Check that we are running under the correct shell.
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538 case X$ECHO in
539 X*--fallback-echo)
540   # Remove one level of quotation (which was required for Make).
541   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
542   ;;
543 esac
544
545 echo=${ECHO-echo}
546 if test "X$1" = X--no-reexec; then
547   # Discard the --no-reexec flag, and continue.
548   shift
549 elif test "X$1" = X--fallback-echo; then
550   # Avoid inline document here, it may be left over
551   :
552 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
553   # Yippee, $echo works!
554   :
555 else
556   # Restart under the correct shell.
557   exec $SHELL "$0" --no-reexec ${1+"$@"}
558 fi
559
560 if test "X$1" = X--fallback-echo; then
561   # used as fallback echo
562   shift
563   cat <<EOF
564 $*
565 EOF
566   exit 0
567 fi
568
569 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 # if CDPATH is set.
571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572
573 if test -z "$ECHO"; then
574 if test "X${echo_test_string+set}" != Xset; then
575 # find a string as large as possible, as long as the shell can cope with it
576   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
579        echo_test_string=`eval $cmd` &&
580        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
581     then
582       break
583     fi
584   done
585 fi
586
587 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
588    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
589    test "X$echo_testing_string" = "X$echo_test_string"; then
590   :
591 else
592   # The Solaris, AIX, and Digital Unix default echo programs unquote
593   # backslashes.  This makes it impossible to quote backslashes using
594   #   echo "$something" | sed 's/\\/\\\\/g'
595   #
596   # So, first we look for a working echo in the user's PATH.
597
598   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599   for dir in $PATH /usr/ucb; do
600     IFS="$lt_save_ifs"
601     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604        test "X$echo_testing_string" = "X$echo_test_string"; then
605       echo="$dir/echo"
606       break
607     fi
608   done
609   IFS="$lt_save_ifs"
610
611   if test "X$echo" = Xecho; then
612     # We didn't find a better echo, so look for alternatives.
613     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
614        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
615        test "X$echo_testing_string" = "X$echo_test_string"; then
616       # This shell has a builtin print -r that does the trick.
617       echo='print -r'
618     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
619          test "X$CONFIG_SHELL" != X/bin/ksh; then
620       # If we have ksh, try running configure again with it.
621       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622       export ORIGINAL_CONFIG_SHELL
623       CONFIG_SHELL=/bin/ksh
624       export CONFIG_SHELL
625       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626     else
627       # Try using printf.
628       echo='printf %s\n'
629       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631          test "X$echo_testing_string" = "X$echo_test_string"; then
632         # Cool, printf works
633         :
634       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635            test "X$echo_testing_string" = 'X\t' &&
636            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637            test "X$echo_testing_string" = "X$echo_test_string"; then
638         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
639         export CONFIG_SHELL
640         SHELL="$CONFIG_SHELL"
641         export SHELL
642         echo="$CONFIG_SHELL $0 --fallback-echo"
643       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644            test "X$echo_testing_string" = 'X\t' &&
645            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646            test "X$echo_testing_string" = "X$echo_test_string"; then
647         echo="$CONFIG_SHELL $0 --fallback-echo"
648       else
649         # maybe with a smaller string...
650         prev=:
651
652         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
654           then
655             break
656           fi
657           prev="$cmd"
658         done
659
660         if test "$prev" != 'sed 50q "$0"'; then
661           echo_test_string=`eval $prev`
662           export echo_test_string
663           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
664         else
665           # Oops.  We lost completely, so just stick with echo.
666           echo=echo
667         fi
668       fi
669     fi
670   fi
671 fi
672 fi
673
674 # Copy echo and quote the copy suitably for passing to libtool from
675 # the Makefile, instead of quoting the original, which is used later.
676 ECHO=$echo
677 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 fi
680
681
682
683
684 test -n "$DJDIR" || exec 7<&0 </dev/null
685 exec 6>&1
686
687 # Name of the host.
688 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
689 # so uname gets run too.
690 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
691
692 #
693 # Initializations.
694 #
695 ac_default_prefix=/usr/local
696 ac_clean_files=
697 ac_config_libobj_dir=.
698 LIBOBJS=
699 cross_compiling=no
700 subdirs=
701 MFLAGS=
702 MAKEFLAGS=
703
704 # Identity of this package.
705 PACKAGE_NAME=
706 PACKAGE_TARNAME=
707 PACKAGE_VERSION=
708 PACKAGE_STRING=
709 PACKAGE_BUGREPORT=
710 PACKAGE_URL=
711
712 ac_unique_file="OpenLDAP"
713 ac_unique_file="build/version.sh"
714 ac_default_prefix=/usr/local
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_subst_vars='LTLIBOBJS
752 SLAPD_SQL_INCLUDES
753 SLAPD_SQL_LIBS
754 SLAPD_SQL_LDFLAGS
755 SLAPD_GMP_LIBS
756 SLAPD_SLP_LIBS
757 ICU_LIBS
758 AUTH_LIBS
759 LIBSLAPI
760 SLAPI_LIBS
761 MODULES_LIBS
762 TLS_LIBS
763 SASL_LIBS
764 KRB5_LIBS
765 KRB4_LIBS
766 MOD_PERL_LDFLAGS
767 SLAPD_PERL_LDFLAGS
768 PERL_CPPFLAGS
769 SLAPD_DYNAMIC_OVERLAYS
770 SLAPD_STATIC_OVERLAYS
771 SLAPD_DYNAMIC_BACKENDS
772 SLAPD_STATIC_BACKENDS
773 SLAPD_NO_STATIC
774 SLAPD_MODULES_LDFLAGS
775 SLAPD_MODULES_CPPFLAGS
776 WRAP_LIBS
777 LUTIL_LIBS
778 LTHREAD_LIBS
779 SLAPD_NDB_INCS
780 SLAPD_NDB_LIBS
781 BDB_LIBS
782 SLAPD_LIBS
783 LDAP_LIBS
784 BUILD_VALSORT
785 BUILD_UNIQUE
786 BUILD_TRANSLUCENT
787 BUILD_SYNCPROV
788 BUILD_SSSVLV
789 BUILD_SEQMOD
790 BUILD_RWM
791 BUILD_RETCODE
792 BUILD_REFINT
793 BUILD_PROXYCACHE
794 BUILD_PPOLICY
795 BUILD_MEMBEROF
796 BUILD_LASTMOD
797 BUILD_DYNLIST
798 BUILD_DYNGROUP
799 BUILD_DEREF
800 BUILD_DENYOP
801 BUILD_DDS
802 BUILD_CONSTRAINT
803 BUILD_COLLECT
804 BUILD_AUDITLOG
805 BUILD_ACCESSLOG
806 BUILD_SQL
807 BUILD_SOCK
808 BUILD_SHELL
809 BUILD_PERL
810 BUILD_RELAY
811 BUILD_PASSWD
812 BUILD_NULL
813 BUILD_NDB
814 BUILD_MONITOR
815 BUILD_META
816 BUILD_MDB
817 BUILD_LDAP
818 BUILD_HDB
819 BUILD_DNSSRV
820 BUILD_BDB
821 SLAPD_SLAPI_DEPEND
822 BUILD_SLAPI
823 BUILD_SLAPD
824 BUILD_LIBS_DYNAMIC
825 BUILD_THREAD
826 WITH_ACI_ENABLED
827 WITH_MODULES_ENABLED
828 WITH_TLS
829 WITH_SASL
830 PLAT
831 LIBSRCS
832 LIBOBJS
833 MYSQL
834 LTSTATIC
835 OL_MKDEP_FLAGS
836 OL_MKDEP
837 PERLBIN
838 LIBTOOL
839 CPP
840 OBJDUMP
841 AS
842 DLLTOOL
843 RANLIB
844 ECHO
845 LN_S
846 EGREP
847 GREP
848 am__fastdepCC_FALSE
849 am__fastdepCC_TRUE
850 CCDEPMODE
851 AMDEPBACKSLASH
852 AMDEP_FALSE
853 AMDEP_TRUE
854 am__quote
855 am__include
856 DEPDIR
857 OBJEXT
858 EXEEXT
859 ac_ct_CC
860 CPPFLAGS
861 LDFLAGS
862 CFLAGS
863 AR
864 CC
865 ldap_subdir
866 top_builddir
867 OPENLDAP_RELEASE_DATE
868 OPENLDAP_LIBVERSION
869 OPENLDAP_LIBRELEASE
870 am__untar
871 am__tar
872 AMTAR
873 am__leading_dot
874 SET_MAKE
875 AWK
876 mkdir_p
877 INSTALL_STRIP_PROGRAM
878 STRIP
879 install_sh
880 MAKEINFO
881 AUTOHEADER
882 AUTOMAKE
883 AUTOCONF
884 ACLOCAL
885 VERSION
886 PACKAGE
887 CYGPATH_W
888 INSTALL_DATA
889 INSTALL_SCRIPT
890 INSTALL_PROGRAM
891 target_os
892 target_vendor
893 target_cpu
894 target
895 host_os
896 host_vendor
897 host_cpu
898 host
899 build_os
900 build_vendor
901 build_cpu
902 build
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files=''
942 ac_user_opts='
943 enable_option_checking
944 with_subdir
945 enable_debug
946 enable_dynamic
947 enable_syslog
948 enable_proctitle
949 enable_ipv6
950 enable_local
951 with_cyrus_sasl
952 with_fetch
953 with_threads
954 with_tls
955 with_yielding_select
956 with_mp
957 with_odbc
958 enable_xxslapdoptions
959 enable_slapd
960 enable_dynacl
961 enable_aci
962 enable_cleartext
963 enable_crypt
964 enable_lmpasswd
965 enable_spasswd
966 enable_modules
967 enable_rewrite
968 enable_rlookups
969 enable_slapi
970 enable_slp
971 enable_wrappers
972 enable_xxslapbackends
973 enable_backends
974 enable_bdb
975 enable_dnssrv
976 enable_hdb
977 enable_ldap
978 enable_mdb
979 enable_meta
980 enable_monitor
981 enable_ndb
982 enable_null
983 enable_passwd
984 enable_perl
985 enable_relay
986 enable_shell
987 enable_sock
988 enable_sql
989 enable_xxslapoverlays
990 enable_overlays
991 enable_accesslog
992 enable_auditlog
993 enable_collect
994 enable_constraint
995 enable_dds
996 enable_deref
997 enable_dyngroup
998 enable_dynlist
999 enable_memberof
1000 enable_ppolicy
1001 enable_proxycache
1002 enable_refint
1003 enable_retcode
1004 enable_rwm
1005 enable_seqmod
1006 enable_sssvlv
1007 enable_syncprov
1008 enable_translucent
1009 enable_unique
1010 enable_valsort
1011 enable_xxliboptions
1012 enable_static
1013 enable_shared
1014 enable_fast_install
1015 enable_dependency_tracking
1016 with_gnu_ld
1017 enable_libtool_lock
1018 with_pic
1019 with_tags
1020 with_xxinstall
1021 '
1022       ac_precious_vars='build_alias
1023 host_alias
1024 target_alias
1025 CC
1026 CFLAGS
1027 LDFLAGS
1028 LIBS
1029 CPPFLAGS
1030 CPP'
1031
1032
1033 # Initialize some variables set by options.
1034 ac_init_help=
1035 ac_init_version=false
1036 ac_unrecognized_opts=
1037 ac_unrecognized_sep=
1038 # The variables have the same names as the options, with
1039 # dashes changed to underlines.
1040 cache_file=/dev/null
1041 exec_prefix=NONE
1042 no_create=
1043 no_recursion=
1044 prefix=NONE
1045 program_prefix=NONE
1046 program_suffix=NONE
1047 program_transform_name=s,x,x,
1048 silent=
1049 site=
1050 srcdir=
1051 verbose=
1052 x_includes=NONE
1053 x_libraries=NONE
1054
1055 # Installation directory options.
1056 # These are left unexpanded so users can "make install exec_prefix=/foo"
1057 # and all the variables that are supposed to be based on exec_prefix
1058 # by default will actually change.
1059 # Use braces instead of parens because sh, perl, etc. also accept them.
1060 # (The list follows the same order as the GNU Coding Standards.)
1061 bindir='${exec_prefix}/bin'
1062 sbindir='${exec_prefix}/sbin'
1063 libexecdir='${exec_prefix}/libexec'
1064 datarootdir='${prefix}/share'
1065 datadir='${datarootdir}'
1066 sysconfdir='${prefix}/etc'
1067 sharedstatedir='${prefix}/com'
1068 localstatedir='${prefix}/var'
1069 includedir='${prefix}/include'
1070 oldincludedir='/usr/include'
1071 docdir='${datarootdir}/doc/${PACKAGE}'
1072 infodir='${datarootdir}/info'
1073 htmldir='${docdir}'
1074 dvidir='${docdir}'
1075 pdfdir='${docdir}'
1076 psdir='${docdir}'
1077 libdir='${exec_prefix}/lib'
1078 localedir='${datarootdir}/locale'
1079 mandir='${datarootdir}/man'
1080
1081 ac_prev=
1082 ac_dashdash=
1083 for ac_option
1084 do
1085   # If the previous option needs an argument, assign it.
1086   if test -n "$ac_prev"; then
1087     eval $ac_prev=\$ac_option
1088     ac_prev=
1089     continue
1090   fi
1091
1092   case $ac_option in
1093   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094   *)    ac_optarg=yes ;;
1095   esac
1096
1097   # Accept the important Cygnus configure options, so we can diagnose typos.
1098
1099   case $ac_dashdash$ac_option in
1100   --)
1101     ac_dashdash=yes ;;
1102
1103   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1104     ac_prev=bindir ;;
1105   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1106     bindir=$ac_optarg ;;
1107
1108   -build | --build | --buil | --bui | --bu)
1109     ac_prev=build_alias ;;
1110   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1111     build_alias=$ac_optarg ;;
1112
1113   -cache-file | --cache-file | --cache-fil | --cache-fi \
1114   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1115     ac_prev=cache_file ;;
1116   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1117   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1118     cache_file=$ac_optarg ;;
1119
1120   --config-cache | -C)
1121     cache_file=config.cache ;;
1122
1123   -datadir | --datadir | --datadi | --datad)
1124     ac_prev=datadir ;;
1125   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1126     datadir=$ac_optarg ;;
1127
1128   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1129   | --dataroo | --dataro | --datar)
1130     ac_prev=datarootdir ;;
1131   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1132   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1133     datarootdir=$ac_optarg ;;
1134
1135   -disable-* | --disable-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       as_fn_error "invalid feature name: $ac_useropt"
1140     ac_useropt_orig=$ac_useropt
1141     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142     case $ac_user_opts in
1143       *"
1144 "enable_$ac_useropt"
1145 "*) ;;
1146       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1147          ac_unrecognized_sep=', ';;
1148     esac
1149     eval enable_$ac_useropt=no ;;
1150
1151   -docdir | --docdir | --docdi | --doc | --do)
1152     ac_prev=docdir ;;
1153   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1154     docdir=$ac_optarg ;;
1155
1156   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1157     ac_prev=dvidir ;;
1158   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1159     dvidir=$ac_optarg ;;
1160
1161   -enable-* | --enable-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error "invalid feature name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "enable_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval enable_$ac_useropt=\$ac_optarg ;;
1176
1177   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1178   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1179   | --exec | --exe | --ex)
1180     ac_prev=exec_prefix ;;
1181   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1182   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1183   | --exec=* | --exe=* | --ex=*)
1184     exec_prefix=$ac_optarg ;;
1185
1186   -gas | --gas | --ga | --g)
1187     # Obsolete; use --with-gas.
1188     with_gas=yes ;;
1189
1190   -help | --help | --hel | --he | -h)
1191     ac_init_help=long ;;
1192   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1193     ac_init_help=recursive ;;
1194   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1195     ac_init_help=short ;;
1196
1197   -host | --host | --hos | --ho)
1198     ac_prev=host_alias ;;
1199   -host=* | --host=* | --hos=* | --ho=*)
1200     host_alias=$ac_optarg ;;
1201
1202   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1203     ac_prev=htmldir ;;
1204   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1205   | --ht=*)
1206     htmldir=$ac_optarg ;;
1207
1208   -includedir | --includedir | --includedi | --included | --include \
1209   | --includ | --inclu | --incl | --inc)
1210     ac_prev=includedir ;;
1211   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1212   | --includ=* | --inclu=* | --incl=* | --inc=*)
1213     includedir=$ac_optarg ;;
1214
1215   -infodir | --infodir | --infodi | --infod | --info | --inf)
1216     ac_prev=infodir ;;
1217   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1218     infodir=$ac_optarg ;;
1219
1220   -libdir | --libdir | --libdi | --libd)
1221     ac_prev=libdir ;;
1222   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1223     libdir=$ac_optarg ;;
1224
1225   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1226   | --libexe | --libex | --libe)
1227     ac_prev=libexecdir ;;
1228   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1229   | --libexe=* | --libex=* | --libe=*)
1230     libexecdir=$ac_optarg ;;
1231
1232   -localedir | --localedir | --localedi | --localed | --locale)
1233     ac_prev=localedir ;;
1234   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1235     localedir=$ac_optarg ;;
1236
1237   -localstatedir | --localstatedir | --localstatedi | --localstated \
1238   | --localstate | --localstat | --localsta | --localst | --locals)
1239     ac_prev=localstatedir ;;
1240   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1241   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1242     localstatedir=$ac_optarg ;;
1243
1244   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1245     ac_prev=mandir ;;
1246   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1247     mandir=$ac_optarg ;;
1248
1249   -nfp | --nfp | --nf)
1250     # Obsolete; use --without-fp.
1251     with_fp=no ;;
1252
1253   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1254   | --no-cr | --no-c | -n)
1255     no_create=yes ;;
1256
1257   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1258   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1259     no_recursion=yes ;;
1260
1261   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1262   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1263   | --oldin | --oldi | --old | --ol | --o)
1264     ac_prev=oldincludedir ;;
1265   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1266   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1267   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1268     oldincludedir=$ac_optarg ;;
1269
1270   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1271     ac_prev=prefix ;;
1272   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1273     prefix=$ac_optarg ;;
1274
1275   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1276   | --program-pre | --program-pr | --program-p)
1277     ac_prev=program_prefix ;;
1278   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1279   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1280     program_prefix=$ac_optarg ;;
1281
1282   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1283   | --program-suf | --program-su | --program-s)
1284     ac_prev=program_suffix ;;
1285   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1286   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1287     program_suffix=$ac_optarg ;;
1288
1289   -program-transform-name | --program-transform-name \
1290   | --program-transform-nam | --program-transform-na \
1291   | --program-transform-n | --program-transform- \
1292   | --program-transform | --program-transfor \
1293   | --program-transfo | --program-transf \
1294   | --program-trans | --program-tran \
1295   | --progr-tra | --program-tr | --program-t)
1296     ac_prev=program_transform_name ;;
1297   -program-transform-name=* | --program-transform-name=* \
1298   | --program-transform-nam=* | --program-transform-na=* \
1299   | --program-transform-n=* | --program-transform-=* \
1300   | --program-transform=* | --program-transfor=* \
1301   | --program-transfo=* | --program-transf=* \
1302   | --program-trans=* | --program-tran=* \
1303   | --progr-tra=* | --program-tr=* | --program-t=*)
1304     program_transform_name=$ac_optarg ;;
1305
1306   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1307     ac_prev=pdfdir ;;
1308   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1309     pdfdir=$ac_optarg ;;
1310
1311   -psdir | --psdir | --psdi | --psd | --ps)
1312     ac_prev=psdir ;;
1313   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1314     psdir=$ac_optarg ;;
1315
1316   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317   | -silent | --silent | --silen | --sile | --sil)
1318     silent=yes ;;
1319
1320   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1321     ac_prev=sbindir ;;
1322   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1323   | --sbi=* | --sb=*)
1324     sbindir=$ac_optarg ;;
1325
1326   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1327   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1328   | --sharedst | --shareds | --shared | --share | --shar \
1329   | --sha | --sh)
1330     ac_prev=sharedstatedir ;;
1331   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1332   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1333   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1334   | --sha=* | --sh=*)
1335     sharedstatedir=$ac_optarg ;;
1336
1337   -site | --site | --sit)
1338     ac_prev=site ;;
1339   -site=* | --site=* | --sit=*)
1340     site=$ac_optarg ;;
1341
1342   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1343     ac_prev=srcdir ;;
1344   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1345     srcdir=$ac_optarg ;;
1346
1347   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1348   | --syscon | --sysco | --sysc | --sys | --sy)
1349     ac_prev=sysconfdir ;;
1350   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1351   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1352     sysconfdir=$ac_optarg ;;
1353
1354   -target | --target | --targe | --targ | --tar | --ta | --t)
1355     ac_prev=target_alias ;;
1356   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1357     target_alias=$ac_optarg ;;
1358
1359   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1360     verbose=yes ;;
1361
1362   -version | --version | --versio | --versi | --vers | -V)
1363     ac_init_version=: ;;
1364
1365   -with-* | --with-*)
1366     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1367     # Reject names that are not valid shell variable names.
1368     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369       as_fn_error "invalid package name: $ac_useropt"
1370     ac_useropt_orig=$ac_useropt
1371     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372     case $ac_user_opts in
1373       *"
1374 "with_$ac_useropt"
1375 "*) ;;
1376       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1377          ac_unrecognized_sep=', ';;
1378     esac
1379     eval with_$ac_useropt=\$ac_optarg ;;
1380
1381   -without-* | --without-*)
1382     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1383     # Reject names that are not valid shell variable names.
1384     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385       as_fn_error "invalid package name: $ac_useropt"
1386     ac_useropt_orig=$ac_useropt
1387     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388     case $ac_user_opts in
1389       *"
1390 "with_$ac_useropt"
1391 "*) ;;
1392       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1393          ac_unrecognized_sep=', ';;
1394     esac
1395     eval with_$ac_useropt=no ;;
1396
1397   --x)
1398     # Obsolete; use --with-x.
1399     with_x=yes ;;
1400
1401   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1402   | --x-incl | --x-inc | --x-in | --x-i)
1403     ac_prev=x_includes ;;
1404   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1405   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1406     x_includes=$ac_optarg ;;
1407
1408   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1409   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1410     ac_prev=x_libraries ;;
1411   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1412   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1413     x_libraries=$ac_optarg ;;
1414
1415   -*) as_fn_error "unrecognized option: \`$ac_option'
1416 Try \`$0 --help' for more information."
1417     ;;
1418
1419   *=*)
1420     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421     # Reject names that are not valid shell variable names.
1422     case $ac_envvar in #(
1423       '' | [0-9]* | *[!_$as_cr_alnum]* )
1424       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1425     esac
1426     eval $ac_envvar=\$ac_optarg
1427     export $ac_envvar ;;
1428
1429   *)
1430     # FIXME: should be removed in autoconf 3.0.
1431     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1432     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1433       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1434     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1435     ;;
1436
1437   esac
1438 done
1439
1440 if test -n "$ac_prev"; then
1441   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1442   as_fn_error "missing argument to $ac_option"
1443 fi
1444
1445 if test -n "$ac_unrecognized_opts"; then
1446   case $enable_option_checking in
1447     no) ;;
1448     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1449     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1450   esac
1451 fi
1452
1453 # Check all directory arguments for consistency.
1454 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1455                 datadir sysconfdir sharedstatedir localstatedir includedir \
1456                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1457                 libdir localedir mandir
1458 do
1459   eval ac_val=\$$ac_var
1460   # Remove trailing slashes.
1461   case $ac_val in
1462     */ )
1463       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1464       eval $ac_var=\$ac_val;;
1465   esac
1466   # Be sure to have absolute directory names.
1467   case $ac_val in
1468     [\\/$]* | ?:[\\/]* )  continue;;
1469     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1470   esac
1471   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1472 done
1473
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1477 build=$build_alias
1478 host=$host_alias
1479 target=$target_alias
1480
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x; then
1483   if test "x$build_alias" = x; then
1484     cross_compiling=maybe
1485     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486     If a cross compiler is detected then cross compile mode will be used." >&2
1487   elif test "x$build_alias" != "x$host_alias"; then
1488     cross_compiling=yes
1489   fi
1490 fi
1491
1492 ac_tool_prefix=
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1494
1495 test "$silent" = yes && exec 6>/dev/null
1496
1497
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501   as_fn_error "working directory cannot be determined"
1502 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503   as_fn_error "pwd does not report name of working directory"
1504
1505
1506 # Find the source files, if location was not specified.
1507 if test -z "$srcdir"; then
1508   ac_srcdir_defaulted=yes
1509   # Try the directory containing this script, then the parent directory.
1510   ac_confdir=`$as_dirname -- "$as_myself" ||
1511 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1512          X"$as_myself" : 'X\(//\)[^/]' \| \
1513          X"$as_myself" : 'X\(//\)$' \| \
1514          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1515 $as_echo X"$as_myself" |
1516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1517             s//\1/
1518             q
1519           }
1520           /^X\(\/\/\)[^/].*/{
1521             s//\1/
1522             q
1523           }
1524           /^X\(\/\/\)$/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\).*/{
1529             s//\1/
1530             q
1531           }
1532           s/.*/./; q'`
1533   srcdir=$ac_confdir
1534   if test ! -r "$srcdir/$ac_unique_file"; then
1535     srcdir=..
1536   fi
1537 else
1538   ac_srcdir_defaulted=no
1539 fi
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1542   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1543 fi
1544 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1545 ac_abs_confdir=`(
1546         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1547         pwd)`
1548 # When building in place, set srcdir=.
1549 if test "$ac_abs_confdir" = "$ac_pwd"; then
1550   srcdir=.
1551 fi
1552 # Remove unnecessary trailing slashes from srcdir.
1553 # Double slashes in file names in object file debugging info
1554 # mess up M-x gdb in Emacs.
1555 case $srcdir in
1556 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557 esac
1558 for ac_var in $ac_precious_vars; do
1559   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1560   eval ac_env_${ac_var}_value=\$${ac_var}
1561   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1562   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1563 done
1564
1565 #
1566 # Report the --help message.
1567 #
1568 if test "$ac_init_help" = "long"; then
1569   # Omit some internal or obsolete options to make the list less imposing.
1570   # This message is too long to be a string in the A/UX 3.1 sh.
1571   cat <<_ACEOF
1572 \`configure' configures this package to adapt to many kinds of systems.
1573
1574 Usage: $0 [OPTION]... [VAR=VALUE]...
1575
1576 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1577 VAR=VALUE.  See below for descriptions of some of the useful variables.
1578
1579 Defaults for the options are specified in brackets.
1580
1581 Configuration:
1582   -h, --help              display this help and exit
1583       --help=short        display options specific to this package
1584       --help=recursive    display the short help of all the included packages
1585   -V, --version           display version information and exit
1586   -q, --quiet, --silent   do not print \`checking...' messages
1587       --cache-file=FILE   cache test results in FILE [disabled]
1588   -C, --config-cache      alias for \`--cache-file=config.cache'
1589   -n, --no-create         do not create output files
1590       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1591
1592 Installation directories:
1593   --prefix=PREFIX         install architecture-independent files in PREFIX
1594                           [$ac_default_prefix]
1595   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1596                           [PREFIX]
1597
1598 By default, \`make install' will install all the files in
1599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1601 for instance \`--prefix=\$HOME'.
1602
1603 For better control, use the options below.
1604
1605 Fine tuning of the installation directories:
1606   --bindir=DIR            user executables [EPREFIX/bin]
1607   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1608   --libexecdir=DIR        program executables [EPREFIX/libexec]
1609   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1610   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1611   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1612   --libdir=DIR            object code libraries [EPREFIX/lib]
1613   --includedir=DIR        C header files [PREFIX/include]
1614   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1615   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1616   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1617   --infodir=DIR           info documentation [DATAROOTDIR/info]
1618   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1619   --mandir=DIR            man documentation [DATAROOTDIR/man]
1620   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1621   --htmldir=DIR           html documentation [DOCDIR]
1622   --dvidir=DIR            dvi documentation [DOCDIR]
1623   --pdfdir=DIR            pdf documentation [DOCDIR]
1624   --psdir=DIR             ps documentation [DOCDIR]
1625 _ACEOF
1626
1627   cat <<\_ACEOF
1628
1629 Program names:
1630   --program-prefix=PREFIX            prepend PREFIX to installed program names
1631   --program-suffix=SUFFIX            append SUFFIX to installed program names
1632   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1633
1634 System types:
1635   --build=BUILD     configure for building on BUILD [guessed]
1636   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1637   --target=TARGET   configure for building compilers for TARGET [HOST]
1638 _ACEOF
1639 fi
1640
1641 if test -n "$ac_init_help"; then
1642
1643   cat <<\_ACEOF
1644
1645 Optional Features:
1646   --disable-option-checking  ignore unrecognized --enable/--with options
1647   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1648   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1649   --enable-debug          enable debugging no|yes|traditional [yes]
1650   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1651   --enable-syslog         enable syslog support [auto]
1652   --enable-proctitle      enable proctitle support [yes]
1653   --enable-ipv6           enable IPv6 support [auto]
1654   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1655
1656 SLAPD (Standalone LDAP Daemon) Options:
1657   --enable-slapd          enable building slapd [yes]
1658     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1659     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1660     --enable-cleartext    enable cleartext passwords [yes]
1661     --enable-crypt        enable crypt(3) passwords [no]
1662     --enable-lmpasswd     enable LAN Manager passwords [no]
1663     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1664     --enable-modules      enable dynamic module support [no]
1665     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1666     --enable-rlookups     enable reverse lookups of client hostnames [no]
1667     --enable-slapi        enable SLAPI support (experimental) [no]
1668     --enable-slp          enable SLPv2 support [no]
1669     --enable-wrappers     enable tcp wrapper support [no]
1670
1671 SLAPD Backend Options:
1672     --enable-backends     enable all available backends no|yes|mod
1673     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1674     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1675     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1676     --enable-ldap         enable ldap backend no|yes|mod [no]
1677     --enable-mdb          enable mdb database backend no|yes|mod [yes]
1678     --enable-meta         enable metadirectory backend no|yes|mod [no]
1679     --enable-monitor      enable monitor backend no|yes|mod [yes]
1680     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1681     --enable-null         enable null backend no|yes|mod [no]
1682     --enable-passwd       enable passwd backend no|yes|mod [no]
1683     --enable-perl         enable perl backend no|yes|mod [no]
1684     --enable-relay        enable relay backend no|yes|mod [yes]
1685     --enable-shell        enable shell backend no|yes|mod [no]
1686     --enable-sock         enable sock backend no|yes|mod [no]
1687     --enable-sql          enable sql backend no|yes|mod [no]
1688
1689 SLAPD Overlay Options:
1690     --enable-overlays     enable all available overlays no|yes|mod
1691     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1692     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1693     --enable-collect      Collect overlay no|yes|mod [no]
1694     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1695     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1696     --enable-deref        Dereference overlay no|yes|mod [no]
1697     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1698     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1699     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1700     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1701     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1702     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1703     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1704     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1705     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1706     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1707     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1708     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1709     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1710     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1711
1712 Library Generation & Linking Options
1713   --enable-static[=PKGS]  build static libraries [default=yes]
1714   --enable-shared[=PKGS]  build shared libraries [default=yes]
1715   --enable-fast-install[=PKGS]
1716                           optimize for fast installation [default=yes]
1717   --disable-dependency-tracking  speeds up one-time build
1718   --enable-dependency-tracking   do not reject slow dependency extractors
1719   --disable-libtool-lock  avoid locking (might break parallel builds)
1720
1721 Optional Packages:
1722   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1723   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1724   --with-subdir=DIR       change default subdirectory used for installs
1725   --with-cyrus-sasl       with Cyrus SASL support [auto]
1726   --with-fetch            with fetch(3) URL support [auto]
1727   --with-threads          with threads [auto]
1728   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1729   --with-yielding-select  with implicitly yielding select [auto]
1730   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1731   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1732   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1733   --with-pic              try to use only PIC/non-PIC objects [default=use
1734                           both]
1735   --with-tags[=TAGS]      include additional configurations [automatic]
1736
1737 See INSTALL file for further details.
1738
1739 Some influential environment variables:
1740   CC          C compiler command
1741   CFLAGS      C compiler flags
1742   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1743               nonstandard directory <lib dir>
1744   LIBS        libraries to pass to the linker, e.g. -l<library>
1745   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746               you have headers in a nonstandard directory <include dir>
1747   CPP         C preprocessor
1748
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1751
1752 Report bugs to the package provider.
1753 _ACEOF
1754 ac_status=$?
1755 fi
1756
1757 if test "$ac_init_help" = "recursive"; then
1758   # If there are subdirs, report their specific --help.
1759   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760     test -d "$ac_dir" ||
1761       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762       continue
1763     ac_builddir=.
1764
1765 case "$ac_dir" in
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *)
1768   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769   # A ".." for each directory in $ac_dir_suffix.
1770   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771   case $ac_top_builddir_sub in
1772   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774   esac ;;
1775 esac
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1780
1781 case $srcdir in
1782   .)  # We are building in place.
1783     ac_srcdir=.
1784     ac_top_srcdir=$ac_top_builddir_sub
1785     ac_abs_top_srcdir=$ac_pwd ;;
1786   [\\/]* | ?:[\\/]* )  # Absolute name.
1787     ac_srcdir=$srcdir$ac_dir_suffix;
1788     ac_top_srcdir=$srcdir
1789     ac_abs_top_srcdir=$srcdir ;;
1790   *) # Relative name.
1791     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792     ac_top_srcdir=$ac_top_build_prefix$srcdir
1793     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 esac
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1796
1797     cd "$ac_dir" || { ac_status=$?; continue; }
1798     # Check for guested configure.
1799     if test -f "$ac_srcdir/configure.gnu"; then
1800       echo &&
1801       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802     elif test -f "$ac_srcdir/configure"; then
1803       echo &&
1804       $SHELL "$ac_srcdir/configure" --help=recursive
1805     else
1806       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807     fi || ac_status=$?
1808     cd "$ac_pwd" || { ac_status=$?; break; }
1809   done
1810 fi
1811
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1814   cat <<\_ACEOF
1815 configure
1816 generated by GNU Autoconf 2.65
1817
1818 Copyright (C) 2009 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821
1822 Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1823 Restrictions apply, see COPYRIGHT and LICENSE files.
1824 _ACEOF
1825   exit
1826 fi
1827
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1831
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   rm -f conftest.$ac_objext
1839   if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_compile") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && {
1855          test -z "$ac_c_werror_flag" ||
1856          test ! -s conftest.err
1857        } && test -s conftest.$ac_objext; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_compile
1869
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   rm -f conftest.$ac_objext conftest$ac_exeext
1877   if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_link") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && {
1893          test -z "$ac_c_werror_flag" ||
1894          test ! -s conftest.err
1895        } && test -s conftest$ac_exeext && {
1896          test "$cross_compiling" = yes ||
1897          $as_test_x conftest$ac_exeext
1898        }; then :
1899   ac_retval=0
1900 else
1901   $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904         ac_retval=1
1905 fi
1906   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908   # interfere with the next link command; also delete a directory that is
1909   # left behind by Apple's compiler.  We do this before executing the actions.
1910   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912   as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_try_link
1915
1916 # ac_fn_c_try_cpp LINENO
1917 # ----------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_c_try_cpp ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925   *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930   ac_status=$?
1931   if test -s conftest.err; then
1932     grep -v '^ *+' conftest.err >conftest.er1
1933     cat conftest.er1 >&5
1934     mv -f conftest.er1 conftest.err
1935   fi
1936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937   test $ac_status = 0; } >/dev/null && {
1938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1939          test ! -s conftest.err
1940        }; then :
1941   ac_retval=0
1942 else
1943   $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946     ac_retval=1
1947 fi
1948   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949   as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_cpp
1952
1953 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # -------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_c_check_header_mongrel ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965   $as_echo_n "(cached) " >&6
1966 fi
1967 eval ac_res=\$$3
1968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971   # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980   ac_header_compiler=yes
1981 else
1982   ac_header_compiler=no
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1987
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h.  */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_c_try_cpp "$LINENO"; then :
1996   ac_header_preproc=yes
1997 else
1998   ac_header_preproc=no
1999 fi
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2003
2004 # So?  What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006   yes:no: )
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011     ;;
2012   no:yes:* )
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2021     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 ( cat <<\_ASBOX
2024 ## --------------------------------------------- ##
2025 ## Report this to <http://www.openldap.org/its/> ##
2026 ## --------------------------------------------- ##
2027 _ASBOX
2028      ) | sed "s/^/$as_me: WARNING:     /" >&2
2029     ;;
2030 esac
2031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034   $as_echo_n "(cached) " >&6
2035 else
2036   eval "$3=\$ac_header_compiler"
2037 fi
2038 eval ac_res=\$$3
2039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 fi
2042   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_mongrel
2045
2046 # ac_fn_c_try_run LINENO
2047 # ----------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2049 # that executables *can* be run.
2050 ac_fn_c_try_run ()
2051 {
2052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053   if { { ac_try="$ac_link"
2054 case "(($ac_try" in
2055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056   *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060   (eval "$ac_link") 2>&5
2061   ac_status=$?
2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2064   { { case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070   (eval "$ac_try") 2>&5
2071   ac_status=$?
2072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073   test $ac_status = 0; }; }; then :
2074   ac_retval=0
2075 else
2076   $as_echo "$as_me: program exited with status $ac_status" >&5
2077        $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080        ac_retval=$ac_status
2081 fi
2082   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2083   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084   as_fn_set_status $ac_retval
2085
2086 } # ac_fn_c_try_run
2087
2088 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2089 # -------------------------------------------------------
2090 # Tests whether HEADER exists and can be compiled using the include files in
2091 # INCLUDES, setting the cache variable VAR accordingly.
2092 ac_fn_c_check_header_compile ()
2093 {
2094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098   $as_echo_n "(cached) " >&6
2099 else
2100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   eval "$3=yes"
2107 else
2108   eval "$3=no"
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 eval ac_res=\$$3
2113                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116
2117 } # ac_fn_c_check_header_compile
2118
2119 # ac_fn_c_check_func LINENO FUNC VAR
2120 # ----------------------------------
2121 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2122 ac_fn_c_check_func ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128   $as_echo_n "(cached) " >&6
2129 else
2130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2134 #define $2 innocuous_$2
2135
2136 /* System header to define __stub macros and hopefully few prototypes,
2137     which can conflict with char $2 (); below.
2138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2139     <limits.h> exists even on freestanding compilers.  */
2140
2141 #ifdef __STDC__
2142 # include <limits.h>
2143 #else
2144 # include <assert.h>
2145 #endif
2146
2147 #undef $2
2148
2149 /* Override any GCC internal prototype to avoid an error.
2150    Use char because int might match the return type of a GCC
2151    builtin and then its argument prototype would still apply.  */
2152 #ifdef __cplusplus
2153 extern "C"
2154 #endif
2155 char $2 ();
2156 /* The GNU C library defines this for functions which it implements
2157     to always fail with ENOSYS.  Some functions are actually named
2158     something starting with __ and the normal name is an alias.  */
2159 #if defined __stub_$2 || defined __stub___$2
2160 choke me
2161 #endif
2162
2163 int
2164 main ()
2165 {
2166 return $2 ();
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_c_try_link "$LINENO"; then :
2172   eval "$3=yes"
2173 else
2174   eval "$3=no"
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext \
2177     conftest$ac_exeext conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$3
2180                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183
2184 } # ac_fn_c_check_func
2185
2186 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2187 # -------------------------------------------
2188 # Tests whether TYPE exists after having included INCLUDES, setting cache
2189 # variable VAR accordingly.
2190 ac_fn_c_check_type ()
2191 {
2192   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194 $as_echo_n "checking for $2... " >&6; }
2195 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2196   $as_echo_n "(cached) " >&6
2197 else
2198   eval "$3=no"
2199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 if (sizeof ($2))
2206          return 0;
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $4
2215 int
2216 main ()
2217 {
2218 if (sizeof (($2)))
2219             return 0;
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225
2226 else
2227   eval "$3=yes"
2228 fi
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 fi
2233 eval ac_res=\$$3
2234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237
2238 } # ac_fn_c_check_type
2239
2240 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2241 # ----------------------------------------------------
2242 # Tries to find if the field MEMBER exists in type AGGR, after including
2243 # INCLUDES, setting cache variable VAR accordingly.
2244 ac_fn_c_check_member ()
2245 {
2246   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2248 $as_echo_n "checking for $2.$3... " >&6; }
2249 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2250   $as_echo_n "(cached) " >&6
2251 else
2252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $5
2255 int
2256 main ()
2257 {
2258 static $2 ac_aggr;
2259 if (ac_aggr.$3)
2260 return 0;
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   eval "$4=yes"
2267 else
2268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $5
2271 int
2272 main ()
2273 {
2274 static $2 ac_aggr;
2275 if (sizeof ac_aggr.$3)
2276 return 0;
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"; then :
2282   eval "$4=yes"
2283 else
2284   eval "$4=no"
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$4
2291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2294
2295 } # ac_fn_c_check_member
2296
2297 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2298 # --------------------------------------------
2299 # Tries to find the compile-time value of EXPR in a program that includes
2300 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2301 # computed
2302 ac_fn_c_compute_int ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   if test "$cross_compiling" = yes; then
2306     # Depending upon the size, compute the lo and hi bounds.
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $4
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($2) >= 0)];
2314 test_array [0] = 0
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321   ac_lo=0 ac_mid=0
2322   while :; do
2323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 int
2327 main ()
2328 {
2329 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2330 test_array [0] = 0
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   ac_hi=$ac_mid; break
2338 else
2339   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2340                         if test $ac_lo -le $ac_mid; then
2341                           ac_lo= ac_hi=
2342                           break
2343                         fi
2344                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347   done
2348 else
2349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h.  */
2351 $4
2352 int
2353 main ()
2354 {
2355 static int test_array [1 - 2 * !(($2) < 0)];
2356 test_array [0] = 0
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363   ac_hi=-1 ac_mid=-1
2364   while :; do
2365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367 $4
2368 int
2369 main ()
2370 {
2371 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2372 test_array [0] = 0
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   ac_lo=$ac_mid; break
2380 else
2381   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2382                         if test $ac_mid -le $ac_hi; then
2383                           ac_lo= ac_hi=
2384                           break
2385                         fi
2386                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389   done
2390 else
2391   ac_lo= ac_hi=
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 # Binary search between lo and hi bounds.
2397 while test "x$ac_lo" != "x$ac_hi"; do
2398   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h.  */
2401 $4
2402 int
2403 main ()
2404 {
2405 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2406 test_array [0] = 0
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   ac_hi=$ac_mid
2414 else
2415   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 done
2419 case $ac_lo in #((
2420 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2421 '') ac_retval=1 ;;
2422 esac
2423   else
2424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 $4
2427 static long int longval () { return $2; }
2428 static unsigned long int ulongval () { return $2; }
2429 #include <stdio.h>
2430 #include <stdlib.h>
2431 int
2432 main ()
2433 {
2434
2435   FILE *f = fopen ("conftest.val", "w");
2436   if (! f)
2437     return 1;
2438   if (($2) < 0)
2439     {
2440       long int i = longval ();
2441       if (i != ($2))
2442         return 1;
2443       fprintf (f, "%ld", i);
2444     }
2445   else
2446     {
2447       unsigned long int i = ulongval ();
2448       if (i != ($2))
2449         return 1;
2450       fprintf (f, "%lu", i);
2451     }
2452   /* Do not output a trailing newline, as this causes \r\n confusion
2453      on some platforms.  */
2454   return ferror (f) || fclose (f) != 0;
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_run "$LINENO"; then :
2461   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2462 else
2463   ac_retval=1
2464 fi
2465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2466   conftest.$ac_objext conftest.beam conftest.$ac_ext
2467 rm -f conftest.val
2468
2469   fi
2470   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471   as_fn_set_status $ac_retval
2472
2473 } # ac_fn_c_compute_int
2474 cat >config.log <<_ACEOF
2475 This file contains any messages produced by compilers while
2476 running configure, to aid debugging if configure makes a mistake.
2477
2478 It was created by $as_me, which was
2479 generated by GNU Autoconf 2.65.  Invocation command line was
2480
2481   $ $0 $@
2482
2483 _ACEOF
2484 exec 5>>config.log
2485 {
2486 cat <<_ASUNAME
2487 ## --------- ##
2488 ## Platform. ##
2489 ## --------- ##
2490
2491 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2492 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2493 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2494 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2495 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2496
2497 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2498 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2499
2500 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2501 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2502 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2503 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2504 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2505 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2506 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2507
2508 _ASUNAME
2509
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515     $as_echo "PATH: $as_dir"
2516   done
2517 IFS=$as_save_IFS
2518
2519 } >&5
2520
2521 cat >&5 <<_ACEOF
2522
2523
2524 ## ----------- ##
2525 ## Core tests. ##
2526 ## ----------- ##
2527
2528 _ACEOF
2529
2530
2531 # Keep a trace of the command line.
2532 # Strip out --no-create and --no-recursion so they do not pile up.
2533 # Strip out --silent because we don't want to record it for future runs.
2534 # Also quote any args containing shell meta-characters.
2535 # Make two passes to allow for proper duplicate-argument suppression.
2536 ac_configure_args=
2537 ac_configure_args0=
2538 ac_configure_args1=
2539 ac_must_keep_next=false
2540 for ac_pass in 1 2
2541 do
2542   for ac_arg
2543   do
2544     case $ac_arg in
2545     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2546     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2547     | -silent | --silent | --silen | --sile | --sil)
2548       continue ;;
2549     *\'*)
2550       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2551     esac
2552     case $ac_pass in
2553     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2554     2)
2555       as_fn_append ac_configure_args1 " '$ac_arg'"
2556       if test $ac_must_keep_next = true; then
2557         ac_must_keep_next=false # Got value, back to normal.
2558       else
2559         case $ac_arg in
2560           *=* | --config-cache | -C | -disable-* | --disable-* \
2561           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2562           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2563           | -with-* | --with-* | -without-* | --without-* | --x)
2564             case "$ac_configure_args0 " in
2565               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2566             esac
2567             ;;
2568           -* ) ac_must_keep_next=true ;;
2569         esac
2570       fi
2571       as_fn_append ac_configure_args " '$ac_arg'"
2572       ;;
2573     esac
2574   done
2575 done
2576 { ac_configure_args0=; unset ac_configure_args0;}
2577 { ac_configure_args1=; unset ac_configure_args1;}
2578
2579 # When interrupted or exit'd, cleanup temporary files, and complete
2580 # config.log.  We remove comments because anyway the quotes in there
2581 # would cause problems or look ugly.
2582 # WARNING: Use '\'' to represent an apostrophe within the trap.
2583 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2584 trap 'exit_status=$?
2585   # Save into config.log some information that might help in debugging.
2586   {
2587     echo
2588
2589     cat <<\_ASBOX
2590 ## ---------------- ##
2591 ## Cache variables. ##
2592 ## ---------------- ##
2593 _ASBOX
2594     echo
2595     # The following way of writing the cache mishandles newlines in values,
2596 (
2597   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2598     eval ac_val=\$$ac_var
2599     case $ac_val in #(
2600     *${as_nl}*)
2601       case $ac_var in #(
2602       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2604       esac
2605       case $ac_var in #(
2606       _ | IFS | as_nl) ;; #(
2607       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2608       *) { eval $ac_var=; unset $ac_var;} ;;
2609       esac ;;
2610     esac
2611   done
2612   (set) 2>&1 |
2613     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2614     *${as_nl}ac_space=\ *)
2615       sed -n \
2616         "s/'\''/'\''\\\\'\'''\''/g;
2617           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2618       ;; #(
2619     *)
2620       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621       ;;
2622     esac |
2623     sort
2624 )
2625     echo
2626
2627     cat <<\_ASBOX
2628 ## ----------------- ##
2629 ## Output variables. ##
2630 ## ----------------- ##
2631 _ASBOX
2632     echo
2633     for ac_var in $ac_subst_vars
2634     do
2635       eval ac_val=\$$ac_var
2636       case $ac_val in
2637       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2638       esac
2639       $as_echo "$ac_var='\''$ac_val'\''"
2640     done | sort
2641     echo
2642
2643     if test -n "$ac_subst_files"; then
2644       cat <<\_ASBOX
2645 ## ------------------- ##
2646 ## File substitutions. ##
2647 ## ------------------- ##
2648 _ASBOX
2649       echo
2650       for ac_var in $ac_subst_files
2651       do
2652         eval ac_val=\$$ac_var
2653         case $ac_val in
2654         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2655         esac
2656         $as_echo "$ac_var='\''$ac_val'\''"
2657       done | sort
2658       echo
2659     fi
2660
2661     if test -s confdefs.h; then
2662       cat <<\_ASBOX
2663 ## ----------- ##
2664 ## confdefs.h. ##
2665 ## ----------- ##
2666 _ASBOX
2667       echo
2668       cat confdefs.h
2669       echo
2670     fi
2671     test "$ac_signal" != 0 &&
2672       $as_echo "$as_me: caught signal $ac_signal"
2673     $as_echo "$as_me: exit $exit_status"
2674   } >&5
2675   rm -f core *.core core.conftest.* &&
2676     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2677     exit $exit_status
2678 ' 0
2679 for ac_signal in 1 2 13 15; do
2680   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2681 done
2682 ac_signal=0
2683
2684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2685 rm -f -r conftest* confdefs.h
2686
2687 $as_echo "/* confdefs.h */" > confdefs.h
2688
2689 # Predefined preprocessor variables.
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_NAME "$PACKAGE_NAME"
2693 _ACEOF
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2697 _ACEOF
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2701 _ACEOF
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_STRING "$PACKAGE_STRING"
2705 _ACEOF
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2709 _ACEOF
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_URL "$PACKAGE_URL"
2713 _ACEOF
2714
2715
2716 # Let the site file select an alternate cache file if it wants to.
2717 # Prefer an explicitly selected file to automatically selected ones.
2718 ac_site_file1=NONE
2719 ac_site_file2=NONE
2720 if test -n "$CONFIG_SITE"; then
2721   ac_site_file1=$CONFIG_SITE
2722 elif test "x$prefix" != xNONE; then
2723   ac_site_file1=$prefix/share/config.site
2724   ac_site_file2=$prefix/etc/config.site
2725 else
2726   ac_site_file1=$ac_default_prefix/share/config.site
2727   ac_site_file2=$ac_default_prefix/etc/config.site
2728 fi
2729 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2730 do
2731   test "x$ac_site_file" = xNONE && continue
2732   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2733     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2734 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2735     sed 's/^/| /' "$ac_site_file" >&5
2736     . "$ac_site_file"
2737   fi
2738 done
2739
2740
2741 # Check that the precious variables saved in the cache have kept the same
2742 # value.
2743 ac_cache_corrupted=false
2744 for ac_var in $ac_precious_vars; do
2745   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2746   eval ac_new_set=\$ac_env_${ac_var}_set
2747   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2748   eval ac_new_val=\$ac_env_${ac_var}_value
2749   case $ac_old_set,$ac_new_set in
2750     set,)
2751       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2752 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2753       ac_cache_corrupted=: ;;
2754     ,set)
2755       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2756 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2757       ac_cache_corrupted=: ;;
2758     ,);;
2759     *)
2760       if test "x$ac_old_val" != "x$ac_new_val"; then
2761         # differences in whitespace do not lead to failure.
2762         ac_old_val_w=`echo x $ac_old_val`
2763         ac_new_val_w=`echo x $ac_new_val`
2764         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2765           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2766 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2767           ac_cache_corrupted=:
2768         else
2769           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2770 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2771           eval $ac_var=\$ac_old_val
2772         fi
2773         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2774 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2775         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2776 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2777       fi;;
2778   esac
2779   # Pass precious variables to config.status.
2780   if test "$ac_new_set" = set; then
2781     case $ac_new_val in
2782     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2783     *) ac_arg=$ac_var=$ac_new_val ;;
2784     esac
2785     case " $ac_configure_args " in
2786       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2787       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2788     esac
2789   fi
2790 done
2791 if $ac_cache_corrupted; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2795 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2796   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2797 fi
2798 ## -------------------- ##
2799 ## Main body of script. ##
2800 ## -------------------- ##
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835 ac_aux_dir=
2836 for ac_dir in build "$srcdir"/build; do
2837   for ac_t in install-sh install.sh shtool; do
2838     if test -f "$ac_dir/$ac_t"; then
2839       ac_aux_dir=$ac_dir
2840       ac_install_sh="$ac_aux_dir/$ac_t -c"
2841       break 2
2842     fi
2843   done
2844 done
2845 if test -z "$ac_aux_dir"; then
2846   as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2847 fi
2848
2849 # These three variables are undocumented and unsupported,
2850 # and are intended to be withdrawn in a future Autoconf release.
2851 # They can cause serious problems if a builder's source tree is in a directory
2852 # whose full name contains unusual characters.
2853 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2854 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2855 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2856
2857
2858 eval `$ac_aux_dir/version.sh`
2859 if test -z "$OL_STRING"; then
2860         as_fn_error "could not determine version" "$LINENO" 5
2861 fi
2862
2863 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2864         ac_cv_shtool="$ac_aux_dir/shtool"
2865 else
2866         as_fn_error "no shtool found in $ac_aux_dir" "$LINENO" 5
2867 fi
2868
2869 SHTOOL="$ac_cv_shtool"
2870
2871 TB="" TN=""
2872 if test -t 1; then
2873         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2874         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2875 fi
2876
2877 OPENLDAP_REPO=""
2878 if test -d $ac_aux_dir/../.git; then
2879         OPENLDAP_REPO="(from Git clone) "
2880 elif test -d $ac_aux_dir/CVS; then
2881         OPENLDAP_REPO="(from CVS checkout) "
2882 fi
2883
2884 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2885
2886 # Make sure we can run config.sub.
2887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2888   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2891 $as_echo_n "checking build system type... " >&6; }
2892 if test "${ac_cv_build+set}" = set; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   ac_build_alias=$build_alias
2896 test "x$ac_build_alias" = x &&
2897   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2898 test "x$ac_build_alias" = x &&
2899   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2900 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2901   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2902
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2905 $as_echo "$ac_cv_build" >&6; }
2906 case $ac_cv_build in
2907 *-*-*) ;;
2908 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2909 esac
2910 build=$ac_cv_build
2911 ac_save_IFS=$IFS; IFS='-'
2912 set x $ac_cv_build
2913 shift
2914 build_cpu=$1
2915 build_vendor=$2
2916 shift; shift
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2919 build_os=$*
2920 IFS=$ac_save_IFS
2921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2922
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2925 $as_echo_n "checking host system type... " >&6; }
2926 if test "${ac_cv_host+set}" = set; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test "x$host_alias" = x; then
2930   ac_cv_host=$ac_cv_build
2931 else
2932   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2933     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2934 fi
2935
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2938 $as_echo "$ac_cv_host" >&6; }
2939 case $ac_cv_host in
2940 *-*-*) ;;
2941 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2942 esac
2943 host=$ac_cv_host
2944 ac_save_IFS=$IFS; IFS='-'
2945 set x $ac_cv_host
2946 shift
2947 host_cpu=$1
2948 host_vendor=$2
2949 shift; shift
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2952 host_os=$*
2953 IFS=$ac_save_IFS
2954 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2955
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2958 $as_echo_n "checking target system type... " >&6; }
2959 if test "${ac_cv_target+set}" = set; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test "x$target_alias" = x; then
2963   ac_cv_target=$ac_cv_host
2964 else
2965   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2966     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2967 fi
2968
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2971 $as_echo "$ac_cv_target" >&6; }
2972 case $ac_cv_target in
2973 *-*-*) ;;
2974 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2975 esac
2976 target=$ac_cv_target
2977 ac_save_IFS=$IFS; IFS='-'
2978 set x $ac_cv_target
2979 shift
2980 target_cpu=$1
2981 target_vendor=$2
2982 shift; shift
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2985 target_os=$*
2986 IFS=$ac_save_IFS
2987 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2988
2989
2990 # The aliases save the names the user supplied, while $host etc.
2991 # will get canonicalized.
2992 test -n "$target_alias" &&
2993   test "$program_prefix$program_suffix$program_transform_name" = \
2994     NONENONEs,x,x, &&
2995   program_prefix=${target_alias}-
2996
2997 am__api_version="1.9"
2998 # Find a good install program.  We prefer a C program (faster),
2999 # so one script is as good as another.  But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3004 # AIX /bin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # OS/2's system install, which has a completely different semantic
3010 # ./install, which can be erroneously created by make from ./install.sh.
3011 # Reject install programs that cannot install multiple files.
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3013 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3014 if test -z "$INSTALL"; then
3015 if test "${ac_cv_path_install+set}" = set; then :
3016   $as_echo_n "(cached) " >&6
3017 else
3018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     # Account for people who put trailing slashes in PATH elements.
3024 case $as_dir/ in #((
3025   ./ | .// | /[cC]/* | \
3026   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3027   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3028   /usr/ucb/* ) ;;
3029   *)
3030     # OSF1 and SCO ODT 3.0 have their own names for install.
3031     # Don't use installbsd from OSF since it installs stuff as root
3032     # by default.
3033     for ac_prog in ginstall scoinst install; do
3034       for ac_exec_ext in '' $ac_executable_extensions; do
3035         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3036           if test $ac_prog = install &&
3037             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038             # AIX install.  It has an incompatible calling convention.
3039             :
3040           elif test $ac_prog = install &&
3041             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042             # program-specific install script used by HP pwplus--don't use.
3043             :
3044           else
3045             rm -rf conftest.one conftest.two conftest.dir
3046             echo one > conftest.one
3047             echo two > conftest.two
3048             mkdir conftest.dir
3049             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3050               test -s conftest.one && test -s conftest.two &&
3051               test -s conftest.dir/conftest.one &&
3052               test -s conftest.dir/conftest.two
3053             then
3054               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3055               break 3
3056             fi
3057           fi
3058         fi
3059       done
3060     done
3061     ;;
3062 esac
3063
3064   done
3065 IFS=$as_save_IFS
3066
3067 rm -rf conftest.one conftest.two conftest.dir
3068
3069 fi
3070   if test "${ac_cv_path_install+set}" = set; then
3071     INSTALL=$ac_cv_path_install
3072   else
3073     # As a last resort, use the slow shell script.  Don't cache a
3074     # value for INSTALL within a source directory, because that will
3075     # break other packages using the cache if that directory is
3076     # removed, or if the value is a relative name.
3077     INSTALL=$ac_install_sh
3078   fi
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3081 $as_echo "$INSTALL" >&6; }
3082
3083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084 # It thinks the first close brace ends the variable substitution.
3085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3086
3087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3088
3089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3090
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3092 $as_echo_n "checking whether build environment is sane... " >&6; }
3093 # Just in case
3094 sleep 1
3095 echo timestamp > conftest.file
3096 # Do `set' in a subshell so we don't clobber the current shell's
3097 # arguments.  Must try -L first in case configure is actually a
3098 # symlink; some systems play weird games with the mod time of symlinks
3099 # (eg FreeBSD returns the mod time of the symlink's containing
3100 # directory).
3101 if (
3102    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3103    if test "$*" = "X"; then
3104       # -L didn't work.
3105       set X `ls -t $srcdir/configure conftest.file`
3106    fi
3107    rm -f conftest.file
3108    if test "$*" != "X $srcdir/configure conftest.file" \
3109       && test "$*" != "X conftest.file $srcdir/configure"; then
3110
3111       # If neither matched, then we have a broken ls.  This can happen
3112       # if, for instance, CONFIG_SHELL is bash and it inherits a
3113       # broken ls alias from the environment.  This has actually
3114       # happened.  Such a system could not be considered "sane".
3115       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3116 alias in your environment" "$LINENO" 5
3117    fi
3118
3119    test "$2" = conftest.file
3120    )
3121 then
3122    # Ok.
3123    :
3124 else
3125    as_fn_error "newly created file is older than distributed files!
3126 Check your system clock" "$LINENO" 5
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130 test "$program_prefix" != NONE &&
3131   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3132 # Use a double $ so make ignores it.
3133 test "$program_suffix" != NONE &&
3134   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3135 # Double any \ or $.
3136 # By default was `s,x,x', remove it if useless.
3137 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3138 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3139
3140 # expand $ac_aux_dir to an absolute path
3141 am_aux_dir=`cd $ac_aux_dir && pwd`
3142
3143 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3144 # Use eval to expand $SHELL
3145 if eval "$MISSING --run true"; then
3146   am_missing_run="$MISSING --run "
3147 else
3148   am_missing_run=
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3150 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3151 fi
3152
3153 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3154   # We used to keeping the `.' as first argument, in order to
3155   # allow $(mkdir_p) to be used without argument.  As in
3156   #   $(mkdir_p) $(somedir)
3157   # where $(somedir) is conditionally defined.  However this is wrong
3158   # for two reasons:
3159   #  1. if the package is installed by a user who cannot write `.'
3160   #     make install will fail,
3161   #  2. the above comment should most certainly read
3162   #     $(mkdir_p) $(DESTDIR)$(somedir)
3163   #     so it does not work when $(somedir) is undefined and
3164   #     $(DESTDIR) is not.
3165   #  To support the latter case, we have to write
3166   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3167   #  so the `.' trick is pointless.
3168   mkdir_p='mkdir -p --'
3169 else
3170   # On NextStep and OpenStep, the `mkdir' command does not
3171   # recognize any option.  It will interpret all options as
3172   # directories to create, and then abort because `.' already
3173   # exists.
3174   for d in ./-p ./--version;
3175   do
3176     test -d $d && rmdir $d
3177   done
3178   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3179   if test -f "$ac_aux_dir/mkinstalldirs"; then
3180     mkdir_p='$(mkinstalldirs)'
3181   else
3182     mkdir_p='$(install_sh) -d'
3183   fi
3184 fi
3185
3186 for ac_prog in gawk mawk nawk awk
3187 do
3188   # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_AWK+set}" = set; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$AWK"; then
3196   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_AWK="$ac_prog"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 AWK=$ac_cv_prog_AWK
3216 if test -n "$AWK"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3218 $as_echo "$AWK" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225   test -n "$AWK" && break
3226 done
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3230 set x ${MAKE-make}
3231 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3232 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3233   $as_echo_n "(cached) " >&6
3234 else
3235   cat >conftest.make <<\_ACEOF
3236 SHELL = /bin/sh
3237 all:
3238         @echo '@@@%%%=$(MAKE)=@@@%%%'
3239 _ACEOF
3240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3241 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3242   *@@@%%%=?*=@@@%%%*)
3243     eval ac_cv_prog_make_${ac_make}_set=yes;;
3244   *)
3245     eval ac_cv_prog_make_${ac_make}_set=no;;
3246 esac
3247 rm -f conftest.make
3248 fi
3249 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252   SET_MAKE=
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256   SET_MAKE="MAKE=${MAKE-make}"
3257 fi
3258
3259 rm -rf .tst 2>/dev/null
3260 mkdir .tst 2>/dev/null
3261 if test -d .tst; then
3262   am__leading_dot=.
3263 else
3264   am__leading_dot=_
3265 fi
3266 rmdir .tst 2>/dev/null
3267
3268 # test to see if srcdir already configured
3269 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3270    test -f $srcdir/config.status; then
3271   as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3272 fi
3273
3274 # test whether we have cygpath
3275 if test -z "$CYGPATH_W"; then
3276   if (cygpath --version) >/dev/null 2>/dev/null; then
3277     CYGPATH_W='cygpath -w'
3278   else
3279     CYGPATH_W=echo
3280   fi
3281 fi
3282
3283
3284 # Define the identity of the package.
3285  PACKAGE=$OL_PACKAGE
3286  VERSION=$OL_VERSION
3287
3288
3289 # Some tools Automake needs.
3290
3291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3292
3293
3294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3295
3296
3297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3298
3299
3300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3301
3302
3303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3304
3305 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3306
3307 # Installed binaries are usually stripped using `strip' when the user
3308 # run `make install-strip'.  However `strip' might not be the right
3309 # tool to use in cross-compilation environments, therefore Automake
3310 # will honor the `STRIP' environment variable to overrule this program.
3311 if test "$cross_compiling" != no; then
3312   if test -n "$ac_tool_prefix"; then
3313   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}strip; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_STRIP+set}" = set; then :
3318   $as_echo_n "(cached) " >&6
3319 else
3320   if test -n "$STRIP"; then
3321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328     for ac_exec_ext in '' $ac_executable_extensions; do
3329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335   done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 STRIP=$ac_cv_prog_STRIP
3341 if test -n "$STRIP"; then
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3343 $as_echo "$STRIP" >&6; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 fi
3351 if test -z "$ac_cv_prog_STRIP"; then
3352   ac_ct_STRIP=$STRIP
3353   # Extract the first word of "strip", so it can be a program name with args.
3354 set dummy strip; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   if test -n "$ac_ct_STRIP"; then
3361   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     ac_cv_prog_ac_ct_STRIP="strip"
3371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375   done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3381 if test -n "$ac_ct_STRIP"; then
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3383 $as_echo "$ac_ct_STRIP" >&6; }
3384 else
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389   if test "x$ac_ct_STRIP" = x; then
3390     STRIP=":"
3391   else
3392     case $cross_compiling:$ac_tool_warned in
3393 yes:)
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3396 ac_tool_warned=yes ;;
3397 esac
3398     STRIP=$ac_ct_STRIP
3399   fi
3400 else
3401   STRIP="$ac_cv_prog_STRIP"
3402 fi
3403
3404 fi
3405 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3406
3407 # We need awk for the "check" target.  The system "awk" is bad on
3408 # some platforms.
3409 # Always define AMTAR for backward compatibility.
3410
3411 AMTAR=${AMTAR-"${am_missing_run}tar"}
3412
3413 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3414
3415
3416
3417
3418
3419 cat >>confdefs.h <<_ACEOF
3420 #define OPENLDAP_PACKAGE "$PACKAGE"
3421 _ACEOF
3422
3423
3424 cat >>confdefs.h <<_ACEOF
3425 #define OPENLDAP_VERSION "$VERSION"
3426 _ACEOF
3427
3428
3429
3430 cat >>confdefs.h <<_ACEOF
3431 #define LDAP_VENDOR_VERSION $OL_API_INC
3432 _ACEOF
3433
3434
3435 cat >>confdefs.h <<_ACEOF
3436 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3437 _ACEOF
3438
3439
3440 cat >>confdefs.h <<_ACEOF
3441 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3442 _ACEOF
3443
3444
3445 cat >>confdefs.h <<_ACEOF
3446 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3447 _ACEOF
3448
3449
3450 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3451
3452 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3453
3454 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3455
3456
3457
3458
3459
3460 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3461
3462 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3463
3464 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3465
3466
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3468 $as_echo_n "checking configure arguments... " >&6; }
3469
3470
3471 top_builddir=`pwd`
3472
3473 ldap_subdir="/openldap"
3474
3475
3476 # Check whether --with-subdir was given.
3477 if test "${with_subdir+set}" = set; then :
3478   withval=$with_subdir; case "$withval" in
3479         no) ldap_subdir=""
3480                 ;;
3481         yes)
3482                 ;;
3483         /*|\\*)
3484                 ldap_subdir="$withval"
3485                 ;;
3486         *)
3487                 ldap_subdir="/$withval"
3488                 ;;
3489 esac
3490
3491 fi
3492
3493
3494 # OpenLDAP --enable-debug
3495
3496         # Check whether --enable-debug was given.
3497 if test "${enable_debug+set}" = set; then :
3498   enableval=$enable_debug;
3499         ol_arg=invalid
3500         for ol_val in no yes traditional ; do
3501                 if test "$enableval" = "$ol_val" ; then
3502                         ol_arg="$ol_val"
3503                 fi
3504         done
3505         if test "$ol_arg" = "invalid" ; then
3506                 as_fn_error "bad value $enableval for --enable-debug" "$LINENO" 5
3507         fi
3508         ol_enable_debug="$ol_arg"
3509
3510 else
3511         ol_enable_debug=yes
3512 fi
3513
3514 # end --enable-debug
3515 # OpenLDAP --enable-dynamic
3516
3517         # Check whether --enable-dynamic was given.
3518 if test "${enable_dynamic+set}" = set; then :
3519   enableval=$enable_dynamic;
3520         ol_arg=invalid
3521         for ol_val in auto yes no ; do
3522                 if test "$enableval" = "$ol_val" ; then
3523                         ol_arg="$ol_val"
3524                 fi
3525         done
3526         if test "$ol_arg" = "invalid" ; then
3527                 as_fn_error "bad value $enableval for --enable-dynamic" "$LINENO" 5
3528         fi
3529         ol_enable_dynamic="$ol_arg"
3530
3531 else
3532         ol_enable_dynamic=no
3533 fi
3534
3535 # end --enable-dynamic
3536 # OpenLDAP --enable-syslog
3537
3538         # Check whether --enable-syslog was given.
3539 if test "${enable_syslog+set}" = set; then :
3540   enableval=$enable_syslog;
3541         ol_arg=invalid
3542         for ol_val in auto yes no ; do
3543                 if test "$enableval" = "$ol_val" ; then
3544                         ol_arg="$ol_val"
3545                 fi
3546         done
3547         if test "$ol_arg" = "invalid" ; then
3548                 as_fn_error "bad value $enableval for --enable-syslog" "$LINENO" 5
3549         fi
3550         ol_enable_syslog="$ol_arg"
3551
3552 else
3553         ol_enable_syslog=auto
3554 fi
3555
3556 # end --enable-syslog
3557 # OpenLDAP --enable-proctitle
3558
3559         # Check whether --enable-proctitle was given.
3560 if test "${enable_proctitle+set}" = set; then :
3561   enableval=$enable_proctitle;
3562         ol_arg=invalid
3563         for ol_val in auto yes no ; do
3564                 if test "$enableval" = "$ol_val" ; then
3565                         ol_arg="$ol_val"
3566                 fi
3567         done
3568         if test "$ol_arg" = "invalid" ; then
3569                 as_fn_error "bad value $enableval for --enable-proctitle" "$LINENO" 5
3570         fi
3571         ol_enable_proctitle="$ol_arg"
3572
3573 else
3574         ol_enable_proctitle=yes
3575 fi
3576
3577 # end --enable-proctitle
3578 ol_enable_referrals=${ol_enable_referrals-no}
3579 # OpenLDAP --enable-ipv6
3580
3581         # Check whether --enable-ipv6 was given.
3582 if test "${enable_ipv6+set}" = set; then :
3583   enableval=$enable_ipv6;
3584         ol_arg=invalid
3585         for ol_val in auto yes no ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 as_fn_error "bad value $enableval for --enable-ipv6" "$LINENO" 5
3592         fi
3593         ol_enable_ipv6="$ol_arg"
3594
3595 else
3596         ol_enable_ipv6=auto
3597 fi
3598
3599 # end --enable-ipv6
3600 # OpenLDAP --enable-local
3601
3602         # Check whether --enable-local was given.
3603 if test "${enable_local+set}" = set; then :
3604   enableval=$enable_local;
3605         ol_arg=invalid
3606         for ol_val in auto yes no ; do
3607                 if test "$enableval" = "$ol_val" ; then
3608                         ol_arg="$ol_val"
3609                 fi
3610         done
3611         if test "$ol_arg" = "invalid" ; then
3612                 as_fn_error "bad value $enableval for --enable-local" "$LINENO" 5
3613         fi
3614         ol_enable_local="$ol_arg"
3615
3616 else
3617         ol_enable_local=auto
3618 fi
3619
3620 # end --enable-local
3621
3622 # OpenLDAP --with-cyrus_sasl
3623
3624 # Check whether --with-cyrus_sasl was given.
3625 if test "${with_cyrus_sasl+set}" = set; then :
3626   withval=$with_cyrus_sasl;
3627         ol_arg=invalid
3628         for ol_val in auto yes no  ; do
3629                 if test "$withval" = "$ol_val" ; then
3630                         ol_arg="$ol_val"
3631                 fi
3632         done
3633         if test "$ol_arg" = "invalid" ; then
3634                 as_fn_error "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3635         fi
3636         ol_with_cyrus_sasl="$ol_arg"
3637
3638 else
3639         ol_with_cyrus_sasl="auto"
3640 fi
3641 # end --with-cyrus_sasl
3642
3643 # OpenLDAP --with-fetch
3644
3645 # Check whether --with-fetch was given.
3646 if test "${with_fetch+set}" = set; then :
3647   withval=$with_fetch;
3648         ol_arg=invalid
3649         for ol_val in auto yes no  ; do
3650                 if test "$withval" = "$ol_val" ; then
3651                         ol_arg="$ol_val"
3652                 fi
3653         done
3654         if test "$ol_arg" = "invalid" ; then
3655                 as_fn_error "bad value $withval for --with-fetch" "$LINENO" 5
3656         fi
3657         ol_with_fetch="$ol_arg"
3658
3659 else
3660         ol_with_fetch="auto"
3661 fi
3662 # end --with-fetch
3663
3664 # OpenLDAP --with-threads
3665
3666 # Check whether --with-threads was given.
3667 if test "${with_threads+set}" = set; then :
3668   withval=$with_threads;
3669         ol_arg=invalid
3670         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
3671                 if test "$withval" = "$ol_val" ; then
3672                         ol_arg="$ol_val"
3673                 fi
3674         done
3675         if test "$ol_arg" = "invalid" ; then
3676                 as_fn_error "bad value $withval for --with-threads" "$LINENO" 5
3677         fi
3678         ol_with_threads="$ol_arg"
3679
3680 else
3681         ol_with_threads="auto"
3682 fi
3683 # end --with-threads
3684
3685 # OpenLDAP --with-tls
3686
3687 # Check whether --with-tls was given.
3688 if test "${with_tls+set}" = set; then :
3689   withval=$with_tls;
3690         ol_arg=invalid
3691         for ol_val in auto openssl gnutls moznss yes no  ; do
3692                 if test "$withval" = "$ol_val" ; then
3693                         ol_arg="$ol_val"
3694                 fi
3695         done
3696         if test "$ol_arg" = "invalid" ; then
3697                 as_fn_error "bad value $withval for --with-tls" "$LINENO" 5
3698         fi
3699         ol_with_tls="$ol_arg"
3700
3701 else
3702         ol_with_tls="auto"
3703 fi
3704 # end --with-tls
3705
3706 # OpenLDAP --with-yielding_select
3707
3708 # Check whether --with-yielding_select was given.
3709 if test "${with_yielding_select+set}" = set; then :
3710   withval=$with_yielding_select;
3711         ol_arg=invalid
3712         for ol_val in auto yes no manual  ; do
3713                 if test "$withval" = "$ol_val" ; then
3714                         ol_arg="$ol_val"
3715                 fi
3716         done
3717         if test "$ol_arg" = "invalid" ; then
3718                 as_fn_error "bad value $withval for --with-yielding_select" "$LINENO" 5
3719         fi
3720         ol_with_yielding_select="$ol_arg"
3721
3722 else
3723         ol_with_yielding_select="auto"
3724 fi
3725 # end --with-yielding_select
3726
3727 # OpenLDAP --with-mp
3728
3729 # Check whether --with-mp was given.
3730 if test "${with_mp+set}" = set; then :
3731   withval=$with_mp;
3732         ol_arg=invalid
3733         for ol_val in auto longlong long bignum gmp yes no ; do
3734                 if test "$withval" = "$ol_val" ; then
3735                         ol_arg="$ol_val"
3736                 fi
3737         done
3738         if test "$ol_arg" = "invalid" ; then
3739                 as_fn_error "bad value $withval for --with-mp" "$LINENO" 5
3740         fi
3741         ol_with_mp="$ol_arg"
3742
3743 else
3744         ol_with_mp="auto"
3745 fi
3746 # end --with-mp
3747
3748 # OpenLDAP --with-odbc
3749
3750 # Check whether --with-odbc was given.
3751 if test "${with_odbc+set}" = set; then :
3752   withval=$with_odbc;
3753         ol_arg=invalid
3754         for ol_val in auto iodbc unixodbc odbc32  ; do
3755                 if test "$withval" = "$ol_val" ; then
3756                         ol_arg="$ol_val"
3757                 fi
3758         done
3759         if test "$ol_arg" = "invalid" ; then
3760                 as_fn_error "bad value $withval for --with-odbc" "$LINENO" 5
3761         fi
3762         ol_with_odbc="$ol_arg"
3763
3764 else
3765         ol_with_odbc="auto"
3766 fi
3767 # end --with-odbc
3768
3769
3770
3771 # Check whether --enable-xxslapdoptions was given.
3772 if test "${enable_xxslapdoptions+set}" = set; then :
3773   enableval=$enable_xxslapdoptions;
3774 fi
3775
3776 # OpenLDAP --enable-slapd
3777
3778         # Check whether --enable-slapd was given.
3779 if test "${enable_slapd+set}" = set; then :
3780   enableval=$enable_slapd;
3781         ol_arg=invalid
3782         for ol_val in auto yes no ; do
3783                 if test "$enableval" = "$ol_val" ; then
3784                         ol_arg="$ol_val"
3785                 fi
3786         done
3787         if test "$ol_arg" = "invalid" ; then
3788                 as_fn_error "bad value $enableval for --enable-slapd" "$LINENO" 5
3789         fi
3790         ol_enable_slapd="$ol_arg"
3791
3792 else
3793         ol_enable_slapd=yes
3794 fi
3795
3796 # end --enable-slapd
3797 # OpenLDAP --enable-dynacl
3798
3799         # Check whether --enable-dynacl was given.
3800 if test "${enable_dynacl+set}" = set; then :
3801   enableval=$enable_dynacl;
3802         ol_arg=invalid
3803         for ol_val in auto yes no ; do
3804                 if test "$enableval" = "$ol_val" ; then
3805                         ol_arg="$ol_val"
3806                 fi
3807         done
3808         if test "$ol_arg" = "invalid" ; then
3809                 as_fn_error "bad value $enableval for --enable-dynacl" "$LINENO" 5
3810         fi
3811         ol_enable_dynacl="$ol_arg"
3812
3813 else
3814         ol_enable_dynacl=no
3815 fi
3816
3817 # end --enable-dynacl
3818 # OpenLDAP --enable-aci
3819
3820         # Check whether --enable-aci was given.
3821 if test "${enable_aci+set}" = set; then :
3822   enableval=$enable_aci;
3823         ol_arg=invalid
3824         for ol_val in no yes mod ; do
3825                 if test "$enableval" = "$ol_val" ; then
3826                         ol_arg="$ol_val"
3827                 fi
3828         done
3829         if test "$ol_arg" = "invalid" ; then
3830                 as_fn_error "bad value $enableval for --enable-aci" "$LINENO" 5
3831         fi
3832         ol_enable_aci="$ol_arg"
3833
3834 else
3835         ol_enable_aci=no
3836 fi
3837
3838 # end --enable-aci
3839 # OpenLDAP --enable-cleartext
3840
3841         # Check whether --enable-cleartext was given.
3842 if test "${enable_cleartext+set}" = set; then :
3843   enableval=$enable_cleartext;
3844         ol_arg=invalid
3845         for ol_val in auto yes no ; do
3846                 if test "$enableval" = "$ol_val" ; then
3847                         ol_arg="$ol_val"
3848                 fi
3849         done
3850         if test "$ol_arg" = "invalid" ; then
3851                 as_fn_error "bad value $enableval for --enable-cleartext" "$LINENO" 5
3852         fi
3853         ol_enable_cleartext="$ol_arg"
3854
3855 else
3856         ol_enable_cleartext=yes
3857 fi
3858
3859 # end --enable-cleartext
3860 # OpenLDAP --enable-crypt
3861
3862         # Check whether --enable-crypt was given.
3863 if test "${enable_crypt+set}" = set; then :
3864   enableval=$enable_crypt;
3865         ol_arg=invalid
3866         for ol_val in auto yes no ; do
3867                 if test "$enableval" = "$ol_val" ; then
3868                         ol_arg="$ol_val"
3869                 fi
3870         done
3871         if test "$ol_arg" = "invalid" ; then
3872                 as_fn_error "bad value $enableval for --enable-crypt" "$LINENO" 5
3873         fi
3874         ol_enable_crypt="$ol_arg"
3875
3876 else
3877         ol_enable_crypt=no
3878 fi
3879
3880 # end --enable-crypt
3881 # OpenLDAP --enable-lmpasswd
3882
3883         # Check whether --enable-lmpasswd was given.
3884 if test "${enable_lmpasswd+set}" = set; then :
3885   enableval=$enable_lmpasswd;
3886         ol_arg=invalid
3887         for ol_val in auto yes no ; do
3888                 if test "$enableval" = "$ol_val" ; then
3889                         ol_arg="$ol_val"
3890                 fi
3891         done
3892         if test "$ol_arg" = "invalid" ; then
3893                 as_fn_error "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3894         fi
3895         ol_enable_lmpasswd="$ol_arg"
3896
3897 else
3898         ol_enable_lmpasswd=no
3899 fi
3900
3901 # end --enable-lmpasswd
3902 # OpenLDAP --enable-spasswd
3903
3904         # Check whether --enable-spasswd was given.
3905 if test "${enable_spasswd+set}" = set; then :
3906   enableval=$enable_spasswd;
3907         ol_arg=invalid
3908         for ol_val in auto yes no ; do
3909                 if test "$enableval" = "$ol_val" ; then
3910                         ol_arg="$ol_val"
3911                 fi
3912         done
3913         if test "$ol_arg" = "invalid" ; then
3914                 as_fn_error "bad value $enableval for --enable-spasswd" "$LINENO" 5
3915         fi
3916         ol_enable_spasswd="$ol_arg"
3917
3918 else
3919         ol_enable_spasswd=no
3920 fi
3921
3922 # end --enable-spasswd
3923 # OpenLDAP --enable-modules
3924
3925         # Check whether --enable-modules was given.
3926 if test "${enable_modules+set}" = set; then :
3927   enableval=$enable_modules;
3928         ol_arg=invalid
3929         for ol_val in auto yes no ; do
3930                 if test "$enableval" = "$ol_val" ; then
3931                         ol_arg="$ol_val"
3932                 fi
3933         done
3934         if test "$ol_arg" = "invalid" ; then
3935                 as_fn_error "bad value $enableval for --enable-modules" "$LINENO" 5
3936         fi
3937         ol_enable_modules="$ol_arg"
3938
3939 else
3940         ol_enable_modules=no
3941 fi
3942
3943 # end --enable-modules
3944 # OpenLDAP --enable-rewrite
3945
3946         # Check whether --enable-rewrite was given.
3947 if test "${enable_rewrite+set}" = set; then :
3948   enableval=$enable_rewrite;
3949         ol_arg=invalid
3950         for ol_val in auto yes no ; do
3951                 if test "$enableval" = "$ol_val" ; then
3952                         ol_arg="$ol_val"
3953                 fi
3954         done
3955         if test "$ol_arg" = "invalid" ; then
3956                 as_fn_error "bad value $enableval for --enable-rewrite" "$LINENO" 5
3957         fi
3958         ol_enable_rewrite="$ol_arg"
3959
3960 else
3961         ol_enable_rewrite=auto
3962 fi
3963
3964 # end --enable-rewrite
3965 # OpenLDAP --enable-rlookups
3966
3967         # Check whether --enable-rlookups was given.
3968 if test "${enable_rlookups+set}" = set; then :
3969   enableval=$enable_rlookups;
3970         ol_arg=invalid
3971         for ol_val in auto yes no ; do
3972                 if test "$enableval" = "$ol_val" ; then
3973                         ol_arg="$ol_val"
3974                 fi
3975         done
3976         if test "$ol_arg" = "invalid" ; then
3977                 as_fn_error "bad value $enableval for --enable-rlookups" "$LINENO" 5
3978         fi
3979         ol_enable_rlookups="$ol_arg"
3980
3981 else
3982         ol_enable_rlookups=no
3983 fi
3984
3985 # end --enable-rlookups
3986 # OpenLDAP --enable-slapi
3987
3988         # Check whether --enable-slapi was given.
3989 if test "${enable_slapi+set}" = set; then :
3990   enableval=$enable_slapi;
3991         ol_arg=invalid
3992         for ol_val in auto yes no ; do
3993                 if test "$enableval" = "$ol_val" ; then
3994                         ol_arg="$ol_val"
3995                 fi
3996         done
3997         if test "$ol_arg" = "invalid" ; then
3998                 as_fn_error "bad value $enableval for --enable-slapi" "$LINENO" 5
3999         fi
4000         ol_enable_slapi="$ol_arg"
4001
4002 else
4003         ol_enable_slapi=no
4004 fi
4005
4006 # end --enable-slapi
4007 # OpenLDAP --enable-slp
4008
4009         # Check whether --enable-slp was given.
4010 if test "${enable_slp+set}" = set; then :
4011   enableval=$enable_slp;
4012         ol_arg=invalid
4013         for ol_val in auto yes no ; do
4014                 if test "$enableval" = "$ol_val" ; then
4015                         ol_arg="$ol_val"
4016                 fi
4017         done
4018         if test "$ol_arg" = "invalid" ; then
4019                 as_fn_error "bad value $enableval for --enable-slp" "$LINENO" 5
4020         fi
4021         ol_enable_slp="$ol_arg"
4022
4023 else
4024         ol_enable_slp=no
4025 fi
4026
4027 # end --enable-slp
4028 # OpenLDAP --enable-wrappers
4029
4030         # Check whether --enable-wrappers was given.
4031 if test "${enable_wrappers+set}" = set; then :
4032   enableval=$enable_wrappers;
4033         ol_arg=invalid
4034         for ol_val in auto yes no ; do
4035                 if test "$enableval" = "$ol_val" ; then
4036                         ol_arg="$ol_val"
4037                 fi
4038         done
4039         if test "$ol_arg" = "invalid" ; then
4040                 as_fn_error "bad value $enableval for --enable-wrappers" "$LINENO" 5
4041         fi
4042         ol_enable_wrappers="$ol_arg"
4043
4044 else
4045         ol_enable_wrappers=no
4046 fi
4047
4048 # end --enable-wrappers
4049
4050 Backends="bdb \
4051         dnssrv \
4052         hdb \
4053         ldap \
4054         mdb \
4055         meta \
4056         monitor \
4057         ndb \
4058         null \
4059         passwd \
4060         perl \
4061         relay \
4062         shell \
4063         sock \
4064         sql"
4065
4066 # Check whether --enable-xxslapbackends was given.
4067 if test "${enable_xxslapbackends+set}" = set; then :
4068   enableval=$enable_xxslapbackends;
4069 fi
4070
4071
4072 # OpenLDAP --enable-backends
4073
4074         # Check whether --enable-backends was given.
4075 if test "${enable_backends+set}" = set; then :
4076   enableval=$enable_backends;
4077         ol_arg=invalid
4078         for ol_val in no yes mod ; do
4079                 if test "$enableval" = "$ol_val" ; then
4080                         ol_arg="$ol_val"
4081                 fi
4082         done
4083         if test "$ol_arg" = "invalid" ; then
4084                 as_fn_error "bad value $enableval for --enable-backends" "$LINENO" 5
4085         fi
4086         ol_enable_backends="$ol_arg"
4087
4088 fi
4089
4090 # end --enable-backends
4091 # OpenLDAP --enable-bdb
4092
4093         # Check whether --enable-bdb was given.
4094 if test "${enable_bdb+set}" = set; then :
4095   enableval=$enable_bdb;
4096         ol_arg=invalid
4097         for ol_val in no yes mod ; do
4098                 if test "$enableval" = "$ol_val" ; then
4099                         ol_arg="$ol_val"
4100                 fi
4101         done
4102         if test "$ol_arg" = "invalid" ; then
4103                 as_fn_error "bad value $enableval for --enable-bdb" "$LINENO" 5
4104         fi
4105         ol_enable_bdb="$ol_arg"
4106
4107 else
4108         ol_enable_bdb=${ol_enable_backends:-no}
4109 fi
4110
4111 # end --enable-bdb
4112 # OpenLDAP --enable-dnssrv
4113
4114         # Check whether --enable-dnssrv was given.
4115 if test "${enable_dnssrv+set}" = set; then :
4116   enableval=$enable_dnssrv;
4117         ol_arg=invalid
4118         for ol_val in no yes mod ; do
4119                 if test "$enableval" = "$ol_val" ; then
4120                         ol_arg="$ol_val"
4121                 fi
4122         done
4123         if test "$ol_arg" = "invalid" ; then
4124                 as_fn_error "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4125         fi
4126         ol_enable_dnssrv="$ol_arg"
4127
4128 else
4129         ol_enable_dnssrv=${ol_enable_backends:-no}
4130 fi
4131
4132 # end --enable-dnssrv
4133 # OpenLDAP --enable-hdb
4134
4135         # Check whether --enable-hdb was given.
4136 if test "${enable_hdb+set}" = set; then :
4137   enableval=$enable_hdb;
4138         ol_arg=invalid
4139         for ol_val in no yes mod ; do
4140                 if test "$enableval" = "$ol_val" ; then
4141                         ol_arg="$ol_val"
4142                 fi
4143         done
4144         if test "$ol_arg" = "invalid" ; then
4145                 as_fn_error "bad value $enableval for --enable-hdb" "$LINENO" 5
4146         fi
4147         ol_enable_hdb="$ol_arg"
4148
4149 else
4150         ol_enable_hdb=${ol_enable_backends:-yes}
4151 fi
4152
4153 # end --enable-hdb
4154 # OpenLDAP --enable-ldap
4155
4156         # Check whether --enable-ldap was given.
4157 if test "${enable_ldap+set}" = set; then :
4158   enableval=$enable_ldap;
4159         ol_arg=invalid
4160         for ol_val in no yes mod ; do
4161                 if test "$enableval" = "$ol_val" ; then
4162                         ol_arg="$ol_val"
4163                 fi
4164         done
4165         if test "$ol_arg" = "invalid" ; then
4166                 as_fn_error "bad value $enableval for --enable-ldap" "$LINENO" 5
4167         fi
4168         ol_enable_ldap="$ol_arg"
4169
4170 else
4171         ol_enable_ldap=${ol_enable_backends:-no}
4172 fi
4173
4174 # end --enable-ldap
4175 # OpenLDAP --enable-mdb
4176
4177         # Check whether --enable-mdb was given.
4178 if test "${enable_mdb+set}" = set; then :
4179   enableval=$enable_mdb;
4180         ol_arg=invalid
4181         for ol_val in no yes mod ; do
4182                 if test "$enableval" = "$ol_val" ; then
4183                         ol_arg="$ol_val"
4184                 fi
4185         done
4186         if test "$ol_arg" = "invalid" ; then
4187                 as_fn_error "bad value $enableval for --enable-mdb" "$LINENO" 5
4188         fi
4189         ol_enable_mdb="$ol_arg"
4190
4191 else
4192         ol_enable_mdb=${ol_enable_backends:-yes}
4193 fi
4194
4195 # end --enable-mdb
4196 # OpenLDAP --enable-meta
4197
4198         # Check whether --enable-meta was given.
4199 if test "${enable_meta+set}" = set; then :
4200   enableval=$enable_meta;
4201         ol_arg=invalid
4202         for ol_val in no yes mod ; do
4203                 if test "$enableval" = "$ol_val" ; then
4204                         ol_arg="$ol_val"
4205                 fi
4206         done
4207         if test "$ol_arg" = "invalid" ; then
4208                 as_fn_error "bad value $enableval for --enable-meta" "$LINENO" 5
4209         fi
4210         ol_enable_meta="$ol_arg"
4211
4212 else
4213         ol_enable_meta=${ol_enable_backends:-no}
4214 fi
4215
4216 # end --enable-meta
4217 # OpenLDAP --enable-monitor
4218
4219         # Check whether --enable-monitor was given.
4220 if test "${enable_monitor+set}" = set; then :
4221   enableval=$enable_monitor;
4222         ol_arg=invalid
4223         for ol_val in no yes mod ; do
4224                 if test "$enableval" = "$ol_val" ; then
4225                         ol_arg="$ol_val"
4226                 fi
4227         done
4228         if test "$ol_arg" = "invalid" ; then
4229                 as_fn_error "bad value $enableval for --enable-monitor" "$LINENO" 5
4230         fi
4231         ol_enable_monitor="$ol_arg"
4232
4233 else
4234         ol_enable_monitor=${ol_enable_backends:-yes}
4235 fi
4236
4237 # end --enable-monitor
4238 # OpenLDAP --enable-ndb
4239
4240         # Check whether --enable-ndb was given.
4241 if test "${enable_ndb+set}" = set; then :
4242   enableval=$enable_ndb;
4243         ol_arg=invalid
4244         for ol_val in no yes mod ; do
4245                 if test "$enableval" = "$ol_val" ; then
4246                         ol_arg="$ol_val"
4247                 fi
4248         done
4249         if test "$ol_arg" = "invalid" ; then
4250                 as_fn_error "bad value $enableval for --enable-ndb" "$LINENO" 5
4251         fi
4252         ol_enable_ndb="$ol_arg"
4253
4254 else
4255         ol_enable_ndb=${ol_enable_backends:-no}
4256 fi
4257
4258 # end --enable-ndb
4259 # OpenLDAP --enable-null
4260
4261         # Check whether --enable-null was given.
4262 if test "${enable_null+set}" = set; then :
4263   enableval=$enable_null;
4264         ol_arg=invalid
4265         for ol_val in no yes mod ; do
4266                 if test "$enableval" = "$ol_val" ; then
4267                         ol_arg="$ol_val"
4268                 fi
4269         done
4270         if test "$ol_arg" = "invalid" ; then
4271                 as_fn_error "bad value $enableval for --enable-null" "$LINENO" 5
4272         fi
4273         ol_enable_null="$ol_arg"
4274
4275 else
4276         ol_enable_null=${ol_enable_backends:-no}
4277 fi
4278
4279 # end --enable-null
4280 # OpenLDAP --enable-passwd
4281
4282         # Check whether --enable-passwd was given.
4283 if test "${enable_passwd+set}" = set; then :
4284   enableval=$enable_passwd;
4285         ol_arg=invalid
4286         for ol_val in no yes mod ; do
4287                 if test "$enableval" = "$ol_val" ; then
4288                         ol_arg="$ol_val"
4289                 fi
4290         done
4291         if test "$ol_arg" = "invalid" ; then
4292                 as_fn_error "bad value $enableval for --enable-passwd" "$LINENO" 5
4293         fi
4294         ol_enable_passwd="$ol_arg"
4295
4296 else
4297         ol_enable_passwd=${ol_enable_backends:-no}
4298 fi
4299
4300 # end --enable-passwd
4301 # OpenLDAP --enable-perl
4302
4303         # Check whether --enable-perl was given.
4304 if test "${enable_perl+set}" = set; then :
4305   enableval=$enable_perl;
4306         ol_arg=invalid
4307         for ol_val in no yes mod ; do
4308                 if test "$enableval" = "$ol_val" ; then
4309                         ol_arg="$ol_val"
4310                 fi
4311         done
4312         if test "$ol_arg" = "invalid" ; then
4313                 as_fn_error "bad value $enableval for --enable-perl" "$LINENO" 5
4314         fi
4315         ol_enable_perl="$ol_arg"
4316
4317 else
4318         ol_enable_perl=${ol_enable_backends:-no}
4319 fi
4320
4321 # end --enable-perl
4322 # OpenLDAP --enable-relay
4323
4324         # Check whether --enable-relay was given.
4325 if test "${enable_relay+set}" = set; then :
4326   enableval=$enable_relay;
4327         ol_arg=invalid
4328         for ol_val in no yes mod ; do
4329                 if test "$enableval" = "$ol_val" ; then
4330                         ol_arg="$ol_val"
4331                 fi
4332         done
4333         if test "$ol_arg" = "invalid" ; then
4334                 as_fn_error "bad value $enableval for --enable-relay" "$LINENO" 5
4335         fi
4336         ol_enable_relay="$ol_arg"
4337
4338 else
4339         ol_enable_relay=${ol_enable_backends:-yes}
4340 fi
4341
4342 # end --enable-relay
4343 # OpenLDAP --enable-shell
4344
4345         # Check whether --enable-shell was given.
4346 if test "${enable_shell+set}" = set; then :
4347   enableval=$enable_shell;
4348         ol_arg=invalid
4349         for ol_val in no yes mod ; do
4350                 if test "$enableval" = "$ol_val" ; then
4351                         ol_arg="$ol_val"
4352                 fi
4353         done
4354         if test "$ol_arg" = "invalid" ; then
4355                 as_fn_error "bad value $enableval for --enable-shell" "$LINENO" 5
4356         fi
4357         ol_enable_shell="$ol_arg"
4358
4359 else
4360         ol_enable_shell=${ol_enable_backends:-no}
4361 fi
4362
4363 # end --enable-shell
4364 # OpenLDAP --enable-sock
4365
4366         # Check whether --enable-sock was given.
4367 if test "${enable_sock+set}" = set; then :
4368   enableval=$enable_sock;
4369         ol_arg=invalid
4370         for ol_val in no yes mod ; do
4371                 if test "$enableval" = "$ol_val" ; then
4372                         ol_arg="$ol_val"
4373                 fi
4374         done
4375         if test "$ol_arg" = "invalid" ; then
4376                 as_fn_error "bad value $enableval for --enable-sock" "$LINENO" 5
4377         fi
4378         ol_enable_sock="$ol_arg"
4379
4380 else
4381         ol_enable_sock=${ol_enable_backends:-no}
4382 fi
4383
4384 # end --enable-sock
4385 # OpenLDAP --enable-sql
4386
4387         # Check whether --enable-sql was given.
4388 if test "${enable_sql+set}" = set; then :
4389   enableval=$enable_sql;
4390         ol_arg=invalid
4391         for ol_val in no yes mod ; do
4392                 if test "$enableval" = "$ol_val" ; then
4393                         ol_arg="$ol_val"
4394                 fi
4395         done
4396         if test "$ol_arg" = "invalid" ; then
4397                 as_fn_error "bad value $enableval for --enable-sql" "$LINENO" 5
4398         fi
4399         ol_enable_sql="$ol_arg"
4400
4401 else
4402         ol_enable_sql=${ol_enable_backends:-no}
4403 fi
4404
4405 # end --enable-sql
4406
4407 Overlays="accesslog \
4408         auditlog \
4409         collect \
4410         constraint \
4411         dds \
4412         deref \
4413         dyngroup \
4414         dynlist \
4415         memberof \
4416         ppolicy \
4417         proxycache \
4418         refint \
4419         retcode \
4420         rwm \
4421         seqmod \
4422         sssvlv \
4423         syncprov \
4424         translucent \
4425         unique \
4426         valsort"
4427
4428 # Check whether --enable-xxslapoverlays was given.
4429 if test "${enable_xxslapoverlays+set}" = set; then :
4430   enableval=$enable_xxslapoverlays;
4431 fi
4432
4433
4434 # OpenLDAP --enable-overlays
4435
4436         # Check whether --enable-overlays was given.
4437 if test "${enable_overlays+set}" = set; then :
4438   enableval=$enable_overlays;
4439         ol_arg=invalid
4440         for ol_val in no yes mod ; do
4441                 if test "$enableval" = "$ol_val" ; then
4442                         ol_arg="$ol_val"
4443                 fi
4444         done
4445         if test "$ol_arg" = "invalid" ; then
4446                 as_fn_error "bad value $enableval for --enable-overlays" "$LINENO" 5
4447         fi
4448         ol_enable_overlays="$ol_arg"
4449
4450 fi
4451
4452 # end --enable-overlays
4453 # OpenLDAP --enable-accesslog
4454
4455         # Check whether --enable-accesslog was given.
4456 if test "${enable_accesslog+set}" = set; then :
4457   enableval=$enable_accesslog;
4458         ol_arg=invalid
4459         for ol_val in no yes mod ; do
4460                 if test "$enableval" = "$ol_val" ; then
4461                         ol_arg="$ol_val"
4462                 fi
4463         done
4464         if test "$ol_arg" = "invalid" ; then
4465                 as_fn_error "bad value $enableval for --enable-accesslog" "$LINENO" 5
4466         fi
4467         ol_enable_accesslog="$ol_arg"
4468
4469 else
4470         ol_enable_accesslog=${ol_enable_overlays:-no}
4471 fi
4472
4473 # end --enable-accesslog
4474
4475 # OpenLDAP --enable-auditlog
4476
4477         # Check whether --enable-auditlog was given.
4478 if test "${enable_auditlog+set}" = set; then :
4479   enableval=$enable_auditlog;
4480         ol_arg=invalid
4481         for ol_val in no yes mod ; do
4482                 if test "$enableval" = "$ol_val" ; then
4483                         ol_arg="$ol_val"
4484                 fi
4485         done
4486         if test "$ol_arg" = "invalid" ; then
4487                 as_fn_error "bad value $enableval for --enable-auditlog" "$LINENO" 5
4488         fi
4489         ol_enable_auditlog="$ol_arg"
4490
4491 else
4492         ol_enable_auditlog=${ol_enable_overlays:-no}
4493 fi
4494
4495 # end --enable-auditlog
4496
4497 # OpenLDAP --enable-collect
4498
4499         # Check whether --enable-collect was given.
4500 if test "${enable_collect+set}" = set; then :
4501   enableval=$enable_collect;
4502         ol_arg=invalid
4503         for ol_val in no yes mod ; do
4504                 if test "$enableval" = "$ol_val" ; then
4505                         ol_arg="$ol_val"
4506                 fi
4507         done
4508         if test "$ol_arg" = "invalid" ; then
4509                 as_fn_error "bad value $enableval for --enable-collect" "$LINENO" 5
4510         fi
4511         ol_enable_collect="$ol_arg"
4512
4513 else
4514         ol_enable_collect=${ol_enable_overlays:-no}
4515 fi
4516
4517 # end --enable-collect
4518
4519 # OpenLDAP --enable-constraint
4520
4521         # Check whether --enable-constraint was given.
4522 if test "${enable_constraint+set}" = set; then :
4523   enableval=$enable_constraint;
4524         ol_arg=invalid
4525         for ol_val in no yes mod ; do
4526                 if test "$enableval" = "$ol_val" ; then
4527                         ol_arg="$ol_val"
4528                 fi
4529         done
4530         if test "$ol_arg" = "invalid" ; then
4531                 as_fn_error "bad value $enableval for --enable-constraint" "$LINENO" 5
4532         fi
4533         ol_enable_constraint="$ol_arg"
4534
4535 else
4536         ol_enable_constraint=${ol_enable_overlays:-no}
4537 fi
4538
4539 # end --enable-constraint
4540
4541 # OpenLDAP --enable-dds
4542
4543         # Check whether --enable-dds was given.
4544 if test "${enable_dds+set}" = set; then :
4545   enableval=$enable_dds;
4546         ol_arg=invalid
4547         for ol_val in no yes mod ; do
4548                 if test "$enableval" = "$ol_val" ; then
4549                         ol_arg="$ol_val"
4550                 fi
4551         done
4552         if test "$ol_arg" = "invalid" ; then
4553                 as_fn_error "bad value $enableval for --enable-dds" "$LINENO" 5
4554         fi
4555         ol_enable_dds="$ol_arg"
4556
4557 else
4558         ol_enable_dds=${ol_enable_overlays:-no}
4559 fi
4560
4561 # end --enable-dds
4562
4563 # OpenLDAP --enable-deref
4564
4565         # Check whether --enable-deref was given.
4566 if test "${enable_deref+set}" = set; then :
4567   enableval=$enable_deref;
4568         ol_arg=invalid
4569         for ol_val in no yes mod ; do
4570                 if test "$enableval" = "$ol_val" ; then
4571                         ol_arg="$ol_val"
4572                 fi
4573         done
4574         if test "$ol_arg" = "invalid" ; then
4575                 as_fn_error "bad value $enableval for --enable-deref" "$LINENO" 5
4576         fi
4577         ol_enable_deref="$ol_arg"
4578
4579 else
4580         ol_enable_deref=${ol_enable_overlays:-no}
4581 fi
4582
4583 # end --enable-deref
4584
4585 # OpenLDAP --enable-dyngroup
4586
4587         # Check whether --enable-dyngroup was given.
4588 if test "${enable_dyngroup+set}" = set; then :
4589   enableval=$enable_dyngroup;
4590         ol_arg=invalid
4591         for ol_val in no yes mod ; do
4592                 if test "$enableval" = "$ol_val" ; then
4593                         ol_arg="$ol_val"
4594                 fi
4595         done
4596         if test "$ol_arg" = "invalid" ; then
4597                 as_fn_error "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4598         fi
4599         ol_enable_dyngroup="$ol_arg"
4600
4601 else
4602         ol_enable_dyngroup=${ol_enable_overlays:-no}
4603 fi
4604
4605 # end --enable-dyngroup
4606
4607 # OpenLDAP --enable-dynlist
4608
4609         # Check whether --enable-dynlist was given.
4610 if test "${enable_dynlist+set}" = set; then :
4611   enableval=$enable_dynlist;
4612         ol_arg=invalid
4613         for ol_val in no yes mod ; do
4614                 if test "$enableval" = "$ol_val" ; then
4615                         ol_arg="$ol_val"
4616                 fi
4617         done
4618         if test "$ol_arg" = "invalid" ; then
4619                 as_fn_error "bad value $enableval for --enable-dynlist" "$LINENO" 5
4620         fi
4621         ol_enable_dynlist="$ol_arg"
4622
4623 else
4624         ol_enable_dynlist=${ol_enable_overlays:-no}
4625 fi
4626
4627 # end --enable-dynlist
4628
4629 # OpenLDAP --enable-memberof
4630
4631         # Check whether --enable-memberof was given.
4632 if test "${enable_memberof+set}" = set; then :
4633   enableval=$enable_memberof;
4634         ol_arg=invalid
4635         for ol_val in no yes mod ; do
4636                 if test "$enableval" = "$ol_val" ; then
4637                         ol_arg="$ol_val"
4638                 fi
4639         done
4640         if test "$ol_arg" = "invalid" ; then
4641                 as_fn_error "bad value $enableval for --enable-memberof" "$LINENO" 5
4642         fi
4643         ol_enable_memberof="$ol_arg"
4644
4645 else
4646         ol_enable_memberof=${ol_enable_overlays:-no}
4647 fi
4648
4649 # end --enable-memberof
4650
4651 # OpenLDAP --enable-ppolicy
4652
4653         # Check whether --enable-ppolicy was given.
4654 if test "${enable_ppolicy+set}" = set; then :
4655   enableval=$enable_ppolicy;
4656         ol_arg=invalid
4657         for ol_val in no yes mod ; do
4658                 if test "$enableval" = "$ol_val" ; then
4659                         ol_arg="$ol_val"
4660                 fi
4661         done
4662         if test "$ol_arg" = "invalid" ; then
4663                 as_fn_error "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4664         fi
4665         ol_enable_ppolicy="$ol_arg"
4666
4667 else
4668         ol_enable_ppolicy=${ol_enable_overlays:-no}
4669 fi
4670
4671 # end --enable-ppolicy
4672
4673 # OpenLDAP --enable-proxycache
4674
4675         # Check whether --enable-proxycache was given.
4676 if test "${enable_proxycache+set}" = set; then :
4677   enableval=$enable_proxycache;
4678         ol_arg=invalid
4679         for ol_val in no yes mod ; do
4680                 if test "$enableval" = "$ol_val" ; then
4681                         ol_arg="$ol_val"
4682                 fi
4683         done
4684         if test "$ol_arg" = "invalid" ; then
4685                 as_fn_error "bad value $enableval for --enable-proxycache" "$LINENO" 5
4686         fi
4687         ol_enable_proxycache="$ol_arg"
4688
4689 else
4690         ol_enable_proxycache=${ol_enable_overlays:-no}
4691 fi
4692
4693 # end --enable-proxycache
4694
4695 # OpenLDAP --enable-refint
4696
4697         # Check whether --enable-refint was given.
4698 if test "${enable_refint+set}" = set; then :
4699   enableval=$enable_refint;
4700         ol_arg=invalid
4701         for ol_val in no yes mod ; do
4702                 if test "$enableval" = "$ol_val" ; then
4703                         ol_arg="$ol_val"
4704                 fi
4705         done
4706         if test "$ol_arg" = "invalid" ; then
4707                 as_fn_error "bad value $enableval for --enable-refint" "$LINENO" 5
4708         fi
4709         ol_enable_refint="$ol_arg"
4710
4711 else
4712         ol_enable_refint=${ol_enable_overlays:-no}
4713 fi
4714
4715 # end --enable-refint
4716
4717 # OpenLDAP --enable-retcode
4718
4719         # Check whether --enable-retcode was given.
4720 if test "${enable_retcode+set}" = set; then :
4721   enableval=$enable_retcode;
4722         ol_arg=invalid
4723         for ol_val in no yes mod ; do
4724                 if test "$enableval" = "$ol_val" ; then
4725                         ol_arg="$ol_val"
4726                 fi
4727         done
4728         if test "$ol_arg" = "invalid" ; then
4729                 as_fn_error "bad value $enableval for --enable-retcode" "$LINENO" 5
4730         fi
4731         ol_enable_retcode="$ol_arg"
4732
4733 else
4734         ol_enable_retcode=${ol_enable_overlays:-no}
4735 fi
4736
4737 # end --enable-retcode
4738
4739 # OpenLDAP --enable-rwm
4740
4741         # Check whether --enable-rwm was given.
4742 if test "${enable_rwm+set}" = set; then :
4743   enableval=$enable_rwm;
4744         ol_arg=invalid
4745         for ol_val in no yes mod ; do
4746                 if test "$enableval" = "$ol_val" ; then
4747                         ol_arg="$ol_val"
4748                 fi
4749         done
4750         if test "$ol_arg" = "invalid" ; then
4751                 as_fn_error "bad value $enableval for --enable-rwm" "$LINENO" 5
4752         fi
4753         ol_enable_rwm="$ol_arg"
4754
4755 else
4756         ol_enable_rwm=${ol_enable_overlays:-no}
4757 fi
4758
4759 # end --enable-rwm
4760
4761 # OpenLDAP --enable-seqmod
4762
4763         # Check whether --enable-seqmod was given.
4764 if test "${enable_seqmod+set}" = set; then :
4765   enableval=$enable_seqmod;
4766         ol_arg=invalid
4767         for ol_val in no yes mod ; do
4768                 if test "$enableval" = "$ol_val" ; then
4769                         ol_arg="$ol_val"
4770                 fi
4771         done
4772         if test "$ol_arg" = "invalid" ; then
4773                 as_fn_error "bad value $enableval for --enable-seqmod" "$LINENO" 5
4774         fi
4775         ol_enable_seqmod="$ol_arg"
4776
4777 else
4778         ol_enable_seqmod=${ol_enable_overlays:-no}
4779 fi
4780
4781 # end --enable-seqmod
4782
4783 # OpenLDAP --enable-sssvlv
4784
4785         # Check whether --enable-sssvlv was given.
4786 if test "${enable_sssvlv+set}" = set; then :
4787   enableval=$enable_sssvlv;
4788         ol_arg=invalid
4789         for ol_val in no yes mod ; do
4790                 if test "$enableval" = "$ol_val" ; then
4791                         ol_arg="$ol_val"
4792                 fi
4793         done
4794         if test "$ol_arg" = "invalid" ; then
4795                 as_fn_error "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4796         fi
4797         ol_enable_sssvlv="$ol_arg"
4798
4799 else
4800         ol_enable_sssvlv=${ol_enable_overlays:-no}
4801 fi
4802
4803 # end --enable-sssvlv
4804
4805 # OpenLDAP --enable-syncprov
4806
4807         # Check whether --enable-syncprov was given.
4808 if test "${enable_syncprov+set}" = set; then :
4809   enableval=$enable_syncprov;
4810         ol_arg=invalid
4811         for ol_val in no yes mod ; do
4812                 if test "$enableval" = "$ol_val" ; then
4813                         ol_arg="$ol_val"
4814                 fi
4815         done
4816         if test "$ol_arg" = "invalid" ; then
4817                 as_fn_error "bad value $enableval for --enable-syncprov" "$LINENO" 5
4818         fi
4819         ol_enable_syncprov="$ol_arg"
4820
4821 else
4822         ol_enable_syncprov=${ol_enable_overlays:-yes}
4823 fi
4824
4825 # end --enable-syncprov
4826
4827 # OpenLDAP --enable-translucent
4828
4829         # Check whether --enable-translucent was given.
4830 if test "${enable_translucent+set}" = set; then :
4831   enableval=$enable_translucent;
4832         ol_arg=invalid
4833         for ol_val in no yes mod ; do
4834                 if test "$enableval" = "$ol_val" ; then
4835                         ol_arg="$ol_val"
4836                 fi
4837         done
4838         if test "$ol_arg" = "invalid" ; then
4839                 as_fn_error "bad value $enableval for --enable-translucent" "$LINENO" 5
4840         fi
4841         ol_enable_translucent="$ol_arg"
4842
4843 else
4844         ol_enable_translucent=${ol_enable_overlays:-no}
4845 fi
4846
4847 # end --enable-translucent
4848
4849 # OpenLDAP --enable-unique
4850
4851         # Check whether --enable-unique was given.
4852 if test "${enable_unique+set}" = set; then :
4853   enableval=$enable_unique;
4854         ol_arg=invalid
4855         for ol_val in no yes mod ; do
4856                 if test "$enableval" = "$ol_val" ; then
4857                         ol_arg="$ol_val"
4858                 fi
4859         done
4860         if test "$ol_arg" = "invalid" ; then
4861                 as_fn_error "bad value $enableval for --enable-unique" "$LINENO" 5
4862         fi
4863         ol_enable_unique="$ol_arg"
4864
4865 else
4866         ol_enable_unique=${ol_enable_overlays:-no}
4867 fi
4868
4869 # end --enable-unique
4870
4871 # OpenLDAP --enable-valsort
4872
4873         # Check whether --enable-valsort was given.
4874 if test "${enable_valsort+set}" = set; then :
4875   enableval=$enable_valsort;
4876         ol_arg=invalid
4877         for ol_val in no yes mod ; do
4878                 if test "$enableval" = "$ol_val" ; then
4879                         ol_arg="$ol_val"
4880                 fi
4881         done
4882         if test "$ol_arg" = "invalid" ; then
4883                 as_fn_error "bad value $enableval for --enable-valsort" "$LINENO" 5
4884         fi
4885         ol_enable_valsort="$ol_arg"
4886
4887 else
4888         ol_enable_valsort=${ol_enable_overlays:-no}
4889 fi
4890
4891 # end --enable-valsort
4892
4893
4894 # Check whether --enable-xxliboptions was given.
4895 if test "${enable_xxliboptions+set}" = set; then :
4896   enableval=$enable_xxliboptions;
4897 fi
4898
4899 # Check whether --enable-static was given.
4900 if test "${enable_static+set}" = set; then :
4901   enableval=$enable_static; p=${PACKAGE-default}
4902     case $enableval in
4903     yes) enable_static=yes ;;
4904     no) enable_static=no ;;
4905     *)
4906      enable_static=no
4907       # Look at the argument we got.  We use all the common list separators.
4908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4909       for pkg in $enableval; do
4910         IFS="$lt_save_ifs"
4911         if test "X$pkg" = "X$p"; then
4912           enable_static=yes
4913         fi
4914       done
4915       IFS="$lt_save_ifs"
4916       ;;
4917     esac
4918 else
4919   enable_static=yes
4920 fi
4921
4922
4923 # Check whether --enable-shared was given.
4924 if test "${enable_shared+set}" = set; then :
4925   enableval=$enable_shared; p=${PACKAGE-default}
4926     case $enableval in
4927     yes) enable_shared=yes ;;
4928     no) enable_shared=no ;;
4929     *)
4930       enable_shared=no
4931       # Look at the argument we got.  We use all the common list separators.
4932       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4933       for pkg in $enableval; do
4934         IFS="$lt_save_ifs"
4935         if test "X$pkg" = "X$p"; then
4936           enable_shared=yes
4937         fi
4938       done
4939       IFS="$lt_save_ifs"
4940       ;;
4941     esac
4942 else
4943   enable_shared=yes
4944 fi
4945
4946
4947
4948
4949 # validate options
4950 if test $ol_enable_slapd = no ; then
4951                 if test $ol_enable_slapi = yes ; then
4952                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4953 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4954         fi
4955         case "$ol_enable_backends" in yes | mod)
4956                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4957 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4958         esac
4959         for i in $Backends; do
4960                 eval "ol_tmp=\$ol_enable_$i"
4961                 if test $ol_tmp != no ; then
4962                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4963 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4964                         eval "ol_enable_$i=no"
4965                 fi
4966         done
4967         if test $ol_enable_modules = yes ; then
4968                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4969 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4970         fi
4971         if test $ol_enable_wrappers = yes ; then
4972                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4973 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4974         fi
4975         if test $ol_enable_rlookups = yes ; then
4976                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4977 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4978         fi
4979         if test $ol_enable_dynacl = yes ; then
4980                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4981 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4982         fi
4983         if test $ol_enable_aci != no ; then
4984                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4985 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4986         fi
4987         if test $ol_enable_rewrite = yes ; then
4988                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4989 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4990         fi
4991                 case "$ol_enable_overlays" in yes | mod)
4992                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4993 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4994         esac
4995         for i in $Overlays; do
4996                 eval "ol_tmp=\$ol_enable_$i"
4997                 if test $ol_tmp != no ; then
4998                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4999 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5000                         eval "ol_enable_$i=no"
5001                 fi
5002         done
5003
5004         # force settings to no
5005         ol_enable_slapi=no
5006
5007         ol_enable_backends=
5008         ol_enable_overlays=
5009         ol_enable_modules=no
5010         ol_enable_rlookups=no
5011         ol_enable_dynacl=no
5012         ol_enable_aci=no
5013         ol_enable_wrappers=no
5014
5015         ol_enable_rewrite=no
5016
5017 elif test $ol_enable_modules != yes &&
5018         test $ol_enable_bdb = no &&
5019         test $ol_enable_dnssrv = no &&
5020         test $ol_enable_hdb = no &&
5021         test $ol_enable_ldap = no &&
5022         test $ol_enable_mdb = no &&
5023         test $ol_enable_meta = no &&
5024         test $ol_enable_monitor = no &&
5025         test $ol_enable_ndb = no &&
5026         test $ol_enable_null = no &&
5027         test $ol_enable_passwd = no &&
5028         test $ol_enable_perl = no &&
5029         test $ol_enable_relay = no &&
5030         test $ol_enable_shell = no &&
5031         test $ol_enable_sock = no &&
5032         test $ol_enable_sql = no ; then
5033
5034         if test $ol_enable_slapd = yes ; then
5035                 as_fn_error "slapd requires a backend" "$LINENO" 5
5036         else
5037                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5038 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5039                 ol_enable_slapd=no
5040         fi
5041 fi
5042
5043 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5044         as_fn_error "--enable-meta requires --enable-ldap" "$LINENO" 5
5045 fi
5046
5047 if test $ol_enable_lmpasswd = yes ; then
5048         if test $ol_with_tls = no ; then
5049                 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
5050         fi
5051 fi
5052
5053 if test $ol_enable_spasswd = yes ; then
5054         if test $ol_with_cyrus_sasl = no ; then
5055                 as_fn_error "options require --with-cyrus-sasl" "$LINENO" 5
5056         fi
5057         ol_with_cyrus_sasl=yes
5058 fi
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5061 $as_echo "done" >&6; }
5062
5063 LDAP_LIBS=
5064 BDB_LIBS=
5065 SLAPD_NDB_LIBS=
5066 SLAPD_NDB_INCS=
5067 LTHREAD_LIBS=
5068 LUTIL_LIBS=
5069
5070 SLAPD_LIBS=
5071
5072 BUILD_SLAPD=no
5073
5074 BUILD_THREAD=no
5075
5076 BUILD_SLAPI=no
5077 SLAPD_SLAPI_DEPEND=
5078
5079 BUILD_BDB=no
5080 BUILD_DNSSRV=no
5081 BUILD_HDB=no
5082 BUILD_LDAP=no
5083 BUILD_MDB=no
5084 BUILD_META=no
5085 BUILD_MONITOR=no
5086 BUILD_NDB=no
5087 BUILD_NULL=no
5088 BUILD_PASSWD=no
5089 BUILD_PERL=no
5090 BUILD_RELAY=no
5091 BUILD_SHELL=no
5092 BUILD_SOCK=no
5093 BUILD_SQL=no
5094
5095 BUILD_ACCESSLOG=no
5096 BUILD_AUDITLOG=no
5097 BUILD_CONSTRAINT=no
5098 BUILD_DDS=no
5099 BUILD_DENYOP=no
5100 BUILD_DEREF=no
5101 BUILD_DYNGROUP=no
5102 BUILD_DYNLIST=no
5103 BUILD_LASTMOD=no
5104 BUILD_MEMBEROF=no
5105 BUILD_PPOLICY=no
5106 BUILD_PROXYCACHE=no
5107 BUILD_REFINT=no
5108 BUILD_RETCODE=no
5109 BUILD_RWM=no
5110 BUILD_SEQMOD=no
5111 BUILD_SSSVLV=no
5112 BUILD_SYNCPROV=no
5113 BUILD_TRANSLUCENT=no
5114 BUILD_UNIQUE=no
5115 BUILD_VALSORT=no
5116
5117 SLAPD_STATIC_OVERLAYS=
5118 SLAPD_DYNAMIC_OVERLAYS=
5119
5120 SLAPD_MODULES_LDFLAGS=
5121 SLAPD_MODULES_CPPFLAGS=
5122
5123 SLAPD_STATIC_BACKENDS=back-ldif
5124 SLAPD_DYNAMIC_BACKENDS=
5125
5126 SLAPD_PERL_LDFLAGS=
5127 MOD_PERL_LDFLAGS=
5128 PERL_CPPFLAGS=
5129
5130 SLAPD_SQL_LDFLAGS=
5131 SLAPD_SQL_LIBS=
5132 SLAPD_SQL_INCLUDES=
5133
5134 KRB4_LIBS=
5135 KRB5_LIBS=
5136 SASL_LIBS=
5137 TLS_LIBS=
5138 MODULES_LIBS=
5139 SLAPI_LIBS=
5140 LIBSLAPI=
5141 AUTH_LIBS=
5142 ICU_LIBS=
5143
5144 SLAPD_SLP_LIBS=
5145 SLAPD_GMP_LIBS=
5146
5147
5148
5149 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5150
5151
5152
5153
5154 ol_aix_threads=no
5155 case "$target" in
5156 *-*-aix*)       if test -z "$CC" ; then
5157                 case "$ol_with_threads" in
5158                 auto | yes |  posix) ol_aix_threads=yes ;;
5159                 esac
5160         fi
5161 ;;
5162 esac
5163
5164 if test $ol_aix_threads = yes ; then
5165         if test -z "${CC}" ; then
5166                 for ac_prog in cc_r xlc_r cc
5167 do
5168   # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_prog_CC+set}" = set; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   if test -n "$CC"; then
5176   ac_cv_prog_CC="$CC" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183     for ac_exec_ext in '' $ac_executable_extensions; do
5184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185     ac_cv_prog_CC="$ac_prog"
5186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190   done
5191 IFS=$as_save_IFS
5192
5193 fi
5194 fi
5195 CC=$ac_cv_prog_CC
5196 if test -n "$CC"; then
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5198 $as_echo "$CC" >&6; }
5199 else
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203
5204
5205   test -n "$CC" && break
5206 done
5207
5208
5209                 if test "$CC" = cc ; then
5210                                                 if test $ol_with_threads != auto ; then
5211                                 as_fn_error "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5212                         else
5213                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5214 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5215                         fi
5216                         ol_with_threads=no
5217                 fi
5218         fi
5219
5220         case ${CC} in cc_r | xlc_r)
5221                 ol_with_threads=posix
5222                 ol_cv_pthread_create=yes
5223                 ;;
5224         esac
5225 fi
5226
5227 if test -z "${CC}"; then
5228         for ac_prog in cc gcc
5229 do
5230   # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if test "${ac_cv_prog_CC+set}" = set; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   if test -n "$CC"; then
5238   ac_cv_prog_CC="$CC" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245     for ac_exec_ext in '' $ac_executable_extensions; do
5246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247     ac_cv_prog_CC="$ac_prog"
5248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252   done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 CC=$ac_cv_prog_CC
5258 if test -n "$CC"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5260 $as_echo "$CC" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267   test -n "$CC" && break
5268 done
5269 test -n "$CC" || CC="missing"
5270
5271
5272         if test "${CC}" = "missing" ; then
5273                 as_fn_error "Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." "$LINENO" 5
5274         fi
5275 fi
5276
5277 if test -z "${AR}"; then
5278         for ac_prog in ar gar
5279 do
5280   # Extract the first word of "$ac_prog", so it can be a program name with args.
5281 set dummy $ac_prog; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_AR+set}" = set; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if test -n "$AR"; then
5288   ac_cv_prog_AR="$AR" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_exec_ext in '' $ac_executable_extensions; do
5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297     ac_cv_prog_AR="$ac_prog"
5298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302   done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 AR=$ac_cv_prog_AR
5308 if test -n "$AR"; then
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5310 $as_echo "$AR" >&6; }
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316
5317   test -n "$AR" && break
5318 done
5319 test -n "$AR" || AR="missing"
5320
5321
5322         if test "${AR}" = "missing" ; then
5323                 as_fn_error "Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." "$LINENO" 5
5324         fi
5325 fi
5326
5327
5328
5329
5330
5331 # Check whether --enable-fast-install was given.
5332 if test "${enable_fast_install+set}" = set; then :
5333   enableval=$enable_fast_install; p=${PACKAGE-default}
5334     case $enableval in
5335     yes) enable_fast_install=yes ;;
5336     no) enable_fast_install=no ;;
5337     *)
5338       enable_fast_install=no
5339       # Look at the argument we got.  We use all the common list separators.
5340       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5341       for pkg in $enableval; do
5342         IFS="$lt_save_ifs"
5343         if test "X$pkg" = "X$p"; then
5344           enable_fast_install=yes
5345         fi
5346       done
5347       IFS="$lt_save_ifs"
5348       ;;
5349     esac
5350 else
5351   enable_fast_install=yes
5352 fi
5353
5354
5355 DEPDIR="${am__leading_dot}deps"
5356
5357 ac_config_commands="$ac_config_commands depfiles"
5358
5359
5360 am_make=${MAKE-make}
5361 cat > confinc << 'END'
5362 am__doit:
5363         @echo done
5364 .PHONY: am__doit
5365 END
5366 # If we don't find an include directive, just comment out the code.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5368 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5369 am__include="#"
5370 am__quote=
5371 _am_result=none
5372 # First try GNU make style include.
5373 echo "include confinc" > confmf
5374 # We grep out `Entering directory' and `Leaving directory'
5375 # messages which can occur if `w' ends up in MAKEFLAGS.
5376 # In particular we don't look at `^make:' because GNU make might
5377 # be invoked under some other name (usually "gmake"), in which
5378 # case it prints its new name instead of `make'.
5379 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5380    am__include=include
5381    am__quote=
5382    _am_result=GNU
5383 fi
5384 # Now try BSD make style include.
5385 if test "$am__include" = "#"; then
5386    echo '.include "confinc"' > confmf
5387    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5388       am__include=.include
5389       am__quote="\""
5390       _am_result=BSD
5391    fi
5392 fi
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5396 $as_echo "$_am_result" >&6; }
5397 rm -f confinc confmf
5398
5399 # Check whether --enable-dependency-tracking was given.
5400 if test "${enable_dependency_tracking+set}" = set; then :
5401   enableval=$enable_dependency_tracking;
5402 fi
5403
5404 if test "x$enable_dependency_tracking" != xno; then
5405   am_depcomp="$ac_aux_dir/depcomp"
5406   AMDEPBACKSLASH='\'
5407 fi
5408
5409
5410 if test "x$enable_dependency_tracking" != xno; then
5411   AMDEP_TRUE=
5412   AMDEP_FALSE='#'
5413 else
5414   AMDEP_TRUE='#'
5415   AMDEP_FALSE=
5416 fi
5417
5418
5419
5420 ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 if test -n "$ac_tool_prefix"; then
5426   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_CC+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if test -n "$CC"; then
5434   ac_cv_prog_CC="$CC" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 CC=$ac_cv_prog_CC
5454 if test -n "$CC"; then
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5456 $as_echo "$CC" >&6; }
5457 else
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462
5463 fi
5464 if test -z "$ac_cv_prog_CC"; then
5465   ac_ct_CC=$CC
5466   # Extract the first word of "gcc", so it can be a program name with args.
5467 set dummy gcc; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   if test -n "$ac_ct_CC"; then
5474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483     ac_cv_prog_ac_ct_CC="gcc"
5484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488   done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5494 if test -n "$ac_ct_CC"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5496 $as_echo "$ac_ct_CC" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502   if test "x$ac_ct_CC" = x; then
5503     CC=""
5504   else
5505     case $cross_compiling:$ac_tool_warned in
5506 yes:)
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509 ac_tool_warned=yes ;;
5510 esac
5511     CC=$ac_ct_CC
5512   fi
5513 else
5514   CC="$ac_cv_prog_CC"
5515 fi
5516
5517 if test -z "$CC"; then
5518           if test -n "$ac_tool_prefix"; then
5519     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}cc; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_CC+set}" = set; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$CC"; then
5527   ac_cv_prog_CC="$CC" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_CC="${ac_tool_prefix}cc"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 CC=$ac_cv_prog_CC
5547 if test -n "$CC"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5549 $as_echo "$CC" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556   fi
5557 fi
5558 if test -z "$CC"; then
5559   # Extract the first word of "cc", so it can be a program name with args.
5560 set dummy cc; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_CC+set}" = set; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$CC"; then
5567   ac_cv_prog_CC="$CC" # Let the user override the test.
5568 else
5569   ac_prog_rejected=no
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5578        ac_prog_rejected=yes
5579        continue
5580      fi
5581     ac_cv_prog_CC="cc"
5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586   done
5587 IFS=$as_save_IFS
5588
5589 if test $ac_prog_rejected = yes; then
5590   # We found a bogon in the path, so make sure we never use it.
5591   set dummy $ac_cv_prog_CC
5592   shift
5593   if test $# != 0; then
5594     # We chose a different compiler from the bogus one.
5595     # However, it has the same basename, so the bogon will be chosen
5596     # first if we set CC to just the basename; use the full file name.
5597     shift
5598     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5599   fi
5600 fi
5601 fi
5602 fi
5603 CC=$ac_cv_prog_CC
5604 if test -n "$CC"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5606 $as_echo "$CC" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613 fi
5614 if test -z "$CC"; then
5615   if test -n "$ac_tool_prefix"; then
5616   for ac_prog in cl.exe
5617   do
5618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_CC+set}" = set; then :
5623   $as_echo_n "(cached) " >&6
5624 else
5625   if test -n "$CC"; then
5626   ac_cv_prog_CC="$CC" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640   done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 CC=$ac_cv_prog_CC
5646 if test -n "$CC"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5648 $as_echo "$CC" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655     test -n "$CC" && break
5656   done
5657 fi
5658 if test -z "$CC"; then
5659   ac_ct_CC=$CC
5660   for ac_prog in cl.exe
5661 do
5662   # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   if test -n "$ac_ct_CC"; then
5670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_ac_ct_CC="$ac_prog"
5680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684   done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690 if test -n "$ac_ct_CC"; then
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5692 $as_echo "$ac_ct_CC" >&6; }
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699   test -n "$ac_ct_CC" && break
5700 done
5701
5702   if test "x$ac_ct_CC" = x; then
5703     CC=""
5704   else
5705     case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711     CC=$ac_ct_CC
5712   fi
5713 fi
5714
5715 fi
5716
5717
5718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5720 as_fn_error "no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." "$LINENO" 5; }
5722
5723 # Provide some information about the compiler.
5724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5725 set X $ac_compile
5726 ac_compiler=$2
5727 for ac_option in --version -v -V -qversion; do
5728   { { ac_try="$ac_compiler $ac_option >&5"
5729 case "(($ac_try" in
5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731   *) ac_try_echo=$ac_try;;
5732 esac
5733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5734 $as_echo "$ac_try_echo"; } >&5
5735   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5736   ac_status=$?
5737   if test -s conftest.err; then
5738     sed '10a\
5739 ... rest of stderr output deleted ...
5740          10q' conftest.err >conftest.er1
5741     cat conftest.er1 >&5
5742   fi
5743   rm -f conftest.er1 conftest.err
5744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745   test $ac_status = 0; }
5746 done
5747
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h.  */
5750
5751 int
5752 main ()
5753 {
5754
5755   ;
5756   return 0;
5757 }
5758 _ACEOF
5759 ac_clean_files_save=$ac_clean_files
5760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5761 # Try to create an executable without -o first, disregard a.out.
5762 # It will help us diagnose broken compilers, and finding out an intuition
5763 # of exeext.
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5765 $as_echo_n "checking whether the C compiler works... " >&6; }
5766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5767
5768 # The possible output files:
5769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5770
5771 ac_rmfiles=
5772 for ac_file in $ac_files
5773 do
5774   case $ac_file in
5775     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5776     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5777   esac
5778 done
5779 rm -f $ac_rmfiles
5780
5781 if { { ac_try="$ac_link_default"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5787 $as_echo "$ac_try_echo"; } >&5
5788   (eval "$ac_link_default") 2>&5
5789   ac_status=$?
5790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791   test $ac_status = 0; }; then :
5792   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5794 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5795 # so that the user can short-circuit this test for compilers unknown to
5796 # Autoconf.
5797 for ac_file in $ac_files ''
5798 do
5799   test -f "$ac_file" || continue
5800   case $ac_file in
5801     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5802         ;;
5803     [ab].out )
5804         # We found the default executable, but exeext='' is most
5805         # certainly right.
5806         break;;
5807     *.* )
5808         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5809         then :; else
5810            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5811         fi
5812         # We set ac_cv_exeext here because the later test for it is not
5813         # safe: cross compilers may not add the suffix if given an `-o'
5814         # argument, so we may need to know it at that point already.
5815         # Even if this section looks crufty: it has the advantage of
5816         # actually working.
5817         break;;
5818     * )
5819         break;;
5820   esac
5821 done
5822 test "$ac_cv_exeext" = no && ac_cv_exeext=
5823
5824 else
5825   ac_file=''
5826 fi
5827 if test -z "$ac_file"; then :
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 { as_fn_set_status 77
5836 as_fn_error "C compiler cannot create executables
5837 See \`config.log' for more details." "$LINENO" 5; }; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840 $as_echo "yes" >&6; }
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5843 $as_echo_n "checking for C compiler default output file name... " >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5845 $as_echo "$ac_file" >&6; }
5846 ac_exeext=$ac_cv_exeext
5847
5848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5849 ac_clean_files=$ac_clean_files_save
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5851 $as_echo_n "checking for suffix of executables... " >&6; }
5852 if { { ac_try="$ac_link"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5858 $as_echo "$ac_try_echo"; } >&5
5859   (eval "$ac_link") 2>&5
5860   ac_status=$?
5861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862   test $ac_status = 0; }; then :
5863   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5864 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5865 # work properly (i.e., refer to `conftest.exe'), while it won't with
5866 # `rm'.
5867 for ac_file in conftest.exe conftest conftest.*; do
5868   test -f "$ac_file" || continue
5869   case $ac_file in
5870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5871     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5872           break;;
5873     * ) break;;
5874   esac
5875 done
5876 else
5877   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 as_fn_error "cannot compute suffix of executables: cannot compile and link
5880 See \`config.log' for more details." "$LINENO" 5; }
5881 fi
5882 rm -f conftest conftest$ac_cv_exeext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5884 $as_echo "$ac_cv_exeext" >&6; }
5885
5886 rm -f conftest.$ac_ext
5887 EXEEXT=$ac_cv_exeext
5888 ac_exeext=$EXEEXT
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891 #include <stdio.h>
5892 int
5893 main ()
5894 {
5895 FILE *f = fopen ("conftest.out", "w");
5896  return ferror (f) || fclose (f) != 0;
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 ac_clean_files="$ac_clean_files conftest.out"
5903 # Check that the compiler produces executables we can run.  If not, either
5904 # the compiler is broken, or we cross compile.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5906 $as_echo_n "checking whether we are cross compiling... " >&6; }
5907 if test "$cross_compiling" != yes; then
5908   { { ac_try="$ac_link"
5909 case "(($ac_try" in
5910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911   *) ac_try_echo=$ac_try;;
5912 esac
5913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5914 $as_echo "$ac_try_echo"; } >&5
5915   (eval "$ac_link") 2>&5
5916   ac_status=$?
5917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918   test $ac_status = 0; }
5919   if { ac_try='./conftest$ac_cv_exeext'
5920   { { case "(($ac_try" in
5921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922   *) ac_try_echo=$ac_try;;
5923 esac
5924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5925 $as_echo "$ac_try_echo"; } >&5
5926   (eval "$ac_try") 2>&5
5927   ac_status=$?
5928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929   test $ac_status = 0; }; }; then
5930     cross_compiling=no
5931   else
5932     if test "$cross_compiling" = maybe; then
5933         cross_compiling=yes
5934     else
5935         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 as_fn_error "cannot run C compiled programs.
5938 If you meant to cross compile, use \`--host'.
5939 See \`config.log' for more details." "$LINENO" 5; }
5940     fi
5941   fi
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5944 $as_echo "$cross_compiling" >&6; }
5945
5946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5947 ac_clean_files=$ac_clean_files_save
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5949 $as_echo_n "checking for suffix of object files... " >&6; }
5950 if test "${ac_cv_objext+set}" = set; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h.  */
5955
5956 int
5957 main ()
5958 {
5959
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.o conftest.obj
5965 if { { ac_try="$ac_compile"
5966 case "(($ac_try" in
5967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968   *) ac_try_echo=$ac_try;;
5969 esac
5970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5971 $as_echo "$ac_try_echo"; } >&5
5972   (eval "$ac_compile") 2>&5
5973   ac_status=$?
5974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975   test $ac_status = 0; }; then :
5976   for ac_file in conftest.o conftest.obj conftest.*; do
5977   test -f "$ac_file" || continue;
5978   case $ac_file in
5979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5980     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5981        break;;
5982   esac
5983 done
5984 else
5985   $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5990 as_fn_error "cannot compute suffix of object files: cannot compile
5991 See \`config.log' for more details." "$LINENO" 5; }
5992 fi
5993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5996 $as_echo "$ac_cv_objext" >&6; }
5997 OBJEXT=$ac_cv_objext
5998 ac_objext=$OBJEXT
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h.  */
6006
6007 int
6008 main ()
6009 {
6010 #ifndef __GNUC__
6011        choke me
6012 #endif
6013
6014   ;
6015   return 0;
6016 }
6017 _ACEOF
6018 if ac_fn_c_try_compile "$LINENO"; then :
6019   ac_compiler_gnu=yes
6020 else
6021   ac_compiler_gnu=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6025
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6029 if test $ac_compiler_gnu = yes; then
6030   GCC=yes
6031 else
6032   GCC=
6033 fi
6034 ac_test_CFLAGS=${CFLAGS+set}
6035 ac_save_CFLAGS=$CFLAGS
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6038 if test "${ac_cv_prog_cc_g+set}" = set; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   ac_save_c_werror_flag=$ac_c_werror_flag
6042    ac_c_werror_flag=yes
6043    ac_cv_prog_cc_g=no
6044    CFLAGS="-g"
6045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h.  */
6047
6048 int
6049 main ()
6050 {
6051
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057   ac_cv_prog_cc_g=yes
6058 else
6059   CFLAGS=""
6060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h.  */
6062
6063 int
6064 main ()
6065 {
6066
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072
6073 else
6074   ac_c_werror_flag=$ac_save_c_werror_flag
6075          CFLAGS="-g"
6076          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h.  */
6078
6079 int
6080 main ()
6081 {
6082
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 if ac_fn_c_try_compile "$LINENO"; then :
6088   ac_cv_prog_cc_g=yes
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095    ac_c_werror_flag=$ac_save_c_werror_flag
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6098 $as_echo "$ac_cv_prog_cc_g" >&6; }
6099 if test "$ac_test_CFLAGS" = set; then
6100   CFLAGS=$ac_save_CFLAGS
6101 elif test $ac_cv_prog_cc_g = yes; then
6102   if test "$GCC" = yes; then
6103     CFLAGS="-g -O2"
6104   else
6105     CFLAGS="-g"
6106   fi
6107 else
6108   if test "$GCC" = yes; then
6109     CFLAGS="-O2"
6110   else
6111     CFLAGS=
6112   fi
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   ac_cv_prog_cc_c89=no
6120 ac_save_CC=$CC
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h.  */
6123 #include <stdarg.h>
6124 #include <stdio.h>
6125 #include <sys/types.h>
6126 #include <sys/stat.h>
6127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6128 struct buf { int x; };
6129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6130 static char *e (p, i)
6131      char **p;
6132      int i;
6133 {
6134   return p[i];
6135 }
6136 static char *f (char * (*g) (char **, int), char **p, ...)
6137 {
6138   char *s;
6139   va_list v;
6140   va_start (v,p);
6141   s = g (p, va_arg (v,int));
6142   va_end (v);
6143   return s;
6144 }
6145
6146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6147    function prototypes and stuff, but not '\xHH' hex character constants.
6148    These don't provoke an error unfortunately, instead are silently treated
6149    as 'x'.  The following induces an error, until -std is added to get
6150    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6151    array size at least.  It's necessary to write '\x00'==0 to get something
6152    that's true only with -std.  */
6153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6154
6155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6156    inside strings and character constants.  */
6157 #define FOO(x) 'x'
6158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6159
6160 int test (int i, double x);
6161 struct s1 {int (*f) (int a);};
6162 struct s2 {int (*f) (double a);};
6163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6164 int argc;
6165 char **argv;
6166 int
6167 main ()
6168 {
6169 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6175         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6176 do
6177   CC="$ac_save_CC $ac_arg"
6178   if ac_fn_c_try_compile "$LINENO"; then :
6179   ac_cv_prog_cc_c89=$ac_arg
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext
6182   test "x$ac_cv_prog_cc_c89" != "xno" && break
6183 done
6184 rm -f conftest.$ac_ext
6185 CC=$ac_save_CC
6186
6187 fi
6188 # AC_CACHE_VAL
6189 case "x$ac_cv_prog_cc_c89" in
6190   x)
6191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6192 $as_echo "none needed" >&6; } ;;
6193   xno)
6194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6195 $as_echo "unsupported" >&6; } ;;
6196   *)
6197     CC="$CC $ac_cv_prog_cc_c89"
6198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6200 esac
6201 if test "x$ac_cv_prog_cc_c89" != xno; then :
6202
6203 fi
6204
6205 ac_ext=c
6206 ac_cpp='$CPP $CPPFLAGS'
6207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210
6211 depcc="$CC"   am_compiler_list=
6212
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6214 $as_echo_n "checking dependency style of $depcc... " >&6; }
6215 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6216   $as_echo_n "(cached) " >&6
6217 else
6218   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6219   # We make a subdir and do the tests there.  Otherwise we can end up
6220   # making bogus files that we don't know about and never remove.  For
6221   # instance it was reported that on HP-UX the gcc test will end up
6222   # making a dummy file named `D' -- because `-MD' means `put the output
6223   # in D'.
6224   mkdir conftest.dir
6225   # Copy depcomp to subdir because otherwise we won't find it if we're
6226   # using a relative directory.
6227   cp "$am_depcomp" conftest.dir
6228   cd conftest.dir
6229   # We will build objects and dependencies in a subdirectory because
6230   # it helps to detect inapplicable dependency modes.  For instance
6231   # both Tru64's cc and ICC support -MD to output dependencies as a
6232   # side effect of compilation, but ICC will put the dependencies in
6233   # the current directory while Tru64 will put them in the object
6234   # directory.
6235   mkdir sub
6236
6237   am_cv_CC_dependencies_compiler_type=none
6238   if test "$am_compiler_list" = ""; then
6239      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6240   fi
6241   for depmode in $am_compiler_list; do
6242     # Setup a source with many dependencies, because some compilers
6243     # like to wrap large dependency lists on column 80 (with \), and
6244     # we should not choose a depcomp mode which is confused by this.
6245     #
6246     # We need to recreate these files for each test, as the compiler may
6247     # overwrite some of them when testing with obscure command lines.
6248     # This happens at least with the AIX C compiler.
6249     : > sub/conftest.c
6250     for i in 1 2 3 4 5 6; do
6251       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6252       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6253       # Solaris 8's {/usr,}/bin/sh.
6254       touch sub/conftst$i.h
6255     done
6256     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6257
6258     case $depmode in
6259     nosideeffect)
6260       # after this tag, mechanisms are not by side-effect, so they'll
6261       # only be used when explicitly requested
6262       if test "x$enable_dependency_tracking" = xyes; then
6263         continue
6264       else
6265         break
6266       fi
6267       ;;
6268     none) break ;;
6269     esac
6270     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6271     # mode.  It turns out that the SunPro C++ compiler does not properly
6272     # handle `-M -o', and we need to detect this.
6273     if depmode=$depmode \
6274        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6275        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6276        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6277          >/dev/null 2>conftest.err &&
6278        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6279        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6280        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6281       # icc doesn't choke on unknown options, it will just issue warnings
6282       # or remarks (even with -Werror).  So we grep stderr for any message
6283       # that says an option was ignored or not supported.
6284       # When given -MP, icc 7.0 and 7.1 complain thusly:
6285       #   icc: Command line warning: ignoring option '-M'; no argument required
6286       # The diagnosis changed in icc 8.0:
6287       #   icc: Command line remark: option '-MP' not supported
6288       if (grep 'ignoring option' conftest.err ||
6289           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6290         am_cv_CC_dependencies_compiler_type=$depmode
6291         break
6292       fi
6293     fi
6294   done
6295
6296   cd ..
6297   rm -rf conftest.dir
6298 else
6299   am_cv_CC_dependencies_compiler_type=none
6300 fi
6301
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6304 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6306
6307
6308
6309 if
6310   test "x$enable_dependency_tracking" != xno \
6311   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6312   am__fastdepCC_TRUE=
6313   am__fastdepCC_FALSE='#'
6314 else
6315   am__fastdepCC_TRUE='#'
6316   am__fastdepCC_FALSE=
6317 fi
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6321 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6322 if test "${lt_cv_path_SED+set}" = set; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   # Loop through the user's path and test for sed and gsed.
6326 # Then use that list of sed's as ones to test for truncation.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332   for lt_ac_prog in sed gsed; do
6333     for ac_exec_ext in '' $ac_executable_extensions; do
6334       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6335         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6336       fi
6337     done
6338   done
6339 done
6340 lt_ac_max=0
6341 lt_ac_count=0
6342 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6343 # along with /bin/sed that truncates output.
6344 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6345   test ! -f $lt_ac_sed && continue
6346   cat /dev/null > conftest.in
6347   lt_ac_count=0
6348   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6349   # Check for GNU sed and select it if it is found.
6350   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6351     lt_cv_path_SED=$lt_ac_sed
6352     break
6353   fi
6354   while true; do
6355     cat conftest.in conftest.in >conftest.tmp
6356     mv conftest.tmp conftest.in
6357     cp conftest.in conftest.nl
6358     echo >>conftest.nl
6359     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6360     cmp -s conftest.out conftest.nl || break
6361     # 10000 chars as input seems more than enough
6362     test $lt_ac_count -gt 10 && break
6363     lt_ac_count=`expr $lt_ac_count + 1`
6364     if test $lt_ac_count -gt $lt_ac_max; then
6365       lt_ac_max=$lt_ac_count
6366       lt_cv_path_SED=$lt_ac_sed
6367     fi
6368   done
6369 done
6370
6371 fi
6372
6373 SED=$lt_cv_path_SED
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6375 $as_echo "$SED" >&6; }
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6378 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6379 if test "${ac_cv_path_GREP+set}" = set; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   if test -z "$GREP"; then
6383   ac_path_GREP_found=false
6384   # Loop through the user's path and test for each of PROGNAME-LIST
6385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6387 do
6388   IFS=$as_save_IFS
6389   test -z "$as_dir" && as_dir=.
6390     for ac_prog in grep ggrep; do
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6393       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6394 # Check for GNU ac_path_GREP and select it if it is found.
6395   # Check for GNU $ac_path_GREP
6396 case `"$ac_path_GREP" --version 2>&1` in
6397 *GNU*)
6398   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6399 *)
6400   ac_count=0
6401   $as_echo_n 0123456789 >"conftest.in"
6402   while :
6403   do
6404     cat "conftest.in" "conftest.in" >"conftest.tmp"
6405     mv "conftest.tmp" "conftest.in"
6406     cp "conftest.in" "conftest.nl"
6407     $as_echo 'GREP' >> "conftest.nl"
6408     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6409     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6410     as_fn_arith $ac_count + 1 && ac_count=$as_val
6411     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6412       # Best one so far, save it but keep looking for a better one
6413       ac_cv_path_GREP="$ac_path_GREP"
6414       ac_path_GREP_max=$ac_count
6415     fi
6416     # 10*(2^10) chars as input seems more than enough
6417     test $ac_count -gt 10 && break
6418   done
6419   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6420 esac
6421
6422       $ac_path_GREP_found && break 3
6423     done
6424   done
6425   done
6426 IFS=$as_save_IFS
6427   if test -z "$ac_cv_path_GREP"; then
6428     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6429   fi
6430 else
6431   ac_cv_path_GREP=$GREP
6432 fi
6433
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6436 $as_echo "$ac_cv_path_GREP" >&6; }
6437  GREP="$ac_cv_path_GREP"
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6441 $as_echo_n "checking for egrep... " >&6; }
6442 if test "${ac_cv_path_EGREP+set}" = set; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6446    then ac_cv_path_EGREP="$GREP -E"
6447    else
6448      if test -z "$EGREP"; then
6449   ac_path_EGREP_found=false
6450   # Loop through the user's path and test for each of PROGNAME-LIST
6451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456     for ac_prog in egrep; do
6457     for ac_exec_ext in '' $ac_executable_extensions; do
6458       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6459       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6460 # Check for GNU ac_path_EGREP and select it if it is found.
6461   # Check for GNU $ac_path_EGREP
6462 case `"$ac_path_EGREP" --version 2>&1` in
6463 *GNU*)
6464   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6465 *)
6466   ac_count=0
6467   $as_echo_n 0123456789 >"conftest.in"
6468   while :
6469   do
6470     cat "conftest.in" "conftest.in" >"conftest.tmp"
6471     mv "conftest.tmp" "conftest.in"
6472     cp "conftest.in" "conftest.nl"
6473     $as_echo 'EGREP' >> "conftest.nl"
6474     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6475     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6476     as_fn_arith $ac_count + 1 && ac_count=$as_val
6477     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6478       # Best one so far, save it but keep looking for a better one
6479       ac_cv_path_EGREP="$ac_path_EGREP"
6480       ac_path_EGREP_max=$ac_count
6481     fi
6482     # 10*(2^10) chars as input seems more than enough
6483     test $ac_count -gt 10 && break
6484   done
6485   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6486 esac
6487
6488       $ac_path_EGREP_found && break 3
6489     done
6490   done
6491   done
6492 IFS=$as_save_IFS
6493   if test -z "$ac_cv_path_EGREP"; then
6494     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6495   fi
6496 else
6497   ac_cv_path_EGREP=$EGREP
6498 fi
6499
6500    fi
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6503 $as_echo "$ac_cv_path_EGREP" >&6; }
6504  EGREP="$ac_cv_path_EGREP"
6505
6506
6507
6508 # Check whether --with-gnu-ld was given.
6509 if test "${with_gnu_ld+set}" = set; then :
6510   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6511 else
6512   with_gnu_ld=no
6513 fi
6514
6515 ac_prog=ld
6516 if test "$GCC" = yes; then
6517   # Check if gcc -print-prog-name=ld gives a path.
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6519 $as_echo_n "checking for ld used by $CC... " >&6; }
6520   case $host in
6521   *-*-mingw*)
6522     # gcc leaves a trailing carriage return which upsets mingw
6523     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6524   *)
6525     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6526   esac
6527   case $ac_prog in
6528     # Accept absolute paths.
6529     [\\/]* | ?:[\\/]*)
6530       re_direlt='/[^/][^/]*/\.\./'
6531       # Canonicalize the pathname of ld
6532       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6533       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6534         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6535       done
6536       test -z "$LD" && LD="$ac_prog"
6537       ;;
6538   "")
6539     # If it fails, then pretend we aren't using GCC.
6540     ac_prog=ld
6541     ;;
6542   *)
6543     # If it is relative, then search for the first ld in PATH.
6544     with_gnu_ld=unknown
6545     ;;
6546   esac
6547 elif test "$with_gnu_ld" = yes; then
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6549 $as_echo_n "checking for GNU ld... " >&6; }
6550 else
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6552 $as_echo_n "checking for non-GNU ld... " >&6; }
6553 fi
6554 if test "${lt_cv_path_LD+set}" = set; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -z "$LD"; then
6558   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6559   for ac_dir in $PATH; do
6560     IFS="$lt_save_ifs"
6561     test -z "$ac_dir" && ac_dir=.
6562     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6563       lt_cv_path_LD="$ac_dir/$ac_prog"
6564       # Check to see if the program is GNU ld.  I'd rather use --version,
6565       # but apparently some variants of GNU ld only accept -v.
6566       # Break only if it was the GNU/non-GNU ld that we prefer.
6567       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6568       *GNU* | *'with BFD'*)
6569         test "$with_gnu_ld" != no && break
6570         ;;
6571       *)
6572         test "$with_gnu_ld" != yes && break
6573         ;;
6574       esac
6575     fi
6576   done
6577   IFS="$lt_save_ifs"
6578 else
6579   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6580 fi
6581 fi
6582
6583 LD="$lt_cv_path_LD"
6584 if test -n "$LD"; then
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6586 $as_echo "$LD" >&6; }
6587 else
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6594 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6598 case `$LD -v 2>&1 </dev/null` in
6599 *GNU* | *'with BFD'*)
6600   lt_cv_prog_gnu_ld=yes
6601   ;;
6602 *)
6603   lt_cv_prog_gnu_ld=no
6604   ;;
6605 esac
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6608 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6609 with_gnu_ld=$lt_cv_prog_gnu_ld
6610
6611
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6613 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6614 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   lt_cv_ld_reload_flag='-r'
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6620 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6621 reload_flag=$lt_cv_ld_reload_flag
6622 case $reload_flag in
6623 "" | " "*) ;;
6624 *) reload_flag=" $reload_flag" ;;
6625 esac
6626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6627 case $host_os in
6628   darwin*)
6629     if test "$GCC" = yes; then
6630       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6631     else
6632       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6633     fi
6634     ;;
6635 esac
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6638 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6639 if test "${lt_cv_path_NM+set}" = set; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642   if test -n "$NM"; then
6643   # Let the user override the test.
6644   lt_cv_path_NM="$NM"
6645 else
6646   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6648     IFS="$lt_save_ifs"
6649     test -z "$ac_dir" && ac_dir=.
6650     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6651     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652       # Check to see if the nm accepts a BSD-compat flag.
6653       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654       #   nm: unknown option "B" ignored
6655       # Tru64's nm complains that /dev/null is an invalid object file
6656       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657       */dev/null* | *'Invalid file or object type'*)
6658         lt_cv_path_NM="$tmp_nm -B"
6659         break
6660         ;;
6661       *)
6662         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663         */dev/null*)
6664           lt_cv_path_NM="$tmp_nm -p"
6665           break
6666           ;;
6667         *)
6668           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669           continue # so that we can try to find one that supports BSD flags
6670           ;;
6671         esac
6672       esac
6673     fi
6674   done
6675   IFS="$lt_save_ifs"
6676   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6677 fi
6678 fi
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6680 $as_echo "$lt_cv_path_NM" >&6; }
6681 NM="$lt_cv_path_NM"
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6684 $as_echo_n "checking whether ln -s works... " >&6; }
6685 LN_S=$as_ln_s
6686 if test "$LN_S" = "ln -s"; then
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6688 $as_echo "yes" >&6; }
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6691 $as_echo "no, using $LN_S" >&6; }
6692 fi
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6695 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6696 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   lt_cv_file_magic_cmd='$MAGIC_CMD'
6700 lt_cv_file_magic_test_file=
6701 lt_cv_deplibs_check_method='unknown'
6702 # Need to set the preceding variable on all platforms that support
6703 # interlibrary dependencies.
6704 # 'none' -- dependencies not supported.
6705 # `unknown' -- same as none, but documents that we really don't know.
6706 # 'pass_all' -- all dependencies passed with no checks.
6707 # 'test_compile' -- check by making test program.
6708 # 'file_magic [[regex]]' -- check by looking for files in library path
6709 # which responds to the $file_magic_cmd with a given extended regex.
6710 # If you have `file' or equivalent on your system and you're not sure
6711 # whether `pass_all' will *always* work, you probably want this one.
6712
6713 case $host_os in
6714 aix4* | aix5*)
6715   lt_cv_deplibs_check_method=pass_all
6716   ;;
6717
6718 beos*)
6719   lt_cv_deplibs_check_method=pass_all
6720   ;;
6721
6722 bsdi[45]*)
6723   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6724   lt_cv_file_magic_cmd='/usr/bin/file -L'
6725   lt_cv_file_magic_test_file=/shlib/libc.so
6726   ;;
6727
6728 cygwin*)
6729   # func_win32_libid is a shell function defined in ltmain.sh
6730   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6731   lt_cv_file_magic_cmd='func_win32_libid'
6732   ;;
6733
6734 mingw* | pw32*)
6735   # Base MSYS/MinGW do not provide the 'file' command needed by
6736   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6737   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6738   lt_cv_file_magic_cmd='$OBJDUMP -f'
6739   ;;
6740
6741 darwin* | rhapsody*)
6742   lt_cv_deplibs_check_method=pass_all
6743   ;;
6744
6745 freebsd* | kfreebsd*-gnu | dragonfly*)
6746   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6747     case $host_cpu in
6748     i*86 )
6749       # Not sure whether the presence of OpenBSD here was a mistake.
6750       # Let's accept both of them until this is cleared up.
6751       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6752       lt_cv_file_magic_cmd=/usr/bin/file
6753       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6754       ;;
6755     esac
6756   else
6757     lt_cv_deplibs_check_method=pass_all
6758   fi
6759   ;;
6760
6761 gnu*)
6762   lt_cv_deplibs_check_method=pass_all
6763   ;;
6764
6765 hpux10.20* | hpux11*)
6766   lt_cv_file_magic_cmd=/usr/bin/file
6767   case $host_cpu in
6768   ia64*)
6769     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6770     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6771     ;;
6772   hppa*64*)
6773     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]'
6774     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6775     ;;
6776   *)
6777     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6778     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6779     ;;
6780   esac
6781   ;;
6782
6783 irix5* | irix6* | nonstopux*)
6784   case $LD in
6785   *-32|*"-32 ") libmagic=32-bit;;
6786   *-n32|*"-n32 ") libmagic=N32;;
6787   *-64|*"-64 ") libmagic=64-bit;;
6788   *) libmagic=never-match;;
6789   esac
6790   lt_cv_deplibs_check_method=pass_all
6791   ;;
6792
6793 # This must be Linux ELF.
6794 linux*)
6795   lt_cv_deplibs_check_method=pass_all
6796   ;;
6797
6798 netbsd*)
6799   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6800     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6801   else
6802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6803   fi
6804   ;;
6805
6806 newos6*)
6807   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6808   lt_cv_file_magic_cmd=/usr/bin/file
6809   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6810   ;;
6811
6812 nto-qnx*)
6813   lt_cv_deplibs_check_method=unknown
6814   ;;
6815
6816 openbsd*)
6817   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6818     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6819   else
6820     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6821   fi
6822   ;;
6823
6824 osf3* | osf4* | osf5*)
6825   lt_cv_deplibs_check_method=pass_all
6826   ;;
6827
6828 sco3.2v5*)
6829   lt_cv_deplibs_check_method=pass_all
6830   ;;
6831
6832 solaris*)
6833   lt_cv_deplibs_check_method=pass_all
6834   ;;
6835
6836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6837   case $host_vendor in
6838   motorola)
6839     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]'
6840     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6841     ;;
6842   ncr)
6843     lt_cv_deplibs_check_method=pass_all
6844     ;;
6845   sequent)
6846     lt_cv_file_magic_cmd='/bin/file'
6847     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6848     ;;
6849   sni)
6850     lt_cv_file_magic_cmd='/bin/file'
6851     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6852     lt_cv_file_magic_test_file=/lib/libc.so
6853     ;;
6854   siemens)
6855     lt_cv_deplibs_check_method=pass_all
6856     ;;
6857   esac
6858   ;;
6859
6860 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6861   lt_cv_deplibs_check_method=pass_all
6862   ;;
6863 esac
6864
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6867 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6868 file_magic_cmd=$lt_cv_file_magic_cmd
6869 deplibs_check_method=$lt_cv_deplibs_check_method
6870 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6871
6872
6873
6874
6875 # If no C compiler was specified, use CC.
6876 LTCC=${LTCC-"$CC"}
6877
6878 # Allow CC to be a program name with arguments.
6879 compiler=$CC
6880
6881
6882 # Check whether --enable-libtool-lock was given.
6883 if test "${enable_libtool_lock+set}" = set; then :
6884   enableval=$enable_libtool_lock;
6885 fi
6886
6887 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6888
6889 # Some flags need to be propagated to the compiler or linker for good
6890 # libtool support.
6891 case $host in
6892 ia64-*-hpux*)
6893   # Find out which ABI we are using.
6894   echo 'int i;' > conftest.$ac_ext
6895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896   (eval $ac_compile) 2>&5
6897   ac_status=$?
6898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899   test $ac_status = 0; }; then
6900     case `/usr/bin/file conftest.$ac_objext` in
6901     *ELF-32*)
6902       HPUX_IA64_MODE="32"
6903       ;;
6904     *ELF-64*)
6905       HPUX_IA64_MODE="64"
6906       ;;
6907     esac
6908   fi
6909   rm -rf conftest*
6910   ;;
6911 *-*-irix6*)
6912   # Find out which ABI we are using.
6913   echo '#line 6913 "configure"' > conftest.$ac_ext
6914   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915   (eval $ac_compile) 2>&5
6916   ac_status=$?
6917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918   test $ac_status = 0; }; then
6919    if test "$lt_cv_prog_gnu_ld" = yes; then
6920     case `/usr/bin/file conftest.$ac_objext` in
6921     *32-bit*)
6922       LD="${LD-ld} -melf32bsmip"
6923       ;;
6924     *N32*)
6925       LD="${LD-ld} -melf32bmipn32"
6926       ;;
6927     *64-bit*)
6928       LD="${LD-ld} -melf64bmip"
6929       ;;
6930     esac
6931    else
6932     case `/usr/bin/file conftest.$ac_objext` in
6933     *32-bit*)
6934       LD="${LD-ld} -32"
6935       ;;
6936     *N32*)
6937       LD="${LD-ld} -n32"
6938       ;;
6939     *64-bit*)
6940       LD="${LD-ld} -64"
6941       ;;
6942     esac
6943    fi
6944   fi
6945   rm -rf conftest*
6946   ;;
6947
6948 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6949   # Find out which ABI we are using.
6950   echo 'int i;' > conftest.$ac_ext
6951   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6952   (eval $ac_compile) 2>&5
6953   ac_status=$?
6954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955   test $ac_status = 0; }; then
6956     case `/usr/bin/file conftest.o` in
6957     *32-bit*)
6958       case $host in
6959         x86_64-*linux*)
6960           LD="${LD-ld} -m elf_i386"
6961           ;;
6962         ppc64-*linux*|powerpc64-*linux*)
6963           LD="${LD-ld} -m elf32ppclinux"
6964           ;;
6965         s390x-*linux*)
6966           LD="${LD-ld} -m elf_s390"
6967           ;;
6968         sparc64-*linux*)
6969           LD="${LD-ld} -m elf32_sparc"
6970           ;;
6971       esac
6972       ;;
6973     *64-bit*)
6974       case $host in
6975         x86_64-*linux*)
6976           LD="${LD-ld} -m elf_x86_64"
6977           ;;
6978         ppc*-*linux*|powerpc*-*linux*)
6979           LD="${LD-ld} -m elf64ppc"
6980           ;;
6981         s390*-*linux*)
6982           LD="${LD-ld} -m elf64_s390"
6983           ;;
6984         sparc*-*linux*)
6985           LD="${LD-ld} -m elf64_sparc"
6986           ;;
6987       esac
6988       ;;
6989     esac
6990   fi
6991   rm -rf conftest*
6992   ;;
6993
6994 *-*-sco3.2v5*)
6995   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6996   SAVE_CFLAGS="$CFLAGS"
6997   CFLAGS="$CFLAGS -belf"
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6999 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7000 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   ac_ext=c
7004 ac_cpp='$CPP $CPPFLAGS'
7005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
7009      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h.  */
7011
7012 int
7013 main ()
7014 {
7015
7016   ;
7017   return 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_link "$LINENO"; then :
7021   lt_cv_cc_needs_belf=yes
7022 else
7023   lt_cv_cc_needs_belf=no
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext \
7026     conftest$ac_exeext conftest.$ac_ext
7027      ac_ext=c
7028 ac_cpp='$CPP $CPPFLAGS'
7029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7035 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7036   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7037     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7038     CFLAGS="$SAVE_CFLAGS"
7039   fi
7040   ;;
7041 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7042   if test -n "$ac_tool_prefix"; then
7043   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   if test -n "$DLLTOOL"; then
7051   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 DLLTOOL=$ac_cv_prog_DLLTOOL
7071 if test -n "$DLLTOOL"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7073 $as_echo "$DLLTOOL" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079
7080 fi
7081 if test -z "$ac_cv_prog_DLLTOOL"; then
7082   ac_ct_DLLTOOL=$DLLTOOL
7083   # Extract the first word of "dlltool", so it can be a program name with args.
7084 set dummy dlltool; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -n "$ac_ct_DLLTOOL"; then
7091   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7111 if test -n "$ac_ct_DLLTOOL"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7113 $as_echo "$ac_ct_DLLTOOL" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119   if test "x$ac_ct_DLLTOOL" = x; then
7120     DLLTOOL="false"
7121   else
7122     case $cross_compiling:$ac_tool_warned in
7123 yes:)
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7127 esac
7128     DLLTOOL=$ac_ct_DLLTOOL
7129   fi
7130 else
7131   DLLTOOL="$ac_cv_prog_DLLTOOL"
7132 fi
7133
7134   if test -n "$ac_tool_prefix"; then
7135   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}as; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_AS+set}" = set; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$AS"; then
7143   ac_cv_prog_AS="$AS" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_prog_AS="${ac_tool_prefix}as"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 AS=$ac_cv_prog_AS
7163 if test -n "$AS"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7165 $as_echo "$AS" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_prog_AS"; then
7174   ac_ct_AS=$AS
7175   # Extract the first word of "as", so it can be a program name with args.
7176 set dummy as; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   if test -n "$ac_ct_AS"; then
7183   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     for ac_exec_ext in '' $ac_executable_extensions; do
7191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192     ac_cv_prog_ac_ct_AS="as"
7193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197   done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7203 if test -n "$ac_ct_AS"; then
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7205 $as_echo "$ac_ct_AS" >&6; }
7206 else
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211   if test "x$ac_ct_AS" = x; then
7212     AS="false"
7213   else
7214     case $cross_compiling:$ac_tool_warned in
7215 yes:)
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7219 esac
7220     AS=$ac_ct_AS
7221   fi
7222 else
7223   AS="$ac_cv_prog_AS"
7224 fi
7225
7226   if test -n "$ac_tool_prefix"; then
7227   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$OBJDUMP"; then
7235   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 OBJDUMP=$ac_cv_prog_OBJDUMP
7255 if test -n "$OBJDUMP"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7257 $as_echo "$OBJDUMP" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263
7264 fi
7265 if test -z "$ac_cv_prog_OBJDUMP"; then
7266   ac_ct_OBJDUMP=$OBJDUMP
7267   # Extract the first word of "objdump", so it can be a program name with args.
7268 set dummy objdump; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   if test -n "$ac_ct_OBJDUMP"; then
7275   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282     for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289   done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7295 if test -n "$ac_ct_OBJDUMP"; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7297 $as_echo "$ac_ct_OBJDUMP" >&6; }
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303   if test "x$ac_ct_OBJDUMP" = x; then
7304     OBJDUMP="false"
7305   else
7306     case $cross_compiling:$ac_tool_warned in
7307 yes:)
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7311 esac
7312     OBJDUMP=$ac_ct_OBJDUMP
7313   fi
7314 else
7315   OBJDUMP="$ac_cv_prog_OBJDUMP"
7316 fi
7317
7318   ;;
7319
7320 esac
7321
7322 need_locks="$enable_libtool_lock"
7323
7324
7325 ac_ext=c
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7331 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7332 # On Suns, sometimes $CPP names a directory.
7333 if test -n "$CPP" && test -d "$CPP"; then
7334   CPP=
7335 fi
7336 if test -z "$CPP"; then
7337   if test "${ac_cv_prog_CPP+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340       # Double quotes because CPP needs to be expanded
7341     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7342     do
7343       ac_preproc_ok=false
7344 for ac_c_preproc_warn_flag in '' yes
7345 do
7346   # Use a header file that comes with gcc, so configuring glibc
7347   # with a fresh cross-compiler works.
7348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7349   # <limits.h> exists even on freestanding compilers.
7350   # On the NeXT, cc -E runs the code through the compiler's parser,
7351   # not just through cpp. "Syntax error" is here to catch this case.
7352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354 #ifdef __STDC__
7355 # include <limits.h>
7356 #else
7357 # include <assert.h>
7358 #endif
7359                      Syntax error
7360 _ACEOF
7361 if ac_fn_c_try_cpp "$LINENO"; then :
7362
7363 else
7364   # Broken: fails on valid input.
7365 continue
7366 fi
7367 rm -f conftest.err conftest.$ac_ext
7368
7369   # OK, works on sane cases.  Now check whether nonexistent headers
7370   # can be detected and how.
7371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h.  */
7373 #include <ac_nonexistent.h>
7374 _ACEOF
7375 if ac_fn_c_try_cpp "$LINENO"; then :
7376   # Broken: success on invalid input.
7377 continue
7378 else
7379   # Passes both tests.
7380 ac_preproc_ok=:
7381 break
7382 fi
7383 rm -f conftest.err conftest.$ac_ext
7384
7385 done
7386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7387 rm -f conftest.err conftest.$ac_ext
7388 if $ac_preproc_ok; then :
7389   break
7390 fi
7391
7392     done
7393     ac_cv_prog_CPP=$CPP
7394
7395 fi
7396   CPP=$ac_cv_prog_CPP
7397 else
7398   ac_cv_prog_CPP=$CPP
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7401 $as_echo "$CPP" >&6; }
7402 ac_preproc_ok=false
7403 for ac_c_preproc_warn_flag in '' yes
7404 do
7405   # Use a header file that comes with gcc, so configuring glibc
7406   # with a fresh cross-compiler works.
7407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408   # <limits.h> exists even on freestanding compilers.
7409   # On the NeXT, cc -E runs the code through the compiler's parser,
7410   # not just through cpp. "Syntax error" is here to catch this case.
7411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h.  */
7413 #ifdef __STDC__
7414 # include <limits.h>
7415 #else
7416 # include <assert.h>
7417 #endif
7418                      Syntax error
7419 _ACEOF
7420 if ac_fn_c_try_cpp "$LINENO"; then :
7421
7422 else
7423   # Broken: fails on valid input.
7424 continue
7425 fi
7426 rm -f conftest.err conftest.$ac_ext
7427
7428   # OK, works on sane cases.  Now check whether nonexistent headers
7429   # can be detected and how.
7430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h.  */
7432 #include <ac_nonexistent.h>
7433 _ACEOF
7434 if ac_fn_c_try_cpp "$LINENO"; then :
7435   # Broken: success on invalid input.
7436 continue
7437 else
7438   # Passes both tests.
7439 ac_preproc_ok=:
7440 break
7441 fi
7442 rm -f conftest.err conftest.$ac_ext
7443
7444 done
7445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7446 rm -f conftest.err conftest.$ac_ext
7447 if $ac_preproc_ok; then :
7448
7449 else
7450   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7452 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7453 See \`config.log' for more details." "$LINENO" 5; }
7454 fi
7455
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7464 $as_echo_n "checking for ANSI C header files... " >&6; }
7465 if test "${ac_cv_header_stdc+set}" = set; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h.  */
7470 #include <stdlib.h>
7471 #include <stdarg.h>
7472 #include <string.h>
7473 #include <float.h>
7474
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484   ac_cv_header_stdc=yes
7485 else
7486   ac_cv_header_stdc=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489
7490 if test $ac_cv_header_stdc = yes; then
7491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494 #include <string.h>
7495
7496 _ACEOF
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498   $EGREP "memchr" >/dev/null 2>&1; then :
7499
7500 else
7501   ac_cv_header_stdc=no
7502 fi
7503 rm -f conftest*
7504
7505 fi
7506
7507 if test $ac_cv_header_stdc = yes; then
7508   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 #include <stdlib.h>
7512
7513 _ACEOF
7514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7515   $EGREP "free" >/dev/null 2>&1; then :
7516
7517 else
7518   ac_cv_header_stdc=no
7519 fi
7520 rm -f conftest*
7521
7522 fi
7523
7524 if test $ac_cv_header_stdc = yes; then
7525   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7526   if test "$cross_compiling" = yes; then :
7527   :
7528 else
7529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h.  */
7531 #include <ctype.h>
7532 #include <stdlib.h>
7533 #if ((' ' & 0x0FF) == 0x020)
7534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7536 #else
7537 # define ISLOWER(c) \
7538                    (('a' <= (c) && (c) <= 'i') \
7539                      || ('j' <= (c) && (c) <= 'r') \
7540                      || ('s' <= (c) && (c) <= 'z'))
7541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7542 #endif
7543
7544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7545 int
7546 main ()
7547 {
7548   int i;
7549   for (i = 0; i < 256; i++)
7550     if (XOR (islower (i), ISLOWER (i))
7551         || toupper (i) != TOUPPER (i))
7552       return 2;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_run "$LINENO"; then :
7557
7558 else
7559   ac_cv_header_stdc=no
7560 fi
7561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7562   conftest.$ac_objext conftest.beam conftest.$ac_ext
7563 fi
7564
7565 fi
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7568 $as_echo "$ac_cv_header_stdc" >&6; }
7569 if test $ac_cv_header_stdc = yes; then
7570
7571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7572
7573 fi
7574
7575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7577                   inttypes.h stdint.h unistd.h
7578 do :
7579   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7581 "
7582 eval as_val=\$$as_ac_Header
7583    if test "x$as_val" = x""yes; then :
7584   cat >>confdefs.h <<_ACEOF
7585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 _ACEOF
7587
7588 fi
7589
7590 done
7591
7592
7593 for ac_header in dlfcn.h
7594 do :
7595   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7596 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7597   cat >>confdefs.h <<_ACEOF
7598 #define HAVE_DLFCN_H 1
7599 _ACEOF
7600
7601 fi
7602
7603 done
7604
7605
7606 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7607
7608 # find the maximum length of command line arguments
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7610 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7611 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7612   $as_echo_n "(cached) " >&6
7613 else
7614     i=0
7615   teststring="ABCD"
7616
7617   case $build_os in
7618   msdosdjgpp*)
7619     # On DJGPP, this test can blow up pretty badly due to problems in libc
7620     # (any single argument exceeding 2000 bytes causes a buffer overrun
7621     # during glob expansion).  Even if it were fixed, the result of this
7622     # check would be larger than it should be.
7623     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7624     ;;
7625
7626   gnu*)
7627     # Under GNU Hurd, this test is not required because there is
7628     # no limit to the length of command line arguments.
7629     # Libtool will interpret -1 as no limit whatsoever
7630     lt_cv_sys_max_cmd_len=-1;
7631     ;;
7632
7633   cygwin* | mingw*)
7634     # On Win9x/ME, this test blows up -- it succeeds, but takes
7635     # about 5 minutes as the teststring grows exponentially.
7636     # Worse, since 9x/ME are not pre-emptively multitasking,
7637     # you end up with a "frozen" computer, even though with patience
7638     # the test eventually succeeds (with a max line length of 256k).
7639     # Instead, let's just punt: use the minimum linelength reported by
7640     # all of the supported platforms: 8192 (on NT/2K/XP).
7641     lt_cv_sys_max_cmd_len=8192;
7642     ;;
7643
7644   amigaos*)
7645     # On AmigaOS with pdksh, this test takes hours, literally.
7646     # So we just punt and use a minimum line length of 8192.
7647     lt_cv_sys_max_cmd_len=8192;
7648     ;;
7649
7650   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7651     # This has been around since 386BSD, at least.  Likely further.
7652     if test -x /sbin/sysctl; then
7653       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7654     elif test -x /usr/sbin/sysctl; then
7655       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7656     else
7657       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7658     fi
7659     # And add a safety zone
7660     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7661     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7662     ;;
7663   osf*)
7664     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7665     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7666     # nice to cause kernel panics so lets avoid the loop below.
7667     # First set a reasonable default.
7668     lt_cv_sys_max_cmd_len=16384
7669     #
7670     if test -x /sbin/sysconfig; then
7671       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7672         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7673       esac
7674     fi
7675     ;;
7676   *)
7677     # If test is not a shell built-in, we'll probably end up computing a
7678     # maximum length that is only half of the actual maximum length, but
7679     # we can't tell.
7680     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7681     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7682                = "XX$teststring") >/dev/null 2>&1 &&
7683             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7684             lt_cv_sys_max_cmd_len=$new_result &&
7685             test $i != 17 # 1/2 MB should be enough
7686     do
7687       i=`expr $i + 1`
7688       teststring=$teststring$teststring
7689     done
7690     teststring=
7691     # Add a significant safety factor because C++ compilers can tack on massive
7692     # amounts of additional arguments before passing them to the linker.
7693     # It appears as though 1/2 is a usable value.
7694     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7695     ;;
7696   esac
7697
7698 fi
7699
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7702 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7703 else
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7705 $as_echo "none" >&6; }
7706 fi
7707
7708
7709
7710
7711 # Check for command to grab the raw symbol name followed by C symbol from nm.
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7713 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717
7718 # These are sane defaults that work on at least a few old systems.
7719 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7720
7721 # Character class describing NM global symbol codes.
7722 symcode='[BCDEGRST]'
7723
7724 # Regexp to match symbols that can be accessed directly from C.
7725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7726
7727 # Transform an extracted symbol line into a proper C declaration
7728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7729
7730 # Transform an extracted symbol line into symbol name and symbol address
7731 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'"
7732
7733 # Define system-specific variables.
7734 case $host_os in
7735 aix*)
7736   symcode='[BCDT]'
7737   ;;
7738 cygwin* | mingw* | pw32*)
7739   symcode='[ABCDGISTW]'
7740   ;;
7741 hpux*) # Its linker distinguishes data from code symbols
7742   if test "$host_cpu" = ia64; then
7743     symcode='[ABCDEGRST]'
7744   fi
7745   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7746   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'"
7747   ;;
7748 linux*)
7749   if test "$host_cpu" = ia64; then
7750     symcode='[ABCDGIRSTW]'
7751     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7752     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'"
7753   fi
7754   ;;
7755 irix* | nonstopux*)
7756   symcode='[BCDEGRST]'
7757   ;;
7758 osf*)
7759   symcode='[BCDEGQRST]'
7760   ;;
7761 solaris* | sysv5*)
7762   symcode='[BDRT]'
7763   ;;
7764 sysv4)
7765   symcode='[DFNSTU]'
7766   ;;
7767 esac
7768
7769 # Handle CRLF in mingw tool chain
7770 opt_cr=
7771 case $build_os in
7772 mingw*)
7773   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7774   ;;
7775 esac
7776
7777 # If we're using GNU nm, then use its standard symbol codes.
7778 case `$NM -V 2>&1` in
7779 *GNU* | *'with BFD'*)
7780   symcode='[ABCDGIRSTW]' ;;
7781 esac
7782
7783 # Try without a prefix undercore, then with it.
7784 for ac_symprfx in "" "_"; do
7785
7786   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7787   symxfrm="\\1 $ac_symprfx\\2 \\2"
7788
7789   # Write the raw and C identifiers.
7790   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7791
7792   # Check to see that the pipe works correctly.
7793   pipe_works=no
7794
7795   rm -f conftest*
7796   cat > conftest.$ac_ext <<EOF
7797 #ifdef __cplusplus
7798 extern "C" {
7799 #endif
7800 char nm_test_var;
7801 void nm_test_func(){}
7802 #ifdef __cplusplus
7803 }
7804 #endif
7805 int main(){nm_test_var='a';nm_test_func();return(0);}
7806 EOF
7807
7808   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7809   (eval $ac_compile) 2>&5
7810   ac_status=$?
7811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812   test $ac_status = 0; }; then
7813     # Now try to grab the symbols.
7814     nlist=conftest.nm
7815     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7816   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7817   ac_status=$?
7818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819   test $ac_status = 0; } && test -s "$nlist"; then
7820       # Try sorting and uniquifying the output.
7821       if sort "$nlist" | uniq > "$nlist"T; then
7822         mv -f "$nlist"T "$nlist"
7823       else
7824         rm -f "$nlist"T
7825       fi
7826
7827       # Make sure that we snagged all the symbols we need.
7828       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7829         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7830           cat <<EOF > conftest.$ac_ext
7831 #ifdef __cplusplus
7832 extern "C" {
7833 #endif
7834
7835 EOF
7836           # Now generate the symbol file.
7837           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7838
7839           cat <<EOF >> conftest.$ac_ext
7840 #if defined (__STDC__) && __STDC__
7841 # define lt_ptr_t void *
7842 #else
7843 # define lt_ptr_t char *
7844 # define const
7845 #endif
7846
7847 /* The mapping between symbol names and symbols. */
7848 const struct {
7849   const char *name;
7850   lt_ptr_t address;
7851 }
7852 lt_preloaded_symbols[] =
7853 {
7854 EOF
7855           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7856           cat <<\EOF >> conftest.$ac_ext
7857   {0, (lt_ptr_t) 0}
7858 };
7859
7860 #ifdef __cplusplus
7861 }
7862 #endif
7863 EOF
7864           # Now try linking the two files.
7865           mv conftest.$ac_objext conftstm.$ac_objext
7866           lt_save_LIBS="$LIBS"
7867           lt_save_CFLAGS="$CFLAGS"
7868           LIBS="conftstm.$ac_objext"
7869           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7870           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7871   (eval $ac_link) 2>&5
7872   ac_status=$?
7873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7875             pipe_works=yes
7876           fi
7877           LIBS="$lt_save_LIBS"
7878           CFLAGS="$lt_save_CFLAGS"
7879         else
7880           echo "cannot find nm_test_func in $nlist" >&5
7881         fi
7882       else
7883         echo "cannot find nm_test_var in $nlist" >&5
7884       fi
7885     else
7886       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7887     fi
7888   else
7889     echo "$progname: failed program was:" >&5
7890     cat conftest.$ac_ext >&5
7891   fi
7892   rm -f conftest* conftst*
7893
7894   # Do not use the global_symbol_pipe unless it works.
7895   if test "$pipe_works" = yes; then
7896     break
7897   else
7898     lt_cv_sys_global_symbol_pipe=
7899   fi
7900 done
7901
7902 fi
7903
7904 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7905   lt_cv_sys_global_symbol_to_cdecl=
7906 fi
7907 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7909 $as_echo "failed" >&6; }
7910 else
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7912 $as_echo "ok" >&6; }
7913 fi
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7916 $as_echo_n "checking for objdir... " >&6; }
7917 if test "${lt_cv_objdir+set}" = set; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920   rm -f .libs 2>/dev/null
7921 mkdir .libs 2>/dev/null
7922 if test -d .libs; then
7923   lt_cv_objdir=.libs
7924 else
7925   # MS-DOS does not allow filenames that begin with a dot.
7926   lt_cv_objdir=_libs
7927 fi
7928 rmdir .libs 2>/dev/null
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7931 $as_echo "$lt_cv_objdir" >&6; }
7932 objdir=$lt_cv_objdir
7933
7934
7935
7936
7937
7938 case $host_os in
7939 aix3*)
7940   # AIX sometimes has problems with the GCC collect2 program.  For some
7941   # reason, if we set the COLLECT_NAMES environment variable, the problems
7942   # vanish in a puff of smoke.
7943   if test "X${COLLECT_NAMES+set}" != Xset; then
7944     COLLECT_NAMES=
7945     export COLLECT_NAMES
7946   fi
7947   ;;
7948 esac
7949
7950 # Sed substitution that helps us do robust quoting.  It backslashifies
7951 # metacharacters that are still active within double-quoted strings.
7952 Xsed='sed -e 1s/^X//'
7953 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7954
7955 # Same as above, but do not quote variable references.
7956 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7957
7958 # Sed substitution to delay expansion of an escaped shell variable in a
7959 # double_quote_subst'ed string.
7960 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7961
7962 # Sed substitution to avoid accidental globbing in evaled expressions
7963 no_glob_subst='s/\*/\\\*/g'
7964
7965 # Constants:
7966 rm="rm -f"
7967
7968 # Global variables:
7969 default_ofile=libtool
7970 can_build_shared=yes
7971
7972 # All known linkers require a `.a' archive for static linking (except MSVC,
7973 # which needs '.lib').
7974 libext=a
7975 ltmain="$ac_aux_dir/ltmain.sh"
7976 ofile="$default_ofile"
7977 with_gnu_ld="$lt_cv_prog_gnu_ld"
7978
7979 if test -n "$ac_tool_prefix"; then
7980   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}ar; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_AR+set}" = set; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   if test -n "$AR"; then
7988   ac_cv_prog_AR="$AR" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993   IFS=$as_save_IFS
7994   test -z "$as_dir" && as_dir=.
7995     for ac_exec_ext in '' $ac_executable_extensions; do
7996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997     ac_cv_prog_AR="${ac_tool_prefix}ar"
7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999     break 2
8000   fi
8001 done
8002   done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 AR=$ac_cv_prog_AR
8008 if test -n "$AR"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8010 $as_echo "$AR" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_AR"; then
8019   ac_ct_AR=$AR
8020   # Extract the first word of "ar", so it can be a program name with args.
8021 set dummy ar; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$ac_ct_AR"; then
8028   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037     ac_cv_prog_ac_ct_AR="ar"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8048 if test -n "$ac_ct_AR"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8050 $as_echo "$ac_ct_AR" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056   if test "x$ac_ct_AR" = x; then
8057     AR="false"
8058   else
8059     case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065     AR=$ac_ct_AR
8066   fi
8067 else
8068   AR="$ac_cv_prog_AR"
8069 fi
8070
8071 if test -n "$ac_tool_prefix"; then
8072   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   if test -n "$RANLIB"; then
8080   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087     for ac_exec_ext in '' $ac_executable_extensions; do
8088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094   done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 RANLIB=$ac_cv_prog_RANLIB
8100 if test -n "$RANLIB"; then
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8102 $as_echo "$RANLIB" >&6; }
8103 else
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108
8109 fi
8110 if test -z "$ac_cv_prog_RANLIB"; then
8111   ac_ct_RANLIB=$RANLIB
8112   # Extract the first word of "ranlib", so it can be a program name with args.
8113 set dummy ranlib; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   if test -n "$ac_ct_RANLIB"; then
8120   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127     for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_prog_ac_ct_RANLIB="ranlib"
8130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134   done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8140 if test -n "$ac_ct_RANLIB"; then
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8142 $as_echo "$ac_ct_RANLIB" >&6; }
8143 else
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148   if test "x$ac_ct_RANLIB" = x; then
8149     RANLIB=":"
8150   else
8151     case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157     RANLIB=$ac_ct_RANLIB
8158   fi
8159 else
8160   RANLIB="$ac_cv_prog_RANLIB"
8161 fi
8162
8163 if test -n "$ac_tool_prefix"; then
8164   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}strip; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_STRIP+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   if test -n "$STRIP"; then
8172   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 STRIP=$ac_cv_prog_STRIP
8192 if test -n "$STRIP"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8194 $as_echo "$STRIP" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_STRIP"; then
8203   ac_ct_STRIP=$STRIP
8204   # Extract the first word of "strip", so it can be a program name with args.
8205 set dummy strip; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$ac_ct_STRIP"; then
8212   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_ac_ct_STRIP="strip"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8232 if test -n "$ac_ct_STRIP"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8234 $as_echo "$ac_ct_STRIP" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240   if test "x$ac_ct_STRIP" = x; then
8241     STRIP=":"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249     STRIP=$ac_ct_STRIP
8250   fi
8251 else
8252   STRIP="$ac_cv_prog_STRIP"
8253 fi
8254
8255
8256 old_CC="$CC"
8257 old_CFLAGS="$CFLAGS"
8258
8259 # Set sane defaults for various variables
8260 test -z "$AR" && AR=ar
8261 test -z "$AR_FLAGS" && AR_FLAGS=cru
8262 test -z "$AS" && AS=as
8263 test -z "$CC" && CC=cc
8264 test -z "$LTCC" && LTCC=$CC
8265 test -z "$DLLTOOL" && DLLTOOL=dlltool
8266 test -z "$LD" && LD=ld
8267 test -z "$LN_S" && LN_S="ln -s"
8268 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8269 test -z "$NM" && NM=nm
8270 test -z "$SED" && SED=sed
8271 test -z "$OBJDUMP" && OBJDUMP=objdump
8272 test -z "$RANLIB" && RANLIB=:
8273 test -z "$STRIP" && STRIP=:
8274 test -z "$ac_objext" && ac_objext=o
8275
8276 # Determine commands to create old-style static archives.
8277 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8278 old_postinstall_cmds='chmod 644 $oldlib'
8279 old_postuninstall_cmds=
8280
8281 if test -n "$RANLIB"; then
8282   case $host_os in
8283   openbsd*)
8284     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8285     ;;
8286   *)
8287     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8288     ;;
8289   esac
8290   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8291 fi
8292
8293 for cc_temp in $compiler""; do
8294   case $cc_temp in
8295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8297     \-*) ;;
8298     *) break;;
8299   esac
8300 done
8301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8302
8303
8304 # Only perform the check for file, if the check method requires it
8305 case $deplibs_check_method in
8306 file_magic*)
8307   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8309 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   case $MAGIC_CMD in
8314 [\\/*] |  ?:[\\/]*)
8315   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8316   ;;
8317 *)
8318   lt_save_MAGIC_CMD="$MAGIC_CMD"
8319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8320   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8321   for ac_dir in $ac_dummy; do
8322     IFS="$lt_save_ifs"
8323     test -z "$ac_dir" && ac_dir=.
8324     if test -f $ac_dir/${ac_tool_prefix}file; then
8325       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8326       if test -n "$file_magic_test_file"; then
8327         case $deplibs_check_method in
8328         "file_magic "*)
8329           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8330           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8332             $EGREP "$file_magic_regex" > /dev/null; then
8333             :
8334           else
8335             cat <<EOF 1>&2
8336
8337 *** Warning: the command libtool uses to detect shared libraries,
8338 *** $file_magic_cmd, produces output that libtool cannot recognize.
8339 *** The result is that libtool may fail to recognize shared libraries
8340 *** as such.  This will affect the creation of libtool libraries that
8341 *** depend on shared libraries, but programs linked with such libtool
8342 *** libraries will work regardless of this problem.  Nevertheless, you
8343 *** may want to report the problem to your system manager and/or to
8344 *** bug-libtool@gnu.org
8345
8346 EOF
8347           fi ;;
8348         esac
8349       fi
8350       break
8351     fi
8352   done
8353   IFS="$lt_save_ifs"
8354   MAGIC_CMD="$lt_save_MAGIC_CMD"
8355   ;;
8356 esac
8357 fi
8358
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if test -n "$MAGIC_CMD"; then
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8362 $as_echo "$MAGIC_CMD" >&6; }
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368 if test -z "$lt_cv_path_MAGIC_CMD"; then
8369   if test -n "$ac_tool_prefix"; then
8370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8371 $as_echo_n "checking for file... " >&6; }
8372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8373   $as_echo_n "(cached) " >&6
8374 else
8375   case $MAGIC_CMD in
8376 [\\/*] |  ?:[\\/]*)
8377   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8378   ;;
8379 *)
8380   lt_save_MAGIC_CMD="$MAGIC_CMD"
8381   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8382   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8383   for ac_dir in $ac_dummy; do
8384     IFS="$lt_save_ifs"
8385     test -z "$ac_dir" && ac_dir=.
8386     if test -f $ac_dir/file; then
8387       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8388       if test -n "$file_magic_test_file"; then
8389         case $deplibs_check_method in
8390         "file_magic "*)
8391           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8392           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8393           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8394             $EGREP "$file_magic_regex" > /dev/null; then
8395             :
8396           else
8397             cat <<EOF 1>&2
8398
8399 *** Warning: the command libtool uses to detect shared libraries,
8400 *** $file_magic_cmd, produces output that libtool cannot recognize.
8401 *** The result is that libtool may fail to recognize shared libraries
8402 *** as such.  This will affect the creation of libtool libraries that
8403 *** depend on shared libraries, but programs linked with such libtool
8404 *** libraries will work regardless of this problem.  Nevertheless, you
8405 *** may want to report the problem to your system manager and/or to
8406 *** bug-libtool@gnu.org
8407
8408 EOF
8409           fi ;;
8410         esac
8411       fi
8412       break
8413     fi
8414   done
8415   IFS="$lt_save_ifs"
8416   MAGIC_CMD="$lt_save_MAGIC_CMD"
8417   ;;
8418 esac
8419 fi
8420
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if test -n "$MAGIC_CMD"; then
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8424 $as_echo "$MAGIC_CMD" >&6; }
8425 else
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429
8430   else
8431     MAGIC_CMD=:
8432   fi
8433 fi
8434
8435   fi
8436   ;;
8437 esac
8438
8439 enable_dlopen=yes
8440 enable_win32_dll=yes
8441
8442 # Check whether --enable-libtool-lock was given.
8443 if test "${enable_libtool_lock+set}" = set; then :
8444   enableval=$enable_libtool_lock;
8445 fi
8446
8447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8448
8449
8450 # Check whether --with-pic was given.
8451 if test "${with_pic+set}" = set; then :
8452   withval=$with_pic; pic_mode="$withval"
8453 else
8454   pic_mode=default
8455 fi
8456
8457 test -z "$pic_mode" && pic_mode=default
8458
8459 # Use C for the default configuration in the libtool script
8460 tagname=
8461 lt_save_CC="$CC"
8462 ac_ext=c
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8467
8468
8469 # Source file extension for C test sources.
8470 ac_ext=c
8471
8472 # Object file extension for compiled C test sources.
8473 objext=o
8474 objext=$objext
8475
8476 # Code to be used in simple compile tests
8477 lt_simple_compile_test_code="int some_variable = 0;\n"
8478
8479 # Code to be used in simple link tests
8480 lt_simple_link_test_code='int main(){return(0);}\n'
8481
8482
8483 # If no C compiler was specified, use CC.
8484 LTCC=${LTCC-"$CC"}
8485
8486 # Allow CC to be a program name with arguments.
8487 compiler=$CC
8488
8489
8490 # save warnings/boilerplate of simple test code
8491 ac_outfile=conftest.$ac_objext
8492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8494 _lt_compiler_boilerplate=`cat conftest.err`
8495 $rm conftest*
8496
8497 ac_outfile=conftest.$ac_objext
8498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8500 _lt_linker_boilerplate=`cat conftest.err`
8501 $rm conftest*
8502
8503
8504 #
8505 # Check for any special shared library compilation flags.
8506 #
8507 lt_prog_cc_shlib=
8508 if test "$GCC" = no; then
8509   case $host_os in
8510   sco3.2v5*)
8511     lt_prog_cc_shlib='-belf'
8512     ;;
8513   esac
8514 fi
8515 if test -n "$lt_prog_cc_shlib"; then
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8517 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8518   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8519   else
8520     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8521 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8522     lt_cv_prog_cc_can_build_shared=no
8523   fi
8524 fi
8525
8526
8527 #
8528 # Check to make sure the static flag actually works.
8529 #
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8531 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8532 if test "${lt_prog_compiler_static_works+set}" = set; then :
8533   $as_echo_n "(cached) " >&6
8534 else
8535   lt_prog_compiler_static_works=no
8536    save_LDFLAGS="$LDFLAGS"
8537    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8538    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8539    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8540      # The linker can only warn and ignore the option if not recognized
8541      # So say no if there are warnings
8542      if test -s conftest.err; then
8543        # Append any errors to the config.log.
8544        cat conftest.err 1>&5
8545        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8546        $SED '/^$/d' conftest.err >conftest.er2
8547        if diff conftest.exp conftest.er2 >/dev/null; then
8548          lt_prog_compiler_static_works=yes
8549        fi
8550      else
8551        lt_prog_compiler_static_works=yes
8552      fi
8553    fi
8554    $rm conftest*
8555    LDFLAGS="$save_LDFLAGS"
8556
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8559 $as_echo "$lt_prog_compiler_static_works" >&6; }
8560
8561 if test x"$lt_prog_compiler_static_works" = xyes; then
8562     :
8563 else
8564     lt_prog_compiler_static=
8565 fi
8566
8567
8568
8569
8570 lt_prog_compiler_no_builtin_flag=
8571
8572 if test "$GCC" = yes; then
8573   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8574
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8578 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   lt_cv_prog_compiler_rtti_exceptions=no
8582   ac_outfile=conftest.$ac_objext
8583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8584    lt_compiler_flag="-fno-rtti -fno-exceptions"
8585    # Insert the option either (1) after the last *FLAGS variable, or
8586    # (2) before a word containing "conftest.", or (3) at the end.
8587    # Note that $ac_compile itself does not contain backslashes and begins
8588    # with a dollar sign (not a hyphen), so the echo should work correctly.
8589    # The option is referenced via a variable to avoid confusing sed.
8590    lt_compile=`echo "$ac_compile" | $SED \
8591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593    -e 's:$: $lt_compiler_flag:'`
8594    (eval echo "\"\$as_me:8594: $lt_compile\"" >&5)
8595    (eval "$lt_compile" 2>conftest.err)
8596    ac_status=$?
8597    cat conftest.err >&5
8598    echo "$as_me:8598: \$? = $ac_status" >&5
8599    if (exit $ac_status) && test -s "$ac_outfile"; then
8600      # The compiler can only warn and ignore the option if not recognized
8601      # So say no if there are warnings other than the usual output.
8602      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8603      $SED '/^$/d' conftest.err >conftest.er2
8604      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8605        lt_cv_prog_compiler_rtti_exceptions=yes
8606      fi
8607    fi
8608    $rm conftest*
8609
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8613
8614 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8615     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8616 else
8617     :
8618 fi
8619
8620 fi
8621
8622 lt_prog_compiler_wl=
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_static=
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8627 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8628
8629   if test "$GCC" = yes; then
8630     lt_prog_compiler_wl='-Wl,'
8631     lt_prog_compiler_static='-static'
8632
8633     case $host_os in
8634       aix*)
8635       # All AIX code is PIC.
8636       if test "$host_cpu" = ia64; then
8637         # AIX 5 now supports IA64 processor
8638         lt_prog_compiler_static='-Bstatic'
8639       fi
8640       ;;
8641
8642     amigaos*)
8643       # FIXME: we need at least 68020 code to build shared libraries, but
8644       # adding the `-m68020' flag to GCC prevents building anything better,
8645       # like `-m68040'.
8646       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8647       ;;
8648
8649     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650       # PIC is the default for these OSes.
8651       ;;
8652
8653     mingw* | pw32* | os2*)
8654       # This hack is so that the source file can tell whether it is being
8655       # built for inclusion in a dll (and should export symbols for example).
8656       lt_prog_compiler_pic='-DDLL_EXPORT'
8657       ;;
8658
8659     darwin* | rhapsody*)
8660       # PIC is the default on this platform
8661       # Common symbols not allowed in MH_DYLIB files
8662       lt_prog_compiler_pic='-fno-common'
8663       ;;
8664
8665     msdosdjgpp*)
8666       # Just because we use GCC doesn't mean we suddenly get shared libraries
8667       # on systems that don't support them.
8668       lt_prog_compiler_can_build_shared=no
8669       enable_shared=no
8670       ;;
8671
8672     sysv4*MP*)
8673       if test -d /usr/nec; then
8674         lt_prog_compiler_pic=-Kconform_pic
8675       fi
8676       ;;
8677
8678     hpux*)
8679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8680       # not for PA HP-UX.
8681       case $host_cpu in
8682       hppa*64*|ia64*)
8683         # +Z the default
8684         ;;
8685       *)
8686         lt_prog_compiler_pic='-fPIC'
8687         ;;
8688       esac
8689       ;;
8690
8691     *)
8692       lt_prog_compiler_pic='-fPIC'
8693       ;;
8694     esac
8695   else
8696     # PORTME Check for flag to pass linker flags through the system compiler.
8697     case $host_os in
8698     aix*)
8699       lt_prog_compiler_wl='-Wl,'
8700       if test "$host_cpu" = ia64; then
8701         # AIX 5 now supports IA64 processor
8702         lt_prog_compiler_static='-Bstatic'
8703       else
8704         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8705       fi
8706       ;;
8707       darwin*)
8708         # PIC is the default on this platform
8709         # Common symbols not allowed in MH_DYLIB files
8710        case $cc_basename in
8711          xlc*)
8712          lt_prog_compiler_pic='-qnocommon'
8713          lt_prog_compiler_wl='-Wl,'
8714          ;;
8715        esac
8716        ;;
8717
8718     mingw* | pw32* | os2*)
8719       # This hack is so that the source file can tell whether it is being
8720       # built for inclusion in a dll (and should export symbols for example).
8721       lt_prog_compiler_pic='-DDLL_EXPORT'
8722       ;;
8723
8724     hpux9* | hpux10* | hpux11*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727       # not for PA HP-UX.
8728       case $host_cpu in
8729       hppa*64*|ia64*)
8730         # +Z the default
8731         ;;
8732       *)
8733         lt_prog_compiler_pic='+Z'
8734         ;;
8735       esac
8736       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737       lt_prog_compiler_static='${wl}-a ${wl}archive'
8738       ;;
8739
8740     irix5* | irix6* | nonstopux*)
8741       lt_prog_compiler_wl='-Wl,'
8742       # PIC (with -KPIC) is the default.
8743       lt_prog_compiler_static='-non_shared'
8744       ;;
8745
8746     newsos6)
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     linux*)
8752       case $cc_basename in
8753       icc* | ecc*)
8754         lt_prog_compiler_wl='-Wl,'
8755         lt_prog_compiler_pic='-KPIC'
8756         lt_prog_compiler_static='-static'
8757         ;;
8758       pgcc* | pgf77* | pgf90* | pgf95*)
8759         # Portland Group compilers (*not* the Pentium gcc compiler,
8760         # which looks to be a dead project)
8761         lt_prog_compiler_wl='-Wl,'
8762         lt_prog_compiler_pic='-fpic'
8763         lt_prog_compiler_static='-Bstatic'
8764         ;;
8765       ccc*)
8766         lt_prog_compiler_wl='-Wl,'
8767         # All Alpha code is PIC.
8768         lt_prog_compiler_static='-non_shared'
8769         ;;
8770       esac
8771       ;;
8772
8773     osf3* | osf4* | osf5*)
8774       lt_prog_compiler_wl='-Wl,'
8775       # All OSF/1 code is PIC.
8776       lt_prog_compiler_static='-non_shared'
8777       ;;
8778
8779     sco3.2v5*)
8780       lt_prog_compiler_pic='-Kpic'
8781       lt_prog_compiler_static='-dn'
8782       ;;
8783
8784     solaris*)
8785       lt_prog_compiler_pic='-KPIC'
8786       lt_prog_compiler_static='-Bstatic'
8787       case $cc_basename in
8788       f77* | f90* | f95*)
8789         lt_prog_compiler_wl='-Qoption ld ';;
8790       *)
8791         lt_prog_compiler_wl='-Wl,';;
8792       esac
8793       ;;
8794
8795     sunos4*)
8796       lt_prog_compiler_wl='-Qoption ld '
8797       lt_prog_compiler_pic='-PIC'
8798       lt_prog_compiler_static='-Bstatic'
8799       ;;
8800
8801     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8802       lt_prog_compiler_wl='-Wl,'
8803       lt_prog_compiler_pic='-KPIC'
8804       lt_prog_compiler_static='-Bstatic'
8805       ;;
8806
8807     sysv4*MP*)
8808       if test -d /usr/nec ;then
8809         lt_prog_compiler_pic='-Kconform_pic'
8810         lt_prog_compiler_static='-Bstatic'
8811       fi
8812       ;;
8813
8814     unicos*)
8815       lt_prog_compiler_wl='-Wl,'
8816       lt_prog_compiler_can_build_shared=no
8817       ;;
8818
8819     uts4*)
8820       lt_prog_compiler_pic='-pic'
8821       lt_prog_compiler_static='-Bstatic'
8822       ;;
8823
8824     *)
8825       lt_prog_compiler_can_build_shared=no
8826       ;;
8827     esac
8828   fi
8829
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8831 $as_echo "$lt_prog_compiler_pic" >&6; }
8832
8833 #
8834 # Check to make sure the PIC flag actually works.
8835 #
8836 if test -n "$lt_prog_compiler_pic"; then
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8840 if test "${lt_prog_compiler_pic_works+set}" = set; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   lt_prog_compiler_pic_works=no
8844   ac_outfile=conftest.$ac_objext
8845    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8846    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847    # Insert the option either (1) after the last *FLAGS variable, or
8848    # (2) before a word containing "conftest.", or (3) at the end.
8849    # Note that $ac_compile itself does not contain backslashes and begins
8850    # with a dollar sign (not a hyphen), so the echo should work correctly.
8851    # The option is referenced via a variable to avoid confusing sed.
8852    lt_compile=`echo "$ac_compile" | $SED \
8853    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855    -e 's:$: $lt_compiler_flag:'`
8856    (eval echo "\"\$as_me:8856: $lt_compile\"" >&5)
8857    (eval "$lt_compile" 2>conftest.err)
8858    ac_status=$?
8859    cat conftest.err >&5
8860    echo "$as_me:8860: \$? = $ac_status" >&5
8861    if (exit $ac_status) && test -s "$ac_outfile"; then
8862      # The compiler can only warn and ignore the option if not recognized
8863      # So say no if there are warnings other than the usual output.
8864      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8865      $SED '/^$/d' conftest.err >conftest.er2
8866      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8867        lt_prog_compiler_pic_works=yes
8868      fi
8869    fi
8870    $rm conftest*
8871
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8874 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8875
8876 if test x"$lt_prog_compiler_pic_works" = xyes; then
8877     case $lt_prog_compiler_pic in
8878      "" | " "*) ;;
8879      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8880      esac
8881 else
8882     lt_prog_compiler_pic=
8883      lt_prog_compiler_can_build_shared=no
8884 fi
8885
8886 fi
8887 case $host_os in
8888   # For platforms which do not support PIC, -DPIC is meaningless:
8889   *djgpp*)
8890     lt_prog_compiler_pic=
8891     ;;
8892   *)
8893     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8894     ;;
8895 esac
8896
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   lt_cv_prog_compiler_c_o=no
8903    $rm -r conftest 2>/dev/null
8904    mkdir conftest
8905    cd conftest
8906    mkdir out
8907    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
8909    lt_compiler_flag="-o out/conftest2.$ac_objext"
8910    # Insert the option either (1) after the last *FLAGS variable, or
8911    # (2) before a word containing "conftest.", or (3) at the end.
8912    # Note that $ac_compile itself does not contain backslashes and begins
8913    # with a dollar sign (not a hyphen), so the echo should work correctly.
8914    lt_compile=`echo "$ac_compile" | $SED \
8915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917    -e 's:$: $lt_compiler_flag:'`
8918    (eval echo "\"\$as_me:8918: $lt_compile\"" >&5)
8919    (eval "$lt_compile" 2>out/conftest.err)
8920    ac_status=$?
8921    cat out/conftest.err >&5
8922    echo "$as_me:8922: \$? = $ac_status" >&5
8923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8924    then
8925      # The compiler can only warn and ignore the option if not recognized
8926      # So say no if there are warnings
8927      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8928      $SED '/^$/d' out/conftest.err >out/conftest.er2
8929      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930        lt_cv_prog_compiler_c_o=yes
8931      fi
8932    fi
8933    chmod u+w . 2>&5
8934    $rm conftest*
8935    # SGI C++ compiler will create directory out/ii_files/ for
8936    # template instantiation
8937    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8938    $rm out/* && rmdir out
8939    cd ..
8940    rmdir conftest
8941    $rm conftest*
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8946
8947
8948 hard_links="nottested"
8949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950   # do not overwrite the value of need_locks provided by the user
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952 $as_echo_n "checking if we can lock with hard links... " >&6; }
8953   hard_links=yes
8954   $rm conftest*
8955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956   touch conftest.a
8957   ln conftest.a conftest.b 2>&5 || hard_links=no
8958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960 $as_echo "$hard_links" >&6; }
8961   if test "$hard_links" = no; then
8962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8964     need_locks=warn
8965   fi
8966 else
8967   need_locks=no
8968 fi
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8972
8973   runpath_var=
8974   allow_undefined_flag=
8975   enable_shared_with_static_runtimes=no
8976   archive_cmds=
8977   archive_expsym_cmds=
8978   old_archive_From_new_cmds=
8979   old_archive_from_expsyms_cmds=
8980   export_dynamic_flag_spec=
8981   whole_archive_flag_spec=
8982   thread_safe_flag_spec=
8983   hardcode_libdir_flag_spec=
8984   hardcode_libdir_flag_spec_ld=
8985   hardcode_libdir_separator=
8986   hardcode_direct=no
8987   hardcode_minus_L=no
8988   hardcode_shlibpath_var=unsupported
8989   link_all_deplibs=unknown
8990   hardcode_automatic=no
8991   module_cmds=
8992   module_expsym_cmds=
8993   always_export_symbols=no
8994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8995   # include_expsyms should be a list of space-separated symbols to be *always*
8996   # included in the symbol list
8997   include_expsyms=
8998   # exclude_expsyms can be an extended regexp of symbols to exclude
8999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001   # as well as any symbol that contains `d'.
9002   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004   # platforms (ab)use it in PIC code, but their linkers get confused if
9005   # the symbol is explicitly referenced.  Since portable code cannot
9006   # rely on this symbol name, it's probably fine to never include it in
9007   # preloaded symbol tables.
9008   extract_expsyms_cmds=
9009   # Just being paranoid about ensuring that cc_basename is set.
9010   for cc_temp in $compiler""; do
9011   case $cc_temp in
9012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9014     \-*) ;;
9015     *) break;;
9016   esac
9017 done
9018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9019
9020   case $host_os in
9021   cygwin* | mingw* | pw32*)
9022     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023     # When not using gcc, we currently assume that we are using
9024     # Microsoft Visual C++.
9025     if test "$GCC" != yes; then
9026       with_gnu_ld=no
9027     fi
9028     ;;
9029   openbsd*)
9030     with_gnu_ld=no
9031     ;;
9032   esac
9033
9034   ld_shlibs=yes
9035   if test "$with_gnu_ld" = yes; then
9036     # If archive_cmds runs LD, not CC, wlarc should be empty
9037     wlarc='${wl}'
9038
9039     # Set some defaults for GNU ld with shared library support. These
9040     # are reset later if shared libraries are not supported. Putting them
9041     # here allows them to be overridden if necessary.
9042     runpath_var=LD_RUN_PATH
9043     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9044     export_dynamic_flag_spec='${wl}--export-dynamic'
9045     # ancient GNU ld didn't support --whole-archive et. al.
9046     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9047         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9048       else
9049         whole_archive_flag_spec=
9050     fi
9051     supports_anon_versioning=no
9052     case `$LD -v 2>/dev/null` in
9053       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9054       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9055       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9056       *\ 2.11.*) ;; # other 2.11 versions
9057       *) supports_anon_versioning=yes ;;
9058     esac
9059
9060     # See if GNU ld supports shared libraries.
9061     case $host_os in
9062     aix3* | aix4* | aix5*)
9063       # On AIX/PPC, the GNU linker is very broken
9064       if test "$host_cpu" != ia64; then
9065         ld_shlibs=no
9066         cat <<EOF 1>&2
9067
9068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9069 *** to be unable to reliably create shared libraries on AIX.
9070 *** Therefore, libtool is disabling shared libraries support.  If you
9071 *** really care for shared libraries, you may want to modify your PATH
9072 *** so that a non-GNU linker is found, and then restart.
9073
9074 EOF
9075       fi
9076       ;;
9077
9078     amigaos*)
9079       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)'
9080       hardcode_libdir_flag_spec='-L$libdir'
9081       hardcode_minus_L=yes
9082
9083       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9084       # that the semantics of dynamic libraries on AmigaOS, at least up
9085       # to version 4, is to share data among multiple programs linked
9086       # with the same dynamic library.  Since this doesn't match the
9087       # behavior of shared libraries on other platforms, we can't use
9088       # them.
9089       ld_shlibs=no
9090       ;;
9091
9092     beos*)
9093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9094         allow_undefined_flag=unsupported
9095         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9096         # support --undefined.  This deserves some investigation.  FIXME
9097         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098       else
9099         ld_shlibs=no
9100       fi
9101       ;;
9102
9103     cygwin* | mingw* | pw32*)
9104       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9105       # as there is no search path for DLLs.
9106       hardcode_libdir_flag_spec='-L$libdir'
9107       allow_undefined_flag=unsupported
9108       always_export_symbols=no
9109       enable_shared_with_static_runtimes=yes
9110       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9111
9112       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9114         # If the export-symbols file already is a .def file (1st line
9115         # is EXPORTS), use it as is; otherwise, prepend...
9116         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9117           cp $export_symbols $output_objdir/$soname.def;
9118         else
9119           echo EXPORTS > $output_objdir/$soname.def;
9120           cat $export_symbols >> $output_objdir/$soname.def;
9121         fi~
9122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9123       else
9124         ld_shlibs=no
9125       fi
9126       ;;
9127
9128     linux*)
9129       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9130         tmp_addflag=
9131         case $cc_basename,$host_cpu in
9132         pgcc*)                          # Portland Group C compiler
9133           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'
9134           tmp_addflag=' $pic_flag'
9135           ;;
9136         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9137           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'
9138           tmp_addflag=' $pic_flag -Mnomain' ;;
9139         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9140           tmp_addflag=' -i_dynamic' ;;
9141         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9142           tmp_addflag=' -i_dynamic -nofor_main' ;;
9143         ifc* | ifort*)                  # Intel Fortran compiler
9144           tmp_addflag=' -nofor_main' ;;
9145         esac
9146         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147
9148         if test $supports_anon_versioning = yes; then
9149           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9150   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9151   $echo "local: *; };" >> $output_objdir/$libname.ver~
9152           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9153         fi
9154       else
9155         ld_shlibs=no
9156       fi
9157       ;;
9158
9159     netbsd*)
9160       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9161         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9162         wlarc=
9163       else
9164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9166       fi
9167       ;;
9168
9169     solaris* | sysv5*)
9170       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9171         ld_shlibs=no
9172         cat <<EOF 1>&2
9173
9174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9175 *** create shared libraries on Solaris systems.  Therefore, libtool
9176 *** is disabling shared libraries support.  We urge you to upgrade GNU
9177 *** binutils to release 2.9.1 or newer.  Another option is to modify
9178 *** your PATH or compiler configuration so that the native linker is
9179 *** used, and then restart.
9180
9181 EOF
9182       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9183         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9185       else
9186         ld_shlibs=no
9187       fi
9188       ;;
9189
9190     sunos4*)
9191       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192       wlarc=
9193       hardcode_direct=yes
9194       hardcode_shlibpath_var=no
9195       ;;
9196
9197     *)
9198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9199         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9201       else
9202         ld_shlibs=no
9203       fi
9204       ;;
9205     esac
9206
9207     if test "$ld_shlibs" = no; then
9208       runpath_var=
9209       hardcode_libdir_flag_spec=
9210       export_dynamic_flag_spec=
9211       whole_archive_flag_spec=
9212     fi
9213   else
9214     # PORTME fill in a description of your system's linker (not GNU ld)
9215     case $host_os in
9216     aix3*)
9217       allow_undefined_flag=unsupported
9218       always_export_symbols=yes
9219       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'
9220       # Note: this linker hardcodes the directories in LIBPATH if there
9221       # are no directories specified by -L.
9222       hardcode_minus_L=yes
9223       if test "$GCC" = yes && test -z "$link_static_flag"; then
9224         # Neither direct hardcoding nor static linking is supported with a
9225         # broken collect2.
9226         hardcode_direct=unsupported
9227       fi
9228       ;;
9229
9230     aix4* | aix5*)
9231       if test "$host_cpu" = ia64; then
9232         # On IA64, the linker does run time linking by default, so we don't
9233         # have to do anything special.
9234         aix_use_runtimelinking=no
9235         exp_sym_flag='-Bexport'
9236         no_entry_flag=""
9237       else
9238         # If we're using GNU nm, then we don't want the "-C" option.
9239         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9240         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9241           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'
9242         else
9243           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'
9244         fi
9245         aix_use_runtimelinking=no
9246
9247         # Test if we are trying to use run time linking or normal
9248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249         # need to do runtime linking.
9250         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9251           for ld_flag in $LDFLAGS; do
9252           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253             aix_use_runtimelinking=yes
9254             break
9255           fi
9256           done
9257         esac
9258
9259         exp_sym_flag='-bexport'
9260         no_entry_flag='-bnoentry'
9261       fi
9262
9263       # When large executables or shared objects are built, AIX ld can
9264       # have problems creating the table of contents.  If linking a library
9265       # or program results in "error TOC overflow" add -mminimal-toc to
9266       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9267       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9268
9269       archive_cmds=''
9270       hardcode_direct=yes
9271       hardcode_libdir_separator=':'
9272       link_all_deplibs=yes
9273
9274       if test "$GCC" = yes; then
9275         case $host_os in aix4.[012]|aix4.[012].*)
9276         # We only want to do this on AIX 4.2 and lower, the check
9277         # below for broken collect2 doesn't work under 4.3+
9278           collect2name=`${CC} -print-prog-name=collect2`
9279           if test -f "$collect2name" && \
9280            strings "$collect2name" | grep resolve_lib_name >/dev/null
9281           then
9282           # We have reworked collect2
9283           hardcode_direct=yes
9284           else
9285           # We have old collect2
9286           hardcode_direct=unsupported
9287           # It fails to find uninstalled libraries when the uninstalled
9288           # path is not listed in the libpath.  Setting hardcode_minus_L
9289           # to unsupported forces relinking
9290           hardcode_minus_L=yes
9291           hardcode_libdir_flag_spec='-L$libdir'
9292           hardcode_libdir_separator=
9293           fi
9294         esac
9295         shared_flag='-shared'
9296         if test "$aix_use_runtimelinking" = yes; then
9297           shared_flag="$shared_flag "'${wl}-G'
9298         fi
9299       else
9300         # not using gcc
9301         if test "$host_cpu" = ia64; then
9302         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9303         # chokes on -Wl,-G. The following line is correct:
9304           shared_flag='-G'
9305         else
9306         if test "$aix_use_runtimelinking" = yes; then
9307             shared_flag='${wl}-G'
9308           else
9309             shared_flag='${wl}-bM:SRE'
9310         fi
9311         fi
9312       fi
9313
9314       # It seems that -bexpall does not export symbols beginning with
9315       # underscore (_), so it is better to generate a list of symbols to export.
9316       always_export_symbols=yes
9317       if test "$aix_use_runtimelinking" = yes; then
9318         # Warning - without using the other runtime loading flags (-brtl),
9319         # -berok will link without error, but may produce a broken library.
9320         allow_undefined_flag='-berok'
9321        # Determine the default libpath from the value encoded in an empty executable.
9322        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h.  */
9324
9325 int
9326 main ()
9327 {
9328
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_c_try_link "$LINENO"; then :
9334
9335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9336 }'`
9337 # Check for a 64-bit object if we didn't find anything.
9338 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; }
9339 }'`; fi
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext \
9342     conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344
9345        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346         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"
9347        else
9348         if test "$host_cpu" = ia64; then
9349           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9350           allow_undefined_flag="-z nodefs"
9351           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"
9352         else
9353          # Determine the default libpath from the value encoded in an empty executable.
9354          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h.  */
9356
9357 int
9358 main ()
9359 {
9360
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366
9367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9368 }'`
9369 # Check for a 64-bit object if we didn't find anything.
9370 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; }
9371 }'`; fi
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374     conftest$ac_exeext conftest.$ac_ext
9375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9376
9377          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9378           # Warning - without using the other run time loading flags,
9379           # -berok will link without error, but may produce a broken library.
9380           no_undefined_flag=' ${wl}-bernotok'
9381           allow_undefined_flag=' ${wl}-berok'
9382           # -bexpall does not export symbols beginning with underscore (_)
9383           always_export_symbols=yes
9384           # Exported symbols can be pulled into shared objects from archives
9385           whole_archive_flag_spec=' '
9386           archive_cmds_need_lc=yes
9387           # This is similar to how AIX traditionally builds its shared libraries.
9388           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'
9389         fi
9390       fi
9391       ;;
9392
9393     amigaos*)
9394       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)'
9395       hardcode_libdir_flag_spec='-L$libdir'
9396       hardcode_minus_L=yes
9397       # see comment about different semantics on the GNU ld section
9398       ld_shlibs=no
9399       ;;
9400
9401     bsdi[45]*)
9402       export_dynamic_flag_spec=-rdynamic
9403       ;;
9404
9405     cygwin* | mingw* | pw32*)
9406       # When not using gcc, we currently assume that we are using
9407       # Microsoft Visual C++.
9408       # hardcode_libdir_flag_spec is actually meaningless, as there is
9409       # no search path for DLLs.
9410       hardcode_libdir_flag_spec=' '
9411       allow_undefined_flag=unsupported
9412       # Tell ltmain to make .lib files, not .a files.
9413       libext=lib
9414       # Tell ltmain to make .dll files, not .so files.
9415       shrext_cmds=".dll"
9416       # FIXME: Setting linknames here is a bad hack.
9417       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9418       # The linker will automatically build a .lib file if we build a DLL.
9419       old_archive_From_new_cmds='true'
9420       # FIXME: Should let the user specify the lib program.
9421       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9422       fix_srcfile_path='`cygpath -w "$srcfile"`'
9423       enable_shared_with_static_runtimes=yes
9424       ;;
9425
9426     darwin* | rhapsody*)
9427       case $host_os in
9428         rhapsody* | darwin1.[012])
9429          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9430          ;;
9431        *) # Darwin 1.3 on
9432          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9433            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9434          else
9435            case ${MACOSX_DEPLOYMENT_TARGET} in
9436              10.[012])
9437                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9438                ;;
9439              10.*)
9440                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9441                ;;
9442            esac
9443          fi
9444          ;;
9445       esac
9446       archive_cmds_need_lc=no
9447       hardcode_direct=no
9448       hardcode_automatic=yes
9449       hardcode_shlibpath_var=unsupported
9450       whole_archive_flag_spec=''
9451       link_all_deplibs=yes
9452     if test "$GCC" = yes ; then
9453         output_verbose_link_cmd='echo'
9454         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9455       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9456       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9457       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}'
9458       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}'
9459     else
9460       case $cc_basename in
9461         xlc*)
9462          output_verbose_link_cmd='echo'
9463          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9464          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9465           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9466          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}'
9467           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}'
9468           ;;
9469        *)
9470          ld_shlibs=no
9471           ;;
9472       esac
9473     fi
9474       ;;
9475
9476     dgux*)
9477       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478       hardcode_libdir_flag_spec='-L$libdir'
9479       hardcode_shlibpath_var=no
9480       ;;
9481
9482     freebsd1*)
9483       ld_shlibs=no
9484       ;;
9485
9486     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9487     # support.  Future versions do this automatically, but an explicit c++rt0.o
9488     # does not break anything, and helps significantly (at the cost of a little
9489     # extra space).
9490     freebsd2.2*)
9491       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9492       hardcode_libdir_flag_spec='-R$libdir'
9493       hardcode_direct=yes
9494       hardcode_shlibpath_var=no
9495       ;;
9496
9497     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9498     freebsd2*)
9499       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9500       hardcode_direct=yes
9501       hardcode_minus_L=yes
9502       hardcode_shlibpath_var=no
9503       ;;
9504
9505     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9506     freebsd* | kfreebsd*-gnu | dragonfly*)
9507       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9508       hardcode_libdir_flag_spec='-R$libdir'
9509       hardcode_direct=yes
9510       hardcode_shlibpath_var=no
9511       ;;
9512
9513     hpux9*)
9514       if test "$GCC" = yes; then
9515         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'
9516       else
9517         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'
9518       fi
9519       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9520       hardcode_libdir_separator=:
9521       hardcode_direct=yes
9522
9523       # hardcode_minus_L: Not really in the search PATH,
9524       # but as the default location of the library.
9525       hardcode_minus_L=yes
9526       export_dynamic_flag_spec='${wl}-E'
9527       ;;
9528
9529     hpux10* | hpux11*)
9530       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9531         case $host_cpu in
9532         hppa*64*|ia64*)
9533           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534           ;;
9535         *)
9536           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9537           ;;
9538         esac
9539       else
9540         case $host_cpu in
9541         hppa*64*|ia64*)
9542           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9543           ;;
9544         *)
9545           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9546           ;;
9547         esac
9548       fi
9549       if test "$with_gnu_ld" = no; then
9550         case $host_cpu in
9551         hppa*64*)
9552           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9553           hardcode_libdir_flag_spec_ld='+b $libdir'
9554           hardcode_libdir_separator=:
9555           hardcode_direct=no
9556           hardcode_shlibpath_var=no
9557           ;;
9558         ia64*)
9559           hardcode_libdir_flag_spec='-L$libdir'
9560           hardcode_direct=no
9561           hardcode_shlibpath_var=no
9562
9563           # hardcode_minus_L: Not really in the search PATH,
9564           # but as the default location of the library.
9565           hardcode_minus_L=yes
9566           ;;
9567         *)
9568           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9569           hardcode_libdir_separator=:
9570           hardcode_direct=yes
9571           export_dynamic_flag_spec='${wl}-E'
9572
9573           # hardcode_minus_L: Not really in the search PATH,
9574           # but as the default location of the library.
9575           hardcode_minus_L=yes
9576           ;;
9577         esac
9578       fi
9579       ;;
9580
9581     irix5* | irix6* | nonstopux*)
9582       if test "$GCC" = yes; then
9583         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'
9584       else
9585         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'
9586         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9587       fi
9588       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589       hardcode_libdir_separator=:
9590       link_all_deplibs=yes
9591       ;;
9592
9593     netbsd*)
9594       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9595         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9596       else
9597         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9598       fi
9599       hardcode_libdir_flag_spec='-R$libdir'
9600       hardcode_direct=yes
9601       hardcode_shlibpath_var=no
9602       ;;
9603
9604     newsos6)
9605       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606       hardcode_direct=yes
9607       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608       hardcode_libdir_separator=:
9609       hardcode_shlibpath_var=no
9610       ;;
9611
9612     openbsd*)
9613       hardcode_direct=yes
9614       hardcode_shlibpath_var=no
9615       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9616         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9618         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9619         export_dynamic_flag_spec='${wl}-E'
9620       else
9621        case $host_os in
9622          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9623            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624            hardcode_libdir_flag_spec='-R$libdir'
9625            ;;
9626          *)
9627            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9629            ;;
9630        esac
9631       fi
9632       ;;
9633
9634     os2*)
9635       hardcode_libdir_flag_spec='-L$libdir'
9636       hardcode_minus_L=yes
9637       allow_undefined_flag=unsupported
9638       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'
9639       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9640       ;;
9641
9642     osf3*)
9643       if test "$GCC" = yes; then
9644         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9645         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'
9646       else
9647         allow_undefined_flag=' -expect_unresolved \*'
9648         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'
9649       fi
9650       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651       hardcode_libdir_separator=:
9652       ;;
9653
9654     osf4* | osf5*)      # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9658         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659       else
9660         allow_undefined_flag=' -expect_unresolved \*'
9661         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'
9662         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9663         $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'
9664
9665         # Both c and cxx compiler support -rpath directly
9666         hardcode_libdir_flag_spec='-rpath $libdir'
9667       fi
9668       hardcode_libdir_separator=:
9669       ;;
9670
9671     sco3.2v5*)
9672       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673       hardcode_shlibpath_var=no
9674       export_dynamic_flag_spec='${wl}-Bexport'
9675       runpath_var=LD_RUN_PATH
9676       hardcode_runpath_var=yes
9677       ;;
9678
9679     solaris*)
9680       no_undefined_flag=' -z text'
9681       if test "$GCC" = yes; then
9682         wlarc='${wl}'
9683         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9684         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9685           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9686       else
9687         wlarc=''
9688         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9690         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9691       fi
9692       hardcode_libdir_flag_spec='-R$libdir'
9693       hardcode_shlibpath_var=no
9694       case $host_os in
9695       solaris2.[0-5] | solaris2.[0-5].*) ;;
9696       *)
9697         # The compiler driver will combine linker options so we
9698         # cannot just pass the convience library names through
9699         # without $wl, iff we do not link with $LD.
9700         # Luckily, gcc supports the same syntax we need for Sun Studio.
9701         # Supported since Solaris 2.6 (maybe 2.5.1?)
9702         case $wlarc in
9703         '')
9704           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9705         *)
9706           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' ;;
9707         esac ;;
9708       esac
9709       link_all_deplibs=yes
9710       ;;
9711
9712     sunos4*)
9713       if test "x$host_vendor" = xsequent; then
9714         # Use $CC to link under sequent, because it throws in some extra .o
9715         # files that make .init and .fini sections work.
9716         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9717       else
9718         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9719       fi
9720       hardcode_libdir_flag_spec='-L$libdir'
9721       hardcode_direct=yes
9722       hardcode_minus_L=yes
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     sysv4)
9727       case $host_vendor in
9728         sni)
9729           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730           hardcode_direct=yes # is this really true???
9731         ;;
9732         siemens)
9733           ## LD is ld it makes a PLAMLIB
9734           ## CC just makes a GrossModule.
9735           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736           reload_cmds='$CC -r -o $output$reload_objs'
9737           hardcode_direct=no
9738         ;;
9739         motorola)
9740           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9742         ;;
9743       esac
9744       runpath_var='LD_RUN_PATH'
9745       hardcode_shlibpath_var=no
9746       ;;
9747
9748     sysv4.3*)
9749       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750       hardcode_shlibpath_var=no
9751       export_dynamic_flag_spec='-Bexport'
9752       ;;
9753
9754     sysv4*MP*)
9755       if test -d /usr/nec; then
9756         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757         hardcode_shlibpath_var=no
9758         runpath_var=LD_RUN_PATH
9759         hardcode_runpath_var=yes
9760         ld_shlibs=yes
9761       fi
9762       ;;
9763
9764     sysv4.2uw2*)
9765       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9766       hardcode_direct=yes
9767       hardcode_minus_L=no
9768       hardcode_shlibpath_var=no
9769       hardcode_runpath_var=yes
9770       runpath_var=LD_RUN_PATH
9771       ;;
9772
9773    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9774       no_undefined_flag='${wl}-z ${wl}text'
9775       if test "$GCC" = yes; then
9776         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777       else
9778         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9779       fi
9780       runpath_var='LD_RUN_PATH'
9781       hardcode_shlibpath_var=no
9782       ;;
9783
9784     sysv5*)
9785       no_undefined_flag=' -z text'
9786       # $CC -shared without GNU ld will not create a library from C++
9787       # object files and a static libstdc++, better avoid it by now
9788       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9790                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9791       hardcode_libdir_flag_spec=
9792       hardcode_shlibpath_var=no
9793       runpath_var='LD_RUN_PATH'
9794       ;;
9795
9796     uts4*)
9797       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798       hardcode_libdir_flag_spec='-L$libdir'
9799       hardcode_shlibpath_var=no
9800       ;;
9801
9802     *)
9803       ld_shlibs=no
9804       ;;
9805     esac
9806   fi
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9809 $as_echo "$ld_shlibs" >&6; }
9810 test "$ld_shlibs" = no && can_build_shared=no
9811
9812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9813 if test "$GCC" = yes; then
9814   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9815 fi
9816
9817 #
9818 # Do we need to explicitly link libc?
9819 #
9820 case "x$archive_cmds_need_lc" in
9821 x|xyes)
9822   # Assume -lc should be added
9823   archive_cmds_need_lc=yes
9824
9825   if test "$enable_shared" = yes && test "$GCC" = yes; then
9826     case $archive_cmds in
9827     *'~'*)
9828       # FIXME: we may have to deal with multi-command sequences.
9829       ;;
9830     '$CC '*)
9831       # Test whether the compiler implicitly links with -lc since on some
9832       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9833       # to ld, don't add -lc before -lgcc.
9834       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9835 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9836       $rm conftest*
9837       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9838
9839       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9840   (eval $ac_compile) 2>&5
9841   ac_status=$?
9842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9843   test $ac_status = 0; } 2>conftest.err; then
9844         soname=conftest
9845         lib=conftest
9846         libobjs=conftest.$ac_objext
9847         deplibs=
9848         wl=$lt_prog_compiler_wl
9849         compiler_flags=-v
9850         linker_flags=-v
9851         verstring=
9852         output_objdir=.
9853         libname=conftest
9854         lt_save_allow_undefined_flag=$allow_undefined_flag
9855         allow_undefined_flag=
9856         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858   ac_status=$?
9859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860   test $ac_status = 0; }
9861         then
9862           archive_cmds_need_lc=no
9863         else
9864           archive_cmds_need_lc=yes
9865         fi
9866         allow_undefined_flag=$lt_save_allow_undefined_flag
9867       else
9868         cat conftest.err 1>&5
9869       fi
9870       $rm conftest*
9871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9872 $as_echo "$archive_cmds_need_lc" >&6; }
9873       ;;
9874     esac
9875   fi
9876   ;;
9877 esac
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9880 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9881 library_names_spec=
9882 libname_spec='lib$name'
9883 soname_spec=
9884 shrext_cmds=".so"
9885 postinstall_cmds=
9886 postuninstall_cmds=
9887 finish_cmds=
9888 finish_eval=
9889 shlibpath_var=
9890 shlibpath_overrides_runpath=unknown
9891 version_type=none
9892 dynamic_linker="$host_os ld.so"
9893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9894 if test "$GCC" = yes; then
9895   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9896   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9897     # if the path contains ";" then we assume it to be the separator
9898     # otherwise default to the standard path separator (i.e. ":") - it is
9899     # assumed that no part of a normal pathname contains ";" but that should
9900     # okay in the real world where ";" in dirpaths is itself problematic.
9901     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9902   else
9903     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9904   fi
9905 else
9906   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9907 fi
9908 need_lib_prefix=unknown
9909 hardcode_into_libs=no
9910
9911 # when you set need_version to no, make sure it does not cause -set_version
9912 # flags to be left without arguments
9913 need_version=unknown
9914
9915 case $host_os in
9916 aix3*)
9917   version_type=linux
9918   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9919   shlibpath_var=LIBPATH
9920
9921   # AIX 3 has no versioning support, so we append a major version to the name.
9922   soname_spec='${libname}${release}${shared_ext}$major'
9923   ;;
9924
9925 aix4* | aix5*)
9926   version_type=linux
9927   need_lib_prefix=no
9928   need_version=no
9929   hardcode_into_libs=yes
9930   if test "$host_cpu" = ia64; then
9931     # AIX 5 supports IA64
9932     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9933     shlibpath_var=LD_LIBRARY_PATH
9934   else
9935     # With GCC up to 2.95.x, collect2 would create an import file
9936     # for dependence libraries.  The import file would start with
9937     # the line `#! .'.  This would cause the generated library to
9938     # depend on `.', always an invalid library.  This was fixed in
9939     # development snapshots of GCC prior to 3.0.
9940     case $host_os in
9941       aix4 | aix4.[01] | aix4.[01].*)
9942       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9943            echo ' yes '
9944            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9945         :
9946       else
9947         can_build_shared=no
9948       fi
9949       ;;
9950     esac
9951     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9952     # soname into executable. Probably we can add versioning support to
9953     # collect2, so additional links can be useful in future.
9954     if test "$aix_use_runtimelinking" = yes; then
9955       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9956       # instead of lib<name>.a to let people know that these are not
9957       # typical AIX shared libraries.
9958       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959     else
9960       # We preserve .a as extension for shared libraries through AIX4.2
9961       # and later when we are not doing run time linking.
9962       library_names_spec='${libname}${release}.a $libname.a'
9963       soname_spec='${libname}${release}${shared_ext}$major'
9964     fi
9965     shlibpath_var=LIBPATH
9966   fi
9967   ;;
9968
9969 amigaos*)
9970   library_names_spec='$libname.ixlibrary $libname.a'
9971   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9972   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'
9973   ;;
9974
9975 beos*)
9976   library_names_spec='${libname}${shared_ext}'
9977   dynamic_linker="$host_os ld.so"
9978   shlibpath_var=LIBRARY_PATH
9979   ;;
9980
9981 bsdi[45]*)
9982   version_type=linux
9983   need_version=no
9984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985   soname_spec='${libname}${release}${shared_ext}$major'
9986   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9987   shlibpath_var=LD_LIBRARY_PATH
9988   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9989   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9990   # the default ld.so.conf also contains /usr/contrib/lib and
9991   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9992   # libtool to hard-code these into programs
9993   ;;
9994
9995 cygwin* | mingw* | pw32*)
9996   version_type=windows
9997   shrext_cmds=".dll"
9998   need_version=no
9999   need_lib_prefix=no
10000
10001   case $GCC,$host_os in
10002   yes,cygwin* | yes,mingw* | yes,pw32*)
10003     library_names_spec='$libname.dll.a'
10004     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10005     postinstall_cmds='base_file=`basename \${file}`~
10006       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10007       dldir=$destdir/`dirname \$dlpath`~
10008       test -d \$dldir || mkdir -p \$dldir~
10009       $install_prog $dir/$dlname \$dldir/$dlname~
10010       chmod a+x \$dldir/$dlname'
10011     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10012       dlpath=$dir/\$dldll~
10013        $rm \$dlpath'
10014     shlibpath_overrides_runpath=yes
10015
10016     case $host_os in
10017     cygwin*)
10018       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10019       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10020       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10021       ;;
10022     mingw*)
10023       # MinGW DLLs use traditional 'lib' prefix
10024       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10025       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10026       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10027         # It is most probably a Windows format PATH printed by
10028         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10029         # path with ; separators, and with drive letters. We can handle the
10030         # drive letters (cygwin fileutils understands them), so leave them,
10031         # especially as we might pass files found there to a mingw objdump,
10032         # which wouldn't understand a cygwinified path. Ahh.
10033         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10034       else
10035         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10036       fi
10037       ;;
10038     pw32*)
10039       # pw32 DLLs use 'pw' prefix rather than 'lib'
10040       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10041       ;;
10042     esac
10043     ;;
10044
10045   *)
10046     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10047     ;;
10048   esac
10049   dynamic_linker='Win32 ld.exe'
10050   # FIXME: first we should search . and the directory the executable is in
10051   shlibpath_var=PATH
10052   ;;
10053
10054 darwin* | rhapsody*)
10055   dynamic_linker="$host_os dyld"
10056   version_type=darwin
10057   need_lib_prefix=no
10058   need_version=no
10059   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10060   soname_spec='${libname}${release}${major}$shared_ext'
10061   shlibpath_overrides_runpath=yes
10062   shlibpath_var=DYLD_LIBRARY_PATH
10063   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10064   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10065   if test "$GCC" = yes; then
10066     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"`
10067   else
10068     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10069   fi
10070   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10071   ;;
10072
10073 dgux*)
10074   version_type=linux
10075   need_lib_prefix=no
10076   need_version=no
10077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10078   soname_spec='${libname}${release}${shared_ext}$major'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   ;;
10081
10082 freebsd1*)
10083   dynamic_linker=no
10084   ;;
10085
10086 kfreebsd*-gnu)
10087   version_type=linux
10088   need_lib_prefix=no
10089   need_version=no
10090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   shlibpath_var=LD_LIBRARY_PATH
10093   shlibpath_overrides_runpath=no
10094   hardcode_into_libs=yes
10095   dynamic_linker='GNU ld.so'
10096   ;;
10097
10098 freebsd* | dragonfly*)
10099   # DragonFly does not have aout.  When/if they implement a new
10100   # versioning mechanism, adjust this.
10101   if test -x /usr/bin/objformat; then
10102     objformat=`/usr/bin/objformat`
10103   else
10104     case $host_os in
10105     freebsd[123]*) objformat=aout ;;
10106     *) objformat=elf ;;
10107     esac
10108   fi
10109   version_type=freebsd-$objformat
10110   case $version_type in
10111     freebsd-elf*)
10112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10113       need_version=no
10114       need_lib_prefix=no
10115       ;;
10116     freebsd-*)
10117       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10118       need_version=yes
10119       ;;
10120   esac
10121   shlibpath_var=LD_LIBRARY_PATH
10122   case $host_os in
10123   freebsd2*)
10124     shlibpath_overrides_runpath=yes
10125     ;;
10126   freebsd3.[01]* | freebsdelf3.[01]*)
10127     shlibpath_overrides_runpath=yes
10128     hardcode_into_libs=yes
10129     ;;
10130   *) # from 3.2 on
10131     shlibpath_overrides_runpath=no
10132     hardcode_into_libs=yes
10133     ;;
10134   esac
10135   ;;
10136
10137 gnu*)
10138   version_type=linux
10139   need_lib_prefix=no
10140   need_version=no
10141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10142   soname_spec='${libname}${release}${shared_ext}$major'
10143   shlibpath_var=LD_LIBRARY_PATH
10144   hardcode_into_libs=yes
10145   ;;
10146
10147 hpux9* | hpux10* | hpux11*)
10148   # Give a soname corresponding to the major version so that dld.sl refuses to
10149   # link against other versions.
10150   version_type=sunos
10151   need_lib_prefix=no
10152   need_version=no
10153   case $host_cpu in
10154   ia64*)
10155     shrext_cmds='.so'
10156     hardcode_into_libs=yes
10157     dynamic_linker="$host_os dld.so"
10158     shlibpath_var=LD_LIBRARY_PATH
10159     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161     soname_spec='${libname}${release}${shared_ext}$major'
10162     if test "X$HPUX_IA64_MODE" = X32; then
10163       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10164     else
10165       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10166     fi
10167     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10168     ;;
10169    hppa*64*)
10170      shrext_cmds='.sl'
10171      hardcode_into_libs=yes
10172      dynamic_linker="$host_os dld.sl"
10173      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10174      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176      soname_spec='${libname}${release}${shared_ext}$major'
10177      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10178      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10179      ;;
10180    *)
10181     shrext_cmds='.sl'
10182     dynamic_linker="$host_os dld.sl"
10183     shlibpath_var=SHLIB_PATH
10184     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186     soname_spec='${libname}${release}${shared_ext}$major'
10187     ;;
10188   esac
10189   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10190   postinstall_cmds='chmod 555 $lib'
10191   ;;
10192
10193 irix5* | irix6* | nonstopux*)
10194   case $host_os in
10195     nonstopux*) version_type=nonstopux ;;
10196     *)
10197         if test "$lt_cv_prog_gnu_ld" = yes; then
10198                 version_type=linux
10199         else
10200                 version_type=irix
10201         fi ;;
10202   esac
10203   need_lib_prefix=no
10204   need_version=no
10205   soname_spec='${libname}${release}${shared_ext}$major'
10206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10207   case $host_os in
10208   irix5* | nonstopux*)
10209     libsuff= shlibsuff=
10210     ;;
10211   *)
10212     case $LD in # libtool.m4 will add one of these switches to LD
10213     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10214       libsuff= shlibsuff= libmagic=32-bit;;
10215     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10216       libsuff=32 shlibsuff=N32 libmagic=N32;;
10217     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10218       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10219     *) libsuff= shlibsuff= libmagic=never-match;;
10220     esac
10221     ;;
10222   esac
10223   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10224   shlibpath_overrides_runpath=no
10225   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10226   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10227   hardcode_into_libs=yes
10228   ;;
10229
10230 # No shared lib support for Linux oldld, aout, or coff.
10231 linux*oldld* | linux*aout* | linux*coff*)
10232   dynamic_linker=no
10233   ;;
10234
10235 # This must be Linux ELF.
10236 linux*)
10237   version_type=linux
10238   need_lib_prefix=no
10239   need_version=no
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   shlibpath_overrides_runpath=no
10245   # This implies no fast_install, which is unacceptable.
10246   # Some rework will be needed to allow for fast_install
10247   # before this can be enabled.
10248   hardcode_into_libs=yes
10249
10250   # Append ld.so.conf contents to the search path
10251   if test -f /etc/ld.so.conf; then
10252     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' ' '`
10253     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10254   fi
10255
10256   # We used to test for /lib/ld.so.1 and disable shared libraries on
10257   # powerpc, because MkLinux only supported shared libraries with the
10258   # GNU dynamic linker.  Since this was broken with cross compilers,
10259   # most powerpc-linux boxes support dynamic linking these days and
10260   # people can always --disable-shared, the test was removed, and we
10261   # assume the GNU/Linux dynamic linker is in use.
10262   dynamic_linker='GNU/Linux ld.so'
10263   ;;
10264
10265 knetbsd*-gnu)
10266   version_type=linux
10267   need_lib_prefix=no
10268   need_version=no
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270   soname_spec='${libname}${release}${shared_ext}$major'
10271   shlibpath_var=LD_LIBRARY_PATH
10272   shlibpath_overrides_runpath=no
10273   hardcode_into_libs=yes
10274   dynamic_linker='GNU ld.so'
10275   ;;
10276
10277 netbsd*)
10278   version_type=sunos
10279   need_lib_prefix=no
10280   need_version=no
10281   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10283     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10284     dynamic_linker='NetBSD (a.out) ld.so'
10285   else
10286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10287     soname_spec='${libname}${release}${shared_ext}$major'
10288     dynamic_linker='NetBSD ld.elf_so'
10289   fi
10290   shlibpath_var=LD_LIBRARY_PATH
10291   shlibpath_overrides_runpath=yes
10292   hardcode_into_libs=yes
10293   ;;
10294
10295 newsos6)
10296   version_type=linux
10297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298   shlibpath_var=LD_LIBRARY_PATH
10299   shlibpath_overrides_runpath=yes
10300   ;;
10301
10302 nto-qnx*)
10303   version_type=linux
10304   need_lib_prefix=no
10305   need_version=no
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307   soname_spec='${libname}${release}${shared_ext}$major'
10308   shlibpath_var=LD_LIBRARY_PATH
10309   shlibpath_overrides_runpath=yes
10310   ;;
10311
10312 openbsd*)
10313   version_type=sunos
10314   need_lib_prefix=no
10315   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10316   case $host_os in
10317     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10318     *)                         need_version=no  ;;
10319   esac
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10324     case $host_os in
10325       openbsd2.[89] | openbsd2.[89].*)
10326         shlibpath_overrides_runpath=no
10327         ;;
10328       *)
10329         shlibpath_overrides_runpath=yes
10330         ;;
10331       esac
10332   else
10333     shlibpath_overrides_runpath=yes
10334   fi
10335   ;;
10336
10337 os2*)
10338   libname_spec='$name'
10339   shrext_cmds=".dll"
10340   need_lib_prefix=no
10341   library_names_spec='$libname${shared_ext} $libname.a'
10342   dynamic_linker='OS/2 ld.exe'
10343   shlibpath_var=LIBPATH
10344   ;;
10345
10346 osf3* | osf4* | osf5*)
10347   version_type=osf
10348   need_lib_prefix=no
10349   need_version=no
10350   soname_spec='${libname}${release}${shared_ext}$major'
10351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10354   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10355   ;;
10356
10357 sco3.2v5*)
10358   version_type=osf
10359   soname_spec='${libname}${release}${shared_ext}$major'
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   ;;
10363
10364 solaris*)
10365   version_type=linux
10366   need_lib_prefix=no
10367   need_version=no
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   soname_spec='${libname}${release}${shared_ext}$major'
10370   shlibpath_var=LD_LIBRARY_PATH
10371   shlibpath_overrides_runpath=yes
10372   hardcode_into_libs=yes
10373   # ldd complains unless libraries are executable
10374   postinstall_cmds='chmod +x $lib'
10375   ;;
10376
10377 sunos4*)
10378   version_type=sunos
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10380   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10381   shlibpath_var=LD_LIBRARY_PATH
10382   shlibpath_overrides_runpath=yes
10383   if test "$with_gnu_ld" = yes; then
10384     need_lib_prefix=no
10385   fi
10386   need_version=yes
10387   ;;
10388
10389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10390   version_type=linux
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392   soname_spec='${libname}${release}${shared_ext}$major'
10393   shlibpath_var=LD_LIBRARY_PATH
10394   case $host_vendor in
10395     sni)
10396       shlibpath_overrides_runpath=no
10397       need_lib_prefix=no
10398       export_dynamic_flag_spec='${wl}-Blargedynsym'
10399       runpath_var=LD_RUN_PATH
10400       ;;
10401     siemens)
10402       need_lib_prefix=no
10403       ;;
10404     motorola)
10405       need_lib_prefix=no
10406       need_version=no
10407       shlibpath_overrides_runpath=no
10408       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10409       ;;
10410   esac
10411   ;;
10412
10413 sysv4*MP*)
10414   if test -d /usr/nec ;then
10415     version_type=linux
10416     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417     soname_spec='$libname${shared_ext}.$major'
10418     shlibpath_var=LD_LIBRARY_PATH
10419   fi
10420   ;;
10421
10422 uts4*)
10423   version_type=linux
10424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425   soname_spec='${libname}${release}${shared_ext}$major'
10426   shlibpath_var=LD_LIBRARY_PATH
10427   ;;
10428
10429 *)
10430   dynamic_linker=no
10431   ;;
10432 esac
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10434 $as_echo "$dynamic_linker" >&6; }
10435 test "$dynamic_linker" = no && can_build_shared=no
10436
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10439 hardcode_action=
10440 if test -n "$hardcode_libdir_flag_spec" || \
10441    test -n "$runpath_var" || \
10442    test "X$hardcode_automatic" = "Xyes" ; then
10443
10444   # We can hardcode non-existant directories.
10445   if test "$hardcode_direct" != no &&
10446      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10447      # have to relink, otherwise we might link with an installed library
10448      # when we should be linking with a yet-to-be-installed one
10449      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10450      test "$hardcode_minus_L" != no; then
10451     # Linking always hardcodes the temporary library directory.
10452     hardcode_action=relink
10453   else
10454     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10455     hardcode_action=immediate
10456   fi
10457 else
10458   # We cannot hardcode anything, or else we can only hardcode existing
10459   # directories.
10460   hardcode_action=unsupported
10461 fi
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10463 $as_echo "$hardcode_action" >&6; }
10464
10465 if test "$hardcode_action" = relink; then
10466   # Fast installation is not supported
10467   enable_fast_install=no
10468 elif test "$shlibpath_overrides_runpath" = yes ||
10469      test "$enable_shared" = no; then
10470   # Fast installation is not necessary
10471   enable_fast_install=needless
10472 fi
10473
10474 striplib=
10475 old_striplib=
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10478 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10479   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10480   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10482 $as_echo "yes" >&6; }
10483 else
10484 # FIXME - insert some real tests, host_os isn't really good enough
10485   case $host_os in
10486    darwin*)
10487        if test -n "$STRIP" ; then
10488          striplib="$STRIP -x"
10489          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; }
10491        else
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10494 fi
10495        ;;
10496    *)
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499     ;;
10500   esac
10501 fi
10502
10503 if test "x$enable_dlopen" != xyes; then
10504   enable_dlopen=unknown
10505   enable_dlopen_self=unknown
10506   enable_dlopen_self_static=unknown
10507 else
10508   lt_cv_dlopen=no
10509   lt_cv_dlopen_libs=
10510
10511   case $host_os in
10512   beos*)
10513     lt_cv_dlopen="load_add_on"
10514     lt_cv_dlopen_libs=
10515     lt_cv_dlopen_self=yes
10516     ;;
10517
10518   mingw* | pw32*)
10519     lt_cv_dlopen="LoadLibrary"
10520     lt_cv_dlopen_libs=
10521    ;;
10522
10523   cygwin*)
10524     lt_cv_dlopen="dlopen"
10525     lt_cv_dlopen_libs=
10526    ;;
10527
10528   darwin*)
10529   # if libdl is installed we need to link against it
10530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10533   $as_echo_n "(cached) " >&6
10534 else
10535   ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-ldl  $LIBS"
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h.  */
10539
10540 /* Override any GCC internal prototype to avoid an error.
10541    Use char because int might match the return type of a GCC
10542    builtin and then its argument prototype would still apply.  */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char dlopen ();
10547 int
10548 main ()
10549 {
10550 return dlopen ();
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"; then :
10556   ac_cv_lib_dl_dlopen=yes
10557 else
10558   ac_cv_lib_dl_dlopen=no
10559 fi
10560 rm -f core conftest.err conftest.$ac_objext \
10561     conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10563 fi
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10567   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10568 else
10569
10570     lt_cv_dlopen="dyld"
10571     lt_cv_dlopen_libs=
10572     lt_cv_dlopen_self=yes
10573
10574 fi
10575
10576    ;;
10577
10578   *)
10579     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10580 if test "x$ac_cv_func_shl_load" = x""yes; then :
10581   lt_cv_dlopen="shl_load"
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10586   $as_echo_n "(cached) " >&6
10587 else
10588   ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-ldld  $LIBS"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h.  */
10592
10593 /* Override any GCC internal prototype to avoid an error.
10594    Use char because int might match the return type of a GCC
10595    builtin and then its argument prototype would still apply.  */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char shl_load ();
10600 int
10601 main ()
10602 {
10603 return shl_load ();
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609   ac_cv_lib_dld_shl_load=yes
10610 else
10611   ac_cv_lib_dld_shl_load=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext \
10614     conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10616 fi
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10618 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10619 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10620   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10621 else
10622   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10623 if test "x$ac_cv_func_dlopen" = x""yes; then :
10624   lt_cv_dlopen="dlopen"
10625 else
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10629   $as_echo_n "(cached) " >&6
10630 else
10631   ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-ldl  $LIBS"
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h.  */
10635
10636 /* Override any GCC internal prototype to avoid an error.
10637    Use char because int might match the return type of a GCC
10638    builtin and then its argument prototype would still apply.  */
10639 #ifdef __cplusplus
10640 extern "C"
10641 #endif
10642 char dlopen ();
10643 int
10644 main ()
10645 {
10646 return dlopen ();
10647   ;
10648   return 0;
10649 }
10650 _ACEOF
10651 if ac_fn_c_try_link "$LINENO"; then :
10652   ac_cv_lib_dl_dlopen=yes
10653 else
10654   ac_cv_lib_dl_dlopen=no
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext \
10657     conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10659 fi
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10662 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10666 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10667 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10668   $as_echo_n "(cached) " >&6
10669 else
10670   ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-lsvld  $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h.  */
10674
10675 /* Override any GCC internal prototype to avoid an error.
10676    Use char because int might match the return type of a GCC
10677    builtin and then its argument prototype would still apply.  */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char dlopen ();
10682 int
10683 main ()
10684 {
10685 return dlopen ();
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691   ac_cv_lib_svld_dlopen=yes
10692 else
10693   ac_cv_lib_svld_dlopen=no
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext \
10696     conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10700 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10701 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10702   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10703 else
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10705 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10706 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   ac_check_lib_save_LIBS=$LIBS
10710 LIBS="-ldld  $LIBS"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713
10714 /* Override any GCC internal prototype to avoid an error.
10715    Use char because int might match the return type of a GCC
10716    builtin and then its argument prototype would still apply.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char dld_link ();
10721 int
10722 main ()
10723 {
10724 return dld_link ();
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_link "$LINENO"; then :
10730   ac_cv_lib_dld_dld_link=yes
10731 else
10732   ac_cv_lib_dld_dld_link=no
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext \
10735     conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10737 fi
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10739 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10740 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10741   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10742 fi
10743
10744
10745 fi
10746
10747
10748 fi
10749
10750
10751 fi
10752
10753
10754 fi
10755
10756
10757 fi
10758
10759     ;;
10760   esac
10761
10762   if test "x$lt_cv_dlopen" != xno; then
10763     enable_dlopen=yes
10764   else
10765     enable_dlopen=no
10766   fi
10767
10768   case $lt_cv_dlopen in
10769   dlopen)
10770     save_CPPFLAGS="$CPPFLAGS"
10771     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10772
10773     save_LDFLAGS="$LDFLAGS"
10774     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10775
10776     save_LIBS="$LIBS"
10777     LIBS="$lt_cv_dlopen_libs $LIBS"
10778
10779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10780 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10781 if test "${lt_cv_dlopen_self+set}" = set; then :
10782   $as_echo_n "(cached) " >&6
10783 else
10784           if test "$cross_compiling" = yes; then :
10785   lt_cv_dlopen_self=cross
10786 else
10787   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788   lt_status=$lt_dlunknown
10789   cat > conftest.$ac_ext <<EOF
10790 #line 10790 "configure"
10791 #include "confdefs.h"
10792
10793 #if HAVE_DLFCN_H
10794 #include <dlfcn.h>
10795 #endif
10796
10797 #include <stdio.h>
10798
10799 #ifdef RTLD_GLOBAL
10800 #  define LT_DLGLOBAL           RTLD_GLOBAL
10801 #else
10802 #  ifdef DL_GLOBAL
10803 #    define LT_DLGLOBAL         DL_GLOBAL
10804 #  else
10805 #    define LT_DLGLOBAL         0
10806 #  endif
10807 #endif
10808
10809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810    find out it does not work in some platform. */
10811 #ifndef LT_DLLAZY_OR_NOW
10812 #  ifdef RTLD_LAZY
10813 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10814 #  else
10815 #    ifdef DL_LAZY
10816 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10817 #    else
10818 #      ifdef RTLD_NOW
10819 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10820 #      else
10821 #        ifdef DL_NOW
10822 #          define LT_DLLAZY_OR_NOW      DL_NOW
10823 #        else
10824 #          define LT_DLLAZY_OR_NOW      0
10825 #        endif
10826 #      endif
10827 #    endif
10828 #  endif
10829 #endif
10830
10831 #ifdef __cplusplus
10832 extern "C" void exit (int);
10833 #endif
10834
10835 void fnord() { int i=42;}
10836 int main ()
10837 {
10838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10839   int status = $lt_dlunknown;
10840
10841   if (self)
10842     {
10843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10844       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10845       /* dlclose (self); */
10846     }
10847
10848     exit (status);
10849 }
10850 EOF
10851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10852   (eval $ac_link) 2>&5
10853   ac_status=$?
10854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10855   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10856     (./conftest; exit; ) >&5 2>/dev/null
10857     lt_status=$?
10858     case x$lt_status in
10859       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10860       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10861       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10862     esac
10863   else :
10864     # compilation failed
10865     lt_cv_dlopen_self=no
10866   fi
10867 fi
10868 rm -fr conftest*
10869
10870
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10873 $as_echo "$lt_cv_dlopen_self" >&6; }
10874
10875     if test "x$lt_cv_dlopen_self" = xyes; then
10876       LDFLAGS="$LDFLAGS $link_static_flag"
10877       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10878 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10879 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10880   $as_echo_n "(cached) " >&6
10881 else
10882           if test "$cross_compiling" = yes; then :
10883   lt_cv_dlopen_self_static=cross
10884 else
10885   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10886   lt_status=$lt_dlunknown
10887   cat > conftest.$ac_ext <<EOF
10888 #line 10888 "configure"
10889 #include "confdefs.h"
10890
10891 #if HAVE_DLFCN_H
10892 #include <dlfcn.h>
10893 #endif
10894
10895 #include <stdio.h>
10896
10897 #ifdef RTLD_GLOBAL
10898 #  define LT_DLGLOBAL           RTLD_GLOBAL
10899 #else
10900 #  ifdef DL_GLOBAL
10901 #    define LT_DLGLOBAL         DL_GLOBAL
10902 #  else
10903 #    define LT_DLGLOBAL         0
10904 #  endif
10905 #endif
10906
10907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10908    find out it does not work in some platform. */
10909 #ifndef LT_DLLAZY_OR_NOW
10910 #  ifdef RTLD_LAZY
10911 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10912 #  else
10913 #    ifdef DL_LAZY
10914 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10915 #    else
10916 #      ifdef RTLD_NOW
10917 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10918 #      else
10919 #        ifdef DL_NOW
10920 #          define LT_DLLAZY_OR_NOW      DL_NOW
10921 #        else
10922 #          define LT_DLLAZY_OR_NOW      0
10923 #        endif
10924 #      endif
10925 #    endif
10926 #  endif
10927 #endif
10928
10929 #ifdef __cplusplus
10930 extern "C" void exit (int);
10931 #endif
10932
10933 void fnord() { int i=42;}
10934 int main ()
10935 {
10936   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937   int status = $lt_dlunknown;
10938
10939   if (self)
10940     {
10941       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10942       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943       /* dlclose (self); */
10944     }
10945
10946     exit (status);
10947 }
10948 EOF
10949   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10950   (eval $ac_link) 2>&5
10951   ac_status=$?
10952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10954     (./conftest; exit; ) >&5 2>/dev/null
10955     lt_status=$?
10956     case x$lt_status in
10957       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10958       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10959       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10960     esac
10961   else :
10962     # compilation failed
10963     lt_cv_dlopen_self_static=no
10964   fi
10965 fi
10966 rm -fr conftest*
10967
10968
10969 fi
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10971 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10972     fi
10973
10974     CPPFLAGS="$save_CPPFLAGS"
10975     LDFLAGS="$save_LDFLAGS"
10976     LIBS="$save_LIBS"
10977     ;;
10978   esac
10979
10980   case $lt_cv_dlopen_self in
10981   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10982   *) enable_dlopen_self=unknown ;;
10983   esac
10984
10985   case $lt_cv_dlopen_self_static in
10986   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10987   *) enable_dlopen_self_static=unknown ;;
10988   esac
10989 fi
10990
10991
10992 # Report which librarie types wil actually be built
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10994 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10996 $as_echo "$can_build_shared" >&6; }
10997
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10999 $as_echo_n "checking whether to build shared libraries... " >&6; }
11000 test "$can_build_shared" = "no" && enable_shared=no
11001
11002 # On AIX, shared libraries and static libraries use the same namespace, and
11003 # are all built from PIC.
11004 case $host_os in
11005 aix3*)
11006   test "$enable_shared" = yes && enable_static=no
11007   if test -n "$RANLIB"; then
11008     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11009     postinstall_cmds='$RANLIB $lib'
11010   fi
11011   ;;
11012
11013 aix4* | aix5*)
11014   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11015     test "$enable_shared" = yes && enable_static=no
11016   fi
11017     ;;
11018 esac
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11020 $as_echo "$enable_shared" >&6; }
11021
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11023 $as_echo_n "checking whether to build static libraries... " >&6; }
11024 # Make sure either enable_shared or enable_static is yes.
11025 test "$enable_shared" = yes || enable_static=yes
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11027 $as_echo "$enable_static" >&6; }
11028
11029 # The else clause should only fire when bootstrapping the
11030 # libtool distribution, otherwise you forgot to ship ltmain.sh
11031 # with your package, and you will get complaints that there are
11032 # no rules to generate ltmain.sh.
11033 if test -f "$ltmain"; then
11034   # See if we are running on zsh, and set the options which allow our commands through
11035   # without removal of \ escapes.
11036   if test -n "${ZSH_VERSION+set}" ; then
11037     setopt NO_GLOB_SUBST
11038   fi
11039   # Now quote all the things that may contain metacharacters while being
11040   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11041   # variables and quote the copies for generation of the libtool script.
11042   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11043     SED SHELL STRIP \
11044     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11045     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11046     deplibs_check_method reload_flag reload_cmds need_locks \
11047     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11048     lt_cv_sys_global_symbol_to_c_name_address \
11049     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11050     old_postinstall_cmds old_postuninstall_cmds \
11051     compiler \
11052     CC \
11053     LD \
11054     lt_prog_compiler_wl \
11055     lt_prog_compiler_pic \
11056     lt_prog_compiler_static \
11057     lt_prog_compiler_no_builtin_flag \
11058     export_dynamic_flag_spec \
11059     thread_safe_flag_spec \
11060     whole_archive_flag_spec \
11061     enable_shared_with_static_runtimes \
11062     old_archive_cmds \
11063     old_archive_from_new_cmds \
11064     predep_objects \
11065     postdep_objects \
11066     predeps \
11067     postdeps \
11068     compiler_lib_search_path \
11069     archive_cmds \
11070     archive_expsym_cmds \
11071     postinstall_cmds \
11072     postuninstall_cmds \
11073     old_archive_from_expsyms_cmds \
11074     allow_undefined_flag \
11075     no_undefined_flag \
11076     export_symbols_cmds \
11077     hardcode_libdir_flag_spec \
11078     hardcode_libdir_flag_spec_ld \
11079     hardcode_libdir_separator \
11080     hardcode_automatic \
11081     module_cmds \
11082     module_expsym_cmds \
11083     lt_cv_prog_compiler_c_o \
11084     exclude_expsyms \
11085     include_expsyms; do
11086
11087     case $var in
11088     old_archive_cmds | \
11089     old_archive_from_new_cmds | \
11090     archive_cmds | \
11091     archive_expsym_cmds | \
11092     module_cmds | \
11093     module_expsym_cmds | \
11094     old_archive_from_expsyms_cmds | \
11095     export_symbols_cmds | \
11096     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11097     postinstall_cmds | postuninstall_cmds | \
11098     old_postinstall_cmds | old_postuninstall_cmds | \
11099     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11100       # Double-quote double-evaled strings.
11101       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11102       ;;
11103     *)
11104       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11105       ;;
11106     esac
11107   done
11108
11109   case $lt_echo in
11110   *'\$0 --fallback-echo"')
11111     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11112     ;;
11113   esac
11114
11115 cfgfile="${ofile}T"
11116   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11117   $rm -f "$cfgfile"
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11119 $as_echo "$as_me: creating $ofile" >&6;}
11120
11121   cat <<__EOF__ >> "$cfgfile"
11122 #! $SHELL
11123
11124 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11125 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11126 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11127 #
11128 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11129 # Free Software Foundation, Inc.
11130 #
11131 # This file is part of GNU Libtool:
11132 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11133 #
11134 # This program is free software; you can redistribute it and/or modify
11135 # it under the terms of the GNU General Public License as published by
11136 # the Free Software Foundation; either version 2 of the License, or
11137 # (at your option) any later version.
11138 #
11139 # This program is distributed in the hope that it will be useful, but
11140 # WITHOUT ANY WARRANTY; without even the implied warranty of
11141 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11142 # General Public License for more details.
11143 #
11144 # You should have received a copy of the GNU General Public License
11145 # along with this program; if not, write to the Free Software
11146 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11147 #
11148 # As a special exception to the GNU General Public License, if you
11149 # distribute this file as part of a program that contains a
11150 # configuration script generated by Autoconf, you may include it under
11151 # the same distribution terms that you use for the rest of that program.
11152
11153 # A sed program that does not truncate output.
11154 SED=$lt_SED
11155
11156 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11157 Xsed="$SED -e 1s/^X//"
11158
11159 # The HP-UX ksh and POSIX shell print the target directory to stdout
11160 # if CDPATH is set.
11161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11162
11163 # The names of the tagged configurations supported by this script.
11164 available_tags=
11165
11166 # ### BEGIN LIBTOOL CONFIG
11167
11168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11169
11170 # Shell to use when invoking shell scripts.
11171 SHELL=$lt_SHELL
11172
11173 # Whether or not to build shared libraries.
11174 build_libtool_libs=$enable_shared
11175
11176 # Whether or not to build static libraries.
11177 build_old_libs=$enable_static
11178
11179 # Whether or not to add -lc for building shared libraries.
11180 build_libtool_need_lc=$archive_cmds_need_lc
11181
11182 # Whether or not to disallow shared libs when runtime libs are static
11183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11184
11185 # Whether or not to optimize for fast installation.
11186 fast_install=$enable_fast_install
11187
11188 # The host system.
11189 host_alias=$host_alias
11190 host=$host
11191 host_os=$host_os
11192
11193 # The build system.
11194 build_alias=$build_alias
11195 build=$build
11196 build_os=$build_os
11197
11198 # An echo program that does not interpret backslashes.
11199 echo=$lt_echo
11200
11201 # The archiver.
11202 AR=$lt_AR
11203 AR_FLAGS=$lt_AR_FLAGS
11204
11205 # A C compiler.
11206 LTCC=$lt_LTCC
11207
11208 # A language-specific compiler.
11209 CC=$lt_compiler
11210
11211 # Is the compiler the GNU C compiler?
11212 with_gcc=$GCC
11213
11214 # An ERE matcher.
11215 EGREP=$lt_EGREP
11216
11217 # The linker used to build libraries.
11218 LD=$lt_LD
11219
11220 # Whether we need hard or soft links.
11221 LN_S=$lt_LN_S
11222
11223 # A BSD-compatible nm program.
11224 NM=$lt_NM
11225
11226 # A symbol stripping program
11227 STRIP=$lt_STRIP
11228
11229 # Used to examine libraries when file_magic_cmd begins "file"
11230 MAGIC_CMD=$MAGIC_CMD
11231
11232 # Used on cygwin: DLL creation program.
11233 DLLTOOL="$DLLTOOL"
11234
11235 # Used on cygwin: object dumper.
11236 OBJDUMP="$OBJDUMP"
11237
11238 # Used on cygwin: assembler.
11239 AS="$AS"
11240
11241 # The name of the directory that contains temporary libtool files.
11242 objdir=$objdir
11243
11244 # How to create reloadable object files.
11245 reload_flag=$lt_reload_flag
11246 reload_cmds=$lt_reload_cmds
11247
11248 # How to pass a linker flag through the compiler.
11249 wl=$lt_lt_prog_compiler_wl
11250
11251 # Object file suffix (normally "o").
11252 objext="$ac_objext"
11253
11254 # Old archive suffix (normally "a").
11255 libext="$libext"
11256
11257 # Shared library suffix (normally ".so").
11258 shrext_cmds='$shrext_cmds'
11259
11260 # Executable file suffix (normally "").
11261 exeext="$exeext"
11262
11263 # Additional compiler flags for building library objects.
11264 pic_flag=$lt_lt_prog_compiler_pic
11265 pic_mode=$pic_mode
11266
11267 # What is the maximum length of a command?
11268 max_cmd_len=$lt_cv_sys_max_cmd_len
11269
11270 # Does compiler simultaneously support -c and -o options?
11271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11272
11273 # Must we lock files when doing compilation?
11274 need_locks=$lt_need_locks
11275
11276 # Do we need the lib prefix for modules?
11277 need_lib_prefix=$need_lib_prefix
11278
11279 # Do we need a version for libraries?
11280 need_version=$need_version
11281
11282 # Whether dlopen is supported.
11283 dlopen_support=$enable_dlopen
11284
11285 # Whether dlopen of programs is supported.
11286 dlopen_self=$enable_dlopen_self
11287
11288 # Whether dlopen of statically linked programs is supported.
11289 dlopen_self_static=$enable_dlopen_self_static
11290
11291 # Compiler flag to prevent dynamic linking.
11292 link_static_flag=$lt_lt_prog_compiler_static
11293
11294 # Compiler flag to turn off builtin functions.
11295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11296
11297 # Compiler flag to allow reflexive dlopens.
11298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11299
11300 # Compiler flag to generate shared objects directly from archives.
11301 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11302
11303 # Compiler flag to generate thread-safe objects.
11304 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11305
11306 # Library versioning type.
11307 version_type=$version_type
11308
11309 # Format of library name prefix.
11310 libname_spec=$lt_libname_spec
11311
11312 # List of archive names.  First name is the real one, the rest are links.
11313 # The last name is the one that the linker finds with -lNAME.
11314 library_names_spec=$lt_library_names_spec
11315
11316 # The coded name of the library, if different from the real name.
11317 soname_spec=$lt_soname_spec
11318
11319 # Commands used to build and install an old-style archive.
11320 RANLIB=$lt_RANLIB
11321 old_archive_cmds=$lt_old_archive_cmds
11322 old_postinstall_cmds=$lt_old_postinstall_cmds
11323 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11324
11325 # Create an old-style archive from a shared archive.
11326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11327
11328 # Create a temporary old-style archive to link instead of a shared archive.
11329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11330
11331 # Commands used to build and install a shared archive.
11332 archive_cmds=$lt_archive_cmds
11333 archive_expsym_cmds=$lt_archive_expsym_cmds
11334 postinstall_cmds=$lt_postinstall_cmds
11335 postuninstall_cmds=$lt_postuninstall_cmds
11336
11337 # Commands used to build a loadable module (assumed same as above if empty)
11338 module_cmds=$lt_module_cmds
11339 module_expsym_cmds=$lt_module_expsym_cmds
11340
11341 # Commands to strip libraries.
11342 old_striplib=$lt_old_striplib
11343 striplib=$lt_striplib
11344
11345 # Dependencies to place before the objects being linked to create a
11346 # shared library.
11347 predep_objects=$lt_predep_objects
11348
11349 # Dependencies to place after the objects being linked to create a
11350 # shared library.
11351 postdep_objects=$lt_postdep_objects
11352
11353 # Dependencies to place before the objects being linked to create a
11354 # shared library.
11355 predeps=$lt_predeps
11356
11357 # Dependencies to place after the objects being linked to create a
11358 # shared library.
11359 postdeps=$lt_postdeps
11360
11361 # The library search path used internally by the compiler when linking
11362 # a shared library.
11363 compiler_lib_search_path=$lt_compiler_lib_search_path
11364
11365 # Method to check whether dependent libraries are shared objects.
11366 deplibs_check_method=$lt_deplibs_check_method
11367
11368 # Command to use when deplibs_check_method == file_magic.
11369 file_magic_cmd=$lt_file_magic_cmd
11370
11371 # Flag that allows shared libraries with undefined symbols to be built.
11372 allow_undefined_flag=$lt_allow_undefined_flag
11373
11374 # Flag that forces no undefined symbols.
11375 no_undefined_flag=$lt_no_undefined_flag
11376
11377 # Commands used to finish a libtool library installation in a directory.
11378 finish_cmds=$lt_finish_cmds
11379
11380 # Same as above, but a single script fragment to be evaled but not shown.
11381 finish_eval=$lt_finish_eval
11382
11383 # Take the output of nm and produce a listing of raw symbols and C names.
11384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11385
11386 # Transform the output of nm in a proper C declaration
11387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11388
11389 # Transform the output of nm in a C name address pair
11390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11391
11392 # This is the shared library runtime path variable.
11393 runpath_var=$runpath_var
11394
11395 # This is the shared library path variable.
11396 shlibpath_var=$shlibpath_var
11397
11398 # Is shlibpath searched before the hard-coded library search path?
11399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11400
11401 # How to hardcode a shared library path into an executable.
11402 hardcode_action=$hardcode_action
11403
11404 # Whether we should hardcode library paths into libraries.
11405 hardcode_into_libs=$hardcode_into_libs
11406
11407 # Flag to hardcode \$libdir into a binary during linking.
11408 # This must work even if \$libdir does not exist.
11409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11410
11411 # If ld is used when linking, flag to hardcode \$libdir into
11412 # a binary during linking. This must work even if \$libdir does
11413 # not exist.
11414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11415
11416 # Whether we need a single -rpath flag with a separated argument.
11417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11418
11419 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11420 # resulting binary.
11421 hardcode_direct=$hardcode_direct
11422
11423 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11424 # resulting binary.
11425 hardcode_minus_L=$hardcode_minus_L
11426
11427 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11428 # the resulting binary.
11429 hardcode_shlibpath_var=$hardcode_shlibpath_var
11430
11431 # Set to yes if building a shared library automatically hardcodes DIR into the library
11432 # and all subsequent libraries and executables linked against it.
11433 hardcode_automatic=$hardcode_automatic
11434
11435 # Variables whose values should be saved in libtool wrapper scripts and
11436 # restored at relink time.
11437 variables_saved_for_relink="$variables_saved_for_relink"
11438
11439 # Whether libtool must link a program against all its dependency libraries.
11440 link_all_deplibs=$link_all_deplibs
11441
11442 # Compile-time system search path for libraries
11443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11444
11445 # Run-time system search path for libraries
11446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11447
11448 # Fix the shell variable \$srcfile for the compiler.
11449 fix_srcfile_path="$fix_srcfile_path"
11450
11451 # Set to yes if exported symbols are required.
11452 always_export_symbols=$always_export_symbols
11453
11454 # The commands to list exported symbols.
11455 export_symbols_cmds=$lt_export_symbols_cmds
11456
11457 # The commands to extract the exported symbol list from a shared archive.
11458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11459
11460 # Symbols that should not be listed in the preloaded symbols.
11461 exclude_expsyms=$lt_exclude_expsyms
11462
11463 # Symbols that must always be exported.
11464 include_expsyms=$lt_include_expsyms
11465
11466 # ### END LIBTOOL CONFIG
11467
11468 __EOF__
11469
11470
11471   case $host_os in
11472   aix3*)
11473     cat <<\EOF >> "$cfgfile"
11474
11475 # AIX sometimes has problems with the GCC collect2 program.  For some
11476 # reason, if we set the COLLECT_NAMES environment variable, the problems
11477 # vanish in a puff of smoke.
11478 if test "X${COLLECT_NAMES+set}" != Xset; then
11479   COLLECT_NAMES=
11480   export COLLECT_NAMES
11481 fi
11482 EOF
11483     ;;
11484   esac
11485
11486   # We use sed instead of cat because bash on DJGPP gets confused if
11487   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11488   # text mode, it properly converts lines to CR/LF.  This bash problem
11489   # is reportedly fixed, but why not run on old versions too?
11490   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11491
11492   mv -f "$cfgfile" "$ofile" || \
11493     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11494   chmod +x "$ofile"
11495
11496 else
11497   # If there is no Makefile yet, we rely on a make rule to execute
11498   # `config.status --recheck' to rerun these tests and create the
11499   # libtool script then.
11500   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11501   if test -f "$ltmain_in"; then
11502     test -f Makefile && make "$ltmain"
11503   fi
11504 fi
11505
11506
11507 ac_ext=c
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513 CC="$lt_save_CC"
11514
11515
11516 # Check whether --with-tags was given.
11517 if test "${with_tags+set}" = set; then :
11518   withval=$with_tags; tagnames="$withval"
11519 fi
11520
11521
11522 if test -f "$ltmain" && test -n "$tagnames"; then
11523   if test ! -f "${ofile}"; then
11524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11525 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11526   fi
11527
11528   if test -z "$LTCC"; then
11529     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11530     if test -z "$LTCC"; then
11531       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11532 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11533     else
11534       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11535 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11536     fi
11537   fi
11538
11539   # Extract list of available tagged configurations in $ofile.
11540   # Note that this assumes the entire list is on one line.
11541   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11542
11543   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11544   for tagname in $tagnames; do
11545     IFS="$lt_save_ifs"
11546     # Check whether tagname contains only valid characters
11547     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11548     "") ;;
11549     *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11550         ;;
11551     esac
11552
11553     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11554     then
11555       as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11556     fi
11557
11558     # Update the list of available tags.
11559     if test -n "$tagname"; then
11560       echo appending configuration tag \"$tagname\" to $ofile
11561
11562       case $tagname in
11563       CXX)
11564         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11565             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11566             (test "X$CXX" != "Xg++"))) ; then
11567           :
11568         else
11569           tagname=""
11570         fi
11571         ;;
11572
11573       F77)
11574         if test -n "$F77" && test "X$F77" != "Xno"; then
11575           :
11576         else
11577           tagname=""
11578         fi
11579         ;;
11580
11581       GCJ)
11582         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11583           :
11584         else
11585           tagname=""
11586         fi
11587         ;;
11588
11589       RC)
11590
11591
11592 # Source file extension for RC test sources.
11593 ac_ext=rc
11594
11595 # Object file extension for compiled RC test sources.
11596 objext=o
11597 objext_RC=$objext
11598
11599 # Code to be used in simple compile tests
11600 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11601
11602 # Code to be used in simple link tests
11603 lt_simple_link_test_code="$lt_simple_compile_test_code"
11604
11605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11606
11607 # If no C compiler was specified, use CC.
11608 LTCC=${LTCC-"$CC"}
11609
11610 # Allow CC to be a program name with arguments.
11611 compiler=$CC
11612
11613
11614 # save warnings/boilerplate of simple test code
11615 ac_outfile=conftest.$ac_objext
11616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11618 _lt_compiler_boilerplate=`cat conftest.err`
11619 $rm conftest*
11620
11621 ac_outfile=conftest.$ac_objext
11622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11624 _lt_linker_boilerplate=`cat conftest.err`
11625 $rm conftest*
11626
11627
11628 # Allow CC to be a program name with arguments.
11629 lt_save_CC="$CC"
11630 CC=${RC-"windres"}
11631 compiler=$CC
11632 compiler_RC=$CC
11633 for cc_temp in $compiler""; do
11634   case $cc_temp in
11635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11637     \-*) ;;
11638     *) break;;
11639   esac
11640 done
11641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11642
11643 lt_cv_prog_compiler_c_o_RC=yes
11644
11645 # The else clause should only fire when bootstrapping the
11646 # libtool distribution, otherwise you forgot to ship ltmain.sh
11647 # with your package, and you will get complaints that there are
11648 # no rules to generate ltmain.sh.
11649 if test -f "$ltmain"; then
11650   # See if we are running on zsh, and set the options which allow our commands through
11651   # without removal of \ escapes.
11652   if test -n "${ZSH_VERSION+set}" ; then
11653     setopt NO_GLOB_SUBST
11654   fi
11655   # Now quote all the things that may contain metacharacters while being
11656   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11657   # variables and quote the copies for generation of the libtool script.
11658   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11659     SED SHELL STRIP \
11660     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11661     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11662     deplibs_check_method reload_flag reload_cmds need_locks \
11663     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11664     lt_cv_sys_global_symbol_to_c_name_address \
11665     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11666     old_postinstall_cmds old_postuninstall_cmds \
11667     compiler_RC \
11668     CC_RC \
11669     LD_RC \
11670     lt_prog_compiler_wl_RC \
11671     lt_prog_compiler_pic_RC \
11672     lt_prog_compiler_static_RC \
11673     lt_prog_compiler_no_builtin_flag_RC \
11674     export_dynamic_flag_spec_RC \
11675     thread_safe_flag_spec_RC \
11676     whole_archive_flag_spec_RC \
11677     enable_shared_with_static_runtimes_RC \
11678     old_archive_cmds_RC \
11679     old_archive_from_new_cmds_RC \
11680     predep_objects_RC \
11681     postdep_objects_RC \
11682     predeps_RC \
11683     postdeps_RC \
11684     compiler_lib_search_path_RC \
11685     archive_cmds_RC \
11686     archive_expsym_cmds_RC \
11687     postinstall_cmds_RC \
11688     postuninstall_cmds_RC \
11689     old_archive_from_expsyms_cmds_RC \
11690     allow_undefined_flag_RC \
11691     no_undefined_flag_RC \
11692     export_symbols_cmds_RC \
11693     hardcode_libdir_flag_spec_RC \
11694     hardcode_libdir_flag_spec_ld_RC \
11695     hardcode_libdir_separator_RC \
11696     hardcode_automatic_RC \
11697     module_cmds_RC \
11698     module_expsym_cmds_RC \
11699     lt_cv_prog_compiler_c_o_RC \
11700     exclude_expsyms_RC \
11701     include_expsyms_RC; do
11702
11703     case $var in
11704     old_archive_cmds_RC | \
11705     old_archive_from_new_cmds_RC | \
11706     archive_cmds_RC | \
11707     archive_expsym_cmds_RC | \
11708     module_cmds_RC | \
11709     module_expsym_cmds_RC | \
11710     old_archive_from_expsyms_cmds_RC | \
11711     export_symbols_cmds_RC | \
11712     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11713     postinstall_cmds | postuninstall_cmds | \
11714     old_postinstall_cmds | old_postuninstall_cmds | \
11715     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11716       # Double-quote double-evaled strings.
11717       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11718       ;;
11719     *)
11720       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11721       ;;
11722     esac
11723   done
11724
11725   case $lt_echo in
11726   *'\$0 --fallback-echo"')
11727     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11728     ;;
11729   esac
11730
11731 cfgfile="$ofile"
11732
11733   cat <<__EOF__ >> "$cfgfile"
11734 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11735
11736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11737
11738 # Shell to use when invoking shell scripts.
11739 SHELL=$lt_SHELL
11740
11741 # Whether or not to build shared libraries.
11742 build_libtool_libs=$enable_shared
11743
11744 # Whether or not to build static libraries.
11745 build_old_libs=$enable_static
11746
11747 # Whether or not to add -lc for building shared libraries.
11748 build_libtool_need_lc=$archive_cmds_need_lc_RC
11749
11750 # Whether or not to disallow shared libs when runtime libs are static
11751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11752
11753 # Whether or not to optimize for fast installation.
11754 fast_install=$enable_fast_install
11755
11756 # The host system.
11757 host_alias=$host_alias
11758 host=$host
11759 host_os=$host_os
11760
11761 # The build system.
11762 build_alias=$build_alias
11763 build=$build
11764 build_os=$build_os
11765
11766 # An echo program that does not interpret backslashes.
11767 echo=$lt_echo
11768
11769 # The archiver.
11770 AR=$lt_AR
11771 AR_FLAGS=$lt_AR_FLAGS
11772
11773 # A C compiler.
11774 LTCC=$lt_LTCC
11775
11776 # A language-specific compiler.
11777 CC=$lt_compiler_RC
11778
11779 # Is the compiler the GNU C compiler?
11780 with_gcc=$GCC_RC
11781
11782 # An ERE matcher.
11783 EGREP=$lt_EGREP
11784
11785 # The linker used to build libraries.
11786 LD=$lt_LD_RC
11787
11788 # Whether we need hard or soft links.
11789 LN_S=$lt_LN_S
11790
11791 # A BSD-compatible nm program.
11792 NM=$lt_NM
11793
11794 # A symbol stripping program
11795 STRIP=$lt_STRIP
11796
11797 # Used to examine libraries when file_magic_cmd begins "file"
11798 MAGIC_CMD=$MAGIC_CMD
11799
11800 # Used on cygwin: DLL creation program.
11801 DLLTOOL="$DLLTOOL"
11802
11803 # Used on cygwin: object dumper.
11804 OBJDUMP="$OBJDUMP"
11805
11806 # Used on cygwin: assembler.
11807 AS="$AS"
11808
11809 # The name of the directory that contains temporary libtool files.
11810 objdir=$objdir
11811
11812 # How to create reloadable object files.
11813 reload_flag=$lt_reload_flag
11814 reload_cmds=$lt_reload_cmds
11815
11816 # How to pass a linker flag through the compiler.
11817 wl=$lt_lt_prog_compiler_wl_RC
11818
11819 # Object file suffix (normally "o").
11820 objext="$ac_objext"
11821
11822 # Old archive suffix (normally "a").
11823 libext="$libext"
11824
11825 # Shared library suffix (normally ".so").
11826 shrext_cmds='$shrext_cmds'
11827
11828 # Executable file suffix (normally "").
11829 exeext="$exeext"
11830
11831 # Additional compiler flags for building library objects.
11832 pic_flag=$lt_lt_prog_compiler_pic_RC
11833 pic_mode=$pic_mode
11834
11835 # What is the maximum length of a command?
11836 max_cmd_len=$lt_cv_sys_max_cmd_len
11837
11838 # Does compiler simultaneously support -c and -o options?
11839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11840
11841 # Must we lock files when doing compilation?
11842 need_locks=$lt_need_locks
11843
11844 # Do we need the lib prefix for modules?
11845 need_lib_prefix=$need_lib_prefix
11846
11847 # Do we need a version for libraries?
11848 need_version=$need_version
11849
11850 # Whether dlopen is supported.
11851 dlopen_support=$enable_dlopen
11852
11853 # Whether dlopen of programs is supported.
11854 dlopen_self=$enable_dlopen_self
11855
11856 # Whether dlopen of statically linked programs is supported.
11857 dlopen_self_static=$enable_dlopen_self_static
11858
11859 # Compiler flag to prevent dynamic linking.
11860 link_static_flag=$lt_lt_prog_compiler_static_RC
11861
11862 # Compiler flag to turn off builtin functions.
11863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11864
11865 # Compiler flag to allow reflexive dlopens.
11866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11867
11868 # Compiler flag to generate shared objects directly from archives.
11869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11870
11871 # Compiler flag to generate thread-safe objects.
11872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11873
11874 # Library versioning type.
11875 version_type=$version_type
11876
11877 # Format of library name prefix.
11878 libname_spec=$lt_libname_spec
11879
11880 # List of archive names.  First name is the real one, the rest are links.
11881 # The last name is the one that the linker finds with -lNAME.
11882 library_names_spec=$lt_library_names_spec
11883
11884 # The coded name of the library, if different from the real name.
11885 soname_spec=$lt_soname_spec
11886
11887 # Commands used to build and install an old-style archive.
11888 RANLIB=$lt_RANLIB
11889 old_archive_cmds=$lt_old_archive_cmds_RC
11890 old_postinstall_cmds=$lt_old_postinstall_cmds
11891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11892
11893 # Create an old-style archive from a shared archive.
11894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11895
11896 # Create a temporary old-style archive to link instead of a shared archive.
11897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11898
11899 # Commands used to build and install a shared archive.
11900 archive_cmds=$lt_archive_cmds_RC
11901 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11902 postinstall_cmds=$lt_postinstall_cmds
11903 postuninstall_cmds=$lt_postuninstall_cmds
11904
11905 # Commands used to build a loadable module (assumed same as above if empty)
11906 module_cmds=$lt_module_cmds_RC
11907 module_expsym_cmds=$lt_module_expsym_cmds_RC
11908
11909 # Commands to strip libraries.
11910 old_striplib=$lt_old_striplib
11911 striplib=$lt_striplib
11912
11913 # Dependencies to place before the objects being linked to create a
11914 # shared library.
11915 predep_objects=$lt_predep_objects_RC
11916
11917 # Dependencies to place after the objects being linked to create a
11918 # shared library.
11919 postdep_objects=$lt_postdep_objects_RC
11920
11921 # Dependencies to place before the objects being linked to create a
11922 # shared library.
11923 predeps=$lt_predeps_RC
11924
11925 # Dependencies to place after the objects being linked to create a
11926 # shared library.
11927 postdeps=$lt_postdeps_RC
11928
11929 # The library search path used internally by the compiler when linking
11930 # a shared library.
11931 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11932
11933 # Method to check whether dependent libraries are shared objects.
11934 deplibs_check_method=$lt_deplibs_check_method
11935
11936 # Command to use when deplibs_check_method == file_magic.
11937 file_magic_cmd=$lt_file_magic_cmd
11938
11939 # Flag that allows shared libraries with undefined symbols to be built.
11940 allow_undefined_flag=$lt_allow_undefined_flag_RC
11941
11942 # Flag that forces no undefined symbols.
11943 no_undefined_flag=$lt_no_undefined_flag_RC
11944
11945 # Commands used to finish a libtool library installation in a directory.
11946 finish_cmds=$lt_finish_cmds
11947
11948 # Same as above, but a single script fragment to be evaled but not shown.
11949 finish_eval=$lt_finish_eval
11950
11951 # Take the output of nm and produce a listing of raw symbols and C names.
11952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11953
11954 # Transform the output of nm in a proper C declaration
11955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11956
11957 # Transform the output of nm in a C name address pair
11958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11959
11960 # This is the shared library runtime path variable.
11961 runpath_var=$runpath_var
11962
11963 # This is the shared library path variable.
11964 shlibpath_var=$shlibpath_var
11965
11966 # Is shlibpath searched before the hard-coded library search path?
11967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11968
11969 # How to hardcode a shared library path into an executable.
11970 hardcode_action=$hardcode_action_RC
11971
11972 # Whether we should hardcode library paths into libraries.
11973 hardcode_into_libs=$hardcode_into_libs
11974
11975 # Flag to hardcode \$libdir into a binary during linking.
11976 # This must work even if \$libdir does not exist.
11977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11978
11979 # If ld is used when linking, flag to hardcode \$libdir into
11980 # a binary during linking. This must work even if \$libdir does
11981 # not exist.
11982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11983
11984 # Whether we need a single -rpath flag with a separated argument.
11985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11986
11987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11988 # resulting binary.
11989 hardcode_direct=$hardcode_direct_RC
11990
11991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11992 # resulting binary.
11993 hardcode_minus_L=$hardcode_minus_L_RC
11994
11995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11996 # the resulting binary.
11997 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11998
11999 # Set to yes if building a shared library automatically hardcodes DIR into the library
12000 # and all subsequent libraries and executables linked against it.
12001 hardcode_automatic=$hardcode_automatic_RC
12002
12003 # Variables whose values should be saved in libtool wrapper scripts and
12004 # restored at relink time.
12005 variables_saved_for_relink="$variables_saved_for_relink"
12006
12007 # Whether libtool must link a program against all its dependency libraries.
12008 link_all_deplibs=$link_all_deplibs_RC
12009
12010 # Compile-time system search path for libraries
12011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12012
12013 # Run-time system search path for libraries
12014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12015
12016 # Fix the shell variable \$srcfile for the compiler.
12017 fix_srcfile_path="$fix_srcfile_path_RC"
12018
12019 # Set to yes if exported symbols are required.
12020 always_export_symbols=$always_export_symbols_RC
12021
12022 # The commands to list exported symbols.
12023 export_symbols_cmds=$lt_export_symbols_cmds_RC
12024
12025 # The commands to extract the exported symbol list from a shared archive.
12026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12027
12028 # Symbols that should not be listed in the preloaded symbols.
12029 exclude_expsyms=$lt_exclude_expsyms_RC
12030
12031 # Symbols that must always be exported.
12032 include_expsyms=$lt_include_expsyms_RC
12033
12034 # ### END LIBTOOL TAG CONFIG: $tagname
12035
12036 __EOF__
12037
12038
12039 else
12040   # If there is no Makefile yet, we rely on a make rule to execute
12041   # `config.status --recheck' to rerun these tests and create the
12042   # libtool script then.
12043   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12044   if test -f "$ltmain_in"; then
12045     test -f Makefile && make "$ltmain"
12046   fi
12047 fi
12048
12049
12050 ac_ext=c
12051 ac_cpp='$CPP $CPPFLAGS'
12052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055
12056 CC="$lt_save_CC"
12057
12058         ;;
12059
12060       *)
12061         as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12062         ;;
12063       esac
12064
12065       # Append the new tag name to the list of available tags.
12066       if test -n "$tagname" ; then
12067       available_tags="$available_tags $tagname"
12068     fi
12069     fi
12070   done
12071   IFS="$lt_save_ifs"
12072
12073   # Now substitute the updated list of available tags.
12074   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12075     mv "${ofile}T" "$ofile"
12076     chmod +x "$ofile"
12077   else
12078     rm -f "${ofile}T"
12079     as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12080   fi
12081 fi
12082
12083
12084
12085 # This can be used to rebuild libtool when needed
12086 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12087
12088 # Always use our own libtool.
12089 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12090
12091 # Prevent multiple expansion
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102 ol_link_perl=no
12103 if test $ol_enable_perl != no ; then
12104         # Extract the first word of "perl", so it can be a program name with args.
12105 set dummy perl; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if test "${ac_cv_path_PERLBIN+set}" = set; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   case $PERLBIN in
12112   [\\/]* | ?:[\\/]*)
12113   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12114   ;;
12115   *)
12116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119   IFS=$as_save_IFS
12120   test -z "$as_dir" && as_dir=.
12121     for ac_exec_ext in '' $ac_executable_extensions; do
12122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125     break 2
12126   fi
12127 done
12128   done
12129 IFS=$as_save_IFS
12130
12131   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12132   ;;
12133 esac
12134 fi
12135 PERLBIN=$ac_cv_path_PERLBIN
12136 if test -n "$PERLBIN"; then
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12138 $as_echo "$PERLBIN" >&6; }
12139 else
12140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143
12144
12145
12146         if test "no$PERLBIN" = "no" ; then
12147                 if test $ol_enable_perl = yes ; then
12148                         as_fn_error "could not locate perl" "$LINENO" 5
12149                 fi
12150
12151         else
12152                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12153                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12154
12155                 if test x"$ol_enable_perl" = "xyes" ; then
12156                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12157                 else
12158                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12159                 fi
12160                                 ol_link_perl=yes
12161         fi
12162 fi
12163
12164 ac_ext=c
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12170 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12171 # On Suns, sometimes $CPP names a directory.
12172 if test -n "$CPP" && test -d "$CPP"; then
12173   CPP=
12174 fi
12175 if test -z "$CPP"; then
12176   if test "${ac_cv_prog_CPP+set}" = set; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179       # Double quotes because CPP needs to be expanded
12180     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12181     do
12182       ac_preproc_ok=false
12183 for ac_c_preproc_warn_flag in '' yes
12184 do
12185   # Use a header file that comes with gcc, so configuring glibc
12186   # with a fresh cross-compiler works.
12187   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12188   # <limits.h> exists even on freestanding compilers.
12189   # On the NeXT, cc -E runs the code through the compiler's parser,
12190   # not just through cpp. "Syntax error" is here to catch this case.
12191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h.  */
12193 #ifdef __STDC__
12194 # include <limits.h>
12195 #else
12196 # include <assert.h>
12197 #endif
12198                      Syntax error
12199 _ACEOF
12200 if ac_fn_c_try_cpp "$LINENO"; then :
12201
12202 else
12203   # Broken: fails on valid input.
12204 continue
12205 fi
12206 rm -f conftest.err conftest.$ac_ext
12207
12208   # OK, works on sane cases.  Now check whether nonexistent headers
12209   # can be detected and how.
12210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h.  */
12212 #include <ac_nonexistent.h>
12213 _ACEOF
12214 if ac_fn_c_try_cpp "$LINENO"; then :
12215   # Broken: success on invalid input.
12216 continue
12217 else
12218   # Passes both tests.
12219 ac_preproc_ok=:
12220 break
12221 fi
12222 rm -f conftest.err conftest.$ac_ext
12223
12224 done
12225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12226 rm -f conftest.err conftest.$ac_ext
12227 if $ac_preproc_ok; then :
12228   break
12229 fi
12230
12231     done
12232     ac_cv_prog_CPP=$CPP
12233
12234 fi
12235   CPP=$ac_cv_prog_CPP
12236 else
12237   ac_cv_prog_CPP=$CPP
12238 fi
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12240 $as_echo "$CPP" >&6; }
12241 ac_preproc_ok=false
12242 for ac_c_preproc_warn_flag in '' yes
12243 do
12244   # Use a header file that comes with gcc, so configuring glibc
12245   # with a fresh cross-compiler works.
12246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12247   # <limits.h> exists even on freestanding compilers.
12248   # On the NeXT, cc -E runs the code through the compiler's parser,
12249   # not just through cpp. "Syntax error" is here to catch this case.
12250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h.  */
12252 #ifdef __STDC__
12253 # include <limits.h>
12254 #else
12255 # include <assert.h>
12256 #endif
12257                      Syntax error
12258 _ACEOF
12259 if ac_fn_c_try_cpp "$LINENO"; then :
12260
12261 else
12262   # Broken: fails on valid input.
12263 continue
12264 fi
12265 rm -f conftest.err conftest.$ac_ext
12266
12267   # OK, works on sane cases.  Now check whether nonexistent headers
12268   # can be detected and how.
12269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h.  */
12271 #include <ac_nonexistent.h>
12272 _ACEOF
12273 if ac_fn_c_try_cpp "$LINENO"; then :
12274   # Broken: success on invalid input.
12275 continue
12276 else
12277   # Passes both tests.
12278 ac_preproc_ok=:
12279 break
12280 fi
12281 rm -f conftest.err conftest.$ac_ext
12282
12283 done
12284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12285 rm -f conftest.err conftest.$ac_ext
12286 if $ac_preproc_ok; then :
12287
12288 else
12289   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12291 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12292 See \`config.log' for more details." "$LINENO" 5; }
12293 fi
12294
12295 ac_ext=c
12296 ac_cpp='$CPP $CPPFLAGS'
12297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12302 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12303 if test "${ol_cv_msvc+set}" = set; then :
12304   $as_echo_n "(cached) " >&6
12305 else
12306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h.  */
12308
12309 #ifndef _MSC_VER
12310 #include <__FOO__/generate_error.h>
12311 #endif
12312
12313 _ACEOF
12314 if ac_fn_c_try_cpp "$LINENO"; then :
12315   ol_cv_msvc=yes
12316 else
12317   ol_cv_msvc=no
12318 fi
12319 rm -f conftest.err conftest.$ac_ext
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12322 $as_echo "$ol_cv_msvc" >&6; }
12323
12324 case $host_os in
12325   *mingw32* ) ac_cv_mingw32=yes ;;
12326   *cygwin* ) ac_cv_cygwin=yes ;;
12327   *interix* ) ac_cv_interix=yes ;;
12328 esac
12329
12330
12331
12332
12333 cat >>confdefs.h <<_ACEOF
12334 #define EXEEXT "${EXEEXT}"
12335 _ACEOF
12336
12337
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12339 $as_echo_n "checking for be_app in -lbe... " >&6; }
12340 if test "${ac_cv_lib_be_be_app+set}" = set; then :
12341   $as_echo_n "(cached) " >&6
12342 else
12343   ac_check_lib_save_LIBS=$LIBS
12344 LIBS="-lbe -lroot -lnet $LIBS"
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h.  */
12347
12348 /* Override any GCC internal prototype to avoid an error.
12349    Use char because int might match the return type of a GCC
12350    builtin and then its argument prototype would still apply.  */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 char be_app ();
12355 int
12356 main ()
12357 {
12358 return be_app ();
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"; then :
12364   ac_cv_lib_be_be_app=yes
12365 else
12366   ac_cv_lib_be_be_app=no
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext \
12369     conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12373 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12374 if test "x$ac_cv_lib_be_be_app" = x""yes; then :
12375   LIBS="$LIBS -lbe -lroot -lnet"
12376 else
12377   :
12378 fi
12379
12380
12381 ac_ext=c
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386 if test -n "$ac_tool_prefix"; then
12387   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_prog_CC+set}" = set; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   if test -n "$CC"; then
12395   ac_cv_prog_CC="$CC" # Let the user override the test.
12396 else
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12399 do
12400   IFS=$as_save_IFS
12401   test -z "$as_dir" && as_dir=.
12402     for ac_exec_ext in '' $ac_executable_extensions; do
12403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406     break 2
12407   fi
12408 done
12409   done
12410 IFS=$as_save_IFS
12411
12412 fi
12413 fi
12414 CC=$ac_cv_prog_CC
12415 if test -n "$CC"; then
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12417 $as_echo "$CC" >&6; }
12418 else
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422
12423
12424 fi
12425 if test -z "$ac_cv_prog_CC"; then
12426   ac_ct_CC=$CC
12427   # Extract the first word of "gcc", so it can be a program name with args.
12428 set dummy gcc; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   if test -n "$ac_ct_CC"; then
12435   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12436 else
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12439 do
12440   IFS=$as_save_IFS
12441   test -z "$as_dir" && as_dir=.
12442     for ac_exec_ext in '' $ac_executable_extensions; do
12443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444     ac_cv_prog_ac_ct_CC="gcc"
12445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446     break 2
12447   fi
12448 done
12449   done
12450 IFS=$as_save_IFS
12451
12452 fi
12453 fi
12454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12455 if test -n "$ac_ct_CC"; then
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12457 $as_echo "$ac_ct_CC" >&6; }
12458 else
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461 fi
12462
12463   if test "x$ac_ct_CC" = x; then
12464     CC=""
12465   else
12466     case $cross_compiling:$ac_tool_warned in
12467 yes:)
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470 ac_tool_warned=yes ;;
12471 esac
12472     CC=$ac_ct_CC
12473   fi
12474 else
12475   CC="$ac_cv_prog_CC"
12476 fi
12477
12478 if test -z "$CC"; then
12479           if test -n "$ac_tool_prefix"; then
12480     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12481 set dummy ${ac_tool_prefix}cc; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_prog_CC+set}" = set; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   if test -n "$CC"; then
12488   ac_cv_prog_CC="$CC" # Let the user override the test.
12489 else
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493   IFS=$as_save_IFS
12494   test -z "$as_dir" && as_dir=.
12495     for ac_exec_ext in '' $ac_executable_extensions; do
12496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12497     ac_cv_prog_CC="${ac_tool_prefix}cc"
12498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499     break 2
12500   fi
12501 done
12502   done
12503 IFS=$as_save_IFS
12504
12505 fi
12506 fi
12507 CC=$ac_cv_prog_CC
12508 if test -n "$CC"; then
12509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12510 $as_echo "$CC" >&6; }
12511 else
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516
12517   fi
12518 fi
12519 if test -z "$CC"; then
12520   # Extract the first word of "cc", so it can be a program name with args.
12521 set dummy cc; ac_word=$2
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if test "${ac_cv_prog_CC+set}" = set; then :
12525   $as_echo_n "(cached) " >&6
12526 else
12527   if test -n "$CC"; then
12528   ac_cv_prog_CC="$CC" # Let the user override the test.
12529 else
12530   ac_prog_rejected=no
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12533 do
12534   IFS=$as_save_IFS
12535   test -z "$as_dir" && as_dir=.
12536     for ac_exec_ext in '' $ac_executable_extensions; do
12537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12539        ac_prog_rejected=yes
12540        continue
12541      fi
12542     ac_cv_prog_CC="cc"
12543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544     break 2
12545   fi
12546 done
12547   done
12548 IFS=$as_save_IFS
12549
12550 if test $ac_prog_rejected = yes; then
12551   # We found a bogon in the path, so make sure we never use it.
12552   set dummy $ac_cv_prog_CC
12553   shift
12554   if test $# != 0; then
12555     # We chose a different compiler from the bogus one.
12556     # However, it has the same basename, so the bogon will be chosen
12557     # first if we set CC to just the basename; use the full file name.
12558     shift
12559     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12560   fi
12561 fi
12562 fi
12563 fi
12564 CC=$ac_cv_prog_CC
12565 if test -n "$CC"; then
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12567 $as_echo "$CC" >&6; }
12568 else
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572
12573
12574 fi
12575 if test -z "$CC"; then
12576   if test -n "$ac_tool_prefix"; then
12577   for ac_prog in cl.exe
12578   do
12579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if test "${ac_cv_prog_CC+set}" = set; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   if test -n "$CC"; then
12587   ac_cv_prog_CC="$CC" # Let the user override the test.
12588 else
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12591 do
12592   IFS=$as_save_IFS
12593   test -z "$as_dir" && as_dir=.
12594     for ac_exec_ext in '' $ac_executable_extensions; do
12595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598     break 2
12599   fi
12600 done
12601   done
12602 IFS=$as_save_IFS
12603
12604 fi
12605 fi
12606 CC=$ac_cv_prog_CC
12607 if test -n "$CC"; then
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12609 $as_echo "$CC" >&6; }
12610 else
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613 fi
12614
12615
12616     test -n "$CC" && break
12617   done
12618 fi
12619 if test -z "$CC"; then
12620   ac_ct_CC=$CC
12621   for ac_prog in cl.exe
12622 do
12623   # Extract the first word of "$ac_prog", so it can be a program name with args.
12624 set dummy $ac_prog; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12628   $as_echo_n "(cached) " >&6
12629 else
12630   if test -n "$ac_ct_CC"; then
12631   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12632 else
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12635 do
12636   IFS=$as_save_IFS
12637   test -z "$as_dir" && as_dir=.
12638     for ac_exec_ext in '' $ac_executable_extensions; do
12639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12640     ac_cv_prog_ac_ct_CC="$ac_prog"
12641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12642     break 2
12643   fi
12644 done
12645   done
12646 IFS=$as_save_IFS
12647
12648 fi
12649 fi
12650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12651 if test -n "$ac_ct_CC"; then
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12653 $as_echo "$ac_ct_CC" >&6; }
12654 else
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 fi
12658
12659
12660   test -n "$ac_ct_CC" && break
12661 done
12662
12663   if test "x$ac_ct_CC" = x; then
12664     CC=""
12665   else
12666     case $cross_compiling:$ac_tool_warned in
12667 yes:)
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12670 ac_tool_warned=yes ;;
12671 esac
12672     CC=$ac_ct_CC
12673   fi
12674 fi
12675
12676 fi
12677
12678
12679 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12681 as_fn_error "no acceptable C compiler found in \$PATH
12682 See \`config.log' for more details." "$LINENO" 5; }
12683
12684 # Provide some information about the compiler.
12685 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12686 set X $ac_compile
12687 ac_compiler=$2
12688 for ac_option in --version -v -V -qversion; do
12689   { { ac_try="$ac_compiler $ac_option >&5"
12690 case "(($ac_try" in
12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692   *) ac_try_echo=$ac_try;;
12693 esac
12694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12695 $as_echo "$ac_try_echo"; } >&5
12696   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12697   ac_status=$?
12698   if test -s conftest.err; then
12699     sed '10a\
12700 ... rest of stderr output deleted ...
12701          10q' conftest.err >conftest.er1
12702     cat conftest.er1 >&5
12703   fi
12704   rm -f conftest.er1 conftest.err
12705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706   test $ac_status = 0; }
12707 done
12708
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12711 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12712   $as_echo_n "(cached) " >&6
12713 else
12714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h.  */
12716
12717 int
12718 main ()
12719 {
12720 #ifndef __GNUC__
12721        choke me
12722 #endif
12723
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729   ac_compiler_gnu=yes
12730 else
12731   ac_compiler_gnu=no
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12735
12736 fi
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12739 if test $ac_compiler_gnu = yes; then
12740   GCC=yes
12741 else
12742   GCC=
12743 fi
12744 ac_test_CFLAGS=${CFLAGS+set}
12745 ac_save_CFLAGS=$CFLAGS
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12748 if test "${ac_cv_prog_cc_g+set}" = set; then :
12749   $as_echo_n "(cached) " >&6
12750 else
12751   ac_save_c_werror_flag=$ac_c_werror_flag
12752    ac_c_werror_flag=yes
12753    ac_cv_prog_cc_g=no
12754    CFLAGS="-g"
12755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h.  */
12757
12758 int
12759 main ()
12760 {
12761
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 if ac_fn_c_try_compile "$LINENO"; then :
12767   ac_cv_prog_cc_g=yes
12768 else
12769   CFLAGS=""
12770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h.  */
12772
12773 int
12774 main ()
12775 {
12776
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782
12783 else
12784   ac_c_werror_flag=$ac_save_c_werror_flag
12785          CFLAGS="-g"
12786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h.  */
12788
12789 int
12790 main ()
12791 {
12792
12793   ;
12794   return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_compile "$LINENO"; then :
12798   ac_cv_prog_cc_g=yes
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805    ac_c_werror_flag=$ac_save_c_werror_flag
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12808 $as_echo "$ac_cv_prog_cc_g" >&6; }
12809 if test "$ac_test_CFLAGS" = set; then
12810   CFLAGS=$ac_save_CFLAGS
12811 elif test $ac_cv_prog_cc_g = yes; then
12812   if test "$GCC" = yes; then
12813     CFLAGS="-g -O2"
12814   else
12815     CFLAGS="-g"
12816   fi
12817 else
12818   if test "$GCC" = yes; then
12819     CFLAGS="-O2"
12820   else
12821     CFLAGS=
12822   fi
12823 fi
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12826 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   ac_cv_prog_cc_c89=no
12830 ac_save_CC=$CC
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h.  */
12833 #include <stdarg.h>
12834 #include <stdio.h>
12835 #include <sys/types.h>
12836 #include <sys/stat.h>
12837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12838 struct buf { int x; };
12839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12840 static char *e (p, i)
12841      char **p;
12842      int i;
12843 {
12844   return p[i];
12845 }
12846 static char *f (char * (*g) (char **, int), char **p, ...)
12847 {
12848   char *s;
12849   va_list v;
12850   va_start (v,p);
12851   s = g (p, va_arg (v,int));
12852   va_end (v);
12853   return s;
12854 }
12855
12856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12857    function prototypes and stuff, but not '\xHH' hex character constants.
12858    These don't provoke an error unfortunately, instead are silently treated
12859    as 'x'.  The following induces an error, until -std is added to get
12860    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12861    array size at least.  It's necessary to write '\x00'==0 to get something
12862    that's true only with -std.  */
12863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12864
12865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12866    inside strings and character constants.  */
12867 #define FOO(x) 'x'
12868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12869
12870 int test (int i, double x);
12871 struct s1 {int (*f) (int a);};
12872 struct s2 {int (*f) (double a);};
12873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12874 int argc;
12875 char **argv;
12876 int
12877 main ()
12878 {
12879 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12885         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12886 do
12887   CC="$ac_save_CC $ac_arg"
12888   if ac_fn_c_try_compile "$LINENO"; then :
12889   ac_cv_prog_cc_c89=$ac_arg
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext
12892   test "x$ac_cv_prog_cc_c89" != "xno" && break
12893 done
12894 rm -f conftest.$ac_ext
12895 CC=$ac_save_CC
12896
12897 fi
12898 # AC_CACHE_VAL
12899 case "x$ac_cv_prog_cc_c89" in
12900   x)
12901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12902 $as_echo "none needed" >&6; } ;;
12903   xno)
12904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12905 $as_echo "unsupported" >&6; } ;;
12906   *)
12907     CC="$CC $ac_cv_prog_cc_c89"
12908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12910 esac
12911 if test "x$ac_cv_prog_cc_c89" != xno; then :
12912
12913 fi
12914
12915 ac_ext=c
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921 depcc="$CC"   am_compiler_list=
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12924 $as_echo_n "checking dependency style of $depcc... " >&6; }
12925 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12929   # We make a subdir and do the tests there.  Otherwise we can end up
12930   # making bogus files that we don't know about and never remove.  For
12931   # instance it was reported that on HP-UX the gcc test will end up
12932   # making a dummy file named `D' -- because `-MD' means `put the output
12933   # in D'.
12934   mkdir conftest.dir
12935   # Copy depcomp to subdir because otherwise we won't find it if we're
12936   # using a relative directory.
12937   cp "$am_depcomp" conftest.dir
12938   cd conftest.dir
12939   # We will build objects and dependencies in a subdirectory because
12940   # it helps to detect inapplicable dependency modes.  For instance
12941   # both Tru64's cc and ICC support -MD to output dependencies as a
12942   # side effect of compilation, but ICC will put the dependencies in
12943   # the current directory while Tru64 will put them in the object
12944   # directory.
12945   mkdir sub
12946
12947   am_cv_CC_dependencies_compiler_type=none
12948   if test "$am_compiler_list" = ""; then
12949      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12950   fi
12951   for depmode in $am_compiler_list; do
12952     # Setup a source with many dependencies, because some compilers
12953     # like to wrap large dependency lists on column 80 (with \), and
12954     # we should not choose a depcomp mode which is confused by this.
12955     #
12956     # We need to recreate these files for each test, as the compiler may
12957     # overwrite some of them when testing with obscure command lines.
12958     # This happens at least with the AIX C compiler.
12959     : > sub/conftest.c
12960     for i in 1 2 3 4 5 6; do
12961       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12962       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12963       # Solaris 8's {/usr,}/bin/sh.
12964       touch sub/conftst$i.h
12965     done
12966     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12967
12968     case $depmode in
12969     nosideeffect)
12970       # after this tag, mechanisms are not by side-effect, so they'll
12971       # only be used when explicitly requested
12972       if test "x$enable_dependency_tracking" = xyes; then
12973         continue
12974       else
12975         break
12976       fi
12977       ;;
12978     none) break ;;
12979     esac
12980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12981     # mode.  It turns out that the SunPro C++ compiler does not properly
12982     # handle `-M -o', and we need to detect this.
12983     if depmode=$depmode \
12984        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12985        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12986        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12987          >/dev/null 2>conftest.err &&
12988        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12989        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12990        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12991       # icc doesn't choke on unknown options, it will just issue warnings
12992       # or remarks (even with -Werror).  So we grep stderr for any message
12993       # that says an option was ignored or not supported.
12994       # When given -MP, icc 7.0 and 7.1 complain thusly:
12995       #   icc: Command line warning: ignoring option '-M'; no argument required
12996       # The diagnosis changed in icc 8.0:
12997       #   icc: Command line remark: option '-MP' not supported
12998       if (grep 'ignoring option' conftest.err ||
12999           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13000         am_cv_CC_dependencies_compiler_type=$depmode
13001         break
13002       fi
13003     fi
13004   done
13005
13006   cd ..
13007   rm -rf conftest.dir
13008 else
13009   am_cv_CC_dependencies_compiler_type=none
13010 fi
13011
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13014 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13015 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13016
13017
13018
13019 if
13020   test "x$enable_dependency_tracking" != xno \
13021   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13022   am__fastdepCC_TRUE=
13023   am__fastdepCC_FALSE='#'
13024 else
13025   am__fastdepCC_TRUE='#'
13026   am__fastdepCC_FALSE=
13027 fi
13028
13029
13030 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13031         as_fn_error "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13032 fi
13033
13034 # test for make depend flag
13035 OL_MKDEP=
13036 OL_MKDEP_FLAGS=
13037 if test -z "${MKDEP}"; then
13038         OL_MKDEP="${CC-cc}"
13039         if test -z "${MKDEP_FLAGS}"; then
13040                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13041 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13042 if test "${ol_cv_mkdep+set}" = set; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045
13046                         ol_cv_mkdep=no
13047                         for flag in "-M" "-xM"; do
13048                                 cat > conftest.c <<EOF
13049  noCode;
13050 EOF
13051                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13052   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13053   (eval $ac_try) 2>&5
13054   ac_status=$?
13055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056   test $ac_status = 0; }; } \
13057                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13058                                 then
13059                                         if test ! -f conftest."${ac_object}" ; then
13060                                                 ol_cv_mkdep=$flag
13061                                                 OL_MKDEP_FLAGS="$flag"
13062                                                 break
13063                                         fi
13064                                 fi
13065                         done
13066                         rm -f conftest*
13067
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13070 $as_echo "$ol_cv_mkdep" >&6; }
13071                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13072         else
13073                 cc_cv_mkdep=yes
13074                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13075         fi
13076 else
13077         cc_cv_mkdep=yes
13078         OL_MKDEP="${MKDEP}"
13079         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13080 fi
13081
13082
13083
13084 if test "${ol_cv_mkdep}" = no ; then
13085         # this will soon become an error
13086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13087 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13088 fi
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13091 $as_echo_n "checking for afopen in -ls... " >&6; }
13092 if test "${ac_cv_lib_s_afopen+set}" = set; then :
13093   $as_echo_n "(cached) " >&6
13094 else
13095   ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-ls  $LIBS"
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h.  */
13099
13100 /* Override any GCC internal prototype to avoid an error.
13101    Use char because int might match the return type of a GCC
13102    builtin and then its argument prototype would still apply.  */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char afopen ();
13107 int
13108 main ()
13109 {
13110 return afopen ();
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116   ac_cv_lib_s_afopen=yes
13117 else
13118   ac_cv_lib_s_afopen=no
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext \
13121     conftest$ac_exeext conftest.$ac_ext
13122 LIBS=$ac_check_lib_save_LIBS
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13125 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13126 if test "x$ac_cv_lib_s_afopen" = x""yes; then :
13127
13128         AUTH_LIBS=-ls
13129
13130 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13131
13132
13133 fi
13134
13135
13136 case "$target" in
13137 *-ibm-openedition)
13138         ac_cv_func_getopt=no
13139
13140 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13141
13142         ;;
13143 esac
13144
13145 ol_link_modules=no
13146 WITH_MODULES_ENABLED=no
13147 if test $ol_enable_modules != no ; then
13148         for ac_header in ltdl.h
13149 do :
13150   ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13151 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13152   cat >>confdefs.h <<_ACEOF
13153 #define HAVE_LTDL_H 1
13154 _ACEOF
13155
13156 fi
13157
13158 done
13159
13160
13161         if test $ac_cv_header_ltdl_h = no ; then
13162                 as_fn_error "could not locate libtool ltdl.h" "$LINENO" 5
13163         fi
13164
13165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13166 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13167 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170   ac_check_lib_save_LIBS=$LIBS
13171 LIBS="-lltdl  $LIBS"
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h.  */
13174
13175 /* Override any GCC internal prototype to avoid an error.
13176    Use char because int might match the return type of a GCC
13177    builtin and then its argument prototype would still apply.  */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 char lt_dlinit ();
13182 int
13183 main ()
13184 {
13185 return lt_dlinit ();
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 if ac_fn_c_try_link "$LINENO"; then :
13191   ac_cv_lib_ltdl_lt_dlinit=yes
13192 else
13193   ac_cv_lib_ltdl_lt_dlinit=no
13194 fi
13195 rm -f core conftest.err conftest.$ac_objext \
13196     conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13200 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13201 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
13202
13203                 MODULES_LIBS=-lltdl
13204
13205 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13206
13207
13208 fi
13209
13210
13211         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13212                 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
13213         fi
13214         ol_link_modules=yes
13215         WITH_MODULES_ENABLED=yes
13216
13217 else
13218         for i in $Backends; do
13219                 eval "ol_tmp=\$ol_enable_$i"
13220                 if test $ol_tmp = mod ; then
13221                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13222 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13223                         eval "ol_enable_$i=yes"
13224                 fi
13225         done
13226         for i in $Overlays; do
13227                 eval "ol_tmp=\$ol_enable_$i"
13228                 if test $ol_tmp = mod ; then
13229                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13230 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13231                         eval "ol_enable_$i=yes"
13232                 fi
13233         done
13234 fi
13235
13236 # test for EBCDIC
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13238 $as_echo_n "checking for EBCDIC... " >&6; }
13239 if test "${ol_cv_cpp_ebcdic+set}" = set; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242
13243         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245
13246 #if !('M' == 0xd4)
13247 #include <__ASCII__/generate_error.h>
13248 #endif
13249
13250 _ACEOF
13251 if ac_fn_c_try_cpp "$LINENO"; then :
13252   ol_cv_cpp_ebcdic=yes
13253 else
13254   ol_cv_cpp_ebcdic=no
13255 fi
13256 rm -f conftest.err conftest.$ac_ext
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13259 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13260 if test $ol_cv_cpp_ebcdic = yes ; then
13261
13262 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13263
13264 fi
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13267 $as_echo_n "checking for ANSI C header files... " >&6; }
13268 if test "${ol_cv_header_stdc+set}" = set; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273 #include <stdlib.h>
13274 #include <stdarg.h>
13275 #include <string.h>
13276 #include <float.h>
13277 _ACEOF
13278 if ac_fn_c_try_cpp "$LINENO"; then :
13279   ol_cv_header_stdc=yes
13280 else
13281   ol_cv_header_stdc=no
13282 fi
13283 rm -f conftest.err conftest.$ac_ext
13284
13285 if test $ol_cv_header_stdc = yes; then
13286   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h.  */
13289 #include <string.h>
13290
13291 _ACEOF
13292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13293   $EGREP "memchr" >/dev/null 2>&1; then :
13294
13295 else
13296   ol_cv_header_stdc=no
13297 fi
13298 rm -f conftest*
13299
13300 fi
13301
13302 if test $ol_cv_header_stdc = yes; then
13303   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h.  */
13306 #include <stdlib.h>
13307
13308 _ACEOF
13309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13310   $EGREP "free" >/dev/null 2>&1; then :
13311
13312 else
13313   ol_cv_header_stdc=no
13314 fi
13315 rm -f conftest*
13316
13317 fi
13318
13319 if test $ol_cv_header_stdc = yes; then
13320   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13321 if test "$cross_compiling" = yes; then :
13322   :
13323 else
13324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h.  */
13326 #include <ctype.h>
13327 #ifndef HAVE_EBCDIC
13328 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13329 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13330 #else
13331 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13332                 || ('j' <= (c) && (c) <= 'r') \
13333                 || ('s' <= (c) && (c) <= 'z'))
13334 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13335 #endif
13336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13337 int main () { int i; for (i = 0; i < 256; i++)
13338 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13339 exit (0); }
13340
13341 _ACEOF
13342 if ac_fn_c_try_run "$LINENO"; then :
13343
13344 else
13345   ol_cv_header_stdc=no
13346 fi
13347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13348   conftest.$ac_objext conftest.beam conftest.$ac_ext
13349 fi
13350
13351 fi
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13354 $as_echo "$ol_cv_header_stdc" >&6; }
13355 if test $ol_cv_header_stdc = yes; then
13356   $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13357
13358 fi
13359 ac_cv_header_stdc=disable
13360
13361
13362 if test $ol_cv_header_stdc != yes; then
13363         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13364 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13365 fi
13366
13367 ac_header_dirent=no
13368 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13369   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13371 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13373   $as_echo_n "(cached) " >&6
13374 else
13375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h.  */
13377 #include <sys/types.h>
13378 #include <$ac_hdr>
13379
13380 int
13381 main ()
13382 {
13383 if ((DIR *) 0)
13384 return 0;
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390   eval "$as_ac_Header=yes"
13391 else
13392   eval "$as_ac_Header=no"
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 eval ac_res=\$$as_ac_Header
13397                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13398 $as_echo "$ac_res" >&6; }
13399 eval as_val=\$$as_ac_Header
13400    if test "x$as_val" = x""yes; then :
13401   cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13403 _ACEOF
13404
13405 ac_header_dirent=$ac_hdr; break
13406 fi
13407
13408 done
13409 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13410 if test $ac_header_dirent = dirent.h; then
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13412 $as_echo_n "checking for library containing opendir... " >&6; }
13413 if test "${ac_cv_search_opendir+set}" = set; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   ac_func_search_save_LIBS=$LIBS
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h.  */
13419
13420 /* Override any GCC internal prototype to avoid an error.
13421    Use char because int might match the return type of a GCC
13422    builtin and then its argument prototype would still apply.  */
13423 #ifdef __cplusplus
13424 extern "C"
13425 #endif
13426 char opendir ();
13427 int
13428 main ()
13429 {
13430 return opendir ();
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 for ac_lib in '' dir; do
13436   if test -z "$ac_lib"; then
13437     ac_res="none required"
13438   else
13439     ac_res=-l$ac_lib
13440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13441   fi
13442   if ac_fn_c_try_link "$LINENO"; then :
13443   ac_cv_search_opendir=$ac_res
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext \
13446     conftest$ac_exeext
13447   if test "${ac_cv_search_opendir+set}" = set; then :
13448   break
13449 fi
13450 done
13451 if test "${ac_cv_search_opendir+set}" = set; then :
13452
13453 else
13454   ac_cv_search_opendir=no
13455 fi
13456 rm conftest.$ac_ext
13457 LIBS=$ac_func_search_save_LIBS
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13460 $as_echo "$ac_cv_search_opendir" >&6; }
13461 ac_res=$ac_cv_search_opendir
13462 if test "$ac_res" != no; then :
13463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464
13465 fi
13466
13467 else
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13469 $as_echo_n "checking for library containing opendir... " >&6; }
13470 if test "${ac_cv_search_opendir+set}" = set; then :
13471   $as_echo_n "(cached) " >&6
13472 else
13473   ac_func_search_save_LIBS=$LIBS
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h.  */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478    Use char because int might match the return type of a GCC
13479    builtin and then its argument prototype would still apply.  */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char opendir ();
13484 int
13485 main ()
13486 {
13487 return opendir ();
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 for ac_lib in '' x; do
13493   if test -z "$ac_lib"; then
13494     ac_res="none required"
13495   else
13496     ac_res=-l$ac_lib
13497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13498   fi
13499   if ac_fn_c_try_link "$LINENO"; then :
13500   ac_cv_search_opendir=$ac_res
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext \
13503     conftest$ac_exeext
13504   if test "${ac_cv_search_opendir+set}" = set; then :
13505   break
13506 fi
13507 done
13508 if test "${ac_cv_search_opendir+set}" = set; then :
13509
13510 else
13511   ac_cv_search_opendir=no
13512 fi
13513 rm conftest.$ac_ext
13514 LIBS=$ac_func_search_save_LIBS
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13517 $as_echo "$ac_cv_search_opendir" >&6; }
13518 ac_res=$ac_cv_search_opendir
13519 if test "$ac_res" != no; then :
13520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13521
13522 fi
13523
13524 fi
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13527 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13528 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13529   $as_echo_n "(cached) " >&6
13530 else
13531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h.  */
13533 #include <sys/types.h>
13534 #include <sys/wait.h>
13535 #ifndef WEXITSTATUS
13536 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13537 #endif
13538 #ifndef WIFEXITED
13539 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13540 #endif
13541
13542 int
13543 main ()
13544 {
13545   int s;
13546   wait (&s);
13547   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 if ac_fn_c_try_compile "$LINENO"; then :
13553   ac_cv_header_sys_wait_h=yes
13554 else
13555   ac_cv_header_sys_wait_h=no
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13560 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13561 if test $ac_cv_header_sys_wait_h = yes; then
13562
13563 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13564
13565 fi
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13568 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13569 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h.  */
13574 #include <sys/types.h>
13575 #include <termios.h>
13576 #ifdef TIOCGWINSZ
13577   yes
13578 #endif
13579
13580 _ACEOF
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582   $EGREP "yes" >/dev/null 2>&1; then :
13583   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13584 else
13585   ac_cv_sys_tiocgwinsz_in_termios_h=no
13586 fi
13587 rm -f conftest*
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13591 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13592
13593 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13595 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13596 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13597   $as_echo_n "(cached) " >&6
13598 else
13599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h.  */
13601 #include <sys/types.h>
13602 #include <sys/ioctl.h>
13603 #ifdef TIOCGWINSZ
13604   yes
13605 #endif
13606
13607 _ACEOF
13608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13609   $EGREP "yes" >/dev/null 2>&1; then :
13610   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13611 else
13612   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13613 fi
13614 rm -f conftest*
13615
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13618 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13619
13620   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13621
13622 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13623
13624   fi
13625 fi
13626
13627
13628 for ac_header in \
13629         arpa/inet.h             \
13630         arpa/nameser.h  \
13631         assert.h                \
13632         bits/types.h    \
13633         conio.h                 \
13634         crypt.h                 \
13635         direct.h                \
13636         errno.h                 \
13637         fcntl.h                 \
13638         filio.h                 \
13639         getopt.h                \
13640         grp.h                   \
13641         io.h                    \
13642         libutil.h               \
13643         limits.h                \
13644         locale.h                \
13645         malloc.h                \
13646         memory.h                \
13647         psap.h                  \
13648         pwd.h                   \
13649         process.h               \
13650         sgtty.h                 \
13651         shadow.h                \
13652         stddef.h                \
13653         string.h                \
13654         strings.h               \
13655         sysexits.h              \
13656         sys/file.h              \
13657         sys/filio.h             \
13658         sys/fstyp.h             \
13659         sys/errno.h             \
13660         sys/ioctl.h             \
13661         sys/param.h             \
13662         sys/privgrp.h   \
13663         sys/resource.h  \
13664         sys/select.h    \
13665         sys/socket.h    \
13666         sys/stat.h              \
13667         sys/syslog.h    \
13668         sys/time.h              \
13669         sys/types.h             \
13670         sys/uio.h               \
13671         sys/vmount.h    \
13672         syslog.h                \
13673         termios.h               \
13674         unistd.h                \
13675         utime.h                 \
13676
13677 do :
13678   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13679 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13680 eval as_val=\$$as_ac_Header
13681    if test "x$as_val" = x""yes; then :
13682   cat >>confdefs.h <<_ACEOF
13683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684 _ACEOF
13685
13686 fi
13687
13688 done
13689
13690
13691 if test "$ac_cv_mingw32" = yes \
13692         -o "$ac_cv_interix" = yes \
13693         -o "$ol_cv_msvc" = yes
13694 then
13695         for ac_header in winsock.h winsock2.h
13696 do :
13697   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13699 eval as_val=\$$as_ac_Header
13700    if test "x$as_val" = x""yes; then :
13701   cat >>confdefs.h <<_ACEOF
13702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13703 _ACEOF
13704
13705 fi
13706
13707 done
13708
13709 fi
13710
13711 for ac_header in resolv.h
13712 do :
13713   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13714 #include <netinet/in.h>
13715
13716 "
13717 if test "x$ac_cv_header_resolv_h" = x""yes; then :
13718   cat >>confdefs.h <<_ACEOF
13719 #define HAVE_RESOLV_H 1
13720 _ACEOF
13721
13722 fi
13723
13724 done
13725
13726
13727 for ac_header in netinet/tcp.h
13728 do :
13729   ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13730 #include <netinet/in.h>
13731
13732 "
13733 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
13734   cat >>confdefs.h <<_ACEOF
13735 #define HAVE_NETINET_TCP_H 1
13736 _ACEOF
13737
13738 fi
13739
13740 done
13741
13742
13743 for ac_header in sys/ucred.h
13744 do :
13745   ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13746 #ifdef HAVE_SYS_PARAM_H
13747 #include <sys/param.h>
13748 #endif
13749
13750 "
13751 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
13752   cat >>confdefs.h <<_ACEOF
13753 #define HAVE_SYS_UCRED_H 1
13754 _ACEOF
13755
13756 fi
13757
13758 done
13759
13760
13761
13762 for ac_func in sigaction sigset
13763 do :
13764   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13766 eval as_val=\$$as_ac_var
13767    if test "x$as_val" = x""yes; then :
13768   cat >>confdefs.h <<_ACEOF
13769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13770 _ACEOF
13771
13772 fi
13773 done
13774
13775
13776 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13778 $as_echo_n "checking for sigset in -lV3... " >&6; }
13779 if test "${ac_cv_lib_V3_sigset+set}" = set; then :
13780   $as_echo_n "(cached) " >&6
13781 else
13782   ac_check_lib_save_LIBS=$LIBS
13783 LIBS="-lV3  $LIBS"
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h.  */
13786
13787 /* Override any GCC internal prototype to avoid an error.
13788    Use char because int might match the return type of a GCC
13789    builtin and then its argument prototype would still apply.  */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 char sigset ();
13794 int
13795 main ()
13796 {
13797 return sigset ();
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 if ac_fn_c_try_link "$LINENO"; then :
13803   ac_cv_lib_V3_sigset=yes
13804 else
13805   ac_cv_lib_V3_sigset=no
13806 fi
13807 rm -f core conftest.err conftest.$ac_objext \
13808     conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13810 fi
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13812 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13813 if test "x$ac_cv_lib_V3_sigset" = x""yes; then :
13814   cat >>confdefs.h <<_ACEOF
13815 #define HAVE_LIBV3 1
13816 _ACEOF
13817
13818   LIBS="-lV3 $LIBS"
13819
13820 fi
13821
13822 fi
13823
13824 if test $ol_cv_msvc = yes ; then
13825    ol_cv_winsock=yes
13826 fi
13827
13828 if test "$ac_cv_header_winsock_h" = yes; then
13829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13830 $as_echo_n "checking for winsock... " >&6; }
13831 if test "${ol_cv_winsock+set}" = set; then :
13832   $as_echo_n "(cached) " >&6
13833 else
13834
13835         save_LIBS="$LIBS"
13836         for curlib in none ws2_32 wsock32; do
13837                 if test $curlib != none ; then
13838                 LIBS="$save_LIBS -l$curlib"
13839                 fi
13840                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h.  */
13842 #include <winsock.h>
13843
13844 int
13845 main ()
13846 {
13847
13848                         socket(0,0,0);
13849                         select(0,NULL,NULL,NULL,NULL);
13850                         closesocket(0);
13851                         gethostname(NULL,0);
13852
13853   ;
13854   return 0;
13855 }
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858   ol_cv_winsock=$curlib
13859 else
13860   ol_cv_winsock=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863     conftest$ac_exeext conftest.$ac_ext
13864
13865                 test "$ol_cv_winsock" != no && break
13866         done
13867         LIBS="$save_LIBS"
13868
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13871 $as_echo "$ol_cv_winsock" >&6; }
13872
13873         if test $ol_cv_winsock != no ; then
13874
13875 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13876
13877         ac_cv_func_socket=yes
13878         ac_cv_func_select=yes
13879         ac_cv_func_closesocket=yes
13880         ac_cv_func_gethostname=yes
13881
13882                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13883                 LIBS="$LIBS -l$ol_cv_winsock"
13884                 fi
13885
13886         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13887
13888 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13889
13890         fi
13891         fi
13892 fi
13893
13894
13895 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13896 if test "x$ac_cv_func_socket" = x""yes; then :
13897   :
13898 else
13899
13900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13901 $as_echo_n "checking for main in -lsocket... " >&6; }
13902 if test "${ac_cv_lib_socket_main+set}" = set; then :
13903   $as_echo_n "(cached) " >&6
13904 else
13905   ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lsocket  $LIBS"
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h.  */
13909
13910
13911 int
13912 main ()
13913 {
13914 return main ();
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"; then :
13920   ac_cv_lib_socket_main=yes
13921 else
13922   ac_cv_lib_socket_main=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext \
13925     conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13927 fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13929 $as_echo "$ac_cv_lib_socket_main" >&6; }
13930 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13931   cat >>confdefs.h <<_ACEOF
13932 #define HAVE_LIBSOCKET 1
13933 _ACEOF
13934
13935   LIBS="-lsocket $LIBS"
13936
13937 fi
13938
13939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnet" >&5
13940 $as_echo_n "checking for main in -lnet... " >&6; }
13941 if test "${ac_cv_lib_net_main+set}" = set; then :
13942   $as_echo_n "(cached) " >&6
13943 else
13944   ac_check_lib_save_LIBS=$LIBS
13945 LIBS="-lnet  $LIBS"
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h.  */
13948
13949
13950 int
13951 main ()
13952 {
13953 return main ();
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959   ac_cv_lib_net_main=yes
13960 else
13961   ac_cv_lib_net_main=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext \
13964     conftest$ac_exeext conftest.$ac_ext
13965 LIBS=$ac_check_lib_save_LIBS
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_main" >&5
13968 $as_echo "$ac_cv_lib_net_main" >&6; }
13969 if test "x$ac_cv_lib_net_main" = x""yes; then :
13970   cat >>confdefs.h <<_ACEOF
13971 #define HAVE_LIBNET 1
13972 _ACEOF
13973
13974   LIBS="-lnet $LIBS"
13975
13976 fi
13977
13978         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
13979 $as_echo_n "checking for main in -lnsl_s... " >&6; }
13980 if test "${ac_cv_lib_nsl_s_main+set}" = set; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   ac_check_lib_save_LIBS=$LIBS
13984 LIBS="-lnsl_s  $LIBS"
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h.  */
13987
13988
13989 int
13990 main ()
13991 {
13992 return main ();
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 if ac_fn_c_try_link "$LINENO"; then :
13998   ac_cv_lib_nsl_s_main=yes
13999 else
14000   ac_cv_lib_nsl_s_main=no
14001 fi
14002 rm -f core conftest.err conftest.$ac_objext \
14003     conftest$ac_exeext conftest.$ac_ext
14004 LIBS=$ac_check_lib_save_LIBS
14005 fi
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14007 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14008 if test "x$ac_cv_lib_nsl_s_main" = x""yes; then :
14009   cat >>confdefs.h <<_ACEOF
14010 #define HAVE_LIBNSL_S 1
14011 _ACEOF
14012
14013   LIBS="-lnsl_s $LIBS"
14014
14015 fi
14016
14017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14018 $as_echo_n "checking for main in -lnsl... " >&6; }
14019 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14020   $as_echo_n "(cached) " >&6
14021 else
14022   ac_check_lib_save_LIBS=$LIBS
14023 LIBS="-lnsl  $LIBS"
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h.  */
14026
14027
14028 int
14029 main ()
14030 {
14031 return main ();
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"; then :
14037   ac_cv_lib_nsl_main=yes
14038 else
14039   ac_cv_lib_nsl_main=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042     conftest$ac_exeext conftest.$ac_ext
14043 LIBS=$ac_check_lib_save_LIBS
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14046 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14047 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14048   cat >>confdefs.h <<_ACEOF
14049 #define HAVE_LIBNSL 1
14050 _ACEOF
14051
14052   LIBS="-lnsl $LIBS"
14053
14054 fi
14055
14056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14057 $as_echo_n "checking for socket in -linet... " >&6; }
14058 if test "${ac_cv_lib_inet_socket+set}" = set; then :
14059   $as_echo_n "(cached) " >&6
14060 else
14061   ac_check_lib_save_LIBS=$LIBS
14062 LIBS="-linet  $LIBS"
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h.  */
14065
14066 /* Override any GCC internal prototype to avoid an error.
14067    Use char because int might match the return type of a GCC
14068    builtin and then its argument prototype would still apply.  */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char socket ();
14073 int
14074 main ()
14075 {
14076 return socket ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 if ac_fn_c_try_link "$LINENO"; then :
14082   ac_cv_lib_inet_socket=yes
14083 else
14084   ac_cv_lib_inet_socket=no
14085 fi
14086 rm -f core conftest.err conftest.$ac_objext \
14087     conftest$ac_exeext conftest.$ac_ext
14088 LIBS=$ac_check_lib_save_LIBS
14089 fi
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14091 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14092 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
14093   cat >>confdefs.h <<_ACEOF
14094 #define HAVE_LIBINET 1
14095 _ACEOF
14096
14097   LIBS="-linet $LIBS"
14098
14099 fi
14100
14101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14102 $as_echo_n "checking for main in -lgen... " >&6; }
14103 if test "${ac_cv_lib_gen_main+set}" = set; then :
14104   $as_echo_n "(cached) " >&6
14105 else
14106   ac_check_lib_save_LIBS=$LIBS
14107 LIBS="-lgen  $LIBS"
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h.  */
14110
14111
14112 int
14113 main ()
14114 {
14115 return main ();
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 if ac_fn_c_try_link "$LINENO"; then :
14121   ac_cv_lib_gen_main=yes
14122 else
14123   ac_cv_lib_gen_main=no
14124 fi
14125 rm -f core conftest.err conftest.$ac_objext \
14126     conftest$ac_exeext conftest.$ac_ext
14127 LIBS=$ac_check_lib_save_LIBS
14128 fi
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14130 $as_echo "$ac_cv_lib_gen_main" >&6; }
14131 if test "x$ac_cv_lib_gen_main" = x""yes; then :
14132   cat >>confdefs.h <<_ACEOF
14133 #define HAVE_LIBGEN 1
14134 _ACEOF
14135
14136   LIBS="-lgen $LIBS"
14137
14138 fi
14139
14140
14141 fi
14142
14143
14144 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14145 if test "x$ac_cv_func_select" = x""yes; then :
14146   :
14147 else
14148   as_fn_error "select() required." "$LINENO" 5
14149 fi
14150
14151
14152 if test "${ac_cv_header_winsock_h}" != yes; then
14153                                 for ac_header in sys/select.h sys/socket.h
14154 do :
14155   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14157 eval as_val=\$$as_ac_Header
14158    if test "x$as_val" = x""yes; then :
14159   cat >>confdefs.h <<_ACEOF
14160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14161 _ACEOF
14162
14163 fi
14164
14165 done
14166
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14168 $as_echo_n "checking types of arguments for select... " >&6; }
14169 if test "${ac_cv_func_select_args+set}" = set; then :
14170   $as_echo_n "(cached) " >&6
14171 else
14172   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14173  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14174   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14175    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h.  */
14177 $ac_includes_default
14178 #ifdef HAVE_SYS_SELECT_H
14179 # include <sys/select.h>
14180 #endif
14181 #ifdef HAVE_SYS_SOCKET_H
14182 # include <sys/socket.h>
14183 #endif
14184
14185 int
14186 main ()
14187 {
14188 extern int select ($ac_arg1,
14189                                             $ac_arg234, $ac_arg234, $ac_arg234,
14190                                             $ac_arg5);
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199   done
14200  done
14201 done
14202 # Provide a safe default value.
14203 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14204
14205 fi
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14207 $as_echo "$ac_cv_func_select_args" >&6; }
14208 ac_save_IFS=$IFS; IFS=','
14209 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14210 IFS=$ac_save_IFS
14211 shift
14212
14213 cat >>confdefs.h <<_ACEOF
14214 #define SELECT_TYPE_ARG1 $1
14215 _ACEOF
14216
14217
14218 cat >>confdefs.h <<_ACEOF
14219 #define SELECT_TYPE_ARG234 ($2)
14220 _ACEOF
14221
14222
14223 cat >>confdefs.h <<_ACEOF
14224 #define SELECT_TYPE_ARG5 ($3)
14225 _ACEOF
14226
14227 rm -f conftest*
14228
14229 fi
14230
14231
14232 for ac_func in poll
14233 do :
14234   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14236 eval as_val=\$$as_ac_var
14237    if test "x$as_val" = x""yes; then :
14238   cat >>confdefs.h <<_ACEOF
14239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14240 _ACEOF
14241
14242 fi
14243 done
14244
14245 if test $ac_cv_func_poll = yes; then
14246 for ac_header in poll.h sys/poll.h
14247 do :
14248   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14249 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14250 eval as_val=\$$as_ac_Header
14251    if test "x$as_val" = x""yes; then :
14252   cat >>confdefs.h <<_ACEOF
14253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14254 _ACEOF
14255
14256 fi
14257
14258 done
14259
14260 fi
14261
14262 for ac_header in sys/epoll.h
14263 do :
14264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14265 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14266 eval as_val=\$$as_ac_Header
14267    if test "x$as_val" = x""yes; then :
14268   cat >>confdefs.h <<_ACEOF
14269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14270 _ACEOF
14271
14272 fi
14273
14274 done
14275
14276 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14278 $as_echo_n "checking for epoll system call... " >&6; }
14279         if test "$cross_compiling" = yes; then :
14280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14282 else
14283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h.  */
14285 int main(int argc, char **argv)
14286 {
14287         int epfd = epoll_create(256);
14288         exit (epfd == -1 ? 1 : 0);
14289 }
14290 _ACEOF
14291 if ac_fn_c_try_run "$LINENO"; then :
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14293 $as_echo "yes" >&6; }
14294
14295 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14296
14297 else
14298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14300 fi
14301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14302   conftest.$ac_objext conftest.beam conftest.$ac_ext
14303 fi
14304
14305 fi
14306
14307 for ac_header in sys/devpoll.h
14308 do :
14309   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14311 eval as_val=\$$as_ac_Header
14312    if test "x$as_val" = x""yes; then :
14313   cat >>confdefs.h <<_ACEOF
14314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14315 _ACEOF
14316
14317 fi
14318
14319 done
14320
14321 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14322                 -a "${ac_cv_header_poll_h}" = yes ; \
14323 then
14324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14325 $as_echo_n "checking for /dev/poll... " >&6; }
14326         if test "$cross_compiling" = yes; then :
14327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328 $as_echo "no" >&6; }
14329 else
14330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h.  */
14332 int main(int argc, char **argv)
14333 {
14334         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14335         exit (devpollfd == -1 ? 1 : 0);
14336 }
14337 _ACEOF
14338 if ac_fn_c_try_run "$LINENO"; then :
14339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14341
14342 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14343
14344 else
14345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14347 fi
14348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14349   conftest.$ac_objext conftest.beam conftest.$ac_ext
14350 fi
14351
14352 fi
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14355 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14356 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14357   $as_echo_n "(cached) " >&6
14358 else
14359
14360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h.  */
14362
14363 #include <stdio.h>
14364 #include <sys/types.h>
14365 #include <errno.h>
14366 #ifdef _WIN32
14367 #include <stdlib.h>
14368 #endif
14369 int
14370 main ()
14371 {
14372 char *c = (char *) *sys_errlist
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378   ol_cv_dcl_sys_errlist=yes
14379         ol_cv_have_sys_errlist=yes
14380 else
14381   ol_cv_dcl_sys_errlist=no
14382 fi
14383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14384 fi
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14386 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14387 #
14388 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14389 if test $ol_cv_dcl_sys_errlist = no ; then
14390
14391 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14392
14393
14394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14395 $as_echo_n "checking existence of sys_errlist... " >&6; }
14396 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14397   $as_echo_n "(cached) " >&6
14398 else
14399
14400                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h.  */
14402 #include <errno.h>
14403 int
14404 main ()
14405 {
14406 char *c = (char *) *sys_errlist
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 if ac_fn_c_try_link "$LINENO"; then :
14412   ol_cv_have_sys_errlist=yes
14413 else
14414   ol_cv_have_sys_errlist=no
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext \
14417     conftest$ac_exeext conftest.$ac_ext
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14420 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14421 fi
14422 if test $ol_cv_have_sys_errlist = yes ; then
14423
14424 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14425
14426 fi
14427  for ac_func in strerror strerror_r
14428 do :
14429   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14431 eval as_val=\$$as_ac_var
14432    if test "x$as_val" = x""yes; then :
14433   cat >>confdefs.h <<_ACEOF
14434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14435 _ACEOF
14436
14437 fi
14438 done
14439
14440 ol_cv_func_strerror_r=no
14441 if test "${ac_cv_func_strerror_r}" = yes ; then
14442         { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14443 $as_echo_n "checking non-posix strerror_r... " >&6; }
14444 if test "${ol_cv_nonposix_strerror_r+set}" = set; then :
14445   $as_echo_n "(cached) " >&6
14446 else
14447
14448         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h.  */
14450 #include <string.h>
14451 _ACEOF
14452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14453   $EGREP "strerror_r" >/dev/null 2>&1; then :
14454   ol_decl_strerror_r=yes
14455 else
14456   ol_decl_strerror_r=no
14457 fi
14458 rm -f conftest*
14459
14460         if test $ol_decl_strerror_r = yes ; then
14461                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h.  */
14463 #include <string.h>
14464 int
14465 main ()
14466 {
14467    /* from autoconf 2.59 */
14468                                 char buf[100];
14469                                 char x = *strerror_r (0, buf, sizeof buf);
14470                                 char *p = strerror_r (0, buf, sizeof buf);
14471
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 if ac_fn_c_try_compile "$LINENO"; then :
14477   ol_cv_nonposix_strerror_r=yes
14478 else
14479   ol_cv_nonposix_strerror_r=no
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482         else
14483                 if test "$cross_compiling" = yes; then :
14484   ol_cv_nonposix_strerror=no
14485 else
14486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h.  */
14488
14489                         main() {
14490                                 char buf[100];
14491                                 buf[0] = 0;
14492                                 strerror_r( 1, buf, sizeof buf );
14493                                 exit( buf[0] == 0 );
14494                         }
14495
14496 _ACEOF
14497 if ac_fn_c_try_run "$LINENO"; then :
14498   ol_cv_nonposix_strerror_r=yes
14499 else
14500   ol_cv_nonposix_strerror=no
14501 fi
14502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14503   conftest.$ac_objext conftest.beam conftest.$ac_ext
14504 fi
14505
14506         fi
14507
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14510 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14511 if test $ol_cv_nonposix_strerror_r = yes ; then
14512
14513 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14514
14515 fi
14516
14517 elif test "${ac_cv_func_strerror}" = no ; then
14518         { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14519 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14520 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14521   $as_echo_n "(cached) " >&6
14522 else
14523
14524         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h.  */
14526
14527 #include <stdio.h>
14528 #include <sys/types.h>
14529 #include <errno.h>
14530 #ifdef _WIN32
14531 #include <stdlib.h>
14532 #endif
14533 int
14534 main ()
14535 {
14536 char *c = (char *) *sys_errlist
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_compile "$LINENO"; then :
14542   ol_cv_dcl_sys_errlist=yes
14543         ol_cv_have_sys_errlist=yes
14544 else
14545   ol_cv_dcl_sys_errlist=no
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14550 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14551 #
14552 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14553 if test $ol_cv_dcl_sys_errlist = no ; then
14554
14555 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14556
14557
14558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14559 $as_echo_n "checking existence of sys_errlist... " >&6; }
14560 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14561   $as_echo_n "(cached) " >&6
14562 else
14563
14564                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h.  */
14566 #include <errno.h>
14567 int
14568 main ()
14569 {
14570 char *c = (char *) *sys_errlist
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 if ac_fn_c_try_link "$LINENO"; then :
14576   ol_cv_have_sys_errlist=yes
14577 else
14578   ol_cv_have_sys_errlist=no
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext \
14581     conftest$ac_exeext conftest.$ac_ext
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14584 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14585 fi
14586 if test $ol_cv_have_sys_errlist = yes ; then
14587
14588 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14589
14590 fi
14591
14592 fi
14593
14594
14595 for ac_header in regex.h
14596 do :
14597   ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14598 #ifdef HAVE_SYS_TYPES_H
14599 #include <sys/types.h>
14600 #endif
14601
14602 "
14603 if test "x$ac_cv_header_regex_h" = x""yes; then :
14604   cat >>confdefs.h <<_ACEOF
14605 #define HAVE_REGEX_H 1
14606 _ACEOF
14607
14608 fi
14609
14610 done
14611
14612
14613 if test "$ac_cv_header_regex_h" != yes ; then
14614         as_fn_error "POSIX regex.h required." "$LINENO" 5
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14617 $as_echo_n "checking for library containing regfree... " >&6; }
14618 if test "${ac_cv_search_regfree+set}" = set; then :
14619   $as_echo_n "(cached) " >&6
14620 else
14621   ac_func_search_save_LIBS=$LIBS
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624
14625 /* Override any GCC internal prototype to avoid an error.
14626    Use char because int might match the return type of a GCC
14627    builtin and then its argument prototype would still apply.  */
14628 #ifdef __cplusplus
14629 extern "C"
14630 #endif
14631 char regfree ();
14632 int
14633 main ()
14634 {
14635 return regfree ();
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 for ac_lib in '' regex gnuregex; do
14641   if test -z "$ac_lib"; then
14642     ac_res="none required"
14643   else
14644     ac_res=-l$ac_lib
14645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14646   fi
14647   if ac_fn_c_try_link "$LINENO"; then :
14648   ac_cv_search_regfree=$ac_res
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext \
14651     conftest$ac_exeext
14652   if test "${ac_cv_search_regfree+set}" = set; then :
14653   break
14654 fi
14655 done
14656 if test "${ac_cv_search_regfree+set}" = set; then :
14657
14658 else
14659   ac_cv_search_regfree=no
14660 fi
14661 rm conftest.$ac_ext
14662 LIBS=$ac_func_search_save_LIBS
14663 fi
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14665 $as_echo "$ac_cv_search_regfree" >&6; }
14666 ac_res=$ac_cv_search_regfree
14667 if test "$ac_res" != no; then :
14668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14669   :
14670 else
14671   as_fn_error "POSIX regex required." "$LINENO" 5
14672 fi
14673
14674
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14677 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14678 if test "${ol_cv_c_posix_regex+set}" = set; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681
14682         if test "$cross_compiling" = yes; then :
14683   ol_cv_c_posix_regex=cross
14684 else
14685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h.  */
14687
14688 #include <sys/types.h>
14689 #include <regex.h>
14690 static char *pattern, *string;
14691 main()
14692 {
14693         int rc;
14694         regex_t re;
14695
14696         pattern = "^A";
14697
14698         if(regcomp(&re, pattern, 0)) {
14699                 return -1;
14700         }
14701
14702         string = "ALL MATCH";
14703
14704         rc = regexec(&re, string, 0, (void*)0, 0);
14705
14706         regfree(&re);
14707
14708         return rc;
14709 }
14710 _ACEOF
14711 if ac_fn_c_try_run "$LINENO"; then :
14712   ol_cv_c_posix_regex=yes
14713 else
14714   ol_cv_c_posix_regex=no
14715 fi
14716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14717   conftest.$ac_objext conftest.beam conftest.$ac_ext
14718 fi
14719
14720 fi
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14722 $as_echo "$ol_cv_c_posix_regex" >&6; }
14723
14724 if test "$ol_cv_c_posix_regex" = no ; then
14725         as_fn_error "broken POSIX regex!" "$LINENO" 5
14726 fi
14727
14728
14729 have_uuid=no
14730 for ac_header in sys/uuid.h
14731 do :
14732   ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14733 if test "x$ac_cv_header_sys_uuid_h" = x""yes; then :
14734   cat >>confdefs.h <<_ACEOF
14735 #define HAVE_SYS_UUID_H 1
14736 _ACEOF
14737
14738 fi
14739
14740 done
14741
14742 if test $ac_cv_header_sys_uuid_h = yes ; then
14743         save_LIBS="$LIBS"
14744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14745 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14746 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14747   $as_echo_n "(cached) " >&6
14748 else
14749   ac_func_search_save_LIBS=$LIBS
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h.  */
14752
14753 /* Override any GCC internal prototype to avoid an error.
14754    Use char because int might match the return type of a GCC
14755    builtin and then its argument prototype would still apply.  */
14756 #ifdef __cplusplus
14757 extern "C"
14758 #endif
14759 char uuid_to_str ();
14760 int
14761 main ()
14762 {
14763 return uuid_to_str ();
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 for ac_lib in '' uuid; do
14769   if test -z "$ac_lib"; then
14770     ac_res="none required"
14771   else
14772     ac_res=-l$ac_lib
14773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14774   fi
14775   if ac_fn_c_try_link "$LINENO"; then :
14776   ac_cv_search_uuid_to_str=$ac_res
14777 fi
14778 rm -f core conftest.err conftest.$ac_objext \
14779     conftest$ac_exeext
14780   if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14781   break
14782 fi
14783 done
14784 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14785
14786 else
14787   ac_cv_search_uuid_to_str=no
14788 fi
14789 rm conftest.$ac_ext
14790 LIBS=$ac_func_search_save_LIBS
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14793 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14794 ac_res=$ac_cv_search_uuid_to_str
14795 if test "$ac_res" != no; then :
14796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14797   have_uuid=yes
14798 else
14799   :
14800 fi
14801
14802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14803 $as_echo_n "checking for library containing uuid_create... " >&6; }
14804 if test "${ac_cv_search_uuid_create+set}" = set; then :
14805   $as_echo_n "(cached) " >&6
14806 else
14807   ac_func_search_save_LIBS=$LIBS
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h.  */
14810
14811 /* Override any GCC internal prototype to avoid an error.
14812    Use char because int might match the return type of a GCC
14813    builtin and then its argument prototype would still apply.  */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 char uuid_create ();
14818 int
14819 main ()
14820 {
14821 return uuid_create ();
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 for ac_lib in '' uuid; do
14827   if test -z "$ac_lib"; then
14828     ac_res="none required"
14829   else
14830     ac_res=-l$ac_lib
14831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14832   fi
14833   if ac_fn_c_try_link "$LINENO"; then :
14834   ac_cv_search_uuid_create=$ac_res
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext \
14837     conftest$ac_exeext
14838   if test "${ac_cv_search_uuid_create+set}" = set; then :
14839   break
14840 fi
14841 done
14842 if test "${ac_cv_search_uuid_create+set}" = set; then :
14843
14844 else
14845   ac_cv_search_uuid_create=no
14846 fi
14847 rm conftest.$ac_ext
14848 LIBS=$ac_func_search_save_LIBS
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14851 $as_echo "$ac_cv_search_uuid_create" >&6; }
14852 ac_res=$ac_cv_search_uuid_create
14853 if test "$ac_res" != no; then :
14854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14855   :
14856 else
14857   have_uuid=no
14858 fi
14859
14860         LIBS="$save_LIBS"
14861
14862         if test $have_uuid = yes ; then
14863
14864 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14865
14866
14867                 test "$ac_cv_search_uuid_to_str" = "none required" || \
14868                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14869         fi
14870 fi
14871
14872 if test $have_uuid = no ; then
14873         for ac_header in uuid/uuid.h
14874 do :
14875   ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14876 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
14877   cat >>confdefs.h <<_ACEOF
14878 #define HAVE_UUID_UUID_H 1
14879 _ACEOF
14880
14881 fi
14882
14883 done
14884
14885         if test $ac_cv_header_uuid_uuid_h = yes ; then
14886                 save_LIBS="$LIBS"
14887                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14888 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14889 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   ac_func_search_save_LIBS=$LIBS
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h.  */
14895
14896 /* Override any GCC internal prototype to avoid an error.
14897    Use char because int might match the return type of a GCC
14898    builtin and then its argument prototype would still apply.  */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 char uuid_generate ();
14903 int
14904 main ()
14905 {
14906 return uuid_generate ();
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 for ac_lib in '' uuid; do
14912   if test -z "$ac_lib"; then
14913     ac_res="none required"
14914   else
14915     ac_res=-l$ac_lib
14916     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14917   fi
14918   if ac_fn_c_try_link "$LINENO"; then :
14919   ac_cv_search_uuid_generate=$ac_res
14920 fi
14921 rm -f core conftest.err conftest.$ac_objext \
14922     conftest$ac_exeext
14923   if test "${ac_cv_search_uuid_generate+set}" = set; then :
14924   break
14925 fi
14926 done
14927 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14928
14929 else
14930   ac_cv_search_uuid_generate=no
14931 fi
14932 rm conftest.$ac_ext
14933 LIBS=$ac_func_search_save_LIBS
14934 fi
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
14936 $as_echo "$ac_cv_search_uuid_generate" >&6; }
14937 ac_res=$ac_cv_search_uuid_generate
14938 if test "$ac_res" != no; then :
14939   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14940   have_uuid=yes
14941 else
14942   :
14943 fi
14944
14945                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
14946 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
14947 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14948   $as_echo_n "(cached) " >&6
14949 else
14950   ac_func_search_save_LIBS=$LIBS
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952 /* end confdefs.h.  */
14953
14954 /* Override any GCC internal prototype to avoid an error.
14955    Use char because int might match the return type of a GCC
14956    builtin and then its argument prototype would still apply.  */
14957 #ifdef __cplusplus
14958 extern "C"
14959 #endif
14960 char uuid_unparse_lower ();
14961 int
14962 main ()
14963 {
14964 return uuid_unparse_lower ();
14965   ;
14966   return 0;
14967 }
14968 _ACEOF
14969 for ac_lib in '' uuid; do
14970   if test -z "$ac_lib"; then
14971     ac_res="none required"
14972   else
14973     ac_res=-l$ac_lib
14974     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14975   fi
14976   if ac_fn_c_try_link "$LINENO"; then :
14977   ac_cv_search_uuid_unparse_lower=$ac_res
14978 fi
14979 rm -f core conftest.err conftest.$ac_objext \
14980     conftest$ac_exeext
14981   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14982   break
14983 fi
14984 done
14985 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14986
14987 else
14988   ac_cv_search_uuid_unparse_lower=no
14989 fi
14990 rm conftest.$ac_ext
14991 LIBS=$ac_func_search_save_LIBS
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
14994 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
14995 ac_res=$ac_cv_search_uuid_unparse_lower
14996 if test "$ac_res" != no; then :
14997   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14998   :
14999 else
15000   have_uuid=no
15001 fi
15002
15003                 LIBS="$save_LIBS"
15004
15005                 if test $have_uuid = yes ; then
15006
15007 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15008
15009
15010                         test "$ac_cv_search_uuid_generate" = "none required" || \
15011                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15012                 fi
15013         fi
15014 fi
15015
15016 if test $have_uuid = no ; then
15017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15018 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15019         save_LIBS="$LIBS"
15020         LIBS="$LIBS -lrpcrt4"
15021         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023
15024                 int __stdcall UuidCreate(void *);
15025                 int __stdcall UuidToStringA(void *,void **);
15026
15027 int
15028 main ()
15029 {
15030
15031                 UuidCreate(0);
15032                 UuidToStringA(0,0);
15033
15034   ;
15035   return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"; then :
15039   need_rpcrt=yes
15040 else
15041   need_rpcrt=no
15042 fi
15043 rm -f core conftest.err conftest.$ac_objext \
15044     conftest$ac_exeext conftest.$ac_ext
15045         if test $need_rpcrt = yes; then
15046                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15047         fi
15048         LIBS="$save_LIBS"
15049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15050 $as_echo "$need_rpcrt" >&6; }
15051 fi
15052
15053 ol_cv_lib_resolver=no
15054 if test $ol_cv_lib_resolver = no ; then
15055         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15056 $as_echo_n "checking for resolver link (default)... " >&6; }
15057 if test "${ol_cv_resolver_none+set}" = set; then :
15058   $as_echo_n "(cached) " >&6
15059 else
15060
15061         ol_RESOLVER_LIB=
15062         ol_LIBS=$LIBS
15063         LIBS="$ol_RESOLVER_LIB $LIBS"
15064
15065         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h.  */
15067
15068 #ifdef HAVE_SYS_TYPES_H
15069 #       include <sys/types.h>
15070 #endif
15071 #include <netinet/in.h>
15072 #ifdef HAVE_ARPA_NAMESER_H
15073 #       include <arpa/nameser.h>
15074 #endif
15075 #ifdef HAVE_RESOLV_H
15076 #       include <resolv.h>
15077 #endif
15078
15079 int
15080 main ()
15081 {
15082 {
15083         int len, status;
15084         char *request = NULL;
15085         unsigned char reply[64*1024];
15086         unsigned char host[64*1024];
15087         unsigned char *p;
15088
15089 #ifdef NS_HFIXEDSZ
15090         /* Bind 8/9 interface */
15091         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15092 #else
15093         /* Bind 4 interface */
15094 # ifndef T_SRV
15095 #  define T_SRV 33
15096 # endif
15097         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15098 #endif
15099         p = reply;
15100 #ifdef NS_HFIXEDSZ
15101         /* Bind 8/9 interface */
15102         p += NS_HFIXEDSZ;
15103 #elif defined(HFIXEDSZ)
15104         /* Bind 4 interface w/ HFIXEDSZ */
15105         p += HFIXEDSZ;
15106 #else
15107         /* Bind 4 interface w/o HFIXEDSZ */
15108         p += sizeof(HEADER);
15109 #endif
15110         status = dn_expand( reply, reply+len, p, host, sizeof(host));
15111 }
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 if ac_fn_c_try_link "$LINENO"; then :
15117   ol_cv_resolver_none=yes
15118 else
15119   ol_cv_resolver_none=no
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext \
15122     conftest$ac_exeext conftest.$ac_ext
15123
15124         LIBS="$ol_LIBS"
15125
15126 fi
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15128 $as_echo "$ol_cv_resolver_none" >&6; }
15129
15130         if test $ol_cv_resolver_none = yes ; then
15131                 ol_cv_lib_resolver=yes
15132         fi
15133 fi
15134
15135 if test $ol_cv_lib_resolver = no ; then
15136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15137 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15138 if test "${ol_cv_resolver_resolv+set}" = set; then :
15139   $as_echo_n "(cached) " >&6
15140 else
15141
15142         ol_RESOLVER_LIB=-lresolv
15143         ol_LIBS=$LIBS
15144         LIBS="$ol_RESOLVER_LIB $LIBS"
15145
15146         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h.  */
15148
15149 #ifdef HAVE_SYS_TYPES_H
15150 #       include <sys/types.h>
15151 #endif
15152 #include <netinet/in.h>
15153 #ifdef HAVE_ARPA_NAMESER_H
15154 #       include <arpa/nameser.h>
15155 #endif
15156 #ifdef HAVE_RESOLV_H
15157 #       include <resolv.h>
15158 #endif
15159
15160 int
15161 main ()
15162 {
15163 {
15164         int len, status;
15165         char *request = NULL;
15166         unsigned char reply[64*1024];
15167         unsigned char host[64*1024];
15168         unsigned char *p;
15169
15170 #ifdef NS_HFIXEDSZ
15171         /* Bind 8/9 interface */
15172         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15173 #else
15174         /* Bind 4 interface */
15175 # ifndef T_SRV
15176 #  define T_SRV 33
15177 # endif
15178         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15179 #endif
15180         p = reply;
15181 #ifdef NS_HFIXEDSZ
15182         /* Bind 8/9 interface */
15183         p += NS_HFIXEDSZ;
15184 #elif defined(HFIXEDSZ)
15185         /* Bind 4 interface w/ HFIXEDSZ */
15186         p += HFIXEDSZ;
15187 #else
15188         /* Bind 4 interface w/o HFIXEDSZ */
15189         p += sizeof(HEADER);
15190 #endif
15191         status = dn_expand( reply, reply+len, p, host, sizeof(host));
15192 }
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198   ol_cv_resolver_resolv=yes
15199 else
15200   ol_cv_resolver_resolv=no
15201 fi
15202 rm -f core conftest.err conftest.$ac_objext \
15203     conftest$ac_exeext conftest.$ac_ext
15204
15205         LIBS="$ol_LIBS"
15206
15207 fi
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15209 $as_echo "$ol_cv_resolver_resolv" >&6; }
15210
15211         if test $ol_cv_resolver_resolv = yes ; then
15212                 ol_cv_lib_resolver=-lresolv
15213         fi
15214 fi
15215
15216 if test $ol_cv_lib_resolver = no ; then
15217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15218 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15219 if test "${ol_cv_resolver_bind+set}" = set; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222
15223         ol_RESOLVER_LIB=-lbind
15224         ol_LIBS=$LIBS
15225         LIBS="$ol_RESOLVER_LIB $LIBS"
15226
15227         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h.  */
15229
15230 #ifdef HAVE_SYS_TYPES_H
15231 #       include <sys/types.h>
15232 #endif
15233 #include <netinet/in.h>
15234 #ifdef HAVE_ARPA_NAMESER_H
15235 #       include <arpa/nameser.h>
15236 #endif
15237 #ifdef HAVE_RESOLV_H
15238 #       include <resolv.h>
15239 #endif
15240
15241 int
15242 main ()
15243 {
15244 {
15245         int len, status;
15246         char *request = NULL;
15247         unsigned char reply[64*1024];
15248         unsigned char host[64*1024];
15249         unsigned char *p;
15250
15251 #ifdef NS_HFIXEDSZ
15252         /* Bind 8/9 interface */
15253         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15254 #else
15255         /* Bind 4 interface */
15256 # ifndef T_SRV
15257 #  define T_SRV 33
15258 # endif
15259         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15260 #endif
15261         p = reply;
15262 #ifdef NS_HFIXEDSZ
15263         /* Bind 8/9 interface */
15264         p += NS_HFIXEDSZ;
15265 #elif defined(HFIXEDSZ)
15266         /* Bind 4 interface w/ HFIXEDSZ */
15267         p += HFIXEDSZ;
15268 #else
15269         /* Bind 4 interface w/o HFIXEDSZ */
15270         p += sizeof(HEADER);
15271 #endif
15272         status = dn_expand( reply, reply+len, p, host, sizeof(host));
15273 }
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_c_try_link "$LINENO"; then :
15279   ol_cv_resolver_bind=yes
15280 else
15281   ol_cv_resolver_bind=no
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext \
15284     conftest$ac_exeext conftest.$ac_ext
15285
15286         LIBS="$ol_LIBS"
15287
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15290 $as_echo "$ol_cv_resolver_bind" >&6; }
15291
15292         if test $ol_cv_resolver_bind = yes ; then
15293                 ol_cv_lib_resolver=-lbind
15294         fi
15295 fi
15296
15297
15298
15299 ol_link_dnssrv=no
15300 if test "$ol_cv_lib_resolver" != no ; then
15301
15302 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15303
15304
15305         if test "$ol_enable_dnssrv" != no ; then
15306                 ol_link_dnssrv=yes
15307         fi
15308
15309         if test "$ol_cv_lib_resolver" != yes ; then
15310                 LIBS="$ol_cv_lib_resolver $LIBS"
15311         fi
15312 fi
15313
15314 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15315         if test "$ol_link_dnssrv" = no ; then
15316                 as_fn_error "DNSSRV requires res_query()" "$LINENO" 5
15317         fi
15318 else
15319         ol_enable_dnssrv=no
15320 fi
15321
15322 for ac_func in hstrerror
15323 do :
15324   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15326 eval as_val=\$$as_ac_var
15327    if test "x$as_val" = x""yes; then :
15328   cat >>confdefs.h <<_ACEOF
15329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15330 _ACEOF
15331
15332 fi
15333 done
15334
15335
15336 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15337 do :
15338   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15340 eval as_val=\$$as_ac_var
15341    if test "x$as_val" = x""yes; then :
15342   cat >>confdefs.h <<_ACEOF
15343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15344 _ACEOF
15345
15346 fi
15347 done
15348
15349
15350 ol_link_ipv6=no
15351 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15352         if test $ol_enable_ipv6 = yes ; then
15353                 as_fn_error "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15354         fi
15355 elif test $ol_enable_ipv6 != no ; then
15356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15357 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15358 if test "${ol_cv_inet6_addrstrlen+set}" = set; then :
15359   $as_echo_n "(cached) " >&6
15360 else
15361
15362                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h.  */
15364
15365 #                       include <netinet/in.h>
15366 #                       ifdef INET6_ADDRSTRLEN
15367                                 __has_inet6_addrstrlen__;
15368 #                       endif
15369
15370 _ACEOF
15371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15372   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15373   ol_cv_inet6_addrstrlen=yes
15374 else
15375   ol_cv_inet6_addrstrlen=no
15376 fi
15377 rm -f conftest*
15378
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15381 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15382
15383
15384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15385 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15386 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then :
15387   $as_echo_n "(cached) " >&6
15388 else
15389
15390                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h.  */
15392
15393 #include <sys/types.h>
15394 #include <sys/socket.h>
15395
15396 int
15397 main ()
15398 {
15399
15400                         struct sockaddr_storage ss;
15401
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 if ac_fn_c_try_compile "$LINENO"; then :
15407   ol_cv_struct_sockaddr_storage=yes
15408 else
15409   ol_cv_struct_sockaddr_storage=no
15410 fi
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 fi
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15414 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15415
15416         if test $ol_cv_inet6_addrstrlen = yes &&
15417            test $ol_cv_struct_sockaddr_storage = yes ; then
15418                 ol_link_ipv6=yes
15419         elif test $ol_enable_ipv6 = yes &&
15420              test $ol_cv_inet6_addrstrlen = no ; then
15421                 as_fn_error "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15422         elif test $ol_enable_ipv6 = yes &&
15423              test $ol_cv_struct_sockaddr_storage = no ; then
15424                 as_fn_error "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15425         fi
15426 fi
15427
15428 if test $ol_enable_local != no ; then
15429         for ac_header in sys/un.h
15430 do :
15431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15433 eval as_val=\$$as_ac_Header
15434    if test "x$as_val" = x""yes; then :
15435   cat >>confdefs.h <<_ACEOF
15436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15437 _ACEOF
15438
15439 fi
15440
15441 done
15442
15443
15444         if test $ol_enable_local = auto ; then
15445                 ol_enable_local=$ac_cv_header_sys_un_h
15446         elif test $ac_cv_header_sys_un_h = no ; then
15447                 as_fn_error "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15448         fi
15449 fi
15450
15451
15452 if test $ol_with_tls = yes ; then
15453         ol_with_tls=auto
15454 fi
15455
15456 ol_link_tls=no
15457 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15458         for ac_header in openssl/ssl.h
15459 do :
15460   ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15461 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
15462   cat >>confdefs.h <<_ACEOF
15463 #define HAVE_OPENSSL_SSL_H 1
15464 _ACEOF
15465
15466 fi
15467
15468 done
15469
15470
15471         if test $ac_cv_header_openssl_ssl_h = yes ; then
15472                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
15473 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
15474 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
15475   $as_echo_n "(cached) " >&6
15476 else
15477   ac_check_lib_save_LIBS=$LIBS
15478 LIBS="-lssl -lcrypto $LIBS"
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h.  */
15481
15482 /* Override any GCC internal prototype to avoid an error.
15483    Use char because int might match the return type of a GCC
15484    builtin and then its argument prototype would still apply.  */
15485 #ifdef __cplusplus
15486 extern "C"
15487 #endif
15488 char SSL_library_init ();
15489 int
15490 main ()
15491 {
15492 return SSL_library_init ();
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 if ac_fn_c_try_link "$LINENO"; then :
15498   ac_cv_lib_ssl_SSL_library_init=yes
15499 else
15500   ac_cv_lib_ssl_SSL_library_init=no
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext \
15503     conftest$ac_exeext conftest.$ac_ext
15504 LIBS=$ac_check_lib_save_LIBS
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15507 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
15508 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
15509   have_openssl=yes
15510                         need_rsaref=no
15511 else
15512   have_openssl=no
15513 fi
15514
15515
15516                 if test $have_openssl = no ; then
15517                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15518 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15519 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then :
15520   $as_echo_n "(cached) " >&6
15521 else
15522   ac_check_lib_save_LIBS=$LIBS
15523 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h.  */
15526
15527 /* Override any GCC internal prototype to avoid an error.
15528    Use char because int might match the return type of a GCC
15529    builtin and then its argument prototype would still apply.  */
15530 #ifdef __cplusplus
15531 extern "C"
15532 #endif
15533 char ssl3_accept ();
15534 int
15535 main ()
15536 {
15537 return ssl3_accept ();
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543   ac_cv_lib_ssl_ssl3_accept=yes
15544 else
15545   ac_cv_lib_ssl_ssl3_accept=no
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext \
15548     conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15550 fi
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15552 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15553 if test "x$ac_cv_lib_ssl_ssl3_accept" = x""yes; then :
15554   have_openssl=yes
15555                                 need_rsaref=yes
15556 else
15557   have_openssl=no
15558 fi
15559
15560                 fi
15561
15562                 if test $have_openssl = yes ; then
15563                         ol_with_tls=openssl
15564                         ol_link_tls=yes
15565
15566
15567 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15568
15569
15570                         if test $need_rsaref = yes; then
15571
15572 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15573
15574
15575                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15576                         else
15577                                 TLS_LIBS="-lssl -lcrypto"
15578                         fi
15579
15580                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15581 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15582 if test "${ol_cv_ssl_crl_compat+set}" = set; then :
15583   $as_echo_n "(cached) " >&6
15584 else
15585
15586                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h.  */
15588
15589 #ifdef HAVE_OPENSSL_SSL_H
15590 #include <openssl/ssl.h>
15591 #endif
15592
15593 /* Require 0.9.7d+ */
15594 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15595         char *__ssl_compat = "0.9.7d";
15596 #endif
15597
15598 _ACEOF
15599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15600   $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15601   ol_cv_ssl_crl_compat=yes
15602 else
15603   ol_cv_ssl_crl_compat=no
15604 fi
15605 rm -f conftest*
15606
15607 fi
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15609 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15610
15611                         if test $ol_cv_ssl_crl_compat = yes ; then
15612
15613 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15614
15615                         fi
15616                 fi
15617         fi
15618 fi
15619
15620 if test $ol_link_tls = no ; then
15621         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15622                 for ac_header in gnutls/gnutls.h
15623 do :
15624   ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15625 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
15626   cat >>confdefs.h <<_ACEOF
15627 #define HAVE_GNUTLS_GNUTLS_H 1
15628 _ACEOF
15629
15630 fi
15631
15632 done
15633
15634
15635                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15636                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15637 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15638 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then :
15639   $as_echo_n "(cached) " >&6
15640 else
15641   ac_check_lib_save_LIBS=$LIBS
15642 LIBS="-lgnutls  $LIBS"
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h.  */
15645
15646 /* Override any GCC internal prototype to avoid an error.
15647    Use char because int might match the return type of a GCC
15648    builtin and then its argument prototype would still apply.  */
15649 #ifdef __cplusplus
15650 extern "C"
15651 #endif
15652 char gnutls_init ();
15653 int
15654 main ()
15655 {
15656 return gnutls_init ();
15657   ;
15658   return 0;
15659 }
15660 _ACEOF
15661 if ac_fn_c_try_link "$LINENO"; then :
15662   ac_cv_lib_gnutls_gnutls_init=yes
15663 else
15664   ac_cv_lib_gnutls_gnutls_init=no
15665 fi
15666 rm -f core conftest.err conftest.$ac_objext \
15667     conftest$ac_exeext conftest.$ac_ext
15668 LIBS=$ac_check_lib_save_LIBS
15669 fi
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15671 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15672 if test "x$ac_cv_lib_gnutls_gnutls_init" = x""yes; then :
15673   have_gnutls=yes
15674 else
15675   have_gnutls=no
15676 fi
15677
15678
15679                         if test $have_gnutls = yes ; then
15680                                 ol_with_tls=gnutls
15681                                 ol_link_tls=yes
15682
15683                                 TLS_LIBS="-lgnutls"
15684
15685
15686 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15687
15688                         fi
15689                 fi
15690         fi
15691 fi
15692
15693 if test $ol_link_tls = no ; then
15694         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15695                 have_moznss=no
15696                 for ac_header in nssutil.h
15697 do :
15698   ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15699 if test "x$ac_cv_header_nssutil_h" = x""yes; then :
15700   cat >>confdefs.h <<_ACEOF
15701 #define HAVE_NSSUTIL_H 1
15702 _ACEOF
15703
15704 fi
15705
15706 done
15707
15708                 if test "$ac_cv_header_nssutil_h" = yes ; then
15709                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15710 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15711 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
15712   $as_echo_n "(cached) " >&6
15713 else
15714   ac_check_lib_save_LIBS=$LIBS
15715 LIBS="-lnss3  $LIBS"
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h.  */
15718
15719 /* Override any GCC internal prototype to avoid an error.
15720    Use char because int might match the return type of a GCC
15721    builtin and then its argument prototype would still apply.  */
15722 #ifdef __cplusplus
15723 extern "C"
15724 #endif
15725 char NSS_Initialize ();
15726 int
15727 main ()
15728 {
15729 return NSS_Initialize ();
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 if ac_fn_c_try_link "$LINENO"; then :
15735   ac_cv_lib_nss3_NSS_Initialize=yes
15736 else
15737   ac_cv_lib_nss3_NSS_Initialize=no
15738 fi
15739 rm -f core conftest.err conftest.$ac_objext \
15740     conftest$ac_exeext conftest.$ac_ext
15741 LIBS=$ac_check_lib_save_LIBS
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15744 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15745 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
15746    have_moznss=yes
15747 else
15748    have_moznss=no
15749 fi
15750
15751                 fi
15752
15753                 if test "$have_moznss" = yes ; then
15754                         ol_with_tls=moznss
15755                         ol_link_tls=yes
15756
15757 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15758
15759                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15760                 else
15761                         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
15762                 fi
15763         fi
15764 fi
15765
15766 WITH_TLS=no
15767 if test $ol_link_tls = yes ; then
15768
15769 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15770
15771         WITH_TLS=yes
15772 elif test $ol_with_tls = auto ; then
15773         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15774 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15775         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15776 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15777 elif test $ol_with_tls != no ; then
15778         as_fn_error "Could not locate TLS/SSL package" "$LINENO" 5
15779 else
15780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15781 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15782 fi
15783
15784 if test $ol_enable_lmpasswd != no; then
15785         if test $ol_link_tls != yes ; then
15786                 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
15787         fi
15788
15789
15790 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15791
15792 fi
15793
15794 ol_link_threads=no
15795
15796 case $ol_with_threads in auto | yes | nt)
15797
15798
15799         ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15800 if test "x$ac_cv_func__beginthread" = x""yes; then :
15801
15802 fi
15803
15804
15805         if test $ac_cv_func__beginthread = yes ; then
15806
15807 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15808
15809                 ol_cv_nt_threads=yes
15810         fi
15811
15812
15813         if test "$ol_cv_nt_threads" = yes ; then
15814                 ol_link_threads=nt
15815                 ol_with_threads=found
15816                 ol_with_yielding_select=yes
15817
15818
15819 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15820
15821
15822 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15823
15824         fi
15825
15826         if test $ol_with_threads = nt ; then
15827                 as_fn_error "could not locate NT Threads" "$LINENO" 5
15828         fi
15829         ;;
15830 esac
15831
15832 case $ol_with_threads in auto | yes | posix)
15833
15834         for ac_header in pthread.h
15835 do :
15836   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15837 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15838   cat >>confdefs.h <<_ACEOF
15839 #define HAVE_PTHREAD_H 1
15840 _ACEOF
15841
15842 fi
15843
15844 done
15845
15846
15847         if test $ac_cv_header_pthread_h = yes ; then
15848                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15849 $as_echo_n "checking POSIX thread version... " >&6; }
15850 if test "${ol_cv_pthread_version+set}" = set; then :
15851   $as_echo_n "(cached) " >&6
15852 else
15853
15854         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h.  */
15856
15857 #               include <pthread.h>
15858
15859 int
15860 main ()
15861 {
15862
15863                 int i = PTHREAD_CREATE_JOINABLE;
15864
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870
15871         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h.  */
15873 #include <pthread.h>
15874
15875 _ACEOF
15876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15877   $EGREP "pthread_detach" >/dev/null 2>&1; then :
15878   ol_cv_pthread_version=10
15879 else
15880   ol_cv_pthread_version=8
15881 fi
15882 rm -f conftest*
15883
15884 else
15885
15886         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h.  */
15888
15889 #               include <pthread.h>
15890 #               ifdef PTHREAD_CREATE_UNDETACHED
15891                 draft7
15892 #               endif
15893
15894 _ACEOF
15895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15896   $EGREP "draft7" >/dev/null 2>&1; then :
15897   ol_cv_pthread_version=7
15898 else
15899
15900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h.  */
15902 #include <pthread.h>
15903
15904 _ACEOF
15905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15906   $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15907   ol_cv_pthread_version=6
15908 else
15909
15910         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h.  */
15912
15913 #               include <pthread.h>
15914 #ifdef          PTHREAD_MUTEX_INITIALIZER
15915                 draft5
15916 #endif
15917
15918 _ACEOF
15919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15920   $EGREP "draft5" >/dev/null 2>&1; then :
15921   ol_cv_pthread_version=5
15922 else
15923   ol_cv_pthread_version=4
15924 fi
15925 rm -f conftest*
15926
15927 fi
15928 rm -f conftest*
15929
15930 fi
15931 rm -f conftest*
15932
15933 fi
15934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15938 $as_echo "$ol_cv_pthread_version" >&6; }
15939
15940
15941                 if test $ol_cv_pthread_version != 0 ; then
15942
15943 cat >>confdefs.h <<_ACEOF
15944 #define HAVE_PTHREADS $ol_cv_pthread_version
15945 _ACEOF
15946
15947                 else
15948                         as_fn_error "unknown pthread version" "$LINENO" 5
15949                 fi
15950
15951                 # consider threads found
15952                 ol_with_threads=found
15953
15954
15955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15956 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15957 if test "${ol_cv_header_linux_threads+set}" = set; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h.  */
15962 #include <pthread.h>
15963 _ACEOF
15964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15966   ol_cv_header_linux_threads=yes
15967 else
15968   ol_cv_header_linux_threads=no
15969 fi
15970 rm -f conftest*
15971
15972
15973 fi
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
15975 $as_echo "$ol_cv_header_linux_threads" >&6; }
15976         if test $ol_cv_header_linux_threads = yes; then
15977
15978 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
15979
15980         fi
15981
15982
15983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
15984 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
15985 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then :
15986   $as_echo_n "(cached) " >&6
15987 else
15988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h.  */
15990 #include <pthread.h>
15991 #ifdef _POSIX_THREAD_IS_GNU_PTH
15992         __gnu_pth__;
15993 #endif
15994
15995 _ACEOF
15996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15997   $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
15998   ol_cv_header_gnu_pth_pthread_h=yes
15999 else
16000   ol_cv_header_gnu_pth_pthread_h=no
16001 fi
16002 rm -f conftest*
16003
16004
16005 fi
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16007 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16008
16009
16010                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16011                         for ac_header in sched.h
16012 do :
16013   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16014 if test "x$ac_cv_header_sched_h" = x""yes; then :
16015   cat >>confdefs.h <<_ACEOF
16016 #define HAVE_SCHED_H 1
16017 _ACEOF
16018
16019 fi
16020
16021 done
16022
16023                 fi
16024
16025
16026                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16027 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16028 if test "${ol_cv_pthread_create+set}" = set; then :
16029   $as_echo_n "(cached) " >&6
16030 else
16031
16032                         if test "$cross_compiling" = yes; then :
16033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035
16036 /* pthread test headers */
16037 #include <pthread.h>
16038 #if HAVE_PTHREADS < 7
16039 #include <errno.h>
16040 #endif
16041 #ifndef NULL
16042 #define NULL (void*)0
16043 #endif
16044
16045 static void *task(p)
16046         void *p;
16047 {
16048         return (void *) (p == NULL);
16049 }
16050
16051 int
16052 main ()
16053 {
16054
16055         /* pthread test function */
16056 #ifndef PTHREAD_CREATE_DETACHED
16057 #define PTHREAD_CREATE_DETACHED 1
16058 #endif
16059         pthread_t t;
16060         int status;
16061         int detach = PTHREAD_CREATE_DETACHED;
16062
16063 #if HAVE_PTHREADS > 4
16064         /* Final pthreads */
16065         pthread_attr_t attr;
16066
16067         status = pthread_attr_init(&attr);
16068         if( status ) return status;
16069
16070 #if HAVE_PTHREADS < 7
16071         status = pthread_attr_setdetachstate(&attr, &detach);
16072         if( status < 0 ) status = errno;
16073 #else
16074         status = pthread_attr_setdetachstate(&attr, detach);
16075 #endif
16076         if( status ) return status;
16077         status = pthread_create( &t, &attr, task, NULL );
16078 #if HAVE_PTHREADS < 7
16079         if( status < 0 ) status = errno;
16080 #endif
16081         if( status ) return status;
16082 #else
16083         /* Draft 4 pthreads */
16084         status = pthread_create( &t, pthread_attr_default, task, NULL );
16085         if( status ) return errno;
16086
16087         /* give thread a chance to complete */
16088         /* it should remain joinable and hence detachable */
16089         sleep( 1 );
16090
16091         status = pthread_detach( &t );
16092         if( status ) return errno;
16093 #endif
16094
16095 #ifdef HAVE_LINUX_THREADS
16096         pthread_kill_other_threads_np();
16097 #endif
16098
16099         return 0;
16100
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 if ac_fn_c_try_link "$LINENO"; then :
16106   ol_cv_pthread_create=yes
16107 else
16108   ol_cv_pthread_create=no
16109 fi
16110 rm -f core conftest.err conftest.$ac_objext \
16111     conftest$ac_exeext conftest.$ac_ext
16112 else
16113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h.  */
16115
16116 /* pthread test headers */
16117 #include <pthread.h>
16118 #if HAVE_PTHREADS < 7
16119 #include <errno.h>
16120 #endif
16121 #ifndef NULL
16122 #define NULL (void*)0
16123 #endif
16124
16125 static void *task(p)
16126         void *p;
16127 {
16128         return (void *) (p == NULL);
16129 }
16130
16131
16132 int main(argc, argv)
16133         int argc;
16134         char **argv;
16135 {
16136
16137         /* pthread test function */
16138 #ifndef PTHREAD_CREATE_DETACHED
16139 #define PTHREAD_CREATE_DETACHED 1
16140 #endif
16141         pthread_t t;
16142         int status;
16143         int detach = PTHREAD_CREATE_DETACHED;
16144
16145 #if HAVE_PTHREADS > 4
16146         /* Final pthreads */
16147         pthread_attr_t attr;
16148
16149         status = pthread_attr_init(&attr);
16150         if( status ) return status;
16151
16152 #if HAVE_PTHREADS < 7
16153         status = pthread_attr_setdetachstate(&attr, &detach);
16154         if( status < 0 ) status = errno;
16155 #else
16156         status = pthread_attr_setdetachstate(&attr, detach);
16157 #endif
16158         if( status ) return status;
16159         status = pthread_create( &t, &attr, task, NULL );
16160 #if HAVE_PTHREADS < 7
16161         if( status < 0 ) status = errno;
16162 #endif
16163         if( status ) return status;
16164 #else
16165         /* Draft 4 pthreads */
16166         status = pthread_create( &t, pthread_attr_default, task, NULL );
16167         if( status ) return errno;
16168
16169         /* give thread a chance to complete */
16170         /* it should remain joinable and hence detachable */
16171         sleep( 1 );
16172
16173         status = pthread_detach( &t );
16174         if( status ) return errno;
16175 #endif
16176
16177 #ifdef HAVE_LINUX_THREADS
16178         pthread_kill_other_threads_np();
16179 #endif
16180
16181         return 0;
16182
16183 }
16184
16185 _ACEOF
16186 if ac_fn_c_try_run "$LINENO"; then :
16187   ol_cv_pthread_create=yes
16188 else
16189   ol_cv_pthread_create=no
16190 fi
16191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16192   conftest.$ac_objext conftest.beam conftest.$ac_ext
16193 fi
16194
16195 fi
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16197 $as_echo "$ol_cv_pthread_create" >&6; }
16198
16199                 if test $ol_cv_pthread_create != no ; then
16200                         ol_link_threads=posix
16201                         ol_link_pthreads=""
16202                 fi
16203
16204                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16205 if test "$ol_link_threads" = no ; then
16206         # try -kthread
16207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16208 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16209 if test "${ol_cv_pthread_kthread+set}" = set; then :
16210   $as_echo_n "(cached) " >&6
16211 else
16212
16213                 # save the flags
16214                 ol_LIBS="$LIBS"
16215                 LIBS="-kthread $LIBS"
16216
16217                 if test "$cross_compiling" = yes; then :
16218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220
16221 /* pthread test headers */
16222 #include <pthread.h>
16223 #if HAVE_PTHREADS < 7
16224 #include <errno.h>
16225 #endif
16226 #ifndef NULL
16227 #define NULL (void*)0
16228 #endif
16229
16230 static void *task(p)
16231         void *p;
16232 {
16233         return (void *) (p == NULL);
16234 }
16235
16236 int
16237 main ()
16238 {
16239
16240         /* pthread test function */
16241 #ifndef PTHREAD_CREATE_DETACHED
16242 #define PTHREAD_CREATE_DETACHED 1
16243 #endif
16244         pthread_t t;
16245         int status;
16246         int detach = PTHREAD_CREATE_DETACHED;
16247
16248 #if HAVE_PTHREADS > 4
16249         /* Final pthreads */
16250         pthread_attr_t attr;
16251
16252         status = pthread_attr_init(&attr);
16253         if( status ) return status;
16254
16255 #if HAVE_PTHREADS < 7
16256         status = pthread_attr_setdetachstate(&attr, &detach);
16257         if( status < 0 ) status = errno;
16258 #else
16259         status = pthread_attr_setdetachstate(&attr, detach);
16260 #endif
16261         if( status ) return status;
16262         status = pthread_create( &t, &attr, task, NULL );
16263 #if HAVE_PTHREADS < 7
16264         if( status < 0 ) status = errno;
16265 #endif
16266         if( status ) return status;
16267 #else
16268         /* Draft 4 pthreads */
16269         status = pthread_create( &t, pthread_attr_default, task, NULL );
16270         if( status ) return errno;
16271
16272         /* give thread a chance to complete */
16273         /* it should remain joinable and hence detachable */
16274         sleep( 1 );
16275
16276         status = pthread_detach( &t );
16277         if( status ) return errno;
16278 #endif
16279
16280 #ifdef HAVE_LINUX_THREADS
16281         pthread_kill_other_threads_np();
16282 #endif
16283
16284         return 0;
16285
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_link "$LINENO"; then :
16291   ol_cv_pthread_kthread=yes
16292 else
16293   ol_cv_pthread_kthread=no
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext \
16296     conftest$ac_exeext conftest.$ac_ext
16297 else
16298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h.  */
16300
16301 /* pthread test headers */
16302 #include <pthread.h>
16303 #if HAVE_PTHREADS < 7
16304 #include <errno.h>
16305 #endif
16306 #ifndef NULL
16307 #define NULL (void*)0
16308 #endif
16309
16310 static void *task(p)
16311         void *p;
16312 {
16313         return (void *) (p == NULL);
16314 }
16315
16316
16317 int main(argc, argv)
16318         int argc;
16319         char **argv;
16320 {
16321
16322         /* pthread test function */
16323 #ifndef PTHREAD_CREATE_DETACHED
16324 #define PTHREAD_CREATE_DETACHED 1
16325 #endif
16326         pthread_t t;
16327         int status;
16328         int detach = PTHREAD_CREATE_DETACHED;
16329
16330 #if HAVE_PTHREADS > 4
16331         /* Final pthreads */
16332         pthread_attr_t attr;
16333
16334         status = pthread_attr_init(&attr);
16335         if( status ) return status;
16336
16337 #if HAVE_PTHREADS < 7
16338         status = pthread_attr_setdetachstate(&attr, &detach);
16339         if( status < 0 ) status = errno;
16340 #else
16341         status = pthread_attr_setdetachstate(&attr, detach);
16342 #endif
16343         if( status ) return status;
16344         status = pthread_create( &t, &attr, task, NULL );
16345 #if HAVE_PTHREADS < 7
16346         if( status < 0 ) status = errno;
16347 #endif
16348         if( status ) return status;
16349 #else
16350         /* Draft 4 pthreads */
16351         status = pthread_create( &t, pthread_attr_default, task, NULL );
16352         if( status ) return errno;
16353
16354         /* give thread a chance to complete */
16355         /* it should remain joinable and hence detachable */
16356         sleep( 1 );
16357
16358         status = pthread_detach( &t );
16359         if( status ) return errno;
16360 #endif
16361
16362 #ifdef HAVE_LINUX_THREADS
16363         pthread_kill_other_threads_np();
16364 #endif
16365
16366         return 0;
16367
16368 }
16369
16370 _ACEOF
16371 if ac_fn_c_try_run "$LINENO"; then :
16372   ol_cv_pthread_kthread=yes
16373 else
16374   ol_cv_pthread_kthread=no
16375 fi
16376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16377   conftest.$ac_objext conftest.beam conftest.$ac_ext
16378 fi
16379
16380
16381                 # restore the LIBS
16382                 LIBS="$ol_LIBS"
16383
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16386 $as_echo "$ol_cv_pthread_kthread" >&6; }
16387
16388         if test $ol_cv_pthread_kthread = yes ; then
16389                 ol_link_pthreads="-kthread"
16390                 ol_link_threads=posix
16391         fi
16392 fi
16393
16394                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16395 if test "$ol_link_threads" = no ; then
16396         # try -pthread
16397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16398 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16399 if test "${ol_cv_pthread_pthread+set}" = set; then :
16400   $as_echo_n "(cached) " >&6
16401 else
16402
16403                 # save the flags
16404                 ol_LIBS="$LIBS"
16405                 LIBS="-pthread $LIBS"
16406
16407                 if test "$cross_compiling" = yes; then :
16408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410
16411 /* pthread test headers */
16412 #include <pthread.h>
16413 #if HAVE_PTHREADS < 7
16414 #include <errno.h>
16415 #endif
16416 #ifndef NULL
16417 #define NULL (void*)0
16418 #endif
16419
16420 static void *task(p)
16421         void *p;
16422 {
16423         return (void *) (p == NULL);
16424 }
16425
16426 int
16427 main ()
16428 {
16429
16430         /* pthread test function */
16431 #ifndef PTHREAD_CREATE_DETACHED
16432 #define PTHREAD_CREATE_DETACHED 1
16433 #endif
16434         pthread_t t;
16435         int status;
16436         int detach = PTHREAD_CREATE_DETACHED;
16437
16438 #if HAVE_PTHREADS > 4
16439         /* Final pthreads */
16440         pthread_attr_t attr;
16441
16442         status = pthread_attr_init(&attr);
16443         if( status ) return status;
16444
16445 #if HAVE_PTHREADS < 7
16446         status = pthread_attr_setdetachstate(&attr, &detach);
16447         if( status < 0 ) status = errno;
16448 #else
16449         status = pthread_attr_setdetachstate(&attr, detach);
16450 #endif
16451         if( status ) return status;
16452         status = pthread_create( &t, &attr, task, NULL );
16453 #if HAVE_PTHREADS < 7
16454         if( status < 0 ) status = errno;
16455 #endif
16456         if( status ) return status;
16457 #else
16458         /* Draft 4 pthreads */
16459         status = pthread_create( &t, pthread_attr_default, task, NULL );
16460         if( status ) return errno;
16461
16462         /* give thread a chance to complete */
16463         /* it should remain joinable and hence detachable */
16464         sleep( 1 );
16465
16466         status = pthread_detach( &t );
16467         if( status ) return errno;
16468 #endif
16469
16470 #ifdef HAVE_LINUX_THREADS
16471         pthread_kill_other_threads_np();
16472 #endif
16473
16474         return 0;
16475
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 if ac_fn_c_try_link "$LINENO"; then :
16481   ol_cv_pthread_pthread=yes
16482 else
16483   ol_cv_pthread_pthread=no
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext \
16486     conftest$ac_exeext conftest.$ac_ext
16487 else
16488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h.  */
16490
16491 /* pthread test headers */
16492 #include <pthread.h>
16493 #if HAVE_PTHREADS < 7
16494 #include <errno.h>
16495 #endif
16496 #ifndef NULL
16497 #define NULL (void*)0
16498 #endif
16499
16500 static void *task(p)
16501         void *p;
16502 {
16503         return (void *) (p == NULL);
16504 }
16505
16506
16507 int main(argc, argv)
16508         int argc;
16509         char **argv;
16510 {
16511
16512         /* pthread test function */
16513 #ifndef PTHREAD_CREATE_DETACHED
16514 #define PTHREAD_CREATE_DETACHED 1
16515 #endif
16516         pthread_t t;
16517         int status;
16518         int detach = PTHREAD_CREATE_DETACHED;
16519
16520 #if HAVE_PTHREADS > 4
16521         /* Final pthreads */
16522         pthread_attr_t attr;
16523
16524         status = pthread_attr_init(&attr);
16525         if( status ) return status;
16526
16527 #if HAVE_PTHREADS < 7
16528         status = pthread_attr_setdetachstate(&attr, &detach);
16529         if( status < 0 ) status = errno;
16530 #else
16531         status = pthread_attr_setdetachstate(&attr, detach);
16532 #endif
16533         if( status ) return status;
16534         status = pthread_create( &t, &attr, task, NULL );
16535 #if HAVE_PTHREADS < 7
16536         if( status < 0 ) status = errno;
16537 #endif
16538         if( status ) return status;
16539 #else
16540         /* Draft 4 pthreads */
16541         status = pthread_create( &t, pthread_attr_default, task, NULL );
16542         if( status ) return errno;
16543
16544         /* give thread a chance to complete */
16545         /* it should remain joinable and hence detachable */
16546         sleep( 1 );
16547
16548         status = pthread_detach( &t );
16549         if( status ) return errno;
16550 #endif
16551
16552 #ifdef HAVE_LINUX_THREADS
16553         pthread_kill_other_threads_np();
16554 #endif
16555
16556         return 0;
16557
16558 }
16559
16560 _ACEOF
16561 if ac_fn_c_try_run "$LINENO"; then :
16562   ol_cv_pthread_pthread=yes
16563 else
16564   ol_cv_pthread_pthread=no
16565 fi
16566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16567   conftest.$ac_objext conftest.beam conftest.$ac_ext
16568 fi
16569
16570
16571                 # restore the LIBS
16572                 LIBS="$ol_LIBS"
16573
16574 fi
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16576 $as_echo "$ol_cv_pthread_pthread" >&6; }
16577
16578         if test $ol_cv_pthread_pthread = yes ; then
16579                 ol_link_pthreads="-pthread"
16580                 ol_link_threads=posix
16581         fi
16582 fi
16583
16584                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16585 if test "$ol_link_threads" = no ; then
16586         # try -pthreads
16587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16588 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16589 if test "${ol_cv_pthread_pthreads+set}" = set; then :
16590   $as_echo_n "(cached) " >&6
16591 else
16592
16593                 # save the flags
16594                 ol_LIBS="$LIBS"
16595                 LIBS="-pthreads $LIBS"
16596
16597                 if test "$cross_compiling" = yes; then :
16598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h.  */
16600
16601 /* pthread test headers */
16602 #include <pthread.h>
16603 #if HAVE_PTHREADS < 7
16604 #include <errno.h>
16605 #endif
16606 #ifndef NULL
16607 #define NULL (void*)0
16608 #endif
16609
16610 static void *task(p)
16611         void *p;
16612 {
16613         return (void *) (p == NULL);
16614 }
16615
16616 int
16617 main ()
16618 {
16619
16620         /* pthread test function */
16621 #ifndef PTHREAD_CREATE_DETACHED
16622 #define PTHREAD_CREATE_DETACHED 1
16623 #endif
16624         pthread_t t;
16625         int status;
16626         int detach = PTHREAD_CREATE_DETACHED;
16627
16628 #if HAVE_PTHREADS > 4
16629         /* Final pthreads */
16630         pthread_attr_t attr;
16631
16632         status = pthread_attr_init(&attr);
16633         if( status ) return status;
16634
16635 #if HAVE_PTHREADS < 7
16636         status = pthread_attr_setdetachstate(&attr, &detach);
16637         if( status < 0 ) status = errno;
16638 #else
16639         status = pthread_attr_setdetachstate(&attr, detach);
16640 #endif
16641         if( status ) return status;
16642         status = pthread_create( &t, &attr, task, NULL );
16643 #if HAVE_PTHREADS < 7
16644         if( status < 0 ) status = errno;
16645 #endif
16646         if( status ) return status;
16647 #else
16648         /* Draft 4 pthreads */
16649         status = pthread_create( &t, pthread_attr_default, task, NULL );
16650         if( status ) return errno;
16651
16652         /* give thread a chance to complete */
16653         /* it should remain joinable and hence detachable */
16654         sleep( 1 );
16655
16656         status = pthread_detach( &t );
16657         if( status ) return errno;
16658 #endif
16659
16660 #ifdef HAVE_LINUX_THREADS
16661         pthread_kill_other_threads_np();
16662 #endif
16663
16664         return 0;
16665
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 if ac_fn_c_try_link "$LINENO"; then :
16671   ol_cv_pthread_pthreads=yes
16672 else
16673   ol_cv_pthread_pthreads=no
16674 fi
16675 rm -f core conftest.err conftest.$ac_objext \
16676     conftest$ac_exeext conftest.$ac_ext
16677 else
16678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h.  */
16680
16681 /* pthread test headers */
16682 #include <pthread.h>
16683 #if HAVE_PTHREADS < 7
16684 #include <errno.h>
16685 #endif
16686 #ifndef NULL
16687 #define NULL (void*)0
16688 #endif
16689
16690 static void *task(p)
16691         void *p;
16692 {
16693         return (void *) (p == NULL);
16694 }
16695
16696
16697 int main(argc, argv)
16698         int argc;
16699         char **argv;
16700 {
16701
16702         /* pthread test function */
16703 #ifndef PTHREAD_CREATE_DETACHED
16704 #define PTHREAD_CREATE_DETACHED 1
16705 #endif
16706         pthread_t t;
16707         int status;
16708         int detach = PTHREAD_CREATE_DETACHED;
16709
16710 #if HAVE_PTHREADS > 4
16711         /* Final pthreads */
16712         pthread_attr_t attr;
16713
16714         status = pthread_attr_init(&attr);
16715         if( status ) return status;
16716
16717 #if HAVE_PTHREADS < 7
16718         status = pthread_attr_setdetachstate(&attr, &detach);
16719         if( status < 0 ) status = errno;
16720 #else
16721         status = pthread_attr_setdetachstate(&attr, detach);
16722 #endif
16723         if( status ) return status;
16724         status = pthread_create( &t, &attr, task, NULL );
16725 #if HAVE_PTHREADS < 7
16726         if( status < 0 ) status = errno;
16727 #endif
16728         if( status ) return status;
16729 #else
16730         /* Draft 4 pthreads */
16731         status = pthread_create( &t, pthread_attr_default, task, NULL );
16732         if( status ) return errno;
16733
16734         /* give thread a chance to complete */
16735         /* it should remain joinable and hence detachable */
16736         sleep( 1 );
16737
16738         status = pthread_detach( &t );
16739         if( status ) return errno;
16740 #endif
16741
16742 #ifdef HAVE_LINUX_THREADS
16743         pthread_kill_other_threads_np();
16744 #endif
16745
16746         return 0;
16747
16748 }
16749
16750 _ACEOF
16751 if ac_fn_c_try_run "$LINENO"; then :
16752   ol_cv_pthread_pthreads=yes
16753 else
16754   ol_cv_pthread_pthreads=no
16755 fi
16756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16757   conftest.$ac_objext conftest.beam conftest.$ac_ext
16758 fi
16759
16760
16761                 # restore the LIBS
16762                 LIBS="$ol_LIBS"
16763
16764 fi
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16766 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16767
16768         if test $ol_cv_pthread_pthreads = yes ; then
16769                 ol_link_pthreads="-pthreads"
16770                 ol_link_threads=posix
16771         fi
16772 fi
16773
16774                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16775 if test "$ol_link_threads" = no ; then
16776         # try -mthreads
16777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16778 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16779 if test "${ol_cv_pthread_mthreads+set}" = set; then :
16780   $as_echo_n "(cached) " >&6
16781 else
16782
16783                 # save the flags
16784                 ol_LIBS="$LIBS"
16785                 LIBS="-mthreads $LIBS"
16786
16787                 if test "$cross_compiling" = yes; then :
16788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789 /* end confdefs.h.  */
16790
16791 /* pthread test headers */
16792 #include <pthread.h>
16793 #if HAVE_PTHREADS < 7
16794 #include <errno.h>
16795 #endif
16796 #ifndef NULL
16797 #define NULL (void*)0
16798 #endif
16799
16800 static void *task(p)
16801         void *p;
16802 {
16803         return (void *) (p == NULL);
16804 }
16805
16806 int
16807 main ()
16808 {
16809
16810         /* pthread test function */
16811 #ifndef PTHREAD_CREATE_DETACHED
16812 #define PTHREAD_CREATE_DETACHED 1
16813 #endif
16814         pthread_t t;
16815         int status;
16816         int detach = PTHREAD_CREATE_DETACHED;
16817
16818 #if HAVE_PTHREADS > 4
16819         /* Final pthreads */
16820         pthread_attr_t attr;
16821
16822         status = pthread_attr_init(&attr);
16823         if( status ) return status;
16824
16825 #if HAVE_PTHREADS < 7
16826         status = pthread_attr_setdetachstate(&attr, &detach);
16827         if( status < 0 ) status = errno;
16828 #else
16829         status = pthread_attr_setdetachstate(&attr, detach);
16830 #endif
16831         if( status ) return status;
16832         status = pthread_create( &t, &attr, task, NULL );
16833 #if HAVE_PTHREADS < 7
16834         if( status < 0 ) status = errno;
16835 #endif
16836         if( status ) return status;
16837 #else
16838         /* Draft 4 pthreads */
16839         status = pthread_create( &t, pthread_attr_default, task, NULL );
16840         if( status ) return errno;
16841
16842         /* give thread a chance to complete */
16843         /* it should remain joinable and hence detachable */
16844         sleep( 1 );
16845
16846         status = pthread_detach( &t );
16847         if( status ) return errno;
16848 #endif
16849
16850 #ifdef HAVE_LINUX_THREADS
16851         pthread_kill_other_threads_np();
16852 #endif
16853
16854         return 0;
16855
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 if ac_fn_c_try_link "$LINENO"; then :
16861   ol_cv_pthread_mthreads=yes
16862 else
16863   ol_cv_pthread_mthreads=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext \
16866     conftest$ac_exeext conftest.$ac_ext
16867 else
16868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h.  */
16870
16871 /* pthread test headers */
16872 #include <pthread.h>
16873 #if HAVE_PTHREADS < 7
16874 #include <errno.h>
16875 #endif
16876 #ifndef NULL
16877 #define NULL (void*)0
16878 #endif
16879
16880 static void *task(p)
16881         void *p;
16882 {
16883         return (void *) (p == NULL);
16884 }
16885
16886
16887 int main(argc, argv)
16888         int argc;
16889         char **argv;
16890 {
16891
16892         /* pthread test function */
16893 #ifndef PTHREAD_CREATE_DETACHED
16894 #define PTHREAD_CREATE_DETACHED 1
16895 #endif
16896         pthread_t t;
16897         int status;
16898         int detach = PTHREAD_CREATE_DETACHED;
16899
16900 #if HAVE_PTHREADS > 4
16901         /* Final pthreads */
16902         pthread_attr_t attr;
16903
16904         status = pthread_attr_init(&attr);
16905         if( status ) return status;
16906
16907 #if HAVE_PTHREADS < 7
16908         status = pthread_attr_setdetachstate(&attr, &detach);
16909         if( status < 0 ) status = errno;
16910 #else
16911         status = pthread_attr_setdetachstate(&attr, detach);
16912 #endif
16913         if( status ) return status;
16914         status = pthread_create( &t, &attr, task, NULL );
16915 #if HAVE_PTHREADS < 7
16916         if( status < 0 ) status = errno;
16917 #endif
16918         if( status ) return status;
16919 #else
16920         /* Draft 4 pthreads */
16921         status = pthread_create( &t, pthread_attr_default, task, NULL );
16922         if( status ) return errno;
16923
16924         /* give thread a chance to complete */
16925         /* it should remain joinable and hence detachable */
16926         sleep( 1 );
16927
16928         status = pthread_detach( &t );
16929         if( status ) return errno;
16930 #endif
16931
16932 #ifdef HAVE_LINUX_THREADS
16933         pthread_kill_other_threads_np();
16934 #endif
16935
16936         return 0;
16937
16938 }
16939
16940 _ACEOF
16941 if ac_fn_c_try_run "$LINENO"; then :
16942   ol_cv_pthread_mthreads=yes
16943 else
16944   ol_cv_pthread_mthreads=no
16945 fi
16946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16947   conftest.$ac_objext conftest.beam conftest.$ac_ext
16948 fi
16949
16950
16951                 # restore the LIBS
16952                 LIBS="$ol_LIBS"
16953
16954 fi
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16956 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16957
16958         if test $ol_cv_pthread_mthreads = yes ; then
16959                 ol_link_pthreads="-mthreads"
16960                 ol_link_threads=posix
16961         fi
16962 fi
16963
16964                 # Pthread try link: -thread (ol_cv_pthread_thread)
16965 if test "$ol_link_threads" = no ; then
16966         # try -thread
16967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16968 $as_echo_n "checking for pthread link with -thread... " >&6; }
16969 if test "${ol_cv_pthread_thread+set}" = set; then :
16970   $as_echo_n "(cached) " >&6
16971 else
16972
16973                 # save the flags
16974                 ol_LIBS="$LIBS"
16975                 LIBS="-thread $LIBS"
16976
16977                 if test "$cross_compiling" = yes; then :
16978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979 /* end confdefs.h.  */
16980
16981 /* pthread test headers */
16982 #include <pthread.h>
16983 #if HAVE_PTHREADS < 7
16984 #include <errno.h>
16985 #endif
16986 #ifndef NULL
16987 #define NULL (void*)0
16988 #endif
16989
16990 static void *task(p)
16991         void *p;
16992 {
16993         return (void *) (p == NULL);
16994 }
16995
16996 int
16997 main ()
16998 {
16999
17000         /* pthread test function */
17001 #ifndef PTHREAD_CREATE_DETACHED
17002 #define PTHREAD_CREATE_DETACHED 1
17003 #endif
17004         pthread_t t;
17005         int status;
17006         int detach = PTHREAD_CREATE_DETACHED;
17007
17008 #if HAVE_PTHREADS > 4
17009         /* Final pthreads */
17010         pthread_attr_t attr;
17011
17012         status = pthread_attr_init(&attr);
17013         if( status ) return status;
17014
17015 #if HAVE_PTHREADS < 7
17016         status = pthread_attr_setdetachstate(&attr, &detach);
17017         if( status < 0 ) status = errno;
17018 #else
17019         status = pthread_attr_setdetachstate(&attr, detach);
17020 #endif
17021         if( status ) return status;
17022         status = pthread_create( &t, &attr, task, NULL );
17023 #if HAVE_PTHREADS < 7
17024         if( status < 0 ) status = errno;
17025 #endif
17026         if( status ) return status;
17027 #else
17028         /* Draft 4 pthreads */
17029         status = pthread_create( &t, pthread_attr_default, task, NULL );
17030         if( status ) return errno;
17031
17032         /* give thread a chance to complete */
17033         /* it should remain joinable and hence detachable */
17034         sleep( 1 );
17035
17036         status = pthread_detach( &t );
17037         if( status ) return errno;
17038 #endif
17039
17040 #ifdef HAVE_LINUX_THREADS
17041         pthread_kill_other_threads_np();
17042 #endif
17043
17044         return 0;
17045
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 if ac_fn_c_try_link "$LINENO"; then :
17051   ol_cv_pthread_thread=yes
17052 else
17053   ol_cv_pthread_thread=no
17054 fi
17055 rm -f core conftest.err conftest.$ac_objext \
17056     conftest$ac_exeext conftest.$ac_ext
17057 else
17058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h.  */
17060
17061 /* pthread test headers */
17062 #include <pthread.h>
17063 #if HAVE_PTHREADS < 7
17064 #include <errno.h>
17065 #endif
17066 #ifndef NULL
17067 #define NULL (void*)0
17068 #endif
17069
17070 static void *task(p)
17071         void *p;
17072 {
17073         return (void *) (p == NULL);
17074 }
17075
17076
17077 int main(argc, argv)
17078         int argc;
17079         char **argv;
17080 {
17081
17082         /* pthread test function */
17083 #ifndef PTHREAD_CREATE_DETACHED
17084 #define PTHREAD_CREATE_DETACHED 1
17085 #endif
17086         pthread_t t;
17087         int status;
17088         int detach = PTHREAD_CREATE_DETACHED;
17089
17090 #if HAVE_PTHREADS > 4
17091         /* Final pthreads */
17092         pthread_attr_t attr;
17093
17094         status = pthread_attr_init(&attr);
17095         if( status ) return status;
17096
17097 #if HAVE_PTHREADS < 7
17098         status = pthread_attr_setdetachstate(&attr, &detach);
17099         if( status < 0 ) status = errno;
17100 #else
17101         status = pthread_attr_setdetachstate(&attr, detach);
17102 #endif
17103         if( status ) return status;
17104         status = pthread_create( &t, &attr, task, NULL );
17105 #if HAVE_PTHREADS < 7
17106         if( status < 0 ) status = errno;
17107 #endif
17108         if( status ) return status;
17109 #else
17110         /* Draft 4 pthreads */
17111         status = pthread_create( &t, pthread_attr_default, task, NULL );
17112         if( status ) return errno;
17113
17114         /* give thread a chance to complete */
17115         /* it should remain joinable and hence detachable */
17116         sleep( 1 );
17117
17118         status = pthread_detach( &t );
17119         if( status ) return errno;
17120 #endif
17121
17122 #ifdef HAVE_LINUX_THREADS
17123         pthread_kill_other_threads_np();
17124 #endif
17125
17126         return 0;
17127
17128 }
17129
17130 _ACEOF
17131 if ac_fn_c_try_run "$LINENO"; then :
17132   ol_cv_pthread_thread=yes
17133 else
17134   ol_cv_pthread_thread=no
17135 fi
17136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17137   conftest.$ac_objext conftest.beam conftest.$ac_ext
17138 fi
17139
17140
17141                 # restore the LIBS
17142                 LIBS="$ol_LIBS"
17143
17144 fi
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17146 $as_echo "$ol_cv_pthread_thread" >&6; }
17147
17148         if test $ol_cv_pthread_thread = yes ; then
17149                 ol_link_pthreads="-thread"
17150                 ol_link_threads=posix
17151         fi
17152 fi
17153
17154
17155                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17156 if test "$ol_link_threads" = no ; then
17157         # try -lpthread -lmach -lexc -lc_r
17158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17159 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17160 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then :
17161   $as_echo_n "(cached) " >&6
17162 else
17163
17164                 # save the flags
17165                 ol_LIBS="$LIBS"
17166                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17167
17168                 if test "$cross_compiling" = yes; then :
17169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h.  */
17171
17172 /* pthread test headers */
17173 #include <pthread.h>
17174 #if HAVE_PTHREADS < 7
17175 #include <errno.h>
17176 #endif
17177 #ifndef NULL
17178 #define NULL (void*)0
17179 #endif
17180
17181 static void *task(p)
17182         void *p;
17183 {
17184         return (void *) (p == NULL);
17185 }
17186
17187 int
17188 main ()
17189 {
17190
17191         /* pthread test function */
17192 #ifndef PTHREAD_CREATE_DETACHED
17193 #define PTHREAD_CREATE_DETACHED 1
17194 #endif
17195         pthread_t t;
17196         int status;
17197         int detach = PTHREAD_CREATE_DETACHED;
17198
17199 #if HAVE_PTHREADS > 4
17200         /* Final pthreads */
17201         pthread_attr_t attr;
17202
17203         status = pthread_attr_init(&attr);
17204         if( status ) return status;
17205
17206 #if HAVE_PTHREADS < 7
17207         status = pthread_attr_setdetachstate(&attr, &detach);
17208         if( status < 0 ) status = errno;
17209 #else
17210         status = pthread_attr_setdetachstate(&attr, detach);
17211 #endif
17212         if( status ) return status;
17213         status = pthread_create( &t, &attr, task, NULL );
17214 #if HAVE_PTHREADS < 7
17215         if( status < 0 ) status = errno;
17216 #endif
17217         if( status ) return status;
17218 #else
17219         /* Draft 4 pthreads */
17220         status = pthread_create( &t, pthread_attr_default, task, NULL );
17221         if( status ) return errno;
17222
17223         /* give thread a chance to complete */
17224         /* it should remain joinable and hence detachable */
17225         sleep( 1 );
17226
17227         status = pthread_detach( &t );
17228         if( status ) return errno;
17229 #endif
17230
17231 #ifdef HAVE_LINUX_THREADS
17232         pthread_kill_other_threads_np();
17233 #endif
17234
17235         return 0;
17236
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 if ac_fn_c_try_link "$LINENO"; then :
17242   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17243 else
17244   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext \
17247     conftest$ac_exeext conftest.$ac_ext
17248 else
17249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h.  */
17251
17252 /* pthread test headers */
17253 #include <pthread.h>
17254 #if HAVE_PTHREADS < 7
17255 #include <errno.h>
17256 #endif
17257 #ifndef NULL
17258 #define NULL (void*)0
17259 #endif
17260
17261 static void *task(p)
17262         void *p;
17263 {
17264         return (void *) (p == NULL);
17265 }
17266
17267
17268 int main(argc, argv)
17269         int argc;
17270         char **argv;
17271 {
17272
17273         /* pthread test function */
17274 #ifndef PTHREAD_CREATE_DETACHED
17275 #define PTHREAD_CREATE_DETACHED 1
17276 #endif
17277         pthread_t t;
17278         int status;
17279         int detach = PTHREAD_CREATE_DETACHED;
17280
17281 #if HAVE_PTHREADS > 4
17282         /* Final pthreads */
17283         pthread_attr_t attr;
17284
17285         status = pthread_attr_init(&attr);
17286         if( status ) return status;
17287
17288 #if HAVE_PTHREADS < 7
17289         status = pthread_attr_setdetachstate(&attr, &detach);
17290         if( status < 0 ) status = errno;
17291 #else
17292         status = pthread_attr_setdetachstate(&attr, detach);
17293 #endif
17294         if( status ) return status;
17295         status = pthread_create( &t, &attr, task, NULL );
17296 #if HAVE_PTHREADS < 7
17297         if( status < 0 ) status = errno;
17298 #endif
17299         if( status ) return status;
17300 #else
17301         /* Draft 4 pthreads */
17302         status = pthread_create( &t, pthread_attr_default, task, NULL );
17303         if( status ) return errno;
17304
17305         /* give thread a chance to complete */
17306         /* it should remain joinable and hence detachable */
17307         sleep( 1 );
17308
17309         status = pthread_detach( &t );
17310         if( status ) return errno;
17311 #endif
17312
17313 #ifdef HAVE_LINUX_THREADS
17314         pthread_kill_other_threads_np();
17315 #endif
17316
17317         return 0;
17318
17319 }
17320
17321 _ACEOF
17322 if ac_fn_c_try_run "$LINENO"; then :
17323   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17324 else
17325   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17326 fi
17327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17328   conftest.$ac_objext conftest.beam conftest.$ac_ext
17329 fi
17330
17331
17332                 # restore the LIBS
17333                 LIBS="$ol_LIBS"
17334
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17337 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17338
17339         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17340                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17341                 ol_link_threads=posix
17342         fi
17343 fi
17344
17345                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17346 if test "$ol_link_threads" = no ; then
17347         # try -lpthread -lmach -lexc
17348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17349 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17350 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then :
17351   $as_echo_n "(cached) " >&6
17352 else
17353
17354                 # save the flags
17355                 ol_LIBS="$LIBS"
17356                 LIBS="-lpthread -lmach -lexc $LIBS"
17357
17358                 if test "$cross_compiling" = yes; then :
17359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h.  */
17361
17362 /* pthread test headers */
17363 #include <pthread.h>
17364 #if HAVE_PTHREADS < 7
17365 #include <errno.h>
17366 #endif
17367 #ifndef NULL
17368 #define NULL (void*)0
17369 #endif
17370
17371 static void *task(p)
17372         void *p;
17373 {
17374         return (void *) (p == NULL);
17375 }
17376
17377 int
17378 main ()
17379 {
17380
17381         /* pthread test function */
17382 #ifndef PTHREAD_CREATE_DETACHED
17383 #define PTHREAD_CREATE_DETACHED 1
17384 #endif
17385         pthread_t t;
17386         int status;
17387         int detach = PTHREAD_CREATE_DETACHED;
17388
17389 #if HAVE_PTHREADS > 4
17390         /* Final pthreads */
17391         pthread_attr_t attr;
17392
17393         status = pthread_attr_init(&attr);
17394         if( status ) return status;
17395
17396 #if HAVE_PTHREADS < 7
17397         status = pthread_attr_setdetachstate(&attr, &detach);
17398         if( status < 0 ) status = errno;
17399 #else
17400         status = pthread_attr_setdetachstate(&attr, detach);
17401 #endif
17402         if( status ) return status;
17403         status = pthread_create( &t, &attr, task, NULL );
17404 #if HAVE_PTHREADS < 7
17405         if( status < 0 ) status = errno;
17406 #endif
17407         if( status ) return status;
17408 #else
17409         /* Draft 4 pthreads */
17410         status = pthread_create( &t, pthread_attr_default, task, NULL );
17411         if( status ) return errno;
17412
17413         /* give thread a chance to complete */
17414         /* it should remain joinable and hence detachable */
17415         sleep( 1 );
17416
17417         status = pthread_detach( &t );
17418         if( status ) return errno;
17419 #endif
17420
17421 #ifdef HAVE_LINUX_THREADS
17422         pthread_kill_other_threads_np();
17423 #endif
17424
17425         return 0;
17426
17427   ;
17428   return 0;
17429 }
17430 _ACEOF
17431 if ac_fn_c_try_link "$LINENO"; then :
17432   ol_cv_pthread_lpthread_lmach_lexc=yes
17433 else
17434   ol_cv_pthread_lpthread_lmach_lexc=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext \
17437     conftest$ac_exeext conftest.$ac_ext
17438 else
17439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h.  */
17441
17442 /* pthread test headers */
17443 #include <pthread.h>
17444 #if HAVE_PTHREADS < 7
17445 #include <errno.h>
17446 #endif
17447 #ifndef NULL
17448 #define NULL (void*)0
17449 #endif
17450
17451 static void *task(p)
17452         void *p;
17453 {
17454         return (void *) (p == NULL);
17455 }
17456
17457
17458 int main(argc, argv)
17459         int argc;
17460         char **argv;
17461 {
17462
17463         /* pthread test function */
17464 #ifndef PTHREAD_CREATE_DETACHED
17465 #define PTHREAD_CREATE_DETACHED 1
17466 #endif
17467         pthread_t t;
17468         int status;
17469         int detach = PTHREAD_CREATE_DETACHED;
17470
17471 #if HAVE_PTHREADS > 4
17472         /* Final pthreads */
17473         pthread_attr_t attr;
17474
17475         status = pthread_attr_init(&attr);
17476         if( status ) return status;
17477
17478 #if HAVE_PTHREADS < 7
17479         status = pthread_attr_setdetachstate(&attr, &detach);
17480         if( status < 0 ) status = errno;
17481 #else
17482         status = pthread_attr_setdetachstate(&attr, detach);
17483 #endif
17484         if( status ) return status;
17485         status = pthread_create( &t, &attr, task, NULL );
17486 #if HAVE_PTHREADS < 7
17487         if( status < 0 ) status = errno;
17488 #endif
17489         if( status ) return status;
17490 #else
17491         /* Draft 4 pthreads */
17492         status = pthread_create( &t, pthread_attr_default, task, NULL );
17493         if( status ) return errno;
17494
17495         /* give thread a chance to complete */
17496         /* it should remain joinable and hence detachable */
17497         sleep( 1 );
17498
17499         status = pthread_detach( &t );
17500         if( status ) return errno;
17501 #endif
17502
17503 #ifdef HAVE_LINUX_THREADS
17504         pthread_kill_other_threads_np();
17505 #endif
17506
17507         return 0;
17508
17509 }
17510
17511 _ACEOF
17512 if ac_fn_c_try_run "$LINENO"; then :
17513   ol_cv_pthread_lpthread_lmach_lexc=yes
17514 else
17515   ol_cv_pthread_lpthread_lmach_lexc=no
17516 fi
17517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17518   conftest.$ac_objext conftest.beam conftest.$ac_ext
17519 fi
17520
17521
17522                 # restore the LIBS
17523                 LIBS="$ol_LIBS"
17524
17525 fi
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17527 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17528
17529         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17530                 ol_link_pthreads="-lpthread -lmach -lexc"
17531                 ol_link_threads=posix
17532         fi
17533 fi
17534
17535
17536                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17537 if test "$ol_link_threads" = no ; then
17538         # try -lpthread -Wl,-woff,85
17539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17540 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17541 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then :
17542   $as_echo_n "(cached) " >&6
17543 else
17544
17545                 # save the flags
17546                 ol_LIBS="$LIBS"
17547                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17548
17549                 if test "$cross_compiling" = yes; then :
17550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h.  */
17552
17553 /* pthread test headers */
17554 #include <pthread.h>
17555 #if HAVE_PTHREADS < 7
17556 #include <errno.h>
17557 #endif
17558 #ifndef NULL
17559 #define NULL (void*)0
17560 #endif
17561
17562 static void *task(p)
17563         void *p;
17564 {
17565         return (void *) (p == NULL);
17566 }
17567
17568 int
17569 main ()
17570 {
17571
17572         /* pthread test function */
17573 #ifndef PTHREAD_CREATE_DETACHED
17574 #define PTHREAD_CREATE_DETACHED 1
17575 #endif
17576         pthread_t t;
17577         int status;
17578         int detach = PTHREAD_CREATE_DETACHED;
17579
17580 #if HAVE_PTHREADS > 4
17581         /* Final pthreads */
17582         pthread_attr_t attr;
17583
17584         status = pthread_attr_init(&attr);
17585         if( status ) return status;
17586
17587 #if HAVE_PTHREADS < 7
17588         status = pthread_attr_setdetachstate(&attr, &detach);
17589         if( status < 0 ) status = errno;
17590 #else
17591         status = pthread_attr_setdetachstate(&attr, detach);
17592 #endif
17593         if( status ) return status;
17594         status = pthread_create( &t, &attr, task, NULL );
17595 #if HAVE_PTHREADS < 7
17596         if( status < 0 ) status = errno;
17597 #endif
17598         if( status ) return status;
17599 #else
17600         /* Draft 4 pthreads */
17601         status = pthread_create( &t, pthread_attr_default, task, NULL );
17602         if( status ) return errno;
17603
17604         /* give thread a chance to complete */
17605         /* it should remain joinable and hence detachable */
17606         sleep( 1 );
17607
17608         status = pthread_detach( &t );
17609         if( status ) return errno;
17610 #endif
17611
17612 #ifdef HAVE_LINUX_THREADS
17613         pthread_kill_other_threads_np();
17614 #endif
17615
17616         return 0;
17617
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 if ac_fn_c_try_link "$LINENO"; then :
17623   ol_cv_pthread_lib_lpthread_woff=yes
17624 else
17625   ol_cv_pthread_lib_lpthread_woff=no
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext \
17628     conftest$ac_exeext conftest.$ac_ext
17629 else
17630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h.  */
17632
17633 /* pthread test headers */
17634 #include <pthread.h>
17635 #if HAVE_PTHREADS < 7
17636 #include <errno.h>
17637 #endif
17638 #ifndef NULL
17639 #define NULL (void*)0
17640 #endif
17641
17642 static void *task(p)
17643         void *p;
17644 {
17645         return (void *) (p == NULL);
17646 }
17647
17648
17649 int main(argc, argv)
17650         int argc;
17651         char **argv;
17652 {
17653
17654         /* pthread test function */
17655 #ifndef PTHREAD_CREATE_DETACHED
17656 #define PTHREAD_CREATE_DETACHED 1
17657 #endif
17658         pthread_t t;
17659         int status;
17660         int detach = PTHREAD_CREATE_DETACHED;
17661
17662 #if HAVE_PTHREADS > 4
17663         /* Final pthreads */
17664         pthread_attr_t attr;
17665
17666         status = pthread_attr_init(&attr);
17667         if( status ) return status;
17668
17669 #if HAVE_PTHREADS < 7
17670         status = pthread_attr_setdetachstate(&attr, &detach);
17671         if( status < 0 ) status = errno;
17672 #else
17673         status = pthread_attr_setdetachstate(&attr, detach);
17674 #endif
17675         if( status ) return status;
17676         status = pthread_create( &t, &attr, task, NULL );
17677 #if HAVE_PTHREADS < 7
17678         if( status < 0 ) status = errno;
17679 #endif
17680         if( status ) return status;
17681 #else
17682         /* Draft 4 pthreads */
17683         status = pthread_create( &t, pthread_attr_default, task, NULL );
17684         if( status ) return errno;
17685
17686         /* give thread a chance to complete */
17687         /* it should remain joinable and hence detachable */
17688         sleep( 1 );
17689
17690         status = pthread_detach( &t );
17691         if( status ) return errno;
17692 #endif
17693
17694 #ifdef HAVE_LINUX_THREADS
17695         pthread_kill_other_threads_np();
17696 #endif
17697
17698         return 0;
17699
17700 }
17701
17702 _ACEOF
17703 if ac_fn_c_try_run "$LINENO"; then :
17704   ol_cv_pthread_lib_lpthread_woff=yes
17705 else
17706   ol_cv_pthread_lib_lpthread_woff=no
17707 fi
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17709   conftest.$ac_objext conftest.beam conftest.$ac_ext
17710 fi
17711
17712
17713                 # restore the LIBS
17714                 LIBS="$ol_LIBS"
17715
17716 fi
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17718 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17719
17720         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17721                 ol_link_pthreads="-lpthread -Wl,-woff,85"
17722                 ol_link_threads=posix
17723         fi
17724 fi
17725
17726
17727                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17728 if test "$ol_link_threads" = no ; then
17729         # try -lpthread
17730         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17731 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17732 if test "${ol_cv_pthread_lpthread+set}" = set; then :
17733   $as_echo_n "(cached) " >&6
17734 else
17735
17736                 # save the flags
17737                 ol_LIBS="$LIBS"
17738                 LIBS="-lpthread $LIBS"
17739
17740                 if test "$cross_compiling" = yes; then :
17741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h.  */
17743
17744 /* pthread test headers */
17745 #include <pthread.h>
17746 #if HAVE_PTHREADS < 7
17747 #include <errno.h>
17748 #endif
17749 #ifndef NULL
17750 #define NULL (void*)0
17751 #endif
17752
17753 static void *task(p)
17754         void *p;
17755 {
17756         return (void *) (p == NULL);
17757 }
17758
17759 int
17760 main ()
17761 {
17762
17763         /* pthread test function */
17764 #ifndef PTHREAD_CREATE_DETACHED
17765 #define PTHREAD_CREATE_DETACHED 1
17766 #endif
17767         pthread_t t;
17768         int status;
17769         int detach = PTHREAD_CREATE_DETACHED;
17770
17771 #if HAVE_PTHREADS > 4
17772         /* Final pthreads */
17773         pthread_attr_t attr;
17774
17775         status = pthread_attr_init(&attr);
17776         if( status ) return status;
17777
17778 #if HAVE_PTHREADS < 7
17779         status = pthread_attr_setdetachstate(&attr, &detach);
17780         if( status < 0 ) status = errno;
17781 #else
17782         status = pthread_attr_setdetachstate(&attr, detach);
17783 #endif
17784         if( status ) return status;
17785         status = pthread_create( &t, &attr, task, NULL );
17786 #if HAVE_PTHREADS < 7
17787         if( status < 0 ) status = errno;
17788 #endif
17789         if( status ) return status;
17790 #else
17791         /* Draft 4 pthreads */
17792         status = pthread_create( &t, pthread_attr_default, task, NULL );
17793         if( status ) return errno;
17794
17795         /* give thread a chance to complete */
17796         /* it should remain joinable and hence detachable */
17797         sleep( 1 );
17798
17799         status = pthread_detach( &t );
17800         if( status ) return errno;
17801 #endif
17802
17803 #ifdef HAVE_LINUX_THREADS
17804         pthread_kill_other_threads_np();
17805 #endif
17806
17807         return 0;
17808
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 if ac_fn_c_try_link "$LINENO"; then :
17814   ol_cv_pthread_lpthread=yes
17815 else
17816   ol_cv_pthread_lpthread=no
17817 fi
17818 rm -f core conftest.err conftest.$ac_objext \
17819     conftest$ac_exeext conftest.$ac_ext
17820 else
17821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h.  */
17823
17824 /* pthread test headers */
17825 #include <pthread.h>
17826 #if HAVE_PTHREADS < 7
17827 #include <errno.h>
17828 #endif
17829 #ifndef NULL
17830 #define NULL (void*)0
17831 #endif
17832
17833 static void *task(p)
17834         void *p;
17835 {
17836         return (void *) (p == NULL);
17837 }
17838
17839
17840 int main(argc, argv)
17841         int argc;
17842         char **argv;
17843 {
17844
17845         /* pthread test function */
17846 #ifndef PTHREAD_CREATE_DETACHED
17847 #define PTHREAD_CREATE_DETACHED 1
17848 #endif
17849         pthread_t t;
17850         int status;
17851         int detach = PTHREAD_CREATE_DETACHED;
17852
17853 #if HAVE_PTHREADS > 4
17854         /* Final pthreads */
17855         pthread_attr_t attr;
17856
17857         status = pthread_attr_init(&attr);
17858         if( status ) return status;
17859
17860 #if HAVE_PTHREADS < 7
17861         status = pthread_attr_setdetachstate(&attr, &detach);
17862         if( status < 0 ) status = errno;
17863 #else
17864         status = pthread_attr_setdetachstate(&attr, detach);
17865 #endif
17866         if( status ) return status;
17867         status = pthread_create( &t, &attr, task, NULL );
17868 #if HAVE_PTHREADS < 7
17869         if( status < 0 ) status = errno;
17870 #endif
17871         if( status ) return status;
17872 #else
17873         /* Draft 4 pthreads */
17874         status = pthread_create( &t, pthread_attr_default, task, NULL );
17875         if( status ) return errno;
17876
17877         /* give thread a chance to complete */
17878         /* it should remain joinable and hence detachable */
17879         sleep( 1 );
17880
17881         status = pthread_detach( &t );
17882         if( status ) return errno;
17883 #endif
17884
17885 #ifdef HAVE_LINUX_THREADS
17886         pthread_kill_other_threads_np();
17887 #endif
17888
17889         return 0;
17890
17891 }
17892
17893 _ACEOF
17894 if ac_fn_c_try_run "$LINENO"; then :
17895   ol_cv_pthread_lpthread=yes
17896 else
17897   ol_cv_pthread_lpthread=no
17898 fi
17899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17900   conftest.$ac_objext conftest.beam conftest.$ac_ext
17901 fi
17902
17903
17904                 # restore the LIBS
17905                 LIBS="$ol_LIBS"
17906
17907 fi
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17909 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17910
17911         if test $ol_cv_pthread_lpthread = yes ; then
17912                 ol_link_pthreads="-lpthread"
17913                 ol_link_threads=posix
17914         fi
17915 fi
17916
17917                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17918 if test "$ol_link_threads" = no ; then
17919         # try -lc_r
17920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17921 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17922 if test "${ol_cv_pthread_lc_r+set}" = set; then :
17923   $as_echo_n "(cached) " >&6
17924 else
17925
17926                 # save the flags
17927                 ol_LIBS="$LIBS"
17928                 LIBS="-lc_r $LIBS"
17929
17930                 if test "$cross_compiling" = yes; then :
17931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h.  */
17933
17934 /* pthread test headers */
17935 #include <pthread.h>
17936 #if HAVE_PTHREADS < 7
17937 #include <errno.h>
17938 #endif
17939 #ifndef NULL
17940 #define NULL (void*)0
17941 #endif
17942
17943 static void *task(p)
17944         void *p;
17945 {
17946         return (void *) (p == NULL);
17947 }
17948
17949 int
17950 main ()
17951 {
17952
17953         /* pthread test function */
17954 #ifndef PTHREAD_CREATE_DETACHED
17955 #define PTHREAD_CREATE_DETACHED 1
17956 #endif
17957         pthread_t t;
17958         int status;
17959         int detach = PTHREAD_CREATE_DETACHED;
17960
17961 #if HAVE_PTHREADS > 4
17962         /* Final pthreads */
17963         pthread_attr_t attr;
17964
17965         status = pthread_attr_init(&attr);
17966         if( status ) return status;
17967
17968 #if HAVE_PTHREADS < 7
17969         status = pthread_attr_setdetachstate(&attr, &detach);
17970         if( status < 0 ) status = errno;
17971 #else
17972         status = pthread_attr_setdetachstate(&attr, detach);
17973 #endif
17974         if( status ) return status;
17975         status = pthread_create( &t, &attr, task, NULL );
17976 #if HAVE_PTHREADS < 7
17977         if( status < 0 ) status = errno;
17978 #endif
17979         if( status ) return status;
17980 #else
17981         /* Draft 4 pthreads */
17982         status = pthread_create( &t, pthread_attr_default, task, NULL );
17983         if( status ) return errno;
17984
17985         /* give thread a chance to complete */
17986         /* it should remain joinable and hence detachable */
17987         sleep( 1 );
17988
17989         status = pthread_detach( &t );
17990         if( status ) return errno;
17991 #endif
17992
17993 #ifdef HAVE_LINUX_THREADS
17994         pthread_kill_other_threads_np();
17995 #endif
17996
17997         return 0;
17998
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 if ac_fn_c_try_link "$LINENO"; then :
18004   ol_cv_pthread_lc_r=yes
18005 else
18006   ol_cv_pthread_lc_r=no
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext \
18009     conftest$ac_exeext conftest.$ac_ext
18010 else
18011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h.  */
18013
18014 /* pthread test headers */
18015 #include <pthread.h>
18016 #if HAVE_PTHREADS < 7
18017 #include <errno.h>
18018 #endif
18019 #ifndef NULL
18020 #define NULL (void*)0
18021 #endif
18022
18023 static void *task(p)
18024         void *p;
18025 {
18026         return (void *) (p == NULL);
18027 }
18028
18029
18030 int main(argc, argv)
18031         int argc;
18032         char **argv;
18033 {
18034
18035         /* pthread test function */
18036 #ifndef PTHREAD_CREATE_DETACHED
18037 #define PTHREAD_CREATE_DETACHED 1
18038 #endif
18039         pthread_t t;
18040         int status;
18041         int detach = PTHREAD_CREATE_DETACHED;
18042
18043 #if HAVE_PTHREADS > 4
18044         /* Final pthreads */
18045         pthread_attr_t attr;
18046
18047         status = pthread_attr_init(&attr);
18048         if( status ) return status;
18049
18050 #if HAVE_PTHREADS < 7
18051         status = pthread_attr_setdetachstate(&attr, &detach);
18052         if( status < 0 ) status = errno;
18053 #else
18054         status = pthread_attr_setdetachstate(&attr, detach);
18055 #endif
18056         if( status ) return status;
18057         status = pthread_create( &t, &attr, task, NULL );
18058 #if HAVE_PTHREADS < 7
18059         if( status < 0 ) status = errno;
18060 #endif
18061         if( status ) return status;
18062 #else
18063         /* Draft 4 pthreads */
18064         status = pthread_create( &t, pthread_attr_default, task, NULL );
18065         if( status ) return errno;
18066
18067         /* give thread a chance to complete */
18068         /* it should remain joinable and hence detachable */
18069         sleep( 1 );
18070
18071         status = pthread_detach( &t );
18072         if( status ) return errno;
18073 #endif
18074
18075 #ifdef HAVE_LINUX_THREADS
18076         pthread_kill_other_threads_np();
18077 #endif
18078
18079         return 0;
18080
18081 }
18082
18083 _ACEOF
18084 if ac_fn_c_try_run "$LINENO"; then :
18085   ol_cv_pthread_lc_r=yes
18086 else
18087   ol_cv_pthread_lc_r=no
18088 fi
18089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18090   conftest.$ac_objext conftest.beam conftest.$ac_ext
18091 fi
18092
18093
18094                 # restore the LIBS
18095                 LIBS="$ol_LIBS"
18096
18097 fi
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18099 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18100
18101         if test $ol_cv_pthread_lc_r = yes ; then
18102                 ol_link_pthreads="-lc_r"
18103                 ol_link_threads=posix
18104         fi
18105 fi
18106
18107
18108                 # Pthread try link: -threads (ol_cv_pthread_threads)
18109 if test "$ol_link_threads" = no ; then
18110         # try -threads
18111         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18112 $as_echo_n "checking for pthread link with -threads... " >&6; }
18113 if test "${ol_cv_pthread_threads+set}" = set; then :
18114   $as_echo_n "(cached) " >&6
18115 else
18116
18117                 # save the flags
18118                 ol_LIBS="$LIBS"
18119                 LIBS="-threads $LIBS"
18120
18121                 if test "$cross_compiling" = yes; then :
18122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h.  */
18124
18125 /* pthread test headers */
18126 #include <pthread.h>
18127 #if HAVE_PTHREADS < 7
18128 #include <errno.h>
18129 #endif
18130 #ifndef NULL
18131 #define NULL (void*)0
18132 #endif
18133
18134 static void *task(p)
18135         void *p;
18136 {
18137         return (void *) (p == NULL);
18138 }
18139
18140 int
18141 main ()
18142 {
18143
18144         /* pthread test function */
18145 #ifndef PTHREAD_CREATE_DETACHED
18146 #define PTHREAD_CREATE_DETACHED 1
18147 #endif
18148         pthread_t t;
18149         int status;
18150         int detach = PTHREAD_CREATE_DETACHED;
18151
18152 #if HAVE_PTHREADS > 4
18153         /* Final pthreads */
18154         pthread_attr_t attr;
18155
18156         status = pthread_attr_init(&attr);
18157         if( status ) return status;
18158
18159 #if HAVE_PTHREADS < 7
18160         status = pthread_attr_setdetachstate(&attr, &detach);
18161         if( status < 0 ) status = errno;
18162 #else
18163         status = pthread_attr_setdetachstate(&attr, detach);
18164 #endif
18165         if( status ) return status;
18166         status = pthread_create( &t, &attr, task, NULL );
18167 #if HAVE_PTHREADS < 7
18168         if( status < 0 ) status = errno;
18169 #endif
18170         if( status ) return status;
18171 #else
18172         /* Draft 4 pthreads */
18173         status = pthread_create( &t, pthread_attr_default, task, NULL );
18174         if( status ) return errno;
18175
18176         /* give thread a chance to complete */
18177         /* it should remain joinable and hence detachable */
18178         sleep( 1 );
18179
18180         status = pthread_detach( &t );
18181         if( status ) return errno;
18182 #endif
18183
18184 #ifdef HAVE_LINUX_THREADS
18185         pthread_kill_other_threads_np();
18186 #endif
18187
18188         return 0;
18189
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 if ac_fn_c_try_link "$LINENO"; then :
18195   ol_cv_pthread_threads=yes
18196 else
18197   ol_cv_pthread_threads=no
18198 fi
18199 rm -f core conftest.err conftest.$ac_objext \
18200     conftest$ac_exeext conftest.$ac_ext
18201 else
18202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h.  */
18204
18205 /* pthread test headers */
18206 #include <pthread.h>
18207 #if HAVE_PTHREADS < 7
18208 #include <errno.h>
18209 #endif
18210 #ifndef NULL
18211 #define NULL (void*)0
18212 #endif
18213
18214 static void *task(p)
18215         void *p;
18216 {
18217         return (void *) (p == NULL);
18218 }
18219
18220
18221 int main(argc, argv)
18222         int argc;
18223         char **argv;
18224 {
18225
18226         /* pthread test function */
18227 #ifndef PTHREAD_CREATE_DETACHED
18228 #define PTHREAD_CREATE_DETACHED 1
18229 #endif
18230         pthread_t t;
18231         int status;
18232         int detach = PTHREAD_CREATE_DETACHED;
18233
18234 #if HAVE_PTHREADS > 4
18235         /* Final pthreads */
18236         pthread_attr_t attr;
18237
18238         status = pthread_attr_init(&attr);
18239         if( status ) return status;
18240
18241 #if HAVE_PTHREADS < 7
18242         status = pthread_attr_setdetachstate(&attr, &detach);
18243         if( status < 0 ) status = errno;
18244 #else
18245         status = pthread_attr_setdetachstate(&attr, detach);
18246 #endif
18247         if( status ) return status;
18248         status = pthread_create( &t, &attr, task, NULL );
18249 #if HAVE_PTHREADS < 7
18250         if( status < 0 ) status = errno;
18251 #endif
18252         if( status ) return status;
18253 #else
18254         /* Draft 4 pthreads */
18255         status = pthread_create( &t, pthread_attr_default, task, NULL );
18256         if( status ) return errno;
18257
18258         /* give thread a chance to complete */
18259         /* it should remain joinable and hence detachable */
18260         sleep( 1 );
18261
18262         status = pthread_detach( &t );
18263         if( status ) return errno;
18264 #endif
18265
18266 #ifdef HAVE_LINUX_THREADS
18267         pthread_kill_other_threads_np();
18268 #endif
18269
18270         return 0;
18271
18272 }
18273
18274 _ACEOF
18275 if ac_fn_c_try_run "$LINENO"; then :
18276   ol_cv_pthread_threads=yes
18277 else
18278   ol_cv_pthread_threads=no
18279 fi
18280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18281   conftest.$ac_objext conftest.beam conftest.$ac_ext
18282 fi
18283
18284
18285                 # restore the LIBS
18286                 LIBS="$ol_LIBS"
18287
18288 fi
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18290 $as_echo "$ol_cv_pthread_threads" >&6; }
18291
18292         if test $ol_cv_pthread_threads = yes ; then
18293                 ol_link_pthreads="-threads"
18294                 ol_link_threads=posix
18295         fi
18296 fi
18297
18298
18299                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18300 if test "$ol_link_threads" = no ; then
18301         # try -lpthreads -lmach -lexc -lc_r
18302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18303 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18304 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then :
18305   $as_echo_n "(cached) " >&6
18306 else
18307
18308                 # save the flags
18309                 ol_LIBS="$LIBS"
18310                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18311
18312                 if test "$cross_compiling" = yes; then :
18313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h.  */
18315
18316 /* pthread test headers */
18317 #include <pthread.h>
18318 #if HAVE_PTHREADS < 7
18319 #include <errno.h>
18320 #endif
18321 #ifndef NULL
18322 #define NULL (void*)0
18323 #endif
18324
18325 static void *task(p)
18326         void *p;
18327 {
18328         return (void *) (p == NULL);
18329 }
18330
18331 int
18332 main ()
18333 {
18334
18335         /* pthread test function */
18336 #ifndef PTHREAD_CREATE_DETACHED
18337 #define PTHREAD_CREATE_DETACHED 1
18338 #endif
18339         pthread_t t;
18340         int status;
18341         int detach = PTHREAD_CREATE_DETACHED;
18342
18343 #if HAVE_PTHREADS > 4
18344         /* Final pthreads */
18345         pthread_attr_t attr;
18346
18347         status = pthread_attr_init(&attr);
18348         if( status ) return status;
18349
18350 #if HAVE_PTHREADS < 7
18351         status = pthread_attr_setdetachstate(&attr, &detach);
18352         if( status < 0 ) status = errno;
18353 #else
18354         status = pthread_attr_setdetachstate(&attr, detach);
18355 #endif
18356         if( status ) return status;
18357         status = pthread_create( &t, &attr, task, NULL );
18358 #if HAVE_PTHREADS < 7
18359         if( status < 0 ) status = errno;
18360 #endif
18361         if( status ) return status;
18362 #else
18363         /* Draft 4 pthreads */
18364         status = pthread_create( &t, pthread_attr_default, task, NULL );
18365         if( status ) return errno;
18366
18367         /* give thread a chance to complete */
18368         /* it should remain joinable and hence detachable */
18369         sleep( 1 );
18370
18371         status = pthread_detach( &t );
18372         if( status ) return errno;
18373 #endif
18374
18375 #ifdef HAVE_LINUX_THREADS
18376         pthread_kill_other_threads_np();
18377 #endif
18378
18379         return 0;
18380
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 if ac_fn_c_try_link "$LINENO"; then :
18386   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18387 else
18388   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext \
18391     conftest$ac_exeext conftest.$ac_ext
18392 else
18393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h.  */
18395
18396 /* pthread test headers */
18397 #include <pthread.h>
18398 #if HAVE_PTHREADS < 7
18399 #include <errno.h>
18400 #endif
18401 #ifndef NULL
18402 #define NULL (void*)0
18403 #endif
18404
18405 static void *task(p)
18406         void *p;
18407 {
18408         return (void *) (p == NULL);
18409 }
18410
18411
18412 int main(argc, argv)
18413         int argc;
18414         char **argv;
18415 {
18416
18417         /* pthread test function */
18418 #ifndef PTHREAD_CREATE_DETACHED
18419 #define PTHREAD_CREATE_DETACHED 1
18420 #endif
18421         pthread_t t;
18422         int status;
18423         int detach = PTHREAD_CREATE_DETACHED;
18424
18425 #if HAVE_PTHREADS > 4
18426         /* Final pthreads */
18427         pthread_attr_t attr;
18428
18429         status = pthread_attr_init(&attr);
18430         if( status ) return status;
18431
18432 #if HAVE_PTHREADS < 7
18433         status = pthread_attr_setdetachstate(&attr, &detach);
18434         if( status < 0 ) status = errno;
18435 #else
18436         status = pthread_attr_setdetachstate(&attr, detach);
18437 #endif
18438         if( status ) return status;
18439         status = pthread_create( &t, &attr, task, NULL );
18440 #if HAVE_PTHREADS < 7
18441         if( status < 0 ) status = errno;
18442 #endif
18443         if( status ) return status;
18444 #else
18445         /* Draft 4 pthreads */
18446         status = pthread_create( &t, pthread_attr_default, task, NULL );
18447         if( status ) return errno;
18448
18449         /* give thread a chance to complete */
18450         /* it should remain joinable and hence detachable */
18451         sleep( 1 );
18452
18453         status = pthread_detach( &t );
18454         if( status ) return errno;
18455 #endif
18456
18457 #ifdef HAVE_LINUX_THREADS
18458         pthread_kill_other_threads_np();
18459 #endif
18460
18461         return 0;
18462
18463 }
18464
18465 _ACEOF
18466 if ac_fn_c_try_run "$LINENO"; then :
18467   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18468 else
18469   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18470 fi
18471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18472   conftest.$ac_objext conftest.beam conftest.$ac_ext
18473 fi
18474
18475
18476                 # restore the LIBS
18477                 LIBS="$ol_LIBS"
18478
18479 fi
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18481 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18482
18483         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18484                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18485                 ol_link_threads=posix
18486         fi
18487 fi
18488
18489                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18490 if test "$ol_link_threads" = no ; then
18491         # try -lpthreads -lmach -lexc
18492         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18493 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18494 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then :
18495   $as_echo_n "(cached) " >&6
18496 else
18497
18498                 # save the flags
18499                 ol_LIBS="$LIBS"
18500                 LIBS="-lpthreads -lmach -lexc $LIBS"
18501
18502                 if test "$cross_compiling" = yes; then :
18503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h.  */
18505
18506 /* pthread test headers */
18507 #include <pthread.h>
18508 #if HAVE_PTHREADS < 7
18509 #include <errno.h>
18510 #endif
18511 #ifndef NULL
18512 #define NULL (void*)0
18513 #endif
18514
18515 static void *task(p)
18516         void *p;
18517 {
18518         return (void *) (p == NULL);
18519 }
18520
18521 int
18522 main ()
18523 {
18524
18525         /* pthread test function */
18526 #ifndef PTHREAD_CREATE_DETACHED
18527 #define PTHREAD_CREATE_DETACHED 1
18528 #endif
18529         pthread_t t;
18530         int status;
18531         int detach = PTHREAD_CREATE_DETACHED;
18532
18533 #if HAVE_PTHREADS > 4
18534         /* Final pthreads */
18535         pthread_attr_t attr;
18536
18537         status = pthread_attr_init(&attr);
18538         if( status ) return status;
18539
18540 #if HAVE_PTHREADS < 7
18541         status = pthread_attr_setdetachstate(&attr, &detach);
18542         if( status < 0 ) status = errno;
18543 #else
18544         status = pthread_attr_setdetachstate(&attr, detach);
18545 #endif
18546         if( status ) return status;
18547         status = pthread_create( &t, &attr, task, NULL );
18548 #if HAVE_PTHREADS < 7
18549         if( status < 0 ) status = errno;
18550 #endif
18551         if( status ) return status;
18552 #else
18553         /* Draft 4 pthreads */
18554         status = pthread_create( &t, pthread_attr_default, task, NULL );
18555         if( status ) return errno;
18556
18557         /* give thread a chance to complete */
18558         /* it should remain joinable and hence detachable */
18559         sleep( 1 );
18560
18561         status = pthread_detach( &t );
18562         if( status ) return errno;
18563 #endif
18564
18565 #ifdef HAVE_LINUX_THREADS
18566         pthread_kill_other_threads_np();
18567 #endif
18568
18569         return 0;
18570
18571   ;
18572   return 0;
18573 }
18574 _ACEOF
18575 if ac_fn_c_try_link "$LINENO"; then :
18576   ol_cv_pthread_lpthreads_lmach_lexc=yes
18577 else
18578   ol_cv_pthread_lpthreads_lmach_lexc=no
18579 fi
18580 rm -f core conftest.err conftest.$ac_objext \
18581     conftest$ac_exeext conftest.$ac_ext
18582 else
18583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h.  */
18585
18586 /* pthread test headers */
18587 #include <pthread.h>
18588 #if HAVE_PTHREADS < 7
18589 #include <errno.h>
18590 #endif
18591 #ifndef NULL
18592 #define NULL (void*)0
18593 #endif
18594
18595 static void *task(p)
18596         void *p;
18597 {
18598         return (void *) (p == NULL);
18599 }
18600
18601
18602 int main(argc, argv)
18603         int argc;
18604         char **argv;
18605 {
18606
18607         /* pthread test function */
18608 #ifndef PTHREAD_CREATE_DETACHED
18609 #define PTHREAD_CREATE_DETACHED 1
18610 #endif
18611         pthread_t t;
18612         int status;
18613         int detach = PTHREAD_CREATE_DETACHED;
18614
18615 #if HAVE_PTHREADS > 4
18616         /* Final pthreads */
18617         pthread_attr_t attr;
18618
18619         status = pthread_attr_init(&attr);
18620         if( status ) return status;
18621
18622 #if HAVE_PTHREADS < 7
18623         status = pthread_attr_setdetachstate(&attr, &detach);
18624         if( status < 0 ) status = errno;
18625 #else
18626         status = pthread_attr_setdetachstate(&attr, detach);
18627 #endif
18628         if( status ) return status;
18629         status = pthread_create( &t, &attr, task, NULL );
18630 #if HAVE_PTHREADS < 7
18631         if( status < 0 ) status = errno;
18632 #endif
18633         if( status ) return status;
18634 #else
18635         /* Draft 4 pthreads */
18636         status = pthread_create( &t, pthread_attr_default, task, NULL );
18637         if( status ) return errno;
18638
18639         /* give thread a chance to complete */
18640         /* it should remain joinable and hence detachable */
18641         sleep( 1 );
18642
18643         status = pthread_detach( &t );
18644         if( status ) return errno;
18645 #endif
18646
18647 #ifdef HAVE_LINUX_THREADS
18648         pthread_kill_other_threads_np();
18649 #endif
18650
18651         return 0;
18652
18653 }
18654
18655 _ACEOF
18656 if ac_fn_c_try_run "$LINENO"; then :
18657   ol_cv_pthread_lpthreads_lmach_lexc=yes
18658 else
18659   ol_cv_pthread_lpthreads_lmach_lexc=no
18660 fi
18661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18662   conftest.$ac_objext conftest.beam conftest.$ac_ext
18663 fi
18664
18665
18666                 # restore the LIBS
18667                 LIBS="$ol_LIBS"
18668
18669 fi
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18671 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18672
18673         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18674                 ol_link_pthreads="-lpthreads -lmach -lexc"
18675                 ol_link_threads=posix
18676         fi
18677 fi
18678
18679                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18680 if test "$ol_link_threads" = no ; then
18681         # try -lpthreads -lexc
18682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18683 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18684 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then :
18685   $as_echo_n "(cached) " >&6
18686 else
18687
18688                 # save the flags
18689                 ol_LIBS="$LIBS"
18690                 LIBS="-lpthreads -lexc $LIBS"
18691
18692                 if test "$cross_compiling" = yes; then :
18693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h.  */
18695
18696 /* pthread test headers */
18697 #include <pthread.h>
18698 #if HAVE_PTHREADS < 7
18699 #include <errno.h>
18700 #endif
18701 #ifndef NULL
18702 #define NULL (void*)0
18703 #endif
18704
18705 static void *task(p)
18706         void *p;
18707 {
18708         return (void *) (p == NULL);
18709 }
18710
18711 int
18712 main ()
18713 {
18714
18715         /* pthread test function */
18716 #ifndef PTHREAD_CREATE_DETACHED
18717 #define PTHREAD_CREATE_DETACHED 1
18718 #endif
18719         pthread_t t;
18720         int status;
18721         int detach = PTHREAD_CREATE_DETACHED;
18722
18723 #if HAVE_PTHREADS > 4
18724         /* Final pthreads */
18725         pthread_attr_t attr;
18726
18727         status = pthread_attr_init(&attr);
18728         if( status ) return status;
18729
18730 #if HAVE_PTHREADS < 7
18731         status = pthread_attr_setdetachstate(&attr, &detach);
18732         if( status < 0 ) status = errno;
18733 #else
18734         status = pthread_attr_setdetachstate(&attr, detach);
18735 #endif
18736         if( status ) return status;
18737         status = pthread_create( &t, &attr, task, NULL );
18738 #if HAVE_PTHREADS < 7
18739         if( status < 0 ) status = errno;
18740 #endif
18741         if( status ) return status;
18742 #else
18743         /* Draft 4 pthreads */
18744         status = pthread_create( &t, pthread_attr_default, task, NULL );
18745         if( status ) return errno;
18746
18747         /* give thread a chance to complete */
18748         /* it should remain joinable and hence detachable */
18749         sleep( 1 );
18750
18751         status = pthread_detach( &t );
18752         if( status ) return errno;
18753 #endif
18754
18755 #ifdef HAVE_LINUX_THREADS
18756         pthread_kill_other_threads_np();
18757 #endif
18758
18759         return 0;
18760
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 if ac_fn_c_try_link "$LINENO"; then :
18766   ol_cv_pthread_lpthreads_lexc=yes
18767 else
18768   ol_cv_pthread_lpthreads_lexc=no
18769 fi
18770 rm -f core conftest.err conftest.$ac_objext \
18771     conftest$ac_exeext conftest.$ac_ext
18772 else
18773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h.  */
18775
18776 /* pthread test headers */
18777 #include <pthread.h>
18778 #if HAVE_PTHREADS < 7
18779 #include <errno.h>
18780 #endif
18781 #ifndef NULL
18782 #define NULL (void*)0
18783 #endif
18784
18785 static void *task(p)
18786         void *p;
18787 {
18788         return (void *) (p == NULL);
18789 }
18790
18791
18792 int main(argc, argv)
18793         int argc;
18794         char **argv;
18795 {
18796
18797         /* pthread test function */
18798 #ifndef PTHREAD_CREATE_DETACHED
18799 #define PTHREAD_CREATE_DETACHED 1
18800 #endif
18801         pthread_t t;
18802         int status;
18803         int detach = PTHREAD_CREATE_DETACHED;
18804
18805 #if HAVE_PTHREADS > 4
18806         /* Final pthreads */
18807         pthread_attr_t attr;
18808
18809         status = pthread_attr_init(&attr);
18810         if( status ) return status;
18811
18812 #if HAVE_PTHREADS < 7
18813         status = pthread_attr_setdetachstate(&attr, &detach);
18814         if( status < 0 ) status = errno;
18815 #else
18816         status = pthread_attr_setdetachstate(&attr, detach);
18817 #endif
18818         if( status ) return status;
18819         status = pthread_create( &t, &attr, task, NULL );
18820 #if HAVE_PTHREADS < 7
18821         if( status < 0 ) status = errno;
18822 #endif
18823         if( status ) return status;
18824 #else
18825         /* Draft 4 pthreads */
18826         status = pthread_create( &t, pthread_attr_default, task, NULL );
18827         if( status ) return errno;
18828
18829         /* give thread a chance to complete */
18830         /* it should remain joinable and hence detachable */
18831         sleep( 1 );
18832
18833         status = pthread_detach( &t );
18834         if( status ) return errno;
18835 #endif
18836
18837 #ifdef HAVE_LINUX_THREADS
18838         pthread_kill_other_threads_np();
18839 #endif
18840
18841         return 0;
18842
18843 }
18844
18845 _ACEOF
18846 if ac_fn_c_try_run "$LINENO"; then :
18847   ol_cv_pthread_lpthreads_lexc=yes
18848 else
18849   ol_cv_pthread_lpthreads_lexc=no
18850 fi
18851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18852   conftest.$ac_objext conftest.beam conftest.$ac_ext
18853 fi
18854
18855
18856                 # restore the LIBS
18857                 LIBS="$ol_LIBS"
18858
18859 fi
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18861 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18862
18863         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18864                 ol_link_pthreads="-lpthreads -lexc"
18865                 ol_link_threads=posix
18866         fi
18867 fi
18868
18869
18870                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18871 if test "$ol_link_threads" = no ; then
18872         # try -lpthreads
18873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18874 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18875 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then :
18876   $as_echo_n "(cached) " >&6
18877 else
18878
18879                 # save the flags
18880                 ol_LIBS="$LIBS"
18881                 LIBS="-lpthreads $LIBS"
18882
18883                 if test "$cross_compiling" = yes; then :
18884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h.  */
18886
18887 /* pthread test headers */
18888 #include <pthread.h>
18889 #if HAVE_PTHREADS < 7
18890 #include <errno.h>
18891 #endif
18892 #ifndef NULL
18893 #define NULL (void*)0
18894 #endif
18895
18896 static void *task(p)
18897         void *p;
18898 {
18899         return (void *) (p == NULL);
18900 }
18901
18902 int
18903 main ()
18904 {
18905
18906         /* pthread test function */
18907 #ifndef PTHREAD_CREATE_DETACHED
18908 #define PTHREAD_CREATE_DETACHED 1
18909 #endif
18910         pthread_t t;
18911         int status;
18912         int detach = PTHREAD_CREATE_DETACHED;
18913
18914 #if HAVE_PTHREADS > 4
18915         /* Final pthreads */
18916         pthread_attr_t attr;
18917
18918         status = pthread_attr_init(&attr);
18919         if( status ) return status;
18920
18921 #if HAVE_PTHREADS < 7
18922         status = pthread_attr_setdetachstate(&attr, &detach);
18923         if( status < 0 ) status = errno;
18924 #else
18925         status = pthread_attr_setdetachstate(&attr, detach);
18926 #endif
18927         if( status ) return status;
18928         status = pthread_create( &t, &attr, task, NULL );
18929 #if HAVE_PTHREADS < 7
18930         if( status < 0 ) status = errno;
18931 #endif
18932         if( status ) return status;
18933 #else
18934         /* Draft 4 pthreads */
18935         status = pthread_create( &t, pthread_attr_default, task, NULL );
18936         if( status ) return errno;
18937
18938         /* give thread a chance to complete */
18939         /* it should remain joinable and hence detachable */
18940         sleep( 1 );
18941
18942         status = pthread_detach( &t );
18943         if( status ) return errno;
18944 #endif
18945
18946 #ifdef HAVE_LINUX_THREADS
18947         pthread_kill_other_threads_np();
18948 #endif
18949
18950         return 0;
18951
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 if ac_fn_c_try_link "$LINENO"; then :
18957   ol_cv_pthread_lib_lpthreads=yes
18958 else
18959   ol_cv_pthread_lib_lpthreads=no
18960 fi
18961 rm -f core conftest.err conftest.$ac_objext \
18962     conftest$ac_exeext conftest.$ac_ext
18963 else
18964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h.  */
18966
18967 /* pthread test headers */
18968 #include <pthread.h>
18969 #if HAVE_PTHREADS < 7
18970 #include <errno.h>
18971 #endif
18972 #ifndef NULL
18973 #define NULL (void*)0
18974 #endif
18975
18976 static void *task(p)
18977         void *p;
18978 {
18979         return (void *) (p == NULL);
18980 }
18981
18982
18983 int main(argc, argv)
18984         int argc;
18985         char **argv;
18986 {
18987
18988         /* pthread test function */
18989 #ifndef PTHREAD_CREATE_DETACHED
18990 #define PTHREAD_CREATE_DETACHED 1
18991 #endif
18992         pthread_t t;
18993         int status;
18994         int detach = PTHREAD_CREATE_DETACHED;
18995
18996 #if HAVE_PTHREADS > 4
18997         /* Final pthreads */
18998         pthread_attr_t attr;
18999
19000         status = pthread_attr_init(&attr);
19001         if( status ) return status;
19002
19003 #if HAVE_PTHREADS < 7
19004         status = pthread_attr_setdetachstate(&attr, &detach);
19005         if( status < 0 ) status = errno;
19006 #else
19007         status = pthread_attr_setdetachstate(&attr, detach);
19008 #endif
19009         if( status ) return status;
19010         status = pthread_create( &t, &attr, task, NULL );
19011 #if HAVE_PTHREADS < 7
19012         if( status < 0 ) status = errno;
19013 #endif
19014         if( status ) return status;
19015 #else
19016         /* Draft 4 pthreads */
19017         status = pthread_create( &t, pthread_attr_default, task, NULL );
19018         if( status ) return errno;
19019
19020         /* give thread a chance to complete */
19021         /* it should remain joinable and hence detachable */
19022         sleep( 1 );
19023
19024         status = pthread_detach( &t );
19025         if( status ) return errno;
19026 #endif
19027
19028 #ifdef HAVE_LINUX_THREADS
19029         pthread_kill_other_threads_np();
19030 #endif
19031
19032         return 0;
19033
19034 }
19035
19036 _ACEOF
19037 if ac_fn_c_try_run "$LINENO"; then :
19038   ol_cv_pthread_lib_lpthreads=yes
19039 else
19040   ol_cv_pthread_lib_lpthreads=no
19041 fi
19042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19043   conftest.$ac_objext conftest.beam conftest.$ac_ext
19044 fi
19045
19046
19047                 # restore the LIBS
19048                 LIBS="$ol_LIBS"
19049
19050 fi
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19052 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19053
19054         if test $ol_cv_pthread_lib_lpthreads = yes ; then
19055                 ol_link_pthreads="-lpthreads"
19056                 ol_link_threads=posix
19057         fi
19058 fi
19059
19060
19061                 if test $ol_link_threads != no ; then
19062                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19063
19064                                                 save_CPPFLAGS="$CPPFLAGS"
19065                         save_LIBS="$LIBS"
19066                         LIBS="$LTHREAD_LIBS $LIBS"
19067
19068                                                                                                 for ac_func in sched_yield pthread_yield thr_yield
19069 do :
19070   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19071 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19072 eval as_val=\$$as_ac_var
19073    if test "x$as_val" = x""yes; then :
19074   cat >>confdefs.h <<_ACEOF
19075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19076 _ACEOF
19077
19078 fi
19079 done
19080
19081
19082                         if test $ac_cv_func_sched_yield = no &&
19083                            test $ac_cv_func_pthread_yield = no &&
19084                            test $ac_cv_func_thr_yield = no ; then
19085                                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19086 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19087 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
19088   $as_echo_n "(cached) " >&6
19089 else
19090   ac_check_lib_save_LIBS=$LIBS
19091 LIBS="-lrt  $LIBS"
19092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h.  */
19094
19095 /* Override any GCC internal prototype to avoid an error.
19096    Use char because int might match the return type of a GCC
19097    builtin and then its argument prototype would still apply.  */
19098 #ifdef __cplusplus
19099 extern "C"
19100 #endif
19101 char sched_yield ();
19102 int
19103 main ()
19104 {
19105 return sched_yield ();
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 if ac_fn_c_try_link "$LINENO"; then :
19111   ac_cv_lib_rt_sched_yield=yes
19112 else
19113   ac_cv_lib_rt_sched_yield=no
19114 fi
19115 rm -f core conftest.err conftest.$ac_objext \
19116     conftest$ac_exeext conftest.$ac_ext
19117 LIBS=$ac_check_lib_save_LIBS
19118 fi
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19120 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19121 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
19122   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19123
19124 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19125
19126                                         ac_cv_func_sched_yield=yes
19127 else
19128   ac_cv_func_sched_yield=no
19129 fi
19130
19131                         fi
19132                         if test $ac_cv_func_sched_yield = no &&
19133                            test $ac_cv_func_pthread_yield = no &&
19134                            test "$ac_cv_func_thr_yield" = no ; then
19135                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19136 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19137                         fi
19138
19139                                                 for ac_func in pthread_kill
19140 do :
19141   ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19142 if test "x$ac_cv_func_pthread_kill" = x""yes; then :
19143   cat >>confdefs.h <<_ACEOF
19144 #define HAVE_PTHREAD_KILL 1
19145 _ACEOF
19146
19147 fi
19148 done
19149
19150
19151                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19152 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19153 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then :
19154   $as_echo_n "(cached) " >&6
19155 else
19156
19157                                                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h.  */
19159
19160 #include <pthread.h>
19161 pthread_rwlock_t rwlock;
19162
19163 int
19164 main ()
19165 {
19166 pthread_rwlock_destroy(&rwlock);
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_link "$LINENO"; then :
19172   ol_cv_func_pthread_rwlock_destroy=yes
19173 else
19174   ol_cv_func_pthread_rwlock_destroy=no
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext \
19177     conftest$ac_exeext conftest.$ac_ext
19178
19179 fi
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19181 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19182                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19183
19184 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19185
19186                         fi
19187
19188                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19189 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19190 if test "${ol_cv_func_pthread_detach+set}" = set; then :
19191   $as_echo_n "(cached) " >&6
19192 else
19193
19194                                                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195 /* end confdefs.h.  */
19196
19197 #include <pthread.h>
19198 #ifndef NULL
19199 #define NULL (void*)0
19200 #endif
19201
19202 int
19203 main ()
19204 {
19205 pthread_detach(NULL);
19206   ;
19207   return 0;
19208 }
19209 _ACEOF
19210 if ac_fn_c_try_link "$LINENO"; then :
19211   ol_cv_func_pthread_detach=yes
19212 else
19213   ol_cv_func_pthread_detach=no
19214 fi
19215 rm -f core conftest.err conftest.$ac_objext \
19216     conftest$ac_exeext conftest.$ac_ext
19217
19218 fi
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19220 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19221
19222                         if test $ol_cv_func_pthread_detach = no ; then
19223                                 as_fn_error "could not locate pthread_detach()" "$LINENO" 5
19224                         fi
19225
19226
19227 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19228
19229
19230                                                 for ac_func in \
19231                                 pthread_setconcurrency \
19232                                 pthread_getconcurrency \
19233                                 thr_setconcurrency \
19234                                 thr_getconcurrency \
19235
19236 do :
19237   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19239 eval as_val=\$$as_ac_var
19240    if test "x$as_val" = x""yes; then :
19241   cat >>confdefs.h <<_ACEOF
19242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19243 _ACEOF
19244
19245 fi
19246 done
19247
19248
19249
19250         for ac_func in pthread_kill_other_threads_np
19251 do :
19252   ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19253 if test "x$ac_cv_func_pthread_kill_other_threads_np" = x""yes; then :
19254   cat >>confdefs.h <<_ACEOF
19255 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19256 _ACEOF
19257
19258 fi
19259 done
19260
19261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19262 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19263 if test "${ol_cv_sys_linux_threads+set}" = set; then :
19264   $as_echo_n "(cached) " >&6
19265 else
19266   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19267 fi
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19269 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19270
19271
19272
19273
19274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19275 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19276 if test "${ol_cv_linux_threads+set}" = set; then :
19277   $as_echo_n "(cached) " >&6
19278 else
19279
19280                 if test $ol_cv_header_linux_threads = yes &&
19281                    test $ol_cv_sys_linux_threads = yes; then
19282                         ol_cv_linux_threads=yes
19283                 elif test $ol_cv_header_linux_threads = no &&
19284                      test $ol_cv_sys_linux_threads = no; then
19285                         ol_cv_linux_threads=no
19286                 else
19287                         ol_cv_linux_threads=error
19288                 fi
19289
19290 fi
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19292 $as_echo "$ol_cv_linux_threads" >&6; }
19293
19294
19295                         if test $ol_cv_linux_threads = error; then
19296                                 as_fn_error "LinuxThreads header/library mismatch" "$LINENO" 5;
19297                         fi
19298
19299                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19300 $as_echo_n "checking if pthread_create() works... " >&6; }
19301 if test "${ol_cv_pthread_create_works+set}" = set; then :
19302   $as_echo_n "(cached) " >&6
19303 else
19304
19305                         if test "$cross_compiling" = yes; then :
19306                                 ol_cv_pthread_create_works=yes
19307 else
19308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h.  */
19310
19311 /* pthread test headers */
19312 #include <pthread.h>
19313 #if HAVE_PTHREADS < 7
19314 #include <errno.h>
19315 #endif
19316 #ifndef NULL
19317 #define NULL (void*)0
19318 #endif
19319
19320 static void *task(p)
19321         void *p;
19322 {
19323         return (void *) (p == NULL);
19324 }
19325
19326
19327 int main(argc, argv)
19328         int argc;
19329         char **argv;
19330 {
19331
19332         /* pthread test function */
19333 #ifndef PTHREAD_CREATE_DETACHED
19334 #define PTHREAD_CREATE_DETACHED 1
19335 #endif
19336         pthread_t t;
19337         int status;
19338         int detach = PTHREAD_CREATE_DETACHED;
19339
19340 #if HAVE_PTHREADS > 4
19341         /* Final pthreads */
19342         pthread_attr_t attr;
19343
19344         status = pthread_attr_init(&attr);
19345         if( status ) return status;
19346
19347 #if HAVE_PTHREADS < 7
19348         status = pthread_attr_setdetachstate(&attr, &detach);
19349         if( status < 0 ) status = errno;
19350 #else
19351         status = pthread_attr_setdetachstate(&attr, detach);
19352 #endif
19353         if( status ) return status;
19354         status = pthread_create( &t, &attr, task, NULL );
19355 #if HAVE_PTHREADS < 7
19356         if( status < 0 ) status = errno;
19357 #endif
19358         if( status ) return status;
19359 #else
19360         /* Draft 4 pthreads */
19361         status = pthread_create( &t, pthread_attr_default, task, NULL );
19362         if( status ) return errno;
19363
19364         /* give thread a chance to complete */
19365         /* it should remain joinable and hence detachable */
19366         sleep( 1 );
19367
19368         status = pthread_detach( &t );
19369         if( status ) return errno;
19370 #endif
19371
19372 #ifdef HAVE_LINUX_THREADS
19373         pthread_kill_other_threads_np();
19374 #endif
19375
19376         return 0;
19377
19378 }
19379
19380 _ACEOF
19381 if ac_fn_c_try_run "$LINENO"; then :
19382   ol_cv_pthread_create_works=yes
19383 else
19384   ol_cv_pthread_create_works=no
19385 fi
19386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19387   conftest.$ac_objext conftest.beam conftest.$ac_ext
19388 fi
19389
19390 fi
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19392 $as_echo "$ol_cv_pthread_create_works" >&6; }
19393
19394                         if test $ol_cv_pthread_create_works = no ; then
19395                                 as_fn_error "pthread_create is not usable, check environment settings" "$LINENO" 5
19396                         fi
19397
19398                         ol_replace_broken_yield=no
19399
19400                         if test $ol_replace_broken_yield = yes ; then
19401
19402 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19403
19404                         fi
19405
19406                                                 if test $ol_with_yielding_select = auto ; then
19407                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19408 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19409 if test "${ol_cv_pthread_select_yields+set}" = set; then :
19410   $as_echo_n "(cached) " >&6
19411 else
19412
19413                                 if test "$cross_compiling" = yes; then :
19414   ol_cv_pthread_select_yields=cross
19415 else
19416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h.  */
19418
19419 #include <sys/types.h>
19420 #include <sys/time.h>
19421 #include <unistd.h>
19422 #include <pthread.h>
19423 #ifndef NULL
19424 #define NULL (void*) 0
19425 #endif
19426
19427 static int fildes[2];
19428
19429 static void *task(p)
19430         void *p;
19431 {
19432         int i;
19433         struct timeval tv;
19434
19435         fd_set rfds;
19436
19437         tv.tv_sec=10;
19438         tv.tv_usec=0;
19439
19440         FD_ZERO(&rfds);
19441         FD_SET(fildes[0], &rfds);
19442
19443         /* we're not interested in any fds */
19444         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19445
19446         if(i < 0) {
19447                 perror("select");
19448                 exit(10);
19449         }
19450
19451         exit(0); /* if we exit here, the select blocked the whole process */
19452 }
19453
19454 int main(argc, argv)
19455         int argc;
19456         char **argv;
19457 {
19458         pthread_t t;
19459
19460         /* create a pipe to select */
19461         if(pipe(&fildes[0])) {
19462                 perror("select");
19463                 exit(1);
19464         }
19465
19466 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19467         (void) pthread_setconcurrency(2);
19468 #else
19469 #ifdef HAVE_THR_SETCONCURRENCY
19470         /* Set Solaris LWP concurrency to 2 */
19471         thr_setconcurrency(2);
19472 #endif
19473 #endif
19474
19475 #if HAVE_PTHREADS < 6
19476         pthread_create(&t, pthread_attr_default, task, NULL);
19477 #else
19478         pthread_create(&t, NULL, task, NULL);
19479 #endif
19480
19481         /* make sure task runs first */
19482 #ifdef HAVE_THR_YIELD
19483         thr_yield();
19484 #elif defined( HAVE_SCHED_YIELD )
19485         sched_yield();
19486 #elif defined( HAVE_PTHREAD_YIELD )
19487         pthread_yield();
19488 #endif
19489
19490         exit(2);
19491 }
19492 _ACEOF
19493 if ac_fn_c_try_run "$LINENO"; then :
19494   ol_cv_pthread_select_yields=no
19495 else
19496   ol_cv_pthread_select_yields=yes
19497 fi
19498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19499   conftest.$ac_objext conftest.beam conftest.$ac_ext
19500 fi
19501
19502 fi
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19504 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19505
19506                                 if test $ol_cv_pthread_select_yields = cross ; then
19507                                         as_fn_error "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19508                                 fi
19509
19510                                 if test $ol_cv_pthread_select_yields = yes ; then
19511                                         ol_with_yielding_select=yes
19512                                 fi
19513                         fi
19514
19515                                                 CPPFLAGS="$save_CPPFLAGS"
19516                         LIBS="$save_LIBS"
19517                 else
19518                         as_fn_error "could not locate usable POSIX Threads" "$LINENO" 5
19519                 fi
19520         fi
19521
19522         if test $ol_with_threads = posix ; then
19523                 as_fn_error "could not locate POSIX Threads" "$LINENO" 5
19524         fi
19525         ;;
19526 esac
19527
19528 case $ol_with_threads in auto | yes | mach)
19529
19530                 for ac_header in mach/cthreads.h cthreads.h
19531 do :
19532   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19534 eval as_val=\$$as_ac_Header
19535    if test "x$as_val" = x""yes; then :
19536   cat >>confdefs.h <<_ACEOF
19537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19538 _ACEOF
19539
19540 fi
19541
19542 done
19543
19544         if test $ac_cv_header_mach_cthreads_h = yes ; then
19545                 ol_with_threads=found
19546
19547                                 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19548 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19549   ol_link_threads=yes
19550 fi
19551
19552
19553                 if test $ol_link_threads = no ; then
19554                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19555 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19556 if test "${ol_cv_cthread_all_load+set}" = set; then :
19557   $as_echo_n "(cached) " >&6
19558 else
19559
19560                                                                 save_LIBS="$LIBS"
19561                                 LIBS="-all_load $LIBS"
19562                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h.  */
19564 #include <mach/cthreads.h>
19565 int
19566 main ()
19567 {
19568
19569                                         cthread_fork((void *)0, (void *)0);
19570
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 if ac_fn_c_try_link "$LINENO"; then :
19576   ol_cv_cthread_all_load=yes
19577 else
19578   ol_cv_cthread_all_load=no
19579 fi
19580 rm -f core conftest.err conftest.$ac_objext \
19581     conftest$ac_exeext conftest.$ac_ext
19582                                                                 LIBS="$save_LIBS"
19583
19584 fi
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19586 $as_echo "$ol_cv_cthread_all_load" >&6; }
19587
19588                         if test $ol_cv_cthread_all_load = yes ; then
19589                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19590                                 ol_link_threads=mach
19591                                 ol_with_threads=found
19592                         fi
19593                 fi
19594
19595         elif test $ac_cv_header_cthreads_h = yes ; then
19596
19597                 ol_with_threads=found
19598
19599                                 save_LIBS="$LIBS"
19600                 LIBS="$LIBS -lthreads"
19601                 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19602 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19603   ol_link_threads=yes
19604 fi
19605
19606                 LIBS="$save_LIBS"
19607
19608                 if test $ol_link_threads = yes ; then
19609                         LTHREAD_LIBS="-lthreads"
19610                         ol_link_threads=mach
19611                         ol_with_threads=found
19612                 else
19613                         as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19614                 fi
19615
19616         elif test $ol_with_threads = mach ; then
19617                 as_fn_error "could not locate Mach CThreads" "$LINENO" 5
19618         fi
19619
19620         if test $ol_link_threads = mach ; then
19621
19622 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19623
19624         elif test $ol_with_threads = found ; then
19625                 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19626         fi
19627         ;;
19628 esac
19629
19630 case $ol_with_threads in auto | yes | pth)
19631
19632         for ac_header in pth.h
19633 do :
19634   ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19635 if test "x$ac_cv_header_pth_h" = x""yes; then :
19636   cat >>confdefs.h <<_ACEOF
19637 #define HAVE_PTH_H 1
19638 _ACEOF
19639
19640 fi
19641
19642 done
19643
19644
19645         if test $ac_cv_header_pth_h = yes ; then
19646                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19647 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19648 if test "${ac_cv_lib_pth_pth_version+set}" = set; then :
19649   $as_echo_n "(cached) " >&6
19650 else
19651   ac_check_lib_save_LIBS=$LIBS
19652 LIBS="-lpth  $LIBS"
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h.  */
19655
19656 /* Override any GCC internal prototype to avoid an error.
19657    Use char because int might match the return type of a GCC
19658    builtin and then its argument prototype would still apply.  */
19659 #ifdef __cplusplus
19660 extern "C"
19661 #endif
19662 char pth_version ();
19663 int
19664 main ()
19665 {
19666 return pth_version ();
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 if ac_fn_c_try_link "$LINENO"; then :
19672   ac_cv_lib_pth_pth_version=yes
19673 else
19674   ac_cv_lib_pth_pth_version=no
19675 fi
19676 rm -f core conftest.err conftest.$ac_objext \
19677     conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19679 fi
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19681 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19682 if test "x$ac_cv_lib_pth_pth_version" = x""yes; then :
19683   have_pth=yes
19684 else
19685   have_pth=no
19686 fi
19687
19688
19689                 if test $have_pth = yes ; then
19690
19691 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19692
19693                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19694                         ol_link_threads=pth
19695                         ol_with_threads=found
19696
19697                         if test $ol_with_yielding_select = auto ; then
19698                                 ol_with_yielding_select=yes
19699                         fi
19700                 fi
19701         fi
19702         ;;
19703 esac
19704
19705 case $ol_with_threads in auto | yes | lwp)
19706
19707                 for ac_header in thread.h synch.h
19708 do :
19709   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19711 eval as_val=\$$as_ac_Header
19712    if test "x$as_val" = x""yes; then :
19713   cat >>confdefs.h <<_ACEOF
19714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19715 _ACEOF
19716
19717 fi
19718
19719 done
19720
19721         if test $ac_cv_header_thread_h = yes &&
19722            test $ac_cv_header_synch_h = yes ; then
19723                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19724 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19725 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
19726   $as_echo_n "(cached) " >&6
19727 else
19728   ac_check_lib_save_LIBS=$LIBS
19729 LIBS="-lthread  $LIBS"
19730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h.  */
19732
19733 /* Override any GCC internal prototype to avoid an error.
19734    Use char because int might match the return type of a GCC
19735    builtin and then its argument prototype would still apply.  */
19736 #ifdef __cplusplus
19737 extern "C"
19738 #endif
19739 char thr_create ();
19740 int
19741 main ()
19742 {
19743 return thr_create ();
19744   ;
19745   return 0;
19746 }
19747 _ACEOF
19748 if ac_fn_c_try_link "$LINENO"; then :
19749   ac_cv_lib_thread_thr_create=yes
19750 else
19751   ac_cv_lib_thread_thr_create=no
19752 fi
19753 rm -f core conftest.err conftest.$ac_objext \
19754     conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19756 fi
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19758 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19759 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
19760   have_thr=yes
19761 else
19762   have_thr=no
19763 fi
19764
19765
19766                 if test $have_thr = yes ; then
19767
19768 $as_echo "#define HAVE_THR 1" >>confdefs.h
19769
19770                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19771                         ol_link_threads=thr
19772
19773                         if test $ol_with_yielding_select = auto ; then
19774                                 ol_with_yielding_select=yes
19775                         fi
19776
19777                                                 for ac_func in \
19778                                 thr_setconcurrency \
19779                                 thr_getconcurrency \
19780
19781 do :
19782   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19784 eval as_val=\$$as_ac_var
19785    if test "x$as_val" = x""yes; then :
19786   cat >>confdefs.h <<_ACEOF
19787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19788 _ACEOF
19789
19790 fi
19791 done
19792
19793                 fi
19794         fi
19795         ;;
19796 esac
19797
19798 if test $ol_with_yielding_select = yes ; then
19799
19800 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19801
19802 fi
19803
19804 if test $ol_with_threads = manual ; then
19805                 ol_link_threads=yes
19806
19807         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19808 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19809
19810         for ac_header in pthread.h sched.h
19811 do :
19812   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19813 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19814 eval as_val=\$$as_ac_Header
19815    if test "x$as_val" = x""yes; then :
19816   cat >>confdefs.h <<_ACEOF
19817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19818 _ACEOF
19819
19820 fi
19821
19822 done
19823
19824         for ac_func in sched_yield pthread_yield
19825 do :
19826   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19827 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19828 eval as_val=\$$as_ac_var
19829    if test "x$as_val" = 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 test "${ol_cv_header_linux_threads+set}" = set; 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" = x""yes; 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 eval as_val=\$$as_ac_Header
19883    if test "x$as_val" = x""yes; then :
19884   cat >>confdefs.h <<_ACEOF
19885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19886 _ACEOF
19887
19888 fi
19889
19890 done
19891
19892 fi
19893
19894 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19895                         $as_echo "#define REENTRANT 1" >>confdefs.h
19896
19897         $as_echo "#define _REENTRANT 1" >>confdefs.h
19898
19899         $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19900
19901         $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19902
19903         $as_echo "#define THREADSAFE 1" >>confdefs.h
19904
19905         $as_echo "#define _THREADSAFE 1" >>confdefs.h
19906
19907         $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19908
19909
19910                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19911 $as_echo_n "checking for thread specific errno... " >&6; }
19912 if test "${ol_cv_errno_thread_specific+set}" = set; then :
19913   $as_echo_n "(cached) " >&6
19914 else
19915
19916                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h.  */
19918 #include <errno.h>
19919 int
19920 main ()
19921 {
19922 errno = 0;
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 if ac_fn_c_try_link "$LINENO"; then :
19928   ol_cv_errno_thread_specific=yes
19929 else
19930   ol_cv_errno_thread_specific=no
19931 fi
19932 rm -f core conftest.err conftest.$ac_objext \
19933     conftest$ac_exeext conftest.$ac_ext
19934
19935 fi
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19937 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19938
19939                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19940 $as_echo_n "checking for thread specific h_errno... " >&6; }
19941 if test "${ol_cv_h_errno_thread_specific+set}" = set; then :
19942   $as_echo_n "(cached) " >&6
19943 else
19944
19945                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h.  */
19947 #include <netdb.h>
19948 int
19949 main ()
19950 {
19951 h_errno = 0;
19952   ;
19953   return 0;
19954 }
19955 _ACEOF
19956 if ac_fn_c_try_link "$LINENO"; then :
19957   ol_cv_h_errno_thread_specific=yes
19958 else
19959   ol_cv_h_errno_thread_specific=no
19960 fi
19961 rm -f core conftest.err conftest.$ac_objext \
19962     conftest$ac_exeext conftest.$ac_ext
19963
19964 fi
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19966 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19967
19968         if test $ol_cv_errno_thread_specific != yes ||
19969            test $ol_cv_h_errno_thread_specific != yes ; then
19970                 LIBS="$LTHREAD_LIBS $LIBS"
19971                 LTHREAD_LIBS=""
19972         fi
19973
19974 fi
19975
19976 if test $ol_link_threads = no ; then
19977         if test $ol_with_threads = yes ; then
19978                 as_fn_error "no suitable thread support" "$LINENO" 5
19979         fi
19980
19981         if test $ol_with_threads = auto ; then
19982                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
19983 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
19984                 ol_with_threads=no
19985         fi
19986
19987
19988 $as_echo "#define NO_THREADS 1" >>confdefs.h
19989
19990         LTHREAD_LIBS=""
19991         BUILD_THREAD=no
19992 else
19993         BUILD_THREAD=yes
19994 fi
19995
19996 if test $ol_link_threads != no ; then
19997
19998 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
19999
20000 fi
20001
20002 for ac_func in \
20003         ctime_r                 \
20004         gmtime_r localtime_r \
20005         gethostbyname_r gethostbyaddr_r \
20006
20007 do :
20008   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20010 eval as_val=\$$as_ac_var
20011    if test "x$as_val" = x""yes; then :
20012   cat >>confdefs.h <<_ACEOF
20013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20014 _ACEOF
20015
20016 fi
20017 done
20018
20019
20020 if test "$ac_cv_func_ctime_r" = no ; then
20021         ol_cv_func_ctime_r_nargs=0
20022 else
20023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20024 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20025 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then :
20026   $as_echo_n "(cached) " >&6
20027 else
20028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h.  */
20030 #include <time.h>
20031 int
20032 main ()
20033 {
20034 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 if ac_fn_c_try_compile "$LINENO"; then :
20040   ol_cv_func_ctime_r_nargs3=yes
20041 else
20042   ol_cv_func_ctime_r_nargs3=no
20043 fi
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045
20046         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h.  */
20048 #include <time.h>
20049 int
20050 main ()
20051 {
20052 time_t ti; char *buffer; ctime_r(&ti,buffer);
20053   ;
20054   return 0;
20055 }
20056 _ACEOF
20057 if ac_fn_c_try_compile "$LINENO"; then :
20058   ol_cv_func_ctime_r_nargs2=yes
20059 else
20060   ol_cv_func_ctime_r_nargs2=no
20061 fi
20062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063
20064         if test $ol_cv_func_ctime_r_nargs3 = yes &&
20065            test $ol_cv_func_ctime_r_nargs2 = no ; then
20066
20067                 ol_cv_func_ctime_r_nargs=3
20068
20069         elif test $ol_cv_func_ctime_r_nargs3 = no &&
20070              test $ol_cv_func_ctime_r_nargs2 = yes ; then
20071
20072                 ol_cv_func_ctime_r_nargs=2
20073
20074         else
20075                 ol_cv_func_ctime_r_nargs=0
20076         fi
20077
20078 fi
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20080 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20081
20082   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20083
20084 cat >>confdefs.h <<_ACEOF
20085 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20086 _ACEOF
20087
20088   fi
20089
20090 fi
20091
20092 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20094 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20095 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then :
20096   $as_echo_n "(cached) " >&6
20097 else
20098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h.  */
20100 #include <sys/types.h>
20101 #include <sys/socket.h>
20102 #include <netinet/in.h>
20103 #include <netdb.h>
20104 #define BUFSIZE (sizeof(struct hostent)+10)
20105 int
20106 main ()
20107 {
20108 struct hostent hent; char buffer[BUFSIZE];
20109                 int bufsize=BUFSIZE;int h_errno;
20110                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20111                         buffer, bufsize, &h_errno);
20112   ;
20113   return 0;
20114 }
20115 _ACEOF
20116 if ac_fn_c_try_compile "$LINENO"; then :
20117   ol_cv_func_gethostbyname_r_nargs5=yes
20118 else
20119   ol_cv_func_gethostbyname_r_nargs5=no
20120 fi
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122
20123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h.  */
20125 #include <sys/types.h>
20126 #include <sys/socket.h>
20127 #include <netinet/in.h>
20128 #include <netdb.h>
20129 #define BUFSIZE (sizeof(struct hostent)+10)
20130 int
20131 main ()
20132 {
20133 struct hostent hent;struct hostent *rhent;
20134                 char buffer[BUFSIZE];
20135                 int bufsize=BUFSIZE;int h_errno;
20136                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20137                         &rhent, &h_errno);
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 if ac_fn_c_try_compile "$LINENO"; then :
20143   ol_cv_func_gethostbyname_r_nargs6=yes
20144 else
20145   ol_cv_func_gethostbyname_r_nargs6=no
20146 fi
20147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148
20149         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20150            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20151
20152                 ol_cv_func_gethostbyname_r_nargs=5
20153
20154         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20155              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20156
20157                 ol_cv_func_gethostbyname_r_nargs=6
20158
20159         else
20160                 ol_cv_func_gethostbyname_r_nargs=0
20161         fi
20162
20163 fi
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20165 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20166   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20167
20168 cat >>confdefs.h <<_ACEOF
20169 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20170 _ACEOF
20171
20172   fi
20173
20174 else
20175         ol_cv_func_gethostbyname_r_nargs=0
20176 fi
20177
20178 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20180 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20181 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then :
20182   $as_echo_n "(cached) " >&6
20183 else
20184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h.  */
20186 #include <sys/types.h>
20187 #include <sys/socket.h>
20188 #include <netinet/in.h>
20189 #include <netdb.h>
20190 #define BUFSIZE (sizeof(struct hostent)+10)
20191 int
20192 main ()
20193 {
20194 struct hostent hent; char buffer[BUFSIZE];
20195             struct in_addr add;
20196             size_t alen=sizeof(struct in_addr);
20197             int bufsize=BUFSIZE;int h_errno;
20198                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20199                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 if ac_fn_c_try_compile "$LINENO"; then :
20205   ol_cv_func_gethostbyaddr_r_nargs7=yes
20206 else
20207   ol_cv_func_gethostbyaddr_r_nargs7=no
20208 fi
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210
20211         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h.  */
20213 #include <sys/types.h>
20214 #include <sys/socket.h>
20215 #include <netinet/in.h>
20216 #include <netdb.h>
20217 #define BUFSIZE (sizeof(struct hostent)+10)
20218 int
20219 main ()
20220 {
20221 struct hostent hent;
20222                 struct hostent *rhent; char buffer[BUFSIZE];
20223                 struct in_addr add;
20224                 size_t alen=sizeof(struct in_addr);
20225                 int bufsize=BUFSIZE;int h_errno;
20226                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20227                         alen, AF_INET, &hent, buffer, bufsize,
20228                         &rhent, &h_errno);
20229   ;
20230   return 0;
20231 }
20232 _ACEOF
20233 if ac_fn_c_try_compile "$LINENO"; then :
20234   ol_cv_func_gethostbyaddr_r_nargs8=yes
20235 else
20236   ol_cv_func_gethostbyaddr_r_nargs8=no
20237 fi
20238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239
20240         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20241            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20242
20243                 ol_cv_func_gethostbyaddr_r_nargs=7
20244
20245         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20246              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20247
20248                 ol_cv_func_gethostbyaddr_r_nargs=8
20249
20250         else
20251                 ol_cv_func_gethostbyaddr_r_nargs=0
20252         fi
20253
20254 fi
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20256 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20257   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20258
20259 cat >>confdefs.h <<_ACEOF
20260 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20261 _ACEOF
20262
20263   fi
20264
20265 else
20266         ol_cv_func_gethostbyaddr_r_nargs=0
20267 fi
20268
20269 ol_link_bdb=no
20270
20271 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20272         ol_cv_berkeley_db=no
20273 for ac_header in db.h
20274 do :
20275   ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20276 if test "x$ac_cv_header_db_h" = x""yes; then :
20277   cat >>confdefs.h <<_ACEOF
20278 #define HAVE_DB_H 1
20279 _ACEOF
20280
20281 fi
20282
20283 done
20284
20285 if test $ac_cv_header_db_h = yes; then
20286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20287 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20288 if test "${ol_cv_bdb_major+set}" = set; then :
20289   $as_echo_n "(cached) " >&6
20290 else
20291
20292         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h.  */
20294
20295 #include <db.h>
20296 #ifndef DB_VERSION_MAJOR
20297 #       define DB_VERSION_MAJOR 1
20298 #endif
20299 __db_version DB_VERSION_MAJOR
20300
20301 _ACEOF
20302         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20303         ol_cv_bdb_major=${3}
20304
20305 fi
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20307 $as_echo "$ol_cv_bdb_major" >&6; }
20308 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20309         as_fn_error "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20310 esac
20311
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20313 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20314 if test "${ol_cv_bdb_minor+set}" = set; then :
20315   $as_echo_n "(cached) " >&6
20316 else
20317
20318         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319 /* end confdefs.h.  */
20320
20321 #include <db.h>
20322 #ifndef DB_VERSION_MINOR
20323 #       define DB_VERSION_MINOR 0
20324 #endif
20325 __db_version DB_VERSION_MINOR
20326
20327 _ACEOF
20328         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20329         ol_cv_bdb_minor=${3}
20330
20331 fi
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20333 $as_echo "$ol_cv_bdb_minor" >&6; }
20334 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20335         as_fn_error "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20336 esac
20337
20338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20339 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20340 if test "${ol_cv_bdb_compat+set}" = set; then :
20341   $as_echo_n "(cached) " >&6
20342 else
20343
20344         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345 /* end confdefs.h.  */
20346
20347 #include <db.h>
20348
20349  /* this check could be improved */
20350 #ifndef DB_VERSION_MAJOR
20351 #       define DB_VERSION_MAJOR 1
20352 #endif
20353 #ifndef DB_VERSION_MINOR
20354 #       define DB_VERSION_MINOR 0
20355 #endif
20356
20357 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
20358
20359 /* require 4.4 or later */
20360 #if DB_VERSION_MM >= 0x0404
20361         __db_version_compat
20362 #endif
20363
20364 _ACEOF
20365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20366   $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20367   ol_cv_bdb_compat=yes
20368 else
20369   ol_cv_bdb_compat=no
20370 fi
20371 rm -f conftest*
20372
20373 fi
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20375 $as_echo "$ol_cv_bdb_compat" >&6; }
20376
20377
20378         if test $ol_cv_bdb_compat != yes ; then
20379                 as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20380         fi
20381
20382         ol_cv_lib_db=no
20383
20384 if test $ol_cv_bdb_major = 5 ; then
20385         if test $ol_cv_lib_db = no ; then
20386         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20387 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20388 if test "${ol_cv_db_db_5_dot_m+set}" = set; then :
20389   $as_echo_n "(cached) " >&6
20390 else
20391
20392         ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20393         ol_LIBS=$LIBS
20394         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20395
20396         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h.  */
20398
20399 #ifdef HAVE_DB_185_H
20400 # include <db_185.h>
20401 #else
20402 # include <db.h>
20403 #endif
20404
20405 #ifndef DB_VERSION_MAJOR
20406 # define DB_VERSION_MAJOR 1
20407 #endif
20408
20409 #ifndef NULL
20410 #define NULL ((void*)0)
20411 #endif
20412
20413 int
20414 main ()
20415 {
20416
20417 #if DB_VERSION_MAJOR > 2
20418         db_env_create( NULL, 0 );
20419 #elif DB_VERSION_MAJOR > 1
20420         db_appexit( NULL );
20421 #else
20422         (void) dbopen( NULL, 0, 0, 0, NULL);
20423 #endif
20424
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 if ac_fn_c_try_link "$LINENO"; then :
20430   ol_cv_db_db_5_dot_m=yes
20431 else
20432   ol_cv_db_db_5_dot_m=no
20433 fi
20434 rm -f core conftest.err conftest.$ac_objext \
20435     conftest$ac_exeext conftest.$ac_ext
20436
20437         LIBS="$ol_LIBS"
20438
20439 fi
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20441 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20442
20443         if test $ol_cv_db_db_5_dot_m = yes ; then
20444                 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20445         fi
20446 fi
20447
20448         if test $ol_cv_lib_db = no ; then
20449         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20450 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20451 if test "${ol_cv_db_db5m+set}" = set; then :
20452   $as_echo_n "(cached) " >&6
20453 else
20454
20455         ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20456         ol_LIBS=$LIBS
20457         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20458
20459         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h.  */
20461
20462 #ifdef HAVE_DB_185_H
20463 # include <db_185.h>
20464 #else
20465 # include <db.h>
20466 #endif
20467
20468 #ifndef DB_VERSION_MAJOR
20469 # define DB_VERSION_MAJOR 1
20470 #endif
20471
20472 #ifndef NULL
20473 #define NULL ((void*)0)
20474 #endif
20475
20476 int
20477 main ()
20478 {
20479
20480 #if DB_VERSION_MAJOR > 2
20481         db_env_create( NULL, 0 );
20482 #elif DB_VERSION_MAJOR > 1
20483         db_appexit( NULL );
20484 #else
20485         (void) dbopen( NULL, 0, 0, 0, NULL);
20486 #endif
20487
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 if ac_fn_c_try_link "$LINENO"; then :
20493   ol_cv_db_db5m=yes
20494 else
20495   ol_cv_db_db5m=no
20496 fi
20497 rm -f core conftest.err conftest.$ac_objext \
20498     conftest$ac_exeext conftest.$ac_ext
20499
20500         LIBS="$ol_LIBS"
20501
20502 fi
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20504 $as_echo "$ol_cv_db_db5m" >&6; }
20505
20506         if test $ol_cv_db_db5m = yes ; then
20507                 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20508         fi
20509 fi
20510
20511         if test $ol_cv_lib_db = no ; then
20512         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20513 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20514 if test "${ol_cv_db_db_5m+set}" = set; then :
20515   $as_echo_n "(cached) " >&6
20516 else
20517
20518         ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20519         ol_LIBS=$LIBS
20520         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20521
20522         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h.  */
20524
20525 #ifdef HAVE_DB_185_H
20526 # include <db_185.h>
20527 #else
20528 # include <db.h>
20529 #endif
20530
20531 #ifndef DB_VERSION_MAJOR
20532 # define DB_VERSION_MAJOR 1
20533 #endif
20534
20535 #ifndef NULL
20536 #define NULL ((void*)0)
20537 #endif
20538
20539 int
20540 main ()
20541 {
20542
20543 #if DB_VERSION_MAJOR > 2
20544         db_env_create( NULL, 0 );
20545 #elif DB_VERSION_MAJOR > 1
20546         db_appexit( NULL );
20547 #else
20548         (void) dbopen( NULL, 0, 0, 0, NULL);
20549 #endif
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 if ac_fn_c_try_link "$LINENO"; then :
20556   ol_cv_db_db_5m=yes
20557 else
20558   ol_cv_db_db_5m=no
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext \
20561     conftest$ac_exeext conftest.$ac_ext
20562
20563         LIBS="$ol_LIBS"
20564
20565 fi
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20567 $as_echo "$ol_cv_db_db_5m" >&6; }
20568
20569         if test $ol_cv_db_db_5m = yes ; then
20570                 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20571         fi
20572 fi
20573
20574         if test $ol_cv_lib_db = no ; then
20575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20576 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20577 if test "${ol_cv_db_db_5_m+set}" = set; then :
20578   $as_echo_n "(cached) " >&6
20579 else
20580
20581         ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20582         ol_LIBS=$LIBS
20583         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20584
20585         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20586 /* end confdefs.h.  */
20587
20588 #ifdef HAVE_DB_185_H
20589 # include <db_185.h>
20590 #else
20591 # include <db.h>
20592 #endif
20593
20594 #ifndef DB_VERSION_MAJOR
20595 # define DB_VERSION_MAJOR 1
20596 #endif
20597
20598 #ifndef NULL
20599 #define NULL ((void*)0)
20600 #endif
20601
20602 int
20603 main ()
20604 {
20605
20606 #if DB_VERSION_MAJOR > 2
20607         db_env_create( NULL, 0 );
20608 #elif DB_VERSION_MAJOR > 1
20609         db_appexit( NULL );
20610 #else
20611         (void) dbopen( NULL, 0, 0, 0, NULL);
20612 #endif
20613
20614   ;
20615   return 0;
20616 }
20617 _ACEOF
20618 if ac_fn_c_try_link "$LINENO"; then :
20619   ol_cv_db_db_5_m=yes
20620 else
20621   ol_cv_db_db_5_m=no
20622 fi
20623 rm -f core conftest.err conftest.$ac_objext \
20624     conftest$ac_exeext conftest.$ac_ext
20625
20626         LIBS="$ol_LIBS"
20627
20628 fi
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20630 $as_echo "$ol_cv_db_db_5_m" >&6; }
20631
20632         if test $ol_cv_db_db_5_m = yes ; then
20633                 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20634         fi
20635 fi
20636
20637         if test $ol_cv_lib_db = no ; then
20638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20639 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20640 if test "${ol_cv_db_db_5+set}" = set; then :
20641   $as_echo_n "(cached) " >&6
20642 else
20643
20644         ol_DB_LIB=-ldb-5
20645         ol_LIBS=$LIBS
20646         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20647
20648         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h.  */
20650
20651 #ifdef HAVE_DB_185_H
20652 # include <db_185.h>
20653 #else
20654 # include <db.h>
20655 #endif
20656
20657 #ifndef DB_VERSION_MAJOR
20658 # define DB_VERSION_MAJOR 1
20659 #endif
20660
20661 #ifndef NULL
20662 #define NULL ((void*)0)
20663 #endif
20664
20665 int
20666 main ()
20667 {
20668
20669 #if DB_VERSION_MAJOR > 2
20670         db_env_create( NULL, 0 );
20671 #elif DB_VERSION_MAJOR > 1
20672         db_appexit( NULL );
20673 #else
20674         (void) dbopen( NULL, 0, 0, 0, NULL);
20675 #endif
20676
20677   ;
20678   return 0;
20679 }
20680 _ACEOF
20681 if ac_fn_c_try_link "$LINENO"; then :
20682   ol_cv_db_db_5=yes
20683 else
20684   ol_cv_db_db_5=no
20685 fi
20686 rm -f core conftest.err conftest.$ac_objext \
20687     conftest$ac_exeext conftest.$ac_ext
20688
20689         LIBS="$ol_LIBS"
20690
20691 fi
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20693 $as_echo "$ol_cv_db_db_5" >&6; }
20694
20695         if test $ol_cv_db_db_5 = yes ; then
20696                 ol_cv_lib_db=-ldb-5
20697         fi
20698 fi
20699
20700         if test $ol_cv_lib_db = no ; then
20701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20702 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20703 if test "${ol_cv_db_db5+set}" = set; then :
20704   $as_echo_n "(cached) " >&6
20705 else
20706
20707         ol_DB_LIB=-ldb5
20708         ol_LIBS=$LIBS
20709         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20710
20711         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h.  */
20713
20714 #ifdef HAVE_DB_185_H
20715 # include <db_185.h>
20716 #else
20717 # include <db.h>
20718 #endif
20719
20720 #ifndef DB_VERSION_MAJOR
20721 # define DB_VERSION_MAJOR 1
20722 #endif
20723
20724 #ifndef NULL
20725 #define NULL ((void*)0)
20726 #endif
20727
20728 int
20729 main ()
20730 {
20731
20732 #if DB_VERSION_MAJOR > 2
20733         db_env_create( NULL, 0 );
20734 #elif DB_VERSION_MAJOR > 1
20735         db_appexit( NULL );
20736 #else
20737         (void) dbopen( NULL, 0, 0, 0, NULL);
20738 #endif
20739
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 if ac_fn_c_try_link "$LINENO"; then :
20745   ol_cv_db_db5=yes
20746 else
20747   ol_cv_db_db5=no
20748 fi
20749 rm -f core conftest.err conftest.$ac_objext \
20750     conftest$ac_exeext conftest.$ac_ext
20751
20752         LIBS="$ol_LIBS"
20753
20754 fi
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20756 $as_echo "$ol_cv_db_db5" >&6; }
20757
20758         if test $ol_cv_db_db5 = yes ; then
20759                 ol_cv_lib_db=-ldb5
20760         fi
20761 fi
20762
20763 elif test $ol_cv_bdb_major = 4 ; then
20764         if test $ol_cv_lib_db = no ; then
20765         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20766 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20767 if test "${ol_cv_db_db_4_dot_m+set}" = set; then :
20768   $as_echo_n "(cached) " >&6
20769 else
20770
20771         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20772         ol_LIBS=$LIBS
20773         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20774
20775         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h.  */
20777
20778 #ifdef HAVE_DB_185_H
20779 # include <db_185.h>
20780 #else
20781 # include <db.h>
20782 #endif
20783
20784 #ifndef DB_VERSION_MAJOR
20785 # define DB_VERSION_MAJOR 1
20786 #endif
20787
20788 #ifndef NULL
20789 #define NULL ((void*)0)
20790 #endif
20791
20792 int
20793 main ()
20794 {
20795
20796 #if DB_VERSION_MAJOR > 2
20797         db_env_create( NULL, 0 );
20798 #elif DB_VERSION_MAJOR > 1
20799         db_appexit( NULL );
20800 #else
20801         (void) dbopen( NULL, 0, 0, 0, NULL);
20802 #endif
20803
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 if ac_fn_c_try_link "$LINENO"; then :
20809   ol_cv_db_db_4_dot_m=yes
20810 else
20811   ol_cv_db_db_4_dot_m=no
20812 fi
20813 rm -f core conftest.err conftest.$ac_objext \
20814     conftest$ac_exeext conftest.$ac_ext
20815
20816         LIBS="$ol_LIBS"
20817
20818 fi
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20820 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20821
20822         if test $ol_cv_db_db_4_dot_m = yes ; then
20823                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20824         fi
20825 fi
20826
20827         if test $ol_cv_lib_db = no ; then
20828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20829 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20830 if test "${ol_cv_db_db4m+set}" = set; then :
20831   $as_echo_n "(cached) " >&6
20832 else
20833
20834         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20835         ol_LIBS=$LIBS
20836         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20837
20838         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h.  */
20840
20841 #ifdef HAVE_DB_185_H
20842 # include <db_185.h>
20843 #else
20844 # include <db.h>
20845 #endif
20846
20847 #ifndef DB_VERSION_MAJOR
20848 # define DB_VERSION_MAJOR 1
20849 #endif
20850
20851 #ifndef NULL
20852 #define NULL ((void*)0)
20853 #endif
20854
20855 int
20856 main ()
20857 {
20858
20859 #if DB_VERSION_MAJOR > 2
20860         db_env_create( NULL, 0 );
20861 #elif DB_VERSION_MAJOR > 1
20862         db_appexit( NULL );
20863 #else
20864         (void) dbopen( NULL, 0, 0, 0, NULL);
20865 #endif
20866
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 if ac_fn_c_try_link "$LINENO"; then :
20872   ol_cv_db_db4m=yes
20873 else
20874   ol_cv_db_db4m=no
20875 fi
20876 rm -f core conftest.err conftest.$ac_objext \
20877     conftest$ac_exeext conftest.$ac_ext
20878
20879         LIBS="$ol_LIBS"
20880
20881 fi
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20883 $as_echo "$ol_cv_db_db4m" >&6; }
20884
20885         if test $ol_cv_db_db4m = yes ; then
20886                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20887         fi
20888 fi
20889
20890         if test $ol_cv_lib_db = no ; then
20891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20892 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20893 if test "${ol_cv_db_db_4m+set}" = set; then :
20894   $as_echo_n "(cached) " >&6
20895 else
20896
20897         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20898         ol_LIBS=$LIBS
20899         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20900
20901         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902 /* end confdefs.h.  */
20903
20904 #ifdef HAVE_DB_185_H
20905 # include <db_185.h>
20906 #else
20907 # include <db.h>
20908 #endif
20909
20910 #ifndef DB_VERSION_MAJOR
20911 # define DB_VERSION_MAJOR 1
20912 #endif
20913
20914 #ifndef NULL
20915 #define NULL ((void*)0)
20916 #endif
20917
20918 int
20919 main ()
20920 {
20921
20922 #if DB_VERSION_MAJOR > 2
20923         db_env_create( NULL, 0 );
20924 #elif DB_VERSION_MAJOR > 1
20925         db_appexit( NULL );
20926 #else
20927         (void) dbopen( NULL, 0, 0, 0, NULL);
20928 #endif
20929
20930   ;
20931   return 0;
20932 }
20933 _ACEOF
20934 if ac_fn_c_try_link "$LINENO"; then :
20935   ol_cv_db_db_4m=yes
20936 else
20937   ol_cv_db_db_4m=no
20938 fi
20939 rm -f core conftest.err conftest.$ac_objext \
20940     conftest$ac_exeext conftest.$ac_ext
20941
20942         LIBS="$ol_LIBS"
20943
20944 fi
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
20946 $as_echo "$ol_cv_db_db_4m" >&6; }
20947
20948         if test $ol_cv_db_db_4m = yes ; then
20949                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
20950         fi
20951 fi
20952
20953         if test $ol_cv_lib_db = no ; then
20954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
20955 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
20956 if test "${ol_cv_db_db_4_m+set}" = set; then :
20957   $as_echo_n "(cached) " >&6
20958 else
20959
20960         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
20961         ol_LIBS=$LIBS
20962         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20963
20964         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20965 /* end confdefs.h.  */
20966
20967 #ifdef HAVE_DB_185_H
20968 # include <db_185.h>
20969 #else
20970 # include <db.h>
20971 #endif
20972
20973 #ifndef DB_VERSION_MAJOR
20974 # define DB_VERSION_MAJOR 1
20975 #endif
20976
20977 #ifndef NULL
20978 #define NULL ((void*)0)
20979 #endif
20980
20981 int
20982 main ()
20983 {
20984
20985 #if DB_VERSION_MAJOR > 2
20986         db_env_create( NULL, 0 );
20987 #elif DB_VERSION_MAJOR > 1
20988         db_appexit( NULL );
20989 #else
20990         (void) dbopen( NULL, 0, 0, 0, NULL);
20991 #endif
20992
20993   ;
20994   return 0;
20995 }
20996 _ACEOF
20997 if ac_fn_c_try_link "$LINENO"; then :
20998   ol_cv_db_db_4_m=yes
20999 else
21000   ol_cv_db_db_4_m=no
21001 fi
21002 rm -f core conftest.err conftest.$ac_objext \
21003     conftest$ac_exeext conftest.$ac_ext
21004
21005         LIBS="$ol_LIBS"
21006
21007 fi
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21009 $as_echo "$ol_cv_db_db_4_m" >&6; }
21010
21011         if test $ol_cv_db_db_4_m = yes ; then
21012                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21013         fi
21014 fi
21015
21016         if test $ol_cv_lib_db = no ; then
21017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21018 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21019 if test "${ol_cv_db_db_4+set}" = set; then :
21020   $as_echo_n "(cached) " >&6
21021 else
21022
21023         ol_DB_LIB=-ldb-4
21024         ol_LIBS=$LIBS
21025         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21026
21027         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h.  */
21029
21030 #ifdef HAVE_DB_185_H
21031 # include <db_185.h>
21032 #else
21033 # include <db.h>
21034 #endif
21035
21036 #ifndef DB_VERSION_MAJOR
21037 # define DB_VERSION_MAJOR 1
21038 #endif
21039
21040 #ifndef NULL
21041 #define NULL ((void*)0)
21042 #endif
21043
21044 int
21045 main ()
21046 {
21047
21048 #if DB_VERSION_MAJOR > 2
21049         db_env_create( NULL, 0 );
21050 #elif DB_VERSION_MAJOR > 1
21051         db_appexit( NULL );
21052 #else
21053         (void) dbopen( NULL, 0, 0, 0, NULL);
21054 #endif
21055
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 if ac_fn_c_try_link "$LINENO"; then :
21061   ol_cv_db_db_4=yes
21062 else
21063   ol_cv_db_db_4=no
21064 fi
21065 rm -f core conftest.err conftest.$ac_objext \
21066     conftest$ac_exeext conftest.$ac_ext
21067
21068         LIBS="$ol_LIBS"
21069
21070 fi
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21072 $as_echo "$ol_cv_db_db_4" >&6; }
21073
21074         if test $ol_cv_db_db_4 = yes ; then
21075                 ol_cv_lib_db=-ldb-4
21076         fi
21077 fi
21078
21079         if test $ol_cv_lib_db = no ; then
21080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21081 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21082 if test "${ol_cv_db_db4+set}" = set; then :
21083   $as_echo_n "(cached) " >&6
21084 else
21085
21086         ol_DB_LIB=-ldb4
21087         ol_LIBS=$LIBS
21088         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21089
21090         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h.  */
21092
21093 #ifdef HAVE_DB_185_H
21094 # include <db_185.h>
21095 #else
21096 # include <db.h>
21097 #endif
21098
21099 #ifndef DB_VERSION_MAJOR
21100 # define DB_VERSION_MAJOR 1
21101 #endif
21102
21103 #ifndef NULL
21104 #define NULL ((void*)0)
21105 #endif
21106
21107 int
21108 main ()
21109 {
21110
21111 #if DB_VERSION_MAJOR > 2
21112         db_env_create( NULL, 0 );
21113 #elif DB_VERSION_MAJOR > 1
21114         db_appexit( NULL );
21115 #else
21116         (void) dbopen( NULL, 0, 0, 0, NULL);
21117 #endif
21118
21119   ;
21120   return 0;
21121 }
21122 _ACEOF
21123 if ac_fn_c_try_link "$LINENO"; then :
21124   ol_cv_db_db4=yes
21125 else
21126   ol_cv_db_db4=no
21127 fi
21128 rm -f core conftest.err conftest.$ac_objext \
21129     conftest$ac_exeext conftest.$ac_ext
21130
21131         LIBS="$ol_LIBS"
21132
21133 fi
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21135 $as_echo "$ol_cv_db_db4" >&6; }
21136
21137         if test $ol_cv_db_db4 = yes ; then
21138                 ol_cv_lib_db=-ldb4
21139         fi
21140 fi
21141
21142 fi
21143 if test $ol_cv_lib_db = no ; then
21144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21145 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21146 if test "${ol_cv_db_db+set}" = set; then :
21147   $as_echo_n "(cached) " >&6
21148 else
21149
21150         ol_DB_LIB=-ldb
21151         ol_LIBS=$LIBS
21152         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21153
21154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21155 /* end confdefs.h.  */
21156
21157 #ifdef HAVE_DB_185_H
21158 # include <db_185.h>
21159 #else
21160 # include <db.h>
21161 #endif
21162
21163 #ifndef DB_VERSION_MAJOR
21164 # define DB_VERSION_MAJOR 1
21165 #endif
21166
21167 #ifndef NULL
21168 #define NULL ((void*)0)
21169 #endif
21170
21171 int
21172 main ()
21173 {
21174
21175 #if DB_VERSION_MAJOR > 2
21176         db_env_create( NULL, 0 );
21177 #elif DB_VERSION_MAJOR > 1
21178         db_appexit( NULL );
21179 #else
21180         (void) dbopen( NULL, 0, 0, 0, NULL);
21181 #endif
21182
21183   ;
21184   return 0;
21185 }
21186 _ACEOF
21187 if ac_fn_c_try_link "$LINENO"; then :
21188   ol_cv_db_db=yes
21189 else
21190   ol_cv_db_db=no
21191 fi
21192 rm -f core conftest.err conftest.$ac_objext \
21193     conftest$ac_exeext conftest.$ac_ext
21194
21195         LIBS="$ol_LIBS"
21196
21197 fi
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21199 $as_echo "$ol_cv_db_db" >&6; }
21200
21201         if test $ol_cv_db_db = yes ; then
21202                 ol_cv_lib_db=-ldb
21203         fi
21204 fi
21205
21206 if test $ol_cv_lib_db = no ; then
21207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21208 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21209 if test "${ol_cv_db_none+set}" = set; then :
21210   $as_echo_n "(cached) " >&6
21211 else
21212
21213         ol_DB_LIB=
21214         ol_LIBS=$LIBS
21215         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21216
21217         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21218 /* end confdefs.h.  */
21219
21220 #ifdef HAVE_DB_185_H
21221 # include <db_185.h>
21222 #else
21223 # include <db.h>
21224 #endif
21225
21226 #ifndef DB_VERSION_MAJOR
21227 # define DB_VERSION_MAJOR 1
21228 #endif
21229
21230 #ifndef NULL
21231 #define NULL ((void*)0)
21232 #endif
21233
21234 int
21235 main ()
21236 {
21237
21238 #if DB_VERSION_MAJOR > 2
21239         db_env_create( NULL, 0 );
21240 #elif DB_VERSION_MAJOR > 1
21241         db_appexit( NULL );
21242 #else
21243         (void) dbopen( NULL, 0, 0, 0, NULL);
21244 #endif
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 if ac_fn_c_try_link "$LINENO"; then :
21251   ol_cv_db_none=yes
21252 else
21253   ol_cv_db_none=no
21254 fi
21255 rm -f core conftest.err conftest.$ac_objext \
21256     conftest$ac_exeext conftest.$ac_ext
21257
21258         LIBS="$ol_LIBS"
21259
21260 fi
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21262 $as_echo "$ol_cv_db_none" >&6; }
21263
21264         if test $ol_cv_db_none = yes ; then
21265                 ol_cv_lib_db=yes
21266         fi
21267 fi
21268
21269
21270         if test "$ol_cv_lib_db" != no ; then
21271                 ol_cv_berkeley_db=yes
21272                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21273 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21274 if test "${ol_cv_berkeley_db_version+set}" = set; then :
21275   $as_echo_n "(cached) " >&6
21276 else
21277
21278         ol_LIBS="$LIBS"
21279         LIBS="$LTHREAD_LIBS $LIBS"
21280         if test $ol_cv_lib_db != yes ; then
21281                 LIBS="$ol_cv_lib_db $LIBS"
21282         fi
21283
21284         if test "$cross_compiling" = yes; then :
21285   ol_cv_berkeley_db_version=cross
21286 else
21287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288 /* end confdefs.h.  */
21289
21290 #ifdef HAVE_DB_185_H
21291         choke me;
21292 #else
21293 #include <db.h>
21294 #endif
21295 #ifndef DB_VERSION_MAJOR
21296 # define DB_VERSION_MAJOR 1
21297 #endif
21298 #ifndef NULL
21299 #define NULL ((void *)0)
21300 #endif
21301 main()
21302 {
21303 #if DB_VERSION_MAJOR > 1
21304         char *version;
21305         int major, minor, patch;
21306
21307         version = db_version( &major, &minor, &patch );
21308
21309         if( major != DB_VERSION_MAJOR ||
21310                 minor != DB_VERSION_MINOR ||
21311                 patch != DB_VERSION_PATCH )
21312         {
21313                 printf("Berkeley DB version mismatch\n"
21314                         "\theader: %s\n\tlibrary: %s\n",
21315                         DB_VERSION_STRING, version);
21316                 return 1;
21317         }
21318 #endif
21319
21320         return 0;
21321 }
21322 _ACEOF
21323 if ac_fn_c_try_run "$LINENO"; then :
21324   ol_cv_berkeley_db_version=yes
21325 else
21326   ol_cv_berkeley_db_version=no
21327 fi
21328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21329   conftest.$ac_objext conftest.beam conftest.$ac_ext
21330 fi
21331
21332
21333         LIBS="$ol_LIBS"
21334
21335 fi
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21337 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21338
21339         if test $ol_cv_berkeley_db_version = no ; then
21340                 as_fn_error "Berkeley DB version mismatch" "$LINENO" 5
21341         fi
21342
21343                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21344 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21345 if test "${ol_cv_berkeley_db_thread+set}" = set; then :
21346   $as_echo_n "(cached) " >&6
21347 else
21348
21349         ol_LIBS="$LIBS"
21350         LIBS="$LTHREAD_LIBS $LIBS"
21351         if test $ol_cv_lib_db != yes ; then
21352                 LIBS="$ol_cv_lib_db $LIBS"
21353         fi
21354
21355         if test "$cross_compiling" = yes; then :
21356   ol_cv_berkeley_db_thread=cross
21357 else
21358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h.  */
21360
21361 #ifdef HAVE_DB_185_H
21362         choke me;
21363 #else
21364 #include <db.h>
21365 #endif
21366 #ifndef NULL
21367 #define NULL ((void *)0)
21368 #endif
21369 main()
21370 {
21371         int rc;
21372         u_int32_t flags = DB_CREATE |
21373 #ifdef DB_PRIVATE
21374                 DB_PRIVATE |
21375 #endif
21376                 DB_THREAD;
21377
21378 #if DB_VERSION_MAJOR > 2
21379         DB_ENV *env = NULL;
21380
21381         rc = db_env_create( &env, 0 );
21382
21383         flags |= DB_INIT_MPOOL;
21384 #ifdef DB_MPOOL_PRIVATE
21385         flags |= DB_MPOOL_PRIVATE;
21386 #endif
21387
21388         if( rc ) {
21389                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21390                 return rc;
21391         }
21392
21393 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21394         rc = (env->open)( env, NULL, flags, 0 );
21395 #else
21396         rc = (env->open)( env, NULL, NULL, flags, 0 );
21397 #endif
21398
21399         if ( rc == 0 ) {
21400                 rc = env->close( env, 0 );
21401         }
21402
21403         if( rc ) {
21404                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21405                 return rc;
21406         }
21407
21408 #else
21409         DB_ENV env;
21410         memset( &env, '\0', sizeof(env) );
21411
21412         rc = db_appinit( NULL, NULL, &env, flags );
21413
21414         if( rc == 0 ) {
21415                 db_appexit( &env );
21416         }
21417
21418         unlink("__db_mpool.share");
21419         unlink("__db_lock.share");
21420 #endif
21421
21422         return rc;
21423 }
21424 _ACEOF
21425 if ac_fn_c_try_run "$LINENO"; then :
21426   ol_cv_berkeley_db_thread=yes
21427 else
21428   ol_cv_berkeley_db_thread=no
21429 fi
21430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21431   conftest.$ac_objext conftest.beam conftest.$ac_ext
21432 fi
21433
21434
21435         LIBS="$ol_LIBS"
21436
21437 fi
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21439 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21440
21441         if test $ol_cv_berkeley_db_thread != no ; then
21442
21443 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21444
21445         fi
21446
21447         fi
21448 fi
21449
21450
21451         if test $ol_cv_berkeley_db = no ; then
21452                 as_fn_error "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21453         fi
21454
21455
21456 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21457
21458
21459                         if test $ol_cv_lib_db != yes ; then
21460                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21461         fi
21462
21463         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21464
21465         ol_link_bdb=yes
21466 fi
21467
21468
21469 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21470         BUILD_LIBS_DYNAMIC=shared
21471
21472 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21473
21474         LTSTATIC=""
21475 else
21476         BUILD_LIBS_DYNAMIC=static
21477         LTSTATIC="-static"
21478 fi
21479
21480 if test $ol_enable_wrappers != no ; then
21481         for ac_header in tcpd.h
21482 do :
21483   ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21484 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
21485   cat >>confdefs.h <<_ACEOF
21486 #define HAVE_TCPD_H 1
21487 _ACEOF
21488
21489                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21490 $as_echo_n "checking for TCP wrappers library... " >&6; }
21491                 save_LIBS="$LIBS"
21492                 LIBS="$LIBS -lwrap"
21493                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h.  */
21495
21496 #include <tcpd.h>
21497 int allow_severity = 0;
21498 int deny_severity  = 0;
21499
21500 struct request_info *req;
21501
21502 int
21503 main ()
21504 {
21505
21506 hosts_access(req)
21507
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 if ac_fn_c_try_link "$LINENO"; then :
21513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21514 $as_echo "-lwrap" >&6; }
21515                 have_wrappers=yes
21516                 LIBS="$save_LIBS"
21517 else
21518
21519                                 LIBS="$LIBS -lnsl"
21520                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21521 /* end confdefs.h.  */
21522
21523 #include <tcpd.h>
21524 int allow_severity = 0;
21525 int deny_severity  = 0;
21526
21527 struct request_info *req;
21528
21529 int
21530 main ()
21531 {
21532
21533 hosts_access(req)
21534
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 if ac_fn_c_try_link "$LINENO"; then :
21540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21541 $as_echo "-lwrap -lnsl" >&6; }
21542                 have_wrappers=yes
21543                 LIBS="$save_LIBS -lnsl"
21544 else
21545
21546                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21547 $as_echo "no" >&6; }
21548                 have_wrappers=no
21549                 LIBS=$save_LIBS
21550 fi
21551 rm -f core conftest.err conftest.$ac_objext \
21552     conftest$ac_exeext conftest.$ac_ext
21553 fi
21554 rm -f core conftest.err conftest.$ac_objext \
21555     conftest$ac_exeext conftest.$ac_ext
21556 else
21557   have_wrappers=no
21558 fi
21559
21560 done
21561
21562
21563         if test $have_wrappers = yes ; then
21564
21565 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21566
21567                 WRAP_LIBS="-lwrap"
21568         elif test $ol_enable_wrappers = yes ; then
21569                 as_fn_error "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21570         else
21571                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21572 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21573                 WRAP_LIBS=""
21574         fi
21575 fi
21576
21577 if test $ol_enable_syslog != no ; then
21578         ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21579 if test "x$ac_cv_func_openlog" = x""yes; then :
21580
21581 fi
21582
21583         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21584                 { as_fn_set_status select appropriate options or disable
21585 as_fn_error "could not find syslog" "$LINENO" 5; }
21586         fi
21587         ol_enable_syslog=$ac_cv_func_openlog
21588 fi
21589
21590 ol_link_sql=no
21591 if test $ol_enable_sql != no ; then
21592         for ac_header in sql.h sqlext.h
21593 do :
21594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21596 eval as_val=\$$as_ac_Header
21597    if test "x$as_val" = x""yes; then :
21598   cat >>confdefs.h <<_ACEOF
21599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21600 _ACEOF
21601
21602 else
21603
21604                 as_fn_error "could not locate SQL headers" "$LINENO" 5
21605
21606 fi
21607
21608 done
21609
21610
21611         sql_LIBS="$LIBS"
21612         LIBS="$LTHREAD_LIBS"
21613
21614         if test $ol_with_odbc = auto ; then
21615                 ol_with_odbc="iodbc unixodbc odbc32"
21616         fi
21617
21618         for odbc in $ol_with_odbc ; do
21619                 if test $ol_link_sql = no ; then
21620                         case $odbc in
21621                         iodbc)
21622                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21623 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21624 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then :
21625   $as_echo_n "(cached) " >&6
21626 else
21627   ac_check_lib_save_LIBS=$LIBS
21628 LIBS="-liodbc  $LIBS"
21629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h.  */
21631
21632 /* Override any GCC internal prototype to avoid an error.
21633    Use char because int might match the return type of a GCC
21634    builtin and then its argument prototype would still apply.  */
21635 #ifdef __cplusplus
21636 extern "C"
21637 #endif
21638 char SQLDriverConnect ();
21639 int
21640 main ()
21641 {
21642 return SQLDriverConnect ();
21643   ;
21644   return 0;
21645 }
21646 _ACEOF
21647 if ac_fn_c_try_link "$LINENO"; then :
21648   ac_cv_lib_iodbc_SQLDriverConnect=yes
21649 else
21650   ac_cv_lib_iodbc_SQLDriverConnect=no
21651 fi
21652 rm -f core conftest.err conftest.$ac_objext \
21653     conftest$ac_exeext conftest.$ac_ext
21654 LIBS=$ac_check_lib_save_LIBS
21655 fi
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21657 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21658 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = x""yes; then :
21659   have_iodbc=yes
21660 else
21661   have_iodbc=no
21662 fi
21663
21664                                 if test $have_iodbc = yes ; then
21665                                         ol_link_sql="-liodbc"
21666                                 fi
21667                                 ;;
21668
21669                         unixodbc)
21670                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21671 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21672 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then :
21673   $as_echo_n "(cached) " >&6
21674 else
21675   ac_check_lib_save_LIBS=$LIBS
21676 LIBS="-lodbc  $LIBS"
21677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h.  */
21679
21680 /* Override any GCC internal prototype to avoid an error.
21681    Use char because int might match the return type of a GCC
21682    builtin and then its argument prototype would still apply.  */
21683 #ifdef __cplusplus
21684 extern "C"
21685 #endif
21686 char SQLDriverConnect ();
21687 int
21688 main ()
21689 {
21690 return SQLDriverConnect ();
21691   ;
21692   return 0;
21693 }
21694 _ACEOF
21695 if ac_fn_c_try_link "$LINENO"; then :
21696   ac_cv_lib_odbc_SQLDriverConnect=yes
21697 else
21698   ac_cv_lib_odbc_SQLDriverConnect=no
21699 fi
21700 rm -f core conftest.err conftest.$ac_objext \
21701     conftest$ac_exeext conftest.$ac_ext
21702 LIBS=$ac_check_lib_save_LIBS
21703 fi
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21705 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21706 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = x""yes; then :
21707   have_odbc=yes
21708 else
21709   have_odbc=no
21710 fi
21711
21712                                 if test $have_odbc = yes ; then
21713                                         ol_link_sql="-lodbc"
21714                                 fi
21715                                 ;;
21716
21717                         odbc32)
21718                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21719 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21720 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then :
21721   $as_echo_n "(cached) " >&6
21722 else
21723   ac_check_lib_save_LIBS=$LIBS
21724 LIBS="-lodbc32  $LIBS"
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h.  */
21727
21728 /* Override any GCC internal prototype to avoid an error.
21729    Use char because int might match the return type of a GCC
21730    builtin and then its argument prototype would still apply.  */
21731 #ifdef __cplusplus
21732 extern "C"
21733 #endif
21734 char SQLDriverConnect ();
21735 int
21736 main ()
21737 {
21738 return SQLDriverConnect ();
21739   ;
21740   return 0;
21741 }
21742 _ACEOF
21743 if ac_fn_c_try_link "$LINENO"; then :
21744   ac_cv_lib_odbc32_SQLDriverConnect=yes
21745 else
21746   ac_cv_lib_odbc32_SQLDriverConnect=no
21747 fi
21748 rm -f core conftest.err conftest.$ac_objext \
21749     conftest$ac_exeext conftest.$ac_ext
21750 LIBS=$ac_check_lib_save_LIBS
21751 fi
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21753 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21754 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = x""yes; then :
21755   have_odbc32=yes
21756 else
21757   have_odbc32=no
21758 fi
21759
21760
21761                                                                 if test $have_odbc32 = no ; then
21762                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21763 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21764                                         save_LIBS="$LIBS"
21765                                         LIBS="$LIBS -lodbc32"
21766                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767 /* end confdefs.h.  */
21768 #include <windows.h>
21769                                         #include <sqlext.h>
21770
21771 int
21772 main ()
21773 {
21774
21775                                                 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21776
21777   ;
21778   return 0;
21779 }
21780 _ACEOF
21781 if ac_fn_c_try_link "$LINENO"; then :
21782   have_odbc32=yes
21783 else
21784   have_odbc32=no
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext \
21787     conftest$ac_exeext conftest.$ac_ext
21788                                         LIBS="$save_LIBS"
21789                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21790 $as_echo "$have_odbc32" >&6; }
21791                                 fi
21792
21793                                 if test $have_odbc32 = yes ; then
21794                                         ol_link_sql="-lodbc32"
21795                                 fi
21796                                 ;;
21797
21798                         *)
21799                                 as_fn_error "unknown ODBC library" "$LINENO" 5
21800                                 ;;
21801                         esac
21802                 fi
21803         done
21804
21805         LIBS="$sql_LIBS"
21806
21807         if test $ol_link_sql != no ; then
21808                 SLAPD_SQL_LIBS="$ol_link_sql"
21809
21810         elif test $ol_enable_sql != auto ; then
21811                 as_fn_error "could not locate suitable ODBC library" "$LINENO" 5
21812         fi
21813 fi
21814
21815 ol_link_ndb=no
21816 if test $ol_enable_ndb != no ; then
21817         # Extract the first word of "mysql_config", so it can be a program name with args.
21818 set dummy mysql_config; ac_word=$2
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21820 $as_echo_n "checking for $ac_word... " >&6; }
21821 if test "${ac_cv_prog_MYSQL+set}" = set; then :
21822   $as_echo_n "(cached) " >&6
21823 else
21824   if test -n "$MYSQL"; then
21825   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21826 else
21827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21828 for as_dir in $PATH
21829 do
21830   IFS=$as_save_IFS
21831   test -z "$as_dir" && as_dir=.
21832     for ac_exec_ext in '' $ac_executable_extensions; do
21833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21834     ac_cv_prog_MYSQL="yes"
21835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21836     break 2
21837   fi
21838 done
21839   done
21840 IFS=$as_save_IFS
21841
21842 fi
21843 fi
21844 MYSQL=$ac_cv_prog_MYSQL
21845 if test -n "$MYSQL"; then
21846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21847 $as_echo "$MYSQL" >&6; }
21848 else
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851 fi
21852
21853
21854         if test "$MYSQL" != yes ; then
21855                 as_fn_error "could not locate mysql_config" "$LINENO" 5
21856         fi
21857
21858         SQL_INC=`mysql_config --include`
21859         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21860
21861         save_CPPFLAGS="$CPPFLAGS"
21862         CPPFLAGS="$SLAPD_NDB_INCS"
21863         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21864 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21865         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21866 /* end confdefs.h.  */
21867 #include <NdbApi.hpp>
21868 _ACEOF
21869 if ac_fn_c_try_cpp "$LINENO"; then :
21870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21871 $as_echo "yes" >&6; }
21872 else
21873   as_fn_error "could not locate NdbApi headers" "$LINENO" 5
21874
21875 fi
21876 rm -f conftest.err conftest.$ac_ext
21877         CPPFLAGS="$save_CPPFLAGS"
21878
21879         SQL_LIB=`mysql_config --libs_r`
21880         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21881
21882         save_LDFLAGS="$LDFLAGS"
21883         save_LIBS="$LIBS"
21884         LDFLAGS="$SQL_LIB"
21885         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21886 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21887 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then :
21888   $as_echo_n "(cached) " >&6
21889 else
21890   ac_check_lib_save_LIBS=$LIBS
21891 LIBS="-lndbclient -lstdc++ $LIBS"
21892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21893 /* end confdefs.h.  */
21894
21895 /* Override any GCC internal prototype to avoid an error.
21896    Use char because int might match the return type of a GCC
21897    builtin and then its argument prototype would still apply.  */
21898 #ifdef __cplusplus
21899 extern "C"
21900 #endif
21901 char ndb_init ();
21902 int
21903 main ()
21904 {
21905 return ndb_init ();
21906   ;
21907   return 0;
21908 }
21909 _ACEOF
21910 if ac_fn_c_try_link "$LINENO"; then :
21911   ac_cv_lib_ndbclient_ndb_init=yes
21912 else
21913   ac_cv_lib_ndbclient_ndb_init=no
21914 fi
21915 rm -f core conftest.err conftest.$ac_objext \
21916     conftest$ac_exeext conftest.$ac_ext
21917 LIBS=$ac_check_lib_save_LIBS
21918 fi
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
21920 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
21921 if test "x$ac_cv_lib_ndbclient_ndb_init" = x""yes; then :
21922   : ok
21923 else
21924
21925                 as_fn_error "could not locate ndbclient library" "$LINENO" 5
21926
21927 fi
21928
21929         LIBS="$save_LIBS"
21930         LDFLAGS="$save_LDFLAGS"
21931
21932         if test "$ol_enable_ndb" = yes ; then
21933                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
21934         fi
21935 fi
21936
21937 ol_icu=no
21938 for ac_header in unicode/utypes.h
21939 do :
21940   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21942 eval as_val=\$$as_ac_Header
21943    if test "x$as_val" = x""yes; then :
21944   cat >>confdefs.h <<_ACEOF
21945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21946 _ACEOF
21947
21948 fi
21949
21950 done
21951
21952 if test $ac_cv_header_unicode_utypes_h = yes ; then
21953                 OL_ICULIBS="-licuuc -licudata"
21954
21955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
21956 $as_echo_n "checking for ICU libraries... " >&6; }
21957 if test "${ol_cv_lib_icu+set}" = set; then :
21958   $as_echo_n "(cached) " >&6
21959 else
21960
21961                 ol_LIBS="$LIBS"
21962                 LIBS="$OL_ICULIBS $LIBS"
21963                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21964 /* end confdefs.h.  */
21965
21966 #include <unicode/utypes.h>
21967
21968 int
21969 main ()
21970 {
21971
21972 (void) u_errorName(0);
21973
21974   ;
21975   return 0;
21976 }
21977 _ACEOF
21978 if ac_fn_c_try_link "$LINENO"; then :
21979   ol_cv_lib_icu=yes
21980 else
21981   ol_cv_lib_icu=no
21982 fi
21983 rm -f core conftest.err conftest.$ac_objext \
21984     conftest$ac_exeext conftest.$ac_ext
21985                 LIBS="$ol_LIBS"
21986
21987 fi
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
21989 $as_echo "$ol_cv_lib_icu" >&6; }
21990
21991         if test $ol_cv_lib_icu != no ; then
21992                 ol_icu="$OL_ICULIBS"
21993
21994 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21995
21996         fi
21997 fi
21998
21999 if test "$ol_icu" = no ; then
22000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
22001 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22002 else
22003         ICU_LIBS="$ol_icu"
22004 fi
22005 WITH_SASL=no
22006 ol_link_sasl=no
22007 ol_link_spasswd=no
22008 if test $ol_with_cyrus_sasl != no ; then
22009         for ac_header in sasl/sasl.h sasl.h
22010 do :
22011   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22012 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22013 eval as_val=\$$as_ac_Header
22014    if test "x$as_val" = x""yes; then :
22015   cat >>confdefs.h <<_ACEOF
22016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22017 _ACEOF
22018
22019 fi
22020
22021 done
22022
22023
22024         if test $ac_cv_header_sasl_sasl_h = yes ||
22025            test $ac_cv_header_sasl_h = yes; then
22026                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22027 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22028 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then :
22029   $as_echo_n "(cached) " >&6
22030 else
22031   ac_check_lib_save_LIBS=$LIBS
22032 LIBS="-lsasl2  $LIBS"
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h.  */
22035
22036 /* Override any GCC internal prototype to avoid an error.
22037    Use char because int might match the return type of a GCC
22038    builtin and then its argument prototype would still apply.  */
22039 #ifdef __cplusplus
22040 extern "C"
22041 #endif
22042 char sasl_client_init ();
22043 int
22044 main ()
22045 {
22046 return sasl_client_init ();
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 if ac_fn_c_try_link "$LINENO"; then :
22052   ac_cv_lib_sasl2_sasl_client_init=yes
22053 else
22054   ac_cv_lib_sasl2_sasl_client_init=no
22055 fi
22056 rm -f core conftest.err conftest.$ac_objext \
22057     conftest$ac_exeext conftest.$ac_ext
22058 LIBS=$ac_check_lib_save_LIBS
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22061 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22062 if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then :
22063   ol_link_sasl="-lsasl2"
22064 else
22065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22066 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22067 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then :
22068   $as_echo_n "(cached) " >&6
22069 else
22070   ac_check_lib_save_LIBS=$LIBS
22071 LIBS="-lsasl  $LIBS"
22072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22073 /* end confdefs.h.  */
22074
22075 /* Override any GCC internal prototype to avoid an error.
22076    Use char because int might match the return type of a GCC
22077    builtin and then its argument prototype would still apply.  */
22078 #ifdef __cplusplus
22079 extern "C"
22080 #endif
22081 char sasl_client_init ();
22082 int
22083 main ()
22084 {
22085 return sasl_client_init ();
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 if ac_fn_c_try_link "$LINENO"; then :
22091   ac_cv_lib_sasl_sasl_client_init=yes
22092 else
22093   ac_cv_lib_sasl_sasl_client_init=no
22094 fi
22095 rm -f core conftest.err conftest.$ac_objext \
22096     conftest$ac_exeext conftest.$ac_ext
22097 LIBS=$ac_check_lib_save_LIBS
22098 fi
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22100 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22101 if test "x$ac_cv_lib_sasl_sasl_client_init" = x""yes; then :
22102   ol_link_sasl="-lsasl"
22103 fi
22104
22105 fi
22106
22107         fi
22108
22109         if test $ol_link_sasl = no ; then
22110                 if test $ol_with_cyrus_sasl != auto ; then
22111                         as_fn_error "Could not locate Cyrus SASL" "$LINENO" 5
22112                 else
22113                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22114 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22115                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22116 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22117                         if test $ol_link_tls = no ; then
22118                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22119 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22120                         fi
22121                 fi
22122         else
22123                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22124 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22125 if test "${ol_cv_sasl_compat+set}" = set; then :
22126   $as_echo_n "(cached) " >&6
22127 else
22128
22129         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h.  */
22131
22132 #ifdef HAVE_SASL_SASL_H
22133 #include <sasl/sasl.h>
22134 #else
22135 #include <sasl.h>
22136 #endif
22137
22138 /* Require 2.1.15+ */
22139 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
22140         char *__sasl_compat = "2.2+ or better okay (we guess)";
22141 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
22142         && SASL_VERSION_STEP >=15
22143         char *__sasl_compat = "2.1.15+ or better okay";
22144 #endif
22145
22146 _ACEOF
22147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22148   $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22149   ol_cv_sasl_compat=yes
22150 else
22151   ol_cv_sasl_compat=no
22152 fi
22153 rm -f conftest*
22154
22155 fi
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22157 $as_echo "$ol_cv_sasl_compat" >&6; }
22158
22159                 if test $ol_cv_sasl_compat = no ; then
22160                         ol_link_sasl=no
22161                         as_fn_error "Cyrus SASL library located but is incompatible" "$LINENO" 5
22162                 fi
22163
22164
22165 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22166
22167                 SASL_LIBS="$ol_link_sasl"
22168                 if test $ol_enable_spasswd != no ; then
22169                         ol_link_spasswd=yes
22170                 fi
22171
22172                 ac_save_LIBS="$LIBS"
22173                 LIBS="$LIBS $ol_link_sasl"
22174                 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22175 if test "x$ac_cv_func_sasl_version" = x""yes; then :
22176
22177 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22178
22179 fi
22180
22181                 LIBS="$ac_save_LIBS"
22182
22183                 WITH_SASL=yes
22184         fi
22185
22186 else
22187         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22188 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22189         if test $ol_link_tls = no ; then
22190                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22191 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22192         fi
22193 fi
22194
22195 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22196         dev=no
22197         if test -r /dev/urandom ; then
22198                 dev="/dev/urandom";
22199         elif test -r /idev/urandom ; then
22200                 dev="/idev/urandom";
22201         elif test -r /dev/srandom ; then
22202                 dev="/dev/srandom";
22203         elif test -r /dev/random ; then
22204                 dev="/dev/random";
22205         elif test -r /idev/random ; then
22206                 dev="/idev/random";
22207         fi
22208
22209         if test $dev != no ; then
22210
22211 cat >>confdefs.h <<_ACEOF
22212 #define URANDOM_DEVICE "$dev"
22213 _ACEOF
22214
22215         fi
22216 fi
22217
22218 ol_link_fetch=no
22219 if test $ol_with_fetch != no ; then
22220         ol_LIBS=$LIBS
22221 LIBS="-lfetch -lcom_err $LIBS"
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22223 $as_echo_n "checking fetch(3) library... " >&6; }
22224 if test "${ol_cv_lib_fetch+set}" = set; then :
22225   $as_echo_n "(cached) " >&6
22226 else
22227
22228         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h.  */
22230
22231 #ifdef HAVE_SYS_PARAM_H
22232 #include <sys/param.h>
22233 #endif
22234 #include <stdio.h>
22235 #include <fetch.h>
22236 int
22237 main ()
22238 {
22239 struct url *u = fetchParseURL("file:///");
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 if ac_fn_c_try_link "$LINENO"; then :
22245   ol_cv_lib_fetch=yes
22246 else
22247   ol_cv_lib_fetch=no
22248 fi
22249 rm -f core conftest.err conftest.$ac_objext \
22250     conftest$ac_exeext conftest.$ac_ext
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22253 $as_echo "$ol_cv_lib_fetch" >&6; }
22254 LIBS=$ol_LIBS
22255 if test $ol_cv_lib_fetch != no ; then
22256         ol_link_fetch="-lfetch -lcom_err"
22257
22258 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22259
22260 fi
22261
22262
22263         if test $ol_cv_lib_fetch != no ; then
22264                 LIBS="$LIBS $ol_link_fetch"
22265                 ol_link_fetch=freebsd
22266
22267         elif test $ol_with_fetch != auto ; then
22268                 as_fn_error "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22269         fi
22270 fi
22271
22272 if test $ol_enable_crypt != no ; then
22273         save_LIBS="$LIBS"
22274         LIBS="$TLS_LIBS $LIBS"
22275
22276         ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22277 if test "x$ac_cv_func_crypt" = x""yes; then :
22278   have_crypt=yes
22279 else
22280
22281                 LIBS="$save_LIBS"
22282                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22283 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22284 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22285   $as_echo_n "(cached) " >&6
22286 else
22287   ac_check_lib_save_LIBS=$LIBS
22288 LIBS="-lcrypt  $LIBS"
22289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22290 /* end confdefs.h.  */
22291
22292 /* Override any GCC internal prototype to avoid an error.
22293    Use char because int might match the return type of a GCC
22294    builtin and then its argument prototype would still apply.  */
22295 #ifdef __cplusplus
22296 extern "C"
22297 #endif
22298 char crypt ();
22299 int
22300 main ()
22301 {
22302 return crypt ();
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 if ac_fn_c_try_link "$LINENO"; then :
22308   ac_cv_lib_crypt_crypt=yes
22309 else
22310   ac_cv_lib_crypt_crypt=no
22311 fi
22312 rm -f core conftest.err conftest.$ac_objext \
22313     conftest$ac_exeext conftest.$ac_ext
22314 LIBS=$ac_check_lib_save_LIBS
22315 fi
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22317 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22318 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22319   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22320                         have_crypt=yes
22321 else
22322   have_crypt=no
22323 fi
22324
22325 fi
22326
22327
22328         LIBS="$save_LIBS"
22329
22330         if test $have_crypt = yes ; then
22331
22332 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22333
22334         else
22335                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22336 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22337                 if test $ol_enable_crypt = yes ; then
22338                         as_fn_error "could not find crypt, select appropriate options or disable" "$LINENO" 5
22339                 fi
22340
22341                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22342 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22343                 ol_enable_crypt=no
22344         fi
22345 fi
22346
22347 if test $ol_enable_proctitle != no ; then
22348         ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22349 if test "x$ac_cv_func_setproctitle" = x""yes; then :
22350   have_setproctitle=yes
22351 else
22352
22353                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22354 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22355 if test "${ac_cv_lib_util_setproctitle+set}" = set; then :
22356   $as_echo_n "(cached) " >&6
22357 else
22358   ac_check_lib_save_LIBS=$LIBS
22359 LIBS="-lutil  $LIBS"
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h.  */
22362
22363 /* Override any GCC internal prototype to avoid an error.
22364    Use char because int might match the return type of a GCC
22365    builtin and then its argument prototype would still apply.  */
22366 #ifdef __cplusplus
22367 extern "C"
22368 #endif
22369 char setproctitle ();
22370 int
22371 main ()
22372 {
22373 return setproctitle ();
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 if ac_fn_c_try_link "$LINENO"; then :
22379   ac_cv_lib_util_setproctitle=yes
22380 else
22381   ac_cv_lib_util_setproctitle=no
22382 fi
22383 rm -f core conftest.err conftest.$ac_objext \
22384     conftest$ac_exeext conftest.$ac_ext
22385 LIBS=$ac_check_lib_save_LIBS
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22388 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22389 if test "x$ac_cv_lib_util_setproctitle" = x""yes; then :
22390   have_setproctitle=yes
22391                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
22392 else
22393   have_setproctitle=no
22394                         case " $LIBOBJS " in
22395   *" setproctitle.$ac_objext "* ) ;;
22396   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22397  ;;
22398 esac
22399
22400                         LIBSRCS="$LIBSRCS setproctitle.c"
22401 fi
22402
22403 fi
22404
22405
22406         if test $have_setproctitle = yes ; then
22407
22408 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22409
22410         fi
22411 fi
22412
22413 if test $ol_enable_slp != no ; then
22414         for ac_header in slp.h
22415 do :
22416   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22418 eval as_val=\$$as_ac_Header
22419    if test "x$as_val" = x""yes; then :
22420   cat >>confdefs.h <<_ACEOF
22421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22422 _ACEOF
22423
22424 fi
22425
22426 done
22427
22428
22429         if test $ac_cv_header_slp_h = yes ; then
22430                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22431 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22432 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
22433   $as_echo_n "(cached) " >&6
22434 else
22435   ac_check_lib_save_LIBS=$LIBS
22436 LIBS="-lslp  $LIBS"
22437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22438 /* end confdefs.h.  */
22439
22440 /* Override any GCC internal prototype to avoid an error.
22441    Use char because int might match the return type of a GCC
22442    builtin and then its argument prototype would still apply.  */
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char SLPOpen ();
22447 int
22448 main ()
22449 {
22450 return SLPOpen ();
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 if ac_fn_c_try_link "$LINENO"; then :
22456   ac_cv_lib_slp_SLPOpen=yes
22457 else
22458   ac_cv_lib_slp_SLPOpen=no
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext \
22461     conftest$ac_exeext conftest.$ac_ext
22462 LIBS=$ac_check_lib_save_LIBS
22463 fi
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22465 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22466 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
22467   have_slp=yes
22468 else
22469   have_slp=no
22470 fi
22471
22472                 if test $have_slp = yes ; then
22473
22474 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22475
22476                         SLAPD_SLP_LIBS=-lslp
22477                 fi
22478
22479         elif test $ol_enable_slp = yes ; then
22480                 as_fn_error "SLP not found" "$LINENO" 5
22481         fi
22482 fi
22483
22484
22485 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22486 if test "x$ac_cv_type_mode_t" = x""yes; then :
22487
22488 else
22489
22490 cat >>confdefs.h <<_ACEOF
22491 #define mode_t int
22492 _ACEOF
22493
22494 fi
22495
22496 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22497 if test "x$ac_cv_type_off_t" = x""yes; then :
22498
22499 else
22500
22501 cat >>confdefs.h <<_ACEOF
22502 #define off_t long
22503 _ACEOF
22504
22505 fi
22506
22507 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22508 if test "x$ac_cv_type_pid_t" = x""yes; then :
22509
22510 else
22511
22512 cat >>confdefs.h <<_ACEOF
22513 #define pid_t int
22514 _ACEOF
22515
22516 fi
22517
22518 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22519 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22520
22521 else
22522
22523 cat >>confdefs.h <<_ACEOF
22524 #define ssize_t signed int
22525 _ACEOF
22526
22527 fi
22528
22529 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22530 if test "x$ac_cv_type_caddr_t" = x""yes; then :
22531
22532 else
22533
22534 cat >>confdefs.h <<_ACEOF
22535 #define caddr_t char *
22536 _ACEOF
22537
22538 fi
22539
22540 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22541 if test "x$ac_cv_type_size_t" = x""yes; then :
22542
22543 else
22544
22545 cat >>confdefs.h <<_ACEOF
22546 #define size_t unsigned
22547 _ACEOF
22548
22549 fi
22550
22551
22552 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22553 if test "x$ac_cv_type_long_long" = x""yes; then :
22554
22555 cat >>confdefs.h <<_ACEOF
22556 #define HAVE_LONG_LONG 1
22557 _ACEOF
22558
22559
22560 fi
22561
22562 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22563 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
22564
22565 cat >>confdefs.h <<_ACEOF
22566 #define HAVE_PTRDIFF_T 1
22567 _ACEOF
22568
22569
22570 fi
22571
22572
22573
22574 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22575 #ifdef HAVE_SYS_SOCKET_H
22576 #include <sys/socket.h>
22577 #endif
22578 "
22579 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22580
22581 fi
22582
22583
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22585 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22586 if test "${ol_cv_type_ber_socklen_t+set}" = set; then :
22587   $as_echo_n "(cached) " >&6
22588 else
22589
22590         set socklen_t int unsigned "unsigned long" long size_t
22591         test "$ac_cv_type_socklen_t" = yes || shift
22592         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22593         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22594                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22595 /* end confdefs.h.  */
22596 $ac_includes_default
22597 #ifdef HAVE_SYS_SOCKET_H
22598 #include <sys/socket.h>
22599 #endif
22600 extern int accept(int s, $addrtype *ap, $lentype *lp);
22601
22602 int
22603 main ()
22604 {
22605
22606 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22607
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 if ac_fn_c_try_compile "$LINENO"; then :
22613   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22614 fi
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616         done ; done
22617 fi
22618
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22620 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22621
22622 cat >>confdefs.h <<_ACEOF
22623 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22624 _ACEOF
22625
22626
22627 if test "$ac_cv_type_socklen_t" != yes; then
22628
22629 cat >>confdefs.h <<_ACEOF
22630 #define socklen_t $ol_cv_type_ber_socklen_t
22631 _ACEOF
22632
22633 fi
22634
22635
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22637 $as_echo_n "checking return type of signal handlers... " >&6; }
22638 if test "${ac_cv_type_signal+set}" = set; then :
22639   $as_echo_n "(cached) " >&6
22640 else
22641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22642 /* end confdefs.h.  */
22643 #include <sys/types.h>
22644 #include <signal.h>
22645
22646 int
22647 main ()
22648 {
22649 return *(signal (0, 0)) (0) == 1;
22650   ;
22651   return 0;
22652 }
22653 _ACEOF
22654 if ac_fn_c_try_compile "$LINENO"; then :
22655   ac_cv_type_signal=int
22656 else
22657   ac_cv_type_signal=void
22658 fi
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22660 fi
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22662 $as_echo "$ac_cv_type_signal" >&6; }
22663
22664 cat >>confdefs.h <<_ACEOF
22665 #define RETSIGTYPE $ac_cv_type_signal
22666 _ACEOF
22667
22668
22669
22670 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22671 #include <signal.h>
22672
22673 "
22674 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
22675
22676 else
22677
22678 cat >>confdefs.h <<_ACEOF
22679 #define sig_atomic_t int
22680 _ACEOF
22681
22682 fi
22683
22684
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22686 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22687 if test "${ac_cv_type_uid_t+set}" = set; then :
22688   $as_echo_n "(cached) " >&6
22689 else
22690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691 /* end confdefs.h.  */
22692 #include <sys/types.h>
22693
22694 _ACEOF
22695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22696   $EGREP "uid_t" >/dev/null 2>&1; then :
22697   ac_cv_type_uid_t=yes
22698 else
22699   ac_cv_type_uid_t=no
22700 fi
22701 rm -f conftest*
22702
22703 fi
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22705 $as_echo "$ac_cv_type_uid_t" >&6; }
22706 if test $ac_cv_type_uid_t = no; then
22707
22708 $as_echo "#define uid_t int" >>confdefs.h
22709
22710
22711 $as_echo "#define gid_t int" >>confdefs.h
22712
22713 fi
22714
22715
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22717 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22718 if test "${ac_cv_header_time+set}" = set; then :
22719   $as_echo_n "(cached) " >&6
22720 else
22721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722 /* end confdefs.h.  */
22723 #include <sys/types.h>
22724 #include <sys/time.h>
22725 #include <time.h>
22726
22727 int
22728 main ()
22729 {
22730 if ((struct tm *) 0)
22731 return 0;
22732   ;
22733   return 0;
22734 }
22735 _ACEOF
22736 if ac_fn_c_try_compile "$LINENO"; then :
22737   ac_cv_header_time=yes
22738 else
22739   ac_cv_header_time=no
22740 fi
22741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742 fi
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22744 $as_echo "$ac_cv_header_time" >&6; }
22745 if test $ac_cv_header_time = yes; then
22746
22747 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22748
22749 fi
22750
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22752 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22753 if test "${ac_cv_struct_tm+set}" = set; then :
22754   $as_echo_n "(cached) " >&6
22755 else
22756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22757 /* end confdefs.h.  */
22758 #include <sys/types.h>
22759 #include <time.h>
22760
22761 int
22762 main ()
22763 {
22764 struct tm tm;
22765                                      int *p = &tm.tm_sec;
22766                                      return !p;
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 if ac_fn_c_try_compile "$LINENO"; then :
22772   ac_cv_struct_tm=time.h
22773 else
22774   ac_cv_struct_tm=sys/time.h
22775 fi
22776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 fi
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22779 $as_echo "$ac_cv_struct_tm" >&6; }
22780 if test $ac_cv_struct_tm = sys/time.h; then
22781
22782 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22783
22784 fi
22785
22786 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22787 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
22788
22789 cat >>confdefs.h <<_ACEOF
22790 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22791 _ACEOF
22792
22793
22794 fi
22795
22796 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
22797 #include <pwd.h>
22798 "
22799 if test "x$ac_cv_member_struct_passwd_pw_gecos" = x""yes; then :
22800
22801 cat >>confdefs.h <<_ACEOF
22802 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
22803 _ACEOF
22804
22805
22806 fi
22807
22808 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
22809 #include <pwd.h>
22810 "
22811 if test "x$ac_cv_member_struct_passwd_pw_passwd" = x""yes; then :
22812
22813 cat >>confdefs.h <<_ACEOF
22814 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
22815 _ACEOF
22816
22817
22818 fi
22819
22820
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
22822 $as_echo_n "checking if toupper() requires islower()... " >&6; }
22823 if test "${ol_cv_c_upper_lower+set}" = set; then :
22824   $as_echo_n "(cached) " >&6
22825 else
22826
22827         if test "$cross_compiling" = yes; then :
22828   ol_cv_c_upper_lower=safe
22829 else
22830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h.  */
22832
22833 #include <ctype.h>
22834 main()
22835 {
22836         if ('C' == toupper('C'))
22837                 exit(0);
22838         else
22839                 exit(1);
22840 }
22841 _ACEOF
22842 if ac_fn_c_try_run "$LINENO"; then :
22843   ol_cv_c_upper_lower=no
22844 else
22845   ol_cv_c_upper_lower=yes
22846 fi
22847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22848   conftest.$ac_objext conftest.beam conftest.$ac_ext
22849 fi
22850
22851 fi
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
22853 $as_echo "$ol_cv_c_upper_lower" >&6; }
22854 if test $ol_cv_c_upper_lower != no ; then
22855
22856 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
22857
22858 fi
22859
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22861 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22862 if test "${ac_cv_c_const+set}" = set; then :
22863   $as_echo_n "(cached) " >&6
22864 else
22865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h.  */
22867
22868 int
22869 main ()
22870 {
22871 /* FIXME: Include the comments suggested by Paul. */
22872 #ifndef __cplusplus
22873   /* Ultrix mips cc rejects this.  */
22874   typedef int charset[2];
22875   const charset cs;
22876   /* SunOS 4.1.1 cc rejects this.  */
22877   char const *const *pcpcc;
22878   char **ppc;
22879   /* NEC SVR4.0.2 mips cc rejects this.  */
22880   struct point {int x, y;};
22881   static struct point const zero = {0,0};
22882   /* AIX XL C 1.02.0.0 rejects this.
22883      It does not let you subtract one const X* pointer from another in
22884      an arm of an if-expression whose if-part is not a constant
22885      expression */
22886   const char *g = "string";
22887   pcpcc = &g + (g ? g-g : 0);
22888   /* HPUX 7.0 cc rejects these. */
22889   ++pcpcc;
22890   ppc = (char**) pcpcc;
22891   pcpcc = (char const *const *) ppc;
22892   { /* SCO 3.2v4 cc rejects this.  */
22893     char *t;
22894     char const *s = 0 ? (char *) 0 : (char const *) 0;
22895
22896     *t++ = 0;
22897     if (s) return 0;
22898   }
22899   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22900     int x[] = {25, 17};
22901     const int *foo = &x[0];
22902     ++foo;
22903   }
22904   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22905     typedef const int *iptr;
22906     iptr p = 0;
22907     ++p;
22908   }
22909   { /* AIX XL C 1.02.0.0 rejects this saying
22910        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22911     struct s { int j; const int *ap[3]; };
22912     struct s *b; b->j = 5;
22913   }
22914   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22915     const int foo = 10;
22916     if (!foo) return 0;
22917   }
22918   return !cs[0] && !zero.x;
22919 #endif
22920
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 if ac_fn_c_try_compile "$LINENO"; then :
22926   ac_cv_c_const=yes
22927 else
22928   ac_cv_c_const=no
22929 fi
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 fi
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22933 $as_echo "$ac_cv_c_const" >&6; }
22934 if test $ac_cv_c_const = no; then
22935
22936 $as_echo "#define const /**/" >>confdefs.h
22937
22938 fi
22939
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
22941 $as_echo_n "checking if compiler understands volatile... " >&6; }
22942 if test "${ol_cv_c_volatile+set}" = set; then :
22943   $as_echo_n "(cached) " >&6
22944 else
22945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22946 /* end confdefs.h.  */
22947 int x, y, z;
22948 int
22949 main ()
22950 {
22951 volatile int a; int * volatile b = x ? &y : &z;
22952       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22953       *b = 0;
22954   ;
22955   return 0;
22956 }
22957 _ACEOF
22958 if ac_fn_c_try_compile "$LINENO"; then :
22959   ol_cv_c_volatile=yes
22960 else
22961   ol_cv_c_volatile=no
22962 fi
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 fi
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
22966 $as_echo "$ol_cv_c_volatile" >&6; }
22967   if test $ol_cv_c_volatile = yes; then
22968     :
22969   else
22970
22971 $as_echo "#define volatile /**/" >>confdefs.h
22972
22973   fi
22974
22975
22976 if test $cross_compiling = yes ; then
22977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
22978 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
22979
22980 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
22981
22982 else
22983          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22984 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22985 if test "${ac_cv_c_bigendian+set}" = set; then :
22986   $as_echo_n "(cached) " >&6
22987 else
22988   ac_cv_c_bigendian=unknown
22989     # See if we're dealing with a universal compiler.
22990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22991 /* end confdefs.h.  */
22992 #ifndef __APPLE_CC__
22993                not a universal capable compiler
22994              #endif
22995              typedef int dummy;
22996
22997 _ACEOF
22998 if ac_fn_c_try_compile "$LINENO"; then :
22999
23000         # Check for potential -arch flags.  It is not universal unless
23001         # there are at least two -arch flags with different values.
23002         ac_arch=
23003         ac_prev=
23004         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23005          if test -n "$ac_prev"; then
23006            case $ac_word in
23007              i?86 | x86_64 | ppc | ppc64)
23008                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23009                  ac_arch=$ac_word
23010                else
23011                  ac_cv_c_bigendian=universal
23012                  break
23013                fi
23014                ;;
23015            esac
23016            ac_prev=
23017          elif test "x$ac_word" = "x-arch"; then
23018            ac_prev=arch
23019          fi
23020        done
23021 fi
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023     if test $ac_cv_c_bigendian = unknown; then
23024       # See if sys/param.h defines the BYTE_ORDER macro.
23025       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h.  */
23027 #include <sys/types.h>
23028              #include <sys/param.h>
23029
23030 int
23031 main ()
23032 {
23033 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23034                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23035                      && LITTLE_ENDIAN)
23036               bogus endian macros
23037              #endif
23038
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 if ac_fn_c_try_compile "$LINENO"; then :
23044   # It does; now see whether it defined to BIG_ENDIAN or not.
23045          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h.  */
23047 #include <sys/types.h>
23048                 #include <sys/param.h>
23049
23050 int
23051 main ()
23052 {
23053 #if BYTE_ORDER != BIG_ENDIAN
23054                  not big endian
23055                 #endif
23056
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 if ac_fn_c_try_compile "$LINENO"; then :
23062   ac_cv_c_bigendian=yes
23063 else
23064   ac_cv_c_bigendian=no
23065 fi
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 fi
23068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069     fi
23070     if test $ac_cv_c_bigendian = unknown; then
23071       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23072       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h.  */
23074 #include <limits.h>
23075
23076 int
23077 main ()
23078 {
23079 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23080               bogus endian macros
23081              #endif
23082
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 if ac_fn_c_try_compile "$LINENO"; then :
23088   # It does; now see whether it defined to _BIG_ENDIAN or not.
23089          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h.  */
23091 #include <limits.h>
23092
23093 int
23094 main ()
23095 {
23096 #ifndef _BIG_ENDIAN
23097                  not big endian
23098                 #endif
23099
23100   ;
23101   return 0;
23102 }
23103 _ACEOF
23104 if ac_fn_c_try_compile "$LINENO"; then :
23105   ac_cv_c_bigendian=yes
23106 else
23107   ac_cv_c_bigendian=no
23108 fi
23109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23110 fi
23111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112     fi
23113     if test $ac_cv_c_bigendian = unknown; then
23114       # Compile a test program.
23115       if test "$cross_compiling" = yes; then :
23116   # Try to guess by grepping values from an object file.
23117          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h.  */
23119 short int ascii_mm[] =
23120                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23121                 short int ascii_ii[] =
23122                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23123                 int use_ascii (int i) {
23124                   return ascii_mm[i] + ascii_ii[i];
23125                 }
23126                 short int ebcdic_ii[] =
23127                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23128                 short int ebcdic_mm[] =
23129                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23130                 int use_ebcdic (int i) {
23131                   return ebcdic_mm[i] + ebcdic_ii[i];
23132                 }
23133                 extern int foo;
23134
23135 int
23136 main ()
23137 {
23138 return use_ascii (foo) == use_ebcdic (foo);
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 if ac_fn_c_try_compile "$LINENO"; then :
23144   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23145               ac_cv_c_bigendian=yes
23146             fi
23147             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23148               if test "$ac_cv_c_bigendian" = unknown; then
23149                 ac_cv_c_bigendian=no
23150               else
23151                 # finding both strings is unlikely to happen, but who knows?
23152                 ac_cv_c_bigendian=unknown
23153               fi
23154             fi
23155 fi
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 else
23158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h.  */
23160 $ac_includes_default
23161 int
23162 main ()
23163 {
23164
23165              /* Are we little or big endian?  From Harbison&Steele.  */
23166              union
23167              {
23168                long int l;
23169                char c[sizeof (long int)];
23170              } u;
23171              u.l = 1;
23172              return u.c[sizeof (long int) - 1] == 1;
23173
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 if ac_fn_c_try_run "$LINENO"; then :
23179   ac_cv_c_bigendian=no
23180 else
23181   ac_cv_c_bigendian=yes
23182 fi
23183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23184   conftest.$ac_objext conftest.beam conftest.$ac_ext
23185 fi
23186
23187     fi
23188 fi
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23190 $as_echo "$ac_cv_c_bigendian" >&6; }
23191  case $ac_cv_c_bigendian in #(
23192    yes)
23193      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23194 ;; #(
23195    no)
23196       ;; #(
23197    universal)
23198
23199 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23200
23201      ;; #(
23202    *)
23203      as_fn_error "unknown endianness
23204  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23205  esac
23206
23207 fi
23208
23209 # The cast to long int works around a bug in the HP C Compiler
23210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23212 # This bug is HP SR number 8606223364.
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23214 $as_echo_n "checking size of short... " >&6; }
23215 if test "${ac_cv_sizeof_short+set}" = set; then :
23216   $as_echo_n "(cached) " >&6
23217 else
23218   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23219
23220 else
23221   if test "$ac_cv_type_short" = yes; then
23222      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23224 { as_fn_set_status 77
23225 as_fn_error "cannot compute sizeof (short)
23226 See \`config.log' for more details." "$LINENO" 5; }; }
23227    else
23228      ac_cv_sizeof_short=0
23229    fi
23230 fi
23231
23232 fi
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23234 $as_echo "$ac_cv_sizeof_short" >&6; }
23235
23236
23237
23238 cat >>confdefs.h <<_ACEOF
23239 #define SIZEOF_SHORT $ac_cv_sizeof_short
23240 _ACEOF
23241
23242
23243 # The cast to long int works around a bug in the HP C Compiler
23244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23246 # This bug is HP SR number 8606223364.
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23248 $as_echo_n "checking size of int... " >&6; }
23249 if test "${ac_cv_sizeof_int+set}" = set; then :
23250   $as_echo_n "(cached) " >&6
23251 else
23252   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23253
23254 else
23255   if test "$ac_cv_type_int" = yes; then
23256      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23258 { as_fn_set_status 77
23259 as_fn_error "cannot compute sizeof (int)
23260 See \`config.log' for more details." "$LINENO" 5; }; }
23261    else
23262      ac_cv_sizeof_int=0
23263    fi
23264 fi
23265
23266 fi
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23268 $as_echo "$ac_cv_sizeof_int" >&6; }
23269
23270
23271
23272 cat >>confdefs.h <<_ACEOF
23273 #define SIZEOF_INT $ac_cv_sizeof_int
23274 _ACEOF
23275
23276
23277 # The cast to long int works around a bug in the HP C Compiler
23278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23280 # This bug is HP SR number 8606223364.
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23282 $as_echo_n "checking size of long... " >&6; }
23283 if test "${ac_cv_sizeof_long+set}" = set; then :
23284   $as_echo_n "(cached) " >&6
23285 else
23286   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23287
23288 else
23289   if test "$ac_cv_type_long" = yes; then
23290      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23292 { as_fn_set_status 77
23293 as_fn_error "cannot compute sizeof (long)
23294 See \`config.log' for more details." "$LINENO" 5; }; }
23295    else
23296      ac_cv_sizeof_long=0
23297    fi
23298 fi
23299
23300 fi
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23302 $as_echo "$ac_cv_sizeof_long" >&6; }
23303
23304
23305
23306 cat >>confdefs.h <<_ACEOF
23307 #define SIZEOF_LONG $ac_cv_sizeof_long
23308 _ACEOF
23309
23310
23311 # The cast to long int works around a bug in the HP C Compiler
23312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23314 # This bug is HP SR number 8606223364.
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23316 $as_echo_n "checking size of long long... " >&6; }
23317 if test "${ac_cv_sizeof_long_long+set}" = set; then :
23318   $as_echo_n "(cached) " >&6
23319 else
23320   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23321
23322 else
23323   if test "$ac_cv_type_long_long" = yes; then
23324      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23326 { as_fn_set_status 77
23327 as_fn_error "cannot compute sizeof (long long)
23328 See \`config.log' for more details." "$LINENO" 5; }; }
23329    else
23330      ac_cv_sizeof_long_long=0
23331    fi
23332 fi
23333
23334 fi
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23336 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23337
23338
23339
23340 cat >>confdefs.h <<_ACEOF
23341 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23342 _ACEOF
23343
23344
23345 # The cast to long int works around a bug in the HP C Compiler
23346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23348 # This bug is HP SR number 8606223364.
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23350 $as_echo_n "checking size of wchar_t... " >&6; }
23351 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
23352   $as_echo_n "(cached) " >&6
23353 else
23354   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
23355
23356 else
23357   if test "$ac_cv_type_wchar_t" = yes; then
23358      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23360 { as_fn_set_status 77
23361 as_fn_error "cannot compute sizeof (wchar_t)
23362 See \`config.log' for more details." "$LINENO" 5; }; }
23363    else
23364      ac_cv_sizeof_wchar_t=0
23365    fi
23366 fi
23367
23368 fi
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23370 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23371
23372
23373
23374 cat >>confdefs.h <<_ACEOF
23375 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23376 _ACEOF
23377
23378
23379
23380 if test "$ac_cv_sizeof_int" -lt 4 ; then
23381         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23382 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23383
23384
23385 $as_echo "#define LBER_INT_T long" >>confdefs.h
23386
23387 else
23388
23389 $as_echo "#define LBER_INT_T int" >>confdefs.h
23390
23391 fi
23392
23393
23394 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23395
23396
23397 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23398
23399
23400 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23401
23402
23403 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23404         if test $ac_cv_sizeof_long_long -gt 4 ; then
23405                 ol_with_mp=longlong
23406
23407 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23408
23409         elif test $ol_with_mp = longlong ; then
23410                 as_fn_error "long long unusable for multiple precision" "$LINENO" 5
23411         fi
23412 fi
23413 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23414         if test $ac_cv_sizeof_long -gt 4 ; then
23415                 ol_with_mp=long
23416
23417 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23418
23419         elif test $ol_with_mp = long ; then
23420                 as_fn_error "long unusable for multiple precision" "$LINENO" 5
23421         fi
23422 fi
23423 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23424         for ac_header in openssl/bn.h
23425 do :
23426   ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23427 if test "x$ac_cv_header_openssl_bn_h" = x""yes; then :
23428   cat >>confdefs.h <<_ACEOF
23429 #define HAVE_OPENSSL_BN_H 1
23430 _ACEOF
23431
23432 fi
23433
23434 done
23435
23436         for ac_header in openssl/crypto.h
23437 do :
23438   ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23439 if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
23440   cat >>confdefs.h <<_ACEOF
23441 #define HAVE_OPENSSL_CRYPTO_H 1
23442 _ACEOF
23443
23444 fi
23445
23446 done
23447
23448         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23449                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23450                 test "$ol_with_tls" = "found" ; then
23451                 ol_with_mp=bignum
23452
23453 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23454
23455         elif test $ol_with_mp = bignum ; then
23456                 as_fn_error "bignum not available" "$LINENO" 5
23457         fi
23458 fi
23459 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23460         for ac_header in gmp.h
23461 do :
23462   ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23463 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23464   cat >>confdefs.h <<_ACEOF
23465 #define HAVE_GMP_H 1
23466 _ACEOF
23467
23468 fi
23469
23470 done
23471
23472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23473 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23474 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then :
23475   $as_echo_n "(cached) " >&6
23476 else
23477   ac_check_lib_save_LIBS=$LIBS
23478 LIBS="-lgmp  $LIBS"
23479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23480 /* end confdefs.h.  */
23481
23482 /* Override any GCC internal prototype to avoid an error.
23483    Use char because int might match the return type of a GCC
23484    builtin and then its argument prototype would still apply.  */
23485 #ifdef __cplusplus
23486 extern "C"
23487 #endif
23488 char __gmpz_add_ui ();
23489 int
23490 main ()
23491 {
23492 return __gmpz_add_ui ();
23493   ;
23494   return 0;
23495 }
23496 _ACEOF
23497 if ac_fn_c_try_link "$LINENO"; then :
23498   ac_cv_lib_gmp___gmpz_add_ui=yes
23499 else
23500   ac_cv_lib_gmp___gmpz_add_ui=no
23501 fi
23502 rm -f core conftest.err conftest.$ac_objext \
23503     conftest$ac_exeext conftest.$ac_ext
23504 LIBS=$ac_check_lib_save_LIBS
23505 fi
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23507 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23508 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = x""yes; then :
23509   cat >>confdefs.h <<_ACEOF
23510 #define HAVE_LIBGMP 1
23511 _ACEOF
23512
23513   LIBS="-lgmp $LIBS"
23514
23515 fi
23516
23517         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23518
23519 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23520
23521                 ol_with_mp=gmp
23522         elif test $ol_with_mp = gmp ; then
23523                 as_fn_error "gmp not available" "$LINENO" 5
23524         fi
23525 fi
23526 if test $ol_with_mp = auto ; then
23527         ol_with_mp=no
23528 fi
23529
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23531 $as_echo_n "checking for working memcmp... " >&6; }
23532 if test "${ac_cv_func_memcmp_working+set}" = set; then :
23533   $as_echo_n "(cached) " >&6
23534 else
23535   if test "$cross_compiling" = yes; then :
23536   ac_cv_func_memcmp_working=no
23537 else
23538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539 /* end confdefs.h.  */
23540 $ac_includes_default
23541 int
23542 main ()
23543 {
23544
23545   /* Some versions of memcmp are not 8-bit clean.  */
23546   char c0 = '\100', c1 = '\200', c2 = '\201';
23547   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23548     return 1;
23549
23550   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23551      or more and with at least one buffer not starting on a 4-byte boundary.
23552      William Lewis provided this test program.   */
23553   {
23554     char foo[21];
23555     char bar[21];
23556     int i;
23557     for (i = 0; i < 4; i++)
23558       {
23559         char *a = foo + i;
23560         char *b = bar + i;
23561         strcpy (a, "--------01111111");
23562         strcpy (b, "--------10000000");
23563         if (memcmp (a, b, 16) >= 0)
23564           return 1;
23565       }
23566     return 0;
23567   }
23568
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 if ac_fn_c_try_run "$LINENO"; then :
23574   ac_cv_func_memcmp_working=yes
23575 else
23576   ac_cv_func_memcmp_working=no
23577 fi
23578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23579   conftest.$ac_objext conftest.beam conftest.$ac_ext
23580 fi
23581
23582 fi
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23584 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23585 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23586   *" memcmp.$ac_objext "* ) ;;
23587   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23588  ;;
23589 esac
23590
23591
23592
23593 if test $ac_cv_func_memcmp_working = no ; then
23594
23595 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23596
23597 fi
23598
23599 for ac_func in strftime
23600 do :
23601   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23602 if test "x$ac_cv_func_strftime" = x""yes; then :
23603   cat >>confdefs.h <<_ACEOF
23604 #define HAVE_STRFTIME 1
23605 _ACEOF
23606
23607 else
23608   # strftime is in -lintl on SCO UNIX.
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23610 $as_echo_n "checking for strftime in -lintl... " >&6; }
23611 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
23612   $as_echo_n "(cached) " >&6
23613 else
23614   ac_check_lib_save_LIBS=$LIBS
23615 LIBS="-lintl  $LIBS"
23616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h.  */
23618
23619 /* Override any GCC internal prototype to avoid an error.
23620    Use char because int might match the return type of a GCC
23621    builtin and then its argument prototype would still apply.  */
23622 #ifdef __cplusplus
23623 extern "C"
23624 #endif
23625 char strftime ();
23626 int
23627 main ()
23628 {
23629 return strftime ();
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 if ac_fn_c_try_link "$LINENO"; then :
23635   ac_cv_lib_intl_strftime=yes
23636 else
23637   ac_cv_lib_intl_strftime=no
23638 fi
23639 rm -f core conftest.err conftest.$ac_objext \
23640     conftest$ac_exeext conftest.$ac_ext
23641 LIBS=$ac_check_lib_save_LIBS
23642 fi
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23644 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23645 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
23646   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23647
23648 LIBS="-lintl $LIBS"
23649 fi
23650
23651 fi
23652 done
23653
23654
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23656 $as_echo_n "checking for inet_aton()... " >&6; }
23657 if test "${ol_cv_func_inet_aton+set}" = set; then :
23658   $as_echo_n "(cached) " >&6
23659 else
23660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23661 /* end confdefs.h.  */
23662
23663 #ifdef HAVE_SYS_TYPES_H
23664 #       include <sys/types.h>
23665 #endif
23666 #ifdef HAVE_SYS_SOCKET_H
23667 #       include <sys/socket.h>
23668 #       ifdef HAVE_SYS_SELECT_H
23669 #               include <sys/select.h>
23670 #       endif
23671 #       include <netinet/in.h>
23672 #       ifdef HAVE_ARPA_INET_H
23673 #               include <arpa/inet.h>
23674 #       endif
23675 #endif
23676
23677 int
23678 main ()
23679 {
23680 struct in_addr in;
23681 int rc = inet_aton( "255.255.255.255", &in );
23682   ;
23683   return 0;
23684 }
23685 _ACEOF
23686 if ac_fn_c_try_link "$LINENO"; then :
23687   ol_cv_func_inet_aton=yes
23688 else
23689   ol_cv_func_inet_aton=no
23690 fi
23691 rm -f core conftest.err conftest.$ac_objext \
23692     conftest$ac_exeext conftest.$ac_ext
23693 fi
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23695 $as_echo "$ol_cv_func_inet_aton" >&6; }
23696   if test $ol_cv_func_inet_aton != no; then
23697
23698 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23699
23700   fi
23701
23702
23703 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23704 if test "x$ac_cv_func__spawnlp" = x""yes; then :
23705
23706 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23707
23708 fi
23709
23710
23711 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23712 if test "x$ac_cv_func__snprintf" = x""yes; then :
23713   ac_cv_func_snprintf=yes
23714
23715 $as_echo "#define snprintf _snprintf" >>confdefs.h
23716
23717
23718 fi
23719
23720
23721 for ac_func in vsnprintf _vsnprintf
23722 do :
23723   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23725 eval as_val=\$$as_ac_var
23726    if test "x$as_val" = x""yes; then :
23727   cat >>confdefs.h <<_ACEOF
23728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23729 _ACEOF
23730
23731 fi
23732 done
23733
23734
23735 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23736         ac_cv_func_vsnprintf=yes
23737
23738 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23739
23740 fi
23741
23742 for ac_func in vprintf
23743 do :
23744   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23745 if test "x$ac_cv_func_vprintf" = x""yes; then :
23746   cat >>confdefs.h <<_ACEOF
23747 #define HAVE_VPRINTF 1
23748 _ACEOF
23749
23750 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23751 if test "x$ac_cv_func__doprnt" = x""yes; then :
23752
23753 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23754
23755 fi
23756
23757 fi
23758 done
23759
23760
23761
23762 if test $ac_cv_func_vprintf = yes ; then
23763                 for ac_func in snprintf vsnprintf
23764 do :
23765   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23767 eval as_val=\$$as_ac_var
23768    if test "x$as_val" = x""yes; then :
23769   cat >>confdefs.h <<_ACEOF
23770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23771 _ACEOF
23772
23773 fi
23774 done
23775
23776 fi
23777
23778 for ac_func in \
23779         bcopy                   \
23780         closesocket             \
23781         chroot                  \
23782         endgrent                \
23783         endpwent                \
23784         fcntl                   \
23785         flock                   \
23786         fstat                   \
23787         getdtablesize           \
23788         geteuid                 \
23789         getgrgid                \
23790         gethostname             \
23791         getpassphrase           \
23792         getpwuid                \
23793         getpwnam                \
23794         getspnam                \
23795         gettimeofday            \
23796         initgroups              \
23797         inet_ntoa_b             \
23798         ioctl                   \
23799         lockf                   \
23800         memcpy                  \
23801         memmove                 \
23802         memrchr                 \
23803         mkstemp                 \
23804         mktemp                  \
23805         pipe                    \
23806         read                    \
23807         recv                    \
23808         recvfrom                \
23809         setpwfile               \
23810         setgid                  \
23811         setegid                 \
23812         setsid                  \
23813         setuid                  \
23814         seteuid                 \
23815         signal                  \
23816         strdup                  \
23817         strpbrk                 \
23818         strrchr                 \
23819         strsep                  \
23820         strstr                  \
23821         strtol                  \
23822         strtoul                 \
23823         strtoq                  \
23824         strtouq                 \
23825         strtoll                 \
23826         strtoull                \
23827         strspn                  \
23828         sysconf                 \
23829         waitpid                 \
23830         wait4                   \
23831         write                   \
23832         send                    \
23833         sendmsg                 \
23834         sendto                  \
23835
23836 do :
23837   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23839 eval as_val=\$$as_ac_var
23840    if test "x$as_val" = x""yes; then :
23841   cat >>confdefs.h <<_ACEOF
23842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23843 _ACEOF
23844
23845 fi
23846 done
23847
23848
23849 for ac_func in getopt getpeereid
23850 do :
23851   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23853 eval as_val=\$$as_ac_var
23854    if test "x$as_val" = x""yes; then :
23855   cat >>confdefs.h <<_ACEOF
23856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23857 _ACEOF
23858
23859 else
23860   case " $LIBOBJS " in
23861   *" $ac_func.$ac_objext "* ) ;;
23862   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23863  ;;
23864 esac
23865
23866 fi
23867 done
23868
23869
23870
23871 if test "$ac_cv_func_getopt" != yes; then
23872         LIBSRCS="$LIBSRCS getopt.c"
23873 fi
23874
23875 if test "$ac_cv_func_getpeereid" != yes; then
23876         for ac_func in getpeerucred
23877 do :
23878   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23880 eval as_val=\$$as_ac_var
23881    if test "x$as_val" = x""yes; then :
23882   cat >>confdefs.h <<_ACEOF
23883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23884 _ACEOF
23885
23886 fi
23887 done
23888
23889         if test "$ac_cv_func_getpeerucred" != yes ; then
23890                 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
23891 #ifdef HAVE_SYS_SOCKET_H
23892 #include <sys/socket.h>
23893 #endif
23894 "
23895 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = x""yes; then :
23896
23897 cat >>confdefs.h <<_ACEOF
23898 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
23899 _ACEOF
23900
23901
23902 fi
23903
23904                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
23905                         ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
23906 #ifdef HAVE_SYS_SOCKET_H
23907 #include <sys/socket.h>
23908 #endif
23909 "
23910 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
23914 _ACEOF
23915
23916
23917 fi
23918
23919                 fi
23920                 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
23921 if test "x$ac_cv_member_struct_stat_st_fstype" = x""yes; then :
23922
23923 cat >>confdefs.h <<_ACEOF
23924 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
23925 _ACEOF
23926
23927
23928 fi
23929 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
23930 if test "x$ac_cv_member_struct_stat_st_vfstype" = x""yes; then :
23931
23932 cat >>confdefs.h <<_ACEOF
23933 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
23934 _ACEOF
23935
23936
23937 fi
23938
23939                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
23940                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23941 /* end confdefs.h.  */
23942 struct stat st; char *ptr=st.st_fstype;
23943 _ACEOF
23944 if ac_fn_c_try_compile "$LINENO"; then :
23945
23946 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
23947
23948 else
23949
23950 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
23951
23952 fi
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954                 fi
23955         fi
23956         LIBSRCS="$LIBSRCS getpeereid.c"
23957 fi
23958
23959 if test "$ac_cv_func_snprintf" != yes ||
23960    test "$ac_cv_func_vsnprintf" != yes; then
23961         if test "$ac_cv_func_snprintf" != yes; then
23962
23963 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
23964
23965         fi
23966         if test "$ac_cv_func_vsnprintf" != yes; then
23967
23968 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
23969
23970         fi
23971 fi
23972
23973
23974 if test "$ol_enable_slapi" != no ; then
23975                         for ac_header in ltdl.h
23976 do :
23977   ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
23978 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
23979   cat >>confdefs.h <<_ACEOF
23980 #define HAVE_LTDL_H 1
23981 _ACEOF
23982
23983 fi
23984
23985 done
23986
23987
23988         if test $ac_cv_header_ltdl_h != yes ; then
23989                 as_fn_error "could not locate <ltdl.h>" "$LINENO" 5
23990         fi
23991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
23992 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
23993 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
23994   $as_echo_n "(cached) " >&6
23995 else
23996   ac_check_lib_save_LIBS=$LIBS
23997 LIBS="-lltdl  $LIBS"
23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h.  */
24000
24001 /* Override any GCC internal prototype to avoid an error.
24002    Use char because int might match the return type of a GCC
24003    builtin and then its argument prototype would still apply.  */
24004 #ifdef __cplusplus
24005 extern "C"
24006 #endif
24007 char lt_dlinit ();
24008 int
24009 main ()
24010 {
24011 return lt_dlinit ();
24012   ;
24013   return 0;
24014 }
24015 _ACEOF
24016 if ac_fn_c_try_link "$LINENO"; then :
24017   ac_cv_lib_ltdl_lt_dlinit=yes
24018 else
24019   ac_cv_lib_ltdl_lt_dlinit=no
24020 fi
24021 rm -f core conftest.err conftest.$ac_objext \
24022     conftest$ac_exeext conftest.$ac_ext
24023 LIBS=$ac_check_lib_save_LIBS
24024 fi
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24026 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24027 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
24028
24029                 SLAPI_LIBS=-lltdl
24030                 LIBSLAPI=slapi/libslapi.la
24031
24032 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24033
24034
24035 else
24036   as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
24037 fi
24038
24039
24040
24041 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24042
24043 fi
24044
24045 if test "$ol_enable_debug" != no ; then
24046         if test "$ol_enable_debug" = traditional; then
24047
24048 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24049
24050         fi
24051
24052 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24053
24054 fi
24055 if test "$ol_enable_syslog" = yes ; then
24056
24057 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24058
24059 fi
24060 if test "$ol_enable_proctitle" != no ; then
24061
24062 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24063
24064 fi
24065 if test "$ol_enable_referrals" != no ; then
24066
24067 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24068
24069 fi
24070 if test "$ol_enable_local" != no; then
24071
24072 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24073
24074 fi
24075 if test "$ol_link_ipv6" != no; then
24076
24077 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24078
24079 fi
24080 if test "$ol_enable_cleartext" != no ; then
24081
24082 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24083
24084 fi
24085 if test "$ol_enable_crypt" != no ; then
24086
24087 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24088
24089 fi
24090 if test "$ol_link_spasswd" != no ; then
24091
24092 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24093
24094 fi
24095 if test "$ol_enable_rlookups" != no ; then
24096
24097 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24098
24099 fi
24100 if test "$ol_enable_aci" != no ; then
24101         if test $ol_enable_dynacl = no ; then
24102                 ol_enable_dynacl=yes
24103                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24104 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24105         fi
24106         if test "$ol_enable_aci" = mod ; then
24107                 MFLAG=SLAPD_MOD_DYNAMIC
24108                                 as_fn_error "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24109         else
24110                 MFLAG=SLAPD_MOD_STATIC
24111         fi
24112         WITH_ACI_ENABLED=$ol_enable_aci
24113
24114 cat >>confdefs.h <<_ACEOF
24115 #define SLAPD_ACI_ENABLED $MFLAG
24116 _ACEOF
24117
24118 else
24119         WITH_ACI_ENABLED=no
24120 fi
24121 if test "$ol_enable_dynacl" != no ; then
24122
24123 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24124
24125 fi
24126
24127 if test "$ol_link_modules" != no ; then
24128
24129 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24130
24131         BUILD_SLAPD=yes
24132         SLAPD_MODULES_LDFLAGS="-dlopen self"
24133 fi
24134
24135
24136 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24137
24138
24139 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24140
24141
24142 if test "$ol_enable_monitor" != no ; then
24143         BUILD_SLAPD=yes
24144         BUILD_MONITOR=$ol_enable_monitor
24145         if test "$ol_enable_monitor" = mod ; then
24146                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24147                 MFLAG=SLAPD_MOD_DYNAMIC
24148         else
24149                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24150                 MFLAG=SLAPD_MOD_STATIC
24151         fi
24152
24153 cat >>confdefs.h <<_ACEOF
24154 #define SLAPD_MONITOR $MFLAG
24155 _ACEOF
24156
24157 fi
24158
24159 if test "$ol_enable_bdb" != no ; then
24160         BUILD_SLAPD=yes
24161         BUILD_BDB=$ol_enable_bdb
24162         if test "$ol_enable_bdb" = mod ; then
24163                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24164                 MFLAG=SLAPD_MOD_DYNAMIC
24165         else
24166                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24167                 MFLAG=SLAPD_MOD_STATIC
24168         fi
24169
24170 cat >>confdefs.h <<_ACEOF
24171 #define SLAPD_BDB $MFLAG
24172 _ACEOF
24173
24174 fi
24175
24176 if test "$ol_enable_dnssrv" != no ; then
24177         BUILD_SLAPD=yes
24178         BUILD_DNSSRV=$ol_enable_dnssrv
24179         if test "$ol_enable_dnssrv" = mod ; then
24180                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24181                 MFLAG=SLAPD_MOD_DYNAMIC
24182         else
24183                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24184                 MFLAG=SLAPD_MOD_STATIC
24185         fi
24186
24187 cat >>confdefs.h <<_ACEOF
24188 #define SLAPD_DNSSRV $MFLAG
24189 _ACEOF
24190
24191 fi
24192
24193 if test "$ol_enable_hdb" != no ; then
24194         BUILD_SLAPD=yes
24195         BUILD_HDB=$ol_enable_hdb
24196         if test "$ol_enable_hdb" = mod ; then
24197                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24198                 MFLAG=SLAPD_MOD_DYNAMIC
24199         else
24200                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24201                 MFLAG=SLAPD_MOD_STATIC
24202         fi
24203
24204 cat >>confdefs.h <<_ACEOF
24205 #define SLAPD_HDB $MFLAG
24206 _ACEOF
24207
24208 fi
24209
24210 if test "$ol_enable_ldap" != no ; then
24211         BUILD_SLAPD=yes
24212         BUILD_LDAP=$ol_enable_ldap
24213         if test "$ol_enable_ldap" = mod ; then
24214                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24215                 MFLAG=SLAPD_MOD_DYNAMIC
24216         else
24217                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24218                 MFLAG=SLAPD_MOD_STATIC
24219         fi
24220
24221 cat >>confdefs.h <<_ACEOF
24222 #define SLAPD_LDAP $MFLAG
24223 _ACEOF
24224
24225 fi
24226
24227 if test "$ol_enable_mdb" != no ; then
24228         BUILD_SLAPD=yes
24229         BUILD_MDB=$ol_enable_mdb
24230         if test "$ol_enable_mdb" = mod ; then
24231                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24232                 MFLAG=SLAPD_MOD_DYNAMIC
24233         else
24234                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24235                 MFLAG=SLAPD_MOD_STATIC
24236         fi
24237
24238 cat >>confdefs.h <<_ACEOF
24239 #define SLAPD_MDB $MFLAG
24240 _ACEOF
24241
24242 fi
24243
24244 if test "$ol_enable_meta" != no ; then
24245         BUILD_SLAPD=yes
24246         BUILD_META=$ol_enable_meta
24247         BUILD_REWRITE=yes
24248         if test "$ol_enable_meta" = mod ; then
24249                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24250                 MFLAG=SLAPD_MOD_DYNAMIC
24251         else
24252                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24253                 MFLAG=SLAPD_MOD_STATIC
24254         fi
24255
24256 cat >>confdefs.h <<_ACEOF
24257 #define SLAPD_META $MFLAG
24258 _ACEOF
24259
24260 fi
24261
24262 if test "$ol_enable_ndb" != no ; then
24263         BUILD_SLAPD=yes
24264         BUILD_NDB=$ol_enable_ndb
24265         if test "$ol_enable_ndb" = mod ; then
24266                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24267                 MFLAG=SLAPD_MOD_DYNAMIC
24268         else
24269                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24270                 MFLAG=SLAPD_MOD_STATIC
24271         fi
24272
24273 cat >>confdefs.h <<_ACEOF
24274 #define SLAPD_NDB $MFLAG
24275 _ACEOF
24276
24277 fi
24278
24279 if test "$ol_enable_null" != no ; then
24280         BUILD_SLAPD=yes
24281         BUILD_NULL=$ol_enable_null
24282         if test "$ol_enable_null" = mod ; then
24283                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24284                 MFLAG=SLAPD_MOD_DYNAMIC
24285         else
24286                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24287                 MFLAG=SLAPD_MOD_STATIC
24288         fi
24289
24290 cat >>confdefs.h <<_ACEOF
24291 #define SLAPD_NULL $MFLAG
24292 _ACEOF
24293
24294 fi
24295
24296 if test "$ol_enable_passwd" != no ; then
24297         BUILD_SLAPD=yes
24298         BUILD_PASSWD=$ol_enable_passwd
24299         if test "$ol_enable_passwd" = mod ; then
24300                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24301                 MFLAG=SLAPD_MOD_DYNAMIC
24302         else
24303                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24304                 MFLAG=SLAPD_MOD_STATIC
24305         fi
24306
24307 cat >>confdefs.h <<_ACEOF
24308 #define SLAPD_PASSWD $MFLAG
24309 _ACEOF
24310
24311 fi
24312
24313 if test "$ol_link_perl" != no ; then
24314         BUILD_SLAPD=yes
24315         BUILD_PERL=$ol_enable_perl
24316         if test "$ol_enable_perl" = mod ; then
24317                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24318                 MFLAG=SLAPD_MOD_DYNAMIC
24319         else
24320                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24321                 MFLAG=SLAPD_MOD_STATIC
24322         fi
24323
24324 cat >>confdefs.h <<_ACEOF
24325 #define SLAPD_PERL $MFLAG
24326 _ACEOF
24327
24328 fi
24329
24330 if test "$ol_enable_relay" != no ; then
24331         BUILD_SLAPD=yes
24332         BUILD_RELAY=$ol_enable_relay
24333         if test "$ol_enable_relay" = mod ; then
24334                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24335                 MFLAG=SLAPD_MOD_DYNAMIC
24336         else
24337                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24338                 MFLAG=SLAPD_MOD_STATIC
24339         fi
24340
24341 cat >>confdefs.h <<_ACEOF
24342 #define SLAPD_RELAY $MFLAG
24343 _ACEOF
24344
24345 fi
24346
24347 if test "$ol_enable_shell" != no ; then
24348         if test "$ol_link_threads" != no ; then
24349                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24350 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24351         fi
24352         BUILD_SLAPD=yes
24353         BUILD_SHELL=$ol_enable_shell
24354         if test "$ol_enable_shell" = mod ; then
24355                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24356                 MFLAG=SLAPD_MOD_DYNAMIC
24357         else
24358                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24359                 MFLAG=SLAPD_MOD_STATIC
24360         fi
24361
24362 cat >>confdefs.h <<_ACEOF
24363 #define SLAPD_SHELL $MFLAG
24364 _ACEOF
24365
24366 fi
24367
24368 if test "$ol_enable_sock" != no ; then
24369         BUILD_SLAPD=yes
24370         BUILD_SOCK=$ol_enable_sock
24371         if test "$ol_enable_sock" = mod ; then
24372                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24373                 MFLAG=SLAPD_MOD_DYNAMIC
24374         else
24375                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24376                 MFLAG=SLAPD_MOD_STATIC
24377         fi
24378
24379 cat >>confdefs.h <<_ACEOF
24380 #define SLAPD_SOCK $MFLAG
24381 _ACEOF
24382
24383 fi
24384
24385 if test "$ol_link_sql" != no ; then
24386         BUILD_SLAPD=yes
24387         BUILD_SQL=$ol_enable_sql
24388         if test "$ol_enable_sql" = mod; then
24389                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24390                 MFLAG=SLAPD_MOD_DYNAMIC
24391         else
24392                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24393                 MFLAG=SLAPD_MOD_STATIC
24394         fi
24395
24396 cat >>confdefs.h <<_ACEOF
24397 #define SLAPD_SQL $MFLAG
24398 _ACEOF
24399
24400 fi
24401
24402 if test "$ol_enable_accesslog" != no ; then
24403         BUILD_ACCESSLOG=$ol_enable_accesslog
24404         if test "$ol_enable_accesslog" = mod ; then
24405                 MFLAG=SLAPD_MOD_DYNAMIC
24406                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24407         else
24408                 MFLAG=SLAPD_MOD_STATIC
24409                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24410         fi
24411
24412 cat >>confdefs.h <<_ACEOF
24413 #define SLAPD_OVER_ACCESSLOG $MFLAG
24414 _ACEOF
24415
24416 fi
24417
24418 if test "$ol_enable_auditlog" != no ; then
24419         BUILD_AUDITLOG=$ol_enable_auditlog
24420         if test "$ol_enable_auditlog" = mod ; then
24421                 MFLAG=SLAPD_MOD_DYNAMIC
24422                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24423         else
24424                 MFLAG=SLAPD_MOD_STATIC
24425                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24426         fi
24427
24428 cat >>confdefs.h <<_ACEOF
24429 #define SLAPD_OVER_AUDITLOG $MFLAG
24430 _ACEOF
24431
24432 fi
24433
24434 if test "$ol_enable_collect" != no ; then
24435         BUILD_COLLECT=$ol_enable_collect
24436         if test "$ol_enable_collect" = mod ; then
24437                 MFLAG=SLAPD_MOD_DYNAMIC
24438                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24439         else
24440                 MFLAG=SLAPD_MOD_STATIC
24441                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24442         fi
24443
24444 cat >>confdefs.h <<_ACEOF
24445 #define SLAPD_OVER_COLLECT $MFLAG
24446 _ACEOF
24447
24448 fi
24449
24450 if test "$ol_enable_constraint" != no ; then
24451         BUILD_CONSTRAINT=$ol_enable_constraint
24452         if test "$ol_enable_constraint" = mod ; then
24453                 MFLAG=SLAPD_MOD_DYNAMIC
24454                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24455         else
24456                 MFLAG=SLAPD_MOD_STATIC
24457                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24458         fi
24459
24460 cat >>confdefs.h <<_ACEOF
24461 #define SLAPD_OVER_CONSTRAINT $MFLAG
24462 _ACEOF
24463
24464 fi
24465
24466 if test "$ol_enable_dds" != no ; then
24467         BUILD_DDS=$ol_enable_dds
24468         if test "$ol_enable_dds" = mod ; then
24469                 MFLAG=SLAPD_MOD_DYNAMIC
24470                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24471         else
24472                 MFLAG=SLAPD_MOD_STATIC
24473                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24474         fi
24475
24476 cat >>confdefs.h <<_ACEOF
24477 #define SLAPD_OVER_DDS $MFLAG
24478 _ACEOF
24479
24480 fi
24481
24482 if test "$ol_enable_deref" != no ; then
24483         BUILD_DEREF=$ol_enable_deref
24484         if test "$ol_enable_deref" = mod ; then
24485                 MFLAG=SLAPD_MOD_DYNAMIC
24486                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24487         else
24488                 MFLAG=SLAPD_MOD_STATIC
24489                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24490         fi
24491
24492 cat >>confdefs.h <<_ACEOF
24493 #define SLAPD_OVER_DEREF $MFLAG
24494 _ACEOF
24495
24496 fi
24497
24498 if test "$ol_enable_dyngroup" != no ; then
24499         BUILD_DYNGROUP=$ol_enable_dyngroup
24500         if test "$ol_enable_dyngroup" = mod ; then
24501                 MFLAG=SLAPD_MOD_DYNAMIC
24502                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24503         else
24504                 MFLAG=SLAPD_MOD_STATIC
24505                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24506         fi
24507
24508 cat >>confdefs.h <<_ACEOF
24509 #define SLAPD_OVER_DYNGROUP $MFLAG
24510 _ACEOF
24511
24512 fi
24513
24514 if test "$ol_enable_dynlist" != no ; then
24515         BUILD_DYNLIST=$ol_enable_dynlist
24516         if test "$ol_enable_dynlist" = mod ; then
24517                 MFLAG=SLAPD_MOD_DYNAMIC
24518                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24519         else
24520                 MFLAG=SLAPD_MOD_STATIC
24521                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24522         fi
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define SLAPD_OVER_DYNLIST $MFLAG
24526 _ACEOF
24527
24528 fi
24529
24530 if test "$ol_enable_memberof" != no ; then
24531         BUILD_MEMBEROF=$ol_enable_memberof
24532         if test "$ol_enable_memberof" = mod ; then
24533                 MFLAG=SLAPD_MOD_DYNAMIC
24534                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24535         else
24536                 MFLAG=SLAPD_MOD_STATIC
24537                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24538         fi
24539
24540 cat >>confdefs.h <<_ACEOF
24541 #define SLAPD_OVER_MEMBEROF $MFLAG
24542 _ACEOF
24543
24544 fi
24545
24546 if test "$ol_enable_ppolicy" != no ; then
24547         BUILD_PPOLICY=$ol_enable_ppolicy
24548         if test "$ol_enable_ppolicy" = mod ; then
24549                 MFLAG=SLAPD_MOD_DYNAMIC
24550                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24551         else
24552                 MFLAG=SLAPD_MOD_STATIC
24553                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24554         fi
24555
24556 cat >>confdefs.h <<_ACEOF
24557 #define SLAPD_OVER_PPOLICY $MFLAG
24558 _ACEOF
24559
24560 fi
24561
24562 if test "$ol_enable_proxycache" != no ; then
24563         BUILD_PROXYCACHE=$ol_enable_proxycache
24564         if test "$ol_enable_proxycache" = mod ; then
24565                 MFLAG=SLAPD_MOD_DYNAMIC
24566                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24567         else
24568                 MFLAG=SLAPD_MOD_STATIC
24569                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24570         fi
24571
24572 cat >>confdefs.h <<_ACEOF
24573 #define SLAPD_OVER_PROXYCACHE $MFLAG
24574 _ACEOF
24575
24576 fi
24577
24578 if test "$ol_enable_refint" != no ; then
24579         BUILD_REFINT=$ol_enable_refint
24580         if test "$ol_enable_refint" = mod ; then
24581                 MFLAG=SLAPD_MOD_DYNAMIC
24582                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24583         else
24584                 MFLAG=SLAPD_MOD_STATIC
24585                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24586         fi
24587
24588 cat >>confdefs.h <<_ACEOF
24589 #define SLAPD_OVER_REFINT $MFLAG
24590 _ACEOF
24591
24592 fi
24593
24594 if test "$ol_enable_retcode" != no ; then
24595         BUILD_RETCODE=$ol_enable_retcode
24596         if test "$ol_enable_retcode" = mod ; then
24597                 MFLAG=SLAPD_MOD_DYNAMIC
24598                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24599         else
24600                 MFLAG=SLAPD_MOD_STATIC
24601                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24602         fi
24603
24604 cat >>confdefs.h <<_ACEOF
24605 #define SLAPD_OVER_RETCODE $MFLAG
24606 _ACEOF
24607
24608 fi
24609
24610 if test "$ol_enable_rwm" != no ; then
24611         BUILD_REWRITE=yes
24612         BUILD_RWM=$ol_enable_rwm
24613         if test "$ol_enable_rwm" = mod ; then
24614                 MFLAG=SLAPD_MOD_DYNAMIC
24615                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24616         else
24617                 MFLAG=SLAPD_MOD_STATIC
24618                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24619         fi
24620
24621 cat >>confdefs.h <<_ACEOF
24622 #define SLAPD_OVER_RWM $MFLAG
24623 _ACEOF
24624
24625 fi
24626
24627 if test "$ol_enable_seqmod" != no ; then
24628         BUILD_SEQMOD=$ol_enable_seqmod
24629         if test "$ol_enable_seqmod" = mod ; then
24630                 MFLAG=SLAPD_MOD_DYNAMIC
24631                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24632         else
24633                 MFLAG=SLAPD_MOD_STATIC
24634                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24635         fi
24636
24637 cat >>confdefs.h <<_ACEOF
24638 #define SLAPD_OVER_SEQMOD $MFLAG
24639 _ACEOF
24640
24641 fi
24642
24643 if test "$ol_enable_sssvlv" != no ; then
24644         BUILD_SSSVLV=$ol_enable_sssvlv
24645         if test "$ol_enable_sssvlv" = mod ; then
24646                 MFLAG=SLAPD_MOD_DYNAMIC
24647                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24648         else
24649                 MFLAG=SLAPD_MOD_STATIC
24650                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24651         fi
24652
24653 cat >>confdefs.h <<_ACEOF
24654 #define SLAPD_OVER_SSSVLV $MFLAG
24655 _ACEOF
24656
24657 fi
24658
24659 if test "$ol_enable_syncprov" != no ; then
24660         BUILD_SYNCPROV=$ol_enable_syncprov
24661         if test "$ol_enable_syncprov" = mod ; then
24662                 MFLAG=SLAPD_MOD_DYNAMIC
24663                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24664         else
24665                 MFLAG=SLAPD_MOD_STATIC
24666                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24667         fi
24668
24669 cat >>confdefs.h <<_ACEOF
24670 #define SLAPD_OVER_SYNCPROV $MFLAG
24671 _ACEOF
24672
24673 fi
24674
24675 if test "$ol_enable_translucent" != no ; then
24676         BUILD_TRANSLUCENT=$ol_enable_translucent
24677         if test "$ol_enable_translucent" = mod ; then
24678                 MFLAG=SLAPD_MOD_DYNAMIC
24679                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24680         else
24681                 MFLAG=SLAPD_MOD_STATIC
24682                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24683         fi
24684
24685 cat >>confdefs.h <<_ACEOF
24686 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24687 _ACEOF
24688
24689 fi
24690
24691 if test "$ol_enable_unique" != no ; then
24692         BUILD_UNIQUE=$ol_enable_unique
24693         if test "$ol_enable_unique" = mod ; then
24694                 MFLAG=SLAPD_MOD_DYNAMIC
24695                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24696         else
24697                 MFLAG=SLAPD_MOD_STATIC
24698                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24699         fi
24700
24701 cat >>confdefs.h <<_ACEOF
24702 #define SLAPD_OVER_UNIQUE $MFLAG
24703 _ACEOF
24704
24705 fi
24706
24707 if test "$ol_enable_valsort" != no ; then
24708         BUILD_VALSORT=$ol_enable_valsort
24709         if test "$ol_enable_valsort" = mod ; then
24710                 MFLAG=SLAPD_MOD_DYNAMIC
24711                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24712         else
24713                 MFLAG=SLAPD_MOD_STATIC
24714                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24715         fi
24716
24717 cat >>confdefs.h <<_ACEOF
24718 #define SLAPD_OVER_VALSORT $MFLAG
24719 _ACEOF
24720
24721 fi
24722
24723 if test "$ol_enable_rewrite" != no ; then
24724
24725 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24726
24727         BUILD_REWRITE=yes
24728 fi
24729
24730 if test "$ol_enable_slapi" != no ; then
24731
24732 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24733
24734         BUILD_SLAPI=yes
24735         SLAPD_SLAPI_DEPEND=libslapi.a
24736 fi
24737
24738
24739
24740 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24741         PLAT=NT
24742         SLAPD_MODULES_LDFLAGS=
24743 else
24744         PLAT=UNIX
24745 fi
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
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837 # Check whether --with-xxinstall was given.
24838 if test "${with_xxinstall+set}" = set; then :
24839   withval=$with_xxinstall;
24840 fi
24841
24842
24843
24844 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"
24845
24846
24847 ac_config_commands="$ac_config_commands default"
24848
24849
24850
24851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24852 # Let make expand exec_prefix.
24853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24854
24855 DEFS=-DHAVE_CONFIG_H
24856
24857 ac_libobjs=
24858 ac_ltlibobjs=
24859 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24860   # 1. Remove the extension, and $U if already installed.
24861   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24862   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24863   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24864   #    will be set to the directory where LIBOBJS objects are built.
24865   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24866   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24867 done
24868 LIBOBJS=$ac_libobjs
24869
24870 LTLIBOBJS=$ac_ltlibobjs
24871
24872
24873 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24874   as_fn_error "conditional \"AMDEP\" was never defined.
24875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24876 fi
24877 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24878   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24880 fi
24881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24882   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24884 fi
24885
24886
24887 : ${CONFIG_STATUS=./config.status}
24888 ac_write_fail=0
24889 ac_clean_files_save=$ac_clean_files
24890 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24892 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24893 as_write_fail=0
24894 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24895 #! $SHELL
24896 # Generated by $as_me.
24897 # Run this file to recreate the current configuration.
24898 # Compiler output produced by configure, useful for debugging
24899 # configure, is in config.log if it exists.
24900
24901 debug=false
24902 ac_cs_recheck=false
24903 ac_cs_silent=false
24904
24905 SHELL=\${CONFIG_SHELL-$SHELL}
24906 export SHELL
24907 _ASEOF
24908 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24909 ## -------------------- ##
24910 ## M4sh Initialization. ##
24911 ## -------------------- ##
24912
24913 # Be more Bourne compatible
24914 DUALCASE=1; export DUALCASE # for MKS sh
24915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24916   emulate sh
24917   NULLCMD=:
24918   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24919   # is contrary to our usage.  Disable this feature.
24920   alias -g '${1+"$@"}'='"$@"'
24921   setopt NO_GLOB_SUBST
24922 else
24923   case `(set -o) 2>/dev/null` in #(
24924   *posix*) :
24925     set -o posix ;; #(
24926   *) :
24927      ;;
24928 esac
24929 fi
24930
24931
24932 as_nl='
24933 '
24934 export as_nl
24935 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24936 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24937 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24938 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24939 # Prefer a ksh shell builtin over an external printf program on Solaris,
24940 # but without wasting forks for bash or zsh.
24941 if test -z "$BASH_VERSION$ZSH_VERSION" \
24942     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24943   as_echo='print -r --'
24944   as_echo_n='print -rn --'
24945 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24946   as_echo='printf %s\n'
24947   as_echo_n='printf %s'
24948 else
24949   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24950     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24951     as_echo_n='/usr/ucb/echo -n'
24952   else
24953     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24954     as_echo_n_body='eval
24955       arg=$1;
24956       case $arg in #(
24957       *"$as_nl"*)
24958         expr "X$arg" : "X\\(.*\\)$as_nl";
24959         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24960       esac;
24961       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24962     '
24963     export as_echo_n_body
24964     as_echo_n='sh -c $as_echo_n_body as_echo'
24965   fi
24966   export as_echo_body
24967   as_echo='sh -c $as_echo_body as_echo'
24968 fi
24969
24970 # The user is always right.
24971 if test "${PATH_SEPARATOR+set}" != set; then
24972   PATH_SEPARATOR=:
24973   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24974     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24975       PATH_SEPARATOR=';'
24976   }
24977 fi
24978
24979
24980 # IFS
24981 # We need space, tab and new line, in precisely that order.  Quoting is
24982 # there to prevent editors from complaining about space-tab.
24983 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24984 # splitting by setting IFS to empty value.)
24985 IFS=" ""        $as_nl"
24986
24987 # Find who we are.  Look in the path if we contain no directory separator.
24988 case $0 in #((
24989   *[\\/]* ) as_myself=$0 ;;
24990   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24991 for as_dir in $PATH
24992 do
24993   IFS=$as_save_IFS
24994   test -z "$as_dir" && as_dir=.
24995     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24996   done
24997 IFS=$as_save_IFS
24998
24999      ;;
25000 esac
25001 # We did not find ourselves, most probably we were run as `sh COMMAND'
25002 # in which case we are not to be found in the path.
25003 if test "x$as_myself" = x; then
25004   as_myself=$0
25005 fi
25006 if test ! -f "$as_myself"; then
25007   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25008   exit 1
25009 fi
25010
25011 # Unset variables that we do not need and which cause bugs (e.g. in
25012 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25013 # suppresses any "Segmentation fault" message there.  '((' could
25014 # trigger a bug in pdksh 5.2.14.
25015 for as_var in BASH_ENV ENV MAIL MAILPATH
25016 do eval test x\${$as_var+set} = xset \
25017   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25018 done
25019 PS1='$ '
25020 PS2='> '
25021 PS4='+ '
25022
25023 # NLS nuisances.
25024 LC_ALL=C
25025 export LC_ALL
25026 LANGUAGE=C
25027 export LANGUAGE
25028
25029 # CDPATH.
25030 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25031
25032
25033 # as_fn_error ERROR [LINENO LOG_FD]
25034 # ---------------------------------
25035 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25036 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25037 # script with status $?, using 1 if that was 0.
25038 as_fn_error ()
25039 {
25040   as_status=$?; test $as_status -eq 0 && as_status=1
25041   if test "$3"; then
25042     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25043     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25044   fi
25045   $as_echo "$as_me: error: $1" >&2
25046   as_fn_exit $as_status
25047 } # as_fn_error
25048
25049
25050 # as_fn_set_status STATUS
25051 # -----------------------
25052 # Set $? to STATUS, without forking.
25053 as_fn_set_status ()
25054 {
25055   return $1
25056 } # as_fn_set_status
25057
25058 # as_fn_exit STATUS
25059 # -----------------
25060 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25061 as_fn_exit ()
25062 {
25063   set +e
25064   as_fn_set_status $1
25065   exit $1
25066 } # as_fn_exit
25067
25068 # as_fn_unset VAR
25069 # ---------------
25070 # Portably unset VAR.
25071 as_fn_unset ()
25072 {
25073   { eval $1=; unset $1;}
25074 }
25075 as_unset=as_fn_unset
25076 # as_fn_append VAR VALUE
25077 # ----------------------
25078 # Append the text in VALUE to the end of the definition contained in VAR. Take
25079 # advantage of any shell optimizations that allow amortized linear growth over
25080 # repeated appends, instead of the typical quadratic growth present in naive
25081 # implementations.
25082 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25083   eval 'as_fn_append ()
25084   {
25085     eval $1+=\$2
25086   }'
25087 else
25088   as_fn_append ()
25089   {
25090     eval $1=\$$1\$2
25091   }
25092 fi # as_fn_append
25093
25094 # as_fn_arith ARG...
25095 # ------------------
25096 # Perform arithmetic evaluation on the ARGs, and store the result in the
25097 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25098 # must be portable across $(()) and expr.
25099 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25100   eval 'as_fn_arith ()
25101   {
25102     as_val=$(( $* ))
25103   }'
25104 else
25105   as_fn_arith ()
25106   {
25107     as_val=`expr "$@" || test $? -eq 1`
25108   }
25109 fi # as_fn_arith
25110
25111
25112 if expr a : '\(a\)' >/dev/null 2>&1 &&
25113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25114   as_expr=expr
25115 else
25116   as_expr=false
25117 fi
25118
25119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25120   as_basename=basename
25121 else
25122   as_basename=false
25123 fi
25124
25125 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25126   as_dirname=dirname
25127 else
25128   as_dirname=false
25129 fi
25130
25131 as_me=`$as_basename -- "$0" ||
25132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25133          X"$0" : 'X\(//\)$' \| \
25134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25135 $as_echo X/"$0" |
25136     sed '/^.*\/\([^/][^/]*\)\/*$/{
25137             s//\1/
25138             q
25139           }
25140           /^X\/\(\/\/\)$/{
25141             s//\1/
25142             q
25143           }
25144           /^X\/\(\/\).*/{
25145             s//\1/
25146             q
25147           }
25148           s/.*/./; q'`
25149
25150 # Avoid depending upon Character Ranges.
25151 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25152 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25153 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25154 as_cr_digits='0123456789'
25155 as_cr_alnum=$as_cr_Letters$as_cr_digits
25156
25157 ECHO_C= ECHO_N= ECHO_T=
25158 case `echo -n x` in #(((((
25159 -n*)
25160   case `echo 'xy\c'` in
25161   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25162   xy)  ECHO_C='\c';;
25163   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25164        ECHO_T=' ';;
25165   esac;;
25166 *)
25167   ECHO_N='-n';;
25168 esac
25169
25170 rm -f conf$$ conf$$.exe conf$$.file
25171 if test -d conf$$.dir; then
25172   rm -f conf$$.dir/conf$$.file
25173 else
25174   rm -f conf$$.dir
25175   mkdir conf$$.dir 2>/dev/null
25176 fi
25177 if (echo >conf$$.file) 2>/dev/null; then
25178   if ln -s conf$$.file conf$$ 2>/dev/null; then
25179     as_ln_s='ln -s'
25180     # ... but there are two gotchas:
25181     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25182     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25183     # In both cases, we have to default to `cp -p'.
25184     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25185       as_ln_s='cp -p'
25186   elif ln conf$$.file conf$$ 2>/dev/null; then
25187     as_ln_s=ln
25188   else
25189     as_ln_s='cp -p'
25190   fi
25191 else
25192   as_ln_s='cp -p'
25193 fi
25194 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25195 rmdir conf$$.dir 2>/dev/null
25196
25197
25198 # as_fn_mkdir_p
25199 # -------------
25200 # Create "$as_dir" as a directory, including parents if necessary.
25201 as_fn_mkdir_p ()
25202 {
25203
25204   case $as_dir in #(
25205   -*) as_dir=./$as_dir;;
25206   esac
25207   test -d "$as_dir" || eval $as_mkdir_p || {
25208     as_dirs=
25209     while :; do
25210       case $as_dir in #(
25211       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25212       *) as_qdir=$as_dir;;
25213       esac
25214       as_dirs="'$as_qdir' $as_dirs"
25215       as_dir=`$as_dirname -- "$as_dir" ||
25216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25217          X"$as_dir" : 'X\(//\)[^/]' \| \
25218          X"$as_dir" : 'X\(//\)$' \| \
25219          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25220 $as_echo X"$as_dir" |
25221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25222             s//\1/
25223             q
25224           }
25225           /^X\(\/\/\)[^/].*/{
25226             s//\1/
25227             q
25228           }
25229           /^X\(\/\/\)$/{
25230             s//\1/
25231             q
25232           }
25233           /^X\(\/\).*/{
25234             s//\1/
25235             q
25236           }
25237           s/.*/./; q'`
25238       test -d "$as_dir" && break
25239     done
25240     test -z "$as_dirs" || eval "mkdir $as_dirs"
25241   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25242
25243
25244 } # as_fn_mkdir_p
25245 if mkdir -p . 2>/dev/null; then
25246   as_mkdir_p='mkdir -p "$as_dir"'
25247 else
25248   test -d ./-p && rmdir ./-p
25249   as_mkdir_p=false
25250 fi
25251
25252 if test -x / >/dev/null 2>&1; then
25253   as_test_x='test -x'
25254 else
25255   if ls -dL / >/dev/null 2>&1; then
25256     as_ls_L_option=L
25257   else
25258     as_ls_L_option=
25259   fi
25260   as_test_x='
25261     eval sh -c '\''
25262       if test -d "$1"; then
25263         test -d "$1/.";
25264       else
25265         case $1 in #(
25266         -*)set "./$1";;
25267         esac;
25268         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25269         ???[sx]*):;;*)false;;esac;fi
25270     '\'' sh
25271   '
25272 fi
25273 as_executable_p=$as_test_x
25274
25275 # Sed expression to map a string onto a valid CPP name.
25276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25277
25278 # Sed expression to map a string onto a valid variable name.
25279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25280
25281
25282 exec 6>&1
25283 ## ----------------------------------- ##
25284 ## Main body of $CONFIG_STATUS script. ##
25285 ## ----------------------------------- ##
25286 _ASEOF
25287 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25288
25289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25290 # Save the log message, to keep $0 and so on meaningful, and to
25291 # report actual input values of CONFIG_FILES etc. instead of their
25292 # values after options handling.
25293 ac_log="
25294 This file was extended by $as_me, which was
25295 generated by GNU Autoconf 2.65.  Invocation command line was
25296
25297   CONFIG_FILES    = $CONFIG_FILES
25298   CONFIG_HEADERS  = $CONFIG_HEADERS
25299   CONFIG_LINKS    = $CONFIG_LINKS
25300   CONFIG_COMMANDS = $CONFIG_COMMANDS
25301   $ $0 $@
25302
25303 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25304 "
25305
25306 _ACEOF
25307
25308 case $ac_config_files in *"
25309 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25310 esac
25311
25312 case $ac_config_headers in *"
25313 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25314 esac
25315
25316
25317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25318 # Files that config.status was made for.
25319 config_files="$ac_config_files"
25320 config_headers="$ac_config_headers"
25321 config_commands="$ac_config_commands"
25322
25323 _ACEOF
25324
25325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25326 ac_cs_usage="\
25327 \`$as_me' instantiates files and other configuration actions
25328 from templates according to the current configuration.  Unless the files
25329 and actions are specified as TAGs, all are instantiated by default.
25330
25331 Usage: $0 [OPTION]... [TAG]...
25332
25333   -h, --help       print this help, then exit
25334   -V, --version    print version number and configuration settings, then exit
25335       --config     print configuration, then exit
25336   -q, --quiet, --silent
25337                    do not print progress messages
25338   -d, --debug      don't remove temporary files
25339       --recheck    update $as_me by reconfiguring in the same conditions
25340       --file=FILE[:TEMPLATE]
25341                    instantiate the configuration file FILE
25342       --header=FILE[:TEMPLATE]
25343                    instantiate the configuration header FILE
25344
25345 Configuration files:
25346 $config_files
25347
25348 Configuration headers:
25349 $config_headers
25350
25351 Configuration commands:
25352 $config_commands
25353
25354 Report bugs to <<http://www.openldap.org/its/>>."
25355
25356 _ACEOF
25357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25358 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25359 ac_cs_version="\\
25360 config.status
25361 configured by $0, generated by GNU Autoconf 2.65,
25362   with options \\"\$ac_cs_config\\"
25363
25364 Copyright (C) 2009 Free Software Foundation, Inc.
25365 This config.status script is free software; the Free Software Foundation
25366 gives unlimited permission to copy, distribute and modify it."
25367
25368 ac_pwd='$ac_pwd'
25369 srcdir='$srcdir'
25370 INSTALL='$INSTALL'
25371 AWK='$AWK'
25372 test -n "\$AWK" || AWK=awk
25373 _ACEOF
25374
25375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25376 # The default lists apply if the user does not specify any file.
25377 ac_need_defaults=:
25378 while test $# != 0
25379 do
25380   case $1 in
25381   --*=*)
25382     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25383     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25384     ac_shift=:
25385     ;;
25386   *)
25387     ac_option=$1
25388     ac_optarg=$2
25389     ac_shift=shift
25390     ;;
25391   esac
25392
25393   case $ac_option in
25394   # Handling of the options.
25395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25396     ac_cs_recheck=: ;;
25397   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25398     $as_echo "$ac_cs_version"; exit ;;
25399   --config | --confi | --conf | --con | --co | --c )
25400     $as_echo "$ac_cs_config"; exit ;;
25401   --debug | --debu | --deb | --de | --d | -d )
25402     debug=: ;;
25403   --file | --fil | --fi | --f )
25404     $ac_shift
25405     case $ac_optarg in
25406     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25407     esac
25408     as_fn_append CONFIG_FILES " '$ac_optarg'"
25409     ac_need_defaults=false;;
25410   --header | --heade | --head | --hea )
25411     $ac_shift
25412     case $ac_optarg in
25413     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25414     esac
25415     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25416     ac_need_defaults=false;;
25417   --he | --h)
25418     # Conflict between --help and --header
25419     as_fn_error "ambiguous option: \`$1'
25420 Try \`$0 --help' for more information.";;
25421   --help | --hel | -h )
25422     $as_echo "$ac_cs_usage"; exit ;;
25423   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25424   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25425     ac_cs_silent=: ;;
25426
25427   # This is an error.
25428   -*) as_fn_error "unrecognized option: \`$1'
25429 Try \`$0 --help' for more information." ;;
25430
25431   *) as_fn_append ac_config_targets " $1"
25432      ac_need_defaults=false ;;
25433
25434   esac
25435   shift
25436 done
25437
25438 ac_configure_extra_args=
25439
25440 if $ac_cs_silent; then
25441   exec 6>/dev/null
25442   ac_configure_extra_args="$ac_configure_extra_args --silent"
25443 fi
25444
25445 _ACEOF
25446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25447 if \$ac_cs_recheck; then
25448   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25449   shift
25450   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25451   CONFIG_SHELL='$SHELL'
25452   export CONFIG_SHELL
25453   exec "\$@"
25454 fi
25455
25456 _ACEOF
25457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25458 exec 5>>config.log
25459 {
25460   echo
25461   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25462 ## Running $as_me. ##
25463 _ASBOX
25464   $as_echo "$ac_log"
25465 } >&5
25466
25467 _ACEOF
25468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25469 #
25470 # INIT-COMMANDS
25471 #
25472 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25473
25474 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25475 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25476
25477
25478 _ACEOF
25479
25480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25481
25482 # Handling of arguments.
25483 for ac_config_target in $ac_config_targets
25484 do
25485   case $ac_config_target in
25486     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25487     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25488     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25489     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25490     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25491     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25492     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25493     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25494     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25495     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25496     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25497     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25498     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25499     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25500     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25501     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25502     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25503     "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" ;;
25504     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25505     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25506     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25507     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25508     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25509     "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" ;;
25510     "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" ;;
25511     "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" ;;
25512     "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" ;;
25513     "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" ;;
25514     "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" ;;
25515     "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" ;;
25516     "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" ;;
25517     "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" ;;
25518     "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" ;;
25519     "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" ;;
25520     "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" ;;
25521     "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" ;;
25522     "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" ;;
25523     "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" ;;
25524     "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" ;;
25525     "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" ;;
25526     "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" ;;
25527     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25528     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25529     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25530     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25531     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25532
25533   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25534   esac
25535 done
25536
25537
25538 # If the user did not use the arguments to specify the items to instantiate,
25539 # then the envvar interface is used.  Set only those that are not.
25540 # We use the long form for the default assignment because of an extremely
25541 # bizarre bug on SunOS 4.1.3.
25542 if $ac_need_defaults; then
25543   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25544   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25545   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25546 fi
25547
25548 # Have a temporary directory for convenience.  Make it in the build tree
25549 # simply because there is no reason against having it here, and in addition,
25550 # creating and moving files from /tmp can sometimes cause problems.
25551 # Hook for its removal unless debugging.
25552 # Note that there is a small window in which the directory will not be cleaned:
25553 # after its creation but before its name has been assigned to `$tmp'.
25554 $debug ||
25555 {
25556   tmp=
25557   trap 'exit_status=$?
25558   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25559 ' 0
25560   trap 'as_fn_exit 1' 1 2 13 15
25561 }
25562 # Create a (secure) tmp directory for tmp files.
25563
25564 {
25565   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25566   test -n "$tmp" && test -d "$tmp"
25567 }  ||
25568 {
25569   tmp=./conf$$-$RANDOM
25570   (umask 077 && mkdir "$tmp")
25571 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
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 {' >"$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 >>"\$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 >>"\$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 < "$tmp/subs1.awk" > "$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 $(srcdir),
25706 # ${srcdir} and @srcdir@ 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 s/:*\$(srcdir):*/:/
25712 s/:*\${srcdir}:*/:/
25713 s/:*@srcdir@:*/:/
25714 s/^\([^=]*=[     ]*\):*/\1/
25715 s/:*$//
25716 s/^[^=]*=[       ]*$//
25717 }'
25718 fi
25719
25720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25721 fi # test -n "$CONFIG_FILES"
25722
25723 # Set up the scripts for CONFIG_HEADERS section.
25724 # No need to generate them if there are no CONFIG_HEADERS.
25725 # This happens for instance with `./config.status Makefile'.
25726 if test -n "$CONFIG_HEADERS"; then
25727 cat >"$tmp/defines.awk" <<\_ACAWK ||
25728 BEGIN {
25729 _ACEOF
25730
25731 # Transform confdefs.h into an awk script `defines.awk', embedded as
25732 # here-document in config.status, that substitutes the proper values into
25733 # config.h.in to produce config.h.
25734
25735 # Create a delimiter string that does not exist in confdefs.h, to ease
25736 # handling of long lines.
25737 ac_delim='%!_!# '
25738 for ac_last_try in false false :; do
25739   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25740   if test -z "$ac_t"; then
25741     break
25742   elif $ac_last_try; then
25743     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25744   else
25745     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25746   fi
25747 done
25748
25749 # For the awk script, D is an array of macro values keyed by name,
25750 # likewise P contains macro parameters if any.  Preserve backslash
25751 # newline sequences.
25752
25753 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25754 sed -n '
25755 s/.\{148\}/&'"$ac_delim"'/g
25756 t rset
25757 :rset
25758 s/^[     ]*#[    ]*define[       ][      ]*/ /
25759 t def
25760 d
25761 :def
25762 s/\\$//
25763 t bsnl
25764 s/["\\]/\\&/g
25765 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25766 D["\1"]=" \3"/p
25767 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25768 d
25769 :bsnl
25770 s/["\\]/\\&/g
25771 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25772 D["\1"]=" \3\\\\\\n"\\/p
25773 t cont
25774 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25775 t cont
25776 d
25777 :cont
25778 n
25779 s/.\{148\}/&'"$ac_delim"'/g
25780 t clear
25781 :clear
25782 s/\\$//
25783 t bsnlc
25784 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25785 d
25786 :bsnlc
25787 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25788 b cont
25789 ' <confdefs.h | sed '
25790 s/'"$ac_delim"'/"\\\
25791 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25792
25793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25794   for (key in D) D_is_set[key] = 1
25795   FS = "\a"
25796 }
25797 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25798   line = \$ 0
25799   split(line, arg, " ")
25800   if (arg[1] == "#") {
25801     defundef = arg[2]
25802     mac1 = arg[3]
25803   } else {
25804     defundef = substr(arg[1], 2)
25805     mac1 = arg[2]
25806   }
25807   split(mac1, mac2, "(") #)
25808   macro = mac2[1]
25809   prefix = substr(line, 1, index(line, defundef) - 1)
25810   if (D_is_set[macro]) {
25811     # Preserve the white space surrounding the "#".
25812     print prefix "define", macro P[macro] D[macro]
25813     next
25814   } else {
25815     # Replace #undef with comments.  This is necessary, for example,
25816     # in the case of _POSIX_SOURCE, which is predefined and required
25817     # on some systems where configure will not decide to define it.
25818     if (defundef == "undef") {
25819       print "/*", prefix defundef, macro, "*/"
25820       next
25821     }
25822   }
25823 }
25824 { print }
25825 _ACAWK
25826 _ACEOF
25827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25828   as_fn_error "could not setup config headers machinery" "$LINENO" 5
25829 fi # test -n "$CONFIG_HEADERS"
25830
25831
25832 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25833 shift
25834 for ac_tag
25835 do
25836   case $ac_tag in
25837   :[FHLC]) ac_mode=$ac_tag; continue;;
25838   esac
25839   case $ac_mode$ac_tag in
25840   :[FHL]*:*);;
25841   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25842   :[FH]-) ac_tag=-:-;;
25843   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25844   esac
25845   ac_save_IFS=$IFS
25846   IFS=:
25847   set x $ac_tag
25848   IFS=$ac_save_IFS
25849   shift
25850   ac_file=$1
25851   shift
25852
25853   case $ac_mode in
25854   :L) ac_source=$1;;
25855   :[FH])
25856     ac_file_inputs=
25857     for ac_f
25858     do
25859       case $ac_f in
25860       -) ac_f="$tmp/stdin";;
25861       *) # Look for the file first in the build tree, then in the source tree
25862          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25863          # because $ac_f cannot contain `:'.
25864          test -f "$ac_f" ||
25865            case $ac_f in
25866            [\\/$]*) false;;
25867            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25868            esac ||
25869            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25870       esac
25871       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25872       as_fn_append ac_file_inputs " '$ac_f'"
25873     done
25874
25875     # Let's still pretend it is `configure' which instantiates (i.e., don't
25876     # use $as_me), people would be surprised to read:
25877     #    /* config.h.  Generated by config.status.  */
25878     configure_input='Generated from '`
25879           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25880         `' by configure.'
25881     if test x"$ac_file" != x-; then
25882       configure_input="$ac_file.  $configure_input"
25883       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25884 $as_echo "$as_me: creating $ac_file" >&6;}
25885     fi
25886     # Neutralize special characters interpreted by sed in replacement strings.
25887     case $configure_input in #(
25888     *\&* | *\|* | *\\* )
25889        ac_sed_conf_input=`$as_echo "$configure_input" |
25890        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25891     *) ac_sed_conf_input=$configure_input;;
25892     esac
25893
25894     case $ac_tag in
25895     *:-:* | *:-) cat >"$tmp/stdin" \
25896       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25897     esac
25898     ;;
25899   esac
25900
25901   ac_dir=`$as_dirname -- "$ac_file" ||
25902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25903          X"$ac_file" : 'X\(//\)[^/]' \| \
25904          X"$ac_file" : 'X\(//\)$' \| \
25905          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25906 $as_echo X"$ac_file" |
25907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25908             s//\1/
25909             q
25910           }
25911           /^X\(\/\/\)[^/].*/{
25912             s//\1/
25913             q
25914           }
25915           /^X\(\/\/\)$/{
25916             s//\1/
25917             q
25918           }
25919           /^X\(\/\).*/{
25920             s//\1/
25921             q
25922           }
25923           s/.*/./; q'`
25924   as_dir="$ac_dir"; as_fn_mkdir_p
25925   ac_builddir=.
25926
25927 case "$ac_dir" in
25928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25929 *)
25930   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25931   # A ".." for each directory in $ac_dir_suffix.
25932   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25933   case $ac_top_builddir_sub in
25934   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25935   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25936   esac ;;
25937 esac
25938 ac_abs_top_builddir=$ac_pwd
25939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25940 # for backward compatibility:
25941 ac_top_builddir=$ac_top_build_prefix
25942
25943 case $srcdir in
25944   .)  # We are building in place.
25945     ac_srcdir=.
25946     ac_top_srcdir=$ac_top_builddir_sub
25947     ac_abs_top_srcdir=$ac_pwd ;;
25948   [\\/]* | ?:[\\/]* )  # Absolute name.
25949     ac_srcdir=$srcdir$ac_dir_suffix;
25950     ac_top_srcdir=$srcdir
25951     ac_abs_top_srcdir=$srcdir ;;
25952   *) # Relative name.
25953     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25954     ac_top_srcdir=$ac_top_build_prefix$srcdir
25955     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25956 esac
25957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25958
25959
25960   case $ac_mode in
25961   :F)
25962   #
25963   # CONFIG_FILE
25964   #
25965
25966   case $INSTALL in
25967   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25968   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25969   esac
25970 _ACEOF
25971
25972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25973 # If the template does not know about datarootdir, expand it.
25974 # FIXME: This hack should be removed a few years after 2.60.
25975 ac_datarootdir_hack=; ac_datarootdir_seen=
25976 ac_sed_dataroot='
25977 /datarootdir/ {
25978   p
25979   q
25980 }
25981 /@datadir@/p
25982 /@docdir@/p
25983 /@infodir@/p
25984 /@localedir@/p
25985 /@mandir@/p'
25986 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25987 *datarootdir*) ac_datarootdir_seen=yes;;
25988 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25989   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25990 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25991 _ACEOF
25992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25993   ac_datarootdir_hack='
25994   s&@datadir@&$datadir&g
25995   s&@docdir@&$docdir&g
25996   s&@infodir@&$infodir&g
25997   s&@localedir@&$localedir&g
25998   s&@mandir@&$mandir&g
25999   s&\\\${datarootdir}&$datarootdir&g' ;;
26000 esac
26001 _ACEOF
26002
26003 # Neutralize VPATH when `$srcdir' = `.'.
26004 # Shell code in configure.ac might set extrasub.
26005 # FIXME: do we really want to maintain this feature?
26006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26007 ac_sed_extra="$ac_vpsub
26008 $extrasub
26009 _ACEOF
26010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26011 :t
26012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26013 s|@configure_input@|$ac_sed_conf_input|;t t
26014 s&@top_builddir@&$ac_top_builddir_sub&;t t
26015 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26016 s&@srcdir@&$ac_srcdir&;t t
26017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26018 s&@top_srcdir@&$ac_top_srcdir&;t t
26019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26020 s&@builddir@&$ac_builddir&;t t
26021 s&@abs_builddir@&$ac_abs_builddir&;t t
26022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26023 s&@INSTALL@&$ac_INSTALL&;t t
26024 $ac_datarootdir_hack
26025 "
26026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26027   || as_fn_error "could not create $ac_file" "$LINENO" 5
26028
26029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26030   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26031   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26032   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26033 which seems to be undefined.  Please make sure it is defined." >&5
26034 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26035 which seems to be undefined.  Please make sure it is defined." >&2;}
26036
26037   rm -f "$tmp/stdin"
26038   case $ac_file in
26039   -) cat "$tmp/out" && rm -f "$tmp/out";;
26040   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26041   esac \
26042   || as_fn_error "could not create $ac_file" "$LINENO" 5
26043  ;;
26044   :H)
26045   #
26046   # CONFIG_HEADER
26047   #
26048   if test x"$ac_file" != x-; then
26049     {
26050       $as_echo "/* $configure_input  */" \
26051       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26052     } >"$tmp/config.h" \
26053       || as_fn_error "could not create $ac_file" "$LINENO" 5
26054     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26055       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26057     else
26058       rm -f "$ac_file"
26059       mv "$tmp/config.h" "$ac_file" \
26060         || as_fn_error "could not create $ac_file" "$LINENO" 5
26061     fi
26062   else
26063     $as_echo "/* $configure_input  */" \
26064       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26065       || as_fn_error "could not create -" "$LINENO" 5
26066   fi
26067 # Compute "$ac_file"'s index in $config_headers.
26068 _am_stamp_count=1
26069 for _am_header in $config_headers :; do
26070   case $_am_header in
26071     "$ac_file" | "$ac_file":* )
26072       break ;;
26073     * )
26074       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26075   esac
26076 done
26077 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26079          X"$ac_file" : 'X\(//\)[^/]' \| \
26080          X"$ac_file" : 'X\(//\)$' \| \
26081          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26082 $as_echo X"$ac_file" |
26083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26084             s//\1/
26085             q
26086           }
26087           /^X\(\/\/\)[^/].*/{
26088             s//\1/
26089             q
26090           }
26091           /^X\(\/\/\)$/{
26092             s//\1/
26093             q
26094           }
26095           /^X\(\/\).*/{
26096             s//\1/
26097             q
26098           }
26099           s/.*/./; q'`/stamp-h$_am_stamp_count
26100  ;;
26101
26102   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26103 $as_echo "$as_me: executing $ac_file commands" >&6;}
26104  ;;
26105   esac
26106
26107
26108   case $ac_file$ac_mode in
26109     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26110   # Strip MF so we end up with the name of the file.
26111   mf=`echo "$mf" | sed -e 's/:.*$//'`
26112   # Check whether this is an Automake generated Makefile or not.
26113   # We used to match only the files named `Makefile.in', but
26114   # some people rename them; so instead we look at the file content.
26115   # Grep'ing the first line is not enough: some people post-process
26116   # each Makefile.in and add a new line on top of each file to say so.
26117   # So let's grep whole file.
26118   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26119     dirpart=`$as_dirname -- "$mf" ||
26120 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26121          X"$mf" : 'X\(//\)[^/]' \| \
26122          X"$mf" : 'X\(//\)$' \| \
26123          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26124 $as_echo X"$mf" |
26125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26126             s//\1/
26127             q
26128           }
26129           /^X\(\/\/\)[^/].*/{
26130             s//\1/
26131             q
26132           }
26133           /^X\(\/\/\)$/{
26134             s//\1/
26135             q
26136           }
26137           /^X\(\/\).*/{
26138             s//\1/
26139             q
26140           }
26141           s/.*/./; q'`
26142   else
26143     continue
26144   fi
26145   # Extract the definition of DEPDIR, am__include, and am__quote
26146   # from the Makefile without running `make'.
26147   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26148   test -z "$DEPDIR" && continue
26149   am__include=`sed -n 's/^am__include = //p' < "$mf"`
26150   test -z "am__include" && continue
26151   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26152   # When using ansi2knr, U may be empty or an underscore; expand it
26153   U=`sed -n 's/^U = //p' < "$mf"`
26154   # Find all dependency output files, they are included files with
26155   # $(DEPDIR) in their names.  We invoke sed twice because it is the
26156   # simplest approach to changing $(DEPDIR) to its actual value in the
26157   # expansion.
26158   for file in `sed -n "
26159     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26160        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26161     # Make sure the directory exists.
26162     test -f "$dirpart/$file" && continue
26163     fdir=`$as_dirname -- "$file" ||
26164 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26165          X"$file" : 'X\(//\)[^/]' \| \
26166          X"$file" : 'X\(//\)$' \| \
26167          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26168 $as_echo X"$file" |
26169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26170             s//\1/
26171             q
26172           }
26173           /^X\(\/\/\)[^/].*/{
26174             s//\1/
26175             q
26176           }
26177           /^X\(\/\/\)$/{
26178             s//\1/
26179             q
26180           }
26181           /^X\(\/\).*/{
26182             s//\1/
26183             q
26184           }
26185           s/.*/./; q'`
26186     as_dir=$dirpart/$fdir; as_fn_mkdir_p
26187     # echo "creating $dirpart/$file"
26188     echo '# dummy' > "$dirpart/$file"
26189   done
26190 done
26191  ;;
26192     "default":C)
26193 chmod +x tests/run
26194 date > stamp-h
26195 BACKENDSC="servers/slapd/backends.c"
26196 echo "Making $BACKENDSC"
26197 rm -f $BACKENDSC
26198 cat > $BACKENDSC << ENDX
26199 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26200  *
26201  * Copyright 1998-2011 The OpenLDAP Foundation.
26202  * All rights reserved.
26203  *
26204  * Redistribution and use in source and binary forms, with or without
26205  * modification, are permitted only as authorized by the OpenLDAP
26206  * Public License.
26207  *
26208  * A copy of this license is available in the file LICENSE in the
26209  * top-level directory of the distribution or, alternatively, at
26210  * <http://www.OpenLDAP.org/license.html>.
26211  */
26212 /* This file is automatically generated by configure; please do not edit. */
26213
26214 #include "portable.h"
26215 #include "slap.h"
26216
26217 ENDX
26218 if test "${STATIC_BACKENDS}"; then
26219         for b in config ${STATIC_BACKENDS}; do
26220                 bb=`echo "${b}" | sed -e 's/back-//'`
26221                 cat >> $BACKENDSC << ENDX
26222 extern BI_init ${bb}_back_initialize;
26223 ENDX
26224         done
26225
26226         cat >> $BACKENDSC << ENDX
26227
26228 BackendInfo slap_binfo[] = {
26229 ENDX
26230
26231         for b in config ${STATIC_BACKENDS}; do
26232                 bb=`echo "${b}" | sed -e 's/back-//'`
26233                 echo "    Add ${bb} ..."
26234                 cat >> $BACKENDSC << ENDX
26235         { "${bb}", ${bb}_back_initialize },
26236 ENDX
26237         done
26238
26239         cat >> $BACKENDSC << ENDX
26240         { NULL, NULL },
26241 };
26242
26243 /* end of generated file */
26244 ENDX
26245 fi
26246 OVERLAYSC="servers/slapd/overlays/statover.c"
26247 echo "Making $OVERLAYSC"
26248 rm -f $OVERLAYSC
26249 cat > $OVERLAYSC << ENDX
26250 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26251  *
26252  * Copyright 1998-2011 The OpenLDAP Foundation.
26253  * All rights reserved.
26254  *
26255  * Redistribution and use in source and binary forms, with or without
26256  * modification, are permitted only as authorized by the OpenLDAP
26257  * Public License.
26258  *
26259  * A copy of this license is available in the file LICENSE in the
26260  * top-level directory of the distribution or, alternatively, at
26261  * <http://www.OpenLDAP.org/license.html>.
26262  */
26263 /* This file is automatically generated by configure; please do not edit. */
26264
26265 #include "portable.h"
26266 #include "slap.h"
26267
26268 ENDX
26269 if test "${STATIC_OVERLAYS}"; then
26270         for o in ${STATIC_OVERLAYS}; do
26271                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26272                 cat >> $OVERLAYSC << ENDX
26273 extern OV_init ${oo}_initialize;
26274 ENDX
26275         done
26276 fi
26277
26278 cat >> $OVERLAYSC << ENDX
26279
26280 OverlayInit slap_oinfo[] = {
26281 ENDX
26282
26283 if test "${STATIC_OVERLAYS}"; then
26284         for o in ${STATIC_OVERLAYS}; do
26285                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26286                 echo "    Add ${oo} ..."
26287                 cat >> $OVERLAYSC << ENDX
26288         { "${oo}", ${oo}_initialize },
26289 ENDX
26290         done
26291 fi
26292
26293         cat >> $OVERLAYSC << ENDX
26294         { NULL, NULL },
26295 };
26296
26297 /* end of generated file */
26298 ENDX
26299
26300 if test "${ol_cv_mkdep}" = no; then
26301         echo '(Do not "make depend"; we do not know how to build dependencies)'
26302 else
26303         echo 'Please run "make depend" to build dependencies'
26304 fi
26305  ;;
26306
26307   esac
26308 done # for ac_tag
26309
26310
26311 as_fn_exit 0
26312 _ACEOF
26313 ac_clean_files=$ac_clean_files_save
26314
26315 test $ac_write_fail = 0 ||
26316   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26317
26318
26319 # configure is writing to config.log, and then calls config.status.
26320 # config.status does its own redirection, appending to config.log.
26321 # Unfortunately, on DOS this fails, as config.log is still kept open
26322 # by configure, so config.status won't be able to write to it; its
26323 # output is simply discarded.  So we exec the FD to /dev/null,
26324 # effectively closing config.log, so it can be properly (re)opened and
26325 # appended to by config.status.  When coming back to configure, we
26326 # need to make the FD available again.
26327 if test "$no_create" != yes; then
26328   ac_cs_success=:
26329   ac_config_status_args=
26330   test "$silent" = yes &&
26331     ac_config_status_args="$ac_config_status_args --quiet"
26332   exec 5>/dev/null
26333   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26334   exec 5>>config.log
26335   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26336   # would make configure fail if this is the last instruction.
26337   $ac_cs_success || as_fn_exit $?
26338 fi
26339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26340   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26341 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26342 fi
26343