12d87f3a6772574cce0be11a22d359d170596649
[cyrus-sasl.git] / saslauthd / 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 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
564
565 ac_unique_file="mechanisms.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 #  include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #  include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='LIBOBJS
603 LTLIBOBJS
604 LDAP_LIBS
605 LIB_PAM
606 MAIN_COMPAT_OBJ
607 SASL_DB_LIB
608 SASL_DB_INC
609 SASL_DB_BACKEND_STATIC
610 SASL_DB_BACKEND
611 SASL_DB_MANS
612 SASL_DB_UTILS
613 LIB_SIA
614 GSSAPIBASE_LIBS
615 GSSAPI_LIBS
616 LIB_CRYPT
617 SASL_KRB_LIB
618 LIB_DES
619 CMU_LIB_SUBDIR
620 EGREP
621 GREP
622 LIB_SOCKET
623 LN_S
624 CPP
625 am__fastdepCC_FALSE
626 am__fastdepCC_TRUE
627 CCDEPMODE
628 AMDEPBACKSLASH
629 AMDEP_FALSE
630 AMDEP_TRUE
631 am__quote
632 am__include
633 DEPDIR
634 OBJEXT
635 EXEEXT
636 ac_ct_CC
637 CPPFLAGS
638 LDFLAGS
639 CFLAGS
640 CC
641 am__untar
642 am__tar
643 AMTAR
644 am__leading_dot
645 SET_MAKE
646 AWK
647 mkdir_p
648 MKDIR_P
649 INSTALL_STRIP_PROGRAM
650 STRIP
651 install_sh
652 MAKEINFO
653 AUTOHEADER
654 AUTOMAKE
655 AUTOCONF
656 ACLOCAL
657 VERSION
658 PACKAGE
659 CYGPATH_W
660 am__isrc
661 INSTALL_DATA
662 INSTALL_SCRIPT
663 INSTALL_PROGRAM
664 SASLAUTHD_FALSE
665 SASLAUTHD_TRUE
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 target_alias
675 host_alias
676 build_alias
677 LIBS
678 ECHO_T
679 ECHO_N
680 ECHO_C
681 DEFS
682 mandir
683 localedir
684 libdir
685 psdir
686 pdfdir
687 dvidir
688 htmldir
689 infodir
690 docdir
691 oldincludedir
692 includedir
693 localstatedir
694 sharedstatedir
695 sysconfdir
696 datadir
697 datarootdir
698 libexecdir
699 sbindir
700 bindir
701 program_transform_name
702 prefix
703 exec_prefix
704 PACKAGE_URL
705 PACKAGE_BUGREPORT
706 PACKAGE_STRING
707 PACKAGE_VERSION
708 PACKAGE_TARNAME
709 PACKAGE_NAME
710 PATH_SEPARATOR
711 SHELL'
712 ac_subst_files=''
713 ac_user_opts='
714 enable_option_checking
715 with_saslauthd
716 enable_dependency_tracking
717 with_lib_subdir
718 with_openssl
719 with_des
720 enable_krb4
721 enable_gssapi
722 with_gss_impl
723 enable_sia
724 enable_auth_sasldb
725 with_dbpath
726 with_dblib
727 with_bdb_libdir
728 with_bdb_incdir
729 with_gdbm
730 enable_httpform
731 with_pam
732 with_ipctype
733 with_ldap
734 '
735       ac_precious_vars='build_alias
736 host_alias
737 target_alias
738 CC
739 CFLAGS
740 LDFLAGS
741 LIBS
742 CPPFLAGS
743 CPP'
744
745
746 # Initialize some variables set by options.
747 ac_init_help=
748 ac_init_version=false
749 ac_unrecognized_opts=
750 ac_unrecognized_sep=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
767
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
793
794 ac_prev=
795 ac_dashdash=
796 for ac_option
797 do
798   # If the previous option needs an argument, assign it.
799   if test -n "$ac_prev"; then
800     eval $ac_prev=\$ac_option
801     ac_prev=
802     continue
803   fi
804
805   case $ac_option in
806   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807   *=)   ac_optarg= ;;
808   *)    ac_optarg=yes ;;
809   esac
810
811   # Accept the important Cygnus configure options, so we can diagnose typos.
812
813   case $ac_dashdash$ac_option in
814   --)
815     ac_dashdash=yes ;;
816
817   -bindir | --bindir | --bindi | --bind | --bin | --bi)
818     ac_prev=bindir ;;
819   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820     bindir=$ac_optarg ;;
821
822   -build | --build | --buil | --bui | --bu)
823     ac_prev=build_alias ;;
824   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825     build_alias=$ac_optarg ;;
826
827   -cache-file | --cache-file | --cache-fil | --cache-fi \
828   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829     ac_prev=cache_file ;;
830   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832     cache_file=$ac_optarg ;;
833
834   --config-cache | -C)
835     cache_file=config.cache ;;
836
837   -datadir | --datadir | --datadi | --datad)
838     ac_prev=datadir ;;
839   -datadir=* | --datadir=* | --datadi=* | --datad=*)
840     datadir=$ac_optarg ;;
841
842   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843   | --dataroo | --dataro | --datar)
844     ac_prev=datarootdir ;;
845   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847     datarootdir=$ac_optarg ;;
848
849   -disable-* | --disable-*)
850     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851     # Reject names that are not valid shell variable names.
852     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853       as_fn_error $? "invalid feature name: $ac_useropt"
854     ac_useropt_orig=$ac_useropt
855     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856     case $ac_user_opts in
857       *"
858 "enable_$ac_useropt"
859 "*) ;;
860       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861          ac_unrecognized_sep=', ';;
862     esac
863     eval enable_$ac_useropt=no ;;
864
865   -docdir | --docdir | --docdi | --doc | --do)
866     ac_prev=docdir ;;
867   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868     docdir=$ac_optarg ;;
869
870   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871     ac_prev=dvidir ;;
872   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873     dvidir=$ac_optarg ;;
874
875   -enable-* | --enable-*)
876     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877     # Reject names that are not valid shell variable names.
878     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879       as_fn_error $? "invalid feature name: $ac_useropt"
880     ac_useropt_orig=$ac_useropt
881     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882     case $ac_user_opts in
883       *"
884 "enable_$ac_useropt"
885 "*) ;;
886       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887          ac_unrecognized_sep=', ';;
888     esac
889     eval enable_$ac_useropt=\$ac_optarg ;;
890
891   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893   | --exec | --exe | --ex)
894     ac_prev=exec_prefix ;;
895   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897   | --exec=* | --exe=* | --ex=*)
898     exec_prefix=$ac_optarg ;;
899
900   -gas | --gas | --ga | --g)
901     # Obsolete; use --with-gas.
902     with_gas=yes ;;
903
904   -help | --help | --hel | --he | -h)
905     ac_init_help=long ;;
906   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907     ac_init_help=recursive ;;
908   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909     ac_init_help=short ;;
910
911   -host | --host | --hos | --ho)
912     ac_prev=host_alias ;;
913   -host=* | --host=* | --hos=* | --ho=*)
914     host_alias=$ac_optarg ;;
915
916   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917     ac_prev=htmldir ;;
918   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919   | --ht=*)
920     htmldir=$ac_optarg ;;
921
922   -includedir | --includedir | --includedi | --included | --include \
923   | --includ | --inclu | --incl | --inc)
924     ac_prev=includedir ;;
925   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926   | --includ=* | --inclu=* | --incl=* | --inc=*)
927     includedir=$ac_optarg ;;
928
929   -infodir | --infodir | --infodi | --infod | --info | --inf)
930     ac_prev=infodir ;;
931   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932     infodir=$ac_optarg ;;
933
934   -libdir | --libdir | --libdi | --libd)
935     ac_prev=libdir ;;
936   -libdir=* | --libdir=* | --libdi=* | --libd=*)
937     libdir=$ac_optarg ;;
938
939   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940   | --libexe | --libex | --libe)
941     ac_prev=libexecdir ;;
942   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943   | --libexe=* | --libex=* | --libe=*)
944     libexecdir=$ac_optarg ;;
945
946   -localedir | --localedir | --localedi | --localed | --locale)
947     ac_prev=localedir ;;
948   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949     localedir=$ac_optarg ;;
950
951   -localstatedir | --localstatedir | --localstatedi | --localstated \
952   | --localstate | --localstat | --localsta | --localst | --locals)
953     ac_prev=localstatedir ;;
954   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956     localstatedir=$ac_optarg ;;
957
958   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959     ac_prev=mandir ;;
960   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961     mandir=$ac_optarg ;;
962
963   -nfp | --nfp | --nf)
964     # Obsolete; use --without-fp.
965     with_fp=no ;;
966
967   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968   | --no-cr | --no-c | -n)
969     no_create=yes ;;
970
971   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973     no_recursion=yes ;;
974
975   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977   | --oldin | --oldi | --old | --ol | --o)
978     ac_prev=oldincludedir ;;
979   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982     oldincludedir=$ac_optarg ;;
983
984   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985     ac_prev=prefix ;;
986   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987     prefix=$ac_optarg ;;
988
989   -program-prefix | --program-prefix | --program-prefi | --program-pref \
990   | --program-pre | --program-pr | --program-p)
991     ac_prev=program_prefix ;;
992   -program-prefix=* | --program-prefix=* | --program-prefi=* \
993   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994     program_prefix=$ac_optarg ;;
995
996   -program-suffix | --program-suffix | --program-suffi | --program-suff \
997   | --program-suf | --program-su | --program-s)
998     ac_prev=program_suffix ;;
999   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001     program_suffix=$ac_optarg ;;
1002
1003   -program-transform-name | --program-transform-name \
1004   | --program-transform-nam | --program-transform-na \
1005   | --program-transform-n | --program-transform- \
1006   | --program-transform | --program-transfor \
1007   | --program-transfo | --program-transf \
1008   | --program-trans | --program-tran \
1009   | --progr-tra | --program-tr | --program-t)
1010     ac_prev=program_transform_name ;;
1011   -program-transform-name=* | --program-transform-name=* \
1012   | --program-transform-nam=* | --program-transform-na=* \
1013   | --program-transform-n=* | --program-transform-=* \
1014   | --program-transform=* | --program-transfor=* \
1015   | --program-transfo=* | --program-transf=* \
1016   | --program-trans=* | --program-tran=* \
1017   | --progr-tra=* | --program-tr=* | --program-t=*)
1018     program_transform_name=$ac_optarg ;;
1019
1020   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021     ac_prev=pdfdir ;;
1022   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023     pdfdir=$ac_optarg ;;
1024
1025   -psdir | --psdir | --psdi | --psd | --ps)
1026     ac_prev=psdir ;;
1027   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028     psdir=$ac_optarg ;;
1029
1030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031   | -silent | --silent | --silen | --sile | --sil)
1032     silent=yes ;;
1033
1034   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035     ac_prev=sbindir ;;
1036   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037   | --sbi=* | --sb=*)
1038     sbindir=$ac_optarg ;;
1039
1040   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042   | --sharedst | --shareds | --shared | --share | --shar \
1043   | --sha | --sh)
1044     ac_prev=sharedstatedir ;;
1045   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048   | --sha=* | --sh=*)
1049     sharedstatedir=$ac_optarg ;;
1050
1051   -site | --site | --sit)
1052     ac_prev=site ;;
1053   -site=* | --site=* | --sit=*)
1054     site=$ac_optarg ;;
1055
1056   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057     ac_prev=srcdir ;;
1058   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059     srcdir=$ac_optarg ;;
1060
1061   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062   | --syscon | --sysco | --sysc | --sys | --sy)
1063     ac_prev=sysconfdir ;;
1064   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066     sysconfdir=$ac_optarg ;;
1067
1068   -target | --target | --targe | --targ | --tar | --ta | --t)
1069     ac_prev=target_alias ;;
1070   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071     target_alias=$ac_optarg ;;
1072
1073   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074     verbose=yes ;;
1075
1076   -version | --version | --versio | --versi | --vers | -V)
1077     ac_init_version=: ;;
1078
1079   -with-* | --with-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error $? "invalid package name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "with_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval with_$ac_useropt=\$ac_optarg ;;
1094
1095   -without-* | --without-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error $? "invalid package name: $ac_useropt"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval with_$ac_useropt=no ;;
1110
1111   --x)
1112     # Obsolete; use --with-x.
1113     with_x=yes ;;
1114
1115   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116   | --x-incl | --x-inc | --x-in | --x-i)
1117     ac_prev=x_includes ;;
1118   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120     x_includes=$ac_optarg ;;
1121
1122   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124     ac_prev=x_libraries ;;
1125   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127     x_libraries=$ac_optarg ;;
1128
1129   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information"
1131     ;;
1132
1133   *=*)
1134     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135     # Reject names that are not valid shell variable names.
1136     case $ac_envvar in #(
1137       '' | [0-9]* | *[!_$as_cr_alnum]* )
1138       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139     esac
1140     eval $ac_envvar=\$ac_optarg
1141     export $ac_envvar ;;
1142
1143   *)
1144     # FIXME: should be removed in autoconf 3.0.
1145     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149     ;;
1150
1151   esac
1152 done
1153
1154 if test -n "$ac_prev"; then
1155   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156   as_fn_error $? "missing argument to $ac_option"
1157 fi
1158
1159 if test -n "$ac_unrecognized_opts"; then
1160   case $enable_option_checking in
1161     no) ;;
1162     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164   esac
1165 fi
1166
1167 # Check all directory arguments for consistency.
1168 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169                 datadir sysconfdir sharedstatedir localstatedir includedir \
1170                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171                 libdir localedir mandir
1172 do
1173   eval ac_val=\$$ac_var
1174   # Remove trailing slashes.
1175   case $ac_val in
1176     */ )
1177       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178       eval $ac_var=\$ac_val;;
1179   esac
1180   # Be sure to have absolute directory names.
1181   case $ac_val in
1182     [\\/$]* | ?:[\\/]* )  continue;;
1183     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184   esac
1185   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186 done
1187
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1194
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197   if test "x$build_alias" = x; then
1198     cross_compiling=maybe
1199     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1200     If a cross compiler is detected then cross compile mode will be used" >&2
1201   elif test "x$build_alias" != "x$host_alias"; then
1202     cross_compiling=yes
1203   fi
1204 fi
1205
1206 ac_tool_prefix=
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208
1209 test "$silent" = yes && exec 6>/dev/null
1210
1211
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215   as_fn_error $? "working directory cannot be determined"
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217   as_fn_error $? "pwd does not report name of working directory"
1218
1219
1220 # Find the source files, if location was not specified.
1221 if test -z "$srcdir"; then
1222   ac_srcdir_defaulted=yes
1223   # Try the directory containing this script, then the parent directory.
1224   ac_confdir=`$as_dirname -- "$as_myself" ||
1225 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1226          X"$as_myself" : 'X\(//\)[^/]' \| \
1227          X"$as_myself" : 'X\(//\)$' \| \
1228          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1229 $as_echo X"$as_myself" |
1230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231             s//\1/
1232             q
1233           }
1234           /^X\(\/\/\)[^/].*/{
1235             s//\1/
1236             q
1237           }
1238           /^X\(\/\/\)$/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\).*/{
1243             s//\1/
1244             q
1245           }
1246           s/.*/./; q'`
1247   srcdir=$ac_confdir
1248   if test ! -r "$srcdir/$ac_unique_file"; then
1249     srcdir=..
1250   fi
1251 else
1252   ac_srcdir_defaulted=no
1253 fi
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1257 fi
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 ac_abs_confdir=`(
1260         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1261         pwd)`
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264   srcdir=.
1265 fi
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1269 case $srcdir in
1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 esac
1272 for ac_var in $ac_precious_vars; do
1273   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274   eval ac_env_${ac_var}_value=\$${ac_var}
1275   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 done
1278
1279 #
1280 # Report the --help message.
1281 #
1282 if test "$ac_init_help" = "long"; then
1283   # Omit some internal or obsolete options to make the list less imposing.
1284   # This message is too long to be a string in the A/UX 3.1 sh.
1285   cat <<_ACEOF
1286 \`configure' configures this package to adapt to many kinds of systems.
1287
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1289
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE.  See below for descriptions of some of the useful variables.
1292
1293 Defaults for the options are specified in brackets.
1294
1295 Configuration:
1296   -h, --help              display this help and exit
1297       --help=short        display options specific to this package
1298       --help=recursive    display the short help of all the included packages
1299   -V, --version           display version information and exit
1300   -q, --quiet, --silent   do not print \`checking ...' messages
1301       --cache-file=FILE   cache test results in FILE [disabled]
1302   -C, --config-cache      alias for \`--cache-file=config.cache'
1303   -n, --no-create         do not create output files
1304       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1305
1306 Installation directories:
1307   --prefix=PREFIX         install architecture-independent files in PREFIX
1308                           [$ac_default_prefix]
1309   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1310                           [PREFIX]
1311
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1316
1317 For better control, use the options below.
1318
1319 Fine tuning of the installation directories:
1320   --bindir=DIR            user executables [EPREFIX/bin]
1321   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1322   --libexecdir=DIR        program executables [EPREFIX/libexec]
1323   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1324   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1325   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1326   --libdir=DIR            object code libraries [EPREFIX/lib]
1327   --includedir=DIR        C header files [PREFIX/include]
1328   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1329   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1330   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1331   --infodir=DIR           info documentation [DATAROOTDIR/info]
1332   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1333   --mandir=DIR            man documentation [DATAROOTDIR/man]
1334   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1335   --htmldir=DIR           html documentation [DOCDIR]
1336   --dvidir=DIR            dvi documentation [DOCDIR]
1337   --pdfdir=DIR            pdf documentation [DOCDIR]
1338   --psdir=DIR             ps documentation [DOCDIR]
1339 _ACEOF
1340
1341   cat <<\_ACEOF
1342
1343 Program names:
1344   --program-prefix=PREFIX            prepend PREFIX to installed program names
1345   --program-suffix=SUFFIX            append SUFFIX to installed program names
1346   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1347
1348 System types:
1349   --build=BUILD     configure for building on BUILD [guessed]
1350   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1351 _ACEOF
1352 fi
1353
1354 if test -n "$ac_init_help"; then
1355
1356   cat <<\_ACEOF
1357
1358 Optional Features:
1359   --disable-option-checking  ignore unrecognized --enable/--with options
1360   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1361   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1362   --disable-dependency-tracking  speeds up one-time build
1363   --enable-dependency-tracking   do not reject slow dependency extractors
1364   --enable-krb4           enable KERBEROS_V4 authentication [no]
1365   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1366   --enable-sia            enable SIA authentication no
1367   --enable-auth-sasldb    enable experimental SASLdb authentication module no
1368   --enable-httpform       enable HTTP form authentication [no]
1369
1370 Optional Packages:
1371   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1372   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1373   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
1374   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1375   --with-openssl=PATH     use OpenSSL from PATH
1376   --with-des=DIR          with DES (look in DIR) yes
1377   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1378                           choose specific GSSAPI implementation [[auto]]
1379   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
1380   --with-dblib=DBLIB      set the DB library to use berkeley
1381   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
1382   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
1383   --with-gdbm=PATH        use gdbm from PATH
1384   --with-pam=DIR          use PAM (rooted in DIR) yes
1385   --with-ipctype={unix,doors}    use ipctype unix
1386   --with-ldap=DIR         use LDAP (in DIR) no
1387
1388 Some influential environment variables:
1389   CC          C compiler command
1390   CFLAGS      C compiler flags
1391   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1392               nonstandard directory <lib dir>
1393   LIBS        libraries to pass to the linker, e.g. -l<library>
1394   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395               you have headers in a nonstandard directory <include dir>
1396   CPP         C preprocessor
1397
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1400
1401 Report bugs to the package provider.
1402 _ACEOF
1403 ac_status=$?
1404 fi
1405
1406 if test "$ac_init_help" = "recursive"; then
1407   # If there are subdirs, report their specific --help.
1408   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409     test -d "$ac_dir" ||
1410       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411       continue
1412     ac_builddir=.
1413
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *)
1417   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418   # A ".." for each directory in $ac_dir_suffix.
1419   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420   case $ac_top_builddir_sub in
1421   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423   esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1429
1430 case $srcdir in
1431   .)  # We are building in place.
1432     ac_srcdir=.
1433     ac_top_srcdir=$ac_top_builddir_sub
1434     ac_abs_top_srcdir=$ac_pwd ;;
1435   [\\/]* | ?:[\\/]* )  # Absolute name.
1436     ac_srcdir=$srcdir$ac_dir_suffix;
1437     ac_top_srcdir=$srcdir
1438     ac_abs_top_srcdir=$srcdir ;;
1439   *) # Relative name.
1440     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441     ac_top_srcdir=$ac_top_build_prefix$srcdir
1442     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446     cd "$ac_dir" || { ac_status=$?; continue; }
1447     # Check for guested configure.
1448     if test -f "$ac_srcdir/configure.gnu"; then
1449       echo &&
1450       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451     elif test -f "$ac_srcdir/configure"; then
1452       echo &&
1453       $SHELL "$ac_srcdir/configure" --help=recursive
1454     else
1455       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456     fi || ac_status=$?
1457     cd "$ac_pwd" || { ac_status=$?; break; }
1458   done
1459 fi
1460
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463   cat <<\_ACEOF
1464 configure
1465 generated by GNU Autoconf 2.68
1466
1467 Copyright (C) 2010 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471   exit
1472 fi
1473
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1477
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1482 {
1483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484   rm -f conftest.$ac_objext
1485   if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488   *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492   (eval "$ac_compile") 2>conftest.err
1493   ac_status=$?
1494   if test -s conftest.err; then
1495     grep -v '^ *+' conftest.err >conftest.er1
1496     cat conftest.er1 >&5
1497     mv -f conftest.er1 conftest.err
1498   fi
1499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500   test $ac_status = 0; } && {
1501          test -z "$ac_c_werror_flag" ||
1502          test ! -s conftest.err
1503        } && test -s conftest.$ac_objext; then :
1504   ac_retval=0
1505 else
1506   $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1508
1509         ac_retval=1
1510 fi
1511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512   as_fn_set_status $ac_retval
1513
1514 } # ac_fn_c_try_compile
1515
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_cpp ()
1520 {
1521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522   if { { ac_try="$ac_cpp conftest.$ac_ext"
1523 case "(($ac_try" in
1524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525   *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530   ac_status=$?
1531   if test -s conftest.err; then
1532     grep -v '^ *+' conftest.err >conftest.er1
1533     cat conftest.er1 >&5
1534     mv -f conftest.er1 conftest.err
1535   fi
1536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537   test $ac_status = 0; } > conftest.i && {
1538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539          test ! -s conftest.err
1540        }; then :
1541   ac_retval=0
1542 else
1543   $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546     ac_retval=1
1547 fi
1548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549   as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_cpp
1552
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1557 {
1558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559   rm -f conftest.$ac_objext conftest$ac_exeext
1560   if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563   *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567   (eval "$ac_link") 2>conftest.err
1568   ac_status=$?
1569   if test -s conftest.err; then
1570     grep -v '^ *+' conftest.err >conftest.er1
1571     cat conftest.er1 >&5
1572     mv -f conftest.er1 conftest.err
1573   fi
1574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575   test $ac_status = 0; } && {
1576          test -z "$ac_c_werror_flag" ||
1577          test ! -s conftest.err
1578        } && test -s conftest$ac_exeext && {
1579          test "$cross_compiling" = yes ||
1580          $as_test_x conftest$ac_exeext
1581        }; then :
1582   ac_retval=0
1583 else
1584   $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587         ac_retval=1
1588 fi
1589   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591   # interfere with the next link command; also delete a directory that is
1592   # left behind by Apple's compiler.  We do this before executing the actions.
1593   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595   as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_link
1598
1599 # ac_fn_c_check_func LINENO FUNC VAR
1600 # ----------------------------------
1601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1602 ac_fn_c_check_func ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608   $as_echo_n "(cached) " >&6
1609 else
1610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h.  */
1612 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1614 #define $2 innocuous_$2
1615
1616 /* System header to define __stub macros and hopefully few prototypes,
1617     which can conflict with char $2 (); below.
1618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1619     <limits.h> exists even on freestanding compilers.  */
1620
1621 #ifdef __STDC__
1622 # include <limits.h>
1623 #else
1624 # include <assert.h>
1625 #endif
1626
1627 #undef $2
1628
1629 /* Override any GCC internal prototype to avoid an error.
1630    Use char because int might match the return type of a GCC
1631    builtin and then its argument prototype would still apply.  */
1632 #ifdef __cplusplus
1633 extern "C"
1634 #endif
1635 char $2 ();
1636 /* The GNU C library defines this for functions which it implements
1637     to always fail with ENOSYS.  Some functions are actually named
1638     something starting with __ and the normal name is an alias.  */
1639 #if defined __stub_$2 || defined __stub___$2
1640 choke me
1641 #endif
1642
1643 int
1644 main ()
1645 {
1646 return $2 ();
1647   ;
1648   return 0;
1649 }
1650 _ACEOF
1651 if ac_fn_c_try_link "$LINENO"; then :
1652   eval "$3=yes"
1653 else
1654   eval "$3=no"
1655 fi
1656 rm -f core conftest.err conftest.$ac_objext \
1657     conftest$ac_exeext conftest.$ac_ext
1658 fi
1659 eval ac_res=\$$3
1660                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664 } # ac_fn_c_check_func
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_link") 2>&5
1681   ac_status=$?
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684   { { case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_try") 2>&5
1691   ac_status=$?
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; }; }; then :
1694   ac_retval=0
1695 else
1696   $as_echo "$as_me: program exited with status $ac_status" >&5
1697        $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700        ac_retval=$ac_status
1701 fi
1702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1709 # --------------------------------------------
1710 # Tries to find the compile-time value of EXPR in a program that includes
1711 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1712 # computed
1713 ac_fn_c_compute_int ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if test "$cross_compiling" = yes; then
1717     # Depending upon the size, compute the lo and hi bounds.
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h.  */
1720 $4
1721 int
1722 main ()
1723 {
1724 static int test_array [1 - 2 * !(($2) >= 0)];
1725 test_array [0] = 0
1726
1727   ;
1728   return 0;
1729 }
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732   ac_lo=0 ac_mid=0
1733   while :; do
1734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h.  */
1736 $4
1737 int
1738 main ()
1739 {
1740 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1741 test_array [0] = 0
1742
1743   ;
1744   return 0;
1745 }
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748   ac_hi=$ac_mid; break
1749 else
1750   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1751                         if test $ac_lo -le $ac_mid; then
1752                           ac_lo= ac_hi=
1753                           break
1754                         fi
1755                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758   done
1759 else
1760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h.  */
1762 $4
1763 int
1764 main ()
1765 {
1766 static int test_array [1 - 2 * !(($2) < 0)];
1767 test_array [0] = 0
1768
1769   ;
1770   return 0;
1771 }
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774   ac_hi=-1 ac_mid=-1
1775   while :; do
1776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 $4
1779 int
1780 main ()
1781 {
1782 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1783 test_array [0] = 0
1784
1785   ;
1786   return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790   ac_lo=$ac_mid; break
1791 else
1792   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1793                         if test $ac_mid -le $ac_hi; then
1794                           ac_lo= ac_hi=
1795                           break
1796                         fi
1797                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800   done
1801 else
1802   ac_lo= ac_hi=
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 # Binary search between lo and hi bounds.
1808 while test "x$ac_lo" != "x$ac_hi"; do
1809   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 $4
1813 int
1814 main ()
1815 {
1816 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1817 test_array [0] = 0
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824   ac_hi=$ac_mid
1825 else
1826   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 done
1830 case $ac_lo in #((
1831 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1832 '') ac_retval=1 ;;
1833 esac
1834   else
1835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 $4
1838 static long int longval () { return $2; }
1839 static unsigned long int ulongval () { return $2; }
1840 #include <stdio.h>
1841 #include <stdlib.h>
1842 int
1843 main ()
1844 {
1845
1846   FILE *f = fopen ("conftest.val", "w");
1847   if (! f)
1848     return 1;
1849   if (($2) < 0)
1850     {
1851       long int i = longval ();
1852       if (i != ($2))
1853         return 1;
1854       fprintf (f, "%ld", i);
1855     }
1856   else
1857     {
1858       unsigned long int i = ulongval ();
1859       if (i != ($2))
1860         return 1;
1861       fprintf (f, "%lu", i);
1862     }
1863   /* Do not output a trailing newline, as this causes \r\n confusion
1864      on some platforms.  */
1865   return ferror (f) || fclose (f) != 0;
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_run "$LINENO"; then :
1872   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1873 else
1874   ac_retval=1
1875 fi
1876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1877   conftest.$ac_objext conftest.beam conftest.$ac_ext
1878 rm -f conftest.val
1879
1880   fi
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_compute_int
1885
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896   $as_echo_n "(cached) " >&6
1897 else
1898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h.  */
1900 $4
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904   eval "$3=yes"
1905 else
1906   eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_header_compile
1916
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1921 # accordingly.
1922 ac_fn_c_check_header_mongrel ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   if eval \${$3+:} false; then :
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929   $as_echo_n "(cached) " >&6
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 else
1935   # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h.  */
1940 $4
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944   ac_header_compiler=yes
1945 else
1946   ac_header_compiler=no
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1951
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h.  */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960   ac_header_preproc=yes
1961 else
1962   ac_header_preproc=no
1963 fi
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1967
1968 # So?  What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970   yes:no: )
1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975     ;;
1976   no:yes:* )
1977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987     ;;
1988 esac
1989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992   $as_echo_n "(cached) " >&6
1993 else
1994   eval "$3=\$ac_header_compiler"
1995 fi
1996 eval ac_res=\$$3
1997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 fi
2000   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_header_mongrel
2003
2004 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2005 # -------------------------------------------
2006 # Tests whether TYPE exists after having included INCLUDES, setting cache
2007 # variable VAR accordingly.
2008 ac_fn_c_check_type ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   eval "$3=no"
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $4
2020 int
2021 main ()
2022 {
2023 if (sizeof ($2))
2024          return 0;
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2032 $4
2033 int
2034 main ()
2035 {
2036 if (sizeof (($2)))
2037             return 0;
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043
2044 else
2045   eval "$3=yes"
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056 } # ac_fn_c_check_type
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2060
2061 It was created by $as_me, which was
2062 generated by GNU Autoconf 2.68.  Invocation command line was
2063
2064   $ $0 $@
2065
2066 _ACEOF
2067 exec 5>>config.log
2068 {
2069 cat <<_ASUNAME
2070 ## --------- ##
2071 ## Platform. ##
2072 ## --------- ##
2073
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2082
2083 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2084 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2087 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2088 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2089 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2090
2091 _ASUNAME
2092
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098     $as_echo "PATH: $as_dir"
2099   done
2100 IFS=$as_save_IFS
2101
2102 } >&5
2103
2104 cat >&5 <<_ACEOF
2105
2106
2107 ## ----------- ##
2108 ## Core tests. ##
2109 ## ----------- ##
2110
2111 _ACEOF
2112
2113
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_configure_args=
2120 ac_configure_args0=
2121 ac_configure_args1=
2122 ac_must_keep_next=false
2123 for ac_pass in 1 2
2124 do
2125   for ac_arg
2126   do
2127     case $ac_arg in
2128     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130     | -silent | --silent | --silen | --sile | --sil)
2131       continue ;;
2132     *\'*)
2133       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134     esac
2135     case $ac_pass in
2136     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2137     2)
2138       as_fn_append ac_configure_args1 " '$ac_arg'"
2139       if test $ac_must_keep_next = true; then
2140         ac_must_keep_next=false # Got value, back to normal.
2141       else
2142         case $ac_arg in
2143           *=* | --config-cache | -C | -disable-* | --disable-* \
2144           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146           | -with-* | --with-* | -without-* | --without-* | --x)
2147             case "$ac_configure_args0 " in
2148               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149             esac
2150             ;;
2151           -* ) ac_must_keep_next=true ;;
2152         esac
2153       fi
2154       as_fn_append ac_configure_args " '$ac_arg'"
2155       ;;
2156     esac
2157   done
2158 done
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2161
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log.  We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168   # Save into config.log some information that might help in debugging.
2169   {
2170     echo
2171
2172     $as_echo "## ---------------- ##
2173 ## Cache variables. ##
2174 ## ---------------- ##"
2175     echo
2176     # The following way of writing the cache mishandles newlines in values,
2177 (
2178   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2179     eval ac_val=\$$ac_var
2180     case $ac_val in #(
2181     *${as_nl}*)
2182       case $ac_var in #(
2183       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2185       esac
2186       case $ac_var in #(
2187       _ | IFS | as_nl) ;; #(
2188       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2189       *) { eval $ac_var=; unset $ac_var;} ;;
2190       esac ;;
2191     esac
2192   done
2193   (set) 2>&1 |
2194     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2195     *${as_nl}ac_space=\ *)
2196       sed -n \
2197         "s/'\''/'\''\\\\'\'''\''/g;
2198           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2199       ;; #(
2200     *)
2201       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2202       ;;
2203     esac |
2204     sort
2205 )
2206     echo
2207
2208     $as_echo "## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##"
2211     echo
2212     for ac_var in $ac_subst_vars
2213     do
2214       eval ac_val=\$$ac_var
2215       case $ac_val in
2216       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217       esac
2218       $as_echo "$ac_var='\''$ac_val'\''"
2219     done | sort
2220     echo
2221
2222     if test -n "$ac_subst_files"; then
2223       $as_echo "## ------------------- ##
2224 ## File substitutions. ##
2225 ## ------------------- ##"
2226       echo
2227       for ac_var in $ac_subst_files
2228       do
2229         eval ac_val=\$$ac_var
2230         case $ac_val in
2231         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232         esac
2233         $as_echo "$ac_var='\''$ac_val'\''"
2234       done | sort
2235       echo
2236     fi
2237
2238     if test -s confdefs.h; then
2239       $as_echo "## ----------- ##
2240 ## confdefs.h. ##
2241 ## ----------- ##"
2242       echo
2243       cat confdefs.h
2244       echo
2245     fi
2246     test "$ac_signal" != 0 &&
2247       $as_echo "$as_me: caught signal $ac_signal"
2248     $as_echo "$as_me: exit $exit_status"
2249   } >&5
2250   rm -f core *.core core.conftest.* &&
2251     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2252     exit $exit_status
2253 ' 0
2254 for ac_signal in 1 2 13 15; do
2255   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2256 done
2257 ac_signal=0
2258
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2261
2262 $as_echo "/* confdefs.h */" > confdefs.h
2263
2264 # Predefined preprocessor variables.
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_NAME "$PACKAGE_NAME"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_STRING "$PACKAGE_STRING"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_URL "$PACKAGE_URL"
2288 _ACEOF
2289
2290
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2293 ac_site_file1=NONE
2294 ac_site_file2=NONE
2295 if test -n "$CONFIG_SITE"; then
2296   # We do not want a PATH search for config.site.
2297   case $CONFIG_SITE in #((
2298     -*)  ac_site_file1=./$CONFIG_SITE;;
2299     */*) ac_site_file1=$CONFIG_SITE;;
2300     *)   ac_site_file1=./$CONFIG_SITE;;
2301   esac
2302 elif test "x$prefix" != xNONE; then
2303   ac_site_file1=$prefix/share/config.site
2304   ac_site_file2=$prefix/etc/config.site
2305 else
2306   ac_site_file1=$ac_default_prefix/share/config.site
2307   ac_site_file2=$ac_default_prefix/etc/config.site
2308 fi
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2310 do
2311   test "x$ac_site_file" = xNONE && continue
2312   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315     sed 's/^/| /' "$ac_site_file" >&5
2316     . "$ac_site_file" \
2317       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See \`config.log' for more details" "$LINENO" 5; }
2321   fi
2322 done
2323
2324 if test -r "$cache_file"; then
2325   # Some versions of bash will fail to source /dev/null (special files
2326   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2327   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 $as_echo "$as_me: loading cache $cache_file" >&6;}
2330     case $cache_file in
2331       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332       *)                      . "./$cache_file";;
2333     esac
2334   fi
2335 else
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 $as_echo "$as_me: creating cache $cache_file" >&6;}
2338   >$cache_file
2339 fi
2340
2341 # Check that the precious variables saved in the cache have kept the same
2342 # value.
2343 ac_cache_corrupted=false
2344 for ac_var in $ac_precious_vars; do
2345   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2346   eval ac_new_set=\$ac_env_${ac_var}_set
2347   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2348   eval ac_new_val=\$ac_env_${ac_var}_value
2349   case $ac_old_set,$ac_new_set in
2350     set,)
2351       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2353       ac_cache_corrupted=: ;;
2354     ,set)
2355       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2356 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2357       ac_cache_corrupted=: ;;
2358     ,);;
2359     *)
2360       if test "x$ac_old_val" != "x$ac_new_val"; then
2361         # differences in whitespace do not lead to failure.
2362         ac_old_val_w=`echo x $ac_old_val`
2363         ac_new_val_w=`echo x $ac_new_val`
2364         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2365           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2366 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2367           ac_cache_corrupted=:
2368         else
2369           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2370 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2371           eval $ac_var=\$ac_old_val
2372         fi
2373         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2374 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2375         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2376 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2377       fi;;
2378   esac
2379   # Pass precious variables to config.status.
2380   if test "$ac_new_set" = set; then
2381     case $ac_new_val in
2382     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2383     *) ac_arg=$ac_var=$ac_new_val ;;
2384     esac
2385     case " $ac_configure_args " in
2386       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2387       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2388     esac
2389   fi
2390 done
2391 if $ac_cache_corrupted; then
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2395 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2396   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2397 fi
2398 ## -------------------- ##
2399 ## Main body of script. ##
2400 ## -------------------- ##
2401
2402 ac_ext=c
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2407
2408
2409
2410
2411 ac_aux_dir=
2412 for ac_dir in config "$srcdir"/config; do
2413   if test -f "$ac_dir/install-sh"; then
2414     ac_aux_dir=$ac_dir
2415     ac_install_sh="$ac_aux_dir/install-sh -c"
2416     break
2417   elif test -f "$ac_dir/install.sh"; then
2418     ac_aux_dir=$ac_dir
2419     ac_install_sh="$ac_aux_dir/install.sh -c"
2420     break
2421   elif test -f "$ac_dir/shtool"; then
2422     ac_aux_dir=$ac_dir
2423     ac_install_sh="$ac_aux_dir/shtool install -c"
2424     break
2425   fi
2426 done
2427 if test -z "$ac_aux_dir"; then
2428   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2429 fi
2430
2431 # These three variables are undocumented and unsupported,
2432 # and are intended to be withdrawn in a future Autoconf release.
2433 # They can cause serious problems if a builder's source tree is in a directory
2434 # whose full name contains unusual characters.
2435 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2436 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2437 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2438
2439
2440 # Make sure we can run config.sub.
2441 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2442   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2443
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2445 $as_echo_n "checking build system type... " >&6; }
2446 if ${ac_cv_build+:} false; then :
2447   $as_echo_n "(cached) " >&6
2448 else
2449   ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2455   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2459 $as_echo "$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2461 *-*-*) ;;
2462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2463 esac
2464 build=$ac_cv_build
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_build
2467 shift
2468 build_cpu=$1
2469 build_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 build_os=$*
2474 IFS=$ac_save_IFS
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2479 $as_echo_n "checking host system type... " >&6; }
2480 if ${ac_cv_host+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   if test "x$host_alias" = x; then
2484   ac_cv_host=$ac_cv_build
2485 else
2486   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2488 fi
2489
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2492 $as_echo "$ac_cv_host" >&6; }
2493 case $ac_cv_host in
2494 *-*-*) ;;
2495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2496 esac
2497 host=$ac_cv_host
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_host
2500 shift
2501 host_cpu=$1
2502 host_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 host_os=$*
2507 IFS=$ac_save_IFS
2508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2509
2510
2511
2512
2513 # Check whether --with-saslauthd was given.
2514 if test "${with_saslauthd+set}" = set; then :
2515   withval=$with_saslauthd; with_saslauthd=$withval
2516 else
2517   with_saslauthd=yes
2518 fi
2519
2520   if test "$with_saslauthd" = yes; then
2521     with_saslauthd="/var/state/saslauthd"
2522   fi
2523
2524 $as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h
2525
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
2529 _ACEOF
2530
2531  if test "$with_saslauthd" != no; then
2532   SASLAUTHD_TRUE=
2533   SASLAUTHD_FALSE='#'
2534 else
2535   SASLAUTHD_TRUE='#'
2536   SASLAUTHD_FALSE=
2537 fi
2538
2539
2540 am__api_version='1.10'
2541
2542 # Find a good install program.  We prefer a C program (faster),
2543 # so one script is as good as another.  But avoid the broken or
2544 # incompatible versions:
2545 # SysV /etc/install, /usr/sbin/install
2546 # SunOS /usr/etc/install
2547 # IRIX /sbin/install
2548 # AIX /bin/install
2549 # AmigaOS /C/install, which installs bootblocks on floppy discs
2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553 # OS/2's system install, which has a completely different semantic
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 # Reject install programs that cannot install multiple files.
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2558 if test -z "$INSTALL"; then
2559 if ${ac_cv_path_install+:} false; then :
2560   $as_echo_n "(cached) " >&6
2561 else
2562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     # Account for people who put trailing slashes in PATH elements.
2568 case $as_dir/ in #((
2569   ./ | .// | /[cC]/* | \
2570   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2571   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2572   /usr/ucb/* ) ;;
2573   *)
2574     # OSF1 and SCO ODT 3.0 have their own names for install.
2575     # Don't use installbsd from OSF since it installs stuff as root
2576     # by default.
2577     for ac_prog in ginstall scoinst install; do
2578       for ac_exec_ext in '' $ac_executable_extensions; do
2579         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2580           if test $ac_prog = install &&
2581             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582             # AIX install.  It has an incompatible calling convention.
2583             :
2584           elif test $ac_prog = install &&
2585             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586             # program-specific install script used by HP pwplus--don't use.
2587             :
2588           else
2589             rm -rf conftest.one conftest.two conftest.dir
2590             echo one > conftest.one
2591             echo two > conftest.two
2592             mkdir conftest.dir
2593             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2594               test -s conftest.one && test -s conftest.two &&
2595               test -s conftest.dir/conftest.one &&
2596               test -s conftest.dir/conftest.two
2597             then
2598               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2599               break 3
2600             fi
2601           fi
2602         fi
2603       done
2604     done
2605     ;;
2606 esac
2607
2608   done
2609 IFS=$as_save_IFS
2610
2611 rm -rf conftest.one conftest.two conftest.dir
2612
2613 fi
2614   if test "${ac_cv_path_install+set}" = set; then
2615     INSTALL=$ac_cv_path_install
2616   else
2617     # As a last resort, use the slow shell script.  Don't cache a
2618     # value for INSTALL within a source directory, because that will
2619     # break other packages using the cache if that directory is
2620     # removed, or if the value is a relative name.
2621     INSTALL=$ac_install_sh
2622   fi
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625 $as_echo "$INSTALL" >&6; }
2626
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632
2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2636 $as_echo_n "checking whether build environment is sane... " >&6; }
2637 # Just in case
2638 sleep 1
2639 echo timestamp > conftest.file
2640 # Do `set' in a subshell so we don't clobber the current shell's
2641 # arguments.  Must try -L first in case configure is actually a
2642 # symlink; some systems play weird games with the mod time of symlinks
2643 # (eg FreeBSD returns the mod time of the symlink's containing
2644 # directory).
2645 if (
2646    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2647    if test "$*" = "X"; then
2648       # -L didn't work.
2649       set X `ls -t $srcdir/configure conftest.file`
2650    fi
2651    rm -f conftest.file
2652    if test "$*" != "X $srcdir/configure conftest.file" \
2653       && test "$*" != "X conftest.file $srcdir/configure"; then
2654
2655       # If neither matched, then we have a broken ls.  This can happen
2656       # if, for instance, CONFIG_SHELL is bash and it inherits a
2657       # broken ls alias from the environment.  This has actually
2658       # happened.  Such a system could not be considered "sane".
2659       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2660 alias in your environment" "$LINENO" 5
2661    fi
2662
2663    test "$2" = conftest.file
2664    )
2665 then
2666    # Ok.
2667    :
2668 else
2669    as_fn_error $? "newly created file is older than distributed files!
2670 Check your system clock" "$LINENO" 5
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 test "$program_prefix" != NONE &&
2675   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2676 # Use a double $ so make ignores it.
2677 test "$program_suffix" != NONE &&
2678   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2679 # Double any \ or $.
2680 # By default was `s,x,x', remove it if useless.
2681 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2682 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2683
2684 # expand $ac_aux_dir to an absolute path
2685 am_aux_dir=`cd $ac_aux_dir && pwd`
2686
2687 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2688 # Use eval to expand $SHELL
2689 if eval "$MISSING --run true"; then
2690   am_missing_run="$MISSING --run "
2691 else
2692   am_missing_run=
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2694 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2695 fi
2696
2697 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2698
2699 # Installed binaries are usually stripped using `strip' when the user
2700 # run `make install-strip'.  However `strip' might not be the right
2701 # tool to use in cross-compilation environments, therefore Automake
2702 # will honor the `STRIP' environment variable to overrule this program.
2703 if test "$cross_compiling" != no; then
2704   if test -n "$ac_tool_prefix"; then
2705   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}strip; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_STRIP+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   if test -n "$STRIP"; then
2713   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720     for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727   done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 STRIP=$ac_cv_prog_STRIP
2733 if test -n "$STRIP"; then
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735 $as_echo "$STRIP" >&6; }
2736 else
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 fi
2743 if test -z "$ac_cv_prog_STRIP"; then
2744   ac_ct_STRIP=$STRIP
2745   # Extract the first word of "strip", so it can be a program name with args.
2746 set dummy strip; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   if test -n "$ac_ct_STRIP"; then
2753   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758   IFS=$as_save_IFS
2759   test -z "$as_dir" && as_dir=.
2760     for ac_exec_ext in '' $ac_executable_extensions; do
2761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762     ac_cv_prog_ac_ct_STRIP="strip"
2763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764     break 2
2765   fi
2766 done
2767   done
2768 IFS=$as_save_IFS
2769
2770 fi
2771 fi
2772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2773 if test -n "$ac_ct_STRIP"; then
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2775 $as_echo "$ac_ct_STRIP" >&6; }
2776 else
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 fi
2780
2781   if test "x$ac_ct_STRIP" = x; then
2782     STRIP=":"
2783   else
2784     case $cross_compiling:$ac_tool_warned in
2785 yes:)
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned=yes ;;
2789 esac
2790     STRIP=$ac_ct_STRIP
2791   fi
2792 else
2793   STRIP="$ac_cv_prog_STRIP"
2794 fi
2795
2796 fi
2797 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2800 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2801 if test -z "$MKDIR_P"; then
2802   if ${ac_cv_path_mkdir+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810     for ac_prog in mkdir gmkdir; do
2811          for ac_exec_ext in '' $ac_executable_extensions; do
2812            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2813            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2814              'mkdir (GNU coreutils) '* | \
2815              'mkdir (coreutils) '* | \
2816              'mkdir (fileutils) '4.1*)
2817                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2818                break 3;;
2819            esac
2820          done
2821        done
2822   done
2823 IFS=$as_save_IFS
2824
2825 fi
2826
2827   test -d ./--version && rmdir ./--version
2828   if test "${ac_cv_path_mkdir+set}" = set; then
2829     MKDIR_P="$ac_cv_path_mkdir -p"
2830   else
2831     # As a last resort, use the slow shell script.  Don't cache a
2832     # value for MKDIR_P within a source directory, because that will
2833     # break other packages using the cache if that directory is
2834     # removed, or if the value is a relative name.
2835     MKDIR_P="$ac_install_sh -d"
2836   fi
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2839 $as_echo "$MKDIR_P" >&6; }
2840
2841 mkdir_p="$MKDIR_P"
2842 case $mkdir_p in
2843   [\\/$]* | ?:[\\/]*) ;;
2844   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2845 esac
2846
2847 for ac_prog in gawk mawk nawk awk
2848 do
2849   # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_AWK+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if test -n "$AWK"; then
2857   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_AWK="$ac_prog"
2867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871   done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 AWK=$ac_cv_prog_AWK
2877 if test -n "$AWK"; then
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2879 $as_echo "$AWK" >&6; }
2880 else
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886   test -n "$AWK" && break
2887 done
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2890 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2891 set x ${MAKE-make}
2892 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2893 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2894   $as_echo_n "(cached) " >&6
2895 else
2896   cat >conftest.make <<\_ACEOF
2897 SHELL = /bin/sh
2898 all:
2899         @echo '@@@%%%=$(MAKE)=@@@%%%'
2900 _ACEOF
2901 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2903   *@@@%%%=?*=@@@%%%*)
2904     eval ac_cv_prog_make_${ac_make}_set=yes;;
2905   *)
2906     eval ac_cv_prog_make_${ac_make}_set=no;;
2907 esac
2908 rm -f conftest.make
2909 fi
2910 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912 $as_echo "yes" >&6; }
2913   SET_MAKE=
2914 else
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917   SET_MAKE="MAKE=${MAKE-make}"
2918 fi
2919
2920 rm -rf .tst 2>/dev/null
2921 mkdir .tst 2>/dev/null
2922 if test -d .tst; then
2923   am__leading_dot=.
2924 else
2925   am__leading_dot=_
2926 fi
2927 rmdir .tst 2>/dev/null
2928
2929 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2930   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2931   # is not polluted with repeated "-I."
2932   am__isrc=' -I$(srcdir)'
2933   # test to see if srcdir already configured
2934   if test -f $srcdir/config.status; then
2935     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2936   fi
2937 fi
2938
2939 # test whether we have cygpath
2940 if test -z "$CYGPATH_W"; then
2941   if (cygpath --version) >/dev/null 2>/dev/null; then
2942     CYGPATH_W='cygpath -w'
2943   else
2944     CYGPATH_W=echo
2945   fi
2946 fi
2947
2948
2949 # Define the identity of the package.
2950  PACKAGE=saslauthd
2951  VERSION=2.1.23
2952
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE "$PACKAGE"
2956 _ACEOF
2957
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define VERSION "$VERSION"
2961 _ACEOF
2962
2963 # Some tools Automake needs.
2964
2965 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2966
2967
2968 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2969
2970
2971 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2972
2973
2974 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2975
2976
2977 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2978
2979 # We need awk for the "check" target.  The system "awk" is bad on
2980 # some platforms.
2981 # Always define AMTAR for backward compatibility.
2982
2983 AMTAR=${AMTAR-"${am_missing_run}tar"}
2984
2985 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2986
2987
2988
2989
2990
2991
2992
2993         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2994
2995
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$CC"; then
3010   ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_exec_ext in '' $ac_executable_extensions; do
3018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024   done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$ac_cv_prog_CC"; then
3041   ac_ct_CC=$CC
3042   # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3047   $as_echo_n "(cached) " >&6
3048 else
3049   if test -n "$ac_ct_CC"; then
3050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057     for ac_exec_ext in '' $ac_executable_extensions; do
3058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059     ac_cv_prog_ac_ct_CC="gcc"
3060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064   done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3073 else
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078   if test "x$ac_ct_CC" = x; then
3079     CC=""
3080   else
3081     case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087     CC=$ac_ct_CC
3088   fi
3089 else
3090   CC="$ac_cv_prog_CC"
3091 fi
3092
3093 if test -z "$CC"; then
3094           if test -n "$ac_tool_prefix"; then
3095     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_CC="${ac_tool_prefix}cc"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132   fi
3133 fi
3134 if test -z "$CC"; then
3135   # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_CC+:} false; then :
3140   $as_echo_n "(cached) " >&6
3141 else
3142   if test -n "$CC"; then
3143   ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145   ac_prog_rejected=no
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151     for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154        ac_prog_rejected=yes
3155        continue
3156      fi
3157     ac_cv_prog_CC="cc"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165 if test $ac_prog_rejected = yes; then
3166   # We found a bogon in the path, so make sure we never use it.
3167   set dummy $ac_cv_prog_CC
3168   shift
3169   if test $# != 0; then
3170     # We chose a different compiler from the bogus one.
3171     # However, it has the same basename, so the bogon will be chosen
3172     # first if we set CC to just the basename; use the full file name.
3173     shift
3174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3175   fi
3176 fi
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$CC"; then
3191   if test -n "$ac_tool_prefix"; then
3192   for ac_prog in cl.exe
3193   do
3194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$CC"; then
3202   ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216   done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231     test -n "$CC" && break
3232   done
3233 fi
3234 if test -z "$CC"; then
3235   ac_ct_CC=$CC
3236   for ac_prog in cl.exe
3237 do
3238   # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3243   $as_echo_n "(cached) " >&6
3244 else
3245   if test -n "$ac_ct_CC"; then
3246   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253     for ac_exec_ext in '' $ac_executable_extensions; do
3254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255     ac_cv_prog_ac_ct_CC="$ac_prog"
3256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260   done
3261 IFS=$as_save_IFS
3262
3263 fi
3264 fi
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3269 else
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275   test -n "$ac_ct_CC" && break
3276 done
3277
3278   if test "x$ac_ct_CC" = x; then
3279     CC=""
3280   else
3281     case $cross_compiling:$ac_tool_warned in
3282 yes:)
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3286 esac
3287     CC=$ac_ct_CC
3288   fi
3289 fi
3290
3291 fi
3292
3293
3294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details" "$LINENO" 5; }
3298
3299 # Provide some information about the compiler.
3300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3301 set X $ac_compile
3302 ac_compiler=$2
3303 for ac_option in --version -v -V -qversion; do
3304   { { ac_try="$ac_compiler $ac_option >&5"
3305 case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312   ac_status=$?
3313   if test -s conftest.err; then
3314     sed '10a\
3315 ... rest of stderr output deleted ...
3316          10q' conftest.err >conftest.er1
3317     cat conftest.er1 >&5
3318   fi
3319   rm -f conftest.er1 conftest.err
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }
3322 done
3323
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h.  */
3326
3327 int
3328 main ()
3329 {
3330
3331   ;
3332   return 0;
3333 }
3334 _ACEOF
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3337 # Try to create an executable without -o first, disregard a.out.
3338 # It will help us diagnose broken compilers, and finding out an intuition
3339 # of exeext.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3341 $as_echo_n "checking whether the C compiler works... " >&6; }
3342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343
3344 # The possible output files:
3345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3346
3347 ac_rmfiles=
3348 for ac_file in $ac_files
3349 do
3350   case $ac_file in
3351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3353   esac
3354 done
3355 rm -f $ac_rmfiles
3356
3357 if { { ac_try="$ac_link_default"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364   (eval "$ac_link_default") 2>&5
3365   ac_status=$?
3366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367   test $ac_status = 0; }; then :
3368   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3370 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3371 # so that the user can short-circuit this test for compilers unknown to
3372 # Autoconf.
3373 for ac_file in $ac_files ''
3374 do
3375   test -f "$ac_file" || continue
3376   case $ac_file in
3377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3378         ;;
3379     [ab].out )
3380         # We found the default executable, but exeext='' is most
3381         # certainly right.
3382         break;;
3383     *.* )
3384         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385         then :; else
3386            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387         fi
3388         # We set ac_cv_exeext here because the later test for it is not
3389         # safe: cross compilers may not add the suffix if given an `-o'
3390         # argument, so we may need to know it at that point already.
3391         # Even if this section looks crufty: it has the advantage of
3392         # actually working.
3393         break;;
3394     * )
3395         break;;
3396   esac
3397 done
3398 test "$ac_cv_exeext" = no && ac_cv_exeext=
3399
3400 else
3401   ac_file=''
3402 fi
3403 if test -z "$ac_file"; then :
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error 77 "C compiler cannot create executables
3412 See \`config.log' for more details" "$LINENO" 5; }
3413 else
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3418 $as_echo_n "checking for C compiler default output file name... " >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3420 $as_echo "$ac_file" >&6; }
3421 ac_exeext=$ac_cv_exeext
3422
3423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { { ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437   test $ac_status = 0; }; then :
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 fi
3457 rm -f conftest conftest$ac_cv_exeext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3460
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3463 ac_exeext=$EXEEXT
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h.  */
3466 #include <stdio.h>
3467 int
3468 main ()
3469 {
3470 FILE *f = fopen ("conftest.out", "w");
3471  return ferror (f) || fclose (f) != 0;
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files="$ac_clean_files conftest.out"
3478 # Check that the compiler produces executables we can run.  If not, either
3479 # the compiler is broken, or we cross compile.
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3481 $as_echo_n "checking whether we are cross compiling... " >&6; }
3482 if test "$cross_compiling" != yes; then
3483   { { ac_try="$ac_link"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_link") 2>&5
3491   ac_status=$?
3492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493   test $ac_status = 0; }
3494   if { ac_try='./conftest$ac_cv_exeext'
3495   { { case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501   (eval "$ac_try") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504   test $ac_status = 0; }; }; then
3505     cross_compiling=no
3506   else
3507     if test "$cross_compiling" = maybe; then
3508         cross_compiling=yes
3509     else
3510         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot run C compiled programs.
3513 If you meant to cross compile, use \`--host'.
3514 See \`config.log' for more details" "$LINENO" 5; }
3515     fi
3516   fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3519 $as_echo "$cross_compiling" >&6; }
3520
3521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3524 $as_echo_n "checking for suffix of object files... " >&6; }
3525 if ${ac_cv_objext+:} false; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.o conftest.obj
3540 if { { ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547   (eval "$ac_compile") 2>&5
3548   ac_status=$?
3549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550   test $ac_status = 0; }; then :
3551   for ac_file in conftest.o conftest.obj conftest.*; do
3552   test -f "$ac_file" || continue;
3553   case $ac_file in
3554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3555     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3556        break;;
3557   esac
3558 done
3559 else
3560   $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "cannot compute suffix of object files: cannot compile
3566 See \`config.log' for more details" "$LINENO" 5; }
3567 fi
3568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3571 $as_echo "$ac_cv_objext" >&6; }
3572 OBJEXT=$ac_cv_objext
3573 ac_objext=$OBJEXT
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3576 if ${ac_cv_c_compiler_gnu+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585 #ifndef __GNUC__
3586        choke me
3587 #endif
3588
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594   ac_compiler_gnu=yes
3595 else
3596   ac_compiler_gnu=no
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604 if test $ac_compiler_gnu = yes; then
3605   GCC=yes
3606 else
3607   GCC=
3608 fi
3609 ac_test_CFLAGS=${CFLAGS+set}
3610 ac_save_CFLAGS=$CFLAGS
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3613 if ${ac_cv_prog_cc_g+:} false; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   ac_save_c_werror_flag=$ac_c_werror_flag
3617    ac_c_werror_flag=yes
3618    ac_cv_prog_cc_g=no
3619    CFLAGS="-g"
3620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632   ac_cv_prog_cc_g=yes
3633 else
3634   CFLAGS=""
3635       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647
3648 else
3649   ac_c_werror_flag=$ac_save_c_werror_flag
3650          CFLAGS="-g"
3651          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663   ac_cv_prog_cc_g=yes
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670    ac_c_werror_flag=$ac_save_c_werror_flag
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3673 $as_echo "$ac_cv_prog_cc_g" >&6; }
3674 if test "$ac_test_CFLAGS" = set; then
3675   CFLAGS=$ac_save_CFLAGS
3676 elif test $ac_cv_prog_cc_g = yes; then
3677   if test "$GCC" = yes; then
3678     CFLAGS="-g -O2"
3679   else
3680     CFLAGS="-g"
3681   fi
3682 else
3683   if test "$GCC" = yes; then
3684     CFLAGS="-O2"
3685   else
3686     CFLAGS=
3687   fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691 if ${ac_cv_prog_cc_c89+:} false; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   ac_cv_prog_cc_c89=no
3695 ac_save_CC=$CC
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698 #include <stdarg.h>
3699 #include <stdio.h>
3700 #include <sys/types.h>
3701 #include <sys/stat.h>
3702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3703 struct buf { int x; };
3704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3705 static char *e (p, i)
3706      char **p;
3707      int i;
3708 {
3709   return p[i];
3710 }
3711 static char *f (char * (*g) (char **, int), char **p, ...)
3712 {
3713   char *s;
3714   va_list v;
3715   va_start (v,p);
3716   s = g (p, va_arg (v,int));
3717   va_end (v);
3718   return s;
3719 }
3720
3721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3722    function prototypes and stuff, but not '\xHH' hex character constants.
3723    These don't provoke an error unfortunately, instead are silently treated
3724    as 'x'.  The following induces an error, until -std is added to get
3725    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3726    array size at least.  It's necessary to write '\x00'==0 to get something
3727    that's true only with -std.  */
3728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729
3730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3731    inside strings and character constants.  */
3732 #define FOO(x) 'x'
3733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734
3735 int test (int i, double x);
3736 struct s1 {int (*f) (int a);};
3737 struct s2 {int (*f) (double a);};
3738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3739 int argc;
3740 char **argv;
3741 int
3742 main ()
3743 {
3744 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3750         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 do
3752   CC="$ac_save_CC $ac_arg"
3753   if ac_fn_c_try_compile "$LINENO"; then :
3754   ac_cv_prog_cc_c89=$ac_arg
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext
3757   test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 done
3759 rm -f conftest.$ac_ext
3760 CC=$ac_save_CC
3761
3762 fi
3763 # AC_CACHE_VAL
3764 case "x$ac_cv_prog_cc_c89" in
3765   x)
3766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3767 $as_echo "none needed" >&6; } ;;
3768   xno)
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;;
3771   *)
3772     CC="$CC $ac_cv_prog_cc_c89"
3773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3775 esac
3776 if test "x$ac_cv_prog_cc_c89" != xno; then :
3777
3778 fi
3779
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 DEPDIR="${am__leading_dot}deps"
3786
3787 ac_config_commands="$ac_config_commands depfiles"
3788
3789
3790 am_make=${MAKE-make}
3791 cat > confinc << 'END'
3792 am__doit:
3793         @echo done
3794 .PHONY: am__doit
3795 END
3796 # If we don't find an include directive, just comment out the code.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3798 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3799 am__include="#"
3800 am__quote=
3801 _am_result=none
3802 # First try GNU make style include.
3803 echo "include confinc" > confmf
3804 # We grep out `Entering directory' and `Leaving directory'
3805 # messages which can occur if `w' ends up in MAKEFLAGS.
3806 # In particular we don't look at `^make:' because GNU make might
3807 # be invoked under some other name (usually "gmake"), in which
3808 # case it prints its new name instead of `make'.
3809 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3810    am__include=include
3811    am__quote=
3812    _am_result=GNU
3813 fi
3814 # Now try BSD make style include.
3815 if test "$am__include" = "#"; then
3816    echo '.include "confinc"' > confmf
3817    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3818       am__include=.include
3819       am__quote="\""
3820       _am_result=BSD
3821    fi
3822 fi
3823
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3826 $as_echo "$_am_result" >&6; }
3827 rm -f confinc confmf
3828
3829 # Check whether --enable-dependency-tracking was given.
3830 if test "${enable_dependency_tracking+set}" = set; then :
3831   enableval=$enable_dependency_tracking;
3832 fi
3833
3834 if test "x$enable_dependency_tracking" != xno; then
3835   am_depcomp="$ac_aux_dir/depcomp"
3836   AMDEPBACKSLASH='\'
3837 fi
3838  if test "x$enable_dependency_tracking" != xno; then
3839   AMDEP_TRUE=
3840   AMDEP_FALSE='#'
3841 else
3842   AMDEP_TRUE='#'
3843   AMDEP_FALSE=
3844 fi
3845
3846
3847
3848 depcc="$CC"   am_compiler_list=
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3851 $as_echo_n "checking dependency style of $depcc... " >&6; }
3852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3856   # We make a subdir and do the tests there.  Otherwise we can end up
3857   # making bogus files that we don't know about and never remove.  For
3858   # instance it was reported that on HP-UX the gcc test will end up
3859   # making a dummy file named `D' -- because `-MD' means `put the output
3860   # in D'.
3861   mkdir conftest.dir
3862   # Copy depcomp to subdir because otherwise we won't find it if we're
3863   # using a relative directory.
3864   cp "$am_depcomp" conftest.dir
3865   cd conftest.dir
3866   # We will build objects and dependencies in a subdirectory because
3867   # it helps to detect inapplicable dependency modes.  For instance
3868   # both Tru64's cc and ICC support -MD to output dependencies as a
3869   # side effect of compilation, but ICC will put the dependencies in
3870   # the current directory while Tru64 will put them in the object
3871   # directory.
3872   mkdir sub
3873
3874   am_cv_CC_dependencies_compiler_type=none
3875   if test "$am_compiler_list" = ""; then
3876      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877   fi
3878   am__universal=false
3879   case " $depcc " in #(
3880      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881      esac
3882
3883   for depmode in $am_compiler_list; do
3884     # Setup a source with many dependencies, because some compilers
3885     # like to wrap large dependency lists on column 80 (with \), and
3886     # we should not choose a depcomp mode which is confused by this.
3887     #
3888     # We need to recreate these files for each test, as the compiler may
3889     # overwrite some of them when testing with obscure command lines.
3890     # This happens at least with the AIX C compiler.
3891     : > sub/conftest.c
3892     for i in 1 2 3 4 5 6; do
3893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895       # Solaris 8's {/usr,}/bin/sh.
3896       touch sub/conftst$i.h
3897     done
3898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3901     # mode.  It turns out that the SunPro C++ compiler does not properly
3902     # handle `-M -o', and we need to detect this.  Also, some Intel
3903     # versions had trouble with output in subdirs
3904     am__obj=sub/conftest.${OBJEXT-o}
3905     am__minus_obj="-o $am__obj"
3906     case $depmode in
3907     gcc)
3908       # This depmode causes a compiler race in universal mode.
3909       test "$am__universal" = false || continue
3910       ;;
3911     nosideeffect)
3912       # after this tag, mechanisms are not by side-effect, so they'll
3913       # only be used when explicitly requested
3914       if test "x$enable_dependency_tracking" = xyes; then
3915         continue
3916       else
3917         break
3918       fi
3919       ;;
3920     msvisualcpp | msvcmsys)
3921       # This compiler won't grok `-c -o', but also, the minuso test has
3922       # not run yet.  These depmodes are late enough in the game, and
3923       # so weak that their functioning should not be impacted.
3924       am__obj=conftest.${OBJEXT-o}
3925       am__minus_obj=
3926       ;;
3927     none) break ;;
3928     esac
3929     if depmode=$depmode \
3930        source=sub/conftest.c object=$am__obj \
3931        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933          >/dev/null 2>conftest.err &&
3934        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938       # icc doesn't choke on unknown options, it will just issue warnings
3939       # or remarks (even with -Werror).  So we grep stderr for any message
3940       # that says an option was ignored or not supported.
3941       # When given -MP, icc 7.0 and 7.1 complain thusly:
3942       #   icc: Command line warning: ignoring option '-M'; no argument required
3943       # The diagnosis changed in icc 8.0:
3944       #   icc: Command line remark: option '-MP' not supported
3945       if (grep 'ignoring option' conftest.err ||
3946           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947         am_cv_CC_dependencies_compiler_type=$depmode
3948         break
3949       fi
3950     fi
3951   done
3952
3953   cd ..
3954   rm -rf conftest.dir
3955 else
3956   am_cv_CC_dependencies_compiler_type=none
3957 fi
3958
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964  if
3965   test "x$enable_dependency_tracking" != xno \
3966   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967   am__fastdepCC_TRUE=
3968   am__fastdepCC_FALSE='#'
3969 else
3970   am__fastdepCC_TRUE='#'
3971   am__fastdepCC_FALSE=
3972 fi
3973
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3982 # On Suns, sometimes $CPP names a directory.
3983 if test -n "$CPP" && test -d "$CPP"; then
3984   CPP=
3985 fi
3986 if test -z "$CPP"; then
3987   if ${ac_cv_prog_CPP+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990       # Double quotes because CPP needs to be expanded
3991     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3992     do
3993       ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996   # Use a header file that comes with gcc, so configuring glibc
3997   # with a fresh cross-compiler works.
3998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999   # <limits.h> exists even on freestanding compilers.
4000   # On the NeXT, cc -E runs the code through the compiler's parser,
4001   # not just through cpp. "Syntax error" is here to catch this case.
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009                      Syntax error
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012
4013 else
4014   # Broken: fails on valid input.
4015 continue
4016 fi
4017 rm -f conftest.err conftest.i conftest.$ac_ext
4018
4019   # OK, works on sane cases.  Now check whether nonexistent headers
4020   # can be detected and how.
4021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026   # Broken: success on invalid input.
4027 continue
4028 else
4029   # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033 rm -f conftest.err conftest.i conftest.$ac_ext
4034
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.i conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4039   break
4040 fi
4041
4042     done
4043     ac_cv_prog_CPP=$CPP
4044
4045 fi
4046   CPP=$ac_cv_prog_CPP
4047 else
4048   ac_cv_prog_CPP=$CPP
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4051 $as_echo "$CPP" >&6; }
4052 ac_preproc_ok=false
4053 for ac_c_preproc_warn_flag in '' yes
4054 do
4055   # Use a header file that comes with gcc, so configuring glibc
4056   # with a fresh cross-compiler works.
4057   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058   # <limits.h> exists even on freestanding compilers.
4059   # On the NeXT, cc -E runs the code through the compiler's parser,
4060   # not just through cpp. "Syntax error" is here to catch this case.
4061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h.  */
4063 #ifdef __STDC__
4064 # include <limits.h>
4065 #else
4066 # include <assert.h>
4067 #endif
4068                      Syntax error
4069 _ACEOF
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4071
4072 else
4073   # Broken: fails on valid input.
4074 continue
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078   # OK, works on sane cases.  Now check whether nonexistent headers
4079   # can be detected and how.
4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082 #include <ac_nonexistent.h>
4083 _ACEOF
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4085   # Broken: success on invalid input.
4086 continue
4087 else
4088   # Passes both tests.
4089 ac_preproc_ok=:
4090 break
4091 fi
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094 done
4095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096 rm -f conftest.i conftest.err conftest.$ac_ext
4097 if $ac_preproc_ok; then :
4098
4099 else
4100   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4103 See \`config.log' for more details" "$LINENO" 5; }
4104 fi
4105
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112 for ac_prog in gawk mawk nawk awk
4113 do
4114   # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_AWK+:} false; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   if test -n "$AWK"; then
4122   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129     for ac_exec_ext in '' $ac_executable_extensions; do
4130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131     ac_cv_prog_AWK="$ac_prog"
4132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133     break 2
4134   fi
4135 done
4136   done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 AWK=$ac_cv_prog_AWK
4142 if test -n "$AWK"; then
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4144 $as_echo "$AWK" >&6; }
4145 else
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 fi
4149
4150
4151   test -n "$AWK" && break
4152 done
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4155 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4156 set x ${MAKE-make}
4157 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4158 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   cat >conftest.make <<\_ACEOF
4162 SHELL = /bin/sh
4163 all:
4164         @echo '@@@%%%=$(MAKE)=@@@%%%'
4165 _ACEOF
4166 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4168   *@@@%%%=?*=@@@%%%*)
4169     eval ac_cv_prog_make_${ac_make}_set=yes;;
4170   *)
4171     eval ac_cv_prog_make_${ac_make}_set=no;;
4172 esac
4173 rm -f conftest.make
4174 fi
4175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4177 $as_echo "yes" >&6; }
4178   SET_MAKE=
4179 else
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182   SET_MAKE="MAKE=${MAKE-make}"
4183 fi
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4186 $as_echo_n "checking whether ln -s works... " >&6; }
4187 LN_S=$as_ln_s
4188 if test "$LN_S" = "ln -s"; then
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4190 $as_echo "yes" >&6; }
4191 else
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4193 $as_echo "no, using $LN_S" >&6; }
4194 fi
4195
4196
4197
4198
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4201 $as_echo_n "checking for __attribute__... " >&6; }
4202 if ${ac_cv___attribute__+:} false; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h.  */
4208
4209 #include <stdlib.h>
4210
4211 int
4212 main ()
4213 {
4214
4215 static void foo(void) __attribute__ ((noreturn));
4216
4217 static void
4218 foo(void)
4219 {
4220   exit(1);
4221 }
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228   ac_cv___attribute__=yes
4229 else
4230   ac_cv___attribute__=no
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 fi
4234
4235 if test "$ac_cv___attribute__" = "yes"; then
4236
4237 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4241 $as_echo "$ac_cv___attribute__" >&6; }
4242
4243
4244    # CMU GUESS RUNPATH SWITCH
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
4246 $as_echo_n "checking for runpath switch... " >&6; }
4247 if ${andrew_runpath_switch+:} false; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250
4251     # first, try -R
4252     SAVE_LDFLAGS="${LDFLAGS}"
4253     LDFLAGS="-R /usr/lib"
4254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256
4257 int
4258 main ()
4259 {
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_c_try_link "$LINENO"; then :
4266   andrew_runpath_switch="-R"
4267 else
4268
4269         LDFLAGS="-Wl,-rpath,/usr/lib"
4270     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_c_try_link "$LINENO"; then :
4282   andrew_runpath_switch="-Wl,-rpath,"
4283 else
4284   andrew_runpath_switch="none"
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext \
4287     conftest$ac_exeext conftest.$ac_ext
4288
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext \
4291     conftest$ac_exeext conftest.$ac_ext
4292   LDFLAGS="${SAVE_LDFLAGS}"
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_runpath_switch" >&5
4296 $as_echo "$andrew_runpath_switch" >&6; }
4297
4298
4299         save_LIBS="$LIBS"
4300         LIB_SOCKET=""
4301         ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4302 if test "x$ac_cv_func_connect" = xyes; then :
4303   :
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4306 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4307 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   ac_check_lib_save_LIBS=$LIBS
4311 LIBS="-lnsl  $LIBS"
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 /* Override any GCC internal prototype to avoid an error.
4316    Use char because int might match the return type of a GCC
4317    builtin and then its argument prototype would still apply.  */
4318 #ifdef __cplusplus
4319 extern "C"
4320 #endif
4321 char gethostbyname ();
4322 int
4323 main ()
4324 {
4325 return gethostbyname ();
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_c_try_link "$LINENO"; then :
4331   ac_cv_lib_nsl_gethostbyname=yes
4332 else
4333   ac_cv_lib_nsl_gethostbyname=no
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext \
4336     conftest$ac_exeext conftest.$ac_ext
4337 LIBS=$ac_check_lib_save_LIBS
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4340 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4341 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4342   LIB_SOCKET="-lnsl $LIB_SOCKET"
4343 fi
4344
4345                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4346 $as_echo_n "checking for connect in -lsocket... " >&6; }
4347 if ${ac_cv_lib_socket_connect+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   ac_check_lib_save_LIBS=$LIBS
4351 LIBS="-lsocket  $LIBS"
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 /* Override any GCC internal prototype to avoid an error.
4356    Use char because int might match the return type of a GCC
4357    builtin and then its argument prototype would still apply.  */
4358 #ifdef __cplusplus
4359 extern "C"
4360 #endif
4361 char connect ();
4362 int
4363 main ()
4364 {
4365 return connect ();
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_c_try_link "$LINENO"; then :
4371   ac_cv_lib_socket_connect=yes
4372 else
4373   ac_cv_lib_socket_connect=no
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext \
4376     conftest$ac_exeext conftest.$ac_ext
4377 LIBS=$ac_check_lib_save_LIBS
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4380 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4381 if test "x$ac_cv_lib_socket_connect" = xyes; then :
4382   LIB_SOCKET="-lsocket $LIB_SOCKET"
4383 fi
4384
4385
4386 fi
4387
4388         LIBS="$LIB_SOCKET $save_LIBS"
4389         ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
4390 if test "x$ac_cv_func_res_search" = xyes; then :
4391   :
4392 else
4393   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
4394                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h.  */
4396
4397 #include <sys/types.h>
4398 #include <netinet/in.h>
4399 #include <arpa/nameser.h>
4400 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
4401 #include <arpa/nameser_compat.h>
4402 #endif
4403 #include <resolv.h>
4404 int
4405 main ()
4406 {
4407
4408 const char host[12]="openafs.org";
4409 u_char ans[1024];
4410 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
4411 return 0;
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_c_try_link "$LINENO"; then :
4418   LIB_SOCKET="-lresolv $LIB_SOCKET"
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext \
4421     conftest$ac_exeext conftest.$ac_ext
4422
4423 fi
4424
4425         LIBS="$LIB_SOCKET $save_LIBS"
4426         for ac_func in dn_expand dns_lookup
4427 do :
4428   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4431   cat >>confdefs.h <<_ACEOF
4432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4433 _ACEOF
4434
4435 fi
4436 done
4437
4438         LIBS="$save_LIBS"
4439
4440
4441
4442
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4444 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4445 if ${ac_cv_path_GREP+:} false; then :
4446   $as_echo_n "(cached) " >&6
4447 else
4448   if test -z "$GREP"; then
4449   ac_path_GREP_found=false
4450   # Loop through the user's path and test for each of PROGNAME-LIST
4451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456     for ac_prog in grep ggrep; do
4457     for ac_exec_ext in '' $ac_executable_extensions; do
4458       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4459       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4460 # Check for GNU ac_path_GREP and select it if it is found.
4461   # Check for GNU $ac_path_GREP
4462 case `"$ac_path_GREP" --version 2>&1` in
4463 *GNU*)
4464   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4465 *)
4466   ac_count=0
4467   $as_echo_n 0123456789 >"conftest.in"
4468   while :
4469   do
4470     cat "conftest.in" "conftest.in" >"conftest.tmp"
4471     mv "conftest.tmp" "conftest.in"
4472     cp "conftest.in" "conftest.nl"
4473     $as_echo 'GREP' >> "conftest.nl"
4474     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4475     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4476     as_fn_arith $ac_count + 1 && ac_count=$as_val
4477     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4478       # Best one so far, save it but keep looking for a better one
4479       ac_cv_path_GREP="$ac_path_GREP"
4480       ac_path_GREP_max=$ac_count
4481     fi
4482     # 10*(2^10) chars as input seems more than enough
4483     test $ac_count -gt 10 && break
4484   done
4485   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486 esac
4487
4488       $ac_path_GREP_found && break 3
4489     done
4490   done
4491   done
4492 IFS=$as_save_IFS
4493   if test -z "$ac_cv_path_GREP"; then
4494     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495   fi
4496 else
4497   ac_cv_path_GREP=$GREP
4498 fi
4499
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4502 $as_echo "$ac_cv_path_GREP" >&6; }
4503  GREP="$ac_cv_path_GREP"
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4507 $as_echo_n "checking for egrep... " >&6; }
4508 if ${ac_cv_path_EGREP+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4512    then ac_cv_path_EGREP="$GREP -E"
4513    else
4514      if test -z "$EGREP"; then
4515   ac_path_EGREP_found=false
4516   # Loop through the user's path and test for each of PROGNAME-LIST
4517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_prog in egrep; do
4523     for ac_exec_ext in '' $ac_executable_extensions; do
4524       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4525       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4526 # Check for GNU ac_path_EGREP and select it if it is found.
4527   # Check for GNU $ac_path_EGREP
4528 case `"$ac_path_EGREP" --version 2>&1` in
4529 *GNU*)
4530   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531 *)
4532   ac_count=0
4533   $as_echo_n 0123456789 >"conftest.in"
4534   while :
4535   do
4536     cat "conftest.in" "conftest.in" >"conftest.tmp"
4537     mv "conftest.tmp" "conftest.in"
4538     cp "conftest.in" "conftest.nl"
4539     $as_echo 'EGREP' >> "conftest.nl"
4540     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542     as_fn_arith $ac_count + 1 && ac_count=$as_val
4543     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4544       # Best one so far, save it but keep looking for a better one
4545       ac_cv_path_EGREP="$ac_path_EGREP"
4546       ac_path_EGREP_max=$ac_count
4547     fi
4548     # 10*(2^10) chars as input seems more than enough
4549     test $ac_count -gt 10 && break
4550   done
4551   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4553
4554       $ac_path_EGREP_found && break 3
4555     done
4556   done
4557   done
4558 IFS=$as_save_IFS
4559   if test -z "$ac_cv_path_EGREP"; then
4560     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561   fi
4562 else
4563   ac_cv_path_EGREP=$EGREP
4564 fi
4565
4566    fi
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4569 $as_echo "$ac_cv_path_EGREP" >&6; }
4570  EGREP="$ac_cv_path_EGREP"
4571
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4574 $as_echo_n "checking for ANSI C header files... " >&6; }
4575 if ${ac_cv_header_stdc+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h.  */
4580 #include <stdlib.h>
4581 #include <stdarg.h>
4582 #include <string.h>
4583 #include <float.h>
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594   ac_cv_header_stdc=yes
4595 else
4596   ac_cv_header_stdc=no
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599
4600 if test $ac_cv_header_stdc = yes; then
4601   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h.  */
4604 #include <string.h>
4605
4606 _ACEOF
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608   $EGREP "memchr" >/dev/null 2>&1; then :
4609
4610 else
4611   ac_cv_header_stdc=no
4612 fi
4613 rm -f conftest*
4614
4615 fi
4616
4617 if test $ac_cv_header_stdc = yes; then
4618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h.  */
4621 #include <stdlib.h>
4622
4623 _ACEOF
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625   $EGREP "free" >/dev/null 2>&1; then :
4626
4627 else
4628   ac_cv_header_stdc=no
4629 fi
4630 rm -f conftest*
4631
4632 fi
4633
4634 if test $ac_cv_header_stdc = yes; then
4635   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636   if test "$cross_compiling" = yes; then :
4637   :
4638 else
4639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641 #include <ctype.h>
4642 #include <stdlib.h>
4643 #if ((' ' & 0x0FF) == 0x020)
4644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646 #else
4647 # define ISLOWER(c) \
4648                    (('a' <= (c) && (c) <= 'i') \
4649                      || ('j' <= (c) && (c) <= 'r') \
4650                      || ('s' <= (c) && (c) <= 'z'))
4651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652 #endif
4653
4654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4655 int
4656 main ()
4657 {
4658   int i;
4659   for (i = 0; i < 256; i++)
4660     if (XOR (islower (i), ISLOWER (i))
4661         || toupper (i) != TOUPPER (i))
4662       return 2;
4663   return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_run "$LINENO"; then :
4667
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4672   conftest.$ac_objext conftest.beam conftest.$ac_ext
4673 fi
4674
4675 fi
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4678 $as_echo "$ac_cv_header_stdc" >&6; }
4679 if test $ac_cv_header_stdc = yes; then
4680
4681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4682
4683 fi
4684
4685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4687                   inttypes.h stdint.h unistd.h
4688 do :
4689   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4691 "
4692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4693   cat >>confdefs.h <<_ACEOF
4694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695 _ACEOF
4696
4697 fi
4698
4699 done
4700
4701
4702
4703 # Check whether --with-lib-subdir was given.
4704 if test "${with_lib_subdir+set}" = set; then :
4705   withval=$with_lib_subdir;
4706 fi
4707
4708 # The cast to long int works around a bug in the HP C Compiler
4709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4711 # This bug is HP SR number 8606223364.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4713 $as_echo_n "checking size of long... " >&6; }
4714 if ${ac_cv_sizeof_long+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4718
4719 else
4720   if test "$ac_cv_type_long" = yes; then
4721      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4723 as_fn_error 77 "cannot compute sizeof (long)
4724 See \`config.log' for more details" "$LINENO" 5; }
4725    else
4726      ac_cv_sizeof_long=0
4727    fi
4728 fi
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4732 $as_echo "$ac_cv_sizeof_long" >&6; }
4733
4734
4735
4736 cat >>confdefs.h <<_ACEOF
4737 #define SIZEOF_LONG $ac_cv_sizeof_long
4738 _ACEOF
4739
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
4742 $as_echo_n "checking what directory libraries are found in... " >&6; }
4743 if ${ac_cv_cmu_lib_subdir+:} false; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
4747 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
4748 if test "X$with_lib_subdir" = "X" ; then
4749   ac_cv_cmu_lib_subdir=lib
4750   if test $ac_cv_sizeof_long -eq 4 ; then
4751     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
4752   fi
4753   if test $ac_cv_sizeof_long -eq 8 ; then
4754     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
4755   fi
4756 else
4757   ac_cv_cmu_lib_subdir=$with_lib_subdir
4758 fi
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
4761 $as_echo "$ac_cv_cmu_lib_subdir" >&6; }
4762 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
4763
4764
4765
4766
4767
4768 # Check whether --with-openssl was given.
4769 if test "${with_openssl+set}" = set; then :
4770   withval=$with_openssl; with_openssl=$withval
4771 else
4772   with_openssl="yes"
4773 fi
4774
4775
4776         save_CPPFLAGS=$CPPFLAGS
4777         save_LDFLAGS=$LDFLAGS
4778
4779         if test -d $with_openssl; then
4780           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
4781
4782   # this is CMU ADD LIBPATH
4783   if test "$andrew_runpath_switch" = "none" ; then
4784         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4785   else
4786         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4787   fi
4788
4789         fi
4790
4791 case "$with_openssl" in
4792         no)
4793           with_openssl="no";;
4794         *)
4795                                   LIB_RSAREF=""
4796                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
4797 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
4798 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   ac_check_lib_save_LIBS=$LIBS
4802 LIBS="-lrsaref  $LIBS"
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h.  */
4805
4806 /* Override any GCC internal prototype to avoid an error.
4807    Use char because int might match the return type of a GCC
4808    builtin and then its argument prototype would still apply.  */
4809 #ifdef __cplusplus
4810 extern "C"
4811 #endif
4812 char RSAPublicEncrypt ();
4813 int
4814 main ()
4815 {
4816 return RSAPublicEncrypt ();
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_link "$LINENO"; then :
4822   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
4823 else
4824   ac_cv_lib_rsaref_RSAPublicEncrypt=no
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext \
4827     conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
4831 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
4832 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
4833   cmu_have_rsaref=yes;
4834                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5
4835 $as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
4836 if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   ac_check_lib_save_LIBS=$LIBS
4840 LIBS="-lRSAglue  $LIBS"
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h.  */
4843
4844 /* Override any GCC internal prototype to avoid an error.
4845    Use char because int might match the return type of a GCC
4846    builtin and then its argument prototype would still apply.  */
4847 #ifdef __cplusplus
4848 extern "C"
4849 #endif
4850 char RSAPublicEncrypt ();
4851 int
4852 main ()
4853 {
4854 return RSAPublicEncrypt ();
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_c_try_link "$LINENO"; then :
4860   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
4861 else
4862   ac_cv_lib_RSAglue_RSAPublicEncrypt=no
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext \
4865     conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
4869 $as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
4870 if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then :
4871   LIB_RSAREF="-lRSAglue -lrsaref"
4872 else
4873   LIB_RSAREF="-lrsaref"
4874 fi
4875
4876 else
4877   cmu_have_rsaref=no
4878 fi
4879
4880
4881                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
4882 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
4883
4884                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5
4885 $as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
4886 if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   ac_check_lib_save_LIBS=$LIBS
4890 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893
4894 /* Override any GCC internal prototype to avoid an error.
4895    Use char because int might match the return type of a GCC
4896    builtin and then its argument prototype would still apply.  */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 char EVP_DigestInit ();
4901 int
4902 main ()
4903 {
4904 return EVP_DigestInit ();
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_c_try_link "$LINENO"; then :
4910   ac_cv_lib_crypto_EVP_DigestInit=yes
4911 else
4912   ac_cv_lib_crypto_EVP_DigestInit=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext \
4915     conftest$ac_exeext conftest.$ac_ext
4916 LIBS=$ac_check_lib_save_LIBS
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
4919 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
4920 if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then :
4921   with_openssl="yes"
4922 else
4923   with_openssl="no"
4924 fi
4925
4926 else
4927   with_openssl=no
4928 fi
4929
4930
4931                 ;;
4932 esac
4933
4934         if test "$with_openssl" != "no"; then
4935
4936 $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
4937
4938         else
4939                 CPPFLAGS=$save_CPPFLAGS
4940                 LDFLAGS=$save_LDFLAGS
4941         fi
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
4944 $as_echo_n "checking for OpenSSL... " >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
4946 $as_echo "$with_openssl" >&6; }
4947
4948
4949
4950 # Check whether --with-des was given.
4951 if test "${with_des+set}" = set; then :
4952   withval=$with_des; with_des=$withval
4953 else
4954   with_des=yes
4955 fi
4956
4957
4958 LIB_DES=""
4959 if test "$with_des" != no; then
4960   if test -d $with_des; then
4961     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
4962     LDFLAGS="$LDFLAGS -L${with_des}/lib"
4963   fi
4964
4965   if test "$with_openssl" != no; then
4966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
4967 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
4968 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   ac_check_lib_save_LIBS=$LIBS
4972 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h.  */
4975
4976 /* Override any GCC internal prototype to avoid an error.
4977    Use char because int might match the return type of a GCC
4978    builtin and then its argument prototype would still apply.  */
4979 #ifdef __cplusplus
4980 extern "C"
4981 #endif
4982 char des_cbc_encrypt ();
4983 int
4984 main ()
4985 {
4986 return des_cbc_encrypt ();
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_link "$LINENO"; then :
4992   ac_cv_lib_crypto_des_cbc_encrypt=yes
4993 else
4994   ac_cv_lib_crypto_des_cbc_encrypt=no
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext \
4997     conftest$ac_exeext conftest.$ac_ext
4998 LIBS=$ac_check_lib_save_LIBS
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5001 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
5002 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
5003
5004         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
5005 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
5006
5007 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
5008
5009                                        LIB_DES="-lcrypto";
5010                                        with_des=yes
5011 else
5012   with_des=no
5013 fi
5014
5015
5016 else
5017   with_des=no
5018 fi
5019
5020
5021         if test "$with_des" = no; then
5022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
5023 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
5024 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   ac_check_lib_save_LIBS=$LIBS
5028 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h.  */
5031
5032 /* Override any GCC internal prototype to avoid an error.
5033    Use char because int might match the return type of a GCC
5034    builtin and then its argument prototype would still apply.  */
5035 #ifdef __cplusplus
5036 extern "C"
5037 #endif
5038 char DES_cbc_encrypt ();
5039 int
5040 main ()
5041 {
5042 return DES_cbc_encrypt ();
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_link "$LINENO"; then :
5048   ac_cv_lib_crypto_DES_cbc_encrypt=yes
5049 else
5050   ac_cv_lib_crypto_DES_cbc_encrypt=no
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext \
5053     conftest$ac_exeext conftest.$ac_ext
5054 LIBS=$ac_check_lib_save_LIBS
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
5057 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
5058 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
5059
5060         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
5061 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
5062
5063 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
5064
5065                                        LIB_DES="-lcrypto";
5066                                        with_des=yes
5067 else
5068   with_des=no
5069 fi
5070
5071
5072 else
5073   with_des=no
5074 fi
5075
5076     fi
5077   fi
5078
5079   if test "$with_des" = no; then
5080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
5081 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
5082 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   ac_check_lib_save_LIBS=$LIBS
5086 LIBS="-ldes  $LIBS"
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h.  */
5089
5090 /* Override any GCC internal prototype to avoid an error.
5091    Use char because int might match the return type of a GCC
5092    builtin and then its argument prototype would still apply.  */
5093 #ifdef __cplusplus
5094 extern "C"
5095 #endif
5096 char des_cbc_encrypt ();
5097 int
5098 main ()
5099 {
5100 return des_cbc_encrypt ();
5101   ;
5102   return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"; then :
5106   ac_cv_lib_des_des_cbc_encrypt=yes
5107 else
5108   ac_cv_lib_des_des_cbc_encrypt=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext \
5111     conftest$ac_exeext conftest.$ac_ext
5112 LIBS=$ac_check_lib_save_LIBS
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
5115 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
5116 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
5117   LIB_DES="-ldes";
5118                                         with_des=yes
5119 else
5120   with_des=no
5121 fi
5122
5123   fi
5124
5125   if test "$with_des" = no; then
5126      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
5127 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
5128 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   ac_check_lib_save_LIBS=$LIBS
5132 LIBS="-ldes425  $LIBS"
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h.  */
5135
5136 /* Override any GCC internal prototype to avoid an error.
5137    Use char because int might match the return type of a GCC
5138    builtin and then its argument prototype would still apply.  */
5139 #ifdef __cplusplus
5140 extern "C"
5141 #endif
5142 char des_cbc_encrypt ();
5143 int
5144 main ()
5145 {
5146 return des_cbc_encrypt ();
5147   ;
5148   return 0;
5149 }
5150 _ACEOF
5151 if ac_fn_c_try_link "$LINENO"; then :
5152   ac_cv_lib_des425_des_cbc_encrypt=yes
5153 else
5154   ac_cv_lib_des425_des_cbc_encrypt=no
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext \
5157     conftest$ac_exeext conftest.$ac_ext
5158 LIBS=$ac_check_lib_save_LIBS
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
5161 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
5162 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
5163   LIB_DES="-ldes425";
5164                                        with_des=yes
5165 else
5166   with_des=no
5167 fi
5168
5169   fi
5170
5171   if test "$with_des" = no; then
5172      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5
5173 $as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
5174 if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   ac_check_lib_save_LIBS=$LIBS
5178 LIBS="-ldes524  $LIBS"
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181
5182 /* Override any GCC internal prototype to avoid an error.
5183    Use char because int might match the return type of a GCC
5184    builtin and then its argument prototype would still apply.  */
5185 #ifdef __cplusplus
5186 extern "C"
5187 #endif
5188 char des_cbc_encrypt ();
5189 int
5190 main ()
5191 {
5192 return des_cbc_encrypt ();
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 if ac_fn_c_try_link "$LINENO"; then :
5198   ac_cv_lib_des524_des_cbc_encrypt=yes
5199 else
5200   ac_cv_lib_des524_des_cbc_encrypt=no
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext \
5203     conftest$ac_exeext conftest.$ac_ext
5204 LIBS=$ac_check_lib_save_LIBS
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
5207 $as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
5208 if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then :
5209   LIB_DES="-ldes524";
5210                                        with_des=yes
5211 else
5212   with_des=no
5213 fi
5214
5215   fi
5216
5217   if test "$with_des" = no; then
5218
5219             LIB_RSAREF=""
5220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
5221 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
5222 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lrsaref  $LIBS"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h.  */
5229
5230 /* Override any GCC internal prototype to avoid an error.
5231    Use char because int might match the return type of a GCC
5232    builtin and then its argument prototype would still apply.  */
5233 #ifdef __cplusplus
5234 extern "C"
5235 #endif
5236 char RSAPublicEncrypt ();
5237 int
5238 main ()
5239 {
5240 return RSAPublicEncrypt ();
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_link "$LINENO"; then :
5246   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
5247 else
5248   ac_cv_lib_rsaref_RSAPublicEncrypt=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext \
5251     conftest$ac_exeext conftest.$ac_ext
5252 LIBS=$ac_check_lib_save_LIBS
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
5255 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
5256 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
5257   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
5258 else
5259   cmu_have_rsaref=no
5260 fi
5261
5262
5263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
5264 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
5265 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   ac_check_lib_save_LIBS=$LIBS
5269 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272
5273 /* Override any GCC internal prototype to avoid an error.
5274    Use char because int might match the return type of a GCC
5275    builtin and then its argument prototype would still apply.  */
5276 #ifdef __cplusplus
5277 extern "C"
5278 #endif
5279 char des_cbc_encrypt ();
5280 int
5281 main ()
5282 {
5283 return des_cbc_encrypt ();
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_link "$LINENO"; then :
5289   ac_cv_lib_crypto_des_cbc_encrypt=yes
5290 else
5291   ac_cv_lib_crypto_des_cbc_encrypt=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext \
5294     conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5298 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
5299 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
5300
5301         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
5302 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
5303
5304 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
5305
5306                                         LIB_DES="-lcrypto";
5307                                         with_des=yes
5308 else
5309   with_des=no
5310 fi
5311
5312
5313 else
5314   with_des=no
5315 fi
5316
5317   fi
5318 fi
5319
5320 if test "$with_des" != no; then
5321
5322 $as_echo "#define WITH_DES /**/" >>confdefs.h
5323
5324 fi
5325
5326
5327
5328
5329
5330
5331
5332   # Check whether --enable-krb4 was given.
5333 if test "${enable_krb4+set}" = set; then :
5334   enableval=$enable_krb4; krb4=$enableval
5335 else
5336   krb4=no
5337 fi
5338
5339
5340   if test "$krb4" != no; then
5341                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
5342 $as_echo_n "checking for res_search in -lresolv... " >&6; }
5343 if ${ac_cv_lib_resolv_res_search+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lresolv  $LIBS"
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350
5351 /* Override any GCC internal prototype to avoid an error.
5352    Use char because int might match the return type of a GCC
5353    builtin and then its argument prototype would still apply.  */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 char res_search ();
5358 int
5359 main ()
5360 {
5361 return res_search ();
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"; then :
5367   ac_cv_lib_resolv_res_search=yes
5368 else
5369   ac_cv_lib_resolv_res_search=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372     conftest$ac_exeext conftest.$ac_ext
5373 LIBS=$ac_check_lib_save_LIBS
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
5376 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
5377 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
5378   cat >>confdefs.h <<_ACEOF
5379 #define HAVE_LIBRESOLV 1
5380 _ACEOF
5381
5382   LIBS="-lresolv $LIBS"
5383
5384 fi
5385
5386
5387             if test -d ${krb4}; then
5388        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
5389 $as_echo_n "checking for Kerberos includes... " >&6; }
5390 if ${cyrus_krbinclude+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393
5394          for krbhloc in include/kerberosIV include/kerberos include
5395          do
5396            if test -f ${krb4}/${krbhloc}/krb.h ; then
5397              cyrus_krbinclude=${krb4}/${krbhloc}
5398              break
5399            fi
5400          done
5401
5402 fi
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_krbinclude" >&5
5404 $as_echo "$cyrus_krbinclude" >&6; }
5405
5406        if test -n "${cyrus_krbinclude}"; then
5407          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
5408        fi
5409        LDFLAGS="$LDFLAGS -L$krb4/lib"
5410     fi
5411
5412     if test "$with_des" != no; then
5413       ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
5414 if test "x$ac_cv_header_krb_h" = xyes; then :
5415
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
5417 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
5418 if ${ac_cv_lib_com_err_com_err+:} false; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421   ac_check_lib_save_LIBS=$LIBS
5422 LIBS="-lcom_err  $LIBS"
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h.  */
5425
5426 /* Override any GCC internal prototype to avoid an error.
5427    Use char because int might match the return type of a GCC
5428    builtin and then its argument prototype would still apply.  */
5429 #ifdef __cplusplus
5430 extern "C"
5431 #endif
5432 char com_err ();
5433 int
5434 main ()
5435 {
5436 return com_err ();
5437   ;
5438   return 0;
5439 }
5440 _ACEOF
5441 if ac_fn_c_try_link "$LINENO"; then :
5442   ac_cv_lib_com_err_com_err=yes
5443 else
5444   ac_cv_lib_com_err_com_err=no
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext \
5447     conftest$ac_exeext conftest.$ac_ext
5448 LIBS=$ac_check_lib_save_LIBS
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
5451 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
5452 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
5453
5454           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
5455 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
5456 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   ac_check_lib_save_LIBS=$LIBS
5460 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h.  */
5463
5464 /* Override any GCC internal prototype to avoid an error.
5465    Use char because int might match the return type of a GCC
5466    builtin and then its argument prototype would still apply.  */
5467 #ifdef __cplusplus
5468 extern "C"
5469 #endif
5470 char krb_mk_priv ();
5471 int
5472 main ()
5473 {
5474 return krb_mk_priv ();
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_link "$LINENO"; then :
5480   ac_cv_lib_krb_krb_mk_priv=yes
5481 else
5482   ac_cv_lib_krb_krb_mk_priv=no
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext \
5485     conftest$ac_exeext conftest.$ac_ext
5486 LIBS=$ac_check_lib_save_LIBS
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
5489 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
5490 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
5491   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
5492 else
5493   krb4lib=no
5494 fi
5495
5496 else
5497
5498           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
5499 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
5500 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   ac_check_lib_save_LIBS=$LIBS
5504 LIBS="-lkrb $LIB_DES $LIBS"
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h.  */
5507
5508 /* Override any GCC internal prototype to avoid an error.
5509    Use char because int might match the return type of a GCC
5510    builtin and then its argument prototype would still apply.  */
5511 #ifdef __cplusplus
5512 extern "C"
5513 #endif
5514 char krb_mk_priv ();
5515 int
5516 main ()
5517 {
5518 return krb_mk_priv ();
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_link "$LINENO"; then :
5524   ac_cv_lib_krb_krb_mk_priv=yes
5525 else
5526   ac_cv_lib_krb_krb_mk_priv=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext \
5529     conftest$ac_exeext conftest.$ac_ext
5530 LIBS=$ac_check_lib_save_LIBS
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
5533 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
5534 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
5535   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
5536 else
5537   krb4lib=no
5538 fi
5539
5540 fi
5541
5542 else
5543   krb4="no"
5544 fi
5545
5546
5547
5548       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
5549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5
5550 $as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
5551 if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   ac_check_lib_save_LIBS=$LIBS
5555 LIBS="-lkrb4 $LIB_DES $LIBS"
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h.  */
5558
5559 /* Override any GCC internal prototype to avoid an error.
5560    Use char because int might match the return type of a GCC
5561    builtin and then its argument prototype would still apply.  */
5562 #ifdef __cplusplus
5563 extern "C"
5564 #endif
5565 char krb_mk_priv ();
5566 int
5567 main ()
5568 {
5569 return krb_mk_priv ();
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_link "$LINENO"; then :
5575   ac_cv_lib_krb4_krb_mk_priv=yes
5576 else
5577   ac_cv_lib_krb4_krb_mk_priv=no
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext \
5580     conftest$ac_exeext conftest.$ac_ext
5581 LIBS=$ac_check_lib_save_LIBS
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
5584 $as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
5585 if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then :
5586   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
5587 else
5588   krb4=no
5589 fi
5590
5591       fi
5592       if test "$krb4" = no; then
5593           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
5594 $as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
5595       fi
5596     else
5597       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
5598 $as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
5599       krb4=no
5600     fi
5601   fi
5602
5603   if test "$krb4" != no; then
5604     cmu_save_LIBS="$LIBS"
5605     LIBS="$LIBS $SASL_KRB_LIB"
5606     for ac_func in krb_get_err_text
5607 do :
5608   ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
5609 if test "x$ac_cv_func_krb_get_err_text" = xyes; then :
5610   cat >>confdefs.h <<_ACEOF
5611 #define HAVE_KRB_GET_ERR_TEXT 1
5612 _ACEOF
5613
5614 fi
5615 done
5616
5617     LIBS="$cmu_save_LIBS"
5618   fi
5619
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5
5621 $as_echo_n "checking KERBEROS_V4... " >&6; }
5622   if test "$krb4" != no; then
5623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
5624 $as_echo "enabled" >&6; }
5625     SASL_MECHS="$SASL_MECHS libkerberos4.la"
5626     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
5627     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
5628
5629 $as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h
5630
5631
5632 $as_echo "#define HAVE_KRB /**/" >>confdefs.h
5633
5634     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
5635   else
5636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5637 $as_echo "disabled" >&6; }
5638   fi
5639
5640
5641 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
5642 if test "x$ac_cv_func_crypt" = xyes; then :
5643   cmu_have_crypt=yes
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
5646 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
5647 if ${ac_cv_lib_crypt_crypt+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   ac_check_lib_save_LIBS=$LIBS
5651 LIBS="-lcrypt  $LIBS"
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654
5655 /* Override any GCC internal prototype to avoid an error.
5656    Use char because int might match the return type of a GCC
5657    builtin and then its argument prototype would still apply.  */
5658 #ifdef __cplusplus
5659 extern "C"
5660 #endif
5661 char crypt ();
5662 int
5663 main ()
5664 {
5665 return crypt ();
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_link "$LINENO"; then :
5671   ac_cv_lib_crypt_crypt=yes
5672 else
5673   ac_cv_lib_crypt_crypt=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext \
5676     conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
5680 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
5681 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
5682   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
5683 else
5684   cmu_have_crypt=no
5685 fi
5686
5687 fi
5688
5689
5690
5691
5692
5693 # Check whether --enable-gssapi was given.
5694 if test "${enable_gssapi+set}" = set; then :
5695   enableval=$enable_gssapi; gssapi=$enableval
5696 else
5697   gssapi=yes
5698 fi
5699
5700
5701 # Check whether --with-gss_impl was given.
5702 if test "${with_gss_impl+set}" = set; then :
5703   withval=$with_gss_impl; gss_impl=$withval
5704 else
5705   gss_impl=auto
5706 fi
5707
5708
5709 if test "$gssapi" != no; then
5710   platform=
5711   case "${host}" in
5712     *-*-linux*)
5713       platform=__linux
5714       ;;
5715     *-*-hpux*)
5716       platform=__hpux
5717       ;;
5718     *-*-irix*)
5719       platform=__irix
5720       ;;
5721     *-*-solaris2*)
5722 # When should we use __sunos?
5723       platform=__solaris
5724       ;;
5725     *-*-aix*)
5726 ###_AIX
5727       platform=__aix
5728       ;;
5729     *)
5730       { $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
5731 $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;}
5732       if test "$gss_impl" = "cybersafe"; then
5733         as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
5734       fi
5735       ;;
5736   esac
5737
5738   cmu_saved_CPPFLAGS=$CPPFLAGS
5739
5740   if test -d ${gssapi}; then
5741     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
5742 # We want to keep -I in our CPPFLAGS, but only if we succeed
5743     cmu_saved_CPPFLAGS=$CPPFLAGS
5744 ### I am not sure how useful is this (and whether this is required at all
5745 ### especially when we have to provide two -L flags for new CyberSafe
5746     LDFLAGS="$LDFLAGS -L$gssapi/lib"
5747
5748     if test -n "$platform"; then
5749       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
5750         CPPFLAGS="$CPPFLAGS -D$platform"
5751         if test -d "${gssapi}/appsec-sdk/include"; then
5752           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
5753         fi
5754       fi
5755     fi
5756   fi
5757   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
5758 if test "x$ac_cv_header_gssapi_h" = xyes; then :
5759
5760 $as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
5761
5762 else
5763   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
5764 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
5765
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no include files found" >&5
5768 $as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
5769 fi
5770
5771
5772 fi
5773
5774
5775   for ac_header in gssapi/gssapi_ext.h
5776 do :
5777   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
5778 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then :
5779   cat >>confdefs.h <<_ACEOF
5780 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
5781 _ACEOF
5782
5783 fi
5784
5785 done
5786
5787   CPPFLAGS=$cmu_saved_CPPFLAGS
5788
5789 fi
5790
5791 if test "$gssapi" != no; then
5792   # We need to find out which gssapi implementation we are
5793   # using. Supported alternatives are: MIT Kerberos 5,
5794   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
5795   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
5796   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
5797   #
5798   # The choice is reflected in GSSAPIBASE_LIBS
5799
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
5801 $as_echo_n "checking for res_search in -lresolv... " >&6; }
5802 if ${ac_cv_lib_resolv_res_search+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-lresolv  $LIBS"
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h.  */
5809
5810 /* Override any GCC internal prototype to avoid an error.
5811    Use char because int might match the return type of a GCC
5812    builtin and then its argument prototype would still apply.  */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 char res_search ();
5817 int
5818 main ()
5819 {
5820 return res_search ();
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 if ac_fn_c_try_link "$LINENO"; then :
5826   ac_cv_lib_resolv_res_search=yes
5827 else
5828   ac_cv_lib_resolv_res_search=no
5829 fi
5830 rm -f core conftest.err conftest.$ac_objext \
5831     conftest$ac_exeext conftest.$ac_ext
5832 LIBS=$ac_check_lib_save_LIBS
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
5835 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
5836 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
5837   cat >>confdefs.h <<_ACEOF
5838 #define HAVE_LIBRESOLV 1
5839 _ACEOF
5840
5841   LIBS="-lresolv $LIBS"
5842
5843 fi
5844
5845   if test -d ${gssapi}; then
5846      gssapi_dir="${gssapi}/lib"
5847      GSSAPIBASE_LIBS="-L$gssapi_dir"
5848      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
5849   else
5850      # FIXME: This is only used for building cyrus, and then only as
5851      # a real hack.  it needs to be fixed.
5852      gssapi_dir="/usr/local/lib"
5853   fi
5854
5855   # Check a full link against the Heimdal libraries.
5856   # If this fails, check a full link against the MIT libraries.
5857   # If this fails, check a full link against the CyberSafe libraries.
5858   # If this fails, check a full link against the Solaris 8 and up libgss.
5859
5860   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
5861     gss_failed=0
5862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
5863 $as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
5864 if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   ac_check_lib_save_LIBS=$LIBS
5868 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h.  */
5871
5872 /* Override any GCC internal prototype to avoid an error.
5873    Use char because int might match the return type of a GCC
5874    builtin and then its argument prototype would still apply.  */
5875 #ifdef __cplusplus
5876 extern "C"
5877 #endif
5878 char gss_unwrap ();
5879 int
5880 main ()
5881 {
5882 return gss_unwrap ();
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_link "$LINENO"; then :
5888   ac_cv_lib_gssapi_gss_unwrap=yes
5889 else
5890   ac_cv_lib_gssapi_gss_unwrap=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext \
5893     conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
5897 $as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
5898 if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
5899   gss_impl="heimdal"
5900 else
5901   gss_failed=1
5902 fi
5903
5904     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
5905       gss_impl="failed"
5906     fi
5907   fi
5908
5909   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
5910     # check for libkrb5support first
5911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
5912 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
5913 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   ac_check_lib_save_LIBS=$LIBS
5917 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h.  */
5920
5921 /* Override any GCC internal prototype to avoid an error.
5922    Use char because int might match the return type of a GCC
5923    builtin and then its argument prototype would still apply.  */
5924 #ifdef __cplusplus
5925 extern "C"
5926 #endif
5927 char krb5int_getspecific ();
5928 int
5929 main ()
5930 {
5931 return krb5int_getspecific ();
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_c_try_link "$LINENO"; then :
5937   ac_cv_lib_krb5support_krb5int_getspecific=yes
5938 else
5939   ac_cv_lib_krb5support_krb5int_getspecific=no
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext \
5942     conftest$ac_exeext conftest.$ac_ext
5943 LIBS=$ac_check_lib_save_LIBS
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
5946 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
5947 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
5948   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
5949 fi
5950
5951
5952     gss_failed=0
5953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
5954 $as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
5955 if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   ac_check_lib_save_LIBS=$LIBS
5959 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h.  */
5962
5963 /* Override any GCC internal prototype to avoid an error.
5964    Use char because int might match the return type of a GCC
5965    builtin and then its argument prototype would still apply.  */
5966 #ifdef __cplusplus
5967 extern "C"
5968 #endif
5969 char gss_unwrap ();
5970 int
5971 main ()
5972 {
5973 return gss_unwrap ();
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 if ac_fn_c_try_link "$LINENO"; then :
5979   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
5980 else
5981   ac_cv_lib_gssapi_krb5_gss_unwrap=no
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext \
5984     conftest$ac_exeext conftest.$ac_ext
5985 LIBS=$ac_check_lib_save_LIBS
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
5988 $as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
5989 if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
5990   gss_impl="mit"
5991 else
5992   gss_failed=1
5993 fi
5994
5995     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
5996       gss_impl="failed"
5997     fi
5998   fi
5999
6000   # For Cybersafe one has to set a platform define in order to make compilation work
6001   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
6002
6003     cmu_saved_CPPFLAGS=$CPPFLAGS
6004     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
6005 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
6006     if test -d "${gssapi}/appsec-rt/lib"; then
6007       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
6008     fi
6009     CPPFLAGS="$CPPFLAGS -D$platform"
6010     if test -d "${gssapi}/appsec-sdk/include"; then
6011       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
6012     fi
6013
6014     gss_failed=0
6015
6016 # Check for CyberSafe with two libraries first, than fall back to a single
6017 # library (older CyberSafe)
6018
6019     unset ac_cv_lib_gss_csf_gss_acq_user
6020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
6021 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
6022 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   ac_check_lib_save_LIBS=$LIBS
6026 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h.  */
6029
6030 /* Override any GCC internal prototype to avoid an error.
6031    Use char because int might match the return type of a GCC
6032    builtin and then its argument prototype would still apply.  */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 char csf_gss_acq_user ();
6037 int
6038 main ()
6039 {
6040 return csf_gss_acq_user ();
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_link "$LINENO"; then :
6046   ac_cv_lib_gss_csf_gss_acq_user=yes
6047 else
6048   ac_cv_lib_gss_csf_gss_acq_user=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext \
6051     conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$ac_check_lib_save_LIBS
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
6055 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
6056 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
6057   gss_impl="cybersafe03"
6058 else
6059   unset ac_cv_lib_gss_csf_gss_acq_user;
6060                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
6061 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
6062 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   ac_check_lib_save_LIBS=$LIBS
6066 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h.  */
6069
6070 /* Override any GCC internal prototype to avoid an error.
6071    Use char because int might match the return type of a GCC
6072    builtin and then its argument prototype would still apply.  */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 char csf_gss_acq_user ();
6077 int
6078 main ()
6079 {
6080 return csf_gss_acq_user ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 if ac_fn_c_try_link "$LINENO"; then :
6086   ac_cv_lib_gss_csf_gss_acq_user=yes
6087 else
6088   ac_cv_lib_gss_csf_gss_acq_user=no
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext \
6091     conftest$ac_exeext conftest.$ac_ext
6092 LIBS=$ac_check_lib_save_LIBS
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
6095 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
6096 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
6097   gss_impl="cybersafe"
6098 else
6099   gss_failed=1
6100 fi
6101
6102 fi
6103
6104
6105     if test "$gss_failed" = "1"; then
6106 # Restore variables
6107       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
6108       CPPFLAGS=$cmu_saved_CPPFLAGS
6109
6110       if test "$gss_impl" != "auto"; then
6111         gss_impl="failed"
6112       fi
6113     fi
6114   fi
6115
6116   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
6117     gss_failed=0
6118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
6119 $as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
6120 if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   ac_check_lib_save_LIBS=$LIBS
6124 LIBS="-lgss -lgss $LIBS"
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h.  */
6127
6128 /* Override any GCC internal prototype to avoid an error.
6129    Use char because int might match the return type of a GCC
6130    builtin and then its argument prototype would still apply.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 char gss_unwrap ();
6135 int
6136 main ()
6137 {
6138 return gss_unwrap ();
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_link "$LINENO"; then :
6144   ac_cv_lib_gss_gss_unwrap=yes
6145 else
6146   ac_cv_lib_gss_gss_unwrap=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext \
6149     conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
6153 $as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
6154 if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
6155   gss_impl="seam"
6156 else
6157   gss_failed=1
6158 fi
6159
6160     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
6161       gss_impl="failed"
6162     fi
6163   fi
6164
6165   if test "$gss_impl" = "mit"; then
6166     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
6167     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
6168   elif test "$gss_impl" = "heimdal"; then
6169     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
6170     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
6171     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}"
6172   elif test "$gss_impl" = "cybersafe03"; then
6173 # Version of CyberSafe with two libraries
6174     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
6175     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
6176     # there is no static libgss for CyberSafe
6177     GSSAPIBASE_STATIC_LIBS=none
6178   elif test "$gss_impl" = "cybersafe"; then
6179     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
6180     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
6181     # there is no static libgss for CyberSafe
6182     GSSAPIBASE_STATIC_LIBS=none
6183   elif test "$gss_impl" = "seam"; then
6184     GSSAPIBASE_LIBS=-lgss
6185     # there is no static libgss on Solaris 8 and up
6186     GSSAPIBASE_STATIC_LIBS=none
6187   elif test "$gss_impl" = "failed"; then
6188     gssapi="no"
6189     GSSAPIBASE_LIBS=
6190     GSSAPIBASE_STATIC_LIBS=
6191     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
6192 $as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
6193   else
6194     gssapi="no"
6195     GSSAPIBASE_LIBS=
6196     GSSAPIBASE_STATIC_LIBS=
6197     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
6198 $as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
6199   fi
6200 fi
6201
6202 #
6203 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
6204 # in gssapi\rfckrb5.h
6205 #
6206 if test "$gssapi" != "no"; then
6207   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
6208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h.  */
6210 #include <gssapi/gssapi.h>
6211                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
6212                     hostbased_service_gss_nt_yes
6213                   #endif
6214 _ACEOF
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
6217
6218 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
6219
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
6222 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
6223 fi
6224 rm -f conftest*
6225
6226
6227   elif test "$ac_cv_header_gssapi_h" = "yes"; then
6228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h.  */
6230 #include <gssapi.h>
6231
6232 _ACEOF
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
6235
6236 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
6237
6238 fi
6239 rm -f conftest*
6240
6241   elif test "$ac_cv_header_gssapi_gssapi_h"; then
6242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h.  */
6244 #include <gssapi/gssapi.h>
6245
6246 _ACEOF
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
6249
6250 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
6251
6252 fi
6253 rm -f conftest*
6254
6255   fi
6256
6257   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
6258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h.  */
6260 #include <gssapi/gssapi.h>
6261                   #ifdef GSS_C_NT_USER_NAME
6262                    user_name_yes_gss_nt
6263                   #endif
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
6267
6268 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
6269
6270 else
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
6272 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
6273 fi
6274 rm -f conftest*
6275
6276   elif test "$ac_cv_header_gssapi_h" = "yes"; then
6277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h.  */
6279 #include <gssapi.h>
6280
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
6284
6285 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
6286
6287 fi
6288 rm -f conftest*
6289
6290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h.  */
6292 #include <gssapi.h>
6293
6294 _ACEOF
6295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6296   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
6297   rfc5587=yes
6298 fi
6299 rm -f conftest*
6300
6301   elif test "$ac_cv_header_gssapi_gssapi_h"; then
6302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h.  */
6304 #include <gssapi/gssapi.h>
6305
6306 _ACEOF
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
6309
6310 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
6311
6312 fi
6313 rm -f conftest*
6314
6315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h.  */
6317 #include <gssapi/gssapi.h>
6318
6319 _ACEOF
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
6322   rfc5587=yes
6323 fi
6324 rm -f conftest*
6325
6326   fi
6327 fi
6328
6329 GSSAPI_LIBS=""
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
6331 $as_echo_n "checking GSSAPI... " >&6; }
6332 if test "$gssapi" != no; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
6334 $as_echo "with implementation ${gss_impl}" >&6; }
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
6336 $as_echo_n "checking for res_search in -lresolv... " >&6; }
6337 if ${ac_cv_lib_resolv_res_search+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   ac_check_lib_save_LIBS=$LIBS
6341 LIBS="-lresolv  $LIBS"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h.  */
6344
6345 /* Override any GCC internal prototype to avoid an error.
6346    Use char because int might match the return type of a GCC
6347    builtin and then its argument prototype would still apply.  */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 char res_search ();
6352 int
6353 main ()
6354 {
6355 return res_search ();
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361   ac_cv_lib_resolv_res_search=yes
6362 else
6363   ac_cv_lib_resolv_res_search=no
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext \
6366     conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
6370 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
6371 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
6372   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
6373 fi
6374
6375   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
6376   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
6377   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
6378   if test "$rfc5587" = "yes"; then
6379     SASL_MECHS="$SASL_MECHS libgs2.la"
6380     SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
6381     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
6382   fi
6383   cmu_save_LIBS="$LIBS"
6384   LIBS="$LIBS $GSSAPIBASE_LIBS"
6385   for ac_func in gsskrb5_register_acceptor_identity
6386 do :
6387   ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
6388 if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
6389   cat >>confdefs.h <<_ACEOF
6390 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
6391 _ACEOF
6392
6393 fi
6394 done
6395
6396   for ac_func in gss_decapsulate_token
6397 do :
6398   ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
6399 if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
6400   cat >>confdefs.h <<_ACEOF
6401 #define HAVE_GSS_DECAPSULATE_TOKEN 1
6402 _ACEOF
6403
6404 fi
6405 done
6406
6407   for ac_func in gss_encapsulate_token
6408 do :
6409   ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
6410 if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
6411   cat >>confdefs.h <<_ACEOF
6412 #define HAVE_GSS_ENCAPSULATE_TOKEN 1
6413 _ACEOF
6414
6415 fi
6416 done
6417
6418   for ac_func in gss_oid_equal
6419 do :
6420   ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
6421 if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
6422   cat >>confdefs.h <<_ACEOF
6423 #define HAVE_GSS_OID_EQUAL 1
6424 _ACEOF
6425
6426 fi
6427 done
6428
6429   LIBS="$cmu_save_LIBS"
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6432 $as_echo "disabled" >&6; }
6433 fi
6434
6435
6436
6437
6438 if test "$gssapi" != no; then
6439         if test "$gss_impl" = "heimdal"; then
6440
6441 $as_echo "#define KRB5_HEIMDAL /**/" >>confdefs.h
6442
6443         fi
6444
6445 $as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h
6446
6447 fi
6448
6449 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
6450 if test "x$ac_cv_func_crypt" = xyes; then :
6451   cmu_have_crypt=yes
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
6454 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
6455 if ${ac_cv_lib_crypt_crypt+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   ac_check_lib_save_LIBS=$LIBS
6459 LIBS="-lcrypt  $LIBS"
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h.  */
6462
6463 /* Override any GCC internal prototype to avoid an error.
6464    Use char because int might match the return type of a GCC
6465    builtin and then its argument prototype would still apply.  */
6466 #ifdef __cplusplus
6467 extern "C"
6468 #endif
6469 char crypt ();
6470 int
6471 main ()
6472 {
6473 return crypt ();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479   ac_cv_lib_crypt_crypt=yes
6480 else
6481   ac_cv_lib_crypt_crypt=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext \
6484     conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
6488 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
6489 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
6490   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
6491 else
6492   cmu_have_crypt=no
6493 fi
6494
6495 fi
6496
6497
6498
6499
6500 # Check whether --enable-sia was given.
6501 if test "${enable_sia+set}" = set; then :
6502   enableval=$enable_sia; sia=$enableval
6503 else
6504   sia=no
6505 fi
6506
6507 LIB_SIA=""
6508 if test "$sia" != no; then
6509   if test -f /etc/sia/matrix.conf; then
6510
6511 $as_echo "#define HAVE_SIA /**/" >>confdefs.h
6512
6513     LIB_SIA="-lsecurity -ldb -lm -laud"
6514   else
6515     as_fn_error $? "No support for SIA found" "$LINENO" 5
6516   fi
6517 fi
6518
6519
6520 # Check whether --enable-auth-sasldb was given.
6521 if test "${enable_auth_sasldb+set}" = set; then :
6522   enableval=$enable_auth_sasldb; authsasldb=$enableval
6523 else
6524   authsasldb=no
6525 fi
6526
6527 if test "$authsasldb" != no; then
6528   if test ! -d "../sasldb"; then
6529      echo "ERROR: Cannot build sasldb module outside of the full SASL source tree."
6530      exit 0;
6531   fi
6532
6533 $as_echo "#define AUTH_SASLDB /**/" >>confdefs.h
6534
6535
6536
6537 # Check whether --with-dbpath was given.
6538 if test "${with_dbpath+set}" = set; then :
6539   withval=$with_dbpath; dbpath=$withval
6540 else
6541   dbpath=/etc/sasldb2
6542 fi
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5
6545 $as_echo_n "checking DB path to use... " >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5
6547 $as_echo "$dbpath" >&6; }
6548
6549 cat >>confdefs.h <<_ACEOF
6550 #define SASL_DB_PATH "$dbpath"
6551 _ACEOF
6552
6553
6554 cmu_save_LIBS="$LIBS"
6555
6556 # Check whether --with-dblib was given.
6557 if test "${with_dblib+set}" = set; then :
6558   withval=$with_dblib; dblib=$withval
6559 else
6560   dblib=auto_detect
6561 fi
6562
6563
6564
6565
6566 # Check whether --with-bdb-libdir was given.
6567 if test "${with_bdb_libdir+set}" = set; then :
6568   withval=$with_bdb_libdir; with_bdb_lib=$withval
6569 else
6570    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
6571 fi
6572
6573
6574 # Check whether --with-bdb-incdir was given.
6575 if test "${with_bdb_incdir+set}" = set; then :
6576   withval=$with_bdb_incdir; with_bdb_inc=$withval
6577 else
6578    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
6579 fi
6580
6581
6582
6583 SASL_DB_LIB=""
6584
6585 case "$dblib" in
6586   berkeley)
6587
6588
6589
6590         cmu_save_CPPFLAGS=$CPPFLAGS
6591
6592         if test -d $with_bdb_inc; then
6593             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6594             BDB_INCADD="-I$with_bdb_inc"
6595         else
6596             BDB_INCADD=""
6597         fi
6598
6599                         ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
6600 if test "x$ac_cv_header_db_h" = xyes; then :
6601
6602         BDB_SAVE_LDFLAGS=$LDFLAGS
6603
6604         if test -d $with_bdb_lib; then
6605
6606   # this is CMU ADD LIBPATH TO
6607   if test "$andrew_runpath_switch" = "none" ; then
6608         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6609   else
6610         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6611   fi
6612
6613
6614   # this is CMU ADD LIBPATH TO
6615   if test "$andrew_runpath_switch" = "none" ; then
6616         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6617   else
6618         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6619   fi
6620
6621         else
6622             BDB_LIBADD=""
6623         fi
6624
6625         saved_LIBS=$LIBS
6626         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
6627           do
6628             LIBS="$saved_LIBS -l$dbname"
6629             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h.  */
6631 #include <db.h>
6632 int
6633 main ()
6634 {
6635 db_create(NULL, NULL, 0);
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"; then :
6641   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6642 else
6643   dblib="no"
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext \
6646     conftest$ac_exeext conftest.$ac_ext
6647             if test "$dblib" = "berkeley"; then break; fi
6648           done
6649         if test "$dblib" = "no"; then
6650             LIBS="$saved_LIBS -ldb"
6651             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h.  */
6653 #include <db.h>
6654 int
6655 main ()
6656 {
6657 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6658   ;
6659   return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_link "$LINENO"; then :
6663   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
6664 else
6665   dblib="no"
6666 fi
6667 rm -f core conftest.err conftest.$ac_objext \
6668     conftest$ac_exeext conftest.$ac_ext
6669         fi
6670         LIBS=$saved_LIBS
6671
6672         LDFLAGS=$BDB_SAVE_LDFLAGS
6673
6674 else
6675   dblib="no"
6676 fi
6677
6678
6679
6680         CPPFLAGS=$cmu_save_CPPFLAGS
6681
6682         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6683         SASL_DB_INC=$BDB_INCADD
6684         SASL_DB_LIB="${BDB_LIBADD}"
6685         ;;
6686   gdbm)
6687
6688 # Check whether --with-gdbm was given.
6689 if test "${with_gdbm+set}" = set; then :
6690   withval=$with_gdbm; with_gdbm="${withval}"
6691 fi
6692
6693
6694         case "$with_gdbm" in
6695            ""|yes)
6696                ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
6697 if test "x$ac_cv_header_gdbm_h" = xyes; then :
6698
6699                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
6700 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
6701 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   ac_check_lib_save_LIBS=$LIBS
6705 LIBS="-lgdbm  $LIBS"
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h.  */
6708
6709 /* Override any GCC internal prototype to avoid an error.
6710    Use char because int might match the return type of a GCC
6711    builtin and then its argument prototype would still apply.  */
6712 #ifdef __cplusplus
6713 extern "C"
6714 #endif
6715 char gdbm_open ();
6716 int
6717 main ()
6718 {
6719 return gdbm_open ();
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725   ac_cv_lib_gdbm_gdbm_open=yes
6726 else
6727   ac_cv_lib_gdbm_gdbm_open=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext \
6730     conftest$ac_exeext conftest.$ac_ext
6731 LIBS=$ac_check_lib_save_LIBS
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
6734 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
6735 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
6736   SASL_DB_LIB="-lgdbm"
6737 else
6738   dblib="no"
6739 fi
6740
6741 else
6742   dblib="no"
6743 fi
6744
6745
6746                ;;
6747            *)
6748                if test -d $with_gdbm; then
6749                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
6750                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
6751                  SASL_DB_LIB="-lgdbm"
6752                else
6753                  with_gdbm="no"
6754                fi
6755        esac
6756         ;;
6757   ndbm)
6758                         ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
6759 if test "x$ac_cv_header_ndbm_h" = xyes; then :
6760
6761                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
6762 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
6763 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lndbm  $LIBS"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770
6771 /* Override any GCC internal prototype to avoid an error.
6772    Use char because int might match the return type of a GCC
6773    builtin and then its argument prototype would still apply.  */
6774 #ifdef __cplusplus
6775 extern "C"
6776 #endif
6777 char dbm_open ();
6778 int
6779 main ()
6780 {
6781 return dbm_open ();
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787   ac_cv_lib_ndbm_dbm_open=yes
6788 else
6789   ac_cv_lib_ndbm_dbm_open=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext \
6792     conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
6796 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
6797 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
6798   SASL_DB_LIB="-lndbm"
6799 else
6800
6801                                 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
6802 if test "x$ac_cv_func_dbm_open" = xyes; then :
6803
6804 else
6805   dblib="no"
6806 fi
6807
6808 fi
6809
6810 else
6811   dblib="no"
6812 fi
6813
6814
6815         ;;
6816   auto_detect)
6817
6818
6819
6820         cmu_save_CPPFLAGS=$CPPFLAGS
6821
6822         if test -d $with_bdb_inc; then
6823             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6824             BDB_INCADD="-I$with_bdb_inc"
6825         else
6826             BDB_INCADD=""
6827         fi
6828
6829                         ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
6830 if test "x$ac_cv_header_db_h" = xyes; then :
6831
6832         BDB_SAVE_LDFLAGS=$LDFLAGS
6833
6834         if test -d $with_bdb_lib; then
6835
6836   # this is CMU ADD LIBPATH TO
6837   if test "$andrew_runpath_switch" = "none" ; then
6838         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6839   else
6840         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6841   fi
6842
6843
6844   # this is CMU ADD LIBPATH TO
6845   if test "$andrew_runpath_switch" = "none" ; then
6846         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6847   else
6848         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6849   fi
6850
6851         else
6852             BDB_LIBADD=""
6853         fi
6854
6855         saved_LIBS=$LIBS
6856         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
6857           do
6858             LIBS="$saved_LIBS -l$dbname"
6859             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h.  */
6861 #include <db.h>
6862 int
6863 main ()
6864 {
6865 db_create(NULL, NULL, 0);
6866   ;
6867   return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_link "$LINENO"; then :
6871   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6872 else
6873   dblib="no"
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext \
6876     conftest$ac_exeext conftest.$ac_ext
6877             if test "$dblib" = "berkeley"; then break; fi
6878           done
6879         if test "$dblib" = "no"; then
6880             LIBS="$saved_LIBS -ldb"
6881             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h.  */
6883 #include <db.h>
6884 int
6885 main ()
6886 {
6887 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
6894 else
6895   dblib="no"
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext \
6898     conftest$ac_exeext conftest.$ac_ext
6899         fi
6900         LIBS=$saved_LIBS
6901
6902         LDFLAGS=$BDB_SAVE_LDFLAGS
6903
6904 else
6905   dblib="no"
6906 fi
6907
6908
6909
6910         CPPFLAGS=$cmu_save_CPPFLAGS
6911
6912         if test "$dblib" = no; then
6913                   ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
6914 if test "x$ac_cv_header_ndbm_h" = xyes; then :
6915
6916                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
6917 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
6918 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921   ac_check_lib_save_LIBS=$LIBS
6922 LIBS="-lndbm  $LIBS"
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925
6926 /* Override any GCC internal prototype to avoid an error.
6927    Use char because int might match the return type of a GCC
6928    builtin and then its argument prototype would still apply.  */
6929 #ifdef __cplusplus
6930 extern "C"
6931 #endif
6932 char dbm_open ();
6933 int
6934 main ()
6935 {
6936 return dbm_open ();
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_link "$LINENO"; then :
6942   ac_cv_lib_ndbm_dbm_open=yes
6943 else
6944   ac_cv_lib_ndbm_dbm_open=no
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext \
6947     conftest$ac_exeext conftest.$ac_ext
6948 LIBS=$ac_check_lib_save_LIBS
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
6951 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
6952 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
6953   dblib="ndbm"; SASL_DB_LIB="-lndbm"
6954 else
6955   dblib="weird"
6956 fi
6957
6958 else
6959   dblib="no"
6960 fi
6961
6962
6963           if test "$dblib" = "weird"; then
6964                         ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
6965 if test "x$ac_cv_func_dbm_open" = xyes; then :
6966   dblib="ndbm"
6967 else
6968   dblib="no"
6969 fi
6970
6971           fi
6972
6973           if test "$dblib" = no; then
6974                     ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
6975 if test "x$ac_cv_header_gdbm_h" = xyes; then :
6976
6977                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
6978 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
6979 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   ac_check_lib_save_LIBS=$LIBS
6983 LIBS="-lgdbm  $LIBS"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986
6987 /* Override any GCC internal prototype to avoid an error.
6988    Use char because int might match the return type of a GCC
6989    builtin and then its argument prototype would still apply.  */
6990 #ifdef __cplusplus
6991 extern "C"
6992 #endif
6993 char gdbm_open ();
6994 int
6995 main ()
6996 {
6997 return gdbm_open ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003   ac_cv_lib_gdbm_gdbm_open=yes
7004 else
7005   ac_cv_lib_gdbm_gdbm_open=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext \
7008     conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
7012 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
7013 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
7014   dblib="gdbm";
7015                                              SASL_DB_LIB="-lgdbm"
7016 else
7017   dblib="no"
7018 fi
7019
7020 else
7021   dblib="no"
7022 fi
7023
7024
7025           fi
7026         else
7027                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
7028           SASL_DB_INC=$BDB_INCADD
7029           SASL_DB_LIB="${BDB_LIBADD}"
7030         fi
7031         ;;
7032   none)
7033         ;;
7034   no)
7035         ;;
7036   *)
7037         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5
7038 $as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
7039         as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" "$LINENO" 5
7040         dblib=no
7041         ;;
7042 esac
7043 LIBS="$cmu_save_LIBS"
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5
7046 $as_echo_n "checking DB library to use... " >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5
7048 $as_echo "$dblib" >&6; }
7049
7050 SASL_DB_BACKEND="db_${dblib}.lo"
7051 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
7052 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
7053 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
7054 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
7055
7056 case "$dblib" in
7057   gdbm)
7058     SASL_MECHS="$SASL_MECHS libsasldb.la"
7059
7060 $as_echo "#define SASL_GDBM /**/" >>confdefs.h
7061
7062     ;;
7063   ndbm)
7064     SASL_MECHS="$SASL_MECHS libsasldb.la"
7065
7066 $as_echo "#define SASL_NDBM /**/" >>confdefs.h
7067
7068     ;;
7069   berkeley)
7070     SASL_MECHS="$SASL_MECHS libsasldb.la"
7071
7072 $as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h
7073
7074     ;;
7075   *)
7076     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5
7077 $as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
7078             SASL_DB_BACKEND="db_none.lo"
7079     SASL_DB_BACKEND_STATIC="db_none.o"
7080     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
7081     SASL_DB_UTILS=""
7082     SASL_DB_MANS=""
7083     SASL_DB_LIB=""
7084     ;;
7085 esac
7086
7087 if test "$enable_static" = yes; then
7088     if test "$dblib" != "none"; then
7089       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
7090       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
7091
7092 $as_echo "#define STATIC_SASLDB /**/" >>confdefs.h
7093
7094     else
7095       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
7096       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
7097     fi
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106
7107   SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
7108 fi
7109
7110 # Check whether --enable-httpform was given.
7111 if test "${enable_httpform+set}" = set; then :
7112   enableval=$enable_httpform; httpform=$enableval
7113 else
7114   httpform=no
7115 fi
7116
7117 if test "$httpform" != no; then
7118
7119 $as_echo "#define HAVE_HTTPFORM /**/" >>confdefs.h
7120
7121 fi
7122
7123
7124 # Check whether --with-pam was given.
7125 if test "${with_pam+set}" = set; then :
7126   withval=$with_pam; with_pam=$withval
7127 else
7128   with_pam=yes
7129 fi
7130
7131 if test "$with_pam" != no; then
7132   if test -d $with_pam; then
7133     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
7134     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
7135   fi
7136   cmu_save_LIBS="$LIBS"
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
7138 $as_echo_n "checking for pam_start in -lpam... " >&6; }
7139 if ${ac_cv_lib_pam_pam_start+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   ac_check_lib_save_LIBS=$LIBS
7143 LIBS="-lpam $SASL_DL_LIB $LIBS"
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146
7147 /* Override any GCC internal prototype to avoid an error.
7148    Use char because int might match the return type of a GCC
7149    builtin and then its argument prototype would still apply.  */
7150 #ifdef __cplusplus
7151 extern "C"
7152 #endif
7153 char pam_start ();
7154 int
7155 main ()
7156 {
7157 return pam_start ();
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 if ac_fn_c_try_link "$LINENO"; then :
7163   ac_cv_lib_pam_pam_start=yes
7164 else
7165   ac_cv_lib_pam_pam_start=no
7166 fi
7167 rm -f core conftest.err conftest.$ac_objext \
7168     conftest$ac_exeext conftest.$ac_ext
7169 LIBS=$ac_check_lib_save_LIBS
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
7172 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
7173 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
7174
7175           ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
7176 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
7177
7178 else
7179   with_pam=no
7180 fi
7181
7182
7183 else
7184   with_pam=no
7185 fi
7186
7187   LIBS="$cmu_save_LIBS"
7188 fi
7189
7190
7191 # Check whether --with-ipctype was given.
7192 if test "${with_ipctype+set}" = set; then :
7193   withval=$with_ipctype; with_ipctype=$withval
7194 else
7195   with_ipctype="unix"
7196 fi
7197
7198 MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
7199
7200 if test "$with_ipctype" = "doors"; then
7201
7202 $as_echo "#define USE_DOORS /**/" >>confdefs.h
7203
7204
7205 $as_echo "#define SASLAUTHD_THREADED /**/" >>confdefs.h
7206
7207   LIBS="$LIBS -ldoor -lpthread"
7208 fi
7209
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
7211 $as_echo_n "checking for PAM support... " >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7213 $as_echo "$with_pam" >&6; }
7214 LIB_PAM=""
7215 if test "$with_pam" != no; then
7216
7217 $as_echo "#define HAVE_PAM /**/" >>confdefs.h
7218
7219   LIB_PAM="-lpam"
7220 fi
7221
7222
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
7224 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
7225 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
7226   $as_echo_n "(cached) " >&6
7227 else
7228   ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-lresolv  $LIBS"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h.  */
7232
7233 /* Override any GCC internal prototype to avoid an error.
7234    Use char because int might match the return type of a GCC
7235    builtin and then its argument prototype would still apply.  */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 char inet_aton ();
7240 int
7241 main ()
7242 {
7243 return inet_aton ();
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 if ac_fn_c_try_link "$LINENO"; then :
7249   ac_cv_lib_resolv_inet_aton=yes
7250 else
7251   ac_cv_lib_resolv_inet_aton=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext \
7254     conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
7258 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
7259 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
7260   cat >>confdefs.h <<_ACEOF
7261 #define HAVE_LIBRESOLV 1
7262 _ACEOF
7263
7264   LIBS="-lresolv $LIBS"
7265
7266 fi
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to include LDAP support" >&5
7270 $as_echo_n "checking to include LDAP support... " >&6; }
7271
7272 # Check whether --with-ldap was given.
7273 if test "${with_ldap+set}" = set; then :
7274   withval=$with_ldap; with_ldap=$withval
7275 else
7276   with_ldap=no
7277 fi
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
7280 $as_echo "$with_ldap" >&6; }
7281
7282 if test -d $with_ldap; then
7283     CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
7284
7285   # this is CMU ADD LIBPATH
7286   if test "$andrew_runpath_switch" = "none" ; then
7287         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
7288   else
7289         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
7290   fi
7291
7292 fi
7293
7294 LDAP_LIBS=""
7295 if test "$with_ldap" != no; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
7297 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
7298 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   ac_check_lib_save_LIBS=$LIBS
7302 LIBS="-lldap -llber $LIBS"
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305
7306 /* Override any GCC internal prototype to avoid an error.
7307    Use char because int might match the return type of a GCC
7308    builtin and then its argument prototype would still apply.  */
7309 #ifdef __cplusplus
7310 extern "C"
7311 #endif
7312 char ldap_initialize ();
7313 int
7314 main ()
7315 {
7316 return ldap_initialize ();
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_c_try_link "$LINENO"; then :
7322   ac_cv_lib_ldap_ldap_initialize=yes
7323 else
7324   ac_cv_lib_ldap_ldap_initialize=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext \
7327     conftest$ac_exeext conftest.$ac_ext
7328 LIBS=$ac_check_lib_save_LIBS
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
7331 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
7332 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
7333
7334 $as_echo "#define HAVE_LDAP /**/" >>confdefs.h
7335
7336                                         LDAP_LIBS="-lldap -llber"
7337                                         if test "$with_openssl" != "no"; then
7338                                             LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
7339                                         fi
7340 fi
7341
7342
7343 fi
7344
7345
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7348 $as_echo_n "checking for ANSI C header files... " >&6; }
7349 if ${ac_cv_header_stdc+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354 #include <stdlib.h>
7355 #include <stdarg.h>
7356 #include <string.h>
7357 #include <float.h>
7358
7359 int
7360 main ()
7361 {
7362
7363   ;
7364   return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368   ac_cv_header_stdc=yes
7369 else
7370   ac_cv_header_stdc=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373
7374 if test $ac_cv_header_stdc = yes; then
7375   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h.  */
7378 #include <string.h>
7379
7380 _ACEOF
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382   $EGREP "memchr" >/dev/null 2>&1; then :
7383
7384 else
7385   ac_cv_header_stdc=no
7386 fi
7387 rm -f conftest*
7388
7389 fi
7390
7391 if test $ac_cv_header_stdc = yes; then
7392   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h.  */
7395 #include <stdlib.h>
7396
7397 _ACEOF
7398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399   $EGREP "free" >/dev/null 2>&1; then :
7400
7401 else
7402   ac_cv_header_stdc=no
7403 fi
7404 rm -f conftest*
7405
7406 fi
7407
7408 if test $ac_cv_header_stdc = yes; then
7409   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7410   if test "$cross_compiling" = yes; then :
7411   :
7412 else
7413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h.  */
7415 #include <ctype.h>
7416 #include <stdlib.h>
7417 #if ((' ' & 0x0FF) == 0x020)
7418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7420 #else
7421 # define ISLOWER(c) \
7422                    (('a' <= (c) && (c) <= 'i') \
7423                      || ('j' <= (c) && (c) <= 'r') \
7424                      || ('s' <= (c) && (c) <= 'z'))
7425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7426 #endif
7427
7428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7429 int
7430 main ()
7431 {
7432   int i;
7433   for (i = 0; i < 256; i++)
7434     if (XOR (islower (i), ISLOWER (i))
7435         || toupper (i) != TOUPPER (i))
7436       return 2;
7437   return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_c_try_run "$LINENO"; then :
7441
7442 else
7443   ac_cv_header_stdc=no
7444 fi
7445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7446   conftest.$ac_objext conftest.beam conftest.$ac_ext
7447 fi
7448
7449 fi
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7452 $as_echo "$ac_cv_header_stdc" >&6; }
7453 if test $ac_cv_header_stdc = yes; then
7454
7455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7456
7457 fi
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7460 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7461 if ${ac_cv_header_sys_wait_h+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466 #include <sys/types.h>
7467 #include <sys/wait.h>
7468 #ifndef WEXITSTATUS
7469 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7470 #endif
7471 #ifndef WIFEXITED
7472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7473 #endif
7474
7475 int
7476 main ()
7477 {
7478   int s;
7479   wait (&s);
7480   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486   ac_cv_header_sys_wait_h=yes
7487 else
7488   ac_cv_header_sys_wait_h=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7493 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7494 if test $ac_cv_header_sys_wait_h = yes; then
7495
7496 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7497
7498 fi
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7501 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7502 if ${ac_cv_header_time+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507 #include <sys/types.h>
7508 #include <sys/time.h>
7509 #include <time.h>
7510
7511 int
7512 main ()
7513 {
7514 if ((struct tm *) 0)
7515 return 0;
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521   ac_cv_header_time=yes
7522 else
7523   ac_cv_header_time=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7528 $as_echo "$ac_cv_header_time" >&6; }
7529 if test $ac_cv_header_time = yes; then
7530
7531 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7532
7533 fi
7534
7535 for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
7536 do :
7537   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7540   cat >>confdefs.h <<_ACEOF
7541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7542 _ACEOF
7543
7544 fi
7545
7546 done
7547
7548
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7550 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7551 if ${ac_cv_c_const+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h.  */
7556
7557 int
7558 main ()
7559 {
7560 /* FIXME: Include the comments suggested by Paul. */
7561 #ifndef __cplusplus
7562   /* Ultrix mips cc rejects this.  */
7563   typedef int charset[2];
7564   const charset cs;
7565   /* SunOS 4.1.1 cc rejects this.  */
7566   char const *const *pcpcc;
7567   char **ppc;
7568   /* NEC SVR4.0.2 mips cc rejects this.  */
7569   struct point {int x, y;};
7570   static struct point const zero = {0,0};
7571   /* AIX XL C 1.02.0.0 rejects this.
7572      It does not let you subtract one const X* pointer from another in
7573      an arm of an if-expression whose if-part is not a constant
7574      expression */
7575   const char *g = "string";
7576   pcpcc = &g + (g ? g-g : 0);
7577   /* HPUX 7.0 cc rejects these. */
7578   ++pcpcc;
7579   ppc = (char**) pcpcc;
7580   pcpcc = (char const *const *) ppc;
7581   { /* SCO 3.2v4 cc rejects this.  */
7582     char *t;
7583     char const *s = 0 ? (char *) 0 : (char const *) 0;
7584
7585     *t++ = 0;
7586     if (s) return 0;
7587   }
7588   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7589     int x[] = {25, 17};
7590     const int *foo = &x[0];
7591     ++foo;
7592   }
7593   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7594     typedef const int *iptr;
7595     iptr p = 0;
7596     ++p;
7597   }
7598   { /* AIX XL C 1.02.0.0 rejects this saying
7599        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7600     struct s { int j; const int *ap[3]; };
7601     struct s *b; b->j = 5;
7602   }
7603   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7604     const int foo = 10;
7605     if (!foo) return 0;
7606   }
7607   return !cs[0] && !zero.x;
7608 #endif
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615   ac_cv_c_const=yes
7616 else
7617   ac_cv_c_const=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7622 $as_echo "$ac_cv_c_const" >&6; }
7623 if test $ac_cv_c_const = no; then
7624
7625 $as_echo "#define const /**/" >>confdefs.h
7626
7627 fi
7628
7629 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7630 if test "x$ac_cv_type_pid_t" = xyes; then :
7631
7632 else
7633
7634 cat >>confdefs.h <<_ACEOF
7635 #define pid_t int
7636 _ACEOF
7637
7638 fi
7639
7640
7641 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
7642
7643
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
7645 $as_echo_n "checking whether $CC implements __func__... " >&6; }
7646 if ${have_func+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h.  */
7651 #include <stdio.h>
7652 int
7653 main ()
7654 {
7655 printf("%s", __func__);
7656   ;
7657   return 0;
7658 }
7659 _ACEOF
7660 if ac_fn_c_try_link "$LINENO"; then :
7661   have_func=yes
7662 else
7663   have_func=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext \
7666     conftest$ac_exeext conftest.$ac_ext
7667 fi
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_func" >&5
7670 $as_echo "$have_func" >&6; }
7671 if test "$have_func" = yes; then
7672
7673 $as_echo "#define HAVE_FUNC /**/" >>confdefs.h
7674
7675 else
7676        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __PRETTY_FUNCTION__" >&5
7677 $as_echo_n "checking whether $CC implements __PRETTY_FUNCTION__... " >&6; }
7678        if ${have_pretty_function+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h.  */
7683 #include <stdio.h>
7684 int
7685 main ()
7686 {
7687 printf("%s", __PRETTY_FUNCTION__);
7688   ;
7689   return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_c_try_link "$LINENO"; then :
7693   have_pretty_function=yes
7694 else
7695   have_pretty_function=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext \
7698     conftest$ac_exeext conftest.$ac_ext
7699 fi
7700
7701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pretty_function" >&5
7702 $as_echo "$have_pretty_function" >&6; }
7703        if test "$have_pretty_function" = yes; then
7704
7705 $as_echo "#define HAVE_PRETTY_FUNCTION /**/" >>confdefs.h
7706
7707        else
7708                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
7709 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
7710                if ${have_function+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h.  */
7715 #include <stdio.h>
7716 int
7717 main ()
7718 {
7719 printf("%s", __FUNCTION__);
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_link "$LINENO"; then :
7725   have_function=yes
7726 else
7727   have_function=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730     conftest$ac_exeext conftest.$ac_ext
7731 fi
7732
7733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_function" >&5
7734 $as_echo "$have_function" >&6; }
7735                if test "$have_function" = yes; then
7736
7737 $as_echo "#define HAVE_FUNCTION /**/" >>confdefs.h
7738
7739                fi
7740        fi
7741 fi
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7744 $as_echo_n "checking return type of signal handlers... " >&6; }
7745 if ${ac_cv_type_signal+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h.  */
7750 #include <sys/types.h>
7751 #include <signal.h>
7752
7753 int
7754 main ()
7755 {
7756 return *(signal (0, 0)) (0) == 1;
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762   ac_cv_type_signal=int
7763 else
7764   ac_cv_type_signal=void
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7769 $as_echo "$ac_cv_type_signal" >&6; }
7770
7771 cat >>confdefs.h <<_ACEOF
7772 #define RETSIGTYPE $ac_cv_type_signal
7773 _ACEOF
7774
7775
7776 for ac_func in gethostname mkdir socket strdup
7777 do :
7778   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7780 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7781   cat >>confdefs.h <<_ACEOF
7782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7783 _ACEOF
7784
7785 fi
7786 done
7787
7788 for ac_func in getspnam getuserpw
7789 do :
7790   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7792 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7793   cat >>confdefs.h <<_ACEOF
7794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7795 _ACEOF
7796  break
7797 fi
7798 done
7799
7800 for ac_func in strlcat strlcpy
7801 do :
7802   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7805   cat >>confdefs.h <<_ACEOF
7806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7807 _ACEOF
7808
7809 fi
7810 done
7811
7812
7813 if test $ac_cv_func_getspnam = yes; then
7814         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r/getspnam_r take 5 arguments" >&5
7815 $as_echo_n "checking if getpwnam_r/getspnam_r take 5 arguments... " >&6; }
7816         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h.  */
7818
7819 #include <sys/types.h>
7820 #include <pwd.h>
7821 #include <shadow.h>
7822
7823 int
7824 main ()
7825 {
7826
7827 struct passwd *pw;
7828 struct passwd pwbuf;
7829 char pwdata[512];
7830 (void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
7831
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839
7840 $as_echo "#define GETXXNAM_R_5ARG 1" >>confdefs.h
7841
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849
7850 GETADDRINFOOBJS=""
7851 sasl_cv_getaddrinfo=no
7852
7853 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7854 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
7855     ac_cv_lib_socket_getaddrinfo=no
7856   ac_cv_lib_inet6_getaddrinfo=no
7857
7858 else
7859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
7860 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
7861 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-lsocket  $LIBS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868
7869 /* Override any GCC internal prototype to avoid an error.
7870    Use char because int might match the return type of a GCC
7871    builtin and then its argument prototype would still apply.  */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char getaddrinfo ();
7876 int
7877 main ()
7878 {
7879 return getaddrinfo ();
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885   ac_cv_lib_socket_getaddrinfo=yes
7886 else
7887   ac_cv_lib_socket_getaddrinfo=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890     conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
7894 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
7895 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
7896       LIBS="$LIBS -lsocket"
7897     ac_cv_lib_inet6_getaddrinfo=no
7898
7899 else
7900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
7901 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
7902     if ${ipv6_cv_dir+:} false; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
7906         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
7907           break
7908         fi
7909       done
7910 fi
7911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
7912 $as_echo "$ipv6_cv_dir" >&6; }
7913     if test $ipv6_cv_dir = no; then
7914       ac_cv_lib_inet6_getaddrinfo=no
7915     else
7916       if test x$ipv6_libinet6 = x; then
7917         ipv6_libinet6=no
7918         SAVELDFLAGS="$LDFLAGS"
7919         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
7920       fi
7921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
7922 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
7923 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   ac_check_lib_save_LIBS=$LIBS
7927 LIBS="-linet6  $LIBS"
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930
7931 /* Override any GCC internal prototype to avoid an error.
7932    Use char because int might match the return type of a GCC
7933    builtin and then its argument prototype would still apply.  */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 char getaddrinfo ();
7938 int
7939 main ()
7940 {
7941 return getaddrinfo ();
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947   ac_cv_lib_inet6_getaddrinfo=yes
7948 else
7949   ac_cv_lib_inet6_getaddrinfo=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext \
7952     conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
7956 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
7957 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
7958         if test $ipv6_libinet6 = no; then
7959           ipv6_libinet6=yes
7960           LIBS="$LIBS -linet6"
7961         fi
7962 fi
7963       if test $ipv6_libinet6 = no; then
7964         LDFLAGS="$SAVELDFLAGS"
7965       fi
7966     fi
7967 fi
7968
7969 fi
7970 ipv6_cv_getaddrinfo=no
7971 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
7972      -o $ac_cv_lib_inet6_getaddrinfo = yes
7973 then
7974   ipv6_cv_getaddrinfo=yes
7975 fi
7976 if test $ipv6_cv_getaddrinfo = no; then
7977   if test getaddrinfo = getaddrinfo; then
7978     for ipv6_cv_pfx in o n; do
7979       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h.  */
7981 #include <netdb.h>
7982
7983 _ACEOF
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
7986   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
7987 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
7988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7989
7990 fi
7991
7992 fi
7993 rm -f conftest*
7994
7995       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
7996
7997 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
7998
7999         ipv6_cv_getaddrinfo=yes
8000         break
8001       fi
8002     done
8003   fi
8004 fi
8005 if test $ipv6_cv_getaddrinfo = yes; then
8006
8007 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
8008
8009 else
8010   sasl_cv_getaddrinfo=yes
8011 fi
8012 if test $sasl_cv_getaddrinfo = yes; then
8013         case " $LIBOBJS " in
8014   *" getaddrinfo.$ac_objext "* ) ;;
8015   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
8016  ;;
8017 esac
8018
8019 fi
8020
8021 GETNAMEINFOOBJS=""
8022 sasl_cv_getnameinfo=no
8023
8024 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
8025 if test "x$ac_cv_func_getnameinfo" = xyes; then :
8026     ac_cv_lib_socket_getnameinfo=no
8027   ac_cv_lib_inet6_getnameinfo=no
8028
8029 else
8030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
8031 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
8032 if ${ac_cv_lib_socket_getnameinfo+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lsocket  $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039
8040 /* Override any GCC internal prototype to avoid an error.
8041    Use char because int might match the return type of a GCC
8042    builtin and then its argument prototype would still apply.  */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 char getnameinfo ();
8047 int
8048 main ()
8049 {
8050 return getnameinfo ();
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056   ac_cv_lib_socket_getnameinfo=yes
8057 else
8058   ac_cv_lib_socket_getnameinfo=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext \
8061     conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
8065 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
8066 if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
8067       LIBS="$LIBS -lsocket"
8068     ac_cv_lib_inet6_getnameinfo=no
8069
8070 else
8071       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
8072 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
8073     if ${ipv6_cv_dir+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
8077         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
8078           break
8079         fi
8080       done
8081 fi
8082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
8083 $as_echo "$ipv6_cv_dir" >&6; }
8084     if test $ipv6_cv_dir = no; then
8085       ac_cv_lib_inet6_getnameinfo=no
8086     else
8087       if test x$ipv6_libinet6 = x; then
8088         ipv6_libinet6=no
8089         SAVELDFLAGS="$LDFLAGS"
8090         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
8091       fi
8092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
8093 $as_echo_n "checking for getnameinfo in -linet6... " >&6; }
8094 if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-linet6  $LIBS"
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h.  */
8101
8102 /* Override any GCC internal prototype to avoid an error.
8103    Use char because int might match the return type of a GCC
8104    builtin and then its argument prototype would still apply.  */
8105 #ifdef __cplusplus
8106 extern "C"
8107 #endif
8108 char getnameinfo ();
8109 int
8110 main ()
8111 {
8112 return getnameinfo ();
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118   ac_cv_lib_inet6_getnameinfo=yes
8119 else
8120   ac_cv_lib_inet6_getnameinfo=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext \
8123     conftest$ac_exeext conftest.$ac_ext
8124 LIBS=$ac_check_lib_save_LIBS
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
8127 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
8128 if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
8129         if test $ipv6_libinet6 = no; then
8130           ipv6_libinet6=yes
8131           LIBS="$LIBS -linet6"
8132         fi
8133 fi
8134       if test $ipv6_libinet6 = no; then
8135         LDFLAGS="$SAVELDFLAGS"
8136       fi
8137     fi
8138 fi
8139
8140 fi
8141 ipv6_cv_getnameinfo=no
8142 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
8143      -o $ac_cv_lib_inet6_getnameinfo = yes
8144 then
8145   ipv6_cv_getnameinfo=yes
8146 fi
8147 if test $ipv6_cv_getnameinfo = no; then
8148   if test getnameinfo = getaddrinfo; then
8149     for ipv6_cv_pfx in o n; do
8150       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h.  */
8152 #include <netdb.h>
8153
8154 _ACEOF
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
8157   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
8158 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
8159 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8160
8161 fi
8162
8163 fi
8164 rm -f conftest*
8165
8166       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
8167
8168 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
8169
8170         ipv6_cv_getnameinfo=yes
8171         break
8172       fi
8173     done
8174   fi
8175 fi
8176 if test $ipv6_cv_getnameinfo = yes; then
8177
8178 $as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
8179
8180 else
8181   sasl_cv_getnameinfo=yes
8182 fi
8183 if test $sasl_cv_getnameinfo = yes; then
8184         case " $LIBOBJS " in
8185   *" getnameinfo.$ac_objext "* ) ;;
8186   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
8187  ;;
8188 esac
8189
8190 fi
8191
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
8194 $as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
8195 if ${ipv6_cv_ss_family+:} false; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200 #include <sys/types.h>
8201 #include <sys/socket.h>
8202 int
8203 main ()
8204 {
8205 struct sockaddr_storage ss; int i = ss.ss_family;
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211   ipv6_cv_ss_family=yes
8212 else
8213   ipv6_cv_ss_family=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 if test $ipv6_cv_ss_family = yes; then
8218
8219 $as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
8220
8221 else
8222   :
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
8225 $as_echo "$ipv6_cv_ss_family" >&6; }
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
8228 $as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
8229 if ${ipv6_cv_sa_len+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h.  */
8234 #include <sys/types.h>
8235 #include <sys/socket.h>
8236 int
8237 main ()
8238 {
8239 struct sockaddr sa; int i = sa.sa_len;
8240   ;
8241   return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_compile "$LINENO"; then :
8245   ipv6_cv_sa_len=yes
8246 else
8247   ipv6_cv_sa_len=no
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 fi
8251 if test $ipv6_cv_sa_len = yes; then
8252
8253 $as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
8254
8255 else
8256   :
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
8259 $as_echo "$ipv6_cv_sa_len" >&6; }
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
8262 $as_echo_n "checking for socklen_t... " >&6; }
8263 if ${ipv6_cv_socklen_t+:} false; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268 #include <sys/types.h>
8269 #include <sys/socket.h>
8270 int
8271 main ()
8272 {
8273 socklen_t len = 0;
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 if ac_fn_c_try_link "$LINENO"; then :
8279   ipv6_cv_socklen_t=yes
8280 else
8281   ipv6_cv_socklen_t=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext \
8284     conftest$ac_exeext conftest.$ac_ext
8285 fi
8286 if test $ipv6_cv_socklen_t = yes; then
8287
8288 $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
8289
8290 else
8291   :
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5
8294 $as_echo "$ipv6_cv_socklen_t" >&6; }
8295
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h.  */
8298 #include <sys/socket.h>
8299
8300 _ACEOF
8301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8302   $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
8303
8304 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
8305
8306 fi
8307 rm -f conftest*
8308
8309
8310
8311
8312
8313
8314 ac_config_headers="$ac_config_headers saslauthd.h"
8315
8316
8317 ac_config_files="$ac_config_files Makefile"
8318
8319 cat >confcache <<\_ACEOF
8320 # This file is a shell script that caches the results of configure
8321 # tests run on this system so they can be shared between configure
8322 # scripts and configure runs, see configure's option --config-cache.
8323 # It is not useful on other systems.  If it contains results you don't
8324 # want to keep, you may remove or edit it.
8325 #
8326 # config.status only pays attention to the cache file if you give it
8327 # the --recheck option to rerun configure.
8328 #
8329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8331 # following values.
8332
8333 _ACEOF
8334
8335 # The following way of writing the cache mishandles newlines in values,
8336 # but we know of no workaround that is simple, portable, and efficient.
8337 # So, we kill variables containing newlines.
8338 # Ultrix sh set writes to stderr and can't be redirected directly,
8339 # and sets the high bit in the cache file unless we assign to the vars.
8340 (
8341   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8342     eval ac_val=\$$ac_var
8343     case $ac_val in #(
8344     *${as_nl}*)
8345       case $ac_var in #(
8346       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8348       esac
8349       case $ac_var in #(
8350       _ | IFS | as_nl) ;; #(
8351       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8352       *) { eval $ac_var=; unset $ac_var;} ;;
8353       esac ;;
8354     esac
8355   done
8356
8357   (set) 2>&1 |
8358     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8359     *${as_nl}ac_space=\ *)
8360       # `set' does not quote correctly, so add quotes: double-quote
8361       # substitution turns \\\\ into \\, and sed turns \\ into \.
8362       sed -n \
8363         "s/'/'\\\\''/g;
8364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8365       ;; #(
8366     *)
8367       # `set' quotes correctly as required by POSIX, so do not add quotes.
8368       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8369       ;;
8370     esac |
8371     sort
8372 ) |
8373   sed '
8374      /^ac_cv_env_/b end
8375      t clear
8376      :clear
8377      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8378      t end
8379      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8380      :end' >>confcache
8381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8382   if test -w "$cache_file"; then
8383     if test "x$cache_file" != "x/dev/null"; then
8384       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8385 $as_echo "$as_me: updating cache $cache_file" >&6;}
8386       if test ! -f "$cache_file" || test -h "$cache_file"; then
8387         cat confcache >"$cache_file"
8388       else
8389         case $cache_file in #(
8390         */* | ?:*)
8391           mv -f confcache "$cache_file"$$ &&
8392           mv -f "$cache_file"$$ "$cache_file" ;; #(
8393         *)
8394           mv -f confcache "$cache_file" ;;
8395         esac
8396       fi
8397     fi
8398   else
8399     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8400 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8401   fi
8402 fi
8403 rm -f confcache
8404
8405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8406 # Let make expand exec_prefix.
8407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8408
8409 DEFS=-DHAVE_CONFIG_H
8410
8411 ac_libobjs=
8412 ac_ltlibobjs=
8413 U=
8414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8415   # 1. Remove the extension, and $U if already installed.
8416   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8417   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8418   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8419   #    will be set to the directory where LIBOBJS objects are built.
8420   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8421   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8422 done
8423 LIBOBJS=$ac_libobjs
8424
8425 LTLIBOBJS=$ac_ltlibobjs
8426
8427
8428 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
8429   as_fn_error $? "conditional \"SASLAUTHD\" was never defined.
8430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8431 fi
8432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8433   as_fn_error $? "conditional \"AMDEP\" was never defined.
8434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8435 fi
8436 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8437   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8439 fi
8440
8441 : "${CONFIG_STATUS=./config.status}"
8442 ac_write_fail=0
8443 ac_clean_files_save=$ac_clean_files
8444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8446 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8447 as_write_fail=0
8448 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8449 #! $SHELL
8450 # Generated by $as_me.
8451 # Run this file to recreate the current configuration.
8452 # Compiler output produced by configure, useful for debugging
8453 # configure, is in config.log if it exists.
8454
8455 debug=false
8456 ac_cs_recheck=false
8457 ac_cs_silent=false
8458
8459 SHELL=\${CONFIG_SHELL-$SHELL}
8460 export SHELL
8461 _ASEOF
8462 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8463 ## -------------------- ##
8464 ## M4sh Initialization. ##
8465 ## -------------------- ##
8466
8467 # Be more Bourne compatible
8468 DUALCASE=1; export DUALCASE # for MKS sh
8469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8470   emulate sh
8471   NULLCMD=:
8472   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8473   # is contrary to our usage.  Disable this feature.
8474   alias -g '${1+"$@"}'='"$@"'
8475   setopt NO_GLOB_SUBST
8476 else
8477   case `(set -o) 2>/dev/null` in #(
8478   *posix*) :
8479     set -o posix ;; #(
8480   *) :
8481      ;;
8482 esac
8483 fi
8484
8485
8486 as_nl='
8487 '
8488 export as_nl
8489 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8490 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8493 # Prefer a ksh shell builtin over an external printf program on Solaris,
8494 # but without wasting forks for bash or zsh.
8495 if test -z "$BASH_VERSION$ZSH_VERSION" \
8496     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8497   as_echo='print -r --'
8498   as_echo_n='print -rn --'
8499 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8500   as_echo='printf %s\n'
8501   as_echo_n='printf %s'
8502 else
8503   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8504     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8505     as_echo_n='/usr/ucb/echo -n'
8506   else
8507     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8508     as_echo_n_body='eval
8509       arg=$1;
8510       case $arg in #(
8511       *"$as_nl"*)
8512         expr "X$arg" : "X\\(.*\\)$as_nl";
8513         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8514       esac;
8515       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8516     '
8517     export as_echo_n_body
8518     as_echo_n='sh -c $as_echo_n_body as_echo'
8519   fi
8520   export as_echo_body
8521   as_echo='sh -c $as_echo_body as_echo'
8522 fi
8523
8524 # The user is always right.
8525 if test "${PATH_SEPARATOR+set}" != set; then
8526   PATH_SEPARATOR=:
8527   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8528     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8529       PATH_SEPARATOR=';'
8530   }
8531 fi
8532
8533
8534 # IFS
8535 # We need space, tab and new line, in precisely that order.  Quoting is
8536 # there to prevent editors from complaining about space-tab.
8537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8538 # splitting by setting IFS to empty value.)
8539 IFS=" ""        $as_nl"
8540
8541 # Find who we are.  Look in the path if we contain no directory separator.
8542 as_myself=
8543 case $0 in #((
8544   *[\\/]* ) as_myself=$0 ;;
8545   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8547 do
8548   IFS=$as_save_IFS
8549   test -z "$as_dir" && as_dir=.
8550     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8551   done
8552 IFS=$as_save_IFS
8553
8554      ;;
8555 esac
8556 # We did not find ourselves, most probably we were run as `sh COMMAND'
8557 # in which case we are not to be found in the path.
8558 if test "x$as_myself" = x; then
8559   as_myself=$0
8560 fi
8561 if test ! -f "$as_myself"; then
8562   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8563   exit 1
8564 fi
8565
8566 # Unset variables that we do not need and which cause bugs (e.g. in
8567 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8568 # suppresses any "Segmentation fault" message there.  '((' could
8569 # trigger a bug in pdksh 5.2.14.
8570 for as_var in BASH_ENV ENV MAIL MAILPATH
8571 do eval test x\${$as_var+set} = xset \
8572   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8573 done
8574 PS1='$ '
8575 PS2='> '
8576 PS4='+ '
8577
8578 # NLS nuisances.
8579 LC_ALL=C
8580 export LC_ALL
8581 LANGUAGE=C
8582 export LANGUAGE
8583
8584 # CDPATH.
8585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8586
8587
8588 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8589 # ----------------------------------------
8590 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8591 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8592 # script with STATUS, using 1 if that was 0.
8593 as_fn_error ()
8594 {
8595   as_status=$1; test $as_status -eq 0 && as_status=1
8596   if test "$4"; then
8597     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8598     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8599   fi
8600   $as_echo "$as_me: error: $2" >&2
8601   as_fn_exit $as_status
8602 } # as_fn_error
8603
8604
8605 # as_fn_set_status STATUS
8606 # -----------------------
8607 # Set $? to STATUS, without forking.
8608 as_fn_set_status ()
8609 {
8610   return $1
8611 } # as_fn_set_status
8612
8613 # as_fn_exit STATUS
8614 # -----------------
8615 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8616 as_fn_exit ()
8617 {
8618   set +e
8619   as_fn_set_status $1
8620   exit $1
8621 } # as_fn_exit
8622
8623 # as_fn_unset VAR
8624 # ---------------
8625 # Portably unset VAR.
8626 as_fn_unset ()
8627 {
8628   { eval $1=; unset $1;}
8629 }
8630 as_unset=as_fn_unset
8631 # as_fn_append VAR VALUE
8632 # ----------------------
8633 # Append the text in VALUE to the end of the definition contained in VAR. Take
8634 # advantage of any shell optimizations that allow amortized linear growth over
8635 # repeated appends, instead of the typical quadratic growth present in naive
8636 # implementations.
8637 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8638   eval 'as_fn_append ()
8639   {
8640     eval $1+=\$2
8641   }'
8642 else
8643   as_fn_append ()
8644   {
8645     eval $1=\$$1\$2
8646   }
8647 fi # as_fn_append
8648
8649 # as_fn_arith ARG...
8650 # ------------------
8651 # Perform arithmetic evaluation on the ARGs, and store the result in the
8652 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8653 # must be portable across $(()) and expr.
8654 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8655   eval 'as_fn_arith ()
8656   {
8657     as_val=$(( $* ))
8658   }'
8659 else
8660   as_fn_arith ()
8661   {
8662     as_val=`expr "$@" || test $? -eq 1`
8663   }
8664 fi # as_fn_arith
8665
8666
8667 if expr a : '\(a\)' >/dev/null 2>&1 &&
8668    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8669   as_expr=expr
8670 else
8671   as_expr=false
8672 fi
8673
8674 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8675   as_basename=basename
8676 else
8677   as_basename=false
8678 fi
8679
8680 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8681   as_dirname=dirname
8682 else
8683   as_dirname=false
8684 fi
8685
8686 as_me=`$as_basename -- "$0" ||
8687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8688          X"$0" : 'X\(//\)$' \| \
8689          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8690 $as_echo X/"$0" |
8691     sed '/^.*\/\([^/][^/]*\)\/*$/{
8692             s//\1/
8693             q
8694           }
8695           /^X\/\(\/\/\)$/{
8696             s//\1/
8697             q
8698           }
8699           /^X\/\(\/\).*/{
8700             s//\1/
8701             q
8702           }
8703           s/.*/./; q'`
8704
8705 # Avoid depending upon Character Ranges.
8706 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8707 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8708 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8709 as_cr_digits='0123456789'
8710 as_cr_alnum=$as_cr_Letters$as_cr_digits
8711
8712 ECHO_C= ECHO_N= ECHO_T=
8713 case `echo -n x` in #(((((
8714 -n*)
8715   case `echo 'xy\c'` in
8716   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8717   xy)  ECHO_C='\c';;
8718   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8719        ECHO_T=' ';;
8720   esac;;
8721 *)
8722   ECHO_N='-n';;
8723 esac
8724
8725 rm -f conf$$ conf$$.exe conf$$.file
8726 if test -d conf$$.dir; then
8727   rm -f conf$$.dir/conf$$.file
8728 else
8729   rm -f conf$$.dir
8730   mkdir conf$$.dir 2>/dev/null
8731 fi
8732 if (echo >conf$$.file) 2>/dev/null; then
8733   if ln -s conf$$.file conf$$ 2>/dev/null; then
8734     as_ln_s='ln -s'
8735     # ... but there are two gotchas:
8736     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8737     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8738     # In both cases, we have to default to `cp -p'.
8739     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8740       as_ln_s='cp -p'
8741   elif ln conf$$.file conf$$ 2>/dev/null; then
8742     as_ln_s=ln
8743   else
8744     as_ln_s='cp -p'
8745   fi
8746 else
8747   as_ln_s='cp -p'
8748 fi
8749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8750 rmdir conf$$.dir 2>/dev/null
8751
8752
8753 # as_fn_mkdir_p
8754 # -------------
8755 # Create "$as_dir" as a directory, including parents if necessary.
8756 as_fn_mkdir_p ()
8757 {
8758
8759   case $as_dir in #(
8760   -*) as_dir=./$as_dir;;
8761   esac
8762   test -d "$as_dir" || eval $as_mkdir_p || {
8763     as_dirs=
8764     while :; do
8765       case $as_dir in #(
8766       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8767       *) as_qdir=$as_dir;;
8768       esac
8769       as_dirs="'$as_qdir' $as_dirs"
8770       as_dir=`$as_dirname -- "$as_dir" ||
8771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8772          X"$as_dir" : 'X\(//\)[^/]' \| \
8773          X"$as_dir" : 'X\(//\)$' \| \
8774          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8775 $as_echo X"$as_dir" |
8776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8777             s//\1/
8778             q
8779           }
8780           /^X\(\/\/\)[^/].*/{
8781             s//\1/
8782             q
8783           }
8784           /^X\(\/\/\)$/{
8785             s//\1/
8786             q
8787           }
8788           /^X\(\/\).*/{
8789             s//\1/
8790             q
8791           }
8792           s/.*/./; q'`
8793       test -d "$as_dir" && break
8794     done
8795     test -z "$as_dirs" || eval "mkdir $as_dirs"
8796   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8797
8798
8799 } # as_fn_mkdir_p
8800 if mkdir -p . 2>/dev/null; then
8801   as_mkdir_p='mkdir -p "$as_dir"'
8802 else
8803   test -d ./-p && rmdir ./-p
8804   as_mkdir_p=false
8805 fi
8806
8807 if test -x / >/dev/null 2>&1; then
8808   as_test_x='test -x'
8809 else
8810   if ls -dL / >/dev/null 2>&1; then
8811     as_ls_L_option=L
8812   else
8813     as_ls_L_option=
8814   fi
8815   as_test_x='
8816     eval sh -c '\''
8817       if test -d "$1"; then
8818         test -d "$1/.";
8819       else
8820         case $1 in #(
8821         -*)set "./$1";;
8822         esac;
8823         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8824         ???[sx]*):;;*)false;;esac;fi
8825     '\'' sh
8826   '
8827 fi
8828 as_executable_p=$as_test_x
8829
8830 # Sed expression to map a string onto a valid CPP name.
8831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8832
8833 # Sed expression to map a string onto a valid variable name.
8834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8835
8836
8837 exec 6>&1
8838 ## ----------------------------------- ##
8839 ## Main body of $CONFIG_STATUS script. ##
8840 ## ----------------------------------- ##
8841 _ASEOF
8842 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8843
8844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8845 # Save the log message, to keep $0 and so on meaningful, and to
8846 # report actual input values of CONFIG_FILES etc. instead of their
8847 # values after options handling.
8848 ac_log="
8849 This file was extended by $as_me, which was
8850 generated by GNU Autoconf 2.68.  Invocation command line was
8851
8852   CONFIG_FILES    = $CONFIG_FILES
8853   CONFIG_HEADERS  = $CONFIG_HEADERS
8854   CONFIG_LINKS    = $CONFIG_LINKS
8855   CONFIG_COMMANDS = $CONFIG_COMMANDS
8856   $ $0 $@
8857
8858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8859 "
8860
8861 _ACEOF
8862
8863 case $ac_config_files in *"
8864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8865 esac
8866
8867 case $ac_config_headers in *"
8868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8869 esac
8870
8871
8872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8873 # Files that config.status was made for.
8874 config_files="$ac_config_files"
8875 config_headers="$ac_config_headers"
8876 config_commands="$ac_config_commands"
8877
8878 _ACEOF
8879
8880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8881 ac_cs_usage="\
8882 \`$as_me' instantiates files and other configuration actions
8883 from templates according to the current configuration.  Unless the files
8884 and actions are specified as TAGs, all are instantiated by default.
8885
8886 Usage: $0 [OPTION]... [TAG]...
8887
8888   -h, --help       print this help, then exit
8889   -V, --version    print version number and configuration settings, then exit
8890       --config     print configuration, then exit
8891   -q, --quiet, --silent
8892                    do not print progress messages
8893   -d, --debug      don't remove temporary files
8894       --recheck    update $as_me by reconfiguring in the same conditions
8895       --file=FILE[:TEMPLATE]
8896                    instantiate the configuration file FILE
8897       --header=FILE[:TEMPLATE]
8898                    instantiate the configuration header FILE
8899
8900 Configuration files:
8901 $config_files
8902
8903 Configuration headers:
8904 $config_headers
8905
8906 Configuration commands:
8907 $config_commands
8908
8909 Report bugs to the package provider."
8910
8911 _ACEOF
8912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8913 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8914 ac_cs_version="\\
8915 config.status
8916 configured by $0, generated by GNU Autoconf 2.68,
8917   with options \\"\$ac_cs_config\\"
8918
8919 Copyright (C) 2010 Free Software Foundation, Inc.
8920 This config.status script is free software; the Free Software Foundation
8921 gives unlimited permission to copy, distribute and modify it."
8922
8923 ac_pwd='$ac_pwd'
8924 srcdir='$srcdir'
8925 INSTALL='$INSTALL'
8926 MKDIR_P='$MKDIR_P'
8927 AWK='$AWK'
8928 test -n "\$AWK" || AWK=awk
8929 _ACEOF
8930
8931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8932 # The default lists apply if the user does not specify any file.
8933 ac_need_defaults=:
8934 while test $# != 0
8935 do
8936   case $1 in
8937   --*=?*)
8938     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8939     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8940     ac_shift=:
8941     ;;
8942   --*=)
8943     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8944     ac_optarg=
8945     ac_shift=:
8946     ;;
8947   *)
8948     ac_option=$1
8949     ac_optarg=$2
8950     ac_shift=shift
8951     ;;
8952   esac
8953
8954   case $ac_option in
8955   # Handling of the options.
8956   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8957     ac_cs_recheck=: ;;
8958   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8959     $as_echo "$ac_cs_version"; exit ;;
8960   --config | --confi | --conf | --con | --co | --c )
8961     $as_echo "$ac_cs_config"; exit ;;
8962   --debug | --debu | --deb | --de | --d | -d )
8963     debug=: ;;
8964   --file | --fil | --fi | --f )
8965     $ac_shift
8966     case $ac_optarg in
8967     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8968     '') as_fn_error $? "missing file argument" ;;
8969     esac
8970     as_fn_append CONFIG_FILES " '$ac_optarg'"
8971     ac_need_defaults=false;;
8972   --header | --heade | --head | --hea )
8973     $ac_shift
8974     case $ac_optarg in
8975     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8976     esac
8977     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8978     ac_need_defaults=false;;
8979   --he | --h)
8980     # Conflict between --help and --header
8981     as_fn_error $? "ambiguous option: \`$1'
8982 Try \`$0 --help' for more information.";;
8983   --help | --hel | -h )
8984     $as_echo "$ac_cs_usage"; exit ;;
8985   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8986   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8987     ac_cs_silent=: ;;
8988
8989   # This is an error.
8990   -*) as_fn_error $? "unrecognized option: \`$1'
8991 Try \`$0 --help' for more information." ;;
8992
8993   *) as_fn_append ac_config_targets " $1"
8994      ac_need_defaults=false ;;
8995
8996   esac
8997   shift
8998 done
8999
9000 ac_configure_extra_args=
9001
9002 if $ac_cs_silent; then
9003   exec 6>/dev/null
9004   ac_configure_extra_args="$ac_configure_extra_args --silent"
9005 fi
9006
9007 _ACEOF
9008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9009 if \$ac_cs_recheck; then
9010   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9011   shift
9012   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9013   CONFIG_SHELL='$SHELL'
9014   export CONFIG_SHELL
9015   exec "\$@"
9016 fi
9017
9018 _ACEOF
9019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9020 exec 5>>config.log
9021 {
9022   echo
9023   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9024 ## Running $as_me. ##
9025 _ASBOX
9026   $as_echo "$ac_log"
9027 } >&5
9028
9029 _ACEOF
9030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9031 #
9032 # INIT-COMMANDS
9033 #
9034 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9035
9036 _ACEOF
9037
9038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9039
9040 # Handling of arguments.
9041 for ac_config_target in $ac_config_targets
9042 do
9043   case $ac_config_target in
9044     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9045     "saslauthd.h") CONFIG_HEADERS="$CONFIG_HEADERS saslauthd.h" ;;
9046     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9047
9048   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9049   esac
9050 done
9051
9052
9053 # If the user did not use the arguments to specify the items to instantiate,
9054 # then the envvar interface is used.  Set only those that are not.
9055 # We use the long form for the default assignment because of an extremely
9056 # bizarre bug on SunOS 4.1.3.
9057 if $ac_need_defaults; then
9058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9060   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9061 fi
9062
9063 # Have a temporary directory for convenience.  Make it in the build tree
9064 # simply because there is no reason against having it here, and in addition,
9065 # creating and moving files from /tmp can sometimes cause problems.
9066 # Hook for its removal unless debugging.
9067 # Note that there is a small window in which the directory will not be cleaned:
9068 # after its creation but before its name has been assigned to `$tmp'.
9069 $debug ||
9070 {
9071   tmp= ac_tmp=
9072   trap 'exit_status=$?
9073   : "${ac_tmp:=$tmp}"
9074   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9075 ' 0
9076   trap 'as_fn_exit 1' 1 2 13 15
9077 }
9078 # Create a (secure) tmp directory for tmp files.
9079
9080 {
9081   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9082   test -d "$tmp"
9083 }  ||
9084 {
9085   tmp=./conf$$-$RANDOM
9086   (umask 077 && mkdir "$tmp")
9087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9088 ac_tmp=$tmp
9089
9090 # Set up the scripts for CONFIG_FILES section.
9091 # No need to generate them if there are no CONFIG_FILES.
9092 # This happens for instance with `./config.status config.h'.
9093 if test -n "$CONFIG_FILES"; then
9094
9095
9096 ac_cr=`echo X | tr X '\015'`
9097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9098 # But we know of no other shell where ac_cr would be empty at this
9099 # point, so we can use a bashism as a fallback.
9100 if test "x$ac_cr" = x; then
9101   eval ac_cr=\$\'\\r\'
9102 fi
9103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9105   ac_cs_awk_cr='\\r'
9106 else
9107   ac_cs_awk_cr=$ac_cr
9108 fi
9109
9110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9111 _ACEOF
9112
9113
9114 {
9115   echo "cat >conf$$subs.awk <<_ACEOF" &&
9116   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9117   echo "_ACEOF"
9118 } >conf$$subs.sh ||
9119   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9121 ac_delim='%!_!# '
9122 for ac_last_try in false false false false false :; do
9123   . ./conf$$subs.sh ||
9124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9125
9126   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9127   if test $ac_delim_n = $ac_delim_num; then
9128     break
9129   elif $ac_last_try; then
9130     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9131   else
9132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9133   fi
9134 done
9135 rm -f conf$$subs.sh
9136
9137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9139 _ACEOF
9140 sed -n '
9141 h
9142 s/^/S["/; s/!.*/"]=/
9143 p
9144 g
9145 s/^[^!]*!//
9146 :repl
9147 t repl
9148 s/'"$ac_delim"'$//
9149 t delim
9150 :nl
9151 h
9152 s/\(.\{148\}\)..*/\1/
9153 t more1
9154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9155 p
9156 n
9157 b repl
9158 :more1
9159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9160 p
9161 g
9162 s/.\{148\}//
9163 t nl
9164 :delim
9165 h
9166 s/\(.\{148\}\)..*/\1/
9167 t more2
9168 s/["\\]/\\&/g; s/^/"/; s/$/"/
9169 p
9170 b
9171 :more2
9172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9173 p
9174 g
9175 s/.\{148\}//
9176 t delim
9177 ' <conf$$subs.awk | sed '
9178 /^[^""]/{
9179   N
9180   s/\n//
9181 }
9182 ' >>$CONFIG_STATUS || ac_write_fail=1
9183 rm -f conf$$subs.awk
9184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9185 _ACAWK
9186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9187   for (key in S) S_is_set[key] = 1
9188   FS = "\a"
9189
9190 }
9191 {
9192   line = $ 0
9193   nfields = split(line, field, "@")
9194   substed = 0
9195   len = length(field[1])
9196   for (i = 2; i < nfields; i++) {
9197     key = field[i]
9198     keylen = length(key)
9199     if (S_is_set[key]) {
9200       value = S[key]
9201       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9202       len += length(value) + length(field[++i])
9203       substed = 1
9204     } else
9205       len += 1 + keylen
9206   }
9207
9208   print line
9209 }
9210
9211 _ACAWK
9212 _ACEOF
9213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9215   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9216 else
9217   cat
9218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9219   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9220 _ACEOF
9221
9222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9224 # trailing colons and then remove the whole line if VPATH becomes empty
9225 # (actually we leave an empty line to preserve line numbers).
9226 if test "x$srcdir" = x.; then
9227   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9228 h
9229 s///
9230 s/^/:/
9231 s/[      ]*$/:/
9232 s/:\$(srcdir):/:/g
9233 s/:\${srcdir}:/:/g
9234 s/:@srcdir@:/:/g
9235 s/^:*//
9236 s/:*$//
9237 x
9238 s/\(=[   ]*\).*/\1/
9239 G
9240 s/\n//
9241 s/^[^=]*=[       ]*$//
9242 }'
9243 fi
9244
9245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9246 fi # test -n "$CONFIG_FILES"
9247
9248 # Set up the scripts for CONFIG_HEADERS section.
9249 # No need to generate them if there are no CONFIG_HEADERS.
9250 # This happens for instance with `./config.status Makefile'.
9251 if test -n "$CONFIG_HEADERS"; then
9252 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9253 BEGIN {
9254 _ACEOF
9255
9256 # Transform confdefs.h into an awk script `defines.awk', embedded as
9257 # here-document in config.status, that substitutes the proper values into
9258 # config.h.in to produce config.h.
9259
9260 # Create a delimiter string that does not exist in confdefs.h, to ease
9261 # handling of long lines.
9262 ac_delim='%!_!# '
9263 for ac_last_try in false false :; do
9264   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9265   if test -z "$ac_tt"; then
9266     break
9267   elif $ac_last_try; then
9268     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9269   else
9270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9271   fi
9272 done
9273
9274 # For the awk script, D is an array of macro values keyed by name,
9275 # likewise P contains macro parameters if any.  Preserve backslash
9276 # newline sequences.
9277
9278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9279 sed -n '
9280 s/.\{148\}/&'"$ac_delim"'/g
9281 t rset
9282 :rset
9283 s/^[     ]*#[    ]*define[       ][      ]*/ /
9284 t def
9285 d
9286 :def
9287 s/\\$//
9288 t bsnl
9289 s/["\\]/\\&/g
9290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9291 D["\1"]=" \3"/p
9292 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9293 d
9294 :bsnl
9295 s/["\\]/\\&/g
9296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9297 D["\1"]=" \3\\\\\\n"\\/p
9298 t cont
9299 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9300 t cont
9301 d
9302 :cont
9303 n
9304 s/.\{148\}/&'"$ac_delim"'/g
9305 t clear
9306 :clear
9307 s/\\$//
9308 t bsnlc
9309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9310 d
9311 :bsnlc
9312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9313 b cont
9314 ' <confdefs.h | sed '
9315 s/'"$ac_delim"'/"\\\
9316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9317
9318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9319   for (key in D) D_is_set[key] = 1
9320   FS = "\a"
9321 }
9322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9323   line = \$ 0
9324   split(line, arg, " ")
9325   if (arg[1] == "#") {
9326     defundef = arg[2]
9327     mac1 = arg[3]
9328   } else {
9329     defundef = substr(arg[1], 2)
9330     mac1 = arg[2]
9331   }
9332   split(mac1, mac2, "(") #)
9333   macro = mac2[1]
9334   prefix = substr(line, 1, index(line, defundef) - 1)
9335   if (D_is_set[macro]) {
9336     # Preserve the white space surrounding the "#".
9337     print prefix "define", macro P[macro] D[macro]
9338     next
9339   } else {
9340     # Replace #undef with comments.  This is necessary, for example,
9341     # in the case of _POSIX_SOURCE, which is predefined and required
9342     # on some systems where configure will not decide to define it.
9343     if (defundef == "undef") {
9344       print "/*", prefix defundef, macro, "*/"
9345       next
9346     }
9347   }
9348 }
9349 { print }
9350 _ACAWK
9351 _ACEOF
9352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9353   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9354 fi # test -n "$CONFIG_HEADERS"
9355
9356
9357 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9358 shift
9359 for ac_tag
9360 do
9361   case $ac_tag in
9362   :[FHLC]) ac_mode=$ac_tag; continue;;
9363   esac
9364   case $ac_mode$ac_tag in
9365   :[FHL]*:*);;
9366   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9367   :[FH]-) ac_tag=-:-;;
9368   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9369   esac
9370   ac_save_IFS=$IFS
9371   IFS=:
9372   set x $ac_tag
9373   IFS=$ac_save_IFS
9374   shift
9375   ac_file=$1
9376   shift
9377
9378   case $ac_mode in
9379   :L) ac_source=$1;;
9380   :[FH])
9381     ac_file_inputs=
9382     for ac_f
9383     do
9384       case $ac_f in
9385       -) ac_f="$ac_tmp/stdin";;
9386       *) # Look for the file first in the build tree, then in the source tree
9387          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9388          # because $ac_f cannot contain `:'.
9389          test -f "$ac_f" ||
9390            case $ac_f in
9391            [\\/$]*) false;;
9392            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9393            esac ||
9394            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9395       esac
9396       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9397       as_fn_append ac_file_inputs " '$ac_f'"
9398     done
9399
9400     # Let's still pretend it is `configure' which instantiates (i.e., don't
9401     # use $as_me), people would be surprised to read:
9402     #    /* config.h.  Generated by config.status.  */
9403     configure_input='Generated from '`
9404           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9405         `' by configure.'
9406     if test x"$ac_file" != x-; then
9407       configure_input="$ac_file.  $configure_input"
9408       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9409 $as_echo "$as_me: creating $ac_file" >&6;}
9410     fi
9411     # Neutralize special characters interpreted by sed in replacement strings.
9412     case $configure_input in #(
9413     *\&* | *\|* | *\\* )
9414        ac_sed_conf_input=`$as_echo "$configure_input" |
9415        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9416     *) ac_sed_conf_input=$configure_input;;
9417     esac
9418
9419     case $ac_tag in
9420     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9421       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9422     esac
9423     ;;
9424   esac
9425
9426   ac_dir=`$as_dirname -- "$ac_file" ||
9427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428          X"$ac_file" : 'X\(//\)[^/]' \| \
9429          X"$ac_file" : 'X\(//\)$' \| \
9430          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9431 $as_echo X"$ac_file" |
9432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9433             s//\1/
9434             q
9435           }
9436           /^X\(\/\/\)[^/].*/{
9437             s//\1/
9438             q
9439           }
9440           /^X\(\/\/\)$/{
9441             s//\1/
9442             q
9443           }
9444           /^X\(\/\).*/{
9445             s//\1/
9446             q
9447           }
9448           s/.*/./; q'`
9449   as_dir="$ac_dir"; as_fn_mkdir_p
9450   ac_builddir=.
9451
9452 case "$ac_dir" in
9453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9454 *)
9455   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9456   # A ".." for each directory in $ac_dir_suffix.
9457   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9458   case $ac_top_builddir_sub in
9459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9461   esac ;;
9462 esac
9463 ac_abs_top_builddir=$ac_pwd
9464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9465 # for backward compatibility:
9466 ac_top_builddir=$ac_top_build_prefix
9467
9468 case $srcdir in
9469   .)  # We are building in place.
9470     ac_srcdir=.
9471     ac_top_srcdir=$ac_top_builddir_sub
9472     ac_abs_top_srcdir=$ac_pwd ;;
9473   [\\/]* | ?:[\\/]* )  # Absolute name.
9474     ac_srcdir=$srcdir$ac_dir_suffix;
9475     ac_top_srcdir=$srcdir
9476     ac_abs_top_srcdir=$srcdir ;;
9477   *) # Relative name.
9478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9479     ac_top_srcdir=$ac_top_build_prefix$srcdir
9480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9481 esac
9482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9483
9484
9485   case $ac_mode in
9486   :F)
9487   #
9488   # CONFIG_FILE
9489   #
9490
9491   case $INSTALL in
9492   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9493   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9494   esac
9495   ac_MKDIR_P=$MKDIR_P
9496   case $MKDIR_P in
9497   [\\/$]* | ?:[\\/]* ) ;;
9498   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9499   esac
9500 _ACEOF
9501
9502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9503 # If the template does not know about datarootdir, expand it.
9504 # FIXME: This hack should be removed a few years after 2.60.
9505 ac_datarootdir_hack=; ac_datarootdir_seen=
9506 ac_sed_dataroot='
9507 /datarootdir/ {
9508   p
9509   q
9510 }
9511 /@datadir@/p
9512 /@docdir@/p
9513 /@infodir@/p
9514 /@localedir@/p
9515 /@mandir@/p'
9516 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9517 *datarootdir*) ac_datarootdir_seen=yes;;
9518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9520 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9521 _ACEOF
9522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9523   ac_datarootdir_hack='
9524   s&@datadir@&$datadir&g
9525   s&@docdir@&$docdir&g
9526   s&@infodir@&$infodir&g
9527   s&@localedir@&$localedir&g
9528   s&@mandir@&$mandir&g
9529   s&\\\${datarootdir}&$datarootdir&g' ;;
9530 esac
9531 _ACEOF
9532
9533 # Neutralize VPATH when `$srcdir' = `.'.
9534 # Shell code in configure.ac might set extrasub.
9535 # FIXME: do we really want to maintain this feature?
9536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9537 ac_sed_extra="$ac_vpsub
9538 $extrasub
9539 _ACEOF
9540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9541 :t
9542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9543 s|@configure_input@|$ac_sed_conf_input|;t t
9544 s&@top_builddir@&$ac_top_builddir_sub&;t t
9545 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9546 s&@srcdir@&$ac_srcdir&;t t
9547 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9548 s&@top_srcdir@&$ac_top_srcdir&;t t
9549 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9550 s&@builddir@&$ac_builddir&;t t
9551 s&@abs_builddir@&$ac_abs_builddir&;t t
9552 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9553 s&@INSTALL@&$ac_INSTALL&;t t
9554 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9555 $ac_datarootdir_hack
9556 "
9557 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9558   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9559
9560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9561   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9562   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9563       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9565 which seems to be undefined.  Please make sure it is defined" >&5
9566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9567 which seems to be undefined.  Please make sure it is defined" >&2;}
9568
9569   rm -f "$ac_tmp/stdin"
9570   case $ac_file in
9571   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9572   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9573   esac \
9574   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9575  ;;
9576   :H)
9577   #
9578   # CONFIG_HEADER
9579   #
9580   if test x"$ac_file" != x-; then
9581     {
9582       $as_echo "/* $configure_input  */" \
9583       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9584     } >"$ac_tmp/config.h" \
9585       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9586     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9587       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9589     else
9590       rm -f "$ac_file"
9591       mv "$ac_tmp/config.h" "$ac_file" \
9592         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9593     fi
9594   else
9595     $as_echo "/* $configure_input  */" \
9596       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9597       || as_fn_error $? "could not create -" "$LINENO" 5
9598   fi
9599 # Compute "$ac_file"'s index in $config_headers.
9600 _am_arg="$ac_file"
9601 _am_stamp_count=1
9602 for _am_header in $config_headers :; do
9603   case $_am_header in
9604     $_am_arg | $_am_arg:* )
9605       break ;;
9606     * )
9607       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9608   esac
9609 done
9610 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9611 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612          X"$_am_arg" : 'X\(//\)[^/]' \| \
9613          X"$_am_arg" : 'X\(//\)$' \| \
9614          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9615 $as_echo X"$_am_arg" |
9616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9617             s//\1/
9618             q
9619           }
9620           /^X\(\/\/\)[^/].*/{
9621             s//\1/
9622             q
9623           }
9624           /^X\(\/\/\)$/{
9625             s//\1/
9626             q
9627           }
9628           /^X\(\/\).*/{
9629             s//\1/
9630             q
9631           }
9632           s/.*/./; q'`/stamp-h$_am_stamp_count
9633  ;;
9634
9635   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9636 $as_echo "$as_me: executing $ac_file commands" >&6;}
9637  ;;
9638   esac
9639
9640
9641   case $ac_file$ac_mode in
9642     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9643   # Autoconf 2.62 quotes --file arguments for eval, but not when files
9644   # are listed without --file.  Let's play safe and only enable the eval
9645   # if we detect the quoting.
9646   case $CONFIG_FILES in
9647   *\'*) eval set x "$CONFIG_FILES" ;;
9648   *)   set x $CONFIG_FILES ;;
9649   esac
9650   shift
9651   for mf
9652   do
9653     # Strip MF so we end up with the name of the file.
9654     mf=`echo "$mf" | sed -e 's/:.*$//'`
9655     # Check whether this is an Automake generated Makefile or not.
9656     # We used to match only the files named `Makefile.in', but
9657     # some people rename them; so instead we look at the file content.
9658     # Grep'ing the first line is not enough: some people post-process
9659     # each Makefile.in and add a new line on top of each file to say so.
9660     # Grep'ing the whole file is not good either: AIX grep has a line
9661     # limit of 2048, but all sed's we know have understand at least 4000.
9662     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9663       dirpart=`$as_dirname -- "$mf" ||
9664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9665          X"$mf" : 'X\(//\)[^/]' \| \
9666          X"$mf" : 'X\(//\)$' \| \
9667          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9668 $as_echo X"$mf" |
9669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9670             s//\1/
9671             q
9672           }
9673           /^X\(\/\/\)[^/].*/{
9674             s//\1/
9675             q
9676           }
9677           /^X\(\/\/\)$/{
9678             s//\1/
9679             q
9680           }
9681           /^X\(\/\).*/{
9682             s//\1/
9683             q
9684           }
9685           s/.*/./; q'`
9686     else
9687       continue
9688     fi
9689     # Extract the definition of DEPDIR, am__include, and am__quote
9690     # from the Makefile without running `make'.
9691     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9692     test -z "$DEPDIR" && continue
9693     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9694     test -z "am__include" && continue
9695     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9696     # When using ansi2knr, U may be empty or an underscore; expand it
9697     U=`sed -n 's/^U = //p' < "$mf"`
9698     # Find all dependency output files, they are included files with
9699     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9700     # simplest approach to changing $(DEPDIR) to its actual value in the
9701     # expansion.
9702     for file in `sed -n "
9703       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9704          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9705       # Make sure the directory exists.
9706       test -f "$dirpart/$file" && continue
9707       fdir=`$as_dirname -- "$file" ||
9708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9709          X"$file" : 'X\(//\)[^/]' \| \
9710          X"$file" : 'X\(//\)$' \| \
9711          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9712 $as_echo X"$file" |
9713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9714             s//\1/
9715             q
9716           }
9717           /^X\(\/\/\)[^/].*/{
9718             s//\1/
9719             q
9720           }
9721           /^X\(\/\/\)$/{
9722             s//\1/
9723             q
9724           }
9725           /^X\(\/\).*/{
9726             s//\1/
9727             q
9728           }
9729           s/.*/./; q'`
9730       as_dir=$dirpart/$fdir; as_fn_mkdir_p
9731       # echo "creating $dirpart/$file"
9732       echo '# dummy' > "$dirpart/$file"
9733     done
9734   done
9735 }
9736  ;;
9737
9738   esac
9739 done # for ac_tag
9740
9741
9742 as_fn_exit 0
9743 _ACEOF
9744 ac_clean_files=$ac_clean_files_save
9745
9746 test $ac_write_fail = 0 ||
9747   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9748
9749
9750 # configure is writing to config.log, and then calls config.status.
9751 # config.status does its own redirection, appending to config.log.
9752 # Unfortunately, on DOS this fails, as config.log is still kept open
9753 # by configure, so config.status won't be able to write to it; its
9754 # output is simply discarded.  So we exec the FD to /dev/null,
9755 # effectively closing config.log, so it can be properly (re)opened and
9756 # appended to by config.status.  When coming back to configure, we
9757 # need to make the FD available again.
9758 if test "$no_create" != yes; then
9759   ac_cs_success=:
9760   ac_config_status_args=
9761   test "$silent" = yes &&
9762     ac_config_status_args="$ac_config_status_args --quiet"
9763   exec 5>/dev/null
9764   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9765   exec 5>>config.log
9766   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9767   # would make configure fail if this is the last instruction.
9768   $ac_cs_success || as_fn_exit 1
9769 fi
9770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9773 fi
9774