040a406331d73efc83fe202a2d151e6b0855d4ea
[cyrus-sasl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="lib/saslint.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 enable_option_checking=no
613 ac_subst_vars='subdirs
614 DIRS
615 LTLIBOBJS
616 LTGETNAMEINFOOBJS
617 GETNAMEINFOOBJS
618 LTGETADDRINFOOBJS
619 GETADDRINFOOBJS
620 LTSNPRINTFOBJS
621 SNPRINTFOBJS
622 GETSUBOPT
623 LIBOBJS
624 SASL_UTIL_HEADERS_EXTRA
625 SASL_UTIL_LIBS_EXTRA
626 SMTPTEST_PROGRAM
627 SFIO_LIB_FLAGS
628 SFIO_INC_FLAGS
629 DMALLOC_LIBS
630 MACOSX_FALSE
631 MACOSX_TRUE
632 configdir
633 plugindir
634 SASL_STATIC_LIBS
635 SASL_STATIC_OBJS
636 SASL_STATIC_SRCS
637 SASL_MECHS
638 LIB_LDAP
639 LIB_SQLITE
640 LIB_PGSQL
641 LIB_MYSQL
642 PASSDSS_LIBS
643 NTLM_LIBS
644 PLAIN_LIBS
645 GSSAPIBASE_LIBS
646 GSSAPI_LIBS
647 LIB_CRYPT
648 SASL_KRB_LIB
649 SRP_LIBS
650 OTP_LIBS
651 LIB_DES
652 CMU_LIB_SUBDIR
653 LIB_DOOR
654 IPCTYPE
655 PWCHECK_FALSE
656 PWCHECK_TRUE
657 PWCHECKMETH
658 SASLAUTHD_FALSE
659 SASLAUTHD_TRUE
660 SASL_DL_LIB
661 NO_SASL_DB_MANS_FALSE
662 NO_SASL_DB_MANS_TRUE
663 SASL_DB_LIB
664 SASL_DB_INC
665 SASL_DB_BACKEND_STATIC
666 SASL_DB_BACKEND
667 SASL_DB_MANS
668 SASL_DB_UTILS
669 LIB_SOCKET
670 SAMPLE_FALSE
671 SAMPLE_TRUE
672 JAVAROOT
673 JAVA_INCLUDES
674 JAVA_FALSE
675 JAVA_TRUE
676 JAVADOC
677 JAVAH
678 JAVAC
679 PURIFY
680 PURECOV
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 RANLIB
687 AR
688 OBJDUMP
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 LIBTOOL
698 LN_S
699 CPP
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_os
740 target_vendor
741 target_cpu
742 target
743 host_os
744 host_vendor
745 host_cpu
746 host
747 build_os
748 build_vendor
749 build_cpu
750 build
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_cmulocal
793 enable_sample
794 enable_dependency_tracking
795 with_staticsasl
796 enable_static
797 enable_shared
798 with_pic
799 enable_fast_install
800 with_gnu_ld
801 enable_libtool_lock
802 enable_staticdlopen
803 with_purecov
804 with_purify
805 enable_java
806 with_javabase
807 with_dbpath
808 with_dblib
809 with_bdb_libdir
810 with_bdb_incdir
811 with_gdbm
812 enable_keep_db_open
813 with_devrandom
814 with_pam
815 with_saslauthd
816 with_authdaemond
817 with_pwcheck
818 with_ipctype
819 enable_alwaystrue
820 enable_checkapop
821 enable_cram
822 with_lib_subdir
823 with_openssl
824 with_des
825 enable_digest
826 enable_otp
827 with_with_opie
828 enable_srp
829 enable_srp_setpass
830 enable_krb4
831 enable_gssapi
832 with_gss_impl
833 enable_gss_mutexes
834 enable_plain
835 enable_anon
836 enable_login
837 enable_ntlm
838 enable_passdss
839 with_ldap
840 enable_sql
841 with_mysql
842 with_pgsql
843 with_sqlite
844 enable_ldapdb
845 with_plugindir
846 with_configdir
847 with_rc4
848 enable_macos_framework
849 with_dmalloc
850 with_sfio
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP'
861 ac_subdirs_all='saslauthd'
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *=)   ac_optarg= ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=\$ac_optarg ;;
1211
1212   -without-* | --without-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     case $ac_envvar in #(
1254       '' | [0-9]* | *[!_$as_cr_alnum]* )
1255       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256     esac
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277   case $enable_option_checking in
1278     no) ;;
1279     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281   esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286                 datadir sysconfdir sharedstatedir localstatedir includedir \
1287                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288                 libdir localedir mandir
1289 do
1290   eval ac_val=\$$ac_var
1291   # Remove trailing slashes.
1292   case $ac_val in
1293     */ )
1294       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295       eval $ac_var=\$ac_val;;
1296   esac
1297   # Be sure to have absolute directory names.
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1317     If a cross compiler is detected then cross compile mode will be used" >&2
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334   as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339   ac_srcdir_defaulted=yes
1340   # Try the directory containing this script, then the parent directory.
1341   ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343          X"$as_myself" : 'X\(//\)[^/]' \| \
1344          X"$as_myself" : 'X\(//\)$' \| \
1345          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)[^/].*/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\).*/{
1360             s//\1/
1361             q
1362           }
1363           s/.*/./; q'`
1364   srcdir=$ac_confdir
1365   if test ! -r "$srcdir/$ac_unique_file"; then
1366     srcdir=..
1367   fi
1368 else
1369   ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures this package to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking ...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR            user executables [EPREFIX/bin]
1438   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR        program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443   --libdir=DIR            object code libraries [EPREFIX/lib]
1444   --includedir=DIR        C header files [PREFIX/include]
1445   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1446   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1447   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1448   --infodir=DIR           info documentation [DATAROOTDIR/info]
1449   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1450   --mandir=DIR            man documentation [DATAROOTDIR/man]
1451   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1452   --htmldir=DIR           html documentation [DOCDIR]
1453   --dvidir=DIR            dvi documentation [DOCDIR]
1454   --pdfdir=DIR            pdf documentation [DOCDIR]
1455   --psdir=DIR             ps documentation [DOCDIR]
1456 _ACEOF
1457
1458   cat <<\_ACEOF
1459
1460 Program names:
1461   --program-prefix=PREFIX            prepend PREFIX to installed program names
1462   --program-suffix=SUFFIX            append SUFFIX to installed program names
1463   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464
1465 System types:
1466   --build=BUILD     configure for building on BUILD [guessed]
1467   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468   --target=TARGET   configure for building compilers for TARGET [HOST]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-option-checking  ignore unrecognized --enable/--with options
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --enable-cmulocal       enable local mods for CMU [[no]]
1481   --enable-sample         compile sample code [[yes]]
1482   --disable-dependency-tracking  speeds up one-time build
1483   --enable-dependency-tracking   do not reject slow dependency extractors
1484   --enable-static[=PKGS]  build static libraries [default=no]
1485   --enable-shared[=PKGS]  build shared libraries [default=yes]
1486   --enable-fast-install[=PKGS]
1487                           optimize for fast installation [default=yes]
1488   --disable-libtool-lock  avoid locking (might break parallel builds)
1489   --enable-staticdlopen   try dynamic plugins when we are a static libsasl [no]
1490   --enable-java           compile Java support [no]
1491   --enable-keep-db-open   keep handle to Berkeley DB open for improved performance [no]
1492   --enable-alwaystrue     enable the alwaystrue password verifier (discouraged)
1493   --enable-checkapop      enable use of sasl_checkapop [yes]
1494   --enable-cram           enable CRAM-MD5 authentication [yes]
1495   --enable-digest         enable DIGEST-MD5 authentication [yes]
1496   --enable-otp            enable OTP authentication [yes]
1497   --enable-srp            enable SRP authentication [no]
1498   --enable-srp-setpass    enable setting SRP secrets with saslpasswd [no]
1499   --enable-krb4           enable KERBEROS_V4 authentication [no]
1500   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1501   --enable-gss_mutexes     use mutexes around calls to the GSS library
1502   --enable-plain          enable PLAIN authentication yes
1503   --enable-anon           enable ANONYMOUS authentication [yes]
1504   --enable-login          enable unsupported LOGIN authentication [no]
1505   --enable-ntlm           enable unsupported NTLM authentication [no]
1506   --enable-passdss        enable PASSDSS authentication (experimental) [no]
1507   --enable-sql            enable SQL auxprop [no]
1508   --enable-ldapdb         enable LDAPDB plugin no
1509   --disable-macos-framework       disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1510
1511 Optional Packages:
1512   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514
1515   --with-pic              try to use only PIC/non-PIC objects [default=use
1516                           both]
1517   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518   --with-purecov          link with purecov
1519   --with-purify           link with purify
1520   --with-javabase=PATH    set path to find jni.h in /usr/java/include
1521   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
1522   --with-dblib=DBLIB      set the DB library to use berkeley
1523   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
1524   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
1525   --with-gdbm=PATH        use gdbm from PATH
1526   --with-devrandom=PATH   set the path to /dev/random [/dev/random]
1527   --with-pam=DIR          use PAM (rooted in DIR) [yes]
1528   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
1529   --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1530   --with-pwcheck=DIR     enable deprecated pwcheck daemon using statedir DIR
1531   --with-ipctype={unix,doors}    use ipctype [unix]
1532   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1533   --with-openssl=PATH     use OpenSSL from PATH
1534   --with-des=DIR          with DES (look in DIR) yes
1535   --with-opie=PATH        use OPIE (One Time Passwords in Everything) from PATH
1536   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1537                           choose specific GSSAPI implementation [[auto]]
1538   --with-ldap=DIR         use LDAP (in DIR) for saslauthd no
1539   --with-mysql=PATH       use MySQL from PATH
1540   --with-pgsql=PATH       use PostgreSQL from PATH
1541   --with-sqlite=PATH       use SQLite from PATH
1542   --with-plugindir=DIR    set the directory where plugins will
1543                           be found [/usr/lib/sasl2]
1544    --with-configdir=DIR    set the directory where config files will
1545                           be found /usr/lib/sasl2
1546   --with-rc4              use internal rc4 routines [yes]
1547   --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
1548   --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to the package provider.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" ||
1572       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573       continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 configure
1627 generated by GNU Autoconf 2.68
1628
1629 Copyright (C) 2010 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633   exit
1634 fi
1635
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1639
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   rm -f conftest.$ac_objext
1647   if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_compile") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } && {
1663          test -z "$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        } && test -s conftest.$ac_objext; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671         ac_retval=1
1672 fi
1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674   as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_compile
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } > conftest.i && {
1700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708     ac_retval=1
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   rm -f conftest.$ac_objext conftest$ac_exeext
1722   if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_link") 2>conftest.err
1730   ac_status=$?
1731   if test -s conftest.err; then
1732     grep -v '^ *+' conftest.err >conftest.er1
1733     cat conftest.er1 >&5
1734     mv -f conftest.er1 conftest.err
1735   fi
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } && {
1738          test -z "$ac_c_werror_flag" ||
1739          test ! -s conftest.err
1740        } && test -s conftest$ac_exeext && {
1741          test "$cross_compiling" = yes ||
1742          $as_test_x conftest$ac_exeext
1743        }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749         ac_retval=1
1750 fi
1751   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753   # interfere with the next link command; also delete a directory that is
1754   # left behind by Apple's compiler.  We do this before executing the actions.
1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_link
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771   $as_echo_n "(cached) " >&6
1772 else
1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779   eval "$3=yes"
1780 else
1781   eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_link") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810   { { case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_try") 2>&5
1817   ac_status=$?
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; }; }; then :
1820   ac_retval=0
1821 else
1822   $as_echo "$as_me: program exited with status $ac_status" >&5
1823        $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826        ac_retval=$ac_status
1827 fi
1828   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830   as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_run
1833
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843   $as_echo_n "(cached) " >&6
1844 else
1845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1849 #define $2 innocuous_$2
1850
1851 /* System header to define __stub macros and hopefully few prototypes,
1852     which can conflict with char $2 (); below.
1853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854     <limits.h> exists even on freestanding compilers.  */
1855
1856 #ifdef __STDC__
1857 # include <limits.h>
1858 #else
1859 # include <assert.h>
1860 #endif
1861
1862 #undef $2
1863
1864 /* Override any GCC internal prototype to avoid an error.
1865    Use char because int might match the return type of a GCC
1866    builtin and then its argument prototype would still apply.  */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 ();
1871 /* The GNU C library defines this for functions which it implements
1872     to always fail with ENOSYS.  Some functions are actually named
1873     something starting with __ and the normal name is an alias.  */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1877
1878 int
1879 main ()
1880 {
1881 return $2 ();
1882   ;
1883   return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"; then :
1887   eval "$3=yes"
1888 else
1889   eval "$3=no"
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext \
1892     conftest$ac_exeext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1905 # accordingly.
1906 ac_fn_c_check_header_mongrel ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   if eval \${$3+:} false; then :
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913   $as_echo_n "(cached) " >&6
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 else
1919   # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928   ac_header_compiler=yes
1929 else
1930   ac_header_compiler=no
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1935
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944   ac_header_preproc=yes
1945 else
1946   ac_header_preproc=no
1947 fi
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1951
1952 # So?  What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954   yes:no: )
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959     ;;
1960   no:yes:* )
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971     ;;
1972 esac
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   eval "$3=\$ac_header_compiler"
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 fi
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_header_mongrel
1987
1988 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1989 # --------------------------------------------
1990 # Tries to find the compile-time value of EXPR in a program that includes
1991 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992 # computed
1993 ac_fn_c_compute_int ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   if test "$cross_compiling" = yes; then
1997     # Depending upon the size, compute the lo and hi bounds.
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 $4
2001 int
2002 main ()
2003 {
2004 static int test_array [1 - 2 * !(($2) >= 0)];
2005 test_array [0] = 0
2006
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012   ac_lo=0 ac_mid=0
2013   while :; do
2014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 test_array [0] = 0
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_hi=$ac_mid; break
2029 else
2030   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031                         if test $ac_lo -le $ac_mid; then
2032                           ac_lo= ac_hi=
2033                           break
2034                         fi
2035                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038   done
2039 else
2040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) < 0)];
2047 test_array [0] = 0
2048
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_hi=-1 ac_mid=-1
2055   while :; do
2056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2063 test_array [0] = 0
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_lo=$ac_mid; break
2071 else
2072   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2073                         if test $ac_mid -le $ac_hi; then
2074                           ac_lo= ac_hi=
2075                           break
2076                         fi
2077                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080   done
2081 else
2082   ac_lo= ac_hi=
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 # Binary search between lo and hi bounds.
2088 while test "x$ac_lo" != "x$ac_hi"; do
2089   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 test_array [0] = 0
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104   ac_hi=$ac_mid
2105 else
2106   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 case $ac_lo in #((
2111 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2112 '') ac_retval=1 ;;
2113 esac
2114   else
2115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 static long int longval () { return $2; }
2119 static unsigned long int ulongval () { return $2; }
2120 #include <stdio.h>
2121 #include <stdlib.h>
2122 int
2123 main ()
2124 {
2125
2126   FILE *f = fopen ("conftest.val", "w");
2127   if (! f)
2128     return 1;
2129   if (($2) < 0)
2130     {
2131       long int i = longval ();
2132       if (i != ($2))
2133         return 1;
2134       fprintf (f, "%ld", i);
2135     }
2136   else
2137     {
2138       unsigned long int i = ulongval ();
2139       if (i != ($2))
2140         return 1;
2141       fprintf (f, "%lu", i);
2142     }
2143   /* Do not output a trailing newline, as this causes \r\n confusion
2144      on some platforms.  */
2145   return ferror (f) || fclose (f) != 0;
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_run "$LINENO"; then :
2152   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2153 else
2154   ac_retval=1
2155 fi
2156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2157   conftest.$ac_objext conftest.beam conftest.$ac_ext
2158 rm -f conftest.val
2159
2160   fi
2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162   as_fn_set_status $ac_retval
2163
2164 } # ac_fn_c_compute_int
2165
2166 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2167 # -------------------------------------------
2168 # Tests whether TYPE exists after having included INCLUDES, setting cache
2169 # variable VAR accordingly.
2170 ac_fn_c_check_type ()
2171 {
2172   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176   $as_echo_n "(cached) " >&6
2177 else
2178   eval "$3=no"
2179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 if (sizeof ($2))
2186          return 0;
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h.  */
2194 $4
2195 int
2196 main ()
2197 {
2198 if (sizeof (($2)))
2199             return 0;
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205
2206 else
2207   eval "$3=yes"
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_c_check_type
2219 cat >config.log <<_ACEOF
2220 This file contains any messages produced by compilers while
2221 running configure, to aid debugging if configure makes a mistake.
2222
2223 It was created by $as_me, which was
2224 generated by GNU Autoconf 2.68.  Invocation command line was
2225
2226   $ $0 $@
2227
2228 _ACEOF
2229 exec 5>>config.log
2230 {
2231 cat <<_ASUNAME
2232 ## --------- ##
2233 ## Platform. ##
2234 ## --------- ##
2235
2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2241
2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2244
2245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2248 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2252
2253 _ASUNAME
2254
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260     $as_echo "PATH: $as_dir"
2261   done
2262 IFS=$as_save_IFS
2263
2264 } >&5
2265
2266 cat >&5 <<_ACEOF
2267
2268
2269 ## ----------- ##
2270 ## Core tests. ##
2271 ## ----------- ##
2272
2273 _ACEOF
2274
2275
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2281 ac_configure_args=
2282 ac_configure_args0=
2283 ac_configure_args1=
2284 ac_must_keep_next=false
2285 for ac_pass in 1 2
2286 do
2287   for ac_arg
2288   do
2289     case $ac_arg in
2290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292     | -silent | --silent | --silen | --sile | --sil)
2293       continue ;;
2294     *\'*)
2295       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2296     esac
2297     case $ac_pass in
2298     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299     2)
2300       as_fn_append ac_configure_args1 " '$ac_arg'"
2301       if test $ac_must_keep_next = true; then
2302         ac_must_keep_next=false # Got value, back to normal.
2303       else
2304         case $ac_arg in
2305           *=* | --config-cache | -C | -disable-* | --disable-* \
2306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308           | -with-* | --with-* | -without-* | --without-* | --x)
2309             case "$ac_configure_args0 " in
2310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2311             esac
2312             ;;
2313           -* ) ac_must_keep_next=true ;;
2314         esac
2315       fi
2316       as_fn_append ac_configure_args " '$ac_arg'"
2317       ;;
2318     esac
2319   done
2320 done
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2323
2324 # When interrupted or exit'd, cleanup temporary files, and complete
2325 # config.log.  We remove comments because anyway the quotes in there
2326 # would cause problems or look ugly.
2327 # WARNING: Use '\'' to represent an apostrophe within the trap.
2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2329 trap 'exit_status=$?
2330   # Save into config.log some information that might help in debugging.
2331   {
2332     echo
2333
2334     $as_echo "## ---------------- ##
2335 ## Cache variables. ##
2336 ## ---------------- ##"
2337     echo
2338     # The following way of writing the cache mishandles newlines in values,
2339 (
2340   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2341     eval ac_val=\$$ac_var
2342     case $ac_val in #(
2343     *${as_nl}*)
2344       case $ac_var in #(
2345       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2347       esac
2348       case $ac_var in #(
2349       _ | IFS | as_nl) ;; #(
2350       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2351       *) { eval $ac_var=; unset $ac_var;} ;;
2352       esac ;;
2353     esac
2354   done
2355   (set) 2>&1 |
2356     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2357     *${as_nl}ac_space=\ *)
2358       sed -n \
2359         "s/'\''/'\''\\\\'\'''\''/g;
2360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2361       ;; #(
2362     *)
2363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364       ;;
2365     esac |
2366     sort
2367 )
2368     echo
2369
2370     $as_echo "## ----------------- ##
2371 ## Output variables. ##
2372 ## ----------------- ##"
2373     echo
2374     for ac_var in $ac_subst_vars
2375     do
2376       eval ac_val=\$$ac_var
2377       case $ac_val in
2378       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379       esac
2380       $as_echo "$ac_var='\''$ac_val'\''"
2381     done | sort
2382     echo
2383
2384     if test -n "$ac_subst_files"; then
2385       $as_echo "## ------------------- ##
2386 ## File substitutions. ##
2387 ## ------------------- ##"
2388       echo
2389       for ac_var in $ac_subst_files
2390       do
2391         eval ac_val=\$$ac_var
2392         case $ac_val in
2393         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394         esac
2395         $as_echo "$ac_var='\''$ac_val'\''"
2396       done | sort
2397       echo
2398     fi
2399
2400     if test -s confdefs.h; then
2401       $as_echo "## ----------- ##
2402 ## confdefs.h. ##
2403 ## ----------- ##"
2404       echo
2405       cat confdefs.h
2406       echo
2407     fi
2408     test "$ac_signal" != 0 &&
2409       $as_echo "$as_me: caught signal $ac_signal"
2410     $as_echo "$as_me: exit $exit_status"
2411   } >&5
2412   rm -f core *.core core.conftest.* &&
2413     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2414     exit $exit_status
2415 ' 0
2416 for ac_signal in 1 2 13 15; do
2417   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2418 done
2419 ac_signal=0
2420
2421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2422 rm -f -r conftest* confdefs.h
2423
2424 $as_echo "/* confdefs.h */" > confdefs.h
2425
2426 # Predefined preprocessor variables.
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_NAME "$PACKAGE_NAME"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_STRING "$PACKAGE_STRING"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_URL "$PACKAGE_URL"
2450 _ACEOF
2451
2452
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2455 ac_site_file1=NONE
2456 ac_site_file2=NONE
2457 if test -n "$CONFIG_SITE"; then
2458   # We do not want a PATH search for config.site.
2459   case $CONFIG_SITE in #((
2460     -*)  ac_site_file1=./$CONFIG_SITE;;
2461     */*) ac_site_file1=$CONFIG_SITE;;
2462     *)   ac_site_file1=./$CONFIG_SITE;;
2463   esac
2464 elif test "x$prefix" != xNONE; then
2465   ac_site_file1=$prefix/share/config.site
2466   ac_site_file2=$prefix/etc/config.site
2467 else
2468   ac_site_file1=$ac_default_prefix/share/config.site
2469   ac_site_file2=$ac_default_prefix/etc/config.site
2470 fi
2471 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2472 do
2473   test "x$ac_site_file" = xNONE && continue
2474   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2476 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2477     sed 's/^/| /' "$ac_site_file" >&5
2478     . "$ac_site_file" \
2479       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "failed to load site script $ac_site_file
2482 See \`config.log' for more details" "$LINENO" 5; }
2483   fi
2484 done
2485
2486 if test -r "$cache_file"; then
2487   # Some versions of bash will fail to source /dev/null (special files
2488   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2489   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492     case $cache_file in
2493       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494       *)                      . "./$cache_file";;
2495     esac
2496   fi
2497 else
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2500   >$cache_file
2501 fi
2502
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508   eval ac_new_set=\$ac_env_${ac_var}_set
2509   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510   eval ac_new_val=\$ac_env_${ac_var}_value
2511   case $ac_old_set,$ac_new_set in
2512     set,)
2513       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515       ac_cache_corrupted=: ;;
2516     ,set)
2517       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519       ac_cache_corrupted=: ;;
2520     ,);;
2521     *)
2522       if test "x$ac_old_val" != "x$ac_new_val"; then
2523         # differences in whitespace do not lead to failure.
2524         ac_old_val_w=`echo x $ac_old_val`
2525         ac_new_val_w=`echo x $ac_new_val`
2526         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529           ac_cache_corrupted=:
2530         else
2531           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533           eval $ac_var=\$ac_old_val
2534         fi
2535         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2536 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2537         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2539       fi;;
2540   esac
2541   # Pass precious variables to config.status.
2542   if test "$ac_new_set" = set; then
2543     case $ac_new_val in
2544     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545     *) ac_arg=$ac_var=$ac_new_val ;;
2546     esac
2547     case " $ac_configure_args " in
2548       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2549       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550     esac
2551   fi
2552 done
2553 if $ac_cache_corrupted; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571
2572
2573
2574 if test $cache_file = "/dev/null"; then
2575 cache_file="./config.cache"
2576 if test -r "$cache_file"; then
2577   # Some versions of bash will fail to source /dev/null (special files
2578   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2579   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581 $as_echo "$as_me: loading cache $cache_file" >&6;}
2582     case $cache_file in
2583       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584       *)                      . "./$cache_file";;
2585     esac
2586   fi
2587 else
2588   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589 $as_echo "$as_me: creating cache $cache_file" >&6;}
2590   >$cache_file
2591 fi
2592
2593 fi
2594
2595 ac_aux_dir=
2596 for ac_dir in config "$srcdir"/config; do
2597   if test -f "$ac_dir/install-sh"; then
2598     ac_aux_dir=$ac_dir
2599     ac_install_sh="$ac_aux_dir/install-sh -c"
2600     break
2601   elif test -f "$ac_dir/install.sh"; then
2602     ac_aux_dir=$ac_dir
2603     ac_install_sh="$ac_aux_dir/install.sh -c"
2604     break
2605   elif test -f "$ac_dir/shtool"; then
2606     ac_aux_dir=$ac_dir
2607     ac_install_sh="$ac_aux_dir/shtool install -c"
2608     break
2609   fi
2610 done
2611 if test -z "$ac_aux_dir"; then
2612   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2613 fi
2614
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2622
2623
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if ${ac_cv_build+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2645 *-*-*) ;;
2646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2647 esac
2648 build=$ac_cv_build
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_build
2651 shift
2652 build_cpu=$1
2653 build_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 build_os=$*
2658 IFS=$ac_save_IFS
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if ${ac_cv_host+:} false; then :
2665   $as_echo_n "(cached) " >&6
2666 else
2667   if test "x$host_alias" = x; then
2668   ac_cv_host=$ac_cv_build
2669 else
2670   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2672 fi
2673
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2677 case $ac_cv_host in
2678 *-*-*) ;;
2679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2680 esac
2681 host=$ac_cv_host
2682 ac_save_IFS=$IFS; IFS='-'
2683 set x $ac_cv_host
2684 shift
2685 host_cpu=$1
2686 host_vendor=$2
2687 shift; shift
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2690 host_os=$*
2691 IFS=$ac_save_IFS
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696 $as_echo_n "checking target system type... " >&6; }
2697 if ${ac_cv_target+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test "x$target_alias" = x; then
2701   ac_cv_target=$ac_cv_host
2702 else
2703   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2704     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2705 fi
2706
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709 $as_echo "$ac_cv_target" >&6; }
2710 case $ac_cv_target in
2711 *-*-*) ;;
2712 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2713 esac
2714 target=$ac_cv_target
2715 ac_save_IFS=$IFS; IFS='-'
2716 set x $ac_cv_target
2717 shift
2718 target_cpu=$1
2719 target_vendor=$2
2720 shift; shift
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2723 target_os=$*
2724 IFS=$ac_save_IFS
2725 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2726
2727
2728 # The aliases save the names the user supplied, while $host etc.
2729 # will get canonicalized.
2730 test -n "$target_alias" &&
2731   test "$program_prefix$program_suffix$program_transform_name" = \
2732     NONENONEs,x,x, &&
2733   program_prefix=${target_alias}-
2734
2735 am__api_version='1.10'
2736
2737 # Find a good install program.  We prefer a C program (faster),
2738 # so one script is as good as another.  But avoid the broken or
2739 # incompatible versions:
2740 # SysV /etc/install, /usr/sbin/install
2741 # SunOS /usr/etc/install
2742 # IRIX /sbin/install
2743 # AIX /bin/install
2744 # AmigaOS /C/install, which installs bootblocks on floppy discs
2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748 # OS/2's system install, which has a completely different semantic
2749 # ./install, which can be erroneously created by make from ./install.sh.
2750 # Reject install programs that cannot install multiple files.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2753 if test -z "$INSTALL"; then
2754 if ${ac_cv_path_install+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762     # Account for people who put trailing slashes in PATH elements.
2763 case $as_dir/ in #((
2764   ./ | .// | /[cC]/* | \
2765   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2767   /usr/ucb/* ) ;;
2768   *)
2769     # OSF1 and SCO ODT 3.0 have their own names for install.
2770     # Don't use installbsd from OSF since it installs stuff as root
2771     # by default.
2772     for ac_prog in ginstall scoinst install; do
2773       for ac_exec_ext in '' $ac_executable_extensions; do
2774         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2775           if test $ac_prog = install &&
2776             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777             # AIX install.  It has an incompatible calling convention.
2778             :
2779           elif test $ac_prog = install &&
2780             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781             # program-specific install script used by HP pwplus--don't use.
2782             :
2783           else
2784             rm -rf conftest.one conftest.two conftest.dir
2785             echo one > conftest.one
2786             echo two > conftest.two
2787             mkdir conftest.dir
2788             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789               test -s conftest.one && test -s conftest.two &&
2790               test -s conftest.dir/conftest.one &&
2791               test -s conftest.dir/conftest.two
2792             then
2793               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2794               break 3
2795             fi
2796           fi
2797         fi
2798       done
2799     done
2800     ;;
2801 esac
2802
2803   done
2804 IFS=$as_save_IFS
2805
2806 rm -rf conftest.one conftest.two conftest.dir
2807
2808 fi
2809   if test "${ac_cv_path_install+set}" = set; then
2810     INSTALL=$ac_cv_path_install
2811   else
2812     # As a last resort, use the slow shell script.  Don't cache a
2813     # value for INSTALL within a source directory, because that will
2814     # break other packages using the cache if that directory is
2815     # removed, or if the value is a relative name.
2816     INSTALL=$ac_install_sh
2817   fi
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820 $as_echo "$INSTALL" >&6; }
2821
2822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823 # It thinks the first close brace ends the variable substitution.
2824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2825
2826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2827
2828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831 $as_echo_n "checking whether build environment is sane... " >&6; }
2832 # Just in case
2833 sleep 1
2834 echo timestamp > conftest.file
2835 # Do `set' in a subshell so we don't clobber the current shell's
2836 # arguments.  Must try -L first in case configure is actually a
2837 # symlink; some systems play weird games with the mod time of symlinks
2838 # (eg FreeBSD returns the mod time of the symlink's containing
2839 # directory).
2840 if (
2841    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2842    if test "$*" = "X"; then
2843       # -L didn't work.
2844       set X `ls -t $srcdir/configure conftest.file`
2845    fi
2846    rm -f conftest.file
2847    if test "$*" != "X $srcdir/configure conftest.file" \
2848       && test "$*" != "X conftest.file $srcdir/configure"; then
2849
2850       # If neither matched, then we have a broken ls.  This can happen
2851       # if, for instance, CONFIG_SHELL is bash and it inherits a
2852       # broken ls alias from the environment.  This has actually
2853       # happened.  Such a system could not be considered "sane".
2854       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2855 alias in your environment" "$LINENO" 5
2856    fi
2857
2858    test "$2" = conftest.file
2859    )
2860 then
2861    # Ok.
2862    :
2863 else
2864    as_fn_error $? "newly created file is older than distributed files!
2865 Check your system clock" "$LINENO" 5
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 test "$program_prefix" != NONE &&
2870   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2871 # Use a double $ so make ignores it.
2872 test "$program_suffix" != NONE &&
2873   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2874 # Double any \ or $.
2875 # By default was `s,x,x', remove it if useless.
2876 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2877 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2878
2879 # expand $ac_aux_dir to an absolute path
2880 am_aux_dir=`cd $ac_aux_dir && pwd`
2881
2882 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2883 # Use eval to expand $SHELL
2884 if eval "$MISSING --run true"; then
2885   am_missing_run="$MISSING --run "
2886 else
2887   am_missing_run=
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2889 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2890 fi
2891
2892 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2893
2894 # Installed binaries are usually stripped using `strip' when the user
2895 # run `make install-strip'.  However `strip' might not be the right
2896 # tool to use in cross-compilation environments, therefore Automake
2897 # will honor the `STRIP' environment variable to overrule this program.
2898 if test "$cross_compiling" != no; then
2899   if test -n "$ac_tool_prefix"; then
2900   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_STRIP+:} false; then :
2905   $as_echo_n "(cached) " >&6
2906 else
2907   if test -n "$STRIP"; then
2908   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913   IFS=$as_save_IFS
2914   test -z "$as_dir" && as_dir=.
2915     for ac_exec_ext in '' $ac_executable_extensions; do
2916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919     break 2
2920   fi
2921 done
2922   done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 STRIP=$ac_cv_prog_STRIP
2928 if test -n "$STRIP"; then
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2930 $as_echo "$STRIP" >&6; }
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$ac_cv_prog_STRIP"; then
2939   ac_ct_STRIP=$STRIP
2940   # Extract the first word of "strip", so it can be a program name with args.
2941 set dummy strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$ac_ct_STRIP"; then
2948   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957     ac_cv_prog_ac_ct_STRIP="strip"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968 if test -n "$ac_ct_STRIP"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970 $as_echo "$ac_ct_STRIP" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976   if test "x$ac_ct_STRIP" = x; then
2977     STRIP=":"
2978   else
2979     case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985     STRIP=$ac_ct_STRIP
2986   fi
2987 else
2988   STRIP="$ac_cv_prog_STRIP"
2989 fi
2990
2991 fi
2992 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2995 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2996 if test -z "$MKDIR_P"; then
2997   if ${ac_cv_path_mkdir+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     for ac_prog in mkdir gmkdir; do
3006          for ac_exec_ext in '' $ac_executable_extensions; do
3007            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3008            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3009              'mkdir (GNU coreutils) '* | \
3010              'mkdir (coreutils) '* | \
3011              'mkdir (fileutils) '4.1*)
3012                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3013                break 3;;
3014            esac
3015          done
3016        done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021
3022   test -d ./--version && rmdir ./--version
3023   if test "${ac_cv_path_mkdir+set}" = set; then
3024     MKDIR_P="$ac_cv_path_mkdir -p"
3025   else
3026     # As a last resort, use the slow shell script.  Don't cache a
3027     # value for MKDIR_P within a source directory, because that will
3028     # break other packages using the cache if that directory is
3029     # removed, or if the value is a relative name.
3030     MKDIR_P="$ac_install_sh -d"
3031   fi
3032 fi
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3034 $as_echo "$MKDIR_P" >&6; }
3035
3036 mkdir_p="$MKDIR_P"
3037 case $mkdir_p in
3038   [\\/$]* | ?:[\\/]*) ;;
3039   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3040 esac
3041
3042 for ac_prog in gawk mawk nawk awk
3043 do
3044   # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   if test -n "$AWK"; then
3052   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061     ac_cv_prog_AWK="$ac_prog"
3062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066   done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 AWK=$ac_cv_prog_AWK
3072 if test -n "$AWK"; then
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3075 else
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081   test -n "$AWK" && break
3082 done
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3086 set x ${MAKE-make}
3087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   cat >conftest.make <<\_ACEOF
3092 SHELL = /bin/sh
3093 all:
3094         @echo '@@@%%%=$(MAKE)=@@@%%%'
3095 _ACEOF
3096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3098   *@@@%%%=?*=@@@%%%*)
3099     eval ac_cv_prog_make_${ac_make}_set=yes;;
3100   *)
3101     eval ac_cv_prog_make_${ac_make}_set=no;;
3102 esac
3103 rm -f conftest.make
3104 fi
3105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3108   SET_MAKE=
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112   SET_MAKE="MAKE=${MAKE-make}"
3113 fi
3114
3115 rm -rf .tst 2>/dev/null
3116 mkdir .tst 2>/dev/null
3117 if test -d .tst; then
3118   am__leading_dot=.
3119 else
3120   am__leading_dot=_
3121 fi
3122 rmdir .tst 2>/dev/null
3123
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126   # is not polluted with repeated "-I."
3127   am__isrc=' -I$(srcdir)'
3128   # test to see if srcdir already configured
3129   if test -f $srcdir/config.status; then
3130     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131   fi
3132 fi
3133
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136   if (cygpath --version) >/dev/null 2>/dev/null; then
3137     CYGPATH_W='cygpath -w'
3138   else
3139     CYGPATH_W=echo
3140   fi
3141 fi
3142
3143
3144 # Define the identity of the package.
3145  PACKAGE=cyrus-sasl
3146  VERSION=2.1.23
3147
3148
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3151 _ACEOF
3152
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3156 _ACEOF
3157
3158 # Some tools Automake needs.
3159
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174 # We need awk for the "check" target.  The system "awk" is bad on
3175 # some platforms.
3176 # Always define AMTAR for backward compatibility.
3177
3178 AMTAR=${AMTAR-"${am_missing_run}tar"}
3179
3180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3181
3182
3183
3184
3185
3186
3187
3188         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
3189
3190
3191 # and include our config dir scripts
3192 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
3193
3194 DIRS=""
3195
3196 # Check whether --enable-cmulocal was given.
3197 if test "${enable_cmulocal+set}" = set; then :
3198   enableval=$enable_cmulocal;
3199 else
3200   enable_cmulocal=no
3201 fi
3202
3203
3204 # Check whether --enable-sample was given.
3205 if test "${enable_sample+set}" = set; then :
3206   enableval=$enable_sample; enable_sample=yes
3207 fi
3208
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   if test -n "$CC"; then
3224   ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231     for ac_exec_ext in '' $ac_executable_extensions; do
3232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 fi
3254 if test -z "$ac_cv_prog_CC"; then
3255   ac_ct_CC=$CC
3256   # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$ac_ct_CC"; then
3264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     ac_cv_prog_ac_ct_CC="gcc"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292   if test "x$ac_ct_CC" = x; then
3293     CC=""
3294   else
3295     case $cross_compiling:$ac_tool_warned in
3296 yes:)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3300 esac
3301     CC=$ac_ct_CC
3302   fi
3303 else
3304   CC="$ac_cv_prog_CC"
3305 fi
3306
3307 if test -z "$CC"; then
3308           if test -n "$ac_tool_prefix"; then
3309     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$CC"; then
3317   ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326     ac_cv_prog_CC="${ac_tool_prefix}cc"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346   fi
3347 fi
3348 if test -z "$CC"; then
3349   # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359   ac_prog_rejected=no
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365     for ac_exec_ext in '' $ac_executable_extensions; do
3366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368        ac_prog_rejected=yes
3369        continue
3370      fi
3371     ac_cv_prog_CC="cc"
3372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374   fi
3375 done
3376   done
3377 IFS=$as_save_IFS
3378
3379 if test $ac_prog_rejected = yes; then
3380   # We found a bogon in the path, so make sure we never use it.
3381   set dummy $ac_cv_prog_CC
3382   shift
3383   if test $# != 0; then
3384     # We chose a different compiler from the bogus one.
3385     # However, it has the same basename, so the bogon will be chosen
3386     # first if we set CC to just the basename; use the full file name.
3387     shift
3388     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3389   fi
3390 fi
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402
3403 fi
3404 if test -z "$CC"; then
3405   if test -n "$ac_tool_prefix"; then
3406   for ac_prog in cl.exe
3407   do
3408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445     test -n "$CC" && break
3446   done
3447 fi
3448 if test -z "$CC"; then
3449   ac_ct_CC=$CC
3450   for ac_prog in cl.exe
3451 do
3452   # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   if test -n "$ac_ct_CC"; then
3460   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469     ac_cv_prog_ac_ct_CC="$ac_prog"
3470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474   done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3483 else
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489   test -n "$ac_ct_CC" && break
3490 done
3491
3492   if test "x$ac_ct_CC" = x; then
3493     CC=""
3494   else
3495     case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501     CC=$ac_ct_CC
3502   fi
3503 fi
3504
3505 fi
3506
3507
3508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details" "$LINENO" 5; }
3512
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3515 set X $ac_compile
3516 ac_compiler=$2
3517 for ac_option in --version -v -V -qversion; do
3518   { { ac_try="$ac_compiler $ac_option >&5"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526   ac_status=$?
3527   if test -s conftest.err; then
3528     sed '10a\
3529 ... rest of stderr output deleted ...
3530          10q' conftest.err >conftest.er1
3531     cat conftest.er1 >&5
3532   fi
3533   rm -f conftest.er1 conftest.err
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }
3536 done
3537
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 ac_clean_files_save=$ac_clean_files
3550 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551 # Try to create an executable without -o first, disregard a.out.
3552 # It will help us diagnose broken compilers, and finding out an intuition
3553 # of exeext.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3555 $as_echo_n "checking whether the C compiler works... " >&6; }
3556 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557
3558 # The possible output files:
3559 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3560
3561 ac_rmfiles=
3562 for ac_file in $ac_files
3563 do
3564   case $ac_file in
3565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567   esac
3568 done
3569 rm -f $ac_rmfiles
3570
3571 if { { ac_try="$ac_link_default"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_link_default") 2>&5
3579   ac_status=$?
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }; then :
3582   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3585 # so that the user can short-circuit this test for compilers unknown to
3586 # Autoconf.
3587 for ac_file in $ac_files ''
3588 do
3589   test -f "$ac_file" || continue
3590   case $ac_file in
3591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3592         ;;
3593     [ab].out )
3594         # We found the default executable, but exeext='' is most
3595         # certainly right.
3596         break;;
3597     *.* )
3598         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3599         then :; else
3600            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601         fi
3602         # We set ac_cv_exeext here because the later test for it is not
3603         # safe: cross compilers may not add the suffix if given an `-o'
3604         # argument, so we may need to know it at that point already.
3605         # Even if this section looks crufty: it has the advantage of
3606         # actually working.
3607         break;;
3608     * )
3609         break;;
3610   esac
3611 done
3612 test "$ac_cv_exeext" = no && ac_cv_exeext=
3613
3614 else
3615   ac_file=''
3616 fi
3617 if test -z "$ac_file"; then :
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error 77 "C compiler cannot create executables
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 else
3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3632 $as_echo_n "checking for C compiler default output file name... " >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3635 ac_exeext=$ac_cv_exeext
3636
3637 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3640 $as_echo_n "checking for suffix of executables... " >&6; }
3641 if { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644   *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648   (eval "$ac_link") 2>&5
3649   ac_status=$?
3650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651   test $ac_status = 0; }; then :
3652   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3655 # `rm'.
3656 for ac_file in conftest.exe conftest conftest.*; do
3657   test -f "$ac_file" || continue
3658   case $ac_file in
3659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661           break;;
3662     * ) break;;
3663   esac
3664 done
3665 else
3666   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details" "$LINENO" 5; }
3670 fi
3671 rm -f conftest conftest$ac_cv_exeext
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3673 $as_echo "$ac_cv_exeext" >&6; }
3674
3675 rm -f conftest.$ac_ext
3676 EXEEXT=$ac_cv_exeext
3677 ac_exeext=$EXEEXT
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680 #include <stdio.h>
3681 int
3682 main ()
3683 {
3684 FILE *f = fopen ("conftest.out", "w");
3685  return ferror (f) || fclose (f) != 0;
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 ac_clean_files="$ac_clean_files conftest.out"
3692 # Check that the compiler produces executables we can run.  If not, either
3693 # the compiler is broken, or we cross compile.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3695 $as_echo_n "checking whether we are cross compiling... " >&6; }
3696 if test "$cross_compiling" != yes; then
3697   { { ac_try="$ac_link"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704   (eval "$ac_link") 2>&5
3705   ac_status=$?
3706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707   test $ac_status = 0; }
3708   if { ac_try='./conftest$ac_cv_exeext'
3709   { { case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715   (eval "$ac_try") 2>&5
3716   ac_status=$?
3717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718   test $ac_status = 0; }; }; then
3719     cross_compiling=no
3720   else
3721     if test "$cross_compiling" = maybe; then
3722         cross_compiling=yes
3723     else
3724         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details" "$LINENO" 5; }
3729     fi
3730   fi
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3733 $as_echo "$cross_compiling" >&6; }
3734
3735 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3736 ac_clean_files=$ac_clean_files_save
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if ${ac_cv_objext+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744
3745 int
3746 main ()
3747 {
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.o conftest.obj
3754 if { { ac_try="$ac_compile"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_compile") 2>&5
3762   ac_status=$?
3763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764   test $ac_status = 0; }; then :
3765   for ac_file in conftest.o conftest.obj conftest.*; do
3766   test -f "$ac_file" || continue;
3767   case $ac_file in
3768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3769     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3770        break;;
3771   esac
3772 done
3773 else
3774   $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 fi
3782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3785 $as_echo "$ac_cv_objext" >&6; }
3786 OBJEXT=$ac_cv_objext
3787 ac_objext=$OBJEXT
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3789 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3790 if ${ac_cv_c_compiler_gnu+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799 #ifndef __GNUC__
3800        choke me
3801 #endif
3802
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808   ac_compiler_gnu=yes
3809 else
3810   ac_compiler_gnu=no
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3817 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3818 if test $ac_compiler_gnu = yes; then
3819   GCC=yes
3820 else
3821   GCC=
3822 fi
3823 ac_test_CFLAGS=${CFLAGS+set}
3824 ac_save_CFLAGS=$CFLAGS
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3826 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3827 if ${ac_cv_prog_cc_g+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   ac_save_c_werror_flag=$ac_c_werror_flag
3831    ac_c_werror_flag=yes
3832    ac_cv_prog_cc_g=no
3833    CFLAGS="-g"
3834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846   ac_cv_prog_cc_g=yes
3847 else
3848   CFLAGS=""
3849       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h.  */
3851
3852 int
3853 main ()
3854 {
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861
3862 else
3863   ac_c_werror_flag=$ac_save_c_werror_flag
3864          CFLAGS="-g"
3865          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h.  */
3867
3868 int
3869 main ()
3870 {
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877   ac_cv_prog_cc_g=yes
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884    ac_c_werror_flag=$ac_save_c_werror_flag
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3887 $as_echo "$ac_cv_prog_cc_g" >&6; }
3888 if test "$ac_test_CFLAGS" = set; then
3889   CFLAGS=$ac_save_CFLAGS
3890 elif test $ac_cv_prog_cc_g = yes; then
3891   if test "$GCC" = yes; then
3892     CFLAGS="-g -O2"
3893   else
3894     CFLAGS="-g"
3895   fi
3896 else
3897   if test "$GCC" = yes; then
3898     CFLAGS="-O2"
3899   else
3900     CFLAGS=
3901   fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3904 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3905 if ${ac_cv_prog_cc_c89+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   ac_cv_prog_cc_c89=no
3909 ac_save_CC=$CC
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h.  */
3912 #include <stdarg.h>
3913 #include <stdio.h>
3914 #include <sys/types.h>
3915 #include <sys/stat.h>
3916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3917 struct buf { int x; };
3918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919 static char *e (p, i)
3920      char **p;
3921      int i;
3922 {
3923   return p[i];
3924 }
3925 static char *f (char * (*g) (char **, int), char **p, ...)
3926 {
3927   char *s;
3928   va_list v;
3929   va_start (v,p);
3930   s = g (p, va_arg (v,int));
3931   va_end (v);
3932   return s;
3933 }
3934
3935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3936    function prototypes and stuff, but not '\xHH' hex character constants.
3937    These don't provoke an error unfortunately, instead are silently treated
3938    as 'x'.  The following induces an error, until -std is added to get
3939    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3940    array size at least.  It's necessary to write '\x00'==0 to get something
3941    that's true only with -std.  */
3942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3943
3944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945    inside strings and character constants.  */
3946 #define FOO(x) 'x'
3947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3948
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953 int argc;
3954 char **argv;
3955 int
3956 main ()
3957 {
3958 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3965 do
3966   CC="$ac_save_CC $ac_arg"
3967   if ac_fn_c_try_compile "$LINENO"; then :
3968   ac_cv_prog_cc_c89=$ac_arg
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext
3971   test "x$ac_cv_prog_cc_c89" != "xno" && break
3972 done
3973 rm -f conftest.$ac_ext
3974 CC=$ac_save_CC
3975
3976 fi
3977 # AC_CACHE_VAL
3978 case "x$ac_cv_prog_cc_c89" in
3979   x)
3980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3981 $as_echo "none needed" >&6; } ;;
3982   xno)
3983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3984 $as_echo "unsupported" >&6; } ;;
3985   *)
3986     CC="$CC $ac_cv_prog_cc_c89"
3987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3988 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3989 esac
3990 if test "x$ac_cv_prog_cc_c89" != xno; then :
3991
3992 fi
3993
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 DEPDIR="${am__leading_dot}deps"
4000
4001 ac_config_commands="$ac_config_commands depfiles"
4002
4003
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4006 am__doit:
4007         @echo done
4008 .PHONY: am__doit
4009 END
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4013 am__include="#"
4014 am__quote=
4015 _am_result=none
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # We grep out `Entering directory' and `Leaving directory'
4019 # messages which can occur if `w' ends up in MAKEFLAGS.
4020 # In particular we don't look at `^make:' because GNU make might
4021 # be invoked under some other name (usually "gmake"), in which
4022 # case it prints its new name instead of `make'.
4023 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4024    am__include=include
4025    am__quote=
4026    _am_result=GNU
4027 fi
4028 # Now try BSD make style include.
4029 if test "$am__include" = "#"; then
4030    echo '.include "confinc"' > confmf
4031    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4032       am__include=.include
4033       am__quote="\""
4034       _am_result=BSD
4035    fi
4036 fi
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4042
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045   enableval=$enable_dependency_tracking;
4046 fi
4047
4048 if test "x$enable_dependency_tracking" != xno; then
4049   am_depcomp="$ac_aux_dir/depcomp"
4050   AMDEPBACKSLASH='\'
4051 fi
4052  if test "x$enable_dependency_tracking" != xno; then
4053   AMDEP_TRUE=
4054   AMDEP_FALSE='#'
4055 else
4056   AMDEP_TRUE='#'
4057   AMDEP_FALSE=
4058 fi
4059
4060
4061
4062 depcc="$CC"   am_compiler_list=
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070   # We make a subdir and do the tests there.  Otherwise we can end up
4071   # making bogus files that we don't know about and never remove.  For
4072   # instance it was reported that on HP-UX the gcc test will end up
4073   # making a dummy file named `D' -- because `-MD' means `put the output
4074   # in D'.
4075   mkdir conftest.dir
4076   # Copy depcomp to subdir because otherwise we won't find it if we're
4077   # using a relative directory.
4078   cp "$am_depcomp" conftest.dir
4079   cd conftest.dir
4080   # We will build objects and dependencies in a subdirectory because
4081   # it helps to detect inapplicable dependency modes.  For instance
4082   # both Tru64's cc and ICC support -MD to output dependencies as a
4083   # side effect of compilation, but ICC will put the dependencies in
4084   # the current directory while Tru64 will put them in the object
4085   # directory.
4086   mkdir sub
4087
4088   am_cv_CC_dependencies_compiler_type=none
4089   if test "$am_compiler_list" = ""; then
4090      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4091   fi
4092   am__universal=false
4093   case " $depcc " in #(
4094      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095      esac
4096
4097   for depmode in $am_compiler_list; do
4098     # Setup a source with many dependencies, because some compilers
4099     # like to wrap large dependency lists on column 80 (with \), and
4100     # we should not choose a depcomp mode which is confused by this.
4101     #
4102     # We need to recreate these files for each test, as the compiler may
4103     # overwrite some of them when testing with obscure command lines.
4104     # This happens at least with the AIX C compiler.
4105     : > sub/conftest.c
4106     for i in 1 2 3 4 5 6; do
4107       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4109       # Solaris 8's {/usr,}/bin/sh.
4110       touch sub/conftst$i.h
4111     done
4112     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4113
4114     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4115     # mode.  It turns out that the SunPro C++ compiler does not properly
4116     # handle `-M -o', and we need to detect this.  Also, some Intel
4117     # versions had trouble with output in subdirs
4118     am__obj=sub/conftest.${OBJEXT-o}
4119     am__minus_obj="-o $am__obj"
4120     case $depmode in
4121     gcc)
4122       # This depmode causes a compiler race in universal mode.
4123       test "$am__universal" = false || continue
4124       ;;
4125     nosideeffect)
4126       # after this tag, mechanisms are not by side-effect, so they'll
4127       # only be used when explicitly requested
4128       if test "x$enable_dependency_tracking" = xyes; then
4129         continue
4130       else
4131         break
4132       fi
4133       ;;
4134     msvisualcpp | msvcmsys)
4135       # This compiler won't grok `-c -o', but also, the minuso test has
4136       # not run yet.  These depmodes are late enough in the game, and
4137       # so weak that their functioning should not be impacted.
4138       am__obj=conftest.${OBJEXT-o}
4139       am__minus_obj=
4140       ;;
4141     none) break ;;
4142     esac
4143     if depmode=$depmode \
4144        source=sub/conftest.c object=$am__obj \
4145        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147          >/dev/null 2>conftest.err &&
4148        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152       # icc doesn't choke on unknown options, it will just issue warnings
4153       # or remarks (even with -Werror).  So we grep stderr for any message
4154       # that says an option was ignored or not supported.
4155       # When given -MP, icc 7.0 and 7.1 complain thusly:
4156       #   icc: Command line warning: ignoring option '-M'; no argument required
4157       # The diagnosis changed in icc 8.0:
4158       #   icc: Command line remark: option '-MP' not supported
4159       if (grep 'ignoring option' conftest.err ||
4160           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161         am_cv_CC_dependencies_compiler_type=$depmode
4162         break
4163       fi
4164     fi
4165   done
4166
4167   cd ..
4168   rm -rf conftest.dir
4169 else
4170   am_cv_CC_dependencies_compiler_type=none
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4177
4178  if
4179   test "x$enable_dependency_tracking" != xno \
4180   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4181   am__fastdepCC_TRUE=
4182   am__fastdepCC_FALSE='#'
4183 else
4184   am__fastdepCC_TRUE='#'
4185   am__fastdepCC_FALSE=
4186 fi
4187
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4195 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4196 # On Suns, sometimes $CPP names a directory.
4197 if test -n "$CPP" && test -d "$CPP"; then
4198   CPP=
4199 fi
4200 if test -z "$CPP"; then
4201   if ${ac_cv_prog_CPP+:} false; then :
4202   $as_echo_n "(cached) " >&6
4203 else
4204       # Double quotes because CPP needs to be expanded
4205     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4206     do
4207       ac_preproc_ok=false
4208 for ac_c_preproc_warn_flag in '' yes
4209 do
4210   # Use a header file that comes with gcc, so configuring glibc
4211   # with a fresh cross-compiler works.
4212   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213   # <limits.h> exists even on freestanding compilers.
4214   # On the NeXT, cc -E runs the code through the compiler's parser,
4215   # not just through cpp. "Syntax error" is here to catch this case.
4216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218 #ifdef __STDC__
4219 # include <limits.h>
4220 #else
4221 # include <assert.h>
4222 #endif
4223                      Syntax error
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226
4227 else
4228   # Broken: fails on valid input.
4229 continue
4230 fi
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4232
4233   # OK, works on sane cases.  Now check whether nonexistent headers
4234   # can be detected and how.
4235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237 #include <ac_nonexistent.h>
4238 _ACEOF
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240   # Broken: success on invalid input.
4241 continue
4242 else
4243   # Passes both tests.
4244 ac_preproc_ok=:
4245 break
4246 fi
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4248
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.i conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4253   break
4254 fi
4255
4256     done
4257     ac_cv_prog_CPP=$CPP
4258
4259 fi
4260   CPP=$ac_cv_prog_CPP
4261 else
4262   ac_cv_prog_CPP=$CPP
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4265 $as_echo "$CPP" >&6; }
4266 ac_preproc_ok=false
4267 for ac_c_preproc_warn_flag in '' yes
4268 do
4269   # Use a header file that comes with gcc, so configuring glibc
4270   # with a fresh cross-compiler works.
4271   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272   # <limits.h> exists even on freestanding compilers.
4273   # On the NeXT, cc -E runs the code through the compiler's parser,
4274   # not just through cpp. "Syntax error" is here to catch this case.
4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h.  */
4277 #ifdef __STDC__
4278 # include <limits.h>
4279 #else
4280 # include <assert.h>
4281 #endif
4282                      Syntax error
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285
4286 else
4287   # Broken: fails on valid input.
4288 continue
4289 fi
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292   # OK, works on sane cases.  Now check whether nonexistent headers
4293   # can be detected and how.
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296 #include <ac_nonexistent.h>
4297 _ACEOF
4298 if ac_fn_c_try_cpp "$LINENO"; then :
4299   # Broken: success on invalid input.
4300 continue
4301 else
4302   # Passes both tests.
4303 ac_preproc_ok=:
4304 break
4305 fi
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4307
4308 done
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.i conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then :
4312
4313 else
4314   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4317 See \`config.log' for more details" "$LINENO" 5; }
4318 fi
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326 for ac_prog in gawk mawk nawk awk
4327 do
4328   # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_AWK+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$AWK"; then
4336   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345     ac_cv_prog_AWK="$ac_prog"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 fi
4354 fi
4355 AWK=$ac_cv_prog_AWK
4356 if test -n "$AWK"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4358 $as_echo "$AWK" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364
4365   test -n "$AWK" && break
4366 done
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4369 $as_echo_n "checking whether ln -s works... " >&6; }
4370 LN_S=$as_ln_s
4371 if test "$LN_S" = "ln -s"; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4376 $as_echo "no, using $LN_S" >&6; }
4377 fi
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4380 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4381 set x ${MAKE-make}
4382 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4383 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   cat >conftest.make <<\_ACEOF
4387 SHELL = /bin/sh
4388 all:
4389         @echo '@@@%%%=$(MAKE)=@@@%%%'
4390 _ACEOF
4391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4393   *@@@%%%=?*=@@@%%%*)
4394     eval ac_cv_prog_make_${ac_make}_set=yes;;
4395   *)
4396     eval ac_cv_prog_make_${ac_make}_set=no;;
4397 esac
4398 rm -f conftest.make
4399 fi
4400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403   SET_MAKE=
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407   SET_MAKE="MAKE=${MAKE-make}"
4408 fi
4409
4410
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4414 $as_echo_n "checking for __attribute__... " >&6; }
4415 if ${ac_cv___attribute__+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421
4422 #include <stdlib.h>
4423
4424 int
4425 main ()
4426 {
4427
4428 static void foo(void) __attribute__ ((noreturn));
4429
4430 static void
4431 foo(void)
4432 {
4433   exit(1);
4434 }
4435
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441   ac_cv___attribute__=yes
4442 else
4443   ac_cv___attribute__=no
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447
4448 if test "$ac_cv___attribute__" = "yes"; then
4449
4450 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4454 $as_echo "$ac_cv___attribute__" >&6; }
4455
4456
4457
4458    # CMU GUESS RUNPATH SWITCH
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
4460 $as_echo_n "checking for runpath switch... " >&6; }
4461 if ${andrew_runpath_switch+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464
4465     # first, try -R
4466     SAVE_LDFLAGS="${LDFLAGS}"
4467     LDFLAGS="-R /usr/lib"
4468     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_link "$LINENO"; then :
4480   andrew_runpath_switch="-R"
4481 else
4482
4483         LDFLAGS="-Wl,-rpath,/usr/lib"
4484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h.  */
4486
4487 int
4488 main ()
4489 {
4490
4491   ;
4492   return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_link "$LINENO"; then :
4496   andrew_runpath_switch="-Wl,-rpath,"
4497 else
4498   andrew_runpath_switch="none"
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext \
4501     conftest$ac_exeext conftest.$ac_ext
4502
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext \
4505     conftest$ac_exeext conftest.$ac_ext
4506   LDFLAGS="${SAVE_LDFLAGS}"
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_runpath_switch" >&5
4510 $as_echo "$andrew_runpath_switch" >&6; }
4511
4512
4513 # Check whether --with-staticsasl was given.
4514 if test "${with_staticsasl+set}" = set; then :
4515   withval=$with_staticsasl;
4516 fi
4517
4518 if test "$with_staticsasl" = yes; then
4519         enable_shared=yes
4520         enable_static=yes
4521 fi
4522
4523 save_target=$target
4524 if test -z "$target"; then
4525         target="NONE"
4526 fi
4527
4528 # new libtool
4529 # Check whether --enable-static was given.
4530 if test "${enable_static+set}" = set; then :
4531   enableval=$enable_static; p=${PACKAGE-default}
4532     case $enableval in
4533     yes) enable_static=yes ;;
4534     no) enable_static=no ;;
4535     *)
4536      enable_static=no
4537       # Look at the argument we got.  We use all the common list separators.
4538       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4539       for pkg in $enableval; do
4540         IFS="$lt_save_ifs"
4541         if test "X$pkg" = "X$p"; then
4542           enable_static=yes
4543         fi
4544       done
4545       IFS="$lt_save_ifs"
4546       ;;
4547     esac
4548 else
4549   enable_static=no
4550 fi
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560 case `pwd` in
4561   *\ * | *\     *)
4562     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4563 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4564 esac
4565
4566
4567
4568 macro_version='2.2.10'
4569 macro_revision='1.3175'
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583 ltmain="$ac_aux_dir/ltmain.sh"
4584
4585 # Backslashify metacharacters that are still active within
4586 # double-quoted strings.
4587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4588
4589 # Same as above, but do not quote variable references.
4590 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4591
4592 # Sed substitution to delay expansion of an escaped shell variable in a
4593 # double_quote_subst'ed string.
4594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4595
4596 # Sed substitution to delay expansion of an escaped single quote.
4597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4598
4599 # Sed substitution to avoid accidental globbing in evaled expressions
4600 no_glob_subst='s/\*/\\\*/g'
4601
4602 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4603 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4604 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4607 $as_echo_n "checking how to print strings... " >&6; }
4608 # Test print first, because it will be a builtin if present.
4609 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4610    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4611   ECHO='print -r --'
4612 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4613   ECHO='printf %s\n'
4614 else
4615   # Use this function as a fallback that always works.
4616   func_fallback_echo ()
4617   {
4618     eval 'cat <<_LTECHO_EOF
4619 $1
4620 _LTECHO_EOF'
4621   }
4622   ECHO='func_fallback_echo'
4623 fi
4624
4625 # func_echo_all arg...
4626 # Invoke $ECHO with all args, space-separated.
4627 func_echo_all ()
4628 {
4629     $ECHO ""
4630 }
4631
4632 case "$ECHO" in
4633   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4634 $as_echo "printf" >&6; } ;;
4635   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4636 $as_echo "print -r" >&6; } ;;
4637   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4638 $as_echo "cat" >&6; } ;;
4639 esac
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4655 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4656 if ${ac_cv_path_SED+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4660      for ac_i in 1 2 3 4 5 6 7; do
4661        ac_script="$ac_script$as_nl$ac_script"
4662      done
4663      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4664      { ac_script=; unset ac_script;}
4665      if test -z "$SED"; then
4666   ac_path_SED_found=false
4667   # Loop through the user's path and test for each of PROGNAME-LIST
4668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673     for ac_prog in sed gsed; do
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4676       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4677 # Check for GNU ac_path_SED and select it if it is found.
4678   # Check for GNU $ac_path_SED
4679 case `"$ac_path_SED" --version 2>&1` in
4680 *GNU*)
4681   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4682 *)
4683   ac_count=0
4684   $as_echo_n 0123456789 >"conftest.in"
4685   while :
4686   do
4687     cat "conftest.in" "conftest.in" >"conftest.tmp"
4688     mv "conftest.tmp" "conftest.in"
4689     cp "conftest.in" "conftest.nl"
4690     $as_echo '' >> "conftest.nl"
4691     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693     as_fn_arith $ac_count + 1 && ac_count=$as_val
4694     if test $ac_count -gt ${ac_path_SED_max-0}; then
4695       # Best one so far, save it but keep looking for a better one
4696       ac_cv_path_SED="$ac_path_SED"
4697       ac_path_SED_max=$ac_count
4698     fi
4699     # 10*(2^10) chars as input seems more than enough
4700     test $ac_count -gt 10 && break
4701   done
4702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4704
4705       $ac_path_SED_found && break 3
4706     done
4707   done
4708   done
4709 IFS=$as_save_IFS
4710   if test -z "$ac_cv_path_SED"; then
4711     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4712   fi
4713 else
4714   ac_cv_path_SED=$SED
4715 fi
4716
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4719 $as_echo "$ac_cv_path_SED" >&6; }
4720  SED="$ac_cv_path_SED"
4721   rm -f conftest.sed
4722
4723 test -z "$SED" && SED=sed
4724 Xsed="$SED -e 1s/^X//"
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4737 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4738 if ${ac_cv_path_GREP+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -z "$GREP"; then
4742   ac_path_GREP_found=false
4743   # Loop through the user's path and test for each of PROGNAME-LIST
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_prog in grep ggrep; do
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4752       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4753 # Check for GNU ac_path_GREP and select it if it is found.
4754   # Check for GNU $ac_path_GREP
4755 case `"$ac_path_GREP" --version 2>&1` in
4756 *GNU*)
4757   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4758 *)
4759   ac_count=0
4760   $as_echo_n 0123456789 >"conftest.in"
4761   while :
4762   do
4763     cat "conftest.in" "conftest.in" >"conftest.tmp"
4764     mv "conftest.tmp" "conftest.in"
4765     cp "conftest.in" "conftest.nl"
4766     $as_echo 'GREP' >> "conftest.nl"
4767     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769     as_fn_arith $ac_count + 1 && ac_count=$as_val
4770     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4771       # Best one so far, save it but keep looking for a better one
4772       ac_cv_path_GREP="$ac_path_GREP"
4773       ac_path_GREP_max=$ac_count
4774     fi
4775     # 10*(2^10) chars as input seems more than enough
4776     test $ac_count -gt 10 && break
4777   done
4778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4780
4781       $ac_path_GREP_found && break 3
4782     done
4783   done
4784   done
4785 IFS=$as_save_IFS
4786   if test -z "$ac_cv_path_GREP"; then
4787     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788   fi
4789 else
4790   ac_cv_path_GREP=$GREP
4791 fi
4792
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4795 $as_echo "$ac_cv_path_GREP" >&6; }
4796  GREP="$ac_cv_path_GREP"
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4800 $as_echo_n "checking for egrep... " >&6; }
4801 if ${ac_cv_path_EGREP+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4805    then ac_cv_path_EGREP="$GREP -E"
4806    else
4807      if test -z "$EGREP"; then
4808   ac_path_EGREP_found=false
4809   # Loop through the user's path and test for each of PROGNAME-LIST
4810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_prog in egrep; do
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4818       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4819 # Check for GNU ac_path_EGREP and select it if it is found.
4820   # Check for GNU $ac_path_EGREP
4821 case `"$ac_path_EGREP" --version 2>&1` in
4822 *GNU*)
4823   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4824 *)
4825   ac_count=0
4826   $as_echo_n 0123456789 >"conftest.in"
4827   while :
4828   do
4829     cat "conftest.in" "conftest.in" >"conftest.tmp"
4830     mv "conftest.tmp" "conftest.in"
4831     cp "conftest.in" "conftest.nl"
4832     $as_echo 'EGREP' >> "conftest.nl"
4833     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835     as_fn_arith $ac_count + 1 && ac_count=$as_val
4836     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837       # Best one so far, save it but keep looking for a better one
4838       ac_cv_path_EGREP="$ac_path_EGREP"
4839       ac_path_EGREP_max=$ac_count
4840     fi
4841     # 10*(2^10) chars as input seems more than enough
4842     test $ac_count -gt 10 && break
4843   done
4844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847       $ac_path_EGREP_found && break 3
4848     done
4849   done
4850   done
4851 IFS=$as_save_IFS
4852   if test -z "$ac_cv_path_EGREP"; then
4853     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854   fi
4855 else
4856   ac_cv_path_EGREP=$EGREP
4857 fi
4858
4859    fi
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4862 $as_echo "$ac_cv_path_EGREP" >&6; }
4863  EGREP="$ac_cv_path_EGREP"
4864
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4867 $as_echo_n "checking for fgrep... " >&6; }
4868 if ${ac_cv_path_FGREP+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4872    then ac_cv_path_FGREP="$GREP -F"
4873    else
4874      if test -z "$FGREP"; then
4875   ac_path_FGREP_found=false
4876   # Loop through the user's path and test for each of PROGNAME-LIST
4877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_prog in fgrep; do
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4885       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4886 # Check for GNU ac_path_FGREP and select it if it is found.
4887   # Check for GNU $ac_path_FGREP
4888 case `"$ac_path_FGREP" --version 2>&1` in
4889 *GNU*)
4890   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4891 *)
4892   ac_count=0
4893   $as_echo_n 0123456789 >"conftest.in"
4894   while :
4895   do
4896     cat "conftest.in" "conftest.in" >"conftest.tmp"
4897     mv "conftest.tmp" "conftest.in"
4898     cp "conftest.in" "conftest.nl"
4899     $as_echo 'FGREP' >> "conftest.nl"
4900     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902     as_fn_arith $ac_count + 1 && ac_count=$as_val
4903     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4904       # Best one so far, save it but keep looking for a better one
4905       ac_cv_path_FGREP="$ac_path_FGREP"
4906       ac_path_FGREP_max=$ac_count
4907     fi
4908     # 10*(2^10) chars as input seems more than enough
4909     test $ac_count -gt 10 && break
4910   done
4911   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912 esac
4913
4914       $ac_path_FGREP_found && break 3
4915     done
4916   done
4917   done
4918 IFS=$as_save_IFS
4919   if test -z "$ac_cv_path_FGREP"; then
4920     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921   fi
4922 else
4923   ac_cv_path_FGREP=$FGREP
4924 fi
4925
4926    fi
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4929 $as_echo "$ac_cv_path_FGREP" >&6; }
4930  FGREP="$ac_cv_path_FGREP"
4931
4932
4933 test -z "$GREP" && GREP=grep
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 # Check whether --with-gnu-ld was given.
4954 if test "${with_gnu_ld+set}" = set; then :
4955   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4956 else
4957   with_gnu_ld=no
4958 fi
4959
4960 ac_prog=ld
4961 if test "$GCC" = yes; then
4962   # Check if gcc -print-prog-name=ld gives a path.
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4964 $as_echo_n "checking for ld used by $CC... " >&6; }
4965   case $host in
4966   *-*-mingw*)
4967     # gcc leaves a trailing carriage return which upsets mingw
4968     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4969   *)
4970     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4971   esac
4972   case $ac_prog in
4973     # Accept absolute paths.
4974     [\\/]* | ?:[\\/]*)
4975       re_direlt='/[^/][^/]*/\.\./'
4976       # Canonicalize the pathname of ld
4977       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4978       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4979         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4980       done
4981       test -z "$LD" && LD="$ac_prog"
4982       ;;
4983   "")
4984     # If it fails, then pretend we aren't using GCC.
4985     ac_prog=ld
4986     ;;
4987   *)
4988     # If it is relative, then search for the first ld in PATH.
4989     with_gnu_ld=unknown
4990     ;;
4991   esac
4992 elif test "$with_gnu_ld" = yes; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4994 $as_echo_n "checking for GNU ld... " >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4997 $as_echo_n "checking for non-GNU ld... " >&6; }
4998 fi
4999 if ${lt_cv_path_LD+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   if test -z "$LD"; then
5003   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004   for ac_dir in $PATH; do
5005     IFS="$lt_save_ifs"
5006     test -z "$ac_dir" && ac_dir=.
5007     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008       lt_cv_path_LD="$ac_dir/$ac_prog"
5009       # Check to see if the program is GNU ld.  I'd rather use --version,
5010       # but apparently some variants of GNU ld only accept -v.
5011       # Break only if it was the GNU/non-GNU ld that we prefer.
5012       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5013       *GNU* | *'with BFD'*)
5014         test "$with_gnu_ld" != no && break
5015         ;;
5016       *)
5017         test "$with_gnu_ld" != yes && break
5018         ;;
5019       esac
5020     fi
5021   done
5022   IFS="$lt_save_ifs"
5023 else
5024   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5025 fi
5026 fi
5027
5028 LD="$lt_cv_path_LD"
5029 if test -n "$LD"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5031 $as_echo "$LD" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5039 if ${lt_cv_prog_gnu_ld+:} false; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5043 case `$LD -v 2>&1 </dev/null` in
5044 *GNU* | *'with BFD'*)
5045   lt_cv_prog_gnu_ld=yes
5046   ;;
5047 *)
5048   lt_cv_prog_gnu_ld=no
5049   ;;
5050 esac
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5053 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5054 with_gnu_ld=$lt_cv_prog_gnu_ld
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5065 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5066 if ${lt_cv_path_NM+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$NM"; then
5070   # Let the user override the test.
5071   lt_cv_path_NM="$NM"
5072 else
5073   lt_nm_to_check="${ac_tool_prefix}nm"
5074   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075     lt_nm_to_check="$lt_nm_to_check nm"
5076   fi
5077   for lt_tmp_nm in $lt_nm_to_check; do
5078     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5080       IFS="$lt_save_ifs"
5081       test -z "$ac_dir" && ac_dir=.
5082       tmp_nm="$ac_dir/$lt_tmp_nm"
5083       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5084         # Check to see if the nm accepts a BSD-compat flag.
5085         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086         #   nm: unknown option "B" ignored
5087         # Tru64's nm complains that /dev/null is an invalid object file
5088         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5089         */dev/null* | *'Invalid file or object type'*)
5090           lt_cv_path_NM="$tmp_nm -B"
5091           break
5092           ;;
5093         *)
5094           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5095           */dev/null*)
5096             lt_cv_path_NM="$tmp_nm -p"
5097             break
5098             ;;
5099           *)
5100             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5101             continue # so that we can try to find one that supports BSD flags
5102             ;;
5103           esac
5104           ;;
5105         esac
5106       fi
5107     done
5108     IFS="$lt_save_ifs"
5109   done
5110   : ${lt_cv_path_NM=no}
5111 fi
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5114 $as_echo "$lt_cv_path_NM" >&6; }
5115 if test "$lt_cv_path_NM" != "no"; then
5116   NM="$lt_cv_path_NM"
5117 else
5118   # Didn't find any BSD compatible name lister, look for dumpbin.
5119   if test -n "$DUMPBIN"; then :
5120     # Let the user override the test.
5121   else
5122     if test -n "$ac_tool_prefix"; then
5123   for ac_prog in dumpbin "link -dump"
5124   do
5125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_DUMPBIN+:} false; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   if test -n "$DUMPBIN"; then
5133   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 DUMPBIN=$ac_cv_prog_DUMPBIN
5153 if test -n "$DUMPBIN"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5155 $as_echo "$DUMPBIN" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162     test -n "$DUMPBIN" && break
5163   done
5164 fi
5165 if test -z "$DUMPBIN"; then
5166   ac_ct_DUMPBIN=$DUMPBIN
5167   for ac_prog in dumpbin "link -dump"
5168 do
5169   # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if test -n "$ac_ct_DUMPBIN"; then
5177   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5197 if test -n "$ac_ct_DUMPBIN"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5199 $as_echo "$ac_ct_DUMPBIN" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206   test -n "$ac_ct_DUMPBIN" && break
5207 done
5208
5209   if test "x$ac_ct_DUMPBIN" = x; then
5210     DUMPBIN=":"
5211   else
5212     case $cross_compiling:$ac_tool_warned in
5213 yes:)
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5217 esac
5218     DUMPBIN=$ac_ct_DUMPBIN
5219   fi
5220 fi
5221
5222     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5223     *COFF*)
5224       DUMPBIN="$DUMPBIN -symbols"
5225       ;;
5226     *)
5227       DUMPBIN=:
5228       ;;
5229     esac
5230   fi
5231
5232   if test "$DUMPBIN" != ":"; then
5233     NM="$DUMPBIN"
5234   fi
5235 fi
5236 test -z "$NM" && NM=nm
5237
5238
5239
5240
5241
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5244 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5245 if ${lt_cv_nm_interface+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   lt_cv_nm_interface="BSD nm"
5249   echo "int some_variable = 0;" > conftest.$ac_ext
5250   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5251   (eval "$ac_compile" 2>conftest.err)
5252   cat conftest.err >&5
5253   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5254   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5255   cat conftest.err >&5
5256   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5257   cat conftest.out >&5
5258   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5259     lt_cv_nm_interface="MS dumpbin"
5260   fi
5261   rm -f conftest*
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5264 $as_echo "$lt_cv_nm_interface" >&6; }
5265
5266 # find the maximum length of command line arguments
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5269 if ${lt_cv_sys_max_cmd_len+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272     i=0
5273   teststring="ABCD"
5274
5275   case $build_os in
5276   msdosdjgpp*)
5277     # On DJGPP, this test can blow up pretty badly due to problems in libc
5278     # (any single argument exceeding 2000 bytes causes a buffer overrun
5279     # during glob expansion).  Even if it were fixed, the result of this
5280     # check would be larger than it should be.
5281     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5282     ;;
5283
5284   gnu*)
5285     # Under GNU Hurd, this test is not required because there is
5286     # no limit to the length of command line arguments.
5287     # Libtool will interpret -1 as no limit whatsoever
5288     lt_cv_sys_max_cmd_len=-1;
5289     ;;
5290
5291   cygwin* | mingw* | cegcc*)
5292     # On Win9x/ME, this test blows up -- it succeeds, but takes
5293     # about 5 minutes as the teststring grows exponentially.
5294     # Worse, since 9x/ME are not pre-emptively multitasking,
5295     # you end up with a "frozen" computer, even though with patience
5296     # the test eventually succeeds (with a max line length of 256k).
5297     # Instead, let's just punt: use the minimum linelength reported by
5298     # all of the supported platforms: 8192 (on NT/2K/XP).
5299     lt_cv_sys_max_cmd_len=8192;
5300     ;;
5301
5302   mint*)
5303     # On MiNT this can take a long time and run out of memory.
5304     lt_cv_sys_max_cmd_len=8192;
5305     ;;
5306
5307   amigaos*)
5308     # On AmigaOS with pdksh, this test takes hours, literally.
5309     # So we just punt and use a minimum line length of 8192.
5310     lt_cv_sys_max_cmd_len=8192;
5311     ;;
5312
5313   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5314     # This has been around since 386BSD, at least.  Likely further.
5315     if test -x /sbin/sysctl; then
5316       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5317     elif test -x /usr/sbin/sysctl; then
5318       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5319     else
5320       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5321     fi
5322     # And add a safety zone
5323     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5324     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325     ;;
5326
5327   interix*)
5328     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5329     lt_cv_sys_max_cmd_len=196608
5330     ;;
5331
5332   osf*)
5333     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5334     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5335     # nice to cause kernel panics so lets avoid the loop below.
5336     # First set a reasonable default.
5337     lt_cv_sys_max_cmd_len=16384
5338     #
5339     if test -x /sbin/sysconfig; then
5340       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5341         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5342       esac
5343     fi
5344     ;;
5345   sco3.2v5*)
5346     lt_cv_sys_max_cmd_len=102400
5347     ;;
5348   sysv5* | sco5v6* | sysv4.2uw2*)
5349     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5350     if test -n "$kargmax"; then
5351       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5352     else
5353       lt_cv_sys_max_cmd_len=32768
5354     fi
5355     ;;
5356   *)
5357     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5358     if test -n "$lt_cv_sys_max_cmd_len"; then
5359       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5360       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5361     else
5362       # Make teststring a little bigger before we do anything with it.
5363       # a 1K string should be a reasonable start.
5364       for i in 1 2 3 4 5 6 7 8 ; do
5365         teststring=$teststring$teststring
5366       done
5367       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5368       # If test is not a shell built-in, we'll probably end up computing a
5369       # maximum length that is only half of the actual maximum length, but
5370       # we can't tell.
5371       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5372                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5373               test $i != 17 # 1/2 MB should be enough
5374       do
5375         i=`expr $i + 1`
5376         teststring=$teststring$teststring
5377       done
5378       # Only check the string length outside the loop.
5379       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5380       teststring=
5381       # Add a significant safety factor because C++ compilers can tack on
5382       # massive amounts of additional arguments before passing them to the
5383       # linker.  It appears as though 1/2 is a usable value.
5384       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5385     fi
5386     ;;
5387   esac
5388
5389 fi
5390
5391 if test -n $lt_cv_sys_max_cmd_len ; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5396 $as_echo "none" >&6; }
5397 fi
5398 max_cmd_len=$lt_cv_sys_max_cmd_len
5399
5400
5401
5402
5403
5404
5405 : ${CP="cp -f"}
5406 : ${MV="mv -f"}
5407 : ${RM="rm -f"}
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5411 # Try some XSI features
5412 xsi_shell=no
5413 ( _lt_dummy="a/b/c"
5414   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5415       = c,a/b,, \
5416     && eval 'test $(( 1 + 1 )) -eq 2 \
5417     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5418   && xsi_shell=yes
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5420 $as_echo "$xsi_shell" >&6; }
5421
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5424 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5425 lt_shell_append=no
5426 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5427     >/dev/null 2>&1 \
5428   && lt_shell_append=yes
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5430 $as_echo "$lt_shell_append" >&6; }
5431
5432
5433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5434   lt_unset=unset
5435 else
5436   lt_unset=false
5437 fi
5438
5439
5440
5441
5442
5443 # test EBCDIC or ASCII
5444 case `echo X|tr X '\101'` in
5445  A) # ASCII based system
5446     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5447   lt_SP2NL='tr \040 \012'
5448   lt_NL2SP='tr \015\012 \040\040'
5449   ;;
5450  *) # EBCDIC based system
5451   lt_SP2NL='tr \100 \n'
5452   lt_NL2SP='tr \r\n \100\100'
5453   ;;
5454 esac
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5466 if ${lt_cv_ld_reload_flag+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   lt_cv_ld_reload_flag='-r'
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5473 reload_flag=$lt_cv_ld_reload_flag
5474 case $reload_flag in
5475 "" | " "*) ;;
5476 *) reload_flag=" $reload_flag" ;;
5477 esac
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5479 case $host_os in
5480   darwin*)
5481     if test "$GCC" = yes; then
5482       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5483     else
5484       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5485     fi
5486     ;;
5487 esac
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 if test -n "$ac_tool_prefix"; then
5498   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_OBJDUMP+:} false; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -n "$OBJDUMP"; then
5506   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520   done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 OBJDUMP=$ac_cv_prog_OBJDUMP
5526 if test -n "$OBJDUMP"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5528 $as_echo "$OBJDUMP" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 fi
5536 if test -z "$ac_cv_prog_OBJDUMP"; then
5537   ac_ct_OBJDUMP=$OBJDUMP
5538   # Extract the first word of "objdump", so it can be a program name with args.
5539 set dummy objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$ac_ct_OBJDUMP"; then
5546   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5566 if test -n "$ac_ct_OBJDUMP"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5568 $as_echo "$ac_ct_OBJDUMP" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574   if test "x$ac_ct_OBJDUMP" = x; then
5575     OBJDUMP="false"
5576   else
5577     case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583     OBJDUMP=$ac_ct_OBJDUMP
5584   fi
5585 else
5586   OBJDUMP="$ac_cv_prog_OBJDUMP"
5587 fi
5588
5589 test -z "$OBJDUMP" && OBJDUMP=objdump
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5601 if ${lt_cv_deplibs_check_method+:} false; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   lt_cv_file_magic_cmd='$MAGIC_CMD'
5605 lt_cv_file_magic_test_file=
5606 lt_cv_deplibs_check_method='unknown'
5607 # Need to set the preceding variable on all platforms that support
5608 # interlibrary dependencies.
5609 # 'none' -- dependencies not supported.
5610 # `unknown' -- same as none, but documents that we really don't know.
5611 # 'pass_all' -- all dependencies passed with no checks.
5612 # 'test_compile' -- check by making test program.
5613 # 'file_magic [[regex]]' -- check by looking for files in library path
5614 # which responds to the $file_magic_cmd with a given extended regex.
5615 # If you have `file' or equivalent on your system and you're not sure
5616 # whether `pass_all' will *always* work, you probably want this one.
5617
5618 case $host_os in
5619 aix[4-9]*)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 beos*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 bsdi[45]*)
5628   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5629   lt_cv_file_magic_cmd='/usr/bin/file -L'
5630   lt_cv_file_magic_test_file=/shlib/libc.so
5631   ;;
5632
5633 cygwin*)
5634   # func_win32_libid is a shell function defined in ltmain.sh
5635   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636   lt_cv_file_magic_cmd='func_win32_libid'
5637   ;;
5638
5639 mingw* | pw32*)
5640   # Base MSYS/MinGW do not provide the 'file' command needed by
5641   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5642   # unless we find 'file', for example because we are cross-compiling.
5643   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5644   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5645     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5646     lt_cv_file_magic_cmd='func_win32_libid'
5647   else
5648     # Keep this pattern in sync with the one in func_win32_libid.
5649     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5650     lt_cv_file_magic_cmd='$OBJDUMP -f'
5651   fi
5652   ;;
5653
5654 cegcc*)
5655   # use the weaker test based on 'objdump'. See mingw*.
5656   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5657   lt_cv_file_magic_cmd='$OBJDUMP -f'
5658   ;;
5659
5660 darwin* | rhapsody*)
5661   lt_cv_deplibs_check_method=pass_all
5662   ;;
5663
5664 freebsd* | dragonfly*)
5665   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5666     case $host_cpu in
5667     i*86 )
5668       # Not sure whether the presence of OpenBSD here was a mistake.
5669       # Let's accept both of them until this is cleared up.
5670       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5671       lt_cv_file_magic_cmd=/usr/bin/file
5672       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5673       ;;
5674     esac
5675   else
5676     lt_cv_deplibs_check_method=pass_all
5677   fi
5678   ;;
5679
5680 gnu*)
5681   lt_cv_deplibs_check_method=pass_all
5682   ;;
5683
5684 haiku*)
5685   lt_cv_deplibs_check_method=pass_all
5686   ;;
5687
5688 hpux10.20* | hpux11*)
5689   lt_cv_file_magic_cmd=/usr/bin/file
5690   case $host_cpu in
5691   ia64*)
5692     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5693     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5694     ;;
5695   hppa*64*)
5696     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5697     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5698     ;;
5699   *)
5700     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5701     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5702     ;;
5703   esac
5704   ;;
5705
5706 interix[3-9]*)
5707   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5708   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5709   ;;
5710
5711 irix5* | irix6* | nonstopux*)
5712   case $LD in
5713   *-32|*"-32 ") libmagic=32-bit;;
5714   *-n32|*"-n32 ") libmagic=N32;;
5715   *-64|*"-64 ") libmagic=64-bit;;
5716   *) libmagic=never-match;;
5717   esac
5718   lt_cv_deplibs_check_method=pass_all
5719   ;;
5720
5721 # This must be Linux ELF.
5722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5723   lt_cv_deplibs_check_method=pass_all
5724   ;;
5725
5726 netbsd*)
5727   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5728     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5729   else
5730     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5731   fi
5732   ;;
5733
5734 newos6*)
5735   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5736   lt_cv_file_magic_cmd=/usr/bin/file
5737   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5738   ;;
5739
5740 *nto* | *qnx*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 openbsd*)
5745   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5746     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5747   else
5748     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5749   fi
5750   ;;
5751
5752 osf3* | osf4* | osf5*)
5753   lt_cv_deplibs_check_method=pass_all
5754   ;;
5755
5756 rdos*)
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 solaris*)
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763
5764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5765   lt_cv_deplibs_check_method=pass_all
5766   ;;
5767
5768 sysv4 | sysv4.3*)
5769   case $host_vendor in
5770   motorola)
5771     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]'
5772     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5773     ;;
5774   ncr)
5775     lt_cv_deplibs_check_method=pass_all
5776     ;;
5777   sequent)
5778     lt_cv_file_magic_cmd='/bin/file'
5779     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5780     ;;
5781   sni)
5782     lt_cv_file_magic_cmd='/bin/file'
5783     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5784     lt_cv_file_magic_test_file=/lib/libc.so
5785     ;;
5786   siemens)
5787     lt_cv_deplibs_check_method=pass_all
5788     ;;
5789   pc)
5790     lt_cv_deplibs_check_method=pass_all
5791     ;;
5792   esac
5793   ;;
5794
5795 tpf*)
5796   lt_cv_deplibs_check_method=pass_all
5797   ;;
5798 esac
5799
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5803 file_magic_cmd=$lt_cv_file_magic_cmd
5804 deplibs_check_method=$lt_cv_deplibs_check_method
5805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 if test -n "$ac_tool_prefix"; then
5819   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ar; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_AR+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   if test -n "$AR"; then
5827   ac_cv_prog_AR="$AR" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834     for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_prog_AR="${ac_tool_prefix}ar"
5837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841   done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 AR=$ac_cv_prog_AR
5847 if test -n "$AR"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5849 $as_echo "$AR" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855
5856 fi
5857 if test -z "$ac_cv_prog_AR"; then
5858   ac_ct_AR=$AR
5859   # Extract the first word of "ar", so it can be a program name with args.
5860 set dummy ar; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   if test -n "$ac_ct_AR"; then
5867   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874     for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_prog_ac_ct_AR="ar"
5877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881   done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5887 if test -n "$ac_ct_AR"; then
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5889 $as_echo "$ac_ct_AR" >&6; }
5890 else
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895   if test "x$ac_ct_AR" = x; then
5896     AR="false"
5897   else
5898     case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904     AR=$ac_ct_AR
5905   fi
5906 else
5907   AR="$ac_cv_prog_AR"
5908 fi
5909
5910 test -z "$AR" && AR=ar
5911 test -z "$AR_FLAGS" && AR_FLAGS=cru
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 if test -n "$ac_tool_prefix"; then
5924   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_STRIP+:} false; then :
5929   $as_echo_n "(cached) " >&6
5930 else
5931   if test -n "$STRIP"; then
5932   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946   done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 STRIP=$ac_cv_prog_STRIP
5952 if test -n "$STRIP"; then
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5954 $as_echo "$STRIP" >&6; }
5955 else
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961 fi
5962 if test -z "$ac_cv_prog_STRIP"; then
5963   ac_ct_STRIP=$STRIP
5964   # Extract the first word of "strip", so it can be a program name with args.
5965 set dummy strip; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   if test -n "$ac_ct_STRIP"; then
5972   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979     for ac_exec_ext in '' $ac_executable_extensions; do
5980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981     ac_cv_prog_ac_ct_STRIP="strip"
5982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986   done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5992 if test -n "$ac_ct_STRIP"; then
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5994 $as_echo "$ac_ct_STRIP" >&6; }
5995 else
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000   if test "x$ac_ct_STRIP" = x; then
6001     STRIP=":"
6002   else
6003     case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009     STRIP=$ac_ct_STRIP
6010   fi
6011 else
6012   STRIP="$ac_cv_prog_STRIP"
6013 fi
6014
6015 test -z "$STRIP" && STRIP=:
6016
6017
6018
6019
6020
6021
6022 if test -n "$ac_tool_prefix"; then
6023   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_RANLIB+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$RANLIB"; then
6031   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 RANLIB=$ac_cv_prog_RANLIB
6051 if test -n "$RANLIB"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6053 $as_echo "$RANLIB" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060 fi
6061 if test -z "$ac_cv_prog_RANLIB"; then
6062   ac_ct_RANLIB=$RANLIB
6063   # Extract the first word of "ranlib", so it can be a program name with args.
6064 set dummy ranlib; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   if test -n "$ac_ct_RANLIB"; then
6071   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078     for ac_exec_ext in '' $ac_executable_extensions; do
6079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080     ac_cv_prog_ac_ct_RANLIB="ranlib"
6081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082     break 2
6083   fi
6084 done
6085   done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6091 if test -n "$ac_ct_RANLIB"; then
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6093 $as_echo "$ac_ct_RANLIB" >&6; }
6094 else
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099   if test "x$ac_ct_RANLIB" = x; then
6100     RANLIB=":"
6101   else
6102     case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108     RANLIB=$ac_ct_RANLIB
6109   fi
6110 else
6111   RANLIB="$ac_cv_prog_RANLIB"
6112 fi
6113
6114 test -z "$RANLIB" && RANLIB=:
6115
6116
6117
6118
6119
6120
6121 # Determine commands to create old-style static archives.
6122 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6123 old_postinstall_cmds='chmod 644 $oldlib'
6124 old_postuninstall_cmds=
6125
6126 if test -n "$RANLIB"; then
6127   case $host_os in
6128   openbsd*)
6129     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6130     ;;
6131   *)
6132     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6133     ;;
6134   esac
6135   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6136 fi
6137
6138 case $host_os in
6139   darwin*)
6140     lock_old_archive_extraction=yes ;;
6141   *)
6142     lock_old_archive_extraction=no ;;
6143 esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 # If no C compiler was specified, use CC.
6184 LTCC=${LTCC-"$CC"}
6185
6186 # If no C compiler flags were specified, use CFLAGS.
6187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6188
6189 # Allow CC to be a program name with arguments.
6190 compiler=$CC
6191
6192
6193 # Check for command to grab the raw symbol name followed by C symbol from nm.
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6195 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6196 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199
6200 # These are sane defaults that work on at least a few old systems.
6201 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6202
6203 # Character class describing NM global symbol codes.
6204 symcode='[BCDEGRST]'
6205
6206 # Regexp to match symbols that can be accessed directly from C.
6207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6208
6209 # Define system-specific variables.
6210 case $host_os in
6211 aix*)
6212   symcode='[BCDT]'
6213   ;;
6214 cygwin* | mingw* | pw32* | cegcc*)
6215   symcode='[ABCDGISTW]'
6216   ;;
6217 hpux*)
6218   if test "$host_cpu" = ia64; then
6219     symcode='[ABCDEGRST]'
6220   fi
6221   ;;
6222 irix* | nonstopux*)
6223   symcode='[BCDEGRST]'
6224   ;;
6225 osf*)
6226   symcode='[BCDEGQRST]'
6227   ;;
6228 solaris*)
6229   symcode='[BDRT]'
6230   ;;
6231 sco3.2v5*)
6232   symcode='[DT]'
6233   ;;
6234 sysv4.2uw2*)
6235   symcode='[DT]'
6236   ;;
6237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6238   symcode='[ABDT]'
6239   ;;
6240 sysv4)
6241   symcode='[DFNSTU]'
6242   ;;
6243 esac
6244
6245 # If we're using GNU nm, then use its standard symbol codes.
6246 case `$NM -V 2>&1` in
6247 *GNU* | *'with BFD'*)
6248   symcode='[ABCDGIRSTW]' ;;
6249 esac
6250
6251 # Transform an extracted symbol line into a proper C declaration.
6252 # Some systems (esp. on ia64) link data and code symbols differently,
6253 # so use this general approach.
6254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6255
6256 # Transform an extracted symbol line into symbol name and symbol address
6257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6259
6260 # Handle CRLF in mingw tool chain
6261 opt_cr=
6262 case $build_os in
6263 mingw*)
6264   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6265   ;;
6266 esac
6267
6268 # Try without a prefix underscore, then with it.
6269 for ac_symprfx in "" "_"; do
6270
6271   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6272   symxfrm="\\1 $ac_symprfx\\2 \\2"
6273
6274   # Write the raw and C identifiers.
6275   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6276     # Fake it for dumpbin and say T for any non-static function
6277     # and D for any global variable.
6278     # Also find C++ and __fastcall symbols from MSVC++,
6279     # which start with @ or ?.
6280     lt_cv_sys_global_symbol_pipe="$AWK '"\
6281 "     {last_section=section; section=\$ 3};"\
6282 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6283 "     \$ 0!~/External *\|/{next};"\
6284 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6285 "     {if(hide[section]) next};"\
6286 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6287 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6288 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6289 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6290 "     ' prfx=^$ac_symprfx"
6291   else
6292     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6293   fi
6294
6295   # Check to see that the pipe works correctly.
6296   pipe_works=no
6297
6298   rm -f conftest*
6299   cat > conftest.$ac_ext <<_LT_EOF
6300 #ifdef __cplusplus
6301 extern "C" {
6302 #endif
6303 char nm_test_var;
6304 void nm_test_func(void);
6305 void nm_test_func(void){}
6306 #ifdef __cplusplus
6307 }
6308 #endif
6309 int main(){nm_test_var='a';nm_test_func();return(0);}
6310 _LT_EOF
6311
6312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313   (eval $ac_compile) 2>&5
6314   ac_status=$?
6315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316   test $ac_status = 0; }; then
6317     # Now try to grab the symbols.
6318     nlist=conftest.nm
6319     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6320   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6321   ac_status=$?
6322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323   test $ac_status = 0; } && test -s "$nlist"; then
6324       # Try sorting and uniquifying the output.
6325       if sort "$nlist" | uniq > "$nlist"T; then
6326         mv -f "$nlist"T "$nlist"
6327       else
6328         rm -f "$nlist"T
6329       fi
6330
6331       # Make sure that we snagged all the symbols we need.
6332       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6333         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6334           cat <<_LT_EOF > conftest.$ac_ext
6335 #ifdef __cplusplus
6336 extern "C" {
6337 #endif
6338
6339 _LT_EOF
6340           # Now generate the symbol file.
6341           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6342
6343           cat <<_LT_EOF >> conftest.$ac_ext
6344
6345 /* The mapping between symbol names and symbols.  */
6346 const struct {
6347   const char *name;
6348   void       *address;
6349 }
6350 lt__PROGRAM__LTX_preloaded_symbols[] =
6351 {
6352   { "@PROGRAM@", (void *) 0 },
6353 _LT_EOF
6354           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6355           cat <<\_LT_EOF >> conftest.$ac_ext
6356   {0, (void *) 0}
6357 };
6358
6359 /* This works around a problem in FreeBSD linker */
6360 #ifdef FREEBSD_WORKAROUND
6361 static const void *lt_preloaded_setup() {
6362   return lt__PROGRAM__LTX_preloaded_symbols;
6363 }
6364 #endif
6365
6366 #ifdef __cplusplus
6367 }
6368 #endif
6369 _LT_EOF
6370           # Now try linking the two files.
6371           mv conftest.$ac_objext conftstm.$ac_objext
6372           lt_save_LIBS="$LIBS"
6373           lt_save_CFLAGS="$CFLAGS"
6374           LIBS="conftstm.$ac_objext"
6375           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6376           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6377   (eval $ac_link) 2>&5
6378   ac_status=$?
6379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6381             pipe_works=yes
6382           fi
6383           LIBS="$lt_save_LIBS"
6384           CFLAGS="$lt_save_CFLAGS"
6385         else
6386           echo "cannot find nm_test_func in $nlist" >&5
6387         fi
6388       else
6389         echo "cannot find nm_test_var in $nlist" >&5
6390       fi
6391     else
6392       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6393     fi
6394   else
6395     echo "$progname: failed program was:" >&5
6396     cat conftest.$ac_ext >&5
6397   fi
6398   rm -rf conftest* conftst*
6399
6400   # Do not use the global_symbol_pipe unless it works.
6401   if test "$pipe_works" = yes; then
6402     break
6403   else
6404     lt_cv_sys_global_symbol_pipe=
6405   fi
6406 done
6407
6408 fi
6409
6410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411   lt_cv_sys_global_symbol_to_cdecl=
6412 fi
6413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6415 $as_echo "failed" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6418 $as_echo "ok" >&6; }
6419 fi
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then :
6444   enableval=$enable_libtool_lock;
6445 fi
6446
6447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6448
6449 # Some flags need to be propagated to the compiler or linker for good
6450 # libtool support.
6451 case $host in
6452 ia64-*-hpux*)
6453   # Find out which ABI we are using.
6454   echo 'int i;' > conftest.$ac_ext
6455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6456   (eval $ac_compile) 2>&5
6457   ac_status=$?
6458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459   test $ac_status = 0; }; then
6460     case `/usr/bin/file conftest.$ac_objext` in
6461       *ELF-32*)
6462         HPUX_IA64_MODE="32"
6463         ;;
6464       *ELF-64*)
6465         HPUX_IA64_MODE="64"
6466         ;;
6467     esac
6468   fi
6469   rm -rf conftest*
6470   ;;
6471 *-*-irix6*)
6472   # Find out which ABI we are using.
6473   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6474   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475   (eval $ac_compile) 2>&5
6476   ac_status=$?
6477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478   test $ac_status = 0; }; then
6479     if test "$lt_cv_prog_gnu_ld" = yes; then
6480       case `/usr/bin/file conftest.$ac_objext` in
6481         *32-bit*)
6482           LD="${LD-ld} -melf32bsmip"
6483           ;;
6484         *N32*)
6485           LD="${LD-ld} -melf32bmipn32"
6486           ;;
6487         *64-bit*)
6488           LD="${LD-ld} -melf64bmip"
6489         ;;
6490       esac
6491     else
6492       case `/usr/bin/file conftest.$ac_objext` in
6493         *32-bit*)
6494           LD="${LD-ld} -32"
6495           ;;
6496         *N32*)
6497           LD="${LD-ld} -n32"
6498           ;;
6499         *64-bit*)
6500           LD="${LD-ld} -64"
6501           ;;
6502       esac
6503     fi
6504   fi
6505   rm -rf conftest*
6506   ;;
6507
6508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6510   # Find out which ABI we are using.
6511   echo 'int i;' > conftest.$ac_ext
6512   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513   (eval $ac_compile) 2>&5
6514   ac_status=$?
6515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516   test $ac_status = 0; }; then
6517     case `/usr/bin/file conftest.o` in
6518       *32-bit*)
6519         case $host in
6520           x86_64-*kfreebsd*-gnu)
6521             LD="${LD-ld} -m elf_i386_fbsd"
6522             ;;
6523           x86_64-*linux*)
6524             LD="${LD-ld} -m elf_i386"
6525             ;;
6526           ppc64-*linux*|powerpc64-*linux*)
6527             LD="${LD-ld} -m elf32ppclinux"
6528             ;;
6529           s390x-*linux*)
6530             LD="${LD-ld} -m elf_s390"
6531             ;;
6532           sparc64-*linux*)
6533             LD="${LD-ld} -m elf32_sparc"
6534             ;;
6535         esac
6536         ;;
6537       *64-bit*)
6538         case $host in
6539           x86_64-*kfreebsd*-gnu)
6540             LD="${LD-ld} -m elf_x86_64_fbsd"
6541             ;;
6542           x86_64-*linux*)
6543             LD="${LD-ld} -m elf_x86_64"
6544             ;;
6545           ppc*-*linux*|powerpc*-*linux*)
6546             LD="${LD-ld} -m elf64ppc"
6547             ;;
6548           s390*-*linux*|s390*-*tpf*)
6549             LD="${LD-ld} -m elf64_s390"
6550             ;;
6551           sparc*-*linux*)
6552             LD="${LD-ld} -m elf64_sparc"
6553             ;;
6554         esac
6555         ;;
6556     esac
6557   fi
6558   rm -rf conftest*
6559   ;;
6560
6561 *-*-sco3.2v5*)
6562   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6563   SAVE_CFLAGS="$CFLAGS"
6564   CFLAGS="$CFLAGS -belf"
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6567 if ${lt_cv_cc_needs_belf+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   ac_ext=c
6571 ac_cpp='$CPP $CPPFLAGS'
6572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575
6576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h.  */
6578
6579 int
6580 main ()
6581 {
6582
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"; then :
6588   lt_cv_cc_needs_belf=yes
6589 else
6590   lt_cv_cc_needs_belf=no
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext \
6593     conftest$ac_exeext conftest.$ac_ext
6594      ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6603   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6604     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6605     CFLAGS="$SAVE_CFLAGS"
6606   fi
6607   ;;
6608 sparc*-*solaris*)
6609   # Find out which ABI we are using.
6610   echo 'int i;' > conftest.$ac_ext
6611   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615   test $ac_status = 0; }; then
6616     case `/usr/bin/file conftest.o` in
6617     *64-bit*)
6618       case $lt_cv_prog_gnu_ld in
6619       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6620       *)
6621         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6622           LD="${LD-ld} -64"
6623         fi
6624         ;;
6625       esac
6626       ;;
6627     esac
6628   fi
6629   rm -rf conftest*
6630   ;;
6631 esac
6632
6633 need_locks="$enable_libtool_lock"
6634
6635
6636   case $host_os in
6637     rhapsody* | darwin*)
6638     if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$DSYMUTIL"; then
6647   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654     for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661   done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6667 if test -n "$DSYMUTIL"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6669 $as_echo "$DSYMUTIL" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_DSYMUTIL"; then
6678   ac_ct_DSYMUTIL=$DSYMUTIL
6679   # Extract the first word of "dsymutil", so it can be a program name with args.
6680 set dummy dsymutil; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   if test -n "$ac_ct_DSYMUTIL"; then
6687   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694     for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701   done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_DSYMUTIL" = x; then
6716     DSYMUTIL=":"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6723 esac
6724     DSYMUTIL=$ac_ct_DSYMUTIL
6725   fi
6726 else
6727   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6728 fi
6729
6730     if test -n "$ac_tool_prefix"; then
6731   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_NMEDIT+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$NMEDIT"; then
6739   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746     for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753   done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 NMEDIT=$ac_cv_prog_NMEDIT
6759 if test -n "$NMEDIT"; then
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6761 $as_echo "$NMEDIT" >&6; }
6762 else
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_NMEDIT"; then
6770   ac_ct_NMEDIT=$NMEDIT
6771   # Extract the first word of "nmedit", so it can be a program name with args.
6772 set dummy nmedit; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   if test -n "$ac_ct_NMEDIT"; then
6779   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786     for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793   done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6799 if test -n "$ac_ct_NMEDIT"; then
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6801 $as_echo "$ac_ct_NMEDIT" >&6; }
6802 else
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807   if test "x$ac_ct_NMEDIT" = x; then
6808     NMEDIT=":"
6809   else
6810     case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816     NMEDIT=$ac_ct_NMEDIT
6817   fi
6818 else
6819   NMEDIT="$ac_cv_prog_NMEDIT"
6820 fi
6821
6822     if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_LIPO+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$LIPO"; then
6831   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 LIPO=$ac_cv_prog_LIPO
6851 if test -n "$LIPO"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6853 $as_echo "$LIPO" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_LIPO"; then
6862   ac_ct_LIPO=$LIPO
6863   # Extract the first word of "lipo", so it can be a program name with args.
6864 set dummy lipo; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   if test -n "$ac_ct_LIPO"; then
6871   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_LIPO="lipo"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6891 if test -n "$ac_ct_LIPO"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6893 $as_echo "$ac_ct_LIPO" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899   if test "x$ac_ct_LIPO" = x; then
6900     LIPO=":"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908     LIPO=$ac_ct_LIPO
6909   fi
6910 else
6911   LIPO="$ac_cv_prog_LIPO"
6912 fi
6913
6914     if test -n "$ac_tool_prefix"; then
6915   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}otool; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_OTOOL+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$OTOOL"; then
6923   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 OTOOL=$ac_cv_prog_OTOOL
6943 if test -n "$OTOOL"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6945 $as_echo "$OTOOL" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_OTOOL"; then
6954   ac_ct_OTOOL=$OTOOL
6955   # Extract the first word of "otool", so it can be a program name with args.
6956 set dummy otool; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   if test -n "$ac_ct_OTOOL"; then
6963   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972     ac_cv_prog_ac_ct_OTOOL="otool"
6973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977   done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6983 if test -n "$ac_ct_OTOOL"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6985 $as_echo "$ac_ct_OTOOL" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991   if test "x$ac_ct_OTOOL" = x; then
6992     OTOOL=":"
6993   else
6994     case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000     OTOOL=$ac_ct_OTOOL
7001   fi
7002 else
7003   OTOOL="$ac_cv_prog_OTOOL"
7004 fi
7005
7006     if test -n "$ac_tool_prefix"; then
7007   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_OTOOL64+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$OTOOL64"; then
7015   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 OTOOL64=$ac_cv_prog_OTOOL64
7035 if test -n "$OTOOL64"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7037 $as_echo "$OTOOL64" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_OTOOL64"; then
7046   ac_ct_OTOOL64=$OTOOL64
7047   # Extract the first word of "otool64", so it can be a program name with args.
7048 set dummy otool64; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   if test -n "$ac_ct_OTOOL64"; then
7055   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_prog_ac_ct_OTOOL64="otool64"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7075 if test -n "$ac_ct_OTOOL64"; then
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7077 $as_echo "$ac_ct_OTOOL64" >&6; }
7078 else
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083   if test "x$ac_ct_OTOOL64" = x; then
7084     OTOOL64=":"
7085   else
7086     case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092     OTOOL64=$ac_ct_OTOOL64
7093   fi
7094 else
7095   OTOOL64="$ac_cv_prog_OTOOL64"
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7125 $as_echo_n "checking for -single_module linker flag... " >&6; }
7126 if ${lt_cv_apple_cc_single_mod+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   lt_cv_apple_cc_single_mod=no
7130       if test -z "${LT_MULTI_MODULE}"; then
7131         # By default we will add the -single_module flag. You can override
7132         # by either setting the environment variable LT_MULTI_MODULE
7133         # non-empty at configure time, or by adding -multi_module to the
7134         # link flags.
7135         rm -rf libconftest.dylib*
7136         echo "int foo(void){return 1;}" > conftest.c
7137         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7138 -dynamiclib -Wl,-single_module conftest.c" >&5
7139         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7141         _lt_result=$?
7142         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7143           lt_cv_apple_cc_single_mod=yes
7144         else
7145           cat conftest.err >&5
7146         fi
7147         rm -rf libconftest.dylib*
7148         rm -f conftest.*
7149       fi
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7155 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   lt_cv_ld_exported_symbols_list=no
7159       save_LDFLAGS=$LDFLAGS
7160       echo "_main" > conftest.sym
7161       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h.  */
7164
7165 int
7166 main ()
7167 {
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"; then :
7174   lt_cv_ld_exported_symbols_list=yes
7175 else
7176   lt_cv_ld_exported_symbols_list=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext \
7179     conftest$ac_exeext conftest.$ac_ext
7180         LDFLAGS="$save_LDFLAGS"
7181
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7186 $as_echo_n "checking for -force_load linker flag... " >&6; }
7187 if ${lt_cv_ld_force_load+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   lt_cv_ld_force_load=no
7191       cat > conftest.c << _LT_EOF
7192 int forced_loaded() { return 2;}
7193 _LT_EOF
7194       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7195       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7196       echo "$AR cru libconftest.a conftest.o" >&5
7197       $AR cru libconftest.a conftest.o 2>&5
7198       echo "$RANLIB libconftest.a" >&5
7199       $RANLIB libconftest.a 2>&5
7200       cat > conftest.c << _LT_EOF
7201 int main() { return 0;}
7202 _LT_EOF
7203       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7204       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7205       _lt_result=$?
7206       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7207         lt_cv_ld_force_load=yes
7208       else
7209         cat conftest.err >&5
7210       fi
7211         rm -f conftest.err libconftest.a conftest conftest.c
7212         rm -rf conftest.dSYM
7213
7214 fi
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7216 $as_echo "$lt_cv_ld_force_load" >&6; }
7217     case $host_os in
7218     rhapsody* | darwin1.[012])
7219       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7220     darwin1.*)
7221       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222     darwin*) # darwin 5.x on
7223       # if running on 10.5 or later, the deployment target defaults
7224       # to the OS version, if on x86, and 10.4, the deployment
7225       # target defaults to 10.4. Don't you love it?
7226       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7227         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7228           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7229         10.[012]*)
7230           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7231         10.*)
7232           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7233       esac
7234     ;;
7235   esac
7236     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7237       _lt_dar_single_mod='$single_module'
7238     fi
7239     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7240       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7241     else
7242       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7243     fi
7244     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7245       _lt_dsymutil='~$DSYMUTIL $lib || :'
7246     else
7247       _lt_dsymutil=
7248     fi
7249     ;;
7250   esac
7251
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7254 $as_echo_n "checking for ANSI C header files... " >&6; }
7255 if ${ac_cv_header_stdc+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h.  */
7260 #include <stdlib.h>
7261 #include <stdarg.h>
7262 #include <string.h>
7263 #include <float.h>
7264
7265 int
7266 main ()
7267 {
7268
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274   ac_cv_header_stdc=yes
7275 else
7276   ac_cv_header_stdc=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279
7280 if test $ac_cv_header_stdc = yes; then
7281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h.  */
7284 #include <string.h>
7285
7286 _ACEOF
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288   $EGREP "memchr" >/dev/null 2>&1; then :
7289
7290 else
7291   ac_cv_header_stdc=no
7292 fi
7293 rm -f conftest*
7294
7295 fi
7296
7297 if test $ac_cv_header_stdc = yes; then
7298   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301 #include <stdlib.h>
7302
7303 _ACEOF
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305   $EGREP "free" >/dev/null 2>&1; then :
7306
7307 else
7308   ac_cv_header_stdc=no
7309 fi
7310 rm -f conftest*
7311
7312 fi
7313
7314 if test $ac_cv_header_stdc = yes; then
7315   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316   if test "$cross_compiling" = yes; then :
7317   :
7318 else
7319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h.  */
7321 #include <ctype.h>
7322 #include <stdlib.h>
7323 #if ((' ' & 0x0FF) == 0x020)
7324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7326 #else
7327 # define ISLOWER(c) \
7328                    (('a' <= (c) && (c) <= 'i') \
7329                      || ('j' <= (c) && (c) <= 'r') \
7330                      || ('s' <= (c) && (c) <= 'z'))
7331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7332 #endif
7333
7334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7335 int
7336 main ()
7337 {
7338   int i;
7339   for (i = 0; i < 256; i++)
7340     if (XOR (islower (i), ISLOWER (i))
7341         || toupper (i) != TOUPPER (i))
7342       return 2;
7343   return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_run "$LINENO"; then :
7347
7348 else
7349   ac_cv_header_stdc=no
7350 fi
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352   conftest.$ac_objext conftest.beam conftest.$ac_ext
7353 fi
7354
7355 fi
7356 fi
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7358 $as_echo "$ac_cv_header_stdc" >&6; }
7359 if test $ac_cv_header_stdc = yes; then
7360
7361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7362
7363 fi
7364
7365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7367                   inttypes.h stdint.h unistd.h
7368 do :
7369   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7371 "
7372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7373   cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376
7377 fi
7378
7379 done
7380
7381
7382 for ac_header in dlfcn.h
7383 do :
7384   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7385 "
7386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7387   cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7389 _ACEOF
7390
7391 fi
7392
7393 done
7394
7395
7396
7397
7398
7399 # Set options
7400
7401
7402
7403         enable_dlopen=no
7404
7405
7406   enable_win32_dll=no
7407
7408
7409             # Check whether --enable-shared was given.
7410 if test "${enable_shared+set}" = set; then :
7411   enableval=$enable_shared; p=${PACKAGE-default}
7412     case $enableval in
7413     yes) enable_shared=yes ;;
7414     no) enable_shared=no ;;
7415     *)
7416       enable_shared=no
7417       # Look at the argument we got.  We use all the common list separators.
7418       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419       for pkg in $enableval; do
7420         IFS="$lt_save_ifs"
7421         if test "X$pkg" = "X$p"; then
7422           enable_shared=yes
7423         fi
7424       done
7425       IFS="$lt_save_ifs"
7426       ;;
7427     esac
7428 else
7429   enable_shared=yes
7430 fi
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442 # Check whether --with-pic was given.
7443 if test "${with_pic+set}" = set; then :
7444   withval=$with_pic; pic_mode="$withval"
7445 else
7446   pic_mode=default
7447 fi
7448
7449
7450 test -z "$pic_mode" && pic_mode=default
7451
7452
7453
7454
7455
7456
7457
7458   # Check whether --enable-fast-install was given.
7459 if test "${enable_fast_install+set}" = set; then :
7460   enableval=$enable_fast_install; p=${PACKAGE-default}
7461     case $enableval in
7462     yes) enable_fast_install=yes ;;
7463     no) enable_fast_install=no ;;
7464     *)
7465       enable_fast_install=no
7466       # Look at the argument we got.  We use all the common list separators.
7467       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468       for pkg in $enableval; do
7469         IFS="$lt_save_ifs"
7470         if test "X$pkg" = "X$p"; then
7471           enable_fast_install=yes
7472         fi
7473       done
7474       IFS="$lt_save_ifs"
7475       ;;
7476     esac
7477 else
7478   enable_fast_install=yes
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 # This can be used to rebuild libtool when needed
7492 LIBTOOL_DEPS="$ltmain"
7493
7494 # Always use our own libtool.
7495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522 test -z "$LN_S" && LN_S="ln -s"
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 if test -n "${ZSH_VERSION+set}" ; then
7538    setopt NO_GLOB_SUBST
7539 fi
7540
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7542 $as_echo_n "checking for objdir... " >&6; }
7543 if ${lt_cv_objdir+:} false; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   rm -f .libs 2>/dev/null
7547 mkdir .libs 2>/dev/null
7548 if test -d .libs; then
7549   lt_cv_objdir=.libs
7550 else
7551   # MS-DOS does not allow filenames that begin with a dot.
7552   lt_cv_objdir=_libs
7553 fi
7554 rmdir .libs 2>/dev/null
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7557 $as_echo "$lt_cv_objdir" >&6; }
7558 objdir=$lt_cv_objdir
7559
7560
7561
7562
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define LT_OBJDIR "$lt_cv_objdir/"
7566 _ACEOF
7567
7568
7569
7570
7571 case $host_os in
7572 aix3*)
7573   # AIX sometimes has problems with the GCC collect2 program.  For some
7574   # reason, if we set the COLLECT_NAMES environment variable, the problems
7575   # vanish in a puff of smoke.
7576   if test "X${COLLECT_NAMES+set}" != Xset; then
7577     COLLECT_NAMES=
7578     export COLLECT_NAMES
7579   fi
7580   ;;
7581 esac
7582
7583 # Global variables:
7584 ofile=libtool
7585 can_build_shared=yes
7586
7587 # All known linkers require a `.a' archive for static linking (except MSVC,
7588 # which needs '.lib').
7589 libext=a
7590
7591 with_gnu_ld="$lt_cv_prog_gnu_ld"
7592
7593 old_CC="$CC"
7594 old_CFLAGS="$CFLAGS"
7595
7596 # Set sane defaults for various variables
7597 test -z "$CC" && CC=cc
7598 test -z "$LTCC" && LTCC=$CC
7599 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7600 test -z "$LD" && LD=ld
7601 test -z "$ac_objext" && ac_objext=o
7602
7603 for cc_temp in $compiler""; do
7604   case $cc_temp in
7605     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7606     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7607     \-*) ;;
7608     *) break;;
7609   esac
7610 done
7611 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7612
7613
7614 # Only perform the check for file, if the check method requires it
7615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7616 case $deplibs_check_method in
7617 file_magic*)
7618   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7620 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7621 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   case $MAGIC_CMD in
7625 [\\/*] |  ?:[\\/]*)
7626   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7627   ;;
7628 *)
7629   lt_save_MAGIC_CMD="$MAGIC_CMD"
7630   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632   for ac_dir in $ac_dummy; do
7633     IFS="$lt_save_ifs"
7634     test -z "$ac_dir" && ac_dir=.
7635     if test -f $ac_dir/${ac_tool_prefix}file; then
7636       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7637       if test -n "$file_magic_test_file"; then
7638         case $deplibs_check_method in
7639         "file_magic "*)
7640           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643             $EGREP "$file_magic_regex" > /dev/null; then
7644             :
7645           else
7646             cat <<_LT_EOF 1>&2
7647
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such.  This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem.  Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7656
7657 _LT_EOF
7658           fi ;;
7659         esac
7660       fi
7661       break
7662     fi
7663   done
7664   IFS="$lt_save_ifs"
7665   MAGIC_CMD="$lt_save_MAGIC_CMD"
7666   ;;
7667 esac
7668 fi
7669
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680
7681
7682
7683 if test -z "$lt_cv_path_MAGIC_CMD"; then
7684   if test -n "$ac_tool_prefix"; then
7685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7686 $as_echo_n "checking for file... " >&6; }
7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   case $MAGIC_CMD in
7691 [\\/*] |  ?:[\\/]*)
7692   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7693   ;;
7694 *)
7695   lt_save_MAGIC_CMD="$MAGIC_CMD"
7696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698   for ac_dir in $ac_dummy; do
7699     IFS="$lt_save_ifs"
7700     test -z "$ac_dir" && ac_dir=.
7701     if test -f $ac_dir/file; then
7702       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7703       if test -n "$file_magic_test_file"; then
7704         case $deplibs_check_method in
7705         "file_magic "*)
7706           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709             $EGREP "$file_magic_regex" > /dev/null; then
7710             :
7711           else
7712             cat <<_LT_EOF 1>&2
7713
7714 *** Warning: the command libtool uses to detect shared libraries,
7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
7716 *** The result is that libtool may fail to recognize shared libraries
7717 *** as such.  This will affect the creation of libtool libraries that
7718 *** depend on shared libraries, but programs linked with such libtool
7719 *** libraries will work regardless of this problem.  Nevertheless, you
7720 *** may want to report the problem to your system manager and/or to
7721 *** bug-libtool@gnu.org
7722
7723 _LT_EOF
7724           fi ;;
7725         esac
7726       fi
7727       break
7728     fi
7729   done
7730   IFS="$lt_save_ifs"
7731   MAGIC_CMD="$lt_save_MAGIC_CMD"
7732   ;;
7733 esac
7734 fi
7735
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if test -n "$MAGIC_CMD"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 $as_echo "$MAGIC_CMD" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746   else
7747     MAGIC_CMD=:
7748   fi
7749 fi
7750
7751   fi
7752   ;;
7753 esac
7754
7755 # Use C for the default configuration in the libtool script
7756
7757 lt_save_CC="$CC"
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765 # Source file extension for C test sources.
7766 ac_ext=c
7767
7768 # Object file extension for compiled C test sources.
7769 objext=o
7770 objext=$objext
7771
7772 # Code to be used in simple compile tests
7773 lt_simple_compile_test_code="int some_variable = 0;"
7774
7775 # Code to be used in simple link tests
7776 lt_simple_link_test_code='int main(){return(0);}'
7777
7778
7779
7780
7781
7782
7783
7784 # If no C compiler was specified, use CC.
7785 LTCC=${LTCC-"$CC"}
7786
7787 # If no C compiler flags were specified, use CFLAGS.
7788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7789
7790 # Allow CC to be a program name with arguments.
7791 compiler=$CC
7792
7793 # Save the default compiler, since it gets overwritten when the other
7794 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7795 compiler_DEFAULT=$CC
7796
7797 # save warnings/boilerplate of simple test code
7798 ac_outfile=conftest.$ac_objext
7799 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801 _lt_compiler_boilerplate=`cat conftest.err`
7802 $RM conftest*
7803
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807 _lt_linker_boilerplate=`cat conftest.err`
7808 $RM -r conftest*
7809
7810
7811 ## CAVEAT EMPTOR:
7812 ## There is no encapsulation within the following macros, do not change
7813 ## the running order or otherwise move them around unless you know exactly
7814 ## what you are doing...
7815 if test -n "$compiler"; then
7816
7817 lt_prog_compiler_no_builtin_flag=
7818
7819 if test "$GCC" = yes; then
7820   case $cc_basename in
7821   nvcc*)
7822     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7823   *)
7824     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7825   esac
7826
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7829 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   lt_cv_prog_compiler_rtti_exceptions=no
7833    ac_outfile=conftest.$ac_objext
7834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835    lt_compiler_flag="-fno-rtti -fno-exceptions"
7836    # Insert the option either (1) after the last *FLAGS variable, or
7837    # (2) before a word containing "conftest.", or (3) at the end.
7838    # Note that $ac_compile itself does not contain backslashes and begins
7839    # with a dollar sign (not a hyphen), so the echo should work correctly.
7840    # The option is referenced via a variable to avoid confusing sed.
7841    lt_compile=`echo "$ac_compile" | $SED \
7842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844    -e 's:$: $lt_compiler_flag:'`
7845    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7846    (eval "$lt_compile" 2>conftest.err)
7847    ac_status=$?
7848    cat conftest.err >&5
7849    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850    if (exit $ac_status) && test -s "$ac_outfile"; then
7851      # The compiler can only warn and ignore the option if not recognized
7852      # So say no if there are warnings other than the usual output.
7853      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7854      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856        lt_cv_prog_compiler_rtti_exceptions=yes
7857      fi
7858    fi
7859    $RM conftest*
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7864
7865 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7866     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7867 else
7868     :
7869 fi
7870
7871 fi
7872
7873
7874
7875
7876
7877
7878   lt_prog_compiler_wl=
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_static=
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7884
7885   if test "$GCC" = yes; then
7886     lt_prog_compiler_wl='-Wl,'
7887     lt_prog_compiler_static='-static'
7888
7889     case $host_os in
7890       aix*)
7891       # All AIX code is PIC.
7892       if test "$host_cpu" = ia64; then
7893         # AIX 5 now supports IA64 processor
7894         lt_prog_compiler_static='-Bstatic'
7895       fi
7896       ;;
7897
7898     amigaos*)
7899       case $host_cpu in
7900       powerpc)
7901             # see comment about AmigaOS4 .so support
7902             lt_prog_compiler_pic='-fPIC'
7903         ;;
7904       m68k)
7905             # FIXME: we need at least 68020 code to build shared libraries, but
7906             # adding the `-m68020' flag to GCC prevents building anything better,
7907             # like `-m68040'.
7908             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7909         ;;
7910       esac
7911       ;;
7912
7913     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914       # PIC is the default for these OSes.
7915       ;;
7916
7917     mingw* | cygwin* | pw32* | os2* | cegcc*)
7918       # This hack is so that the source file can tell whether it is being
7919       # built for inclusion in a dll (and should export symbols for example).
7920       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921       # (--disable-auto-import) libraries
7922       lt_prog_compiler_pic='-DDLL_EXPORT'
7923       ;;
7924
7925     darwin* | rhapsody*)
7926       # PIC is the default on this platform
7927       # Common symbols not allowed in MH_DYLIB files
7928       lt_prog_compiler_pic='-fno-common'
7929       ;;
7930
7931     haiku*)
7932       # PIC is the default for Haiku.
7933       # The "-static" flag exists, but is broken.
7934       lt_prog_compiler_static=
7935       ;;
7936
7937     hpux*)
7938       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7940       # sets the default TLS model and affects inlining.
7941       case $host_cpu in
7942       hppa*64*)
7943         # +Z the default
7944         ;;
7945       *)
7946         lt_prog_compiler_pic='-fPIC'
7947         ;;
7948       esac
7949       ;;
7950
7951     interix[3-9]*)
7952       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953       # Instead, we relocate shared libraries at runtime.
7954       ;;
7955
7956     msdosdjgpp*)
7957       # Just because we use GCC doesn't mean we suddenly get shared libraries
7958       # on systems that don't support them.
7959       lt_prog_compiler_can_build_shared=no
7960       enable_shared=no
7961       ;;
7962
7963     *nto* | *qnx*)
7964       # QNX uses GNU C++, but need to define -shared option too, otherwise
7965       # it will coredump.
7966       lt_prog_compiler_pic='-fPIC -shared'
7967       ;;
7968
7969     sysv4*MP*)
7970       if test -d /usr/nec; then
7971         lt_prog_compiler_pic=-Kconform_pic
7972       fi
7973       ;;
7974
7975     *)
7976       lt_prog_compiler_pic='-fPIC'
7977       ;;
7978     esac
7979
7980     case $cc_basename in
7981     nvcc*) # Cuda Compiler Driver 2.2
7982       lt_prog_compiler_wl='-Xlinker '
7983       lt_prog_compiler_pic='-Xcompiler -fPIC'
7984       ;;
7985     esac
7986   else
7987     # PORTME Check for flag to pass linker flags through the system compiler.
7988     case $host_os in
7989     aix*)
7990       lt_prog_compiler_wl='-Wl,'
7991       if test "$host_cpu" = ia64; then
7992         # AIX 5 now supports IA64 processor
7993         lt_prog_compiler_static='-Bstatic'
7994       else
7995         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7996       fi
7997       ;;
7998
7999     mingw* | cygwin* | pw32* | os2* | cegcc*)
8000       # This hack is so that the source file can tell whether it is being
8001       # built for inclusion in a dll (and should export symbols for example).
8002       lt_prog_compiler_pic='-DDLL_EXPORT'
8003       ;;
8004
8005     hpux9* | hpux10* | hpux11*)
8006       lt_prog_compiler_wl='-Wl,'
8007       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8008       # not for PA HP-UX.
8009       case $host_cpu in
8010       hppa*64*|ia64*)
8011         # +Z the default
8012         ;;
8013       *)
8014         lt_prog_compiler_pic='+Z'
8015         ;;
8016       esac
8017       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018       lt_prog_compiler_static='${wl}-a ${wl}archive'
8019       ;;
8020
8021     irix5* | irix6* | nonstopux*)
8022       lt_prog_compiler_wl='-Wl,'
8023       # PIC (with -KPIC) is the default.
8024       lt_prog_compiler_static='-non_shared'
8025       ;;
8026
8027     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8028       case $cc_basename in
8029       # old Intel for x86_64 which still supported -KPIC.
8030       ecc*)
8031         lt_prog_compiler_wl='-Wl,'
8032         lt_prog_compiler_pic='-KPIC'
8033         lt_prog_compiler_static='-static'
8034         ;;
8035       # icc used to be incompatible with GCC.
8036       # ICC 10 doesn't accept -KPIC any more.
8037       icc* | ifort*)
8038         lt_prog_compiler_wl='-Wl,'
8039         lt_prog_compiler_pic='-fPIC'
8040         lt_prog_compiler_static='-static'
8041         ;;
8042       # Lahey Fortran 8.1.
8043       lf95*)
8044         lt_prog_compiler_wl='-Wl,'
8045         lt_prog_compiler_pic='--shared'
8046         lt_prog_compiler_static='--static'
8047         ;;
8048       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8049         # Portland Group compilers (*not* the Pentium gcc compiler,
8050         # which looks to be a dead project)
8051         lt_prog_compiler_wl='-Wl,'
8052         lt_prog_compiler_pic='-fpic'
8053         lt_prog_compiler_static='-Bstatic'
8054         ;;
8055       ccc*)
8056         lt_prog_compiler_wl='-Wl,'
8057         # All Alpha code is PIC.
8058         lt_prog_compiler_static='-non_shared'
8059         ;;
8060       xl* | bgxl* | bgf* | mpixl*)
8061         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-qpic'
8064         lt_prog_compiler_static='-qstaticlink'
8065         ;;
8066       *)
8067         case `$CC -V 2>&1 | sed 5q` in
8068         *Sun\ F* | *Sun*Fortran*)
8069           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8070           lt_prog_compiler_pic='-KPIC'
8071           lt_prog_compiler_static='-Bstatic'
8072           lt_prog_compiler_wl=''
8073           ;;
8074         *Sun\ C*)
8075           # Sun C 5.9
8076           lt_prog_compiler_pic='-KPIC'
8077           lt_prog_compiler_static='-Bstatic'
8078           lt_prog_compiler_wl='-Wl,'
8079           ;;
8080         esac
8081         ;;
8082       esac
8083       ;;
8084
8085     newsos6)
8086       lt_prog_compiler_pic='-KPIC'
8087       lt_prog_compiler_static='-Bstatic'
8088       ;;
8089
8090     *nto* | *qnx*)
8091       # QNX uses GNU C++, but need to define -shared option too, otherwise
8092       # it will coredump.
8093       lt_prog_compiler_pic='-fPIC -shared'
8094       ;;
8095
8096     osf3* | osf4* | osf5*)
8097       lt_prog_compiler_wl='-Wl,'
8098       # All OSF/1 code is PIC.
8099       lt_prog_compiler_static='-non_shared'
8100       ;;
8101
8102     rdos*)
8103       lt_prog_compiler_static='-non_shared'
8104       ;;
8105
8106     solaris*)
8107       lt_prog_compiler_pic='-KPIC'
8108       lt_prog_compiler_static='-Bstatic'
8109       case $cc_basename in
8110       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8111         lt_prog_compiler_wl='-Qoption ld ';;
8112       *)
8113         lt_prog_compiler_wl='-Wl,';;
8114       esac
8115       ;;
8116
8117     sunos4*)
8118       lt_prog_compiler_wl='-Qoption ld '
8119       lt_prog_compiler_pic='-PIC'
8120       lt_prog_compiler_static='-Bstatic'
8121       ;;
8122
8123     sysv4 | sysv4.2uw2* | sysv4.3*)
8124       lt_prog_compiler_wl='-Wl,'
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       ;;
8128
8129     sysv4*MP*)
8130       if test -d /usr/nec ;then
8131         lt_prog_compiler_pic='-Kconform_pic'
8132         lt_prog_compiler_static='-Bstatic'
8133       fi
8134       ;;
8135
8136     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137       lt_prog_compiler_wl='-Wl,'
8138       lt_prog_compiler_pic='-KPIC'
8139       lt_prog_compiler_static='-Bstatic'
8140       ;;
8141
8142     unicos*)
8143       lt_prog_compiler_wl='-Wl,'
8144       lt_prog_compiler_can_build_shared=no
8145       ;;
8146
8147     uts4*)
8148       lt_prog_compiler_pic='-pic'
8149       lt_prog_compiler_static='-Bstatic'
8150       ;;
8151
8152     *)
8153       lt_prog_compiler_can_build_shared=no
8154       ;;
8155     esac
8156   fi
8157
8158 case $host_os in
8159   # For platforms which do not support PIC, -DPIC is meaningless:
8160   *djgpp*)
8161     lt_prog_compiler_pic=
8162     ;;
8163   *)
8164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8165     ;;
8166 esac
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8169
8170
8171
8172
8173
8174
8175 #
8176 # Check to make sure the PIC flag actually works.
8177 #
8178 if test -n "$lt_prog_compiler_pic"; then
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   lt_cv_prog_compiler_pic_works=no
8185    ac_outfile=conftest.$ac_objext
8186    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188    # Insert the option either (1) after the last *FLAGS variable, or
8189    # (2) before a word containing "conftest.", or (3) at the end.
8190    # Note that $ac_compile itself does not contain backslashes and begins
8191    # with a dollar sign (not a hyphen), so the echo should work correctly.
8192    # The option is referenced via a variable to avoid confusing sed.
8193    lt_compile=`echo "$ac_compile" | $SED \
8194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196    -e 's:$: $lt_compiler_flag:'`
8197    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8198    (eval "$lt_compile" 2>conftest.err)
8199    ac_status=$?
8200    cat conftest.err >&5
8201    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202    if (exit $ac_status) && test -s "$ac_outfile"; then
8203      # The compiler can only warn and ignore the option if not recognized
8204      # So say no if there are warnings other than the usual output.
8205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208        lt_cv_prog_compiler_pic_works=yes
8209      fi
8210    fi
8211    $RM conftest*
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8216
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218     case $lt_prog_compiler_pic in
8219      "" | " "*) ;;
8220      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8221      esac
8222 else
8223     lt_prog_compiler_pic=
8224      lt_prog_compiler_can_build_shared=no
8225 fi
8226
8227 fi
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the static flag actually works.
8236 #
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if ${lt_cv_prog_compiler_static_works+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_prog_compiler_static_works=no
8244    save_LDFLAGS="$LDFLAGS"
8245    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248      # The linker can only warn and ignore the option if not recognized
8249      # So say no if there are warnings
8250      if test -s conftest.err; then
8251        # Append any errors to the config.log.
8252        cat conftest.err 1>&5
8253        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8254        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255        if diff conftest.exp conftest.er2 >/dev/null; then
8256          lt_cv_prog_compiler_static_works=yes
8257        fi
8258      else
8259        lt_cv_prog_compiler_static_works=yes
8260      fi
8261    fi
8262    $RM -r conftest*
8263    LDFLAGS="$save_LDFLAGS"
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8270     :
8271 else
8272     lt_prog_compiler_static=
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if ${lt_cv_prog_compiler_c_o+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   lt_cv_prog_compiler_c_o=no
8287    $RM -r conftest 2>/dev/null
8288    mkdir conftest
8289    cd conftest
8290    mkdir out
8291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293    lt_compiler_flag="-o out/conftest2.$ac_objext"
8294    # Insert the option either (1) after the last *FLAGS variable, or
8295    # (2) before a word containing "conftest.", or (3) at the end.
8296    # Note that $ac_compile itself does not contain backslashes and begins
8297    # with a dollar sign (not a hyphen), so the echo should work correctly.
8298    lt_compile=`echo "$ac_compile" | $SED \
8299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301    -e 's:$: $lt_compiler_flag:'`
8302    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8303    (eval "$lt_compile" 2>out/conftest.err)
8304    ac_status=$?
8305    cat out/conftest.err >&5
8306    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308    then
8309      # The compiler can only warn and ignore the option if not recognized
8310      # So say no if there are warnings
8311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314        lt_cv_prog_compiler_c_o=yes
8315      fi
8316    fi
8317    chmod u+w . 2>&5
8318    $RM conftest*
8319    # SGI C++ compiler will create directory out/ii_files/ for
8320    # template instantiation
8321    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322    $RM out/* && rmdir out
8323    cd ..
8324    $RM -r conftest
8325    $RM conftest*
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8330
8331
8332
8333
8334
8335
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if ${lt_cv_prog_compiler_c_o+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   lt_cv_prog_compiler_c_o=no
8342    $RM -r conftest 2>/dev/null
8343    mkdir conftest
8344    cd conftest
8345    mkdir out
8346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347
8348    lt_compiler_flag="-o out/conftest2.$ac_objext"
8349    # Insert the option either (1) after the last *FLAGS variable, or
8350    # (2) before a word containing "conftest.", or (3) at the end.
8351    # Note that $ac_compile itself does not contain backslashes and begins
8352    # with a dollar sign (not a hyphen), so the echo should work correctly.
8353    lt_compile=`echo "$ac_compile" | $SED \
8354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356    -e 's:$: $lt_compiler_flag:'`
8357    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8358    (eval "$lt_compile" 2>out/conftest.err)
8359    ac_status=$?
8360    cat out/conftest.err >&5
8361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8363    then
8364      # The compiler can only warn and ignore the option if not recognized
8365      # So say no if there are warnings
8366      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8367      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369        lt_cv_prog_compiler_c_o=yes
8370      fi
8371    fi
8372    chmod u+w . 2>&5
8373    $RM conftest*
8374    # SGI C++ compiler will create directory out/ii_files/ for
8375    # template instantiation
8376    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377    $RM out/* && rmdir out
8378    cd ..
8379    $RM -r conftest
8380    $RM conftest*
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385
8386
8387
8388
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391   # do not overwrite the value of need_locks provided by the user
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8394   hard_links=yes
8395   $RM conftest*
8396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397   touch conftest.a
8398   ln conftest.a conftest.b 2>&5 || hard_links=no
8399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402   if test "$hard_links" = no; then
8403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8405     need_locks=warn
8406   fi
8407 else
8408   need_locks=no
8409 fi
8410
8411
8412
8413
8414
8415
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8418
8419   runpath_var=
8420   allow_undefined_flag=
8421   always_export_symbols=no
8422   archive_cmds=
8423   archive_expsym_cmds=
8424   compiler_needs_object=no
8425   enable_shared_with_static_runtimes=no
8426   export_dynamic_flag_spec=
8427   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428   hardcode_automatic=no
8429   hardcode_direct=no
8430   hardcode_direct_absolute=no
8431   hardcode_libdir_flag_spec=
8432   hardcode_libdir_flag_spec_ld=
8433   hardcode_libdir_separator=
8434   hardcode_minus_L=no
8435   hardcode_shlibpath_var=unsupported
8436   inherit_rpath=no
8437   link_all_deplibs=unknown
8438   module_cmds=
8439   module_expsym_cmds=
8440   old_archive_from_new_cmds=
8441   old_archive_from_expsyms_cmds=
8442   thread_safe_flag_spec=
8443   whole_archive_flag_spec=
8444   # include_expsyms should be a list of space-separated symbols to be *always*
8445   # included in the symbol list
8446   include_expsyms=
8447   # exclude_expsyms can be an extended regexp of symbols to exclude
8448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450   # as well as any symbol that contains `d'.
8451   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453   # platforms (ab)use it in PIC code, but their linkers get confused if
8454   # the symbol is explicitly referenced.  Since portable code cannot
8455   # rely on this symbol name, it's probably fine to never include it in
8456   # preloaded symbol tables.
8457   # Exclude shared library initialization/finalization symbols.
8458   extract_expsyms_cmds=
8459
8460   case $host_os in
8461   cygwin* | mingw* | pw32* | cegcc*)
8462     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463     # When not using gcc, we currently assume that we are using
8464     # Microsoft Visual C++.
8465     if test "$GCC" != yes; then
8466       with_gnu_ld=no
8467     fi
8468     ;;
8469   interix*)
8470     # we just hope/assume this is gcc and not c89 (= MSVC++)
8471     with_gnu_ld=yes
8472     ;;
8473   openbsd*)
8474     with_gnu_ld=no
8475     ;;
8476   esac
8477
8478   ld_shlibs=yes
8479
8480   # On some targets, GNU ld is compatible enough with the native linker
8481   # that we're better off using the native interface for both.
8482   lt_use_gnu_ld_interface=no
8483   if test "$with_gnu_ld" = yes; then
8484     case $host_os in
8485       aix*)
8486         # The AIX port of GNU ld has always aspired to compatibility
8487         # with the native linker.  However, as the warning in the GNU ld
8488         # block says, versions before 2.19.5* couldn't really create working
8489         # shared libraries, regardless of the interface used.
8490         case `$LD -v 2>&1` in
8491           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8492           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8493           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8494           *)
8495             lt_use_gnu_ld_interface=yes
8496             ;;
8497         esac
8498         ;;
8499       *)
8500         lt_use_gnu_ld_interface=yes
8501         ;;
8502     esac
8503   fi
8504
8505   if test "$lt_use_gnu_ld_interface" = yes; then
8506     # If archive_cmds runs LD, not CC, wlarc should be empty
8507     wlarc='${wl}'
8508
8509     # Set some defaults for GNU ld with shared library support. These
8510     # are reset later if shared libraries are not supported. Putting them
8511     # here allows them to be overridden if necessary.
8512     runpath_var=LD_RUN_PATH
8513     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514     export_dynamic_flag_spec='${wl}--export-dynamic'
8515     # ancient GNU ld didn't support --whole-archive et. al.
8516     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8517       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8518     else
8519       whole_archive_flag_spec=
8520     fi
8521     supports_anon_versioning=no
8522     case `$LD -v 2>&1` in
8523       *GNU\ gold*) supports_anon_versioning=yes ;;
8524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527       *\ 2.11.*) ;; # other 2.11 versions
8528       *) supports_anon_versioning=yes ;;
8529     esac
8530
8531     # See if GNU ld supports shared libraries.
8532     case $host_os in
8533     aix[3-9]*)
8534       # On AIX/PPC, the GNU linker is very broken
8535       if test "$host_cpu" != ia64; then
8536         ld_shlibs=no
8537         cat <<_LT_EOF 1>&2
8538
8539 *** Warning: the GNU linker, at least up to release 2.19, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support.  If you
8542 *** really care for shared libraries, you may want to install binutils
8543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8544 *** You will then need to restart the configuration process.
8545
8546 _LT_EOF
8547       fi
8548       ;;
8549
8550     amigaos*)
8551       case $host_cpu in
8552       powerpc)
8553             # see comment about AmigaOS4 .so support
8554             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555             archive_expsym_cmds=''
8556         ;;
8557       m68k)
8558             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)'
8559             hardcode_libdir_flag_spec='-L$libdir'
8560             hardcode_minus_L=yes
8561         ;;
8562       esac
8563       ;;
8564
8565     beos*)
8566       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567         allow_undefined_flag=unsupported
8568         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8569         # support --undefined.  This deserves some investigation.  FIXME
8570         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571       else
8572         ld_shlibs=no
8573       fi
8574       ;;
8575
8576     cygwin* | mingw* | pw32* | cegcc*)
8577       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578       # as there is no search path for DLLs.
8579       hardcode_libdir_flag_spec='-L$libdir'
8580       export_dynamic_flag_spec='${wl}--export-all-symbols'
8581       allow_undefined_flag=unsupported
8582       always_export_symbols=no
8583       enable_shared_with_static_runtimes=yes
8584       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8585
8586       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8587         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588         # If the export-symbols file already is a .def file (1st line
8589         # is EXPORTS), use it as is; otherwise, prepend...
8590         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8591           cp $export_symbols $output_objdir/$soname.def;
8592         else
8593           echo EXPORTS > $output_objdir/$soname.def;
8594           cat $export_symbols >> $output_objdir/$soname.def;
8595         fi~
8596         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8597       else
8598         ld_shlibs=no
8599       fi
8600       ;;
8601
8602     haiku*)
8603       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604       link_all_deplibs=yes
8605       ;;
8606
8607     interix[3-9]*)
8608       hardcode_direct=no
8609       hardcode_shlibpath_var=no
8610       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8611       export_dynamic_flag_spec='${wl}-E'
8612       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8613       # Instead, shared libraries are loaded at an image base (0x10000000 by
8614       # default) and relocated if they conflict, which is a slow very memory
8615       # consuming and fragmenting process.  To avoid this, we pick a random,
8616       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8617       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8618       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8619       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8620       ;;
8621
8622     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8623       tmp_diet=no
8624       if test "$host_os" = linux-dietlibc; then
8625         case $cc_basename in
8626           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8627         esac
8628       fi
8629       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8630          && test "$tmp_diet" = no
8631       then
8632         tmp_addflag=
8633         tmp_sharedflag='-shared'
8634         case $cc_basename,$host_cpu in
8635         pgcc*)                          # Portland Group C compiler
8636           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8637           tmp_addflag=' $pic_flag'
8638           ;;
8639         pgf77* | pgf90* | pgf95* | pgfortran*)
8640                                         # Portland Group f77 and f90 compilers
8641           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8642           tmp_addflag=' $pic_flag -Mnomain' ;;
8643         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8644           tmp_addflag=' -i_dynamic' ;;
8645         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8646           tmp_addflag=' -i_dynamic -nofor_main' ;;
8647         ifc* | ifort*)                  # Intel Fortran compiler
8648           tmp_addflag=' -nofor_main' ;;
8649         lf95*)                          # Lahey Fortran 8.1
8650           whole_archive_flag_spec=
8651           tmp_sharedflag='--shared' ;;
8652         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8653           tmp_sharedflag='-qmkshrobj'
8654           tmp_addflag= ;;
8655         nvcc*)  # Cuda Compiler Driver 2.2
8656           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8657           compiler_needs_object=yes
8658           ;;
8659         esac
8660         case `$CC -V 2>&1 | sed 5q` in
8661         *Sun\ C*)                       # Sun C 5.9
8662           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8663           compiler_needs_object=yes
8664           tmp_sharedflag='-G' ;;
8665         *Sun\ F*)                       # Sun Fortran 8.3
8666           tmp_sharedflag='-G' ;;
8667         esac
8668         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669
8670         if test "x$supports_anon_versioning" = xyes; then
8671           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673             echo "local: *; };" >> $output_objdir/$libname.ver~
8674             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8675         fi
8676
8677         case $cc_basename in
8678         xlf* | bgf* | bgxlf* | mpixlf*)
8679           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8681           hardcode_libdir_flag_spec=
8682           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8684           if test "x$supports_anon_versioning" = xyes; then
8685             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687               echo "local: *; };" >> $output_objdir/$libname.ver~
8688               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8689           fi
8690           ;;
8691         esac
8692       else
8693         ld_shlibs=no
8694       fi
8695       ;;
8696
8697     netbsd*)
8698       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8700         wlarc=
8701       else
8702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704       fi
8705       ;;
8706
8707     solaris*)
8708       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8709         ld_shlibs=no
8710         cat <<_LT_EOF 1>&2
8711
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems.  Therefore, libtool
8714 *** is disabling shared libraries support.  We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer.  Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8718
8719 _LT_EOF
8720       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727
8728     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729       case `$LD -v 2>&1` in
8730         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8731         ld_shlibs=no
8732         cat <<_LT_EOF 1>&2
8733
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8736 *** is disabling shared libraries support.  We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 _LT_EOF
8742         ;;
8743         *)
8744           # For security reasons, it is highly recommended that you always
8745           # use absolute paths for naming shared libraries, and exclude the
8746           # DT_RUNPATH tag from executables and libraries.  But doing so
8747           # requires that you compile everything twice, which is a pain.
8748           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752           else
8753             ld_shlibs=no
8754           fi
8755         ;;
8756       esac
8757       ;;
8758
8759     sunos4*)
8760       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8761       wlarc=
8762       hardcode_direct=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     *)
8767       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774     esac
8775
8776     if test "$ld_shlibs" = no; then
8777       runpath_var=
8778       hardcode_libdir_flag_spec=
8779       export_dynamic_flag_spec=
8780       whole_archive_flag_spec=
8781     fi
8782   else
8783     # PORTME fill in a description of your system's linker (not GNU ld)
8784     case $host_os in
8785     aix3*)
8786       allow_undefined_flag=unsupported
8787       always_export_symbols=yes
8788       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'
8789       # Note: this linker hardcodes the directories in LIBPATH if there
8790       # are no directories specified by -L.
8791       hardcode_minus_L=yes
8792       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793         # Neither direct hardcoding nor static linking is supported with a
8794         # broken collect2.
8795         hardcode_direct=unsupported
8796       fi
8797       ;;
8798
8799     aix[4-9]*)
8800       if test "$host_cpu" = ia64; then
8801         # On IA64, the linker does run time linking by default, so we don't
8802         # have to do anything special.
8803         aix_use_runtimelinking=no
8804         exp_sym_flag='-Bexport'
8805         no_entry_flag=""
8806       else
8807         # If we're using GNU nm, then we don't want the "-C" option.
8808         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809         # Also, AIX nm treats weak defined symbols like other global
8810         # defined symbols, whereas GNU nm marks them as "W".
8811         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8812           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8813         else
8814           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'
8815         fi
8816         aix_use_runtimelinking=no
8817
8818         # Test if we are trying to use run time linking or normal
8819         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820         # need to do runtime linking.
8821         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8822           for ld_flag in $LDFLAGS; do
8823           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824             aix_use_runtimelinking=yes
8825             break
8826           fi
8827           done
8828           ;;
8829         esac
8830
8831         exp_sym_flag='-bexport'
8832         no_entry_flag='-bnoentry'
8833       fi
8834
8835       # When large executables or shared objects are built, AIX ld can
8836       # have problems creating the table of contents.  If linking a library
8837       # or program results in "error TOC overflow" add -mminimal-toc to
8838       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8839       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8840
8841       archive_cmds=''
8842       hardcode_direct=yes
8843       hardcode_direct_absolute=yes
8844       hardcode_libdir_separator=':'
8845       link_all_deplibs=yes
8846       file_list_spec='${wl}-f,'
8847
8848       if test "$GCC" = yes; then
8849         case $host_os in aix4.[012]|aix4.[012].*)
8850         # We only want to do this on AIX 4.2 and lower, the check
8851         # below for broken collect2 doesn't work under 4.3+
8852           collect2name=`${CC} -print-prog-name=collect2`
8853           if test -f "$collect2name" &&
8854            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8855           then
8856           # We have reworked collect2
8857           :
8858           else
8859           # We have old collect2
8860           hardcode_direct=unsupported
8861           # It fails to find uninstalled libraries when the uninstalled
8862           # path is not listed in the libpath.  Setting hardcode_minus_L
8863           # to unsupported forces relinking
8864           hardcode_minus_L=yes
8865           hardcode_libdir_flag_spec='-L$libdir'
8866           hardcode_libdir_separator=
8867           fi
8868           ;;
8869         esac
8870         shared_flag='-shared'
8871         if test "$aix_use_runtimelinking" = yes; then
8872           shared_flag="$shared_flag "'${wl}-G'
8873         fi
8874       else
8875         # not using gcc
8876         if test "$host_cpu" = ia64; then
8877         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878         # chokes on -Wl,-G. The following line is correct:
8879           shared_flag='-G'
8880         else
8881           if test "$aix_use_runtimelinking" = yes; then
8882             shared_flag='${wl}-G'
8883           else
8884             shared_flag='${wl}-bM:SRE'
8885           fi
8886         fi
8887       fi
8888
8889       export_dynamic_flag_spec='${wl}-bexpall'
8890       # It seems that -bexpall does not export symbols beginning with
8891       # underscore (_), so it is better to generate a list of symbols to export.
8892       always_export_symbols=yes
8893       if test "$aix_use_runtimelinking" = yes; then
8894         # Warning - without using the other runtime loading flags (-brtl),
8895         # -berok will link without error, but may produce a broken library.
8896         allow_undefined_flag='-berok'
8897         # Determine the default libpath from the value encoded in an
8898         # empty executable.
8899         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_link "$LINENO"; then :
8911
8912 lt_aix_libpath_sed='
8913     /Import File Strings/,/^$/ {
8914         /^0/ {
8915             s/^0  *\(.*\)$/\1/
8916             p
8917         }
8918     }'
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 # Check for a 64-bit object if we didn't find anything.
8921 if test -z "$aix_libpath"; then
8922   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923 fi
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926     conftest$ac_exeext conftest.$ac_ext
8927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8928
8929         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8931       else
8932         if test "$host_cpu" = ia64; then
8933           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8934           allow_undefined_flag="-z nodefs"
8935           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8936         else
8937          # Determine the default libpath from the value encoded in an
8938          # empty executable.
8939          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h.  */
8941
8942 int
8943 main ()
8944 {
8945
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_link "$LINENO"; then :
8951
8952 lt_aix_libpath_sed='
8953     /Import File Strings/,/^$/ {
8954         /^0/ {
8955             s/^0  *\(.*\)$/\1/
8956             p
8957         }
8958     }'
8959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 # Check for a 64-bit object if we didn't find anything.
8961 if test -z "$aix_libpath"; then
8962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963 fi
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext \
8966     conftest$ac_exeext conftest.$ac_ext
8967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8968
8969          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8970           # Warning - without using the other run time loading flags,
8971           # -berok will link without error, but may produce a broken library.
8972           no_undefined_flag=' ${wl}-bernotok'
8973           allow_undefined_flag=' ${wl}-berok'
8974           if test "$with_gnu_ld" = yes; then
8975             # We only use this code for GNU lds that support --whole-archive.
8976             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8977           else
8978             # Exported symbols can be pulled into shared objects from archives
8979             whole_archive_flag_spec='$convenience'
8980           fi
8981           archive_cmds_need_lc=yes
8982           # This is similar to how AIX traditionally builds its shared libraries.
8983           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8984         fi
8985       fi
8986       ;;
8987
8988     amigaos*)
8989       case $host_cpu in
8990       powerpc)
8991             # see comment about AmigaOS4 .so support
8992             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993             archive_expsym_cmds=''
8994         ;;
8995       m68k)
8996             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)'
8997             hardcode_libdir_flag_spec='-L$libdir'
8998             hardcode_minus_L=yes
8999         ;;
9000       esac
9001       ;;
9002
9003     bsdi[45]*)
9004       export_dynamic_flag_spec=-rdynamic
9005       ;;
9006
9007     cygwin* | mingw* | pw32* | cegcc*)
9008       # When not using gcc, we currently assume that we are using
9009       # Microsoft Visual C++.
9010       # hardcode_libdir_flag_spec is actually meaningless, as there is
9011       # no search path for DLLs.
9012       hardcode_libdir_flag_spec=' '
9013       allow_undefined_flag=unsupported
9014       # Tell ltmain to make .lib files, not .a files.
9015       libext=lib
9016       # Tell ltmain to make .dll files, not .so files.
9017       shrext_cmds=".dll"
9018       # FIXME: Setting linknames here is a bad hack.
9019       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9020       # The linker will automatically build a .lib file if we build a DLL.
9021       old_archive_from_new_cmds='true'
9022       # FIXME: Should let the user specify the lib program.
9023       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9024       fix_srcfile_path='`cygpath -w "$srcfile"`'
9025       enable_shared_with_static_runtimes=yes
9026       ;;
9027
9028     darwin* | rhapsody*)
9029
9030
9031   archive_cmds_need_lc=no
9032   hardcode_direct=no
9033   hardcode_automatic=yes
9034   hardcode_shlibpath_var=unsupported
9035   if test "$lt_cv_ld_force_load" = "yes"; then
9036     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9037   else
9038     whole_archive_flag_spec=''
9039   fi
9040   link_all_deplibs=yes
9041   allow_undefined_flag="$_lt_dar_allow_undefined"
9042   case $cc_basename in
9043      ifort*) _lt_dar_can_shared=yes ;;
9044      *) _lt_dar_can_shared=$GCC ;;
9045   esac
9046   if test "$_lt_dar_can_shared" = "yes"; then
9047     output_verbose_link_cmd=func_echo_all
9048     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9049     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9050     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9051     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9052
9053   else
9054   ld_shlibs=no
9055   fi
9056
9057       ;;
9058
9059     dgux*)
9060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061       hardcode_libdir_flag_spec='-L$libdir'
9062       hardcode_shlibpath_var=no
9063       ;;
9064
9065     freebsd1*)
9066       ld_shlibs=no
9067       ;;
9068
9069     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9070     # support.  Future versions do this automatically, but an explicit c++rt0.o
9071     # does not break anything, and helps significantly (at the cost of a little
9072     # extra space).
9073     freebsd2.2*)
9074       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9075       hardcode_libdir_flag_spec='-R$libdir'
9076       hardcode_direct=yes
9077       hardcode_shlibpath_var=no
9078       ;;
9079
9080     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9081     freebsd2*)
9082       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083       hardcode_direct=yes
9084       hardcode_minus_L=yes
9085       hardcode_shlibpath_var=no
9086       ;;
9087
9088     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9089     freebsd* | dragonfly*)
9090       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9091       hardcode_libdir_flag_spec='-R$libdir'
9092       hardcode_direct=yes
9093       hardcode_shlibpath_var=no
9094       ;;
9095
9096     hpux9*)
9097       if test "$GCC" = yes; then
9098         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'
9099       else
9100         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'
9101       fi
9102       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103       hardcode_libdir_separator=:
9104       hardcode_direct=yes
9105
9106       # hardcode_minus_L: Not really in the search PATH,
9107       # but as the default location of the library.
9108       hardcode_minus_L=yes
9109       export_dynamic_flag_spec='${wl}-E'
9110       ;;
9111
9112     hpux10*)
9113       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115       else
9116         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117       fi
9118       if test "$with_gnu_ld" = no; then
9119         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9120         hardcode_libdir_flag_spec_ld='+b $libdir'
9121         hardcode_libdir_separator=:
9122         hardcode_direct=yes
9123         hardcode_direct_absolute=yes
9124         export_dynamic_flag_spec='${wl}-E'
9125         # hardcode_minus_L: Not really in the search PATH,
9126         # but as the default location of the library.
9127         hardcode_minus_L=yes
9128       fi
9129       ;;
9130
9131     hpux11*)
9132       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9133         case $host_cpu in
9134         hppa*64*)
9135           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136           ;;
9137         ia64*)
9138           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139           ;;
9140         *)
9141           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9142           ;;
9143         esac
9144       else
9145         case $host_cpu in
9146         hppa*64*)
9147           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148           ;;
9149         ia64*)
9150           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9151           ;;
9152         *)
9153
9154           # Older versions of the 11.00 compiler do not understand -b yet
9155           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   lt_cv_prog_compiler__b=no
9162    save_LDFLAGS="$LDFLAGS"
9163    LDFLAGS="$LDFLAGS -b"
9164    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166      # The linker can only warn and ignore the option if not recognized
9167      # So say no if there are warnings
9168      if test -s conftest.err; then
9169        # Append any errors to the config.log.
9170        cat conftest.err 1>&5
9171        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173        if diff conftest.exp conftest.er2 >/dev/null; then
9174          lt_cv_prog_compiler__b=yes
9175        fi
9176      else
9177        lt_cv_prog_compiler__b=yes
9178      fi
9179    fi
9180    $RM -r conftest*
9181    LDFLAGS="$save_LDFLAGS"
9182
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9186
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 else
9190     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191 fi
9192
9193           ;;
9194         esac
9195       fi
9196       if test "$with_gnu_ld" = no; then
9197         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198         hardcode_libdir_separator=:
9199
9200         case $host_cpu in
9201         hppa*64*|ia64*)
9202           hardcode_direct=no
9203           hardcode_shlibpath_var=no
9204           ;;
9205         *)
9206           hardcode_direct=yes
9207           hardcode_direct_absolute=yes
9208           export_dynamic_flag_spec='${wl}-E'
9209
9210           # hardcode_minus_L: Not really in the search PATH,
9211           # but as the default location of the library.
9212           hardcode_minus_L=yes
9213           ;;
9214         esac
9215       fi
9216       ;;
9217
9218     irix5* | irix6* | nonstopux*)
9219       if test "$GCC" = yes; then
9220         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9221         # Try to use the -exported_symbol ld option, if it does not
9222         # work, assume that -exports_file does not work either and
9223         # implicitly export all symbols.
9224         save_LDFLAGS="$LDFLAGS"
9225         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228 int foo(void) {}
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9232
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235     conftest$ac_exeext conftest.$ac_ext
9236         LDFLAGS="$save_LDFLAGS"
9237       else
9238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9240       fi
9241       archive_cmds_need_lc='no'
9242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243       hardcode_libdir_separator=:
9244       inherit_rpath=yes
9245       link_all_deplibs=yes
9246       ;;
9247
9248     netbsd*)
9249       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9251       else
9252         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9253       fi
9254       hardcode_libdir_flag_spec='-R$libdir'
9255       hardcode_direct=yes
9256       hardcode_shlibpath_var=no
9257       ;;
9258
9259     newsos6)
9260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261       hardcode_direct=yes
9262       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263       hardcode_libdir_separator=:
9264       hardcode_shlibpath_var=no
9265       ;;
9266
9267     *nto* | *qnx*)
9268       ;;
9269
9270     openbsd*)
9271       if test -f /usr/libexec/ld.so; then
9272         hardcode_direct=yes
9273         hardcode_shlibpath_var=no
9274         hardcode_direct_absolute=yes
9275         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9276           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9277           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9278           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279           export_dynamic_flag_spec='${wl}-E'
9280         else
9281           case $host_os in
9282            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9283              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284              hardcode_libdir_flag_spec='-R$libdir'
9285              ;;
9286            *)
9287              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9288              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9289              ;;
9290           esac
9291         fi
9292       else
9293         ld_shlibs=no
9294       fi
9295       ;;
9296
9297     os2*)
9298       hardcode_libdir_flag_spec='-L$libdir'
9299       hardcode_minus_L=yes
9300       allow_undefined_flag=unsupported
9301       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'
9302       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9303       ;;
9304
9305     osf3*)
9306       if test "$GCC" = yes; then
9307         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9308         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9309       else
9310         allow_undefined_flag=' -expect_unresolved \*'
9311         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9312       fi
9313       archive_cmds_need_lc='no'
9314       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315       hardcode_libdir_separator=:
9316       ;;
9317
9318     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9319       if test "$GCC" = yes; then
9320         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9322         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323       else
9324         allow_undefined_flag=' -expect_unresolved \*'
9325         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9326         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9327         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9328
9329         # Both c and cxx compiler support -rpath directly
9330         hardcode_libdir_flag_spec='-rpath $libdir'
9331       fi
9332       archive_cmds_need_lc='no'
9333       hardcode_libdir_separator=:
9334       ;;
9335
9336     solaris*)
9337       no_undefined_flag=' -z defs'
9338       if test "$GCC" = yes; then
9339         wlarc='${wl}'
9340         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9343       else
9344         case `$CC -V 2>&1` in
9345         *"Compilers 5.0"*)
9346           wlarc=''
9347           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9350           ;;
9351         *)
9352           wlarc='${wl}'
9353           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9356           ;;
9357         esac
9358       fi
9359       hardcode_libdir_flag_spec='-R$libdir'
9360       hardcode_shlibpath_var=no
9361       case $host_os in
9362       solaris2.[0-5] | solaris2.[0-5].*) ;;
9363       *)
9364         # The compiler driver will combine and reorder linker options,
9365         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9366         # but is careful enough not to reorder.
9367         # Supported since Solaris 2.6 (maybe 2.5.1?)
9368         if test "$GCC" = yes; then
9369           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9370         else
9371           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9372         fi
9373         ;;
9374       esac
9375       link_all_deplibs=yes
9376       ;;
9377
9378     sunos4*)
9379       if test "x$host_vendor" = xsequent; then
9380         # Use $CC to link under sequent, because it throws in some extra .o
9381         # files that make .init and .fini sections work.
9382         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383       else
9384         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9385       fi
9386       hardcode_libdir_flag_spec='-L$libdir'
9387       hardcode_direct=yes
9388       hardcode_minus_L=yes
9389       hardcode_shlibpath_var=no
9390       ;;
9391
9392     sysv4)
9393       case $host_vendor in
9394         sni)
9395           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396           hardcode_direct=yes # is this really true???
9397         ;;
9398         siemens)
9399           ## LD is ld it makes a PLAMLIB
9400           ## CC just makes a GrossModule.
9401           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9402           reload_cmds='$CC -r -o $output$reload_objs'
9403           hardcode_direct=no
9404         ;;
9405         motorola)
9406           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9408         ;;
9409       esac
9410       runpath_var='LD_RUN_PATH'
9411       hardcode_shlibpath_var=no
9412       ;;
9413
9414     sysv4.3*)
9415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416       hardcode_shlibpath_var=no
9417       export_dynamic_flag_spec='-Bexport'
9418       ;;
9419
9420     sysv4*MP*)
9421       if test -d /usr/nec; then
9422         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423         hardcode_shlibpath_var=no
9424         runpath_var=LD_RUN_PATH
9425         hardcode_runpath_var=yes
9426         ld_shlibs=yes
9427       fi
9428       ;;
9429
9430     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9431       no_undefined_flag='${wl}-z,text'
9432       archive_cmds_need_lc=no
9433       hardcode_shlibpath_var=no
9434       runpath_var='LD_RUN_PATH'
9435
9436       if test "$GCC" = yes; then
9437         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439       else
9440         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442       fi
9443       ;;
9444
9445     sysv5* | sco3.2v5* | sco5v6*)
9446       # Note: We can NOT use -z defs as we might desire, because we do not
9447       # link with -lc, and that would cause any symbols used from libc to
9448       # always be unresolved, which means just about no library would
9449       # ever link correctly.  If we're not using GNU ld we use -z text
9450       # though, which does catch some bad symbols but isn't as heavy-handed
9451       # as -z defs.
9452       no_undefined_flag='${wl}-z,text'
9453       allow_undefined_flag='${wl}-z,nodefs'
9454       archive_cmds_need_lc=no
9455       hardcode_shlibpath_var=no
9456       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9457       hardcode_libdir_separator=':'
9458       link_all_deplibs=yes
9459       export_dynamic_flag_spec='${wl}-Bexport'
9460       runpath_var='LD_RUN_PATH'
9461
9462       if test "$GCC" = yes; then
9463         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465       else
9466         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468       fi
9469       ;;
9470
9471     uts4*)
9472       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473       hardcode_libdir_flag_spec='-L$libdir'
9474       hardcode_shlibpath_var=no
9475       ;;
9476
9477     *)
9478       ld_shlibs=no
9479       ;;
9480     esac
9481
9482     if test x$host_vendor = xsni; then
9483       case $host in
9484       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9485         export_dynamic_flag_spec='${wl}-Blargedynsym'
9486         ;;
9487       esac
9488     fi
9489   fi
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9492 $as_echo "$ld_shlibs" >&6; }
9493 test "$ld_shlibs" = no && can_build_shared=no
9494
9495 with_gnu_ld=$with_gnu_ld
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511 #
9512 # Do we need to explicitly link libc?
9513 #
9514 case "x$archive_cmds_need_lc" in
9515 x|xyes)
9516   # Assume -lc should be added
9517   archive_cmds_need_lc=yes
9518
9519   if test "$enable_shared" = yes && test "$GCC" = yes; then
9520     case $archive_cmds in
9521     *'~'*)
9522       # FIXME: we may have to deal with multi-command sequences.
9523       ;;
9524     '$CC '*)
9525       # Test whether the compiler implicitly links with -lc since on some
9526       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9527       # to ld, don't add -lc before -lgcc.
9528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9530 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   $RM conftest*
9534         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9535
9536         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9537   (eval $ac_compile) 2>&5
9538   ac_status=$?
9539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9540   test $ac_status = 0; } 2>conftest.err; then
9541           soname=conftest
9542           lib=conftest
9543           libobjs=conftest.$ac_objext
9544           deplibs=
9545           wl=$lt_prog_compiler_wl
9546           pic_flag=$lt_prog_compiler_pic
9547           compiler_flags=-v
9548           linker_flags=-v
9549           verstring=
9550           output_objdir=.
9551           libname=conftest
9552           lt_save_allow_undefined_flag=$allow_undefined_flag
9553           allow_undefined_flag=
9554           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9555   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9556   ac_status=$?
9557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9558   test $ac_status = 0; }
9559           then
9560             lt_cv_archive_cmds_need_lc=no
9561           else
9562             lt_cv_archive_cmds_need_lc=yes
9563           fi
9564           allow_undefined_flag=$lt_save_allow_undefined_flag
9565         else
9566           cat conftest.err 1>&5
9567         fi
9568         $RM conftest*
9569
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9572 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9573       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9574       ;;
9575     esac
9576   fi
9577   ;;
9578 esac
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9737 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9738
9739 if test "$GCC" = yes; then
9740   case $host_os in
9741     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9742     *) lt_awk_arg="/^libraries:/" ;;
9743   esac
9744   case $host_os in
9745     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9746     *) lt_sed_strip_eq="s,=/,/,g" ;;
9747   esac
9748   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9749   case $lt_search_path_spec in
9750   *\;*)
9751     # if the path contains ";" then we assume it to be the separator
9752     # otherwise default to the standard path separator (i.e. ":") - it is
9753     # assumed that no part of a normal pathname contains ";" but that should
9754     # okay in the real world where ";" in dirpaths is itself problematic.
9755     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9756     ;;
9757   *)
9758     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9759     ;;
9760   esac
9761   # Ok, now we have the path, separated by spaces, we can step through it
9762   # and add multilib dir if necessary.
9763   lt_tmp_lt_search_path_spec=
9764   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9765   for lt_sys_path in $lt_search_path_spec; do
9766     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9767       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9768     else
9769       test -d "$lt_sys_path" && \
9770         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9771     fi
9772   done
9773   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9774 BEGIN {RS=" "; FS="/|\n";} {
9775   lt_foo="";
9776   lt_count=0;
9777   for (lt_i = NF; lt_i > 0; lt_i--) {
9778     if ($lt_i != "" && $lt_i != ".") {
9779       if ($lt_i == "..") {
9780         lt_count++;
9781       } else {
9782         if (lt_count == 0) {
9783           lt_foo="/" $lt_i lt_foo;
9784         } else {
9785           lt_count--;
9786         }
9787       }
9788     }
9789   }
9790   if (lt_foo != "") { lt_freq[lt_foo]++; }
9791   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9792 }'`
9793   # AWK program above erroneously prepends '/' to C:/dos/paths
9794   # for these hosts.
9795   case $host_os in
9796     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9797       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9798   esac
9799   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9800 else
9801   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9802 fi
9803 library_names_spec=
9804 libname_spec='lib$name'
9805 soname_spec=
9806 shrext_cmds=".so"
9807 postinstall_cmds=
9808 postuninstall_cmds=
9809 finish_cmds=
9810 finish_eval=
9811 shlibpath_var=
9812 shlibpath_overrides_runpath=unknown
9813 version_type=none
9814 dynamic_linker="$host_os ld.so"
9815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9816 need_lib_prefix=unknown
9817 hardcode_into_libs=no
9818
9819 # when you set need_version to no, make sure it does not cause -set_version
9820 # flags to be left without arguments
9821 need_version=unknown
9822
9823 case $host_os in
9824 aix3*)
9825   version_type=linux
9826   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9827   shlibpath_var=LIBPATH
9828
9829   # AIX 3 has no versioning support, so we append a major version to the name.
9830   soname_spec='${libname}${release}${shared_ext}$major'
9831   ;;
9832
9833 aix[4-9]*)
9834   version_type=linux
9835   need_lib_prefix=no
9836   need_version=no
9837   hardcode_into_libs=yes
9838   if test "$host_cpu" = ia64; then
9839     # AIX 5 supports IA64
9840     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9841     shlibpath_var=LD_LIBRARY_PATH
9842   else
9843     # With GCC up to 2.95.x, collect2 would create an import file
9844     # for dependence libraries.  The import file would start with
9845     # the line `#! .'.  This would cause the generated library to
9846     # depend on `.', always an invalid library.  This was fixed in
9847     # development snapshots of GCC prior to 3.0.
9848     case $host_os in
9849       aix4 | aix4.[01] | aix4.[01].*)
9850       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9851            echo ' yes '
9852            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9853         :
9854       else
9855         can_build_shared=no
9856       fi
9857       ;;
9858     esac
9859     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9860     # soname into executable. Probably we can add versioning support to
9861     # collect2, so additional links can be useful in future.
9862     if test "$aix_use_runtimelinking" = yes; then
9863       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9864       # instead of lib<name>.a to let people know that these are not
9865       # typical AIX shared libraries.
9866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867     else
9868       # We preserve .a as extension for shared libraries through AIX4.2
9869       # and later when we are not doing run time linking.
9870       library_names_spec='${libname}${release}.a $libname.a'
9871       soname_spec='${libname}${release}${shared_ext}$major'
9872     fi
9873     shlibpath_var=LIBPATH
9874   fi
9875   ;;
9876
9877 amigaos*)
9878   case $host_cpu in
9879   powerpc)
9880     # Since July 2007 AmigaOS4 officially supports .so libraries.
9881     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883     ;;
9884   m68k)
9885     library_names_spec='$libname.ixlibrary $libname.a'
9886     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9887     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9888     ;;
9889   esac
9890   ;;
9891
9892 beos*)
9893   library_names_spec='${libname}${shared_ext}'
9894   dynamic_linker="$host_os ld.so"
9895   shlibpath_var=LIBRARY_PATH
9896   ;;
9897
9898 bsdi[45]*)
9899   version_type=linux
9900   need_version=no
9901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9904   shlibpath_var=LD_LIBRARY_PATH
9905   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9906   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9907   # the default ld.so.conf also contains /usr/contrib/lib and
9908   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9909   # libtool to hard-code these into programs
9910   ;;
9911
9912 cygwin* | mingw* | pw32* | cegcc*)
9913   version_type=windows
9914   shrext_cmds=".dll"
9915   need_version=no
9916   need_lib_prefix=no
9917
9918   case $GCC,$host_os in
9919   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9920     library_names_spec='$libname.dll.a'
9921     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9922     postinstall_cmds='base_file=`basename \${file}`~
9923       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9924       dldir=$destdir/`dirname \$dlpath`~
9925       test -d \$dldir || mkdir -p \$dldir~
9926       $install_prog $dir/$dlname \$dldir/$dlname~
9927       chmod a+x \$dldir/$dlname~
9928       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9929         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9930       fi'
9931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9932       dlpath=$dir/\$dldll~
9933        $RM \$dlpath'
9934     shlibpath_overrides_runpath=yes
9935
9936     case $host_os in
9937     cygwin*)
9938       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9939       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940
9941       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9942       ;;
9943     mingw* | cegcc*)
9944       # MinGW DLLs use traditional 'lib' prefix
9945       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946       ;;
9947     pw32*)
9948       # pw32 DLLs use 'pw' prefix rather than 'lib'
9949       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950       ;;
9951     esac
9952     ;;
9953
9954   *)
9955     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9956     ;;
9957   esac
9958   dynamic_linker='Win32 ld.exe'
9959   # FIXME: first we should search . and the directory the executable is in
9960   shlibpath_var=PATH
9961   ;;
9962
9963 darwin* | rhapsody*)
9964   dynamic_linker="$host_os dyld"
9965   version_type=darwin
9966   need_lib_prefix=no
9967   need_version=no
9968   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9969   soname_spec='${libname}${release}${major}$shared_ext'
9970   shlibpath_overrides_runpath=yes
9971   shlibpath_var=DYLD_LIBRARY_PATH
9972   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9973
9974   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9975   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9976   ;;
9977
9978 dgux*)
9979   version_type=linux
9980   need_lib_prefix=no
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   ;;
9986
9987 freebsd1*)
9988   dynamic_linker=no
9989   ;;
9990
9991 freebsd* | dragonfly*)
9992   # DragonFly does not have aout.  When/if they implement a new
9993   # versioning mechanism, adjust this.
9994   if test -x /usr/bin/objformat; then
9995     objformat=`/usr/bin/objformat`
9996   else
9997     case $host_os in
9998     freebsd[123]*) objformat=aout ;;
9999     *) objformat=elf ;;
10000     esac
10001   fi
10002   version_type=freebsd-$objformat
10003   case $version_type in
10004     freebsd-elf*)
10005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006       need_version=no
10007       need_lib_prefix=no
10008       ;;
10009     freebsd-*)
10010       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10011       need_version=yes
10012       ;;
10013   esac
10014   shlibpath_var=LD_LIBRARY_PATH
10015   case $host_os in
10016   freebsd2*)
10017     shlibpath_overrides_runpath=yes
10018     ;;
10019   freebsd3.[01]* | freebsdelf3.[01]*)
10020     shlibpath_overrides_runpath=yes
10021     hardcode_into_libs=yes
10022     ;;
10023   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10024   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10025     shlibpath_overrides_runpath=no
10026     hardcode_into_libs=yes
10027     ;;
10028   *) # from 4.6 on, and DragonFly
10029     shlibpath_overrides_runpath=yes
10030     hardcode_into_libs=yes
10031     ;;
10032   esac
10033   ;;
10034
10035 gnu*)
10036   version_type=linux
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   shlibpath_var=LD_LIBRARY_PATH
10042   hardcode_into_libs=yes
10043   ;;
10044
10045 haiku*)
10046   version_type=linux
10047   need_lib_prefix=no
10048   need_version=no
10049   dynamic_linker="$host_os runtime_loader"
10050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10051   soname_spec='${libname}${release}${shared_ext}$major'
10052   shlibpath_var=LIBRARY_PATH
10053   shlibpath_overrides_runpath=yes
10054   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10055   hardcode_into_libs=yes
10056   ;;
10057
10058 hpux9* | hpux10* | hpux11*)
10059   # Give a soname corresponding to the major version so that dld.sl refuses to
10060   # link against other versions.
10061   version_type=sunos
10062   need_lib_prefix=no
10063   need_version=no
10064   case $host_cpu in
10065   ia64*)
10066     shrext_cmds='.so'
10067     hardcode_into_libs=yes
10068     dynamic_linker="$host_os dld.so"
10069     shlibpath_var=LD_LIBRARY_PATH
10070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072     soname_spec='${libname}${release}${shared_ext}$major'
10073     if test "X$HPUX_IA64_MODE" = X32; then
10074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10075     else
10076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10077     fi
10078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10079     ;;
10080   hppa*64*)
10081     shrext_cmds='.sl'
10082     hardcode_into_libs=yes
10083     dynamic_linker="$host_os dld.sl"
10084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087     soname_spec='${libname}${release}${shared_ext}$major'
10088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10090     ;;
10091   *)
10092     shrext_cmds='.sl'
10093     dynamic_linker="$host_os dld.sl"
10094     shlibpath_var=SHLIB_PATH
10095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097     soname_spec='${libname}${release}${shared_ext}$major'
10098     ;;
10099   esac
10100   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10101   postinstall_cmds='chmod 555 $lib'
10102   # or fails outright, so override atomically:
10103   install_override_mode=555
10104   ;;
10105
10106 interix[3-9]*)
10107   version_type=linux
10108   need_lib_prefix=no
10109   need_version=no
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10111   soname_spec='${libname}${release}${shared_ext}$major'
10112   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10113   shlibpath_var=LD_LIBRARY_PATH
10114   shlibpath_overrides_runpath=no
10115   hardcode_into_libs=yes
10116   ;;
10117
10118 irix5* | irix6* | nonstopux*)
10119   case $host_os in
10120     nonstopux*) version_type=nonstopux ;;
10121     *)
10122         if test "$lt_cv_prog_gnu_ld" = yes; then
10123                 version_type=linux
10124         else
10125                 version_type=irix
10126         fi ;;
10127   esac
10128   need_lib_prefix=no
10129   need_version=no
10130   soname_spec='${libname}${release}${shared_ext}$major'
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10132   case $host_os in
10133   irix5* | nonstopux*)
10134     libsuff= shlibsuff=
10135     ;;
10136   *)
10137     case $LD in # libtool.m4 will add one of these switches to LD
10138     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10139       libsuff= shlibsuff= libmagic=32-bit;;
10140     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10141       libsuff=32 shlibsuff=N32 libmagic=N32;;
10142     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10143       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10144     *) libsuff= shlibsuff= libmagic=never-match;;
10145     esac
10146     ;;
10147   esac
10148   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10149   shlibpath_overrides_runpath=no
10150   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10151   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10152   hardcode_into_libs=yes
10153   ;;
10154
10155 # No shared lib support for Linux oldld, aout, or coff.
10156 linux*oldld* | linux*aout* | linux*coff*)
10157   dynamic_linker=no
10158   ;;
10159
10160 # This must be Linux ELF.
10161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10162   version_type=linux
10163   need_lib_prefix=no
10164   need_version=no
10165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166   soname_spec='${libname}${release}${shared_ext}$major'
10167   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10168   shlibpath_var=LD_LIBRARY_PATH
10169   shlibpath_overrides_runpath=no
10170
10171   # Some binutils ld are patched to set DT_RUNPATH
10172   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   lt_cv_shlibpath_overrides_runpath=no
10176     save_LDFLAGS=$LDFLAGS
10177     save_libdir=$libdir
10178     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10179          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h.  */
10182
10183 int
10184 main ()
10185 {
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10193   lt_cv_shlibpath_overrides_runpath=yes
10194 fi
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197     conftest$ac_exeext conftest.$ac_ext
10198     LDFLAGS=$save_LDFLAGS
10199     libdir=$save_libdir
10200
10201 fi
10202
10203   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10204
10205   # This implies no fast_install, which is unacceptable.
10206   # Some rework will be needed to allow for fast_install
10207   # before this can be enabled.
10208   hardcode_into_libs=yes
10209
10210   # Append ld.so.conf contents to the search path
10211   if test -f /etc/ld.so.conf; then
10212     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10214   fi
10215
10216   # We used to test for /lib/ld.so.1 and disable shared libraries on
10217   # powerpc, because MkLinux only supported shared libraries with the
10218   # GNU dynamic linker.  Since this was broken with cross compilers,
10219   # most powerpc-linux boxes support dynamic linking these days and
10220   # people can always --disable-shared, the test was removed, and we
10221   # assume the GNU/Linux dynamic linker is in use.
10222   dynamic_linker='GNU/Linux ld.so'
10223   ;;
10224
10225 netbsd*)
10226   version_type=sunos
10227   need_lib_prefix=no
10228   need_version=no
10229   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232     dynamic_linker='NetBSD (a.out) ld.so'
10233   else
10234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235     soname_spec='${libname}${release}${shared_ext}$major'
10236     dynamic_linker='NetBSD ld.elf_so'
10237   fi
10238   shlibpath_var=LD_LIBRARY_PATH
10239   shlibpath_overrides_runpath=yes
10240   hardcode_into_libs=yes
10241   ;;
10242
10243 newsos6)
10244   version_type=linux
10245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246   shlibpath_var=LD_LIBRARY_PATH
10247   shlibpath_overrides_runpath=yes
10248   ;;
10249
10250 *nto* | *qnx*)
10251   version_type=qnx
10252   need_lib_prefix=no
10253   need_version=no
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=no
10258   hardcode_into_libs=yes
10259   dynamic_linker='ldqnx.so'
10260   ;;
10261
10262 openbsd*)
10263   version_type=sunos
10264   sys_lib_dlsearch_path_spec="/usr/lib"
10265   need_lib_prefix=no
10266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10267   case $host_os in
10268     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10269     *)                          need_version=no  ;;
10270   esac
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10275     case $host_os in
10276       openbsd2.[89] | openbsd2.[89].*)
10277         shlibpath_overrides_runpath=no
10278         ;;
10279       *)
10280         shlibpath_overrides_runpath=yes
10281         ;;
10282       esac
10283   else
10284     shlibpath_overrides_runpath=yes
10285   fi
10286   ;;
10287
10288 os2*)
10289   libname_spec='$name'
10290   shrext_cmds=".dll"
10291   need_lib_prefix=no
10292   library_names_spec='$libname${shared_ext} $libname.a'
10293   dynamic_linker='OS/2 ld.exe'
10294   shlibpath_var=LIBPATH
10295   ;;
10296
10297 osf3* | osf4* | osf5*)
10298   version_type=osf
10299   need_lib_prefix=no
10300   need_version=no
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   shlibpath_var=LD_LIBRARY_PATH
10304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10306   ;;
10307
10308 rdos*)
10309   dynamic_linker=no
10310   ;;
10311
10312 solaris*)
10313   version_type=linux
10314   need_lib_prefix=no
10315   need_version=no
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317   soname_spec='${libname}${release}${shared_ext}$major'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   shlibpath_overrides_runpath=yes
10320   hardcode_into_libs=yes
10321   # ldd complains unless libraries are executable
10322   postinstall_cmds='chmod +x $lib'
10323   ;;
10324
10325 sunos4*)
10326   version_type=sunos
10327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   shlibpath_overrides_runpath=yes
10331   if test "$with_gnu_ld" = yes; then
10332     need_lib_prefix=no
10333   fi
10334   need_version=yes
10335   ;;
10336
10337 sysv4 | sysv4.3*)
10338   version_type=linux
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340   soname_spec='${libname}${release}${shared_ext}$major'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   case $host_vendor in
10343     sni)
10344       shlibpath_overrides_runpath=no
10345       need_lib_prefix=no
10346       runpath_var=LD_RUN_PATH
10347       ;;
10348     siemens)
10349       need_lib_prefix=no
10350       ;;
10351     motorola)
10352       need_lib_prefix=no
10353       need_version=no
10354       shlibpath_overrides_runpath=no
10355       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10356       ;;
10357   esac
10358   ;;
10359
10360 sysv4*MP*)
10361   if test -d /usr/nec ;then
10362     version_type=linux
10363     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10364     soname_spec='$libname${shared_ext}.$major'
10365     shlibpath_var=LD_LIBRARY_PATH
10366   fi
10367   ;;
10368
10369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10370   version_type=freebsd-elf
10371   need_lib_prefix=no
10372   need_version=no
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374   soname_spec='${libname}${release}${shared_ext}$major'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=yes
10377   hardcode_into_libs=yes
10378   if test "$with_gnu_ld" = yes; then
10379     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10380   else
10381     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10382     case $host_os in
10383       sco3.2v5*)
10384         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10385         ;;
10386     esac
10387   fi
10388   sys_lib_dlsearch_path_spec='/usr/lib'
10389   ;;
10390
10391 tpf*)
10392   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10393   version_type=linux
10394   need_lib_prefix=no
10395   need_version=no
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   shlibpath_overrides_runpath=no
10399   hardcode_into_libs=yes
10400   ;;
10401
10402 uts4*)
10403   version_type=linux
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405   soname_spec='${libname}${release}${shared_ext}$major'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   ;;
10408
10409 *)
10410   dynamic_linker=no
10411   ;;
10412 esac
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10414 $as_echo "$dynamic_linker" >&6; }
10415 test "$dynamic_linker" = no && can_build_shared=no
10416
10417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10418 if test "$GCC" = yes; then
10419   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10420 fi
10421
10422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10423   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10424 fi
10425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10426   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10427 fi
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10522 hardcode_action=
10523 if test -n "$hardcode_libdir_flag_spec" ||
10524    test -n "$runpath_var" ||
10525    test "X$hardcode_automatic" = "Xyes" ; then
10526
10527   # We can hardcode non-existent directories.
10528   if test "$hardcode_direct" != no &&
10529      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10530      # have to relink, otherwise we might link with an installed library
10531      # when we should be linking with a yet-to-be-installed one
10532      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10533      test "$hardcode_minus_L" != no; then
10534     # Linking always hardcodes the temporary library directory.
10535     hardcode_action=relink
10536   else
10537     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10538     hardcode_action=immediate
10539   fi
10540 else
10541   # We cannot hardcode anything, or else we can only hardcode existing
10542   # directories.
10543   hardcode_action=unsupported
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10546 $as_echo "$hardcode_action" >&6; }
10547
10548 if test "$hardcode_action" = relink ||
10549    test "$inherit_rpath" = yes; then
10550   # Fast installation is not supported
10551   enable_fast_install=no
10552 elif test "$shlibpath_overrides_runpath" = yes ||
10553      test "$enable_shared" = no; then
10554   # Fast installation is not necessary
10555   enable_fast_install=needless
10556 fi
10557
10558
10559
10560
10561
10562
10563   if test "x$enable_dlopen" != xyes; then
10564   enable_dlopen=unknown
10565   enable_dlopen_self=unknown
10566   enable_dlopen_self_static=unknown
10567 else
10568   lt_cv_dlopen=no
10569   lt_cv_dlopen_libs=
10570
10571   case $host_os in
10572   beos*)
10573     lt_cv_dlopen="load_add_on"
10574     lt_cv_dlopen_libs=
10575     lt_cv_dlopen_self=yes
10576     ;;
10577
10578   mingw* | pw32* | cegcc*)
10579     lt_cv_dlopen="LoadLibrary"
10580     lt_cv_dlopen_libs=
10581     ;;
10582
10583   cygwin*)
10584     lt_cv_dlopen="dlopen"
10585     lt_cv_dlopen_libs=
10586     ;;
10587
10588   darwin*)
10589   # if libdl is installed we need to link against it
10590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10592 if ${ac_cv_lib_dl_dlopen+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-ldl  $LIBS"
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h.  */
10599
10600 /* Override any GCC internal prototype to avoid an error.
10601    Use char because int might match the return type of a GCC
10602    builtin and then its argument prototype would still apply.  */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char dlopen ();
10607 int
10608 main ()
10609 {
10610 return dlopen ();
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"; then :
10616   ac_cv_lib_dl_dlopen=yes
10617 else
10618   ac_cv_lib_dl_dlopen=no
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext \
10621     conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10628 else
10629
10630     lt_cv_dlopen="dyld"
10631     lt_cv_dlopen_libs=
10632     lt_cv_dlopen_self=yes
10633
10634 fi
10635
10636     ;;
10637
10638   *)
10639     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10640 if test "x$ac_cv_func_shl_load" = xyes; then :
10641   lt_cv_dlopen="shl_load"
10642 else
10643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10645 if ${ac_cv_lib_dld_shl_load+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldld  $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char shl_load ();
10660 int
10661 main ()
10662 {
10663 return shl_load ();
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669   ac_cv_lib_dld_shl_load=yes
10670 else
10671   ac_cv_lib_dld_shl_load=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674     conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10679 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10680   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10681 else
10682   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10683 if test "x$ac_cv_func_dlopen" = xyes; then :
10684   lt_cv_dlopen="dlopen"
10685 else
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10688 if ${ac_cv_lib_dl_dlopen+:} false; then :
10689   $as_echo_n "(cached) " >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldl  $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 return dlopen ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712   ac_cv_lib_dl_dlopen=yes
10713 else
10714   ac_cv_lib_dl_dlopen=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10722 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10724 else
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10727 if ${ac_cv_lib_svld_dlopen+:} false; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lsvld  $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h.  */
10734
10735 /* Override any GCC internal prototype to avoid an error.
10736    Use char because int might match the return type of a GCC
10737    builtin and then its argument prototype would still apply.  */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 char dlopen ();
10742 int
10743 main ()
10744 {
10745 return dlopen ();
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751   ac_cv_lib_svld_dlopen=yes
10752 else
10753   ac_cv_lib_svld_dlopen=no
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext \
10756     conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10761 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10762   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10766 if ${ac_cv_lib_dld_dld_link+:} false; then :
10767   $as_echo_n "(cached) " >&6
10768 else
10769   ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-ldld  $LIBS"
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h.  */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char dld_link ();
10781 int
10782 main ()
10783 {
10784 return dld_link ();
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_link "$LINENO"; then :
10790   ac_cv_lib_dld_dld_link=yes
10791 else
10792   ac_cv_lib_dld_dld_link=no
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795     conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10800 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10801   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10802 fi
10803
10804
10805 fi
10806
10807
10808 fi
10809
10810
10811 fi
10812
10813
10814 fi
10815
10816
10817 fi
10818
10819     ;;
10820   esac
10821
10822   if test "x$lt_cv_dlopen" != xno; then
10823     enable_dlopen=yes
10824   else
10825     enable_dlopen=no
10826   fi
10827
10828   case $lt_cv_dlopen in
10829   dlopen)
10830     save_CPPFLAGS="$CPPFLAGS"
10831     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10832
10833     save_LDFLAGS="$LDFLAGS"
10834     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10835
10836     save_LIBS="$LIBS"
10837     LIBS="$lt_cv_dlopen_libs $LIBS"
10838
10839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10841 if ${lt_cv_dlopen_self+:} false; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844           if test "$cross_compiling" = yes; then :
10845   lt_cv_dlopen_self=cross
10846 else
10847   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848   lt_status=$lt_dlunknown
10849   cat > conftest.$ac_ext <<_LT_EOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10852
10853 #if HAVE_DLFCN_H
10854 #include <dlfcn.h>
10855 #endif
10856
10857 #include <stdio.h>
10858
10859 #ifdef RTLD_GLOBAL
10860 #  define LT_DLGLOBAL           RTLD_GLOBAL
10861 #else
10862 #  ifdef DL_GLOBAL
10863 #    define LT_DLGLOBAL         DL_GLOBAL
10864 #  else
10865 #    define LT_DLGLOBAL         0
10866 #  endif
10867 #endif
10868
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870    find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10872 #  ifdef RTLD_LAZY
10873 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10874 #  else
10875 #    ifdef DL_LAZY
10876 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10877 #    else
10878 #      ifdef RTLD_NOW
10879 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10880 #      else
10881 #        ifdef DL_NOW
10882 #          define LT_DLLAZY_OR_NOW      DL_NOW
10883 #        else
10884 #          define LT_DLLAZY_OR_NOW      0
10885 #        endif
10886 #      endif
10887 #    endif
10888 #  endif
10889 #endif
10890
10891 /* When -fvisbility=hidden is used, assume the code has been annotated
10892    correspondingly for the symbols needed.  */
10893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10894 void fnord () __attribute__((visibility("default")));
10895 #endif
10896
10897 void fnord () { int i=42; }
10898 int main ()
10899 {
10900   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901   int status = $lt_dlunknown;
10902
10903   if (self)
10904     {
10905       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10906       else
10907         {
10908           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10909           else puts (dlerror ());
10910         }
10911       /* dlclose (self); */
10912     }
10913   else
10914     puts (dlerror ());
10915
10916   return status;
10917 }
10918 _LT_EOF
10919   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10920   (eval $ac_link) 2>&5
10921   ac_status=$?
10922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10924     (./conftest; exit; ) >&5 2>/dev/null
10925     lt_status=$?
10926     case x$lt_status in
10927       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10928       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10929       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10930     esac
10931   else :
10932     # compilation failed
10933     lt_cv_dlopen_self=no
10934   fi
10935 fi
10936 rm -fr conftest*
10937
10938
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10941 $as_echo "$lt_cv_dlopen_self" >&6; }
10942
10943     if test "x$lt_cv_dlopen_self" = xyes; then
10944       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10947 if ${lt_cv_dlopen_self_static+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950           if test "$cross_compiling" = yes; then :
10951   lt_cv_dlopen_self_static=cross
10952 else
10953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10954   lt_status=$lt_dlunknown
10955   cat > conftest.$ac_ext <<_LT_EOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958
10959 #if HAVE_DLFCN_H
10960 #include <dlfcn.h>
10961 #endif
10962
10963 #include <stdio.h>
10964
10965 #ifdef RTLD_GLOBAL
10966 #  define LT_DLGLOBAL           RTLD_GLOBAL
10967 #else
10968 #  ifdef DL_GLOBAL
10969 #    define LT_DLGLOBAL         DL_GLOBAL
10970 #  else
10971 #    define LT_DLGLOBAL         0
10972 #  endif
10973 #endif
10974
10975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10976    find out it does not work in some platform. */
10977 #ifndef LT_DLLAZY_OR_NOW
10978 #  ifdef RTLD_LAZY
10979 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10980 #  else
10981 #    ifdef DL_LAZY
10982 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10983 #    else
10984 #      ifdef RTLD_NOW
10985 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10986 #      else
10987 #        ifdef DL_NOW
10988 #          define LT_DLLAZY_OR_NOW      DL_NOW
10989 #        else
10990 #          define LT_DLLAZY_OR_NOW      0
10991 #        endif
10992 #      endif
10993 #    endif
10994 #  endif
10995 #endif
10996
10997 /* When -fvisbility=hidden is used, assume the code has been annotated
10998    correspondingly for the symbols needed.  */
10999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11000 void fnord () __attribute__((visibility("default")));
11001 #endif
11002
11003 void fnord () { int i=42; }
11004 int main ()
11005 {
11006   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11007   int status = $lt_dlunknown;
11008
11009   if (self)
11010     {
11011       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11012       else
11013         {
11014           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11015           else puts (dlerror ());
11016         }
11017       /* dlclose (self); */
11018     }
11019   else
11020     puts (dlerror ());
11021
11022   return status;
11023 }
11024 _LT_EOF
11025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11026   (eval $ac_link) 2>&5
11027   ac_status=$?
11028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11030     (./conftest; exit; ) >&5 2>/dev/null
11031     lt_status=$?
11032     case x$lt_status in
11033       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11034       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11035       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11036     esac
11037   else :
11038     # compilation failed
11039     lt_cv_dlopen_self_static=no
11040   fi
11041 fi
11042 rm -fr conftest*
11043
11044
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11048     fi
11049
11050     CPPFLAGS="$save_CPPFLAGS"
11051     LDFLAGS="$save_LDFLAGS"
11052     LIBS="$save_LIBS"
11053     ;;
11054   esac
11055
11056   case $lt_cv_dlopen_self in
11057   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11058   *) enable_dlopen_self=unknown ;;
11059   esac
11060
11061   case $lt_cv_dlopen_self_static in
11062   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11063   *) enable_dlopen_self_static=unknown ;;
11064   esac
11065 fi
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 striplib=
11084 old_striplib=
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11088   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11089   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11092 else
11093 # FIXME - insert some real tests, host_os isn't really good enough
11094   case $host_os in
11095   darwin*)
11096     if test -n "$STRIP" ; then
11097       striplib="$STRIP -x"
11098       old_striplib="$STRIP -S"
11099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11100 $as_echo "yes" >&6; }
11101     else
11102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104     fi
11105     ;;
11106   *)
11107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109     ;;
11110   esac
11111 fi
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124   # Report which library types will actually be built
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11128 $as_echo "$can_build_shared" >&6; }
11129
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11131 $as_echo_n "checking whether to build shared libraries... " >&6; }
11132   test "$can_build_shared" = "no" && enable_shared=no
11133
11134   # On AIX, shared libraries and static libraries use the same namespace, and
11135   # are all built from PIC.
11136   case $host_os in
11137   aix3*)
11138     test "$enable_shared" = yes && enable_static=no
11139     if test -n "$RANLIB"; then
11140       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11141       postinstall_cmds='$RANLIB $lib'
11142     fi
11143     ;;
11144
11145   aix[4-9]*)
11146     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11147       test "$enable_shared" = yes && enable_static=no
11148     fi
11149     ;;
11150   esac
11151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11152 $as_echo "$enable_shared" >&6; }
11153
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11155 $as_echo_n "checking whether to build static libraries... " >&6; }
11156   # Make sure either enable_shared or enable_static is yes.
11157   test "$enable_shared" = yes || enable_static=yes
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11159 $as_echo "$enable_static" >&6; }
11160
11161
11162
11163
11164 fi
11165 ac_ext=c
11166 ac_cpp='$CPP $CPPFLAGS'
11167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11170
11171 CC="$lt_save_CC"
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185         ac_config_commands="$ac_config_commands libtool"
11186
11187
11188
11189
11190 # Only expand once:
11191
11192
11193
11194 target=$save_target
11195
11196 if test "$enable_static" = yes; then
11197         SASL_STATIC_LIBS=libsasl2.a
11198 else
11199         SASL_STATIC_LIBS=
11200 fi
11201
11202 # Check whether --enable-staticdlopen was given.
11203 if test "${enable_staticdlopen+set}" = set; then :
11204   enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11205 else
11206   enable_staticdlopen=no
11207 fi
11208
11209
11210 if test "$enable_staticdlopen" = yes; then
11211
11212 $as_echo "#define TRY_DLOPEN_WHEN_STATIC /**/" >>confdefs.h
11213
11214 fi
11215
11216 if test "$ac_cv_c_compiler_gnu" = yes; then
11217   CFLAGS="-Wall -W ${CFLAGS}"
11218 fi
11219
11220
11221 # Check whether --with-purecov was given.
11222 if test "${with_purecov+set}" = set; then :
11223   withval=$with_purecov;
11224 fi
11225
11226 if test "$with_purecov" = yes; then
11227   for ac_prog in purecov
11228 do
11229   # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy $ac_prog; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_prog_PURECOV+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   if test -n "$PURECOV"; then
11237   ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11238 else
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11241 do
11242   IFS=$as_save_IFS
11243   test -z "$as_dir" && as_dir=.
11244     for ac_exec_ext in '' $ac_executable_extensions; do
11245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246     ac_cv_prog_PURECOV="$ac_prog"
11247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248     break 2
11249   fi
11250 done
11251   done
11252 IFS=$as_save_IFS
11253
11254 fi
11255 fi
11256 PURECOV=$ac_cv_prog_PURECOV
11257 if test -n "$PURECOV"; then
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURECOV" >&5
11259 $as_echo "$PURECOV" >&6; }
11260 else
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 fi
11264
11265
11266   test -n "$PURECOV" && break
11267 done
11268
11269 fi
11270
11271 # Check whether --with-purify was given.
11272 if test "${with_purify+set}" = set; then :
11273   withval=$with_purify;
11274 fi
11275
11276 if test "$with_purify" = yes; then
11277   for ac_prog in purify
11278 do
11279   # Extract the first word of "$ac_prog", so it can be a program name with args.
11280 set dummy $ac_prog; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_PURIFY+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   if test -n "$PURIFY"; then
11287   ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292   IFS=$as_save_IFS
11293   test -z "$as_dir" && as_dir=.
11294     for ac_exec_ext in '' $ac_executable_extensions; do
11295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296     ac_cv_prog_PURIFY="$ac_prog"
11297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298     break 2
11299   fi
11300 done
11301   done
11302 IFS=$as_save_IFS
11303
11304 fi
11305 fi
11306 PURIFY=$ac_cv_prog_PURIFY
11307 if test -n "$PURIFY"; then
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURIFY" >&5
11309 $as_echo "$PURIFY" >&6; }
11310 else
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313 fi
11314
11315
11316   test -n "$PURIFY" && break
11317 done
11318
11319 fi
11320
11321 # Check whether --enable-java was given.
11322 if test "${enable_java+set}" = set; then :
11323   enableval=$enable_java; enable_java=$enableval
11324 else
11325   enable_java=no
11326 fi
11327
11328 if test "$enable_java" = yes; then
11329   # Extract the first word of "javac", so it can be a program name with args.
11330 set dummy javac; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_JAVAC+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   case $JAVAC in
11337   [\\/]* | ?:[\\/]*)
11338   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11339   ;;
11340   *)
11341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11343 do
11344   IFS=$as_save_IFS
11345   test -z "$as_dir" && as_dir=.
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355
11356   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11357   ;;
11358 esac
11359 fi
11360 JAVAC=$ac_cv_path_JAVAC
11361 if test -n "$JAVAC"; then
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
11363 $as_echo "$JAVAC" >&6; }
11364 else
11365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11367 fi
11368
11369
11370   for ac_prog in javah kaffeh
11371 do
11372   # Extract the first word of "$ac_prog", so it can be a program name with args.
11373 set dummy $ac_prog; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_JAVAH+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   case $JAVAH in
11380   [\\/]* | ?:[\\/]*)
11381   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11382   ;;
11383   *)
11384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11386 do
11387   IFS=$as_save_IFS
11388   test -z "$as_dir" && as_dir=.
11389     for ac_exec_ext in '' $ac_executable_extensions; do
11390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393     break 2
11394   fi
11395 done
11396   done
11397 IFS=$as_save_IFS
11398
11399   ;;
11400 esac
11401 fi
11402 JAVAH=$ac_cv_path_JAVAH
11403 if test -n "$JAVAH"; then
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
11405 $as_echo "$JAVAH" >&6; }
11406 else
11407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 fi
11410
11411
11412   test -n "$JAVAH" && break
11413 done
11414 test -n "$JAVAH" || JAVAH="no"
11415
11416   for ac_prog in javadoc
11417 do
11418   # Extract the first word of "$ac_prog", so it can be a program name with args.
11419 set dummy $ac_prog; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_prog_JAVADOC+:} false; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   if test -n "$JAVADOC"; then
11426   ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11427 else
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11430 do
11431   IFS=$as_save_IFS
11432   test -z "$as_dir" && as_dir=.
11433     for ac_exec_ext in '' $ac_executable_extensions; do
11434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435     ac_cv_prog_JAVADOC="$ac_prog"
11436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437     break 2
11438   fi
11439 done
11440   done
11441 IFS=$as_save_IFS
11442
11443 fi
11444 fi
11445 JAVADOC=$ac_cv_prog_JAVADOC
11446 if test -n "$JAVADOC"; then
11447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
11448 $as_echo "$JAVADOC" >&6; }
11449 else
11450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11452 fi
11453
11454
11455   test -n "$JAVADOC" && break
11456 done
11457 test -n "$JAVADOC" || JAVADOC=":"
11458
11459   if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Java support" >&5
11461 $as_echo "$as_me: WARNING: Disabling Java support" >&2;}
11462     enable_java=no
11463   fi
11464 else
11465 # Make distcheck work
11466   JAVAC="true"
11467   JAVAH="true"
11468   JAVADOC="true"
11469 fi
11470  if test "$enable_java" = yes; then
11471   JAVA_TRUE=
11472   JAVA_FALSE='#'
11473 else
11474   JAVA_TRUE='#'
11475   JAVA_FALSE=
11476 fi
11477
11478
11479 if test "$enable_java" = yes; then
11480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking JNI cpp flags" >&5
11481 $as_echo_n "checking JNI cpp flags... " >&6; }
11482   if ${sasl_cv_java_includes+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485
11486   if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11487     sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11488   else
11489     java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11490
11491
11492 # Check whether --with-javabase was given.
11493 if test "${with_javabase+set}" = set; then :
11494   withval=$with_javabase; java_base=$withval
11495 fi
11496
11497
11498
11499     sasl_cv_java_includes=''
11500     for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11501       sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11502     done
11503   fi
11504
11505   sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11506 fi
11507
11508
11509   JAVA_INCLUDES=$sasl_cv_java_includes
11510
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11512 $as_echo "ok" >&6; }
11513
11514   JAVAROOT=".."
11515
11516   JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11517   JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11518 fi
11519
11520  if test "$enable_sample" = yes; then
11521   SAMPLE_TRUE=
11522   SAMPLE_FALSE='#'
11523 else
11524   SAMPLE_TRUE='#'
11525   SAMPLE_FALSE=
11526 fi
11527
11528
11529
11530         save_LIBS="$LIBS"
11531         LIB_SOCKET=""
11532         ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11533 if test "x$ac_cv_func_connect" = xyes; then :
11534   :
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11537 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11538 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11539   $as_echo_n "(cached) " >&6
11540 else
11541   ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-lnsl  $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h.  */
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547    Use char because int might match the return type of a GCC
11548    builtin and then its argument prototype would still apply.  */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char gethostbyname ();
11553 int
11554 main ()
11555 {
11556 return gethostbyname ();
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562   ac_cv_lib_nsl_gethostbyname=yes
11563 else
11564   ac_cv_lib_nsl_gethostbyname=no
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext \
11567     conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11571 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11572 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11573   LIB_SOCKET="-lnsl $LIB_SOCKET"
11574 fi
11575
11576                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11577 $as_echo_n "checking for connect in -lsocket... " >&6; }
11578 if ${ac_cv_lib_socket_connect+:} false; then :
11579   $as_echo_n "(cached) " >&6
11580 else
11581   ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lsocket  $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h.  */
11585
11586 /* Override any GCC internal prototype to avoid an error.
11587    Use char because int might match the return type of a GCC
11588    builtin and then its argument prototype would still apply.  */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char connect ();
11593 int
11594 main ()
11595 {
11596 return connect ();
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602   ac_cv_lib_socket_connect=yes
11603 else
11604   ac_cv_lib_socket_connect=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607     conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11611 $as_echo "$ac_cv_lib_socket_connect" >&6; }
11612 if test "x$ac_cv_lib_socket_connect" = xyes; then :
11613   LIB_SOCKET="-lsocket $LIB_SOCKET"
11614 fi
11615
11616
11617 fi
11618
11619         LIBS="$LIB_SOCKET $save_LIBS"
11620         ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
11621 if test "x$ac_cv_func_res_search" = xyes; then :
11622   :
11623 else
11624   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
11625                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h.  */
11627
11628 #include <sys/types.h>
11629 #include <netinet/in.h>
11630 #include <arpa/nameser.h>
11631 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
11632 #include <arpa/nameser_compat.h>
11633 #endif
11634 #include <resolv.h>
11635 int
11636 main ()
11637 {
11638
11639 const char host[12]="openafs.org";
11640 u_char ans[1024];
11641 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
11642 return 0;
11643
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649   LIB_SOCKET="-lresolv $LIB_SOCKET"
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652     conftest$ac_exeext conftest.$ac_ext
11653
11654 fi
11655
11656         LIBS="$LIB_SOCKET $save_LIBS"
11657         for ac_func in dn_expand dns_lookup
11658 do :
11659   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11662   cat >>confdefs.h <<_ACEOF
11663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11664 _ACEOF
11665
11666 fi
11667 done
11668
11669         LIBS="$save_LIBS"
11670
11671
11672
11673
11674
11675 # Check whether --with-dbpath was given.
11676 if test "${with_dbpath+set}" = set; then :
11677   withval=$with_dbpath; dbpath=$withval
11678 else
11679   dbpath=/etc/sasldb2
11680 fi
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5
11683 $as_echo_n "checking DB path to use... " >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5
11685 $as_echo "$dbpath" >&6; }
11686
11687 cat >>confdefs.h <<_ACEOF
11688 #define SASL_DB_PATH "$dbpath"
11689 _ACEOF
11690
11691
11692 cmu_save_LIBS="$LIBS"
11693
11694 # Check whether --with-dblib was given.
11695 if test "${with_dblib+set}" = set; then :
11696   withval=$with_dblib; dblib=$withval
11697 else
11698   dblib=auto_detect
11699 fi
11700
11701
11702
11703
11704 # Check whether --with-bdb-libdir was given.
11705 if test "${with_bdb_libdir+set}" = set; then :
11706   withval=$with_bdb_libdir; with_bdb_lib=$withval
11707 else
11708    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
11709 fi
11710
11711
11712 # Check whether --with-bdb-incdir was given.
11713 if test "${with_bdb_incdir+set}" = set; then :
11714   withval=$with_bdb_incdir; with_bdb_inc=$withval
11715 else
11716    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
11717 fi
11718
11719
11720
11721 SASL_DB_LIB=""
11722
11723 case "$dblib" in
11724   berkeley)
11725
11726
11727
11728         cmu_save_CPPFLAGS=$CPPFLAGS
11729
11730         if test -d $with_bdb_inc; then
11731             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11732             BDB_INCADD="-I$with_bdb_inc"
11733         else
11734             BDB_INCADD=""
11735         fi
11736
11737                         ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11738 if test "x$ac_cv_header_db_h" = xyes; then :
11739
11740         BDB_SAVE_LDFLAGS=$LDFLAGS
11741
11742         if test -d $with_bdb_lib; then
11743
11744   # this is CMU ADD LIBPATH TO
11745   if test "$andrew_runpath_switch" = "none" ; then
11746         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11747   else
11748         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11749   fi
11750
11751
11752   # this is CMU ADD LIBPATH TO
11753   if test "$andrew_runpath_switch" = "none" ; then
11754         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11755   else
11756         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11757   fi
11758
11759         else
11760             BDB_LIBADD=""
11761         fi
11762
11763         saved_LIBS=$LIBS
11764         for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
11765           do
11766             LIBS="$saved_LIBS -l$dbname"
11767             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h.  */
11769 #include <db.h>
11770 int
11771 main ()
11772 {
11773 db_create(NULL, NULL, 0);
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
11780 else
11781   dblib="no"
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784     conftest$ac_exeext conftest.$ac_ext
11785             if test "$dblib" = "berkeley"; then break; fi
11786           done
11787         if test "$dblib" = "no"; then
11788             LIBS="$saved_LIBS -ldb"
11789             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791 #include <db.h>
11792 int
11793 main ()
11794 {
11795 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
11802 else
11803   dblib="no"
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext \
11806     conftest$ac_exeext conftest.$ac_ext
11807         fi
11808         LIBS=$saved_LIBS
11809
11810         LDFLAGS=$BDB_SAVE_LDFLAGS
11811
11812 else
11813   dblib="no"
11814 fi
11815
11816
11817
11818         CPPFLAGS=$cmu_save_CPPFLAGS
11819
11820         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
11821         SASL_DB_INC=$BDB_INCADD
11822         SASL_DB_LIB="${BDB_LIBADD}"
11823         ;;
11824   gdbm)
11825
11826 # Check whether --with-gdbm was given.
11827 if test "${with_gdbm+set}" = set; then :
11828   withval=$with_gdbm; with_gdbm="${withval}"
11829 fi
11830
11831
11832         case "$with_gdbm" in
11833            ""|yes)
11834                ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
11835 if test "x$ac_cv_header_gdbm_h" = xyes; then :
11836
11837                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
11838 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
11839 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lgdbm  $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h.  */
11846
11847 /* Override any GCC internal prototype to avoid an error.
11848    Use char because int might match the return type of a GCC
11849    builtin and then its argument prototype would still apply.  */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char gdbm_open ();
11854 int
11855 main ()
11856 {
11857 return gdbm_open ();
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863   ac_cv_lib_gdbm_gdbm_open=yes
11864 else
11865   ac_cv_lib_gdbm_gdbm_open=no
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868     conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
11872 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
11873 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
11874   SASL_DB_LIB="-lgdbm"
11875 else
11876   dblib="no"
11877 fi
11878
11879 else
11880   dblib="no"
11881 fi
11882
11883
11884                ;;
11885            *)
11886                if test -d $with_gdbm; then
11887                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
11888                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
11889                  SASL_DB_LIB="-lgdbm"
11890                else
11891                  with_gdbm="no"
11892                fi
11893        esac
11894         ;;
11895   ndbm)
11896                         ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_ndbm_h" = xyes; then :
11898
11899                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
11900 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
11901 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lndbm  $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h.  */
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910    Use char because int might match the return type of a GCC
11911    builtin and then its argument prototype would still apply.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char dbm_open ();
11916 int
11917 main ()
11918 {
11919 return dbm_open ();
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925   ac_cv_lib_ndbm_dbm_open=yes
11926 else
11927   ac_cv_lib_ndbm_dbm_open=no
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930     conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
11934 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
11935 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
11936   SASL_DB_LIB="-lndbm"
11937 else
11938
11939                                 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
11940 if test "x$ac_cv_func_dbm_open" = xyes; then :
11941
11942 else
11943   dblib="no"
11944 fi
11945
11946 fi
11947
11948 else
11949   dblib="no"
11950 fi
11951
11952
11953         ;;
11954   auto_detect)
11955
11956
11957
11958         cmu_save_CPPFLAGS=$CPPFLAGS
11959
11960         if test -d $with_bdb_inc; then
11961             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11962             BDB_INCADD="-I$with_bdb_inc"
11963         else
11964             BDB_INCADD=""
11965         fi
11966
11967                         ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11968 if test "x$ac_cv_header_db_h" = xyes; then :
11969
11970         BDB_SAVE_LDFLAGS=$LDFLAGS
11971
11972         if test -d $with_bdb_lib; then
11973
11974   # this is CMU ADD LIBPATH TO
11975   if test "$andrew_runpath_switch" = "none" ; then
11976         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11977   else
11978         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11979   fi
11980
11981
11982   # this is CMU ADD LIBPATH TO
11983   if test "$andrew_runpath_switch" = "none" ; then
11984         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11985   else
11986         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11987   fi
11988
11989         else
11990             BDB_LIBADD=""
11991         fi
11992
11993         saved_LIBS=$LIBS
11994         for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
11995           do
11996             LIBS="$saved_LIBS -l$dbname"
11997             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h.  */
11999 #include <db.h>
12000 int
12001 main ()
12002 {
12003 db_create(NULL, NULL, 0);
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12010 else
12011   dblib="no"
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext \
12014     conftest$ac_exeext conftest.$ac_ext
12015             if test "$dblib" = "berkeley"; then break; fi
12016           done
12017         if test "$dblib" = "no"; then
12018             LIBS="$saved_LIBS -ldb"
12019             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h.  */
12021 #include <db.h>
12022 int
12023 main ()
12024 {
12025 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12032 else
12033   dblib="no"
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext \
12036     conftest$ac_exeext conftest.$ac_ext
12037         fi
12038         LIBS=$saved_LIBS
12039
12040         LDFLAGS=$BDB_SAVE_LDFLAGS
12041
12042 else
12043   dblib="no"
12044 fi
12045
12046
12047
12048         CPPFLAGS=$cmu_save_CPPFLAGS
12049
12050         if test "$dblib" = no; then
12051                   ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_ndbm_h" = xyes; then :
12053
12054                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
12055 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
12056 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
12057   $as_echo_n "(cached) " >&6
12058 else
12059   ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-lndbm  $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h.  */
12063
12064 /* Override any GCC internal prototype to avoid an error.
12065    Use char because int might match the return type of a GCC
12066    builtin and then its argument prototype would still apply.  */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char dbm_open ();
12071 int
12072 main ()
12073 {
12074 return dbm_open ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080   ac_cv_lib_ndbm_dbm_open=yes
12081 else
12082   ac_cv_lib_ndbm_dbm_open=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext \
12085     conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
12089 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
12090 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
12091   dblib="ndbm"; SASL_DB_LIB="-lndbm"
12092 else
12093   dblib="weird"
12094 fi
12095
12096 else
12097   dblib="no"
12098 fi
12099
12100
12101           if test "$dblib" = "weird"; then
12102                         ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
12103 if test "x$ac_cv_func_dbm_open" = xyes; then :
12104   dblib="ndbm"
12105 else
12106   dblib="no"
12107 fi
12108
12109           fi
12110
12111           if test "$dblib" = no; then
12112                     ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_gdbm_h" = xyes; then :
12114
12115                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
12116 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
12117 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lgdbm  $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126    Use char because int might match the return type of a GCC
12127    builtin and then its argument prototype would still apply.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char gdbm_open ();
12132 int
12133 main ()
12134 {
12135 return gdbm_open ();
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141   ac_cv_lib_gdbm_gdbm_open=yes
12142 else
12143   ac_cv_lib_gdbm_gdbm_open=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146     conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12150 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
12151 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
12152   dblib="gdbm";
12153                                              SASL_DB_LIB="-lgdbm"
12154 else
12155   dblib="no"
12156 fi
12157
12158 else
12159   dblib="no"
12160 fi
12161
12162
12163           fi
12164         else
12165                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12166           SASL_DB_INC=$BDB_INCADD
12167           SASL_DB_LIB="${BDB_LIBADD}"
12168         fi
12169         ;;
12170   none)
12171         ;;
12172   no)
12173         ;;
12174   *)
12175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5
12176 $as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
12177         as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" "$LINENO" 5
12178         dblib=no
12179         ;;
12180 esac
12181 LIBS="$cmu_save_LIBS"
12182
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5
12184 $as_echo_n "checking DB library to use... " >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5
12186 $as_echo "$dblib" >&6; }
12187
12188 SASL_DB_BACKEND="db_${dblib}.lo"
12189 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
12190 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
12191 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
12192 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
12193
12194 case "$dblib" in
12195   gdbm)
12196     SASL_MECHS="$SASL_MECHS libsasldb.la"
12197
12198 $as_echo "#define SASL_GDBM /**/" >>confdefs.h
12199
12200     ;;
12201   ndbm)
12202     SASL_MECHS="$SASL_MECHS libsasldb.la"
12203
12204 $as_echo "#define SASL_NDBM /**/" >>confdefs.h
12205
12206     ;;
12207   berkeley)
12208     SASL_MECHS="$SASL_MECHS libsasldb.la"
12209
12210 $as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h
12211
12212     ;;
12213   *)
12214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5
12215 $as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
12216             SASL_DB_BACKEND="db_none.lo"
12217     SASL_DB_BACKEND_STATIC="db_none.o"
12218     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
12219     SASL_DB_UTILS=""
12220     SASL_DB_MANS=""
12221     SASL_DB_LIB=""
12222     ;;
12223 esac
12224
12225 if test "$enable_static" = yes; then
12226     if test "$dblib" != "none"; then
12227       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
12228       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
12229
12230 $as_echo "#define STATIC_SASLDB /**/" >>confdefs.h
12231
12232     else
12233       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
12234       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
12235     fi
12236 fi
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246 # Do we not install the SASL DB man pages?
12247  if test "x$SASL_DB_MANS" = "x"; then
12248   NO_SASL_DB_MANS_TRUE=
12249   NO_SASL_DB_MANS_FALSE='#'
12250 else
12251   NO_SASL_DB_MANS_TRUE='#'
12252   NO_SASL_DB_MANS_FALSE=
12253 fi
12254
12255
12256 # Check whether --enable-keep_db_open was given.
12257 if test "${enable_keep_db_open+set}" = set; then :
12258   enableval=$enable_keep_db_open; keep_db_open=$enableval
12259 else
12260   keep_db_open=no
12261 fi
12262
12263
12264 # Disable if Berkeley DB is not used
12265 if test "$dblib" != berkeley; then
12266   keep_db_open=no
12267 fi
12268
12269 if test "$keep_db_open" = yes; then
12270
12271 $as_echo "#define KEEP_DB_OPEN /**/" >>confdefs.h
12272
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB handle is kept open in SASLDB" >&5
12275 $as_echo_n "checking if Berkeley DB handle is kept open in SASLDB... " >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_db_open" >&5
12277 $as_echo "$keep_db_open" >&6; }
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12281 if ${ac_cv_lib_dl_dlopen+:} false; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284   ac_check_lib_save_LIBS=$LIBS
12285 LIBS="-ldl  $LIBS"
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h.  */
12288
12289 /* Override any GCC internal prototype to avoid an error.
12290    Use char because int might match the return type of a GCC
12291    builtin and then its argument prototype would still apply.  */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 char dlopen ();
12296 int
12297 main ()
12298 {
12299 return dlopen ();
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_link "$LINENO"; then :
12305   ac_cv_lib_dl_dlopen=yes
12306 else
12307   ac_cv_lib_dl_dlopen=no
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext \
12310     conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12315 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12316   SASL_DL_LIB="-ldl"
12317 else
12318   SASL_DL_LIB=""
12319 fi
12320
12321
12322
12323
12324
12325 # Check whether --with-devrandom was given.
12326 if test "${with_devrandom+set}" = set; then :
12327   withval=$with_devrandom; devrandom=$withval
12328 else
12329   devrandom=/dev/random
12330 fi
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking /dev/random to use" >&5
12333 $as_echo_n "checking /dev/random to use... " >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
12335 $as_echo "$devrandom" >&6; }
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define SASL_DEV_RANDOM "$devrandom"
12339 _ACEOF
12340
12341
12342
12343 for ac_prog in nm
12344 do
12345   # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_NM+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352   if test -n "$NM"; then
12353   ac_cv_prog_NM="$NM" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360     for ac_exec_ext in '' $ac_executable_extensions; do
12361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362     ac_cv_prog_NM="$ac_prog"
12363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367   done
12368 IFS=$as_save_IFS
12369
12370 fi
12371 fi
12372 NM=$ac_cv_prog_NM
12373 if test -n "$NM"; then
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12375 $as_echo "$NM" >&6; }
12376 else
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379 fi
12380
12381
12382   test -n "$NM" && break
12383 done
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underscore before symbols" >&5
12387 $as_echo_n "checking for underscore before symbols... " >&6; }
12388 if ${sasl_cv_uscore+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391
12392     echo "main(){int i=1;}
12393     foo(){int i=6;}" > conftest.c
12394     ${CC} -o a.out conftest.c > /dev/null
12395     if (${NM} a.out | grep _foo) > /dev/null; then
12396       sasl_cv_uscore=yes
12397     else
12398       sasl_cv_uscore=no
12399     fi
12400 fi
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_uscore" >&5
12403 $as_echo "$sasl_cv_uscore" >&6; }
12404 rm -f conftest.c a.out
12405
12406 if test $sasl_cv_uscore = yes; then
12407   if test $ac_cv_lib_dl_dlopen = yes ; then
12408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym adds the underscore for us" >&5
12409 $as_echo_n "checking whether dlsym adds the underscore for us... " >&6; }
12410         cmu_save_LIBS="$LIBS"
12411         LIBS="$LIBS $SASL_DL_LIB"
12412         if ${sasl_cv_dlsym_adds_uscore+:} false; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   if test "$cross_compiling" = yes; then :
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiler" >&5
12417 $as_echo "$as_me: WARNING: cross-compiler" >&2;}
12418 else
12419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421
12422 #include <dlfcn.h>
12423 #include <stdio.h>
12424 foo() { int i=0;}
12425 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
12426     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
12427     if(ptr1 && !ptr2) exit(0); } exit(1); }
12428
12429 _ACEOF
12430 if ac_fn_c_try_run "$LINENO"; then :
12431   sasl_cv_dlsym_adds_uscore=yes
12432 else
12433   sasl_cv_dlsym_adds_uscore=no
12434
12435 $as_echo "#define DLSYM_NEEDS_UNDERSCORE /**/" >>confdefs.h
12436
12437 fi
12438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12439   conftest.$ac_objext conftest.beam conftest.$ac_ext
12440 fi
12441
12442 fi
12443
12444         LIBS="$cmu_save_LIBS"
12445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_dlsym_adds_uscore" >&5
12446 $as_echo "$sasl_cv_dlsym_adds_uscore" >&6; }
12447   fi
12448 fi
12449
12450 for ac_func in syslog
12451 do :
12452   ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12453 if test "x$ac_cv_func_syslog" = xyes; then :
12454   cat >>confdefs.h <<_ACEOF
12455 #define HAVE_SYSLOG 1
12456 _ACEOF
12457
12458 fi
12459 done
12460
12461
12462
12463 # Check whether --with-pam was given.
12464 if test "${with_pam+set}" = set; then :
12465   withval=$with_pam; with_pam=$withval
12466 else
12467   with_pam=yes
12468 fi
12469
12470 if test "$with_pam" != no; then
12471   if test -d $with_pam; then
12472     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
12473     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
12474   fi
12475   for ac_header in security/pam_appl.h pam/pam_appl.h
12476 do :
12477   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12480   cat >>confdefs.h <<_ACEOF
12481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12482 _ACEOF
12483
12484 fi
12485
12486 done
12487
12488   cmu_save_LIBS="$LIBS"
12489   ac_fn_c_check_func "$LINENO" "pam_start" "ac_cv_func_pam_start"
12490 if test "x$ac_cv_func_pam_start" = xyes; then :
12491   :
12492 else
12493   LIBS="-lpam $LIBS"
12494         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h.  */
12496
12497 #include <sys/types.h>
12498 #ifdef HAVE_PAM_PAM_APPL_H
12499 #include <pam/pam_appl.h>
12500 #endif
12501 #ifdef HAVE_SECURITY_PAM_H
12502 #include <security/pam_appl.h>
12503 #endif
12504 int
12505 main ()
12506 {
12507
12508 const char *service="foo";
12509 const char *user="bar";
12510 pam_handle_t *pamh;
12511 struct pam_conv *conv;
12512 int baz;
12513 baz = pam_start(service, user, conv, &pamh);
12514 return 0;
12515
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521   LIBPAM="-lpam"
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext \
12524     conftest$ac_exeext conftest.$ac_ext
12525
12526 fi
12527
12528   LIBS="$cmu_save_LIBS $LIBPAM"
12529 fi
12530
12531
12532 # Check whether --with-saslauthd was given.
12533 if test "${with_saslauthd+set}" = set; then :
12534   withval=$with_saslauthd; with_saslauthd=$withval
12535 else
12536   with_saslauthd=yes
12537 fi
12538
12539 if test "$with_saslauthd" != no; then
12540   if test "$with_saslauthd" = yes; then
12541     with_saslauthd="/var/state/saslauthd"
12542   fi
12543
12544 $as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h
12545
12546
12547 cat >>confdefs.h <<_ACEOF
12548 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
12549 _ACEOF
12550
12551 fi
12552  if test "$with_saslauthd" != no; then
12553   SASLAUTHD_TRUE=
12554   SASLAUTHD_FALSE='#'
12555 else
12556   SASLAUTHD_TRUE='#'
12557   SASLAUTHD_FALSE=
12558 fi
12559
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include saslauthd" >&5
12561 $as_echo_n "checking if I should include saslauthd... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_saslauthd" >&5
12563 $as_echo "$with_saslauthd" >&6; }
12564
12565
12566 # Check whether --with-authdaemond was given.
12567 if test "${with_authdaemond+set}" = set; then :
12568   withval=$with_authdaemond; with_authdaemon=$withval
12569 else
12570   with_authdaemon=yes
12571 fi
12572
12573 if test "$with_authdaemon" != no; then
12574   if test "$with_authdaemon" = yes; then
12575     with_authdaemon="/dev/null"
12576   fi
12577
12578 $as_echo "#define HAVE_AUTHDAEMON /**/" >>confdefs.h
12579
12580
12581 cat >>confdefs.h <<_ACEOF
12582 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
12583 _ACEOF
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to include Courier authdaemond support" >&5
12587 $as_echo_n "checking to include Courier authdaemond support... " >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_authdaemon" >&5
12589 $as_echo "$with_authdaemon" >&6; }
12590
12591
12592 # Check whether --with-pwcheck was given.
12593 if test "${with_pwcheck+set}" = set; then :
12594   withval=$with_pwcheck; with_pwcheck=$withval
12595 else
12596   with_pwcheck=no
12597 fi
12598
12599 if test "$with_pwcheck" != no; then
12600    if test "$with_pwcheck" = yes; then
12601      with_pwcheck=/var/pwcheck
12602    fi
12603
12604 $as_echo "#define HAVE_PWCHECK /**/" >>confdefs.h
12605
12606
12607 cat >>confdefs.h <<_ACEOF
12608 #define PWCHECKDIR "$with_pwcheck"
12609 _ACEOF
12610
12611    ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
12612 if test "x$ac_cv_func_getspnam" = xyes; then :
12613   PWCHECKMETH="getspnam"
12614 else
12615   PWCHECKMETH="getpwnam"
12616 fi
12617
12618
12619 fi
12620  if test "$with_pwcheck" != no; then
12621   PWCHECK_TRUE=
12622   PWCHECK_FALSE='#'
12623 else
12624   PWCHECK_TRUE='#'
12625   PWCHECK_FALSE=
12626 fi
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include pwcheck" >&5
12629 $as_echo_n "checking if I should include pwcheck... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pwcheck" >&5
12631 $as_echo "$with_pwcheck" >&6; }
12632
12633
12634 # Check whether --with-ipctype was given.
12635 if test "${with_ipctype+set}" = set; then :
12636   withval=$with_ipctype; with_ipctype=$withval
12637 else
12638   with_ipctype="unix"
12639 fi
12640
12641 IPCTYPE=$with_ipctype
12642
12643 LIB_DOOR=
12644 if test "$with_ipctype" = "doors"; then
12645    LIB_DOOR="-ldoor"
12646
12647 $as_echo "#define USE_DOORS /**/" >>confdefs.h
12648
12649 fi
12650
12651
12652 # Check whether --enable-alwaystrue was given.
12653 if test "${enable_alwaystrue+set}" = set; then :
12654   enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
12655 else
12656   enable_alwaystrue=no
12657 fi
12658
12659 if test "$enable_alwaystrue" = yes; then
12660
12661 $as_echo "#define HAVE_ALWAYSTRUE /**/" >>confdefs.h
12662
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include the alwaystrue verifier" >&5
12665 $as_echo_n "checking if I should include the alwaystrue verifier... " >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alwaystrue" >&5
12667 $as_echo "$enable_alwaystrue" >&6; }
12668
12669 # Check whether --enable-checkapop was given.
12670 if test "${enable_checkapop+set}" = set; then :
12671   enableval=$enable_checkapop; checkapop=$enableval
12672 else
12673   checkapop=yes
12674 fi
12675
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable sasl_checkapop" >&5
12678 $as_echo_n "checking if we should enable sasl_checkapop... " >&6; }
12679 if test "$checkapop" != no; then
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12681 $as_echo "enabled" >&6; }
12682
12683 $as_echo "#define DO_SASL_CHECKAPOP /**/" >>confdefs.h
12684
12685 else
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12687 $as_echo "disabled" >&6; }
12688 fi
12689
12690 # Check whether --enable-cram was given.
12691 if test "${enable_cram+set}" = set; then :
12692   enableval=$enable_cram; cram=$enableval
12693 else
12694   cram=yes
12695 fi
12696
12697
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CRAM-MD5" >&5
12699 $as_echo_n "checking CRAM-MD5... " >&6; }
12700 if test "$cram" != no; then
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12702 $as_echo "enabled" >&6; }
12703   SASL_MECHS="$SASL_MECHS libcrammd5.la"
12704   if test "$enable_static" = yes; then
12705     SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
12706     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
12707
12708 $as_echo "#define STATIC_CRAMMD5 /**/" >>confdefs.h
12709
12710   fi
12711 else
12712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12713 $as_echo "disabled" >&6; }
12714 fi
12715
12716
12717 # Check whether --with-lib-subdir was given.
12718 if test "${with_lib_subdir+set}" = set; then :
12719   withval=$with_lib_subdir;
12720 fi
12721
12722 # The cast to long int works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12727 $as_echo_n "checking size of long... " >&6; }
12728 if ${ac_cv_sizeof_long+:} false; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12732
12733 else
12734   if test "$ac_cv_type_long" = yes; then
12735      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12737 as_fn_error 77 "cannot compute sizeof (long)
12738 See \`config.log' for more details" "$LINENO" 5; }
12739    else
12740      ac_cv_sizeof_long=0
12741    fi
12742 fi
12743
12744 fi
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12746 $as_echo "$ac_cv_sizeof_long" >&6; }
12747
12748
12749
12750 cat >>confdefs.h <<_ACEOF
12751 #define SIZEOF_LONG $ac_cv_sizeof_long
12752 _ACEOF
12753
12754
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
12756 $as_echo_n "checking what directory libraries are found in... " >&6; }
12757 if ${ac_cv_cmu_lib_subdir+:} false; then :
12758   $as_echo_n "(cached) " >&6
12759 else
12760   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
12761 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
12762 if test "X$with_lib_subdir" = "X" ; then
12763   ac_cv_cmu_lib_subdir=lib
12764   if test $ac_cv_sizeof_long -eq 4 ; then
12765     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
12766   fi
12767   if test $ac_cv_sizeof_long -eq 8 ; then
12768     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
12769   fi
12770 else
12771   ac_cv_cmu_lib_subdir=$with_lib_subdir
12772 fi
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
12775 $as_echo "$ac_cv_cmu_lib_subdir" >&6; }
12776 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
12777
12778
12779
12780
12781
12782 # Check whether --with-openssl was given.
12783 if test "${with_openssl+set}" = set; then :
12784   withval=$with_openssl; with_openssl=$withval
12785 else
12786   with_openssl="yes"
12787 fi
12788
12789
12790         save_CPPFLAGS=$CPPFLAGS
12791         save_LDFLAGS=$LDFLAGS
12792
12793         if test -d $with_openssl; then
12794           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
12795
12796   # this is CMU ADD LIBPATH
12797   if test "$andrew_runpath_switch" = "none" ; then
12798         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12799   else
12800         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12801   fi
12802
12803         fi
12804
12805 case "$with_openssl" in
12806         no)
12807           with_openssl="no";;
12808         *)
12809                                   LIB_RSAREF=""
12810                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
12811 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
12812 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815   ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lrsaref  $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819
12820 /* Override any GCC internal prototype to avoid an error.
12821    Use char because int might match the return type of a GCC
12822    builtin and then its argument prototype would still apply.  */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 char RSAPublicEncrypt ();
12827 int
12828 main ()
12829 {
12830 return RSAPublicEncrypt ();
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 if ac_fn_c_try_link "$LINENO"; then :
12836   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
12837 else
12838   ac_cv_lib_rsaref_RSAPublicEncrypt=no
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext \
12841     conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
12845 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
12846 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
12847   cmu_have_rsaref=yes;
12848                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5
12849 $as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
12850 if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then :
12851   $as_echo_n "(cached) " >&6
12852 else
12853   ac_check_lib_save_LIBS=$LIBS
12854 LIBS="-lRSAglue  $LIBS"
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h.  */
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char RSAPublicEncrypt ();
12865 int
12866 main ()
12867 {
12868 return RSAPublicEncrypt ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 if ac_fn_c_try_link "$LINENO"; then :
12874   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
12875 else
12876   ac_cv_lib_RSAglue_RSAPublicEncrypt=no
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext \
12879     conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
12883 $as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
12884 if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then :
12885   LIB_RSAREF="-lRSAglue -lrsaref"
12886 else
12887   LIB_RSAREF="-lrsaref"
12888 fi
12889
12890 else
12891   cmu_have_rsaref=no
12892 fi
12893
12894
12895                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
12897
12898                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5
12899 $as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
12900 if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then :
12901   $as_echo_n "(cached) " >&6
12902 else
12903   ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h.  */
12907
12908 /* Override any GCC internal prototype to avoid an error.
12909    Use char because int might match the return type of a GCC
12910    builtin and then its argument prototype would still apply.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char EVP_DigestInit ();
12915 int
12916 main ()
12917 {
12918 return EVP_DigestInit ();
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_link "$LINENO"; then :
12924   ac_cv_lib_crypto_EVP_DigestInit=yes
12925 else
12926   ac_cv_lib_crypto_EVP_DigestInit=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929     conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
12933 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
12934 if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then :
12935   with_openssl="yes"
12936 else
12937   with_openssl="no"
12938 fi
12939
12940 else
12941   with_openssl=no
12942 fi
12943
12944
12945                 ;;
12946 esac
12947
12948         if test "$with_openssl" != "no"; then
12949
12950 $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
12951
12952         else
12953                 CPPFLAGS=$save_CPPFLAGS
12954                 LDFLAGS=$save_LDFLAGS
12955         fi
12956
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12958 $as_echo_n "checking for OpenSSL... " >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
12960 $as_echo "$with_openssl" >&6; }
12961
12962
12963
12964 # Check whether --with-des was given.
12965 if test "${with_des+set}" = set; then :
12966   withval=$with_des; with_des=$withval
12967 else
12968   with_des=yes
12969 fi
12970
12971
12972 LIB_DES=""
12973 if test "$with_des" != no; then
12974   if test -d $with_des; then
12975     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
12976     LDFLAGS="$LDFLAGS -L${with_des}/lib"
12977   fi
12978
12979   if test "$with_openssl" != no; then
12980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
12981 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
12982 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h.  */
12989
12990 /* Override any GCC internal prototype to avoid an error.
12991    Use char because int might match the return type of a GCC
12992    builtin and then its argument prototype would still apply.  */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char des_cbc_encrypt ();
12997 int
12998 main ()
12999 {
13000 return des_cbc_encrypt ();
13001   ;
13002   return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006   ac_cv_lib_crypto_des_cbc_encrypt=yes
13007 else
13008   ac_cv_lib_crypto_des_cbc_encrypt=no
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011     conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13015 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13016 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13017
13018         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13019 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13020
13021 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13022
13023                                        LIB_DES="-lcrypto";
13024                                        with_des=yes
13025 else
13026   with_des=no
13027 fi
13028
13029
13030 else
13031   with_des=no
13032 fi
13033
13034
13035         if test "$with_des" = no; then
13036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
13037 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
13038 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   ac_check_lib_save_LIBS=$LIBS
13042 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h.  */
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047    Use char because int might match the return type of a GCC
13048    builtin and then its argument prototype would still apply.  */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char DES_cbc_encrypt ();
13053 int
13054 main ()
13055 {
13056 return DES_cbc_encrypt ();
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_c_try_link "$LINENO"; then :
13062   ac_cv_lib_crypto_DES_cbc_encrypt=yes
13063 else
13064   ac_cv_lib_crypto_DES_cbc_encrypt=no
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext \
13067     conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13071 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13072 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
13073
13074         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13076
13077 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13078
13079                                        LIB_DES="-lcrypto";
13080                                        with_des=yes
13081 else
13082   with_des=no
13083 fi
13084
13085
13086 else
13087   with_des=no
13088 fi
13089
13090     fi
13091   fi
13092
13093   if test "$with_des" = no; then
13094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13095 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13096 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-ldes  $LIBS"
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h.  */
13103
13104 /* Override any GCC internal prototype to avoid an error.
13105    Use char because int might match the return type of a GCC
13106    builtin and then its argument prototype would still apply.  */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 char des_cbc_encrypt ();
13111 int
13112 main ()
13113 {
13114 return des_cbc_encrypt ();
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_link "$LINENO"; then :
13120   ac_cv_lib_des_des_cbc_encrypt=yes
13121 else
13122   ac_cv_lib_des_des_cbc_encrypt=no
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext \
13125     conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13129 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13130 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13131   LIB_DES="-ldes";
13132                                         with_des=yes
13133 else
13134   with_des=no
13135 fi
13136
13137   fi
13138
13139   if test "$with_des" = no; then
13140      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13141 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13142 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13143   $as_echo_n "(cached) " >&6
13144 else
13145   ac_check_lib_save_LIBS=$LIBS
13146 LIBS="-ldes425  $LIBS"
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h.  */
13149
13150 /* Override any GCC internal prototype to avoid an error.
13151    Use char because int might match the return type of a GCC
13152    builtin and then its argument prototype would still apply.  */
13153 #ifdef __cplusplus
13154 extern "C"
13155 #endif
13156 char des_cbc_encrypt ();
13157 int
13158 main ()
13159 {
13160 return des_cbc_encrypt ();
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166   ac_cv_lib_des425_des_cbc_encrypt=yes
13167 else
13168   ac_cv_lib_des425_des_cbc_encrypt=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171     conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13175 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13176 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13177   LIB_DES="-ldes425";
13178                                        with_des=yes
13179 else
13180   with_des=no
13181 fi
13182
13183   fi
13184
13185   if test "$with_des" = no; then
13186      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5
13187 $as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
13188 if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-ldes524  $LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h.  */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197    Use char because int might match the return type of a GCC
13198    builtin and then its argument prototype would still apply.  */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char des_cbc_encrypt ();
13203 int
13204 main ()
13205 {
13206 return des_cbc_encrypt ();
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212   ac_cv_lib_des524_des_cbc_encrypt=yes
13213 else
13214   ac_cv_lib_des524_des_cbc_encrypt=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217     conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
13221 $as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
13222 if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then :
13223   LIB_DES="-ldes524";
13224                                        with_des=yes
13225 else
13226   with_des=no
13227 fi
13228
13229   fi
13230
13231   if test "$with_des" = no; then
13232
13233             LIB_RSAREF=""
13234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
13235 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
13236 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lrsaref  $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245    Use char because int might match the return type of a GCC
13246    builtin and then its argument prototype would still apply.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char RSAPublicEncrypt ();
13251 int
13252 main ()
13253 {
13254 return RSAPublicEncrypt ();
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
13261 else
13262   ac_cv_lib_rsaref_RSAPublicEncrypt=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext \
13265     conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
13269 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
13270 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
13271   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
13272 else
13273   cmu_have_rsaref=no
13274 fi
13275
13276
13277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
13278 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
13279 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char des_cbc_encrypt ();
13294 int
13295 main ()
13296 {
13297 return des_cbc_encrypt ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303   ac_cv_lib_crypto_des_cbc_encrypt=yes
13304 else
13305   ac_cv_lib_crypto_des_cbc_encrypt=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308     conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13312 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13313 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13314
13315         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13316 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13317
13318 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13319
13320                                         LIB_DES="-lcrypto";
13321                                         with_des=yes
13322 else
13323   with_des=no
13324 fi
13325
13326
13327 else
13328   with_des=no
13329 fi
13330
13331   fi
13332 fi
13333
13334 if test "$with_des" != no; then
13335
13336 $as_echo "#define WITH_DES /**/" >>confdefs.h
13337
13338 fi
13339
13340
13341
13342
13343 # Check whether --enable-digest was given.
13344 if test "${enable_digest+set}" = set; then :
13345   enableval=$enable_digest; digest=$enableval
13346 else
13347   digest=yes
13348 fi
13349
13350
13351 if test "$digest" != no; then
13352     if test -d $digest; then
13353     CPPFLAGS="$CPPFLAGS -I$digest/include"
13354     LDFLAGS="$LDFLAGS -L$digest/lib"
13355   fi
13356   if test "$with_des" = no; then
13357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES support for DIGEST-MD5" >&5
13358 $as_echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
13359   fi
13360 fi
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DIGEST-MD5" >&5
13363 $as_echo_n "checking DIGEST-MD5... " >&6; }
13364 if test "$digest" != no; then
13365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13366 $as_echo "enabled" >&6; }
13367   SASL_MECHS="$SASL_MECHS libdigestmd5.la"
13368   if test "$enable_static" = yes; then
13369     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
13370     SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
13371
13372 $as_echo "#define STATIC_DIGESTMD5 /**/" >>confdefs.h
13373
13374   fi
13375 else
13376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13377 $as_echo "disabled" >&6; }
13378 fi
13379
13380 # Check whether --enable-otp was given.
13381 if test "${enable_otp+set}" = set; then :
13382   enableval=$enable_otp; otp=$enableval
13383 else
13384   otp=yes
13385 fi
13386
13387
13388 if test "$with_openssl" = no; then
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- OTP will be disabled" >&5
13390 $as_echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
13391   otp=no
13392 fi
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP" >&5
13395 $as_echo_n "checking OTP... " >&6; }
13396 if test "$otp" != no; then
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13398 $as_echo "enabled" >&6; }
13399   OTP_LIBS="-lcrypto $LIB_RSAREF"
13400
13401   SASL_MECHS="$SASL_MECHS libotp.la"
13402   if test "$enable_static" = yes; then
13403     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
13404     SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
13405
13406 $as_echo "#define STATIC_OTP /**/" >>confdefs.h
13407
13408   fi
13409
13410
13411 # Check whether --with-with-opie was given.
13412 if test "${with_with_opie+set}" = set; then :
13413   withval=$with_with_opie; with_opie="${withval}"
13414 fi
13415
13416
13417   case "$with_opie" in
13418         ""|yes)
13419                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opiechallenge in -lopie" >&5
13420 $as_echo_n "checking for opiechallenge in -lopie... " >&6; }
13421 if ${ac_cv_lib_opie_opiechallenge+:} false; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424   ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lopie  $LIBS"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h.  */
13428
13429 /* Override any GCC internal prototype to avoid an error.
13430    Use char because int might match the return type of a GCC
13431    builtin and then its argument prototype would still apply.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char opiechallenge ();
13436 int
13437 main ()
13438 {
13439 return opiechallenge ();
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"; then :
13445   ac_cv_lib_opie_opiechallenge=yes
13446 else
13447   ac_cv_lib_opie_opiechallenge=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext \
13450     conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_opiechallenge" >&5
13454 $as_echo "$ac_cv_lib_opie_opiechallenge" >&6; }
13455 if test "x$ac_cv_lib_opie_opiechallenge" = xyes; then :
13456
13457                         ac_fn_c_check_header_mongrel "$LINENO" "opie.h" "ac_cv_header_opie_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_opie_h" = xyes; then :
13459   with_opie="yes"
13460 else
13461   with_opie="no"
13462 fi
13463
13464
13465 else
13466   with_opie="no"
13467 fi
13468
13469                 ;;
13470         *)
13471                 if test -d $with_opie; then
13472                   CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
13473                   LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
13474                 else
13475                   with_opie="no"
13476                 fi
13477                 ;;
13478   esac
13479
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPIE" >&5
13481 $as_echo_n "checking for OPIE... " >&6; }
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opie" >&5
13483 $as_echo "$with_opie" >&6; }
13484
13485   if test "$with_opie" != no; then
13486
13487 $as_echo "#define HAVE_OPIE /**/" >>confdefs.h
13488
13489     OTP_LIBS="$OTP_LIBS -lopie"
13490   fi
13491
13492
13493
13494 else
13495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13496 $as_echo "disabled" >&6; }
13497 fi
13498
13499 # Check whether --enable-srp was given.
13500 if test "${enable_srp+set}" = set; then :
13501   enableval=$enable_srp; srp=$enableval
13502 else
13503   srp=no
13504 fi
13505
13506
13507 if test "$with_openssl" = no; then
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- SRP will be disabled" >&5
13509 $as_echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
13510   srp=no
13511 fi
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SRP" >&5
13514 $as_echo_n "checking SRP... " >&6; }
13515 if test "$srp" != no; then
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13517 $as_echo "enabled" >&6; }
13518   SRP_LIBS="-lcrypto $LIB_RSAREF"
13519
13520   SASL_MECHS="$SASL_MECHS libsrp.la"
13521   if test "$enable_static" = yes; then
13522     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
13523     SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
13524
13525 $as_echo "#define STATIC_SRP /**/" >>confdefs.h
13526
13527   fi
13528
13529   # Check whether --enable-srp_setpass was given.
13530 if test "${enable_srp_setpass+set}" = set; then :
13531   enableval=$enable_srp_setpass; srp_setpass=$enableval
13532 else
13533   srp_setpass=no
13534 fi
13535
13536
13537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable setting SRP secrets with saslpasswd" >&5
13538 $as_echo_n "checking if we should enable setting SRP secrets with saslpasswd... " >&6; }
13539   if test "$srp_setpass" != no; then
13540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13541 $as_echo "enabled" >&6; }
13542
13543 $as_echo "#define DO_SRP_SETPASS /**/" >>confdefs.h
13544
13545   else
13546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13547 $as_echo "disabled" >&6; }
13548   fi
13549
13550
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13553 $as_echo "disabled" >&6; }
13554 fi
13555
13556
13557
13558
13559   # Check whether --enable-krb4 was given.
13560 if test "${enable_krb4+set}" = set; then :
13561   enableval=$enable_krb4; krb4=$enableval
13562 else
13563   krb4=no
13564 fi
13565
13566
13567   if test "$krb4" != no; then
13568                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
13569 $as_echo_n "checking for res_search in -lresolv... " >&6; }
13570 if ${ac_cv_lib_resolv_res_search+:} false; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-lresolv  $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577
13578 /* Override any GCC internal prototype to avoid an error.
13579    Use char because int might match the return type of a GCC
13580    builtin and then its argument prototype would still apply.  */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char res_search ();
13585 int
13586 main ()
13587 {
13588 return res_search ();
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_c_try_link "$LINENO"; then :
13594   ac_cv_lib_resolv_res_search=yes
13595 else
13596   ac_cv_lib_resolv_res_search=no
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext \
13599     conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
13603 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
13604 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
13605   cat >>confdefs.h <<_ACEOF
13606 #define HAVE_LIBRESOLV 1
13607 _ACEOF
13608
13609   LIBS="-lresolv $LIBS"
13610
13611 fi
13612
13613
13614             if test -d ${krb4}; then
13615        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
13616 $as_echo_n "checking for Kerberos includes... " >&6; }
13617 if ${cyrus_krbinclude+:} false; then :
13618   $as_echo_n "(cached) " >&6
13619 else
13620
13621          for krbhloc in include/kerberosIV include/kerberos include
13622          do
13623            if test -f ${krb4}/${krbhloc}/krb.h ; then
13624              cyrus_krbinclude=${krb4}/${krbhloc}
13625              break
13626            fi
13627          done
13628
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_krbinclude" >&5
13631 $as_echo "$cyrus_krbinclude" >&6; }
13632
13633        if test -n "${cyrus_krbinclude}"; then
13634          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
13635        fi
13636        LDFLAGS="$LDFLAGS -L$krb4/lib"
13637     fi
13638
13639     if test "$with_des" != no; then
13640       ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_krb_h" = xyes; then :
13642
13643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13644 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13645 if ${ac_cv_lib_com_err_com_err+:} false; then :
13646   $as_echo_n "(cached) " >&6
13647 else
13648   ac_check_lib_save_LIBS=$LIBS
13649 LIBS="-lcom_err  $LIBS"
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h.  */
13652
13653 /* Override any GCC internal prototype to avoid an error.
13654    Use char because int might match the return type of a GCC
13655    builtin and then its argument prototype would still apply.  */
13656 #ifdef __cplusplus
13657 extern "C"
13658 #endif
13659 char com_err ();
13660 int
13661 main ()
13662 {
13663 return com_err ();
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"; then :
13669   ac_cv_lib_com_err_com_err=yes
13670 else
13671   ac_cv_lib_com_err_com_err=no
13672 fi
13673 rm -f core conftest.err conftest.$ac_objext \
13674     conftest$ac_exeext conftest.$ac_ext
13675 LIBS=$ac_check_lib_save_LIBS
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13678 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13679 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13680
13681           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13682 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13683 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13684   $as_echo_n "(cached) " >&6
13685 else
13686   ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690
13691 /* Override any GCC internal prototype to avoid an error.
13692    Use char because int might match the return type of a GCC
13693    builtin and then its argument prototype would still apply.  */
13694 #ifdef __cplusplus
13695 extern "C"
13696 #endif
13697 char krb_mk_priv ();
13698 int
13699 main ()
13700 {
13701 return krb_mk_priv ();
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"; then :
13707   ac_cv_lib_krb_krb_mk_priv=yes
13708 else
13709   ac_cv_lib_krb_krb_mk_priv=no
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext \
13712     conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13714 fi
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13716 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13717 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13718   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13719 else
13720   krb4lib=no
13721 fi
13722
13723 else
13724
13725           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13726 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13727 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lkrb $LIB_DES $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h.  */
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736    Use char because int might match the return type of a GCC
13737    builtin and then its argument prototype would still apply.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char krb_mk_priv ();
13742 int
13743 main ()
13744 {
13745 return krb_mk_priv ();
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"; then :
13751   ac_cv_lib_krb_krb_mk_priv=yes
13752 else
13753   ac_cv_lib_krb_krb_mk_priv=no
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext \
13756     conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13760 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13761 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13762   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13763 else
13764   krb4lib=no
13765 fi
13766
13767 fi
13768
13769 else
13770   krb4="no"
13771 fi
13772
13773
13774
13775       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
13776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5
13777 $as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
13778 if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-lkrb4 $LIB_DES $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785
13786 /* Override any GCC internal prototype to avoid an error.
13787    Use char because int might match the return type of a GCC
13788    builtin and then its argument prototype would still apply.  */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char krb_mk_priv ();
13793 int
13794 main ()
13795 {
13796 return krb_mk_priv ();
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802   ac_cv_lib_krb4_krb_mk_priv=yes
13803 else
13804   ac_cv_lib_krb4_krb_mk_priv=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext \
13807     conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
13811 $as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
13812 if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then :
13813   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
13814 else
13815   krb4=no
13816 fi
13817
13818       fi
13819       if test "$krb4" = no; then
13820           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
13821 $as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
13822       fi
13823     else
13824       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
13825 $as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
13826       krb4=no
13827     fi
13828   fi
13829
13830   if test "$krb4" != no; then
13831     cmu_save_LIBS="$LIBS"
13832     LIBS="$LIBS $SASL_KRB_LIB"
13833     for ac_func in krb_get_err_text
13834 do :
13835   ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
13836 if test "x$ac_cv_func_krb_get_err_text" = xyes; then :
13837   cat >>confdefs.h <<_ACEOF
13838 #define HAVE_KRB_GET_ERR_TEXT 1
13839 _ACEOF
13840
13841 fi
13842 done
13843
13844     LIBS="$cmu_save_LIBS"
13845   fi
13846
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5
13848 $as_echo_n "checking KERBEROS_V4... " >&6; }
13849   if test "$krb4" != no; then
13850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13851 $as_echo "enabled" >&6; }
13852     SASL_MECHS="$SASL_MECHS libkerberos4.la"
13853     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
13854     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
13855
13856 $as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h
13857
13858
13859 $as_echo "#define HAVE_KRB /**/" >>confdefs.h
13860
13861     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
13862   else
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13864 $as_echo "disabled" >&6; }
13865   fi
13866
13867
13868 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13869 if test "x$ac_cv_func_crypt" = xyes; then :
13870   cmu_have_crypt=yes
13871 else
13872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13873 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13874 if ${ac_cv_lib_crypt_crypt+:} false; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-lcrypt  $LIBS"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h.  */
13881
13882 /* Override any GCC internal prototype to avoid an error.
13883    Use char because int might match the return type of a GCC
13884    builtin and then its argument prototype would still apply.  */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 char crypt ();
13889 int
13890 main ()
13891 {
13892 return crypt ();
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898   ac_cv_lib_crypt_crypt=yes
13899 else
13900   ac_cv_lib_crypt_crypt=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903     conftest$ac_exeext conftest.$ac_ext
13904 LIBS=$ac_check_lib_save_LIBS
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13907 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13908 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13909   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
13910 else
13911   cmu_have_crypt=no
13912 fi
13913
13914 fi
13915
13916
13917
13918
13919
13920 # Check whether --enable-gssapi was given.
13921 if test "${enable_gssapi+set}" = set; then :
13922   enableval=$enable_gssapi; gssapi=$enableval
13923 else
13924   gssapi=yes
13925 fi
13926
13927
13928 # Check whether --with-gss_impl was given.
13929 if test "${with_gss_impl+set}" = set; then :
13930   withval=$with_gss_impl; gss_impl=$withval
13931 else
13932   gss_impl=auto
13933 fi
13934
13935
13936 if test "$gssapi" != no; then
13937   platform=
13938   case "${host}" in
13939     *-*-linux*)
13940       platform=__linux
13941       ;;
13942     *-*-hpux*)
13943       platform=__hpux
13944       ;;
13945     *-*-irix*)
13946       platform=__irix
13947       ;;
13948     *-*-solaris2*)
13949 # When should we use __sunos?
13950       platform=__solaris
13951       ;;
13952     *-*-aix*)
13953 ###_AIX
13954       platform=__aix
13955       ;;
13956     *)
13957       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
13958 $as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;}
13959       if test "$gss_impl" = "cybersafe"; then
13960         as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
13961       fi
13962       ;;
13963   esac
13964
13965   cmu_saved_CPPFLAGS=$CPPFLAGS
13966
13967   if test -d ${gssapi}; then
13968     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
13969 # We want to keep -I in our CPPFLAGS, but only if we succeed
13970     cmu_saved_CPPFLAGS=$CPPFLAGS
13971 ### I am not sure how useful is this (and whether this is required at all
13972 ### especially when we have to provide two -L flags for new CyberSafe
13973     LDFLAGS="$LDFLAGS -L$gssapi/lib"
13974
13975     if test -n "$platform"; then
13976       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
13977         CPPFLAGS="$CPPFLAGS -D$platform"
13978         if test -d "${gssapi}/appsec-sdk/include"; then
13979           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
13980         fi
13981       fi
13982     fi
13983   fi
13984   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13985 if test "x$ac_cv_header_gssapi_h" = xyes; then :
13986
13987 $as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
13988
13989 else
13990   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13991 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
13992
13993 else
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no include files found" >&5
13995 $as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
13996 fi
13997
13998
13999 fi
14000
14001
14002
14003   CPPFLAGS=$cmu_saved_CPPFLAGS
14004
14005 fi
14006
14007 if test "$gssapi" != no; then
14008   # We need to find out which gssapi implementation we are
14009   # using. Supported alternatives are: MIT Kerberos 5,
14010   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
14011   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
14012   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
14013   #
14014   # The choice is reflected in GSSAPIBASE_LIBS
14015
14016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14017 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14018 if ${ac_cv_lib_resolv_res_search+:} false; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lresolv  $LIBS"
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025
14026 /* Override any GCC internal prototype to avoid an error.
14027    Use char because int might match the return type of a GCC
14028    builtin and then its argument prototype would still apply.  */
14029 #ifdef __cplusplus
14030 extern "C"
14031 #endif
14032 char res_search ();
14033 int
14034 main ()
14035 {
14036 return res_search ();
14037   ;
14038   return 0;
14039 }
14040 _ACEOF
14041 if ac_fn_c_try_link "$LINENO"; then :
14042   ac_cv_lib_resolv_res_search=yes
14043 else
14044   ac_cv_lib_resolv_res_search=no
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext \
14047     conftest$ac_exeext conftest.$ac_ext
14048 LIBS=$ac_check_lib_save_LIBS
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14051 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14052 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14053   cat >>confdefs.h <<_ACEOF
14054 #define HAVE_LIBRESOLV 1
14055 _ACEOF
14056
14057   LIBS="-lresolv $LIBS"
14058
14059 fi
14060
14061   if test -d ${gssapi}; then
14062      gssapi_dir="${gssapi}/lib"
14063      GSSAPIBASE_LIBS="-L$gssapi_dir"
14064      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
14065   else
14066      # FIXME: This is only used for building cyrus, and then only as
14067      # a real hack.  it needs to be fixed.
14068      gssapi_dir="/usr/local/lib"
14069   fi
14070
14071   # Check a full link against the Heimdal libraries.
14072   # If this fails, check a full link against the MIT libraries.
14073   # If this fails, check a full link against the CyberSafe libraries.
14074   # If this fails, check a full link against the Solaris 8 and up libgss.
14075
14076   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
14077     gss_failed=0
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
14079 $as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
14080 if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
14081   $as_echo_n "(cached) " >&6
14082 else
14083   ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h.  */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089    Use char because int might match the return type of a GCC
14090    builtin and then its argument prototype would still apply.  */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char gss_unwrap ();
14095 int
14096 main ()
14097 {
14098 return gss_unwrap ();
14099   ;
14100   return 0;
14101 }
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"; then :
14104   ac_cv_lib_gssapi_gss_unwrap=yes
14105 else
14106   ac_cv_lib_gssapi_gss_unwrap=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext \
14109     conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14111 fi
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
14113 $as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
14114 if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
14115   gss_impl="heimdal"
14116 else
14117   gss_failed=1
14118 fi
14119
14120     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14121       gss_impl="failed"
14122     fi
14123   fi
14124
14125   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
14126     # check for libkrb5support first
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14128 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14129 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14130   $as_echo_n "(cached) " >&6
14131 else
14132   ac_check_lib_save_LIBS=$LIBS
14133 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h.  */
14136
14137 /* Override any GCC internal prototype to avoid an error.
14138    Use char because int might match the return type of a GCC
14139    builtin and then its argument prototype would still apply.  */
14140 #ifdef __cplusplus
14141 extern "C"
14142 #endif
14143 char krb5int_getspecific ();
14144 int
14145 main ()
14146 {
14147 return krb5int_getspecific ();
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 if ac_fn_c_try_link "$LINENO"; then :
14153   ac_cv_lib_krb5support_krb5int_getspecific=yes
14154 else
14155   ac_cv_lib_krb5support_krb5int_getspecific=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext \
14158     conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14160 fi
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14162 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14163 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14164   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
14165 fi
14166
14167
14168     gss_failed=0
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
14170 $as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
14171 if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
14172   $as_echo_n "(cached) " >&6
14173 else
14174   ac_check_lib_save_LIBS=$LIBS
14175 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h.  */
14178
14179 /* Override any GCC internal prototype to avoid an error.
14180    Use char because int might match the return type of a GCC
14181    builtin and then its argument prototype would still apply.  */
14182 #ifdef __cplusplus
14183 extern "C"
14184 #endif
14185 char gss_unwrap ();
14186 int
14187 main ()
14188 {
14189 return gss_unwrap ();
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
14196 else
14197   ac_cv_lib_gssapi_krb5_gss_unwrap=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext \
14200     conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
14204 $as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
14205 if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
14206   gss_impl="mit"
14207 else
14208   gss_failed=1
14209 fi
14210
14211     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14212       gss_impl="failed"
14213     fi
14214   fi
14215
14216   # For Cybersafe one has to set a platform define in order to make compilation work
14217   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
14218
14219     cmu_saved_CPPFLAGS=$CPPFLAGS
14220     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
14221 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
14222     if test -d "${gssapi}/appsec-rt/lib"; then
14223       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
14224     fi
14225     CPPFLAGS="$CPPFLAGS -D$platform"
14226     if test -d "${gssapi}/appsec-sdk/include"; then
14227       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
14228     fi
14229
14230     gss_failed=0
14231
14232 # Check for CyberSafe with two libraries first, than fall back to a single
14233 # library (older CyberSafe)
14234
14235     unset ac_cv_lib_gss_csf_gss_acq_user
14236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14237 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14238 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14239   $as_echo_n "(cached) " >&6
14240 else
14241   ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h.  */
14245
14246 /* Override any GCC internal prototype to avoid an error.
14247    Use char because int might match the return type of a GCC
14248    builtin and then its argument prototype would still apply.  */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char csf_gss_acq_user ();
14253 int
14254 main ()
14255 {
14256 return csf_gss_acq_user ();
14257   ;
14258   return 0;
14259 }
14260 _ACEOF
14261 if ac_fn_c_try_link "$LINENO"; then :
14262   ac_cv_lib_gss_csf_gss_acq_user=yes
14263 else
14264   ac_cv_lib_gss_csf_gss_acq_user=no
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267     conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14271 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14272 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14273   gss_impl="cybersafe03"
14274 else
14275   unset ac_cv_lib_gss_csf_gss_acq_user;
14276                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14277 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14278 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14279   $as_echo_n "(cached) " >&6
14280 else
14281   ac_check_lib_save_LIBS=$LIBS
14282 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h.  */
14285
14286 /* Override any GCC internal prototype to avoid an error.
14287    Use char because int might match the return type of a GCC
14288    builtin and then its argument prototype would still apply.  */
14289 #ifdef __cplusplus
14290 extern "C"
14291 #endif
14292 char csf_gss_acq_user ();
14293 int
14294 main ()
14295 {
14296 return csf_gss_acq_user ();
14297   ;
14298   return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"; then :
14302   ac_cv_lib_gss_csf_gss_acq_user=yes
14303 else
14304   ac_cv_lib_gss_csf_gss_acq_user=no
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext \
14307     conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14309 fi
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14311 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14312 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14313   gss_impl="cybersafe"
14314 else
14315   gss_failed=1
14316 fi
14317
14318 fi
14319
14320
14321     if test "$gss_failed" = "1"; then
14322 # Restore variables
14323       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
14324       CPPFLAGS=$cmu_saved_CPPFLAGS
14325
14326       if test "$gss_impl" != "auto"; then
14327         gss_impl="failed"
14328       fi
14329     fi
14330   fi
14331
14332   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
14333     gss_failed=0
14334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
14335 $as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
14336 if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
14337   $as_echo_n "(cached) " >&6
14338 else
14339   ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lgss -lgss $LIBS"
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h.  */
14343
14344 /* Override any GCC internal prototype to avoid an error.
14345    Use char because int might match the return type of a GCC
14346    builtin and then its argument prototype would still apply.  */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char gss_unwrap ();
14351 int
14352 main ()
14353 {
14354 return gss_unwrap ();
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360   ac_cv_lib_gss_gss_unwrap=yes
14361 else
14362   ac_cv_lib_gss_gss_unwrap=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext \
14365     conftest$ac_exeext conftest.$ac_ext
14366 LIBS=$ac_check_lib_save_LIBS
14367 fi
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
14369 $as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
14370 if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
14371   gss_impl="seam"
14372 else
14373   gss_failed=1
14374 fi
14375
14376     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14377       gss_impl="failed"
14378     fi
14379   fi
14380
14381   if test "$gss_impl" = "mit"; then
14382     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
14383     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
14384   elif test "$gss_impl" = "heimdal"; then
14385     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
14386     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
14387     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
14388   elif test "$gss_impl" = "cybersafe03"; then
14389 # Version of CyberSafe with two libraries
14390     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14391     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
14392     # there is no static libgss for CyberSafe
14393     GSSAPIBASE_STATIC_LIBS=none
14394   elif test "$gss_impl" = "cybersafe"; then
14395     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14396     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
14397     # there is no static libgss for CyberSafe
14398     GSSAPIBASE_STATIC_LIBS=none
14399   elif test "$gss_impl" = "seam"; then
14400     GSSAPIBASE_LIBS=-lgss
14401     # there is no static libgss on Solaris 8 and up
14402     GSSAPIBASE_STATIC_LIBS=none
14403   elif test "$gss_impl" = "failed"; then
14404     gssapi="no"
14405     GSSAPIBASE_LIBS=
14406     GSSAPIBASE_STATIC_LIBS=
14407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
14408 $as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
14409   else
14410     gssapi="no"
14411     GSSAPIBASE_LIBS=
14412     GSSAPIBASE_STATIC_LIBS=
14413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
14414 $as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
14415   fi
14416 fi
14417
14418 #
14419 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
14420 # in gssapi\rfckrb5.h
14421 #
14422 if test "$gssapi" != "no"; then
14423   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h.  */
14426 #include <gssapi/gssapi.h>
14427                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
14428                     hostbased_service_gss_nt_yes
14429                   #endif
14430 _ACEOF
14431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14432   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
14433
14434 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14435
14436 else
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14438 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14439 fi
14440 rm -f conftest*
14441
14442
14443   elif test "$ac_cv_header_gssapi_h" = "yes"; then
14444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446 #include <gssapi.h>
14447
14448 _ACEOF
14449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14450   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14451
14452 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14453
14454 fi
14455 rm -f conftest*
14456
14457   elif test "$ac_cv_header_gssapi_gssapi_h"; then
14458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h.  */
14460 #include <gssapi/gssapi.h>
14461
14462 _ACEOF
14463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14464   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14465
14466 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14467
14468 fi
14469 rm -f conftest*
14470
14471   fi
14472
14473   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h.  */
14476 #include <gssapi/gssapi.h>
14477                   #ifdef GSS_C_NT_USER_NAME
14478                    user_name_yes_gss_nt
14479                   #endif
14480 _ACEOF
14481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
14483
14484 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14485
14486 else
14487   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14488 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14489 fi
14490 rm -f conftest*
14491
14492   elif test "$ac_cv_header_gssapi_h" = "yes"; then
14493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h.  */
14495 #include <gssapi.h>
14496
14497 _ACEOF
14498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14499   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14500
14501 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14502
14503 fi
14504 rm -f conftest*
14505
14506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h.  */
14508 #include <gssapi.h>
14509
14510 _ACEOF
14511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14512   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14513   rfc5587=yes
14514 fi
14515 rm -f conftest*
14516
14517   elif test "$ac_cv_header_gssapi_gssapi_h"; then
14518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h.  */
14520 #include <gssapi/gssapi.h>
14521
14522 _ACEOF
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14525
14526 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14527
14528 fi
14529 rm -f conftest*
14530
14531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h.  */
14533 #include <gssapi/gssapi.h>
14534
14535 _ACEOF
14536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14537   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14538   rfc5587=yes
14539 fi
14540 rm -f conftest*
14541
14542   fi
14543 fi
14544
14545 GSSAPI_LIBS=""
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
14547 $as_echo_n "checking GSSAPI... " >&6; }
14548 if test "$gssapi" != no; then
14549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
14550 $as_echo "with implementation ${gss_impl}" >&6; }
14551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14552 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14553 if ${ac_cv_lib_resolv_res_search+:} false; then :
14554   $as_echo_n "(cached) " >&6
14555 else
14556   ac_check_lib_save_LIBS=$LIBS
14557 LIBS="-lresolv  $LIBS"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h.  */
14560
14561 /* Override any GCC internal prototype to avoid an error.
14562    Use char because int might match the return type of a GCC
14563    builtin and then its argument prototype would still apply.  */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char res_search ();
14568 int
14569 main ()
14570 {
14571 return res_search ();
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577   ac_cv_lib_resolv_res_search=yes
14578 else
14579   ac_cv_lib_resolv_res_search=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext \
14582     conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14586 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14587 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14588   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
14589 fi
14590
14591   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
14592   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
14593   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
14594   if test "$rfc5587" = "yes"; then
14595     SASL_MECHS="$SASL_MECHS libgs2.la"
14596     SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
14597     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
14598   fi
14599   cmu_save_LIBS="$LIBS"
14600   LIBS="$LIBS $GSSAPIBASE_LIBS"
14601   for ac_func in gsskrb5_register_acceptor_identity
14602 do :
14603   ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
14604 if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
14605   cat >>confdefs.h <<_ACEOF
14606 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
14607 _ACEOF
14608
14609 fi
14610 done
14611
14612   LIBS="$cmu_save_LIBS"
14613 else
14614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14615 $as_echo "disabled" >&6; }
14616 fi
14617
14618
14619
14620
14621 if test "$gssapi" != "no"; then
14622
14623 $as_echo "#define STATIC_GSSAPIV2 /**/" >>confdefs.h
14624
14625   mutex_default="no"
14626   if test "$gss_impl" = "mit"; then
14627      mutex_default="yes"
14628   fi
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to use mutexes aroung GSS calls" >&5
14630 $as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
14631   # Check whether --enable-gss_mutexes was given.
14632 if test "${enable_gss_mutexes+set}" = set; then :
14633   enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
14634 else
14635   use_gss_mutexes=$mutex_default
14636 fi
14637
14638   if test $use_gss_mutexes = "yes"; then
14639
14640 $as_echo "#define GSS_USE_MUTEXES /**/" >>confdefs.h
14641
14642   fi
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gss_mutexes" >&5
14644 $as_echo "$use_gss_mutexes" >&6; }
14645 fi
14646
14647
14648
14649
14650  # Check whether --enable-plain was given.
14651 if test "${enable_plain+set}" = set; then :
14652   enableval=$enable_plain; plain=$enableval
14653 else
14654   plain=yes
14655 fi
14656
14657
14658  PLAIN_LIBS=""
14659  if test "$plain" != no; then
14660     if test "$cmu_have_crypt" = yes; then
14661     PLAIN_LIBS=$LIB_CRYPT
14662   fi
14663  fi
14664
14665
14666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLAIN" >&5
14667 $as_echo_n "checking PLAIN... " >&6; }
14668  if test "$plain" != no; then
14669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14670 $as_echo "enabled" >&6; }
14671   SASL_MECHS="$SASL_MECHS libplain.la"
14672   if test "$enable_static" = yes; then
14673     SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
14674     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
14675
14676 $as_echo "#define STATIC_PLAIN /**/" >>confdefs.h
14677
14678   fi
14679  else
14680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14681 $as_echo "disabled" >&6; }
14682  fi
14683
14684
14685 # Check whether --enable-anon was given.
14686 if test "${enable_anon+set}" = set; then :
14687   enableval=$enable_anon; anon=$enableval
14688 else
14689   anon=yes
14690 fi
14691
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ANONYMOUS" >&5
14694 $as_echo_n "checking ANONYMOUS... " >&6; }
14695 if test "$anon" != no; then
14696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14697 $as_echo "enabled" >&6; }
14698   SASL_MECHS="$SASL_MECHS libanonymous.la"
14699   if test "$enable_static" = yes; then
14700     SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
14701     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
14702
14703 $as_echo "#define STATIC_ANONYMOUS /**/" >>confdefs.h
14704
14705   fi
14706 else
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14708 $as_echo "disabled" >&6; }
14709 fi
14710
14711 # Check whether --enable-login was given.
14712 if test "${enable_login+set}" = set; then :
14713   enableval=$enable_login; login=$enableval
14714 else
14715   login=no
14716 fi
14717
14718
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LOGIN" >&5
14720 $as_echo_n "checking LOGIN... " >&6; }
14721 if test "$login" != no; then
14722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14723 $as_echo "enabled" >&6; }
14724   SASL_MECHS="$SASL_MECHS liblogin.la"
14725   if test "$enable_static" = yes; then
14726     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
14727     SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
14728
14729 $as_echo "#define STATIC_LOGIN /**/" >>confdefs.h
14730
14731   fi
14732 else
14733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14734 $as_echo "disabled" >&6; }
14735 fi
14736
14737 # Check whether --enable-ntlm was given.
14738 if test "${enable_ntlm+set}" = set; then :
14739   enableval=$enable_ntlm; ntlm=$enableval
14740 else
14741   ntlm=no
14742 fi
14743
14744
14745 if test "$with_openssl" = no; then
14746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
14747 $as_echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
14748   ntlm=no
14749 fi
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTLM" >&5
14752 $as_echo_n "checking NTLM... " >&6; }
14753 if test "$ntlm" != no; then
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14755 $as_echo "enabled" >&6; }
14756   NTLM_LIBS="-lcrypto $LIB_RSAREF"
14757
14758
14759   SASL_MECHS="$SASL_MECHS libntlm.la"
14760   if test "$enable_static" = yes; then
14761     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
14762     SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
14763
14764 $as_echo "#define STATIC_NTLM /**/" >>confdefs.h
14765
14766   fi
14767 else
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14769 $as_echo "disabled" >&6; }
14770 fi
14771
14772 # Check whether --enable-passdss was given.
14773 if test "${enable_passdss+set}" = set; then :
14774   enableval=$enable_passdss; passdss=$enableval
14775 else
14776   passdss=no
14777 fi
14778
14779
14780 if test "$with_openssl" = no; then
14781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
14782 $as_echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
14783   passdss=no
14784 fi
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PASSDSS" >&5
14787 $as_echo_n "checking PASSDSS... " >&6; }
14788 if test "$passdss" != no; then
14789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14790 $as_echo "enabled" >&6; }
14791   PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
14792
14793
14794   SASL_MECHS="$SASL_MECHS libpassdss.la"
14795   if test "$enable_static" = yes; then
14796     SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
14797     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
14798
14799 $as_echo "#define STATIC_PASSDSS /**/" >>confdefs.h
14800
14801   fi
14802 else
14803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14804 $as_echo "disabled" >&6; }
14805 fi
14806
14807
14808 # make the option show up so people don't whine that it is only in the
14809 # saslauthd configure script --help
14810
14811 # Check whether --with-ldap was given.
14812 if test "${with_ldap+set}" = set; then :
14813   withval=$with_ldap;
14814 else
14815   with_ldap=no
14816 fi
14817
14818
14819
14820
14821 # Check whether --enable-sql was given.
14822 if test "${enable_sql+set}" = set; then :
14823   enableval=$enable_sql; sql=$enableval
14824 else
14825   sql=no
14826 fi
14827
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL" >&5
14830 $as_echo_n "checking SQL... " >&6; }
14831 if test "$sql" != no; then
14832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14833 $as_echo "enabled" >&6; }
14834   SASL_MECHS="$SASL_MECHS libsql.la"
14835   if test "$enable_static" = yes; then
14836     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
14837     SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
14838
14839 $as_echo "#define STATIC_SQL /**/" >>confdefs.h
14840
14841   fi
14842 else
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14844 $as_echo "disabled" >&6; }
14845 fi
14846
14847
14848 # Check whether --with-mysql was given.
14849 if test "${with_mysql+set}" = set; then :
14850   withval=$with_mysql; with_mysql=$withval
14851 else
14852   with_mysql=$sql
14853 fi
14854
14855
14856 # find location of library
14857 # presuming if one given then correct
14858 if test "${with_mysql}" = "yes"; then
14859   with_mysql=notfound
14860   for mysqlloc in lib/mysql lib mysql/lib
14861   do
14862     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
14863       with_mysql="${prefix}"
14864       break
14865     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
14866       with_mysql="/usr/local"
14867       break
14868     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
14869       with_mysql="/usr"
14870       break
14871     fi
14872   done
14873 fi
14874
14875 LIB_MYSQL=""
14876
14877 case "$with_mysql" in
14878     no) true;;
14879     notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL Library not found" >&5
14880 $as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
14881     *)
14882      if test -d ${with_mysql}/lib/mysql; then
14883
14884   # this is CMU ADD LIBPATH TO
14885   if test "$andrew_runpath_switch" = "none" ; then
14886         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
14887   else
14888         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
14889   fi
14890
14891      elif test -d ${with_mysql}/mysql/lib; then
14892
14893   # this is CMU ADD LIBPATH TO
14894   if test "$andrew_runpath_switch" = "none" ; then
14895         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
14896   else
14897         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
14898   fi
14899
14900      elif test -d ${with_mysql}/lib; then
14901
14902   # this is CMU ADD LIBPATH TO
14903   if test "$andrew_runpath_switch" = "none" ; then
14904         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
14905   else
14906         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
14907   fi
14908
14909      else
14910
14911   # this is CMU ADD LIBPATH TO
14912   if test "$andrew_runpath_switch" = "none" ; then
14913         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
14914   else
14915         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
14916   fi
14917
14918      fi
14919
14920      LIB_MYSQL_DIR=$LIB_MYSQL
14921      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
14922
14923      if test -d ${with_mysql}/include/mysql; then
14924          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
14925      elif test -d ${with_mysql}/mysql/include; then
14926          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
14927      elif test -d ${with_mysql}/include; then
14928          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
14929      else
14930          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
14931      fi
14932
14933        save_LDFLAGS=$LDFLAGS
14934        LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
14935        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_select_db in -lmysqlclient" >&5
14936 $as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
14937 if ${ac_cv_lib_mysqlclient_mysql_select_db+:} false; then :
14938   $as_echo_n "(cached) " >&6
14939 else
14940   ac_check_lib_save_LIBS=$LIBS
14941 LIBS="-lmysqlclient  $LIBS"
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h.  */
14944
14945 /* Override any GCC internal prototype to avoid an error.
14946    Use char because int might match the return type of a GCC
14947    builtin and then its argument prototype would still apply.  */
14948 #ifdef __cplusplus
14949 extern "C"
14950 #endif
14951 char mysql_select_db ();
14952 int
14953 main ()
14954 {
14955 return mysql_select_db ();
14956   ;
14957   return 0;
14958 }
14959 _ACEOF
14960 if ac_fn_c_try_link "$LINENO"; then :
14961   ac_cv_lib_mysqlclient_mysql_select_db=yes
14962 else
14963   ac_cv_lib_mysqlclient_mysql_select_db=no
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext \
14966     conftest$ac_exeext conftest.$ac_ext
14967 LIBS=$ac_check_lib_save_LIBS
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
14970 $as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
14971 if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = xyes; then :
14972
14973 $as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
14974
14975 else
14976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL library mysqlclient does not work" >&5
14977 $as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
14978             with_mysql=no
14979 fi
14980
14981        LDFLAGS=$save_LDFLAGS;;
14982
14983 esac
14984
14985
14986
14987 # Check whether --with-pgsql was given.
14988 if test "${with_pgsql+set}" = set; then :
14989   withval=$with_pgsql; with_pgsql=$withval
14990 else
14991   with_pgsql=$sql
14992 fi
14993
14994
14995 # find location of library
14996 # presuing if one given then correct
14997 if test "${with_pgsql}" = "yes"; then
14998   with_pgsql=notfound
14999   for pgsqlloc in lib/pgsql lib pgsql/lib
15000   do
15001     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
15002       with_pgsql="${prefix}"
15003       break
15004     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
15005       with_pgsql="/usr/local"
15006       break
15007     elif test -f /usr/${pgsqlloc}/libpq.a; then
15008       with_pgsql="/usr"
15009       break
15010     fi
15011   done
15012 fi
15013
15014 LIB_PGSQL=""
15015
15016 case "$with_pgsql" in
15017     no) true;;
15018     notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library not found" >&5
15019 $as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
15020     *)
15021      if test -d ${with_pgsql}/lib/pgsql; then
15022
15023   # this is CMU ADD LIBPATH TO
15024   if test "$andrew_runpath_switch" = "none" ; then
15025         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
15026   else
15027         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
15028   fi
15029
15030      elif test -d ${with_pgsql}/pgsql/lib; then
15031
15032   # this is CMU ADD LIBPATH TO
15033   if test "$andrew_runpath_switch" = "none" ; then
15034         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
15035   else
15036         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
15037   fi
15038
15039      elif test -d ${with_pgsql}/lib; then
15040
15041   # this is CMU ADD LIBPATH TO
15042   if test "$andrew_runpath_switch" = "none" ; then
15043         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
15044   else
15045         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
15046   fi
15047
15048      else
15049
15050   # this is CMU ADD LIBPATH TO
15051   if test "$andrew_runpath_switch" = "none" ; then
15052         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
15053   else
15054         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
15055   fi
15056
15057      fi
15058
15059      LIB_PGSQL_DIR=$LIB_PGSQL
15060      LIB_PGSQL="$LIB_PGSQL -lpq"
15061
15062      if test -d ${with_pgsql}/include/pgsql; then
15063          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
15064      elif test -d ${with_pgsql}/pgsql/include; then
15065          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
15066      elif test -d ${with_pgsql}/include; then
15067          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
15068      else
15069          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
15070      fi
15071
15072
15073        save_LDFLAGS=$LDFLAGS
15074        LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
15075        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
15076 $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
15077 if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-lpq  $LIBS"
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h.  */
15084
15085 /* Override any GCC internal prototype to avoid an error.
15086    Use char because int might match the return type of a GCC
15087    builtin and then its argument prototype would still apply.  */
15088 #ifdef __cplusplus
15089 extern "C"
15090 #endif
15091 char PQsetdbLogin ();
15092 int
15093 main ()
15094 {
15095 return PQsetdbLogin ();
15096   ;
15097   return 0;
15098 }
15099 _ACEOF
15100 if ac_fn_c_try_link "$LINENO"; then :
15101   ac_cv_lib_pq_PQsetdbLogin=yes
15102 else
15103   ac_cv_lib_pq_PQsetdbLogin=no
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext \
15106     conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15108 fi
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
15110 $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
15111 if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
15112
15113 $as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
15114
15115 else
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library pq does not work" >&5
15117 $as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
15118             with_pgsql=no
15119 fi
15120
15121        LDFLAGS=$save_LDFLAGS;;
15122
15123 esac
15124
15125
15126
15127 # Check whether --with-sqlite was given.
15128 if test "${with_sqlite+set}" = set; then :
15129   withval=$with_sqlite; with_sqlite=$withval
15130 else
15131   with_sqlite=$sql
15132 fi
15133
15134
15135 # find location of library
15136 # presuing if one given then correct
15137 if test "${with_sqlite}" = "yes"; then
15138   with_sqlite=notfound
15139   for sqliteloc in lib
15140   do
15141     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
15142       with_sqlite="${prefix}"
15143       break
15144     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
15145       with_sqlite="/usr/local"
15146       break
15147     elif test -f /usr/${sqliteloc}/libsqlite.a; then
15148       with_sqlite="/usr"
15149       break
15150     fi
15151   done
15152 fi
15153
15154 LIB_SQLITE=""
15155
15156 case "$with_sqlite" in
15157     no) true;;
15158     notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library not found" >&5
15159 $as_echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
15160     *)
15161      if test -d ${with_sqlite}/lib; then
15162          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
15163      else
15164          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
15165      fi
15166
15167      LIB_SQLITE_DIR=$LIB_SQLITE
15168      LIB_SQLITE="$LIB_SQLITE -lsqlite"
15169
15170      if test -d ${with_sqlite}/include; then
15171          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
15172      else
15173          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
15174      fi
15175        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
15176 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
15177 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
15178   $as_echo_n "(cached) " >&6
15179 else
15180   ac_check_lib_save_LIBS=$LIBS
15181 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h.  */
15184
15185 /* Override any GCC internal prototype to avoid an error.
15186    Use char because int might match the return type of a GCC
15187    builtin and then its argument prototype would still apply.  */
15188 #ifdef __cplusplus
15189 extern "C"
15190 #endif
15191 char sqlite_open ();
15192 int
15193 main ()
15194 {
15195 return sqlite_open ();
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_link "$LINENO"; then :
15201   ac_cv_lib_sqlite_sqlite_open=yes
15202 else
15203   ac_cv_lib_sqlite_sqlite_open=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext \
15206     conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
15210 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
15211 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
15212
15213 $as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
15214
15215 else
15216   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library sqlite does not work" >&5
15217 $as_echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
15218             with_sqlite=no
15219 fi
15220 ;;
15221
15222 esac
15223
15224
15225 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
15226     as_fn_error $? "--enable-sql chosen but neither Postgres nor MySQL nor SQLite found" "$LINENO" 5
15227 fi
15228
15229 if test "$enable_shared" = yes; then
15230
15231 $as_echo "#define DO_DLOPEN /**/" >>confdefs.h
15232
15233 fi
15234
15235 # Check whether --enable-ldapdb was given.
15236 if test "${enable_ldapdb+set}" = set; then :
15237   enableval=$enable_ldapdb; ldapdb=$enableval
15238 else
15239   ldapdb=no
15240 fi
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDAPDB" >&5
15243 $as_echo_n "checking LDAPDB... " >&6; }
15244 if test "$ldapdb" != no; then
15245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
15246 $as_echo "enabled" >&6; }
15247
15248     if test "$with_ldap" = no; then
15249         as_fn_error $? "Cannot enable LDAPDB plugin: You need to specify --with-ldap" "$LINENO" 5
15250     fi
15251
15252     save_CPPFLAGS=$CPPFLAGS
15253     save_LDFLAGS=$LDFLAGS
15254
15255     if test -d $with_ldap; then
15256         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
15257
15258   # this is CMU ADD LIBPATH
15259   if test "$andrew_runpath_switch" = "none" ; then
15260         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
15261   else
15262         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
15263   fi
15264
15265     fi
15266
15267     for ac_header in ldap.h lber.h
15268 do :
15269   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15272   cat >>confdefs.h <<_ACEOF
15273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 _ACEOF
15275
15276 fi
15277
15278 done
15279
15280
15281     if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
15282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP api" >&5
15283 $as_echo_n "checking OpenLDAP api... " >&6; }
15284 if ${cmu_cv_openldap_api+:} false; then :
15285   $as_echo_n "(cached) " >&6
15286 else
15287
15288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h.  */
15290
15291 #include <ldap.h>
15292
15293 #ifdef LDAP_API_FEATURE_X_OPENLDAP
15294 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
15295 #endif
15296
15297 _ACEOF
15298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15299   $EGREP "__openldap_api" >/dev/null 2>&1; then :
15300   cmu_cv_openldap_api=yes
15301 else
15302   cmu_cv_openldap_api=no
15303 fi
15304 rm -f conftest*
15305
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_api" >&5
15308 $as_echo "$cmu_cv_openldap_api" >&6; }
15309
15310
15311         if test "$cmu_cv_openldap_api" = yes; then
15312             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
15313 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
15314 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
15315   $as_echo_n "(cached) " >&6
15316 else
15317   ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lldap -llber $LIBS"
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h.  */
15321
15322 /* Override any GCC internal prototype to avoid an error.
15323    Use char because int might match the return type of a GCC
15324    builtin and then its argument prototype would still apply.  */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char ldap_initialize ();
15329 int
15330 main ()
15331 {
15332 return ldap_initialize ();
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338   ac_cv_lib_ldap_ldap_initialize=yes
15339 else
15340   ac_cv_lib_ldap_ldap_initialize=no
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext \
15343     conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
15347 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
15348 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
15349    cmu_link_openldap="-lldap -llber"
15350 else
15351    cmu_link_openldap=no
15352 fi
15353
15354         fi
15355     fi
15356
15357     if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
15358         as_fn_error $? "Cannot enable LDAPDB plugin: Could not locate OpenLDAP" "$LINENO" 5
15359     else
15360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP version" >&5
15361 $as_echo_n "checking OpenLDAP version... " >&6; }
15362 if ${cmu_cv_openldap_compat+:} false; then :
15363   $as_echo_n "(cached) " >&6
15364 else
15365
15366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h.  */
15368
15369 #include <ldap.h>
15370
15371 /* Require 2.1.27+ and 2.2.6+ */
15372 #if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
15373 char *__openldap_compat = "2.1.27 or better okay";
15374 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
15375 char *__openldap_compat = "2.2.6 or better okay";
15376 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
15377 char *__openldap_compat = "2.3 or better okay"
15378 #endif
15379
15380 _ACEOF
15381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15382   $EGREP "__openldap_compat" >/dev/null 2>&1; then :
15383   cmu_cv_openldap_compat=yes
15384 else
15385   cmu_cv_openldap_compat=no
15386 fi
15387 rm -f conftest*
15388
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_compat" >&5
15391 $as_echo "$cmu_cv_openldap_compat" >&6; }
15392
15393
15394         if test "$cmu_cv_openldap_compat" = no; then
15395             as_fn_error $? "Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" "$LINENO" 5
15396         else
15397             LIB_LDAP=$cmu_link_openldap
15398
15399
15400             SASL_MECHS="$SASL_MECHS libldapdb.la"
15401             if test "$enable_static" = yes; then
15402                 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
15403                 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
15404
15405 $as_echo "#define STATIC_LDAPDB /**/" >>confdefs.h
15406
15407             fi
15408         fi
15409     fi
15410
15411     if test "$cmu_cv_openldap_compat" != yes; then
15412         CPPFLAGS=$save_CPPFLAGS
15413         LDFLAGS=$save_LDFLAGS
15414     fi
15415 else
15416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15417 $as_echo "disabled" >&6; }
15418 fi
15419
15420
15421
15422
15423
15424
15425
15426 # Check whether --with-plugindir was given.
15427 if test "${with_plugindir+set}" = set; then :
15428   withval=$with_plugindir; plugindir=$withval
15429 else
15430   plugindir=/usr/lib/sasl2
15431 fi
15432
15433
15434 cat >>confdefs.h <<_ACEOF
15435 #define PLUGINDIR "$plugindir"
15436 _ACEOF
15437
15438
15439
15440
15441 # Check whether --with-configdir was given.
15442 if test "${with_configdir+set}" = set; then :
15443   withval=$with_configdir; configdir=$withval
15444 else
15445   configdir=$plugindir:/etc/sasl2
15446 fi
15447
15448
15449 cat >>confdefs.h <<_ACEOF
15450 #define CONFIGDIR "$configdir"
15451 _ACEOF
15452
15453
15454
15455
15456 # Check whether --with-rc4 was given.
15457 if test "${with_rc4+set}" = set; then :
15458   withval=$with_rc4; with_rc4=$withval
15459 else
15460   with_rc4=yes
15461 fi
15462
15463
15464 if test "$with_rc4" != no; then
15465
15466 $as_echo "#define WITH_RC4 /**/" >>confdefs.h
15467
15468 fi
15469
15470 building_for_macosx=no
15471 case "$host_os" in
15472         darwin*)
15473 # Check whether --enable-macos-framework was given.
15474 if test "${enable_macos_framework+set}" = set; then :
15475   enableval=$enable_macos_framework; building_for_macosx=no
15476 else
15477   building_for_macosx=yes
15478 fi
15479
15480         ;;
15481 esac
15482  if test "$building_for_macosx" = yes; then
15483   MACOSX_TRUE=
15484   MACOSX_FALSE='#'
15485 else
15486   MACOSX_TRUE='#'
15487   MACOSX_FALSE=
15488 fi
15489
15490
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc library" >&5
15492 $as_echo_n "checking for dmalloc library... " >&6; }
15493
15494 # Check whether --with-dmalloc was given.
15495 if test "${with_dmalloc+set}" = set; then :
15496   withval=$with_dmalloc; with_dmalloc=$withval
15497 else
15498   with_dmalloc=no
15499 fi
15500
15501
15502 DMALLOC_LIBS=""
15503
15504 if test "$with_dmalloc" != "no"; then
15505    if test "$with_dmalloc" = "yes"; then
15506         with_dmalloc="/usr/local"
15507    fi
15508
15509    if test -r "$with_dmalloc/libdmalloc.a"; then
15510         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
15511
15512 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15513
15514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15515 $as_echo "yes" >&6; }
15516    elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
15517         DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
15518
15519 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15520
15521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15522 $as_echo "yes" >&6; }
15523    else
15524         as_fn_error please check your installation. "cannot find dmalloc library" "$LINENO" 5
15525    fi
15526 else
15527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528 $as_echo "no" >&6; }
15529 fi
15530
15531
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sfio library" >&5
15534 $as_echo_n "checking for sfio library... " >&6; }
15535
15536 # Check whether --with-sfio was given.
15537 if test "${with_sfio+set}" = set; then :
15538   withval=$with_sfio; with_sfio=$withval
15539 else
15540   with_sfio=no
15541 fi
15542
15543
15544 if test "$with_sfio" != "no"; then
15545    if test "$with_sfio" = "yes"; then
15546         with_sfio="/usr/local"
15547    fi
15548
15549
15550
15551
15552
15553    if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15554                                               SFIO_INC_DIR=$with_sfio
15555    elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
15556                                               SFIO_INC_DIR=$with_sfio/include
15557    elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15558                                               SFIO_INC_DIR=$with_sfio/include/sfio
15559    fi
15560
15561    if test -z "$SFIO_DIR"; then
15562         as_fn_error Please check your SFIO installation. "Cannot find sfio.h" "$LINENO" 5
15563    fi
15564
15565
15566                 str="$SFIO_DIR/lib/libsfio.*"
15567                 for i in `echo $str`; do
15568                         if test -r $i; then
15569                                 SFIO_LIBDIR=$SFIO_DIR/lib
15570                                 break 2
15571                         fi
15572                 done
15573
15574
15575                 str="$SFIO_DIR/lib/sfio/libsfio.*"
15576                 for i in `echo $str`; do
15577                         if test -r $i; then
15578                                 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
15579                                 break 2
15580                         fi
15581                 done
15582
15583
15584    if test -z "$SFIO_LIBDIR"; then
15585         as_fn_error Please check your SFIO installation. "Cannot find sfio library" "$LINENO" 5
15586    fi
15587
15588    SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
15589    SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
15590    SMTPTEST_PROGRAM="smtptest"
15591    SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
15592    SASL_UTIL_HEADERS_EXTRA=sfsasl.h
15593
15594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15595 $as_echo "yes" >&6; }
15596 else
15597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 $as_echo "no" >&6; }
15599    SFIO_INC_FLAGS=""
15600    SFIO_LIB_FLAGS=""
15601    SMTPTEST_PROGRAM=""
15602    SASL_UTIL_LIBS_EXTRA=""
15603    SASL_UTIL_HEADERS_EXTRA=""
15604 fi
15605
15606
15607
15608
15609
15610
15611
15612 sasl_cv_getsubopt=no
15613 ac_fn_c_check_func "$LINENO" "getsubopt" "ac_cv_func_getsubopt"
15614 if test "x$ac_cv_func_getsubopt" = xyes; then :
15615
15616 $as_echo "#define HAVE_GETSUBOPT /**/" >>confdefs.h
15617
15618 else
15619   sasl_cv_getsubopt=yes
15620 fi
15621
15622 if test $sasl_cv_getsubopt = yes; then
15623         case " $LIBOBJS " in
15624   *" getsubopt.$ac_objext "* ) ;;
15625   *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
15626  ;;
15627 esac
15628
15629         GETSUBOPT="getsubopt.lo"
15630 fi
15631
15632
15633 sasl_cv_snprintf=no
15634 SNPRINTFOBJS=""
15635 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15636 if test "x$ac_cv_func_snprintf" = xyes; then :
15637
15638 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
15639
15640 else
15641   sasl_cv_snprintf=yes
15642 fi
15643
15644 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
15645 if test "x$ac_cv_func_vsnprintf" = xyes; then :
15646
15647 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
15648
15649 else
15650   sasl_cv_snprintf=yes
15651 fi
15652
15653 if test $sasl_cv_snprintf = yes; then
15654         case " $LIBOBJS " in
15655   *" snprintf.$ac_objext "* ) ;;
15656   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15657  ;;
15658 esac
15659
15660         SNPRINTFOBJS="snprintf.o"
15661         LTSNPRINTFOBJS="snprintf.lo"
15662 fi
15663
15664
15665
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
15667 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
15668 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
15669   $as_echo_n "(cached) " >&6
15670 else
15671   ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lresolv  $LIBS"
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h.  */
15675
15676 /* Override any GCC internal prototype to avoid an error.
15677    Use char because int might match the return type of a GCC
15678    builtin and then its argument prototype would still apply.  */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 char inet_aton ();
15683 int
15684 main ()
15685 {
15686 return inet_aton ();
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 if ac_fn_c_try_link "$LINENO"; then :
15692   ac_cv_lib_resolv_inet_aton=yes
15693 else
15694   ac_cv_lib_resolv_inet_aton=no
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697     conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15699 fi
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
15701 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
15702 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
15703   cat >>confdefs.h <<_ACEOF
15704 #define HAVE_LIBRESOLV 1
15705 _ACEOF
15706
15707   LIBS="-lresolv $LIBS"
15708
15709 fi
15710
15711
15712 GETADDRINFOOBJS=""
15713 sasl_cv_getaddrinfo=yes
15714
15715 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15716 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15717     ac_cv_lib_socket_getaddrinfo=no
15718   ac_cv_lib_inet6_getaddrinfo=no
15719
15720 else
15721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
15722 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
15723 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
15724   $as_echo_n "(cached) " >&6
15725 else
15726   ac_check_lib_save_LIBS=$LIBS
15727 LIBS="-lsocket  $LIBS"
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h.  */
15730
15731 /* Override any GCC internal prototype to avoid an error.
15732    Use char because int might match the return type of a GCC
15733    builtin and then its argument prototype would still apply.  */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 char getaddrinfo ();
15738 int
15739 main ()
15740 {
15741 return getaddrinfo ();
15742   ;
15743   return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_link "$LINENO"; then :
15747   ac_cv_lib_socket_getaddrinfo=yes
15748 else
15749   ac_cv_lib_socket_getaddrinfo=no
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext \
15752     conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15754 fi
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
15756 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
15757 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
15758       LIBS="$LIBS -lsocket"
15759     ac_cv_lib_inet6_getaddrinfo=no
15760
15761 else
15762       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15763 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15764     if ${ipv6_cv_dir+:} false; then :
15765   $as_echo_n "(cached) " >&6
15766 else
15767         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15768         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15769           break
15770         fi
15771       done
15772 fi
15773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15774 $as_echo "$ipv6_cv_dir" >&6; }
15775     if test $ipv6_cv_dir = no; then
15776       ac_cv_lib_inet6_getaddrinfo=no
15777     else
15778       if test x$ipv6_libinet6 = x; then
15779         ipv6_libinet6=no
15780         SAVELDFLAGS="$LDFLAGS"
15781         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15782       fi
15783       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
15784 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
15785 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
15786   $as_echo_n "(cached) " >&6
15787 else
15788   ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-linet6  $LIBS"
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h.  */
15792
15793 /* Override any GCC internal prototype to avoid an error.
15794    Use char because int might match the return type of a GCC
15795    builtin and then its argument prototype would still apply.  */
15796 #ifdef __cplusplus
15797 extern "C"
15798 #endif
15799 char getaddrinfo ();
15800 int
15801 main ()
15802 {
15803 return getaddrinfo ();
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"; then :
15809   ac_cv_lib_inet6_getaddrinfo=yes
15810 else
15811   ac_cv_lib_inet6_getaddrinfo=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext \
15814     conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
15818 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
15819 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
15820         if test $ipv6_libinet6 = no; then
15821           ipv6_libinet6=yes
15822           LIBS="$LIBS -linet6"
15823         fi
15824 fi
15825       if test $ipv6_libinet6 = no; then
15826         LDFLAGS="$SAVELDFLAGS"
15827       fi
15828     fi
15829 fi
15830
15831 fi
15832 ipv6_cv_getaddrinfo=no
15833 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
15834      -o $ac_cv_lib_inet6_getaddrinfo = yes
15835 then
15836   ipv6_cv_getaddrinfo=yes
15837 fi
15838 if test $ipv6_cv_getaddrinfo = no; then
15839   if test getaddrinfo = getaddrinfo; then
15840     for ipv6_cv_pfx in o n; do
15841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 #include <netdb.h>
15844
15845 _ACEOF
15846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15847   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
15848   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
15849 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
15850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15851
15852 fi
15853
15854 fi
15855 rm -f conftest*
15856
15857       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
15858
15859 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
15860
15861         ipv6_cv_getaddrinfo=yes
15862         break
15863       fi
15864     done
15865   fi
15866 fi
15867 if test $ipv6_cv_getaddrinfo = yes; then
15868
15869 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
15870 if test "x$ac_cv_func_gai_strerror" = xyes; then :
15871     ac_cv_lib_socket_gai_strerror=no
15872   ac_cv_lib_inet6_gai_strerror=no
15873
15874 else
15875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5
15876 $as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
15877 if ${ac_cv_lib_socket_gai_strerror+:} false; then :
15878   $as_echo_n "(cached) " >&6
15879 else
15880   ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lsocket  $LIBS"
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h.  */
15884
15885 /* Override any GCC internal prototype to avoid an error.
15886    Use char because int might match the return type of a GCC
15887    builtin and then its argument prototype would still apply.  */
15888 #ifdef __cplusplus
15889 extern "C"
15890 #endif
15891 char gai_strerror ();
15892 int
15893 main ()
15894 {
15895 return gai_strerror ();
15896   ;
15897   return 0;
15898 }
15899 _ACEOF
15900 if ac_fn_c_try_link "$LINENO"; then :
15901   ac_cv_lib_socket_gai_strerror=yes
15902 else
15903   ac_cv_lib_socket_gai_strerror=no
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906     conftest$ac_exeext conftest.$ac_ext
15907 LIBS=$ac_check_lib_save_LIBS
15908 fi
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5
15910 $as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
15911 if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then :
15912       LIBS="$LIBS -lsocket"
15913     ac_cv_lib_inet6_gai_strerror=no
15914
15915 else
15916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15917 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15918     if ${ipv6_cv_dir+:} false; then :
15919   $as_echo_n "(cached) " >&6
15920 else
15921         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15922         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15923           break
15924         fi
15925       done
15926 fi
15927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15928 $as_echo "$ipv6_cv_dir" >&6; }
15929     if test $ipv6_cv_dir = no; then
15930       ac_cv_lib_inet6_gai_strerror=no
15931     else
15932       if test x$ipv6_libinet6 = x; then
15933         ipv6_libinet6=no
15934         SAVELDFLAGS="$LDFLAGS"
15935         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15936       fi
15937       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5
15938 $as_echo_n "checking for gai_strerror in -linet6... " >&6; }
15939 if ${ac_cv_lib_inet6_gai_strerror+:} false; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942   ac_check_lib_save_LIBS=$LIBS
15943 LIBS="-linet6  $LIBS"
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h.  */
15946
15947 /* Override any GCC internal prototype to avoid an error.
15948    Use char because int might match the return type of a GCC
15949    builtin and then its argument prototype would still apply.  */
15950 #ifdef __cplusplus
15951 extern "C"
15952 #endif
15953 char gai_strerror ();
15954 int
15955 main ()
15956 {
15957 return gai_strerror ();
15958   ;
15959   return 0;
15960 }
15961 _ACEOF
15962 if ac_fn_c_try_link "$LINENO"; then :
15963   ac_cv_lib_inet6_gai_strerror=yes
15964 else
15965   ac_cv_lib_inet6_gai_strerror=no
15966 fi
15967 rm -f core conftest.err conftest.$ac_objext \
15968     conftest$ac_exeext conftest.$ac_ext
15969 LIBS=$ac_check_lib_save_LIBS
15970 fi
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5
15972 $as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
15973 if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then :
15974         if test $ipv6_libinet6 = no; then
15975           ipv6_libinet6=yes
15976           LIBS="$LIBS -linet6"
15977         fi
15978 fi
15979       if test $ipv6_libinet6 = no; then
15980         LDFLAGS="$SAVELDFLAGS"
15981       fi
15982     fi
15983 fi
15984
15985 fi
15986 ipv6_cv_gai_strerror=no
15987 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
15988      -o $ac_cv_lib_inet6_gai_strerror = yes
15989 then
15990   ipv6_cv_gai_strerror=yes
15991 fi
15992 if test $ipv6_cv_gai_strerror = no; then
15993   if test gai_strerror = getaddrinfo; then
15994     for ipv6_cv_pfx in o n; do
15995       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h.  */
15997 #include <netdb.h>
15998
15999 _ACEOF
16000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16001   $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then :
16002   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
16003 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var"
16004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16005
16006 fi
16007
16008 fi
16009 rm -f conftest*
16010
16011       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
16012
16013 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16014
16015         ipv6_cv_gai_strerror=yes
16016         break
16017       fi
16018     done
16019   fi
16020 fi
16021 if test $ipv6_cv_gai_strerror = yes; then
16022
16023 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16024
16025                 sasl_cv_getaddrinfo=no
16026 else
16027   :
16028 fi
16029 else
16030   :
16031 fi
16032 if test $sasl_cv_getaddrinfo = yes; then
16033     case " $LIBOBJS " in
16034   *" getaddrinfo.$ac_objext "* ) ;;
16035   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16036  ;;
16037 esac
16038
16039     GETADDRINFOOBJS="getaddrinfo.o"
16040     LTGETADDRINFOOBJS="getaddrinfo.lo"
16041 fi
16042
16043
16044
16045 GETNAMEINFOOBJS=""
16046 sasl_cv_getnameinfo=no
16047
16048 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
16049 if test "x$ac_cv_func_getnameinfo" = xyes; then :
16050     ac_cv_lib_socket_getnameinfo=no
16051   ac_cv_lib_inet6_getnameinfo=no
16052
16053 else
16054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
16055 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
16056 if ${ac_cv_lib_socket_getnameinfo+:} false; then :
16057   $as_echo_n "(cached) " >&6
16058 else
16059   ac_check_lib_save_LIBS=$LIBS
16060 LIBS="-lsocket  $LIBS"
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h.  */
16063
16064 /* Override any GCC internal prototype to avoid an error.
16065    Use char because int might match the return type of a GCC
16066    builtin and then its argument prototype would still apply.  */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 char getnameinfo ();
16071 int
16072 main ()
16073 {
16074 return getnameinfo ();
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_link "$LINENO"; then :
16080   ac_cv_lib_socket_getnameinfo=yes
16081 else
16082   ac_cv_lib_socket_getnameinfo=no
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext \
16085     conftest$ac_exeext conftest.$ac_ext
16086 LIBS=$ac_check_lib_save_LIBS
16087 fi
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
16089 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
16090 if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
16091       LIBS="$LIBS -lsocket"
16092     ac_cv_lib_inet6_getnameinfo=no
16093
16094 else
16095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
16096 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
16097     if ${ipv6_cv_dir+:} false; then :
16098   $as_echo_n "(cached) " >&6
16099 else
16100         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
16101         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
16102           break
16103         fi
16104       done
16105 fi
16106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
16107 $as_echo "$ipv6_cv_dir" >&6; }
16108     if test $ipv6_cv_dir = no; then
16109       ac_cv_lib_inet6_getnameinfo=no
16110     else
16111       if test x$ipv6_libinet6 = x; then
16112         ipv6_libinet6=no
16113         SAVELDFLAGS="$LDFLAGS"
16114         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
16115       fi
16116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
16117 $as_echo_n "checking for getnameinfo in -linet6... " >&6; }
16118 if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
16119   $as_echo_n "(cached) " >&6
16120 else
16121   ac_check_lib_save_LIBS=$LIBS
16122 LIBS="-linet6  $LIBS"
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125
16126 /* Override any GCC internal prototype to avoid an error.
16127    Use char because int might match the return type of a GCC
16128    builtin and then its argument prototype would still apply.  */
16129 #ifdef __cplusplus
16130 extern "C"
16131 #endif
16132 char getnameinfo ();
16133 int
16134 main ()
16135 {
16136 return getnameinfo ();
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 if ac_fn_c_try_link "$LINENO"; then :
16142   ac_cv_lib_inet6_getnameinfo=yes
16143 else
16144   ac_cv_lib_inet6_getnameinfo=no
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext \
16147     conftest$ac_exeext conftest.$ac_ext
16148 LIBS=$ac_check_lib_save_LIBS
16149 fi
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
16151 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
16152 if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
16153         if test $ipv6_libinet6 = no; then
16154           ipv6_libinet6=yes
16155           LIBS="$LIBS -linet6"
16156         fi
16157 fi
16158       if test $ipv6_libinet6 = no; then
16159         LDFLAGS="$SAVELDFLAGS"
16160       fi
16161     fi
16162 fi
16163
16164 fi
16165 ipv6_cv_getnameinfo=no
16166 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
16167      -o $ac_cv_lib_inet6_getnameinfo = yes
16168 then
16169   ipv6_cv_getnameinfo=yes
16170 fi
16171 if test $ipv6_cv_getnameinfo = no; then
16172   if test getnameinfo = getaddrinfo; then
16173     for ipv6_cv_pfx in o n; do
16174       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h.  */
16176 #include <netdb.h>
16177
16178 _ACEOF
16179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16180   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
16181   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
16182 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
16183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16184
16185 fi
16186
16187 fi
16188 rm -f conftest*
16189
16190       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
16191
16192 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16193
16194         ipv6_cv_getnameinfo=yes
16195         break
16196       fi
16197     done
16198   fi
16199 fi
16200 if test $ipv6_cv_getnameinfo = yes; then
16201
16202 $as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
16203
16204 else
16205   sasl_cv_getnameinfo=yes
16206 fi
16207 if test $sasl_cv_getnameinfo = yes; then
16208         case " $LIBOBJS " in
16209   *" getnameinfo.$ac_objext "* ) ;;
16210   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
16211  ;;
16212 esac
16213
16214         GETNAMEINFOOBJS="getnameinfo.o"
16215         LTGETNAMEINFOOBJS="getnameinfo.lo"
16216 fi
16217
16218
16219
16220 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
16221
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16224 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16225 if ${ac_cv_c_const+:} false; then :
16226   $as_echo_n "(cached) " >&6
16227 else
16228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h.  */
16230
16231 int
16232 main ()
16233 {
16234 /* FIXME: Include the comments suggested by Paul. */
16235 #ifndef __cplusplus
16236   /* Ultrix mips cc rejects this.  */
16237   typedef int charset[2];
16238   const charset cs;
16239   /* SunOS 4.1.1 cc rejects this.  */
16240   char const *const *pcpcc;
16241   char **ppc;
16242   /* NEC SVR4.0.2 mips cc rejects this.  */
16243   struct point {int x, y;};
16244   static struct point const zero = {0,0};
16245   /* AIX XL C 1.02.0.0 rejects this.
16246      It does not let you subtract one const X* pointer from another in
16247      an arm of an if-expression whose if-part is not a constant
16248      expression */
16249   const char *g = "string";
16250   pcpcc = &g + (g ? g-g : 0);
16251   /* HPUX 7.0 cc rejects these. */
16252   ++pcpcc;
16253   ppc = (char**) pcpcc;
16254   pcpcc = (char const *const *) ppc;
16255   { /* SCO 3.2v4 cc rejects this.  */
16256     char *t;
16257     char const *s = 0 ? (char *) 0 : (char const *) 0;
16258
16259     *t++ = 0;
16260     if (s) return 0;
16261   }
16262   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16263     int x[] = {25, 17};
16264     const int *foo = &x[0];
16265     ++foo;
16266   }
16267   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16268     typedef const int *iptr;
16269     iptr p = 0;
16270     ++p;
16271   }
16272   { /* AIX XL C 1.02.0.0 rejects this saying
16273        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16274     struct s { int j; const int *ap[3]; };
16275     struct s *b; b->j = 5;
16276   }
16277   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16278     const int foo = 10;
16279     if (!foo) return 0;
16280   }
16281   return !cs[0] && !zero.x;
16282 #endif
16283
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289   ac_cv_c_const=yes
16290 else
16291   ac_cv_c_const=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 fi
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16296 $as_echo "$ac_cv_c_const" >&6; }
16297 if test $ac_cv_c_const = no; then
16298
16299 $as_echo "#define const /**/" >>confdefs.h
16300
16301 fi
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16304 $as_echo_n "checking for inline... " >&6; }
16305 if ${ac_cv_c_inline+:} false; then :
16306   $as_echo_n "(cached) " >&6
16307 else
16308   ac_cv_c_inline=no
16309 for ac_kw in inline __inline__ __inline; do
16310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h.  */
16312 #ifndef __cplusplus
16313 typedef int foo_t;
16314 static $ac_kw foo_t static_foo () {return 0; }
16315 $ac_kw foo_t foo () {return 0; }
16316 #endif
16317
16318 _ACEOF
16319 if ac_fn_c_try_compile "$LINENO"; then :
16320   ac_cv_c_inline=$ac_kw
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323   test "$ac_cv_c_inline" != no && break
16324 done
16325
16326 fi
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16328 $as_echo "$ac_cv_c_inline" >&6; }
16329
16330 case $ac_cv_c_inline in
16331   inline | yes) ;;
16332   *)
16333     case $ac_cv_c_inline in
16334       no) ac_val=;;
16335       *) ac_val=$ac_cv_c_inline;;
16336     esac
16337     cat >>confdefs.h <<_ACEOF
16338 #ifndef __cplusplus
16339 #define inline $ac_val
16340 #endif
16341 _ACEOF
16342     ;;
16343 esac
16344
16345 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16346 if test "x$ac_cv_type_mode_t" = xyes; then :
16347
16348 else
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define mode_t int
16352 _ACEOF
16353
16354 fi
16355
16356 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16357 if test "x$ac_cv_type_pid_t" = xyes; then :
16358
16359 else
16360
16361 cat >>confdefs.h <<_ACEOF
16362 #define pid_t int
16363 _ACEOF
16364
16365 fi
16366
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16368 $as_echo_n "checking return type of signal handlers... " >&6; }
16369 if ${ac_cv_type_signal+:} false; then :
16370   $as_echo_n "(cached) " >&6
16371 else
16372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h.  */
16374 #include <sys/types.h>
16375 #include <signal.h>
16376
16377 int
16378 main ()
16379 {
16380 return *(signal (0, 0)) (0) == 1;
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 if ac_fn_c_try_compile "$LINENO"; then :
16386   ac_cv_type_signal=int
16387 else
16388   ac_cv_type_signal=void
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 fi
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16393 $as_echo "$ac_cv_type_signal" >&6; }
16394
16395 cat >>confdefs.h <<_ACEOF
16396 #define RETSIGTYPE $ac_cv_type_signal
16397 _ACEOF
16398
16399
16400
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16403 if ${ac_cv_header_time+:} false; then :
16404   $as_echo_n "(cached) " >&6
16405 else
16406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h.  */
16408 #include <sys/types.h>
16409 #include <sys/time.h>
16410 #include <time.h>
16411
16412 int
16413 main ()
16414 {
16415 if ((struct tm *) 0)
16416 return 0;
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 if ac_fn_c_try_compile "$LINENO"; then :
16422   ac_cv_header_time=yes
16423 else
16424   ac_cv_header_time=no
16425 fi
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16429 $as_echo "$ac_cv_header_time" >&6; }
16430 if test $ac_cv_header_time = yes; then
16431
16432 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16433
16434 fi
16435
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16437 $as_echo_n "checking for ANSI C header files... " >&6; }
16438 if ${ac_cv_header_stdc+:} false; then :
16439   $as_echo_n "(cached) " >&6
16440 else
16441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h.  */
16443 #include <stdlib.h>
16444 #include <stdarg.h>
16445 #include <string.h>
16446 #include <float.h>
16447
16448 int
16449 main ()
16450 {
16451
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_compile "$LINENO"; then :
16457   ac_cv_header_stdc=yes
16458 else
16459   ac_cv_header_stdc=no
16460 fi
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462
16463 if test $ac_cv_header_stdc = yes; then
16464   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h.  */
16467 #include <string.h>
16468
16469 _ACEOF
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471   $EGREP "memchr" >/dev/null 2>&1; then :
16472
16473 else
16474   ac_cv_header_stdc=no
16475 fi
16476 rm -f conftest*
16477
16478 fi
16479
16480 if test $ac_cv_header_stdc = yes; then
16481   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h.  */
16484 #include <stdlib.h>
16485
16486 _ACEOF
16487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16488   $EGREP "free" >/dev/null 2>&1; then :
16489
16490 else
16491   ac_cv_header_stdc=no
16492 fi
16493 rm -f conftest*
16494
16495 fi
16496
16497 if test $ac_cv_header_stdc = yes; then
16498   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16499   if test "$cross_compiling" = yes; then :
16500   :
16501 else
16502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h.  */
16504 #include <ctype.h>
16505 #include <stdlib.h>
16506 #if ((' ' & 0x0FF) == 0x020)
16507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16509 #else
16510 # define ISLOWER(c) \
16511                    (('a' <= (c) && (c) <= 'i') \
16512                      || ('j' <= (c) && (c) <= 'r') \
16513                      || ('s' <= (c) && (c) <= 'z'))
16514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16515 #endif
16516
16517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16518 int
16519 main ()
16520 {
16521   int i;
16522   for (i = 0; i < 256; i++)
16523     if (XOR (islower (i), ISLOWER (i))
16524         || toupper (i) != TOUPPER (i))
16525       return 2;
16526   return 0;
16527 }
16528 _ACEOF
16529 if ac_fn_c_try_run "$LINENO"; then :
16530
16531 else
16532   ac_cv_header_stdc=no
16533 fi
16534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16535   conftest.$ac_objext conftest.beam conftest.$ac_ext
16536 fi
16537
16538 fi
16539 fi
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16541 $as_echo "$ac_cv_header_stdc" >&6; }
16542 if test $ac_cv_header_stdc = yes; then
16543
16544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16545
16546 fi
16547
16548 ac_header_dirent=no
16549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16550   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16552 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16553 if eval \${$as_ac_Header+:} false; then :
16554   $as_echo_n "(cached) " >&6
16555 else
16556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h.  */
16558 #include <sys/types.h>
16559 #include <$ac_hdr>
16560
16561 int
16562 main ()
16563 {
16564 if ((DIR *) 0)
16565 return 0;
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 if ac_fn_c_try_compile "$LINENO"; then :
16571   eval "$as_ac_Header=yes"
16572 else
16573   eval "$as_ac_Header=no"
16574 fi
16575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16576 fi
16577 eval ac_res=\$$as_ac_Header
16578                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16579 $as_echo "$ac_res" >&6; }
16580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16581   cat >>confdefs.h <<_ACEOF
16582 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16583 _ACEOF
16584
16585 ac_header_dirent=$ac_hdr; break
16586 fi
16587
16588 done
16589 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16590 if test $ac_header_dirent = dirent.h; then
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16592 $as_echo_n "checking for library containing opendir... " >&6; }
16593 if ${ac_cv_search_opendir+:} false; then :
16594   $as_echo_n "(cached) " >&6
16595 else
16596   ac_func_search_save_LIBS=$LIBS
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h.  */
16599
16600 /* Override any GCC internal prototype to avoid an error.
16601    Use char because int might match the return type of a GCC
16602    builtin and then its argument prototype would still apply.  */
16603 #ifdef __cplusplus
16604 extern "C"
16605 #endif
16606 char opendir ();
16607 int
16608 main ()
16609 {
16610 return opendir ();
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 for ac_lib in '' dir; do
16616   if test -z "$ac_lib"; then
16617     ac_res="none required"
16618   else
16619     ac_res=-l$ac_lib
16620     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16621   fi
16622   if ac_fn_c_try_link "$LINENO"; then :
16623   ac_cv_search_opendir=$ac_res
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext \
16626     conftest$ac_exeext
16627   if ${ac_cv_search_opendir+:} false; then :
16628   break
16629 fi
16630 done
16631 if ${ac_cv_search_opendir+:} false; then :
16632
16633 else
16634   ac_cv_search_opendir=no
16635 fi
16636 rm conftest.$ac_ext
16637 LIBS=$ac_func_search_save_LIBS
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16640 $as_echo "$ac_cv_search_opendir" >&6; }
16641 ac_res=$ac_cv_search_opendir
16642 if test "$ac_res" != no; then :
16643   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16644
16645 fi
16646
16647 else
16648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16649 $as_echo_n "checking for library containing opendir... " >&6; }
16650 if ${ac_cv_search_opendir+:} false; then :
16651   $as_echo_n "(cached) " >&6
16652 else
16653   ac_func_search_save_LIBS=$LIBS
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h.  */
16656
16657 /* Override any GCC internal prototype to avoid an error.
16658    Use char because int might match the return type of a GCC
16659    builtin and then its argument prototype would still apply.  */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 char opendir ();
16664 int
16665 main ()
16666 {
16667 return opendir ();
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 for ac_lib in '' x; do
16673   if test -z "$ac_lib"; then
16674     ac_res="none required"
16675   else
16676     ac_res=-l$ac_lib
16677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16678   fi
16679   if ac_fn_c_try_link "$LINENO"; then :
16680   ac_cv_search_opendir=$ac_res
16681 fi
16682 rm -f core conftest.err conftest.$ac_objext \
16683     conftest$ac_exeext
16684   if ${ac_cv_search_opendir+:} false; then :
16685   break
16686 fi
16687 done
16688 if ${ac_cv_search_opendir+:} false; then :
16689
16690 else
16691   ac_cv_search_opendir=no
16692 fi
16693 rm conftest.$ac_ext
16694 LIBS=$ac_func_search_save_LIBS
16695 fi
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16697 $as_echo "$ac_cv_search_opendir" >&6; }
16698 ac_res=$ac_cv_search_opendir
16699 if test "$ac_res" != no; then :
16700   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16701
16702 fi
16703
16704 fi
16705
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16707 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16708 if ${ac_cv_header_sys_wait_h+:} false; then :
16709   $as_echo_n "(cached) " >&6
16710 else
16711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h.  */
16713 #include <sys/types.h>
16714 #include <sys/wait.h>
16715 #ifndef WEXITSTATUS
16716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16717 #endif
16718 #ifndef WIFEXITED
16719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16720 #endif
16721
16722 int
16723 main ()
16724 {
16725   int s;
16726   wait (&s);
16727   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733   ac_cv_header_sys_wait_h=yes
16734 else
16735   ac_cv_header_sys_wait_h=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16740 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16741 if test $ac_cv_header_sys_wait_h = yes; then
16742
16743 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16744
16745 fi
16746
16747 for ac_header in des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h
16748 do :
16749   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16750 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16752   cat >>confdefs.h <<_ACEOF
16753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16754 _ACEOF
16755
16756 fi
16757
16758 done
16759
16760
16761
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
16763 $as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
16764 if ${ipv6_cv_ss_family+:} false; then :
16765   $as_echo_n "(cached) " >&6
16766 else
16767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h.  */
16769 #include <sys/types.h>
16770 #include <sys/socket.h>
16771 int
16772 main ()
16773 {
16774 struct sockaddr_storage ss; int i = ss.ss_family;
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_compile "$LINENO"; then :
16780   ipv6_cv_ss_family=yes
16781 else
16782   ipv6_cv_ss_family=no
16783 fi
16784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 fi
16786 if test $ipv6_cv_ss_family = yes; then
16787
16788 $as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
16789
16790 else
16791   :
16792 fi
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
16794 $as_echo "$ipv6_cv_ss_family" >&6; }
16795
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
16797 $as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
16798 if ${ipv6_cv_sa_len+:} false; then :
16799   $as_echo_n "(cached) " >&6
16800 else
16801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h.  */
16803 #include <sys/types.h>
16804 #include <sys/socket.h>
16805 int
16806 main ()
16807 {
16808 struct sockaddr sa; int i = sa.sa_len;
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 if ac_fn_c_try_compile "$LINENO"; then :
16814   ipv6_cv_sa_len=yes
16815 else
16816   ipv6_cv_sa_len=no
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 fi
16820 if test $ipv6_cv_sa_len = yes; then
16821
16822 $as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
16823
16824 else
16825   :
16826 fi
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
16828 $as_echo "$ipv6_cv_sa_len" >&6; }
16829
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
16831 $as_echo_n "checking for socklen_t... " >&6; }
16832 if ${ipv6_cv_socklen_t+:} false; then :
16833   $as_echo_n "(cached) " >&6
16834 else
16835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h.  */
16837 #include <sys/types.h>
16838 #include <sys/socket.h>
16839 int
16840 main ()
16841 {
16842 socklen_t len = 0;
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 if ac_fn_c_try_link "$LINENO"; then :
16848   ipv6_cv_socklen_t=yes
16849 else
16850   ipv6_cv_socklen_t=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext \
16853     conftest$ac_exeext conftest.$ac_ext
16854 fi
16855 if test $ipv6_cv_socklen_t = yes; then
16856
16857 $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
16858
16859 else
16860   :
16861 fi
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5
16863 $as_echo "$ipv6_cv_socklen_t" >&6; }
16864
16865 #AC_FUNC_MEMCMP
16866 #AC_FUNC_VPRINTF
16867 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
16868 do :
16869   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16872   cat >>confdefs.h <<_ACEOF
16873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16874 _ACEOF
16875
16876 fi
16877 done
16878
16879
16880 if test $enable_cmulocal = yes; then
16881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling CMU local kludges" >&5
16882 $as_echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
16883
16884 $as_echo "#define KRB4_IGNORE_IP_ADDRESS /**/" >>confdefs.h
16885
16886
16887 cat >>confdefs.h <<_ACEOF
16888 #define PREFER_MECH "KERBEROS_V4"
16889 _ACEOF
16890
16891 fi
16892
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h.  */
16895 #include <sys/socket.h>
16896
16897 _ACEOF
16898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16899   $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
16900
16901
16902 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
16903
16904 fi
16905 rm -f conftest*
16906
16907
16908
16909
16910
16911
16912 subdirs="$subdirs saslauthd"
16913
16914
16915
16916
16917
16918
16919 ac_config_headers="$ac_config_headers config.h"
16920
16921
16922 ac_config_files="$ac_config_files Makefile include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile"
16923
16924 cat >confcache <<\_ACEOF
16925 # This file is a shell script that caches the results of configure
16926 # tests run on this system so they can be shared between configure
16927 # scripts and configure runs, see configure's option --config-cache.
16928 # It is not useful on other systems.  If it contains results you don't
16929 # want to keep, you may remove or edit it.
16930 #
16931 # config.status only pays attention to the cache file if you give it
16932 # the --recheck option to rerun configure.
16933 #
16934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16936 # following values.
16937
16938 _ACEOF
16939
16940 # The following way of writing the cache mishandles newlines in values,
16941 # but we know of no workaround that is simple, portable, and efficient.
16942 # So, we kill variables containing newlines.
16943 # Ultrix sh set writes to stderr and can't be redirected directly,
16944 # and sets the high bit in the cache file unless we assign to the vars.
16945 (
16946   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16947     eval ac_val=\$$ac_var
16948     case $ac_val in #(
16949     *${as_nl}*)
16950       case $ac_var in #(
16951       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16953       esac
16954       case $ac_var in #(
16955       _ | IFS | as_nl) ;; #(
16956       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16957       *) { eval $ac_var=; unset $ac_var;} ;;
16958       esac ;;
16959     esac
16960   done
16961
16962   (set) 2>&1 |
16963     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16964     *${as_nl}ac_space=\ *)
16965       # `set' does not quote correctly, so add quotes: double-quote
16966       # substitution turns \\\\ into \\, and sed turns \\ into \.
16967       sed -n \
16968         "s/'/'\\\\''/g;
16969           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16970       ;; #(
16971     *)
16972       # `set' quotes correctly as required by POSIX, so do not add quotes.
16973       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16974       ;;
16975     esac |
16976     sort
16977 ) |
16978   sed '
16979      /^ac_cv_env_/b end
16980      t clear
16981      :clear
16982      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16983      t end
16984      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16985      :end' >>confcache
16986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16987   if test -w "$cache_file"; then
16988     if test "x$cache_file" != "x/dev/null"; then
16989       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16990 $as_echo "$as_me: updating cache $cache_file" >&6;}
16991       if test ! -f "$cache_file" || test -h "$cache_file"; then
16992         cat confcache >"$cache_file"
16993       else
16994         case $cache_file in #(
16995         */* | ?:*)
16996           mv -f confcache "$cache_file"$$ &&
16997           mv -f "$cache_file"$$ "$cache_file" ;; #(
16998         *)
16999           mv -f confcache "$cache_file" ;;
17000         esac
17001       fi
17002     fi
17003   else
17004     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17005 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17006   fi
17007 fi
17008 rm -f confcache
17009
17010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17011 # Let make expand exec_prefix.
17012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17013
17014 DEFS=-DHAVE_CONFIG_H
17015
17016 ac_libobjs=
17017 ac_ltlibobjs=
17018 U=
17019 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17020   # 1. Remove the extension, and $U if already installed.
17021   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17022   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17023   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17024   #    will be set to the directory where LIBOBJS objects are built.
17025   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17026   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17027 done
17028 LIBOBJS=$ac_libobjs
17029
17030 LTLIBOBJS=$ac_ltlibobjs
17031
17032
17033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17034   as_fn_error $? "conditional \"AMDEP\" was never defined.
17035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036 fi
17037 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17038   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 fi
17041 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
17042   as_fn_error $? "conditional \"JAVA\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 fi
17045 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
17046   as_fn_error $? "conditional \"SAMPLE\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 fi
17049 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
17050   as_fn_error $? "conditional \"NO_SASL_DB_MANS\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 fi
17053 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
17054   as_fn_error $? "conditional \"SASLAUTHD\" was never defined.
17055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056 fi
17057 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
17058   as_fn_error $? "conditional \"PWCHECK\" was never defined.
17059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060 fi
17061 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
17062   as_fn_error $? "conditional \"MACOSX\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 fi
17065
17066 : "${CONFIG_STATUS=./config.status}"
17067 ac_write_fail=0
17068 ac_clean_files_save=$ac_clean_files
17069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17071 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17072 as_write_fail=0
17073 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17074 #! $SHELL
17075 # Generated by $as_me.
17076 # Run this file to recreate the current configuration.
17077 # Compiler output produced by configure, useful for debugging
17078 # configure, is in config.log if it exists.
17079
17080 debug=false
17081 ac_cs_recheck=false
17082 ac_cs_silent=false
17083
17084 SHELL=\${CONFIG_SHELL-$SHELL}
17085 export SHELL
17086 _ASEOF
17087 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17088 ## -------------------- ##
17089 ## M4sh Initialization. ##
17090 ## -------------------- ##
17091
17092 # Be more Bourne compatible
17093 DUALCASE=1; export DUALCASE # for MKS sh
17094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17095   emulate sh
17096   NULLCMD=:
17097   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17098   # is contrary to our usage.  Disable this feature.
17099   alias -g '${1+"$@"}'='"$@"'
17100   setopt NO_GLOB_SUBST
17101 else
17102   case `(set -o) 2>/dev/null` in #(
17103   *posix*) :
17104     set -o posix ;; #(
17105   *) :
17106      ;;
17107 esac
17108 fi
17109
17110
17111 as_nl='
17112 '
17113 export as_nl
17114 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17115 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17118 # Prefer a ksh shell builtin over an external printf program on Solaris,
17119 # but without wasting forks for bash or zsh.
17120 if test -z "$BASH_VERSION$ZSH_VERSION" \
17121     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17122   as_echo='print -r --'
17123   as_echo_n='print -rn --'
17124 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17125   as_echo='printf %s\n'
17126   as_echo_n='printf %s'
17127 else
17128   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17129     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17130     as_echo_n='/usr/ucb/echo -n'
17131   else
17132     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17133     as_echo_n_body='eval
17134       arg=$1;
17135       case $arg in #(
17136       *"$as_nl"*)
17137         expr "X$arg" : "X\\(.*\\)$as_nl";
17138         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17139       esac;
17140       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17141     '
17142     export as_echo_n_body
17143     as_echo_n='sh -c $as_echo_n_body as_echo'
17144   fi
17145   export as_echo_body
17146   as_echo='sh -c $as_echo_body as_echo'
17147 fi
17148
17149 # The user is always right.
17150 if test "${PATH_SEPARATOR+set}" != set; then
17151   PATH_SEPARATOR=:
17152   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17153     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17154       PATH_SEPARATOR=';'
17155   }
17156 fi
17157
17158
17159 # IFS
17160 # We need space, tab and new line, in precisely that order.  Quoting is
17161 # there to prevent editors from complaining about space-tab.
17162 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17163 # splitting by setting IFS to empty value.)
17164 IFS=" ""        $as_nl"
17165
17166 # Find who we are.  Look in the path if we contain no directory separator.
17167 as_myself=
17168 case $0 in #((
17169   *[\\/]* ) as_myself=$0 ;;
17170   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17172 do
17173   IFS=$as_save_IFS
17174   test -z "$as_dir" && as_dir=.
17175     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17176   done
17177 IFS=$as_save_IFS
17178
17179      ;;
17180 esac
17181 # We did not find ourselves, most probably we were run as `sh COMMAND'
17182 # in which case we are not to be found in the path.
17183 if test "x$as_myself" = x; then
17184   as_myself=$0
17185 fi
17186 if test ! -f "$as_myself"; then
17187   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17188   exit 1
17189 fi
17190
17191 # Unset variables that we do not need and which cause bugs (e.g. in
17192 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17193 # suppresses any "Segmentation fault" message there.  '((' could
17194 # trigger a bug in pdksh 5.2.14.
17195 for as_var in BASH_ENV ENV MAIL MAILPATH
17196 do eval test x\${$as_var+set} = xset \
17197   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17198 done
17199 PS1='$ '
17200 PS2='> '
17201 PS4='+ '
17202
17203 # NLS nuisances.
17204 LC_ALL=C
17205 export LC_ALL
17206 LANGUAGE=C
17207 export LANGUAGE
17208
17209 # CDPATH.
17210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17211
17212
17213 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17214 # ----------------------------------------
17215 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17216 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17217 # script with STATUS, using 1 if that was 0.
17218 as_fn_error ()
17219 {
17220   as_status=$1; test $as_status -eq 0 && as_status=1
17221   if test "$4"; then
17222     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17223     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17224   fi
17225   $as_echo "$as_me: error: $2" >&2
17226   as_fn_exit $as_status
17227 } # as_fn_error
17228
17229
17230 # as_fn_set_status STATUS
17231 # -----------------------
17232 # Set $? to STATUS, without forking.
17233 as_fn_set_status ()
17234 {
17235   return $1
17236 } # as_fn_set_status
17237
17238 # as_fn_exit STATUS
17239 # -----------------
17240 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17241 as_fn_exit ()
17242 {
17243   set +e
17244   as_fn_set_status $1
17245   exit $1
17246 } # as_fn_exit
17247
17248 # as_fn_unset VAR
17249 # ---------------
17250 # Portably unset VAR.
17251 as_fn_unset ()
17252 {
17253   { eval $1=; unset $1;}
17254 }
17255 as_unset=as_fn_unset
17256 # as_fn_append VAR VALUE
17257 # ----------------------
17258 # Append the text in VALUE to the end of the definition contained in VAR. Take
17259 # advantage of any shell optimizations that allow amortized linear growth over
17260 # repeated appends, instead of the typical quadratic growth present in naive
17261 # implementations.
17262 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17263   eval 'as_fn_append ()
17264   {
17265     eval $1+=\$2
17266   }'
17267 else
17268   as_fn_append ()
17269   {
17270     eval $1=\$$1\$2
17271   }
17272 fi # as_fn_append
17273
17274 # as_fn_arith ARG...
17275 # ------------------
17276 # Perform arithmetic evaluation on the ARGs, and store the result in the
17277 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17278 # must be portable across $(()) and expr.
17279 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17280   eval 'as_fn_arith ()
17281   {
17282     as_val=$(( $* ))
17283   }'
17284 else
17285   as_fn_arith ()
17286   {
17287     as_val=`expr "$@" || test $? -eq 1`
17288   }
17289 fi # as_fn_arith
17290
17291
17292 if expr a : '\(a\)' >/dev/null 2>&1 &&
17293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17294   as_expr=expr
17295 else
17296   as_expr=false
17297 fi
17298
17299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17300   as_basename=basename
17301 else
17302   as_basename=false
17303 fi
17304
17305 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17306   as_dirname=dirname
17307 else
17308   as_dirname=false
17309 fi
17310
17311 as_me=`$as_basename -- "$0" ||
17312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17313          X"$0" : 'X\(//\)$' \| \
17314          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17315 $as_echo X/"$0" |
17316     sed '/^.*\/\([^/][^/]*\)\/*$/{
17317             s//\1/
17318             q
17319           }
17320           /^X\/\(\/\/\)$/{
17321             s//\1/
17322             q
17323           }
17324           /^X\/\(\/\).*/{
17325             s//\1/
17326             q
17327           }
17328           s/.*/./; q'`
17329
17330 # Avoid depending upon Character Ranges.
17331 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17332 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17333 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17334 as_cr_digits='0123456789'
17335 as_cr_alnum=$as_cr_Letters$as_cr_digits
17336
17337 ECHO_C= ECHO_N= ECHO_T=
17338 case `echo -n x` in #(((((
17339 -n*)
17340   case `echo 'xy\c'` in
17341   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17342   xy)  ECHO_C='\c';;
17343   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17344        ECHO_T=' ';;
17345   esac;;
17346 *)
17347   ECHO_N='-n';;
17348 esac
17349
17350 rm -f conf$$ conf$$.exe conf$$.file
17351 if test -d conf$$.dir; then
17352   rm -f conf$$.dir/conf$$.file
17353 else
17354   rm -f conf$$.dir
17355   mkdir conf$$.dir 2>/dev/null
17356 fi
17357 if (echo >conf$$.file) 2>/dev/null; then
17358   if ln -s conf$$.file conf$$ 2>/dev/null; then
17359     as_ln_s='ln -s'
17360     # ... but there are two gotchas:
17361     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17362     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17363     # In both cases, we have to default to `cp -p'.
17364     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17365       as_ln_s='cp -p'
17366   elif ln conf$$.file conf$$ 2>/dev/null; then
17367     as_ln_s=ln
17368   else
17369     as_ln_s='cp -p'
17370   fi
17371 else
17372   as_ln_s='cp -p'
17373 fi
17374 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17375 rmdir conf$$.dir 2>/dev/null
17376
17377
17378 # as_fn_mkdir_p
17379 # -------------
17380 # Create "$as_dir" as a directory, including parents if necessary.
17381 as_fn_mkdir_p ()
17382 {
17383
17384   case $as_dir in #(
17385   -*) as_dir=./$as_dir;;
17386   esac
17387   test -d "$as_dir" || eval $as_mkdir_p || {
17388     as_dirs=
17389     while :; do
17390       case $as_dir in #(
17391       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17392       *) as_qdir=$as_dir;;
17393       esac
17394       as_dirs="'$as_qdir' $as_dirs"
17395       as_dir=`$as_dirname -- "$as_dir" ||
17396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397          X"$as_dir" : 'X\(//\)[^/]' \| \
17398          X"$as_dir" : 'X\(//\)$' \| \
17399          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17400 $as_echo X"$as_dir" |
17401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17402             s//\1/
17403             q
17404           }
17405           /^X\(\/\/\)[^/].*/{
17406             s//\1/
17407             q
17408           }
17409           /^X\(\/\/\)$/{
17410             s//\1/
17411             q
17412           }
17413           /^X\(\/\).*/{
17414             s//\1/
17415             q
17416           }
17417           s/.*/./; q'`
17418       test -d "$as_dir" && break
17419     done
17420     test -z "$as_dirs" || eval "mkdir $as_dirs"
17421   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17422
17423
17424 } # as_fn_mkdir_p
17425 if mkdir -p . 2>/dev/null; then
17426   as_mkdir_p='mkdir -p "$as_dir"'
17427 else
17428   test -d ./-p && rmdir ./-p
17429   as_mkdir_p=false
17430 fi
17431
17432 if test -x / >/dev/null 2>&1; then
17433   as_test_x='test -x'
17434 else
17435   if ls -dL / >/dev/null 2>&1; then
17436     as_ls_L_option=L
17437   else
17438     as_ls_L_option=
17439   fi
17440   as_test_x='
17441     eval sh -c '\''
17442       if test -d "$1"; then
17443         test -d "$1/.";
17444       else
17445         case $1 in #(
17446         -*)set "./$1";;
17447         esac;
17448         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17449         ???[sx]*):;;*)false;;esac;fi
17450     '\'' sh
17451   '
17452 fi
17453 as_executable_p=$as_test_x
17454
17455 # Sed expression to map a string onto a valid CPP name.
17456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17457
17458 # Sed expression to map a string onto a valid variable name.
17459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17460
17461
17462 exec 6>&1
17463 ## ----------------------------------- ##
17464 ## Main body of $CONFIG_STATUS script. ##
17465 ## ----------------------------------- ##
17466 _ASEOF
17467 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17468
17469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470 # Save the log message, to keep $0 and so on meaningful, and to
17471 # report actual input values of CONFIG_FILES etc. instead of their
17472 # values after options handling.
17473 ac_log="
17474 This file was extended by $as_me, which was
17475 generated by GNU Autoconf 2.68.  Invocation command line was
17476
17477   CONFIG_FILES    = $CONFIG_FILES
17478   CONFIG_HEADERS  = $CONFIG_HEADERS
17479   CONFIG_LINKS    = $CONFIG_LINKS
17480   CONFIG_COMMANDS = $CONFIG_COMMANDS
17481   $ $0 $@
17482
17483 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17484 "
17485
17486 _ACEOF
17487
17488 case $ac_config_files in *"
17489 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17490 esac
17491
17492 case $ac_config_headers in *"
17493 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17494 esac
17495
17496
17497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17498 # Files that config.status was made for.
17499 config_files="$ac_config_files"
17500 config_headers="$ac_config_headers"
17501 config_commands="$ac_config_commands"
17502
17503 _ACEOF
17504
17505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17506 ac_cs_usage="\
17507 \`$as_me' instantiates files and other configuration actions
17508 from templates according to the current configuration.  Unless the files
17509 and actions are specified as TAGs, all are instantiated by default.
17510
17511 Usage: $0 [OPTION]... [TAG]...
17512
17513   -h, --help       print this help, then exit
17514   -V, --version    print version number and configuration settings, then exit
17515       --config     print configuration, then exit
17516   -q, --quiet, --silent
17517                    do not print progress messages
17518   -d, --debug      don't remove temporary files
17519       --recheck    update $as_me by reconfiguring in the same conditions
17520       --file=FILE[:TEMPLATE]
17521                    instantiate the configuration file FILE
17522       --header=FILE[:TEMPLATE]
17523                    instantiate the configuration header FILE
17524
17525 Configuration files:
17526 $config_files
17527
17528 Configuration headers:
17529 $config_headers
17530
17531 Configuration commands:
17532 $config_commands
17533
17534 Report bugs to the package provider."
17535
17536 _ACEOF
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17539 ac_cs_version="\\
17540 config.status
17541 configured by $0, generated by GNU Autoconf 2.68,
17542   with options \\"\$ac_cs_config\\"
17543
17544 Copyright (C) 2010 Free Software Foundation, Inc.
17545 This config.status script is free software; the Free Software Foundation
17546 gives unlimited permission to copy, distribute and modify it."
17547
17548 ac_pwd='$ac_pwd'
17549 srcdir='$srcdir'
17550 INSTALL='$INSTALL'
17551 MKDIR_P='$MKDIR_P'
17552 AWK='$AWK'
17553 test -n "\$AWK" || AWK=awk
17554 _ACEOF
17555
17556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557 # The default lists apply if the user does not specify any file.
17558 ac_need_defaults=:
17559 while test $# != 0
17560 do
17561   case $1 in
17562   --*=?*)
17563     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17564     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17565     ac_shift=:
17566     ;;
17567   --*=)
17568     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17569     ac_optarg=
17570     ac_shift=:
17571     ;;
17572   *)
17573     ac_option=$1
17574     ac_optarg=$2
17575     ac_shift=shift
17576     ;;
17577   esac
17578
17579   case $ac_option in
17580   # Handling of the options.
17581   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17582     ac_cs_recheck=: ;;
17583   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17584     $as_echo "$ac_cs_version"; exit ;;
17585   --config | --confi | --conf | --con | --co | --c )
17586     $as_echo "$ac_cs_config"; exit ;;
17587   --debug | --debu | --deb | --de | --d | -d )
17588     debug=: ;;
17589   --file | --fil | --fi | --f )
17590     $ac_shift
17591     case $ac_optarg in
17592     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17593     '') as_fn_error $? "missing file argument" ;;
17594     esac
17595     as_fn_append CONFIG_FILES " '$ac_optarg'"
17596     ac_need_defaults=false;;
17597   --header | --heade | --head | --hea )
17598     $ac_shift
17599     case $ac_optarg in
17600     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17601     esac
17602     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17603     ac_need_defaults=false;;
17604   --he | --h)
17605     # Conflict between --help and --header
17606     as_fn_error $? "ambiguous option: \`$1'
17607 Try \`$0 --help' for more information.";;
17608   --help | --hel | -h )
17609     $as_echo "$ac_cs_usage"; exit ;;
17610   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17611   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17612     ac_cs_silent=: ;;
17613
17614   # This is an error.
17615   -*) as_fn_error $? "unrecognized option: \`$1'
17616 Try \`$0 --help' for more information." ;;
17617
17618   *) as_fn_append ac_config_targets " $1"
17619      ac_need_defaults=false ;;
17620
17621   esac
17622   shift
17623 done
17624
17625 ac_configure_extra_args=
17626
17627 if $ac_cs_silent; then
17628   exec 6>/dev/null
17629   ac_configure_extra_args="$ac_configure_extra_args --silent"
17630 fi
17631
17632 _ACEOF
17633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634 if \$ac_cs_recheck; then
17635   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17636   shift
17637   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17638   CONFIG_SHELL='$SHELL'
17639   export CONFIG_SHELL
17640   exec "\$@"
17641 fi
17642
17643 _ACEOF
17644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17645 exec 5>>config.log
17646 {
17647   echo
17648   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17649 ## Running $as_me. ##
17650 _ASBOX
17651   $as_echo "$ac_log"
17652 } >&5
17653
17654 _ACEOF
17655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17656 #
17657 # INIT-COMMANDS
17658 #
17659 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17660
17661
17662 # The HP-UX ksh and POSIX shell print the target directory to stdout
17663 # if CDPATH is set.
17664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17665
17666 sed_quote_subst='$sed_quote_subst'
17667 double_quote_subst='$double_quote_subst'
17668 delay_variable_subst='$delay_variable_subst'
17669 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17670 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17671 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17672 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17673 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17674 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17675 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17676 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17677 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17678 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17679 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17680 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17681 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17682 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17683 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17684 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17685 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17686 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17687 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17688 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17689 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17690 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17691 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17692 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17693 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17694 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17695 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17696 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17697 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17698 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17699 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17700 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17701 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17702 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17703 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17704 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17705 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17706 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17707 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17708 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17709 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17710 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17711 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17712 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17713 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17714 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17716 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17717 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17718 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17719 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17720 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17721 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17722 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17723 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17724 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17725 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17726 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17727 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17728 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17729 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17730 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17731 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17732 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17733 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17734 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17735 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17736 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17737 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17738 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17739 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17740 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17741 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17742 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17743 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17744 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17745 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17746 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17747 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17748 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17749 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17750 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17751 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17752 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17753 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17754 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17755 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17756 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17757 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17758 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17759 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17760 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17761 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17762 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17763 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17764 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17765 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17766 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17767 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17768 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17769 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17770 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17771 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17772 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17773 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17774 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17775 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17776 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17777 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17778 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17779 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17780 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17781 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17782 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17783 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17784 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17785 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17786 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17787 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17788 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17789
17790 LTCC='$LTCC'
17791 LTCFLAGS='$LTCFLAGS'
17792 compiler='$compiler_DEFAULT'
17793
17794 # A function that is used when there is no print builtin or printf.
17795 func_fallback_echo ()
17796 {
17797   eval 'cat <<_LTECHO_EOF
17798 \$1
17799 _LTECHO_EOF'
17800 }
17801
17802 # Quote evaled strings.
17803 for var in SHELL \
17804 ECHO \
17805 SED \
17806 GREP \
17807 EGREP \
17808 FGREP \
17809 LD \
17810 NM \
17811 LN_S \
17812 lt_SP2NL \
17813 lt_NL2SP \
17814 reload_flag \
17815 OBJDUMP \
17816 deplibs_check_method \
17817 file_magic_cmd \
17818 AR \
17819 AR_FLAGS \
17820 STRIP \
17821 RANLIB \
17822 CC \
17823 CFLAGS \
17824 compiler \
17825 lt_cv_sys_global_symbol_pipe \
17826 lt_cv_sys_global_symbol_to_cdecl \
17827 lt_cv_sys_global_symbol_to_c_name_address \
17828 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17829 lt_prog_compiler_no_builtin_flag \
17830 lt_prog_compiler_wl \
17831 lt_prog_compiler_pic \
17832 lt_prog_compiler_static \
17833 lt_cv_prog_compiler_c_o \
17834 need_locks \
17835 DSYMUTIL \
17836 NMEDIT \
17837 LIPO \
17838 OTOOL \
17839 OTOOL64 \
17840 shrext_cmds \
17841 export_dynamic_flag_spec \
17842 whole_archive_flag_spec \
17843 compiler_needs_object \
17844 with_gnu_ld \
17845 allow_undefined_flag \
17846 no_undefined_flag \
17847 hardcode_libdir_flag_spec \
17848 hardcode_libdir_flag_spec_ld \
17849 hardcode_libdir_separator \
17850 fix_srcfile_path \
17851 exclude_expsyms \
17852 include_expsyms \
17853 file_list_spec \
17854 variables_saved_for_relink \
17855 libname_spec \
17856 library_names_spec \
17857 soname_spec \
17858 install_override_mode \
17859 finish_eval \
17860 old_striplib \
17861 striplib; do
17862     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17863     *[\\\\\\\`\\"\\\$]*)
17864       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17865       ;;
17866     *)
17867       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17868       ;;
17869     esac
17870 done
17871
17872 # Double-quote double-evaled strings.
17873 for var in reload_cmds \
17874 old_postinstall_cmds \
17875 old_postuninstall_cmds \
17876 old_archive_cmds \
17877 extract_expsyms_cmds \
17878 old_archive_from_new_cmds \
17879 old_archive_from_expsyms_cmds \
17880 archive_cmds \
17881 archive_expsym_cmds \
17882 module_cmds \
17883 module_expsym_cmds \
17884 export_symbols_cmds \
17885 prelink_cmds \
17886 postinstall_cmds \
17887 postuninstall_cmds \
17888 finish_cmds \
17889 sys_lib_search_path_spec \
17890 sys_lib_dlsearch_path_spec; do
17891     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17892     *[\\\\\\\`\\"\\\$]*)
17893       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17894       ;;
17895     *)
17896       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17897       ;;
17898     esac
17899 done
17900
17901 ac_aux_dir='$ac_aux_dir'
17902 xsi_shell='$xsi_shell'
17903 lt_shell_append='$lt_shell_append'
17904
17905 # See if we are running on zsh, and set the options which allow our
17906 # commands through without removal of \ escapes INIT.
17907 if test -n "\${ZSH_VERSION+set}" ; then
17908    setopt NO_GLOB_SUBST
17909 fi
17910
17911
17912     PACKAGE='$PACKAGE'
17913     VERSION='$VERSION'
17914     TIMESTAMP='$TIMESTAMP'
17915     RM='$RM'
17916     ofile='$ofile'
17917
17918
17919
17920
17921 _ACEOF
17922
17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17924
17925 # Handling of arguments.
17926 for ac_config_target in $ac_config_targets
17927 do
17928   case $ac_config_target in
17929     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17930     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17931     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17932     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17933     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17934     "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
17935     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17936     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17937     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17938     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17939     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17940     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
17941     "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
17942     "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
17943     "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
17944     "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
17945     "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
17946     "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
17947     "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
17948     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17949
17950   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17951   esac
17952 done
17953
17954
17955 # If the user did not use the arguments to specify the items to instantiate,
17956 # then the envvar interface is used.  Set only those that are not.
17957 # We use the long form for the default assignment because of an extremely
17958 # bizarre bug on SunOS 4.1.3.
17959 if $ac_need_defaults; then
17960   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17961   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17962   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17963 fi
17964
17965 # Have a temporary directory for convenience.  Make it in the build tree
17966 # simply because there is no reason against having it here, and in addition,
17967 # creating and moving files from /tmp can sometimes cause problems.
17968 # Hook for its removal unless debugging.
17969 # Note that there is a small window in which the directory will not be cleaned:
17970 # after its creation but before its name has been assigned to `$tmp'.
17971 $debug ||
17972 {
17973   tmp= ac_tmp=
17974   trap 'exit_status=$?
17975   : "${ac_tmp:=$tmp}"
17976   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17977 ' 0
17978   trap 'as_fn_exit 1' 1 2 13 15
17979 }
17980 # Create a (secure) tmp directory for tmp files.
17981
17982 {
17983   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17984   test -d "$tmp"
17985 }  ||
17986 {
17987   tmp=./conf$$-$RANDOM
17988   (umask 077 && mkdir "$tmp")
17989 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17990 ac_tmp=$tmp
17991
17992 # Set up the scripts for CONFIG_FILES section.
17993 # No need to generate them if there are no CONFIG_FILES.
17994 # This happens for instance with `./config.status config.h'.
17995 if test -n "$CONFIG_FILES"; then
17996
17997
17998 ac_cr=`echo X | tr X '\015'`
17999 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18000 # But we know of no other shell where ac_cr would be empty at this
18001 # point, so we can use a bashism as a fallback.
18002 if test "x$ac_cr" = x; then
18003   eval ac_cr=\$\'\\r\'
18004 fi
18005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18007   ac_cs_awk_cr='\\r'
18008 else
18009   ac_cs_awk_cr=$ac_cr
18010 fi
18011
18012 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18013 _ACEOF
18014
18015
18016 {
18017   echo "cat >conf$$subs.awk <<_ACEOF" &&
18018   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18019   echo "_ACEOF"
18020 } >conf$$subs.sh ||
18021   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18022 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18023 ac_delim='%!_!# '
18024 for ac_last_try in false false false false false :; do
18025   . ./conf$$subs.sh ||
18026     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18027
18028   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18029   if test $ac_delim_n = $ac_delim_num; then
18030     break
18031   elif $ac_last_try; then
18032     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18033   else
18034     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18035   fi
18036 done
18037 rm -f conf$$subs.sh
18038
18039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18040 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18041 _ACEOF
18042 sed -n '
18043 h
18044 s/^/S["/; s/!.*/"]=/
18045 p
18046 g
18047 s/^[^!]*!//
18048 :repl
18049 t repl
18050 s/'"$ac_delim"'$//
18051 t delim
18052 :nl
18053 h
18054 s/\(.\{148\}\)..*/\1/
18055 t more1
18056 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18057 p
18058 n
18059 b repl
18060 :more1
18061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18062 p
18063 g
18064 s/.\{148\}//
18065 t nl
18066 :delim
18067 h
18068 s/\(.\{148\}\)..*/\1/
18069 t more2
18070 s/["\\]/\\&/g; s/^/"/; s/$/"/
18071 p
18072 b
18073 :more2
18074 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18075 p
18076 g
18077 s/.\{148\}//
18078 t delim
18079 ' <conf$$subs.awk | sed '
18080 /^[^""]/{
18081   N
18082   s/\n//
18083 }
18084 ' >>$CONFIG_STATUS || ac_write_fail=1
18085 rm -f conf$$subs.awk
18086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18087 _ACAWK
18088 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18089   for (key in S) S_is_set[key] = 1
18090   FS = "\a"
18091
18092 }
18093 {
18094   line = $ 0
18095   nfields = split(line, field, "@")
18096   substed = 0
18097   len = length(field[1])
18098   for (i = 2; i < nfields; i++) {
18099     key = field[i]
18100     keylen = length(key)
18101     if (S_is_set[key]) {
18102       value = S[key]
18103       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18104       len += length(value) + length(field[++i])
18105       substed = 1
18106     } else
18107       len += 1 + keylen
18108   }
18109
18110   print line
18111 }
18112
18113 _ACAWK
18114 _ACEOF
18115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18116 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18117   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18118 else
18119   cat
18120 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18121   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18122 _ACEOF
18123
18124 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18125 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18126 # trailing colons and then remove the whole line if VPATH becomes empty
18127 # (actually we leave an empty line to preserve line numbers).
18128 if test "x$srcdir" = x.; then
18129   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18130 h
18131 s///
18132 s/^/:/
18133 s/[      ]*$/:/
18134 s/:\$(srcdir):/:/g
18135 s/:\${srcdir}:/:/g
18136 s/:@srcdir@:/:/g
18137 s/^:*//
18138 s/:*$//
18139 x
18140 s/\(=[   ]*\).*/\1/
18141 G
18142 s/\n//
18143 s/^[^=]*=[       ]*$//
18144 }'
18145 fi
18146
18147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18148 fi # test -n "$CONFIG_FILES"
18149
18150 # Set up the scripts for CONFIG_HEADERS section.
18151 # No need to generate them if there are no CONFIG_HEADERS.
18152 # This happens for instance with `./config.status Makefile'.
18153 if test -n "$CONFIG_HEADERS"; then
18154 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18155 BEGIN {
18156 _ACEOF
18157
18158 # Transform confdefs.h into an awk script `defines.awk', embedded as
18159 # here-document in config.status, that substitutes the proper values into
18160 # config.h.in to produce config.h.
18161
18162 # Create a delimiter string that does not exist in confdefs.h, to ease
18163 # handling of long lines.
18164 ac_delim='%!_!# '
18165 for ac_last_try in false false :; do
18166   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18167   if test -z "$ac_tt"; then
18168     break
18169   elif $ac_last_try; then
18170     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18171   else
18172     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18173   fi
18174 done
18175
18176 # For the awk script, D is an array of macro values keyed by name,
18177 # likewise P contains macro parameters if any.  Preserve backslash
18178 # newline sequences.
18179
18180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18181 sed -n '
18182 s/.\{148\}/&'"$ac_delim"'/g
18183 t rset
18184 :rset
18185 s/^[     ]*#[    ]*define[       ][      ]*/ /
18186 t def
18187 d
18188 :def
18189 s/\\$//
18190 t bsnl
18191 s/["\\]/\\&/g
18192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18193 D["\1"]=" \3"/p
18194 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18195 d
18196 :bsnl
18197 s/["\\]/\\&/g
18198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18199 D["\1"]=" \3\\\\\\n"\\/p
18200 t cont
18201 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18202 t cont
18203 d
18204 :cont
18205 n
18206 s/.\{148\}/&'"$ac_delim"'/g
18207 t clear
18208 :clear
18209 s/\\$//
18210 t bsnlc
18211 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18212 d
18213 :bsnlc
18214 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18215 b cont
18216 ' <confdefs.h | sed '
18217 s/'"$ac_delim"'/"\\\
18218 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18219
18220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18221   for (key in D) D_is_set[key] = 1
18222   FS = "\a"
18223 }
18224 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18225   line = \$ 0
18226   split(line, arg, " ")
18227   if (arg[1] == "#") {
18228     defundef = arg[2]
18229     mac1 = arg[3]
18230   } else {
18231     defundef = substr(arg[1], 2)
18232     mac1 = arg[2]
18233   }
18234   split(mac1, mac2, "(") #)
18235   macro = mac2[1]
18236   prefix = substr(line, 1, index(line, defundef) - 1)
18237   if (D_is_set[macro]) {
18238     # Preserve the white space surrounding the "#".
18239     print prefix "define", macro P[macro] D[macro]
18240     next
18241   } else {
18242     # Replace #undef with comments.  This is necessary, for example,
18243     # in the case of _POSIX_SOURCE, which is predefined and required
18244     # on some systems where configure will not decide to define it.
18245     if (defundef == "undef") {
18246       print "/*", prefix defundef, macro, "*/"
18247       next
18248     }
18249   }
18250 }
18251 { print }
18252 _ACAWK
18253 _ACEOF
18254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18255   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18256 fi # test -n "$CONFIG_HEADERS"
18257
18258
18259 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18260 shift
18261 for ac_tag
18262 do
18263   case $ac_tag in
18264   :[FHLC]) ac_mode=$ac_tag; continue;;
18265   esac
18266   case $ac_mode$ac_tag in
18267   :[FHL]*:*);;
18268   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18269   :[FH]-) ac_tag=-:-;;
18270   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18271   esac
18272   ac_save_IFS=$IFS
18273   IFS=:
18274   set x $ac_tag
18275   IFS=$ac_save_IFS
18276   shift
18277   ac_file=$1
18278   shift
18279
18280   case $ac_mode in
18281   :L) ac_source=$1;;
18282   :[FH])
18283     ac_file_inputs=
18284     for ac_f
18285     do
18286       case $ac_f in
18287       -) ac_f="$ac_tmp/stdin";;
18288       *) # Look for the file first in the build tree, then in the source tree
18289          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18290          # because $ac_f cannot contain `:'.
18291          test -f "$ac_f" ||
18292            case $ac_f in
18293            [\\/$]*) false;;
18294            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18295            esac ||
18296            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18297       esac
18298       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18299       as_fn_append ac_file_inputs " '$ac_f'"
18300     done
18301
18302     # Let's still pretend it is `configure' which instantiates (i.e., don't
18303     # use $as_me), people would be surprised to read:
18304     #    /* config.h.  Generated by config.status.  */
18305     configure_input='Generated from '`
18306           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18307         `' by configure.'
18308     if test x"$ac_file" != x-; then
18309       configure_input="$ac_file.  $configure_input"
18310       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18311 $as_echo "$as_me: creating $ac_file" >&6;}
18312     fi
18313     # Neutralize special characters interpreted by sed in replacement strings.
18314     case $configure_input in #(
18315     *\&* | *\|* | *\\* )
18316        ac_sed_conf_input=`$as_echo "$configure_input" |
18317        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18318     *) ac_sed_conf_input=$configure_input;;
18319     esac
18320
18321     case $ac_tag in
18322     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18323       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18324     esac
18325     ;;
18326   esac
18327
18328   ac_dir=`$as_dirname -- "$ac_file" ||
18329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18330          X"$ac_file" : 'X\(//\)[^/]' \| \
18331          X"$ac_file" : 'X\(//\)$' \| \
18332          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18333 $as_echo X"$ac_file" |
18334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18335             s//\1/
18336             q
18337           }
18338           /^X\(\/\/\)[^/].*/{
18339             s//\1/
18340             q
18341           }
18342           /^X\(\/\/\)$/{
18343             s//\1/
18344             q
18345           }
18346           /^X\(\/\).*/{
18347             s//\1/
18348             q
18349           }
18350           s/.*/./; q'`
18351   as_dir="$ac_dir"; as_fn_mkdir_p
18352   ac_builddir=.
18353
18354 case "$ac_dir" in
18355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18356 *)
18357   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18358   # A ".." for each directory in $ac_dir_suffix.
18359   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18360   case $ac_top_builddir_sub in
18361   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18362   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18363   esac ;;
18364 esac
18365 ac_abs_top_builddir=$ac_pwd
18366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18367 # for backward compatibility:
18368 ac_top_builddir=$ac_top_build_prefix
18369
18370 case $srcdir in
18371   .)  # We are building in place.
18372     ac_srcdir=.
18373     ac_top_srcdir=$ac_top_builddir_sub
18374     ac_abs_top_srcdir=$ac_pwd ;;
18375   [\\/]* | ?:[\\/]* )  # Absolute name.
18376     ac_srcdir=$srcdir$ac_dir_suffix;
18377     ac_top_srcdir=$srcdir
18378     ac_abs_top_srcdir=$srcdir ;;
18379   *) # Relative name.
18380     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18381     ac_top_srcdir=$ac_top_build_prefix$srcdir
18382     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18383 esac
18384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18385
18386
18387   case $ac_mode in
18388   :F)
18389   #
18390   # CONFIG_FILE
18391   #
18392
18393   case $INSTALL in
18394   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18395   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18396   esac
18397   ac_MKDIR_P=$MKDIR_P
18398   case $MKDIR_P in
18399   [\\/$]* | ?:[\\/]* ) ;;
18400   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18401   esac
18402 _ACEOF
18403
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 # If the template does not know about datarootdir, expand it.
18406 # FIXME: This hack should be removed a few years after 2.60.
18407 ac_datarootdir_hack=; ac_datarootdir_seen=
18408 ac_sed_dataroot='
18409 /datarootdir/ {
18410   p
18411   q
18412 }
18413 /@datadir@/p
18414 /@docdir@/p
18415 /@infodir@/p
18416 /@localedir@/p
18417 /@mandir@/p'
18418 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18419 *datarootdir*) ac_datarootdir_seen=yes;;
18420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18421   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18422 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18423 _ACEOF
18424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18425   ac_datarootdir_hack='
18426   s&@datadir@&$datadir&g
18427   s&@docdir@&$docdir&g
18428   s&@infodir@&$infodir&g
18429   s&@localedir@&$localedir&g
18430   s&@mandir@&$mandir&g
18431   s&\\\${datarootdir}&$datarootdir&g' ;;
18432 esac
18433 _ACEOF
18434
18435 # Neutralize VPATH when `$srcdir' = `.'.
18436 # Shell code in configure.ac might set extrasub.
18437 # FIXME: do we really want to maintain this feature?
18438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18439 ac_sed_extra="$ac_vpsub
18440 $extrasub
18441 _ACEOF
18442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18443 :t
18444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18445 s|@configure_input@|$ac_sed_conf_input|;t t
18446 s&@top_builddir@&$ac_top_builddir_sub&;t t
18447 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18448 s&@srcdir@&$ac_srcdir&;t t
18449 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18450 s&@top_srcdir@&$ac_top_srcdir&;t t
18451 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18452 s&@builddir@&$ac_builddir&;t t
18453 s&@abs_builddir@&$ac_abs_builddir&;t t
18454 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18455 s&@INSTALL@&$ac_INSTALL&;t t
18456 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18457 $ac_datarootdir_hack
18458 "
18459 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18460   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18461
18462 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18463   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18464   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18465       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18467 which seems to be undefined.  Please make sure it is defined" >&5
18468 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18469 which seems to be undefined.  Please make sure it is defined" >&2;}
18470
18471   rm -f "$ac_tmp/stdin"
18472   case $ac_file in
18473   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18474   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18475   esac \
18476   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18477  ;;
18478   :H)
18479   #
18480   # CONFIG_HEADER
18481   #
18482   if test x"$ac_file" != x-; then
18483     {
18484       $as_echo "/* $configure_input  */" \
18485       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18486     } >"$ac_tmp/config.h" \
18487       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18488     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18489       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18490 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18491     else
18492       rm -f "$ac_file"
18493       mv "$ac_tmp/config.h" "$ac_file" \
18494         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18495     fi
18496   else
18497     $as_echo "/* $configure_input  */" \
18498       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18499       || as_fn_error $? "could not create -" "$LINENO" 5
18500   fi
18501 # Compute "$ac_file"'s index in $config_headers.
18502 _am_arg="$ac_file"
18503 _am_stamp_count=1
18504 for _am_header in $config_headers :; do
18505   case $_am_header in
18506     $_am_arg | $_am_arg:* )
18507       break ;;
18508     * )
18509       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18510   esac
18511 done
18512 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18513 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18514          X"$_am_arg" : 'X\(//\)[^/]' \| \
18515          X"$_am_arg" : 'X\(//\)$' \| \
18516          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18517 $as_echo X"$_am_arg" |
18518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18519             s//\1/
18520             q
18521           }
18522           /^X\(\/\/\)[^/].*/{
18523             s//\1/
18524             q
18525           }
18526           /^X\(\/\/\)$/{
18527             s//\1/
18528             q
18529           }
18530           /^X\(\/\).*/{
18531             s//\1/
18532             q
18533           }
18534           s/.*/./; q'`/stamp-h$_am_stamp_count
18535  ;;
18536
18537   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18538 $as_echo "$as_me: executing $ac_file commands" >&6;}
18539  ;;
18540   esac
18541
18542
18543   case $ac_file$ac_mode in
18544     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18545   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18546   # are listed without --file.  Let's play safe and only enable the eval
18547   # if we detect the quoting.
18548   case $CONFIG_FILES in
18549   *\'*) eval set x "$CONFIG_FILES" ;;
18550   *)   set x $CONFIG_FILES ;;
18551   esac
18552   shift
18553   for mf
18554   do
18555     # Strip MF so we end up with the name of the file.
18556     mf=`echo "$mf" | sed -e 's/:.*$//'`
18557     # Check whether this is an Automake generated Makefile or not.
18558     # We used to match only the files named `Makefile.in', but
18559     # some people rename them; so instead we look at the file content.
18560     # Grep'ing the first line is not enough: some people post-process
18561     # each Makefile.in and add a new line on top of each file to say so.
18562     # Grep'ing the whole file is not good either: AIX grep has a line
18563     # limit of 2048, but all sed's we know have understand at least 4000.
18564     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18565       dirpart=`$as_dirname -- "$mf" ||
18566 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18567          X"$mf" : 'X\(//\)[^/]' \| \
18568          X"$mf" : 'X\(//\)$' \| \
18569          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18570 $as_echo X"$mf" |
18571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18572             s//\1/
18573             q
18574           }
18575           /^X\(\/\/\)[^/].*/{
18576             s//\1/
18577             q
18578           }
18579           /^X\(\/\/\)$/{
18580             s//\1/
18581             q
18582           }
18583           /^X\(\/\).*/{
18584             s//\1/
18585             q
18586           }
18587           s/.*/./; q'`
18588     else
18589       continue
18590     fi
18591     # Extract the definition of DEPDIR, am__include, and am__quote
18592     # from the Makefile without running `make'.
18593     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18594     test -z "$DEPDIR" && continue
18595     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18596     test -z "am__include" && continue
18597     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18598     # When using ansi2knr, U may be empty or an underscore; expand it
18599     U=`sed -n 's/^U = //p' < "$mf"`
18600     # Find all dependency output files, they are included files with
18601     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18602     # simplest approach to changing $(DEPDIR) to its actual value in the
18603     # expansion.
18604     for file in `sed -n "
18605       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18606          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18607       # Make sure the directory exists.
18608       test -f "$dirpart/$file" && continue
18609       fdir=`$as_dirname -- "$file" ||
18610 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611          X"$file" : 'X\(//\)[^/]' \| \
18612          X"$file" : 'X\(//\)$' \| \
18613          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18614 $as_echo X"$file" |
18615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18616             s//\1/
18617             q
18618           }
18619           /^X\(\/\/\)[^/].*/{
18620             s//\1/
18621             q
18622           }
18623           /^X\(\/\/\)$/{
18624             s//\1/
18625             q
18626           }
18627           /^X\(\/\).*/{
18628             s//\1/
18629             q
18630           }
18631           s/.*/./; q'`
18632       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18633       # echo "creating $dirpart/$file"
18634       echo '# dummy' > "$dirpart/$file"
18635     done
18636   done
18637 }
18638  ;;
18639     "libtool":C)
18640
18641     # See if we are running on zsh, and set the options which allow our
18642     # commands through without removal of \ escapes.
18643     if test -n "${ZSH_VERSION+set}" ; then
18644       setopt NO_GLOB_SUBST
18645     fi
18646
18647     cfgfile="${ofile}T"
18648     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18649     $RM "$cfgfile"
18650
18651     cat <<_LT_EOF >> "$cfgfile"
18652 #! $SHELL
18653
18654 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18655 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18658 #
18659 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18660 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18661 #                 Inc.
18662 #   Written by Gordon Matzigkeit, 1996
18663 #
18664 #   This file is part of GNU Libtool.
18665 #
18666 # GNU Libtool is free software; you can redistribute it and/or
18667 # modify it under the terms of the GNU General Public License as
18668 # published by the Free Software Foundation; either version 2 of
18669 # the License, or (at your option) any later version.
18670 #
18671 # As a special exception to the GNU General Public License,
18672 # if you distribute this file as part of a program or library that
18673 # is built using GNU Libtool, you may include this file under the
18674 # same distribution terms that you use for the rest of that program.
18675 #
18676 # GNU Libtool is distributed in the hope that it will be useful,
18677 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18678 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18679 # GNU General Public License for more details.
18680 #
18681 # You should have received a copy of the GNU General Public License
18682 # along with GNU Libtool; see the file COPYING.  If not, a copy
18683 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18684 # obtained by writing to the Free Software Foundation, Inc.,
18685 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18686
18687
18688 # The names of the tagged configurations supported by this script.
18689 available_tags=""
18690
18691 # ### BEGIN LIBTOOL CONFIG
18692
18693 # Whether or not to build static libraries.
18694 build_old_libs=$enable_static
18695
18696 # Which release of libtool.m4 was used?
18697 macro_version=$macro_version
18698 macro_revision=$macro_revision
18699
18700 # Whether or not to build shared libraries.
18701 build_libtool_libs=$enable_shared
18702
18703 # What type of objects to build.
18704 pic_mode=$pic_mode
18705
18706 # Whether or not to optimize for fast installation.
18707 fast_install=$enable_fast_install
18708
18709 # Shell to use when invoking shell scripts.
18710 SHELL=$lt_SHELL
18711
18712 # An echo program that protects backslashes.
18713 ECHO=$lt_ECHO
18714
18715 # The host system.
18716 host_alias=$host_alias
18717 host=$host
18718 host_os=$host_os
18719
18720 # The build system.
18721 build_alias=$build_alias
18722 build=$build
18723 build_os=$build_os
18724
18725 # A sed program that does not truncate output.
18726 SED=$lt_SED
18727
18728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18729 Xsed="\$SED -e 1s/^X//"
18730
18731 # A grep program that handles long lines.
18732 GREP=$lt_GREP
18733
18734 # An ERE matcher.
18735 EGREP=$lt_EGREP
18736
18737 # A literal string matcher.
18738 FGREP=$lt_FGREP
18739
18740 # A BSD- or MS-compatible name lister.
18741 NM=$lt_NM
18742
18743 # Whether we need soft or hard links.
18744 LN_S=$lt_LN_S
18745
18746 # What is the maximum length of a command?
18747 max_cmd_len=$max_cmd_len
18748
18749 # Object file suffix (normally "o").
18750 objext=$ac_objext
18751
18752 # Executable file suffix (normally "").
18753 exeext=$exeext
18754
18755 # whether the shell understands "unset".
18756 lt_unset=$lt_unset
18757
18758 # turn spaces into newlines.
18759 SP2NL=$lt_lt_SP2NL
18760
18761 # turn newlines into spaces.
18762 NL2SP=$lt_lt_NL2SP
18763
18764 # An object symbol dumper.
18765 OBJDUMP=$lt_OBJDUMP
18766
18767 # Method to check whether dependent libraries are shared objects.
18768 deplibs_check_method=$lt_deplibs_check_method
18769
18770 # Command to use when deplibs_check_method == "file_magic".
18771 file_magic_cmd=$lt_file_magic_cmd
18772
18773 # The archiver.
18774 AR=$lt_AR
18775 AR_FLAGS=$lt_AR_FLAGS
18776
18777 # A symbol stripping program.
18778 STRIP=$lt_STRIP
18779
18780 # Commands used to install an old-style archive.
18781 RANLIB=$lt_RANLIB
18782 old_postinstall_cmds=$lt_old_postinstall_cmds
18783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18784
18785 # Whether to use a lock for old archive extraction.
18786 lock_old_archive_extraction=$lock_old_archive_extraction
18787
18788 # A C compiler.
18789 LTCC=$lt_CC
18790
18791 # LTCC compiler flags.
18792 LTCFLAGS=$lt_CFLAGS
18793
18794 # Take the output of nm and produce a listing of raw symbols and C names.
18795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18796
18797 # Transform the output of nm in a proper C declaration.
18798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18799
18800 # Transform the output of nm in a C name address pair.
18801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18802
18803 # Transform the output of nm in a C name address pair when lib prefix is needed.
18804 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18805
18806 # The name of the directory that contains temporary libtool files.
18807 objdir=$objdir
18808
18809 # Used to examine libraries when file_magic_cmd begins with "file".
18810 MAGIC_CMD=$MAGIC_CMD
18811
18812 # Must we lock files when doing compilation?
18813 need_locks=$lt_need_locks
18814
18815 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18816 DSYMUTIL=$lt_DSYMUTIL
18817
18818 # Tool to change global to local symbols on Mac OS X.
18819 NMEDIT=$lt_NMEDIT
18820
18821 # Tool to manipulate fat objects and archives on Mac OS X.
18822 LIPO=$lt_LIPO
18823
18824 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18825 OTOOL=$lt_OTOOL
18826
18827 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18828 OTOOL64=$lt_OTOOL64
18829
18830 # Old archive suffix (normally "a").
18831 libext=$libext
18832
18833 # Shared library suffix (normally ".so").
18834 shrext_cmds=$lt_shrext_cmds
18835
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18838
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at link time.
18841 variables_saved_for_relink=$lt_variables_saved_for_relink
18842
18843 # Do we need the "lib" prefix for modules?
18844 need_lib_prefix=$need_lib_prefix
18845
18846 # Do we need a version for libraries?
18847 need_version=$need_version
18848
18849 # Library versioning type.
18850 version_type=$version_type
18851
18852 # Shared library runtime path variable.
18853 runpath_var=$runpath_var
18854
18855 # Shared library path variable.
18856 shlibpath_var=$shlibpath_var
18857
18858 # Is shlibpath searched before the hard-coded library search path?
18859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18860
18861 # Format of library name prefix.
18862 libname_spec=$lt_libname_spec
18863
18864 # List of archive names.  First name is the real one, the rest are links.
18865 # The last name is the one that the linker finds with -lNAME
18866 library_names_spec=$lt_library_names_spec
18867
18868 # The coded name of the library, if different from the real name.
18869 soname_spec=$lt_soname_spec
18870
18871 # Permission mode override for installation of shared libraries.
18872 install_override_mode=$lt_install_override_mode
18873
18874 # Command to use after installation of a shared archive.
18875 postinstall_cmds=$lt_postinstall_cmds
18876
18877 # Command to use after uninstallation of a shared archive.
18878 postuninstall_cmds=$lt_postuninstall_cmds
18879
18880 # Commands used to finish a libtool library installation in a directory.
18881 finish_cmds=$lt_finish_cmds
18882
18883 # As "finish_cmds", except a single script fragment to be evaled but
18884 # not shown.
18885 finish_eval=$lt_finish_eval
18886
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18889
18890 # Compile-time system search path for libraries.
18891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18892
18893 # Run-time system search path for libraries.
18894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18895
18896 # Whether dlopen is supported.
18897 dlopen_support=$enable_dlopen
18898
18899 # Whether dlopen of programs is supported.
18900 dlopen_self=$enable_dlopen_self
18901
18902 # Whether dlopen of statically linked programs is supported.
18903 dlopen_self_static=$enable_dlopen_self_static
18904
18905 # Commands to strip libraries.
18906 old_striplib=$lt_old_striplib
18907 striplib=$lt_striplib
18908
18909
18910 # The linker used to build libraries.
18911 LD=$lt_LD
18912
18913 # How to create reloadable object files.
18914 reload_flag=$lt_reload_flag
18915 reload_cmds=$lt_reload_cmds
18916
18917 # Commands used to build an old-style archive.
18918 old_archive_cmds=$lt_old_archive_cmds
18919
18920 # A language specific compiler.
18921 CC=$lt_compiler
18922
18923 # Is the compiler the GNU compiler?
18924 with_gcc=$GCC
18925
18926 # Compiler flag to turn off builtin functions.
18927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18928
18929 # How to pass a linker flag through the compiler.
18930 wl=$lt_lt_prog_compiler_wl
18931
18932 # Additional compiler flags for building library objects.
18933 pic_flag=$lt_lt_prog_compiler_pic
18934
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static
18937
18938 # Does compiler simultaneously support -c and -o options?
18939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18940
18941 # Whether or not to add -lc for building shared libraries.
18942 build_libtool_need_lc=$archive_cmds_need_lc
18943
18944 # Whether or not to disallow shared libs when runtime libs are static.
18945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18946
18947 # Compiler flag to allow reflexive dlopens.
18948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18949
18950 # Compiler flag to generate shared objects directly from archives.
18951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18952
18953 # Whether the compiler copes with passing no objects directly.
18954 compiler_needs_object=$lt_compiler_needs_object
18955
18956 # Create an old-style archive from a shared archive.
18957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18958
18959 # Create a temporary old-style archive to link instead of a shared archive.
18960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18961
18962 # Commands used to build a shared archive.
18963 archive_cmds=$lt_archive_cmds
18964 archive_expsym_cmds=$lt_archive_expsym_cmds
18965
18966 # Commands used to build a loadable module if different from building
18967 # a shared archive.
18968 module_cmds=$lt_module_cmds
18969 module_expsym_cmds=$lt_module_expsym_cmds
18970
18971 # Whether we are building with GNU ld or not.
18972 with_gnu_ld=$lt_with_gnu_ld
18973
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag
18976
18977 # Flag that enforces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag
18979
18980 # Flag to hardcode \$libdir into a binary during linking.
18981 # This must work even if \$libdir does not exist
18982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18983
18984 # If ld is used when linking, flag to hardcode \$libdir into a binary
18985 # during linking.  This must work even if \$libdir does not exist.
18986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18987
18988 # Whether we need a single "-rpath" flag with a separated argument.
18989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18990
18991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18992 # DIR into the resulting binary.
18993 hardcode_direct=$hardcode_direct
18994
18995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18996 # DIR into the resulting binary and the resulting library dependency is
18997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18998 # library is relocated.
18999 hardcode_direct_absolute=$hardcode_direct_absolute
19000
19001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19002 # into the resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L
19004
19005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19006 # into the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var
19008
19009 # Set to "yes" if building a shared library automatically hardcodes DIR
19010 # into the library and all subsequent libraries and executables linked
19011 # against it.
19012 hardcode_automatic=$hardcode_automatic
19013
19014 # Set to yes if linker adds runtime paths of dependent libraries
19015 # to runtime path list.
19016 inherit_rpath=$inherit_rpath
19017
19018 # Whether libtool must link a program against all its dependency libraries.
19019 link_all_deplibs=$link_all_deplibs
19020
19021 # Fix the shell variable \$srcfile for the compiler.
19022 fix_srcfile_path=$lt_fix_srcfile_path
19023
19024 # Set to "yes" if exported symbols are required.
19025 always_export_symbols=$always_export_symbols
19026
19027 # The commands to list exported symbols.
19028 export_symbols_cmds=$lt_export_symbols_cmds
19029
19030 # Symbols that should not be listed in the preloaded symbols.
19031 exclude_expsyms=$lt_exclude_expsyms
19032
19033 # Symbols that must always be exported.
19034 include_expsyms=$lt_include_expsyms
19035
19036 # Commands necessary for linking programs (against libraries) with templates.
19037 prelink_cmds=$lt_prelink_cmds
19038
19039 # Specify filename containing input files.
19040 file_list_spec=$lt_file_list_spec
19041
19042 # How to hardcode a shared library path into an executable.
19043 hardcode_action=$hardcode_action
19044
19045 # ### END LIBTOOL CONFIG
19046
19047 _LT_EOF
19048
19049   case $host_os in
19050   aix3*)
19051     cat <<\_LT_EOF >> "$cfgfile"
19052 # AIX sometimes has problems with the GCC collect2 program.  For some
19053 # reason, if we set the COLLECT_NAMES environment variable, the problems
19054 # vanish in a puff of smoke.
19055 if test "X${COLLECT_NAMES+set}" != Xset; then
19056   COLLECT_NAMES=
19057   export COLLECT_NAMES
19058 fi
19059 _LT_EOF
19060     ;;
19061   esac
19062
19063
19064 ltmain="$ac_aux_dir/ltmain.sh"
19065
19066
19067   # We use sed instead of cat because bash on DJGPP gets confused if
19068   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19069   # text mode, it properly converts lines to CR/LF.  This bash problem
19070   # is reportedly fixed, but why not run on old versions too?
19071   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19072     || (rm -f "$cfgfile"; exit 1)
19073
19074   case $xsi_shell in
19075   yes)
19076     cat << \_LT_EOF >> "$cfgfile"
19077
19078 # func_dirname file append nondir_replacement
19079 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19080 # otherwise set result to NONDIR_REPLACEMENT.
19081 func_dirname ()
19082 {
19083   case ${1} in
19084     */*) func_dirname_result="${1%/*}${2}" ;;
19085     *  ) func_dirname_result="${3}" ;;
19086   esac
19087 }
19088
19089 # func_basename file
19090 func_basename ()
19091 {
19092   func_basename_result="${1##*/}"
19093 }
19094
19095 # func_dirname_and_basename file append nondir_replacement
19096 # perform func_basename and func_dirname in a single function
19097 # call:
19098 #   dirname:  Compute the dirname of FILE.  If nonempty,
19099 #             add APPEND to the result, otherwise set result
19100 #             to NONDIR_REPLACEMENT.
19101 #             value returned in "$func_dirname_result"
19102 #   basename: Compute filename of FILE.
19103 #             value retuned in "$func_basename_result"
19104 # Implementation must be kept synchronized with func_dirname
19105 # and func_basename. For efficiency, we do not delegate to
19106 # those functions but instead duplicate the functionality here.
19107 func_dirname_and_basename ()
19108 {
19109   case ${1} in
19110     */*) func_dirname_result="${1%/*}${2}" ;;
19111     *  ) func_dirname_result="${3}" ;;
19112   esac
19113   func_basename_result="${1##*/}"
19114 }
19115
19116 # func_stripname prefix suffix name
19117 # strip PREFIX and SUFFIX off of NAME.
19118 # PREFIX and SUFFIX must not contain globbing or regex special
19119 # characters, hashes, percent signs, but SUFFIX may contain a leading
19120 # dot (in which case that matches only a dot).
19121 func_stripname ()
19122 {
19123   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19124   # positional parameters, so assign one to ordinary parameter first.
19125   func_stripname_result=${3}
19126   func_stripname_result=${func_stripname_result#"${1}"}
19127   func_stripname_result=${func_stripname_result%"${2}"}
19128 }
19129
19130 # func_opt_split
19131 func_opt_split ()
19132 {
19133   func_opt_split_opt=${1%%=*}
19134   func_opt_split_arg=${1#*=}
19135 }
19136
19137 # func_lo2o object
19138 func_lo2o ()
19139 {
19140   case ${1} in
19141     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19142     *)    func_lo2o_result=${1} ;;
19143   esac
19144 }
19145
19146 # func_xform libobj-or-source
19147 func_xform ()
19148 {
19149   func_xform_result=${1%.*}.lo
19150 }
19151
19152 # func_arith arithmetic-term...
19153 func_arith ()
19154 {
19155   func_arith_result=$(( $* ))
19156 }
19157
19158 # func_len string
19159 # STRING may not start with a hyphen.
19160 func_len ()
19161 {
19162   func_len_result=${#1}
19163 }
19164
19165 _LT_EOF
19166     ;;
19167   *) # Bourne compatible functions.
19168     cat << \_LT_EOF >> "$cfgfile"
19169
19170 # func_dirname file append nondir_replacement
19171 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19172 # otherwise set result to NONDIR_REPLACEMENT.
19173 func_dirname ()
19174 {
19175   # Extract subdirectory from the argument.
19176   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19177   if test "X$func_dirname_result" = "X${1}"; then
19178     func_dirname_result="${3}"
19179   else
19180     func_dirname_result="$func_dirname_result${2}"
19181   fi
19182 }
19183
19184 # func_basename file
19185 func_basename ()
19186 {
19187   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19188 }
19189
19190
19191 # func_stripname prefix suffix name
19192 # strip PREFIX and SUFFIX off of NAME.
19193 # PREFIX and SUFFIX must not contain globbing or regex special
19194 # characters, hashes, percent signs, but SUFFIX may contain a leading
19195 # dot (in which case that matches only a dot).
19196 # func_strip_suffix prefix name
19197 func_stripname ()
19198 {
19199   case ${2} in
19200     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19201     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19202   esac
19203 }
19204
19205 # sed scripts:
19206 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19207 my_sed_long_arg='1s/^-[^=]*=//'
19208
19209 # func_opt_split
19210 func_opt_split ()
19211 {
19212   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19213   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19214 }
19215
19216 # func_lo2o object
19217 func_lo2o ()
19218 {
19219   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19220 }
19221
19222 # func_xform libobj-or-source
19223 func_xform ()
19224 {
19225   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19226 }
19227
19228 # func_arith arithmetic-term...
19229 func_arith ()
19230 {
19231   func_arith_result=`expr "$@"`
19232 }
19233
19234 # func_len string
19235 # STRING may not start with a hyphen.
19236 func_len ()
19237 {
19238   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19239 }
19240
19241 _LT_EOF
19242 esac
19243
19244 case $lt_shell_append in
19245   yes)
19246     cat << \_LT_EOF >> "$cfgfile"
19247
19248 # func_append var value
19249 # Append VALUE to the end of shell variable VAR.
19250 func_append ()
19251 {
19252   eval "$1+=\$2"
19253 }
19254 _LT_EOF
19255     ;;
19256   *)
19257     cat << \_LT_EOF >> "$cfgfile"
19258
19259 # func_append var value
19260 # Append VALUE to the end of shell variable VAR.
19261 func_append ()
19262 {
19263   eval "$1=\$$1\$2"
19264 }
19265
19266 _LT_EOF
19267     ;;
19268   esac
19269
19270
19271   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19272     || (rm -f "$cfgfile"; exit 1)
19273
19274   mv -f "$cfgfile" "$ofile" ||
19275     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19276   chmod +x "$ofile"
19277
19278  ;;
19279
19280   esac
19281 done # for ac_tag
19282
19283
19284 as_fn_exit 0
19285 _ACEOF
19286 ac_clean_files=$ac_clean_files_save
19287
19288 test $ac_write_fail = 0 ||
19289   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19290
19291
19292 # configure is writing to config.log, and then calls config.status.
19293 # config.status does its own redirection, appending to config.log.
19294 # Unfortunately, on DOS this fails, as config.log is still kept open
19295 # by configure, so config.status won't be able to write to it; its
19296 # output is simply discarded.  So we exec the FD to /dev/null,
19297 # effectively closing config.log, so it can be properly (re)opened and
19298 # appended to by config.status.  When coming back to configure, we
19299 # need to make the FD available again.
19300 if test "$no_create" != yes; then
19301   ac_cs_success=:
19302   ac_config_status_args=
19303   test "$silent" = yes &&
19304     ac_config_status_args="$ac_config_status_args --quiet"
19305   exec 5>/dev/null
19306   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19307   exec 5>>config.log
19308   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19309   # would make configure fail if this is the last instruction.
19310   $ac_cs_success || as_fn_exit 1
19311 fi
19312
19313 #
19314 # CONFIG_SUBDIRS section.
19315 #
19316 if test "$no_recursion" != yes; then
19317
19318   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19319   # so they do not pile up.
19320   ac_sub_configure_args=
19321   ac_prev=
19322   eval "set x $ac_configure_args"
19323   shift
19324   for ac_arg
19325   do
19326     if test -n "$ac_prev"; then
19327       ac_prev=
19328       continue
19329     fi
19330     case $ac_arg in
19331     -cache-file | --cache-file | --cache-fil | --cache-fi \
19332     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19333       ac_prev=cache_file ;;
19334     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19335     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19336     | --c=*)
19337       ;;
19338     --config-cache | -C)
19339       ;;
19340     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19341       ac_prev=srcdir ;;
19342     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19343       ;;
19344     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19345       ac_prev=prefix ;;
19346     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19347       ;;
19348     --disable-option-checking)
19349       ;;
19350     *)
19351       case $ac_arg in
19352       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19353       esac
19354       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19355     esac
19356   done
19357
19358   # Always prepend --prefix to ensure using the same prefix
19359   # in subdir configurations.
19360   ac_arg="--prefix=$prefix"
19361   case $ac_arg in
19362   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19363   esac
19364   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19365
19366   # Pass --silent
19367   if test "$silent" = yes; then
19368     ac_sub_configure_args="--silent $ac_sub_configure_args"
19369   fi
19370
19371   # Always prepend --disable-option-checking to silence warnings, since
19372   # different subdirs can have different --enable and --with options.
19373   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19374
19375   ac_popdir=`pwd`
19376   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19377
19378     # Do not complain, so a configure script can configure whichever
19379     # parts of a large source tree are present.
19380     test -d "$srcdir/$ac_dir" || continue
19381
19382     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19383     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19384     $as_echo "$ac_msg" >&6
19385     as_dir="$ac_dir"; as_fn_mkdir_p
19386     ac_builddir=.
19387
19388 case "$ac_dir" in
19389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19390 *)
19391   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19392   # A ".." for each directory in $ac_dir_suffix.
19393   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19394   case $ac_top_builddir_sub in
19395   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19396   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19397   esac ;;
19398 esac
19399 ac_abs_top_builddir=$ac_pwd
19400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19401 # for backward compatibility:
19402 ac_top_builddir=$ac_top_build_prefix
19403
19404 case $srcdir in
19405   .)  # We are building in place.
19406     ac_srcdir=.
19407     ac_top_srcdir=$ac_top_builddir_sub
19408     ac_abs_top_srcdir=$ac_pwd ;;
19409   [\\/]* | ?:[\\/]* )  # Absolute name.
19410     ac_srcdir=$srcdir$ac_dir_suffix;
19411     ac_top_srcdir=$srcdir
19412     ac_abs_top_srcdir=$srcdir ;;
19413   *) # Relative name.
19414     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19415     ac_top_srcdir=$ac_top_build_prefix$srcdir
19416     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19417 esac
19418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19419
19420
19421     cd "$ac_dir"
19422
19423     # Check for guested configure; otherwise get Cygnus style configure.
19424     if test -f "$ac_srcdir/configure.gnu"; then
19425       ac_sub_configure=$ac_srcdir/configure.gnu
19426     elif test -f "$ac_srcdir/configure"; then
19427       ac_sub_configure=$ac_srcdir/configure
19428     elif test -f "$ac_srcdir/configure.in"; then
19429       # This should be Cygnus configure.
19430       ac_sub_configure=$ac_aux_dir/configure
19431     else
19432       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19434       ac_sub_configure=
19435     fi
19436
19437     # The recursion is here.
19438     if test -n "$ac_sub_configure"; then
19439       # Make the cache file name correct relative to the subdirectory.
19440       case $cache_file in
19441       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19442       *) # Relative name.
19443         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19444       esac
19445
19446       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19447 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19448       # The eval makes quoting arguments work.
19449       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19450            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19451         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19452     fi
19453
19454     cd "$ac_popdir"
19455   done
19456 fi
19457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19458   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19460 fi
19461
19462
19463 echo Configuration Complete.  Type \'make\' to build.