]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - configure
fix init script status failing when the pidfile does not exist
[deb_pkgs/spamass-milter.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.46 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for spamass-milter 0.4.0.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in #(
27   *posix*) :
28     set -o posix ;; #(
29   *) :
30      ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46   as_echo='print -r --'
47   as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='printf %s\n'
50   as_echo_n='printf %s'
51 else
52   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54     as_echo_n='/usr/ucb/echo -n'
55   else
56     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57     as_echo_n_body='eval
58       arg=$1;
59       case $arg in #(
60       *"$as_nl"*)
61         expr "X$arg" : "X\\(.*\\)$as_nl";
62         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63       esac;
64       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65     '
66     export as_echo_n_body
67     as_echo_n='sh -c $as_echo_n_body as_echo'
68   fi
69   export as_echo_body
70   as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75   PATH_SEPARATOR=:
76   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78       PATH_SEPARATOR=';'
79   }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order.  Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" ""        $as_nl"
89
90 # Find who we are.  Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137   # into an infinite loop, continuously re-executing ourselves.
138   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139     _as_can_reexec=no; export _as_can_reexec;
140     # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148   *v*x* | *x*v* ) as_opts=-vx ;;
149   *v* ) as_opts=-v ;;
150   *x* ) as_opts=-x ;;
151   * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158   fi
159   # We don't want this to propagate to other subprocesses.
160           { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163   emulate sh
164   NULLCMD=:
165   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166   # is contrary to our usage.  Disable this feature.
167   alias -g '\${1+\"\$@\"}'='\"\$@\"'
168   setopt NO_GLOB_SUBST
169 else
170   case \`(set -o) 2>/dev/null\` in #(
171   *posix*) :
172     set -o posix ;; #(
173   *) :
174      ;;
175 esac
176 fi
177 "
178   as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192   exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201   if (eval "$as_required") 2>/dev/null; then :
202   as_have_required=yes
203 else
204   as_have_required=no
205 fi
206   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213   IFS=$as_save_IFS
214   test -z "$as_dir" && as_dir=.
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir/$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223   CONFIG_SHELL=$as_shell as_have_required=yes
224                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225   break 2
226 fi
227 fi
228            done;;
229        esac
230   as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234   CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239       if test "x$CONFIG_SHELL" != x; then :
240   export CONFIG_SHELL
241              # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249   *v*x* | *x*v* ) as_opts=-vx ;;
250   *v* ) as_opts=-v ;;
251   *x* ) as_opts=-x ;;
252   * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261     if test x$as_have_required = xno; then :
262   $as_echo "$0: This script requires a shell more modern than all"
263   $as_echo "$0: the shells that I found on your system."
264   if test x${ZSH_VERSION+set} = xset ; then
265     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267   else
268     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272   fi
273   exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291   { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300   return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308   set +e
309   as_fn_set_status $1
310   exit $1
311 } # as_fn_exit
312
313 # as_fn_mkdir_p
314 # -------------
315 # Create "$as_dir" as a directory, including parents if necessary.
316 as_fn_mkdir_p ()
317 {
318
319   case $as_dir in #(
320   -*) as_dir=./$as_dir;;
321   esac
322   test -d "$as_dir" || eval $as_mkdir_p || {
323     as_dirs=
324     while :; do
325       case $as_dir in #(
326       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327       *) as_qdir=$as_dir;;
328       esac
329       as_dirs="'$as_qdir' $as_dirs"
330       as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332          X"$as_dir" : 'X\(//\)[^/]' \| \
333          X"$as_dir" : 'X\(//\)$' \| \
334          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337             s//\1/
338             q
339           }
340           /^X\(\/\/\)[^/].*/{
341             s//\1/
342             q
343           }
344           /^X\(\/\/\)$/{
345             s//\1/
346             q
347           }
348           /^X\(\/\).*/{
349             s//\1/
350             q
351           }
352           s/.*/./; q'`
353       test -d "$as_dir" && break
354     done
355     test -z "$as_dirs" || eval "mkdir $as_dirs"
356   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359 } # as_fn_mkdir_p
360
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p ()
365 {
366   test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
373 # implementations.
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375   eval 'as_fn_append ()
376   {
377     eval $1+=\$2
378   }'
379 else
380   as_fn_append ()
381   {
382     eval $1=\$$1\$2
383   }
384 fi # as_fn_append
385
386 # as_fn_arith ARG...
387 # ------------------
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392   eval 'as_fn_arith ()
393   {
394     as_val=$(( $* ))
395   }'
396 else
397   as_fn_arith ()
398   {
399     as_val=`expr "$@" || test $? -eq 1`
400   }
401 fi # as_fn_arith
402
403
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
409 as_fn_error ()
410 {
411   as_status=$1; test $as_status -eq 0 && as_status=1
412   if test "$4"; then
413     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415   fi
416   $as_echo "$as_me: error: $2" >&2
417   as_fn_exit $as_status
418 } # as_fn_error
419
420 if expr a : '\(a\)' >/dev/null 2>&1 &&
421    test "X`expr 00001 : '.*\(...\)'`" = X001; then
422   as_expr=expr
423 else
424   as_expr=false
425 fi
426
427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428   as_basename=basename
429 else
430   as_basename=false
431 fi
432
433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434   as_dirname=dirname
435 else
436   as_dirname=false
437 fi
438
439 as_me=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441          X"$0" : 'X\(//\)$' \| \
442          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 $as_echo X/"$0" |
444     sed '/^.*\/\([^/][^/]*\)\/*$/{
445             s//\1/
446             q
447           }
448           /^X\/\(\/\/\)$/{
449             s//\1/
450             q
451           }
452           /^X\/\(\/\).*/{
453             s//\1/
454             q
455           }
456           s/.*/./; q'`
457
458 # Avoid depending upon Character Ranges.
459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits='0123456789'
463 as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466   as_lineno_1=$LINENO as_lineno_1a=$LINENO
467   as_lineno_2=$LINENO as_lineno_2a=$LINENO
468   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
471   sed -n '
472     p
473     /[$]LINENO/=
474   ' <$as_myself |
475     sed '
476       s/[$]LINENO.*/&-/
477       t lineno
478       b
479       :lineno
480       N
481       :loop
482       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483       t loop
484       s/-\n.*//
485     ' >$as_me.lineno &&
486   chmod +x "$as_me.lineno" ||
487     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490   # already done that, so ensure we don't try to do so again and fall
491   # in an infinite loop.  This has already happened in practice.
492   _as_can_reexec=no; export _as_can_reexec
493   # Don't try to exec as it changes $[0], causing all sort of problems
494   # (the dirname of $[0] is not the place where we might find the
495   # original and so on.  Autoconf is especially sensitive to this).
496   . "./$as_me.lineno"
497   # Exit status is that of the last command.
498   exit
499 }
500
501 ECHO_C= ECHO_N= ECHO_T=
502 case `echo -n x` in #(((((
503 -n*)
504   case `echo 'xy\c'` in
505   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
506   xy)  ECHO_C='\c';;
507   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
508        ECHO_T=' ';;
509   esac;;
510 *)
511   ECHO_N='-n';;
512 esac
513
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516   rm -f conf$$.dir/conf$$.file
517 else
518   rm -f conf$$.dir
519   mkdir conf$$.dir 2>/dev/null
520 fi
521 if (echo >conf$$.file) 2>/dev/null; then
522   if ln -s conf$$.file conf$$ 2>/dev/null; then
523     as_ln_s='ln -s'
524     # ... but there are two gotchas:
525     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527     # In both cases, we have to default to `cp -pR'.
528     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529       as_ln_s='cp -pR'
530   elif ln conf$$.file conf$$ 2>/dev/null; then
531     as_ln_s=ln
532   else
533     as_ln_s='cp -pR'
534   fi
535 else
536   as_ln_s='cp -pR'
537 fi
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
540
541 if mkdir -p . 2>/dev/null; then
542   as_mkdir_p='mkdir -p "$as_dir"'
543 else
544   test -d ./-p && rmdir ./-p
545   as_mkdir_p=false
546 fi
547
548 as_test_x='test -x'
549 as_executable_p=as_fn_executable_p
550
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558 test -n "$DJDIR" || exec 7<&0 </dev/null
559 exec 6>&1
560
561 # Name of the host.
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
566 #
567 # Initializations.
568 #
569 ac_default_prefix=/usr/local
570 ac_clean_files=
571 ac_config_libobj_dir=.
572 LIBOBJS=
573 cross_compiling=no
574 subdirs=
575 MFLAGS=
576 MAKEFLAGS=
577
578 # Identity of this package.
579 PACKAGE_NAME='spamass-milter'
580 PACKAGE_TARNAME='spamass-milter'
581 PACKAGE_VERSION='0.4.0'
582 PACKAGE_STRING='spamass-milter 0.4.0'
583 PACKAGE_BUGREPORT=''
584 PACKAGE_URL=''
585
586 ac_unique_file="spamass-milter.cpp"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 #  include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #  include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
622
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 LIBOBJS
627 EGREP
628 GREP
629 CXXCPP
630 PTHREAD_CFLAGS
631 PTHREAD_LIBS
632 PTHREAD_CC
633 acx_pthread_config
634 host_os
635 host_vendor
636 host_cpu
637 host
638 build_os
639 build_vendor
640 build_cpu
641 build
642 HAVE_MDOC_FALSE
643 HAVE_MDOC_TRUE
644 NROFF
645 SENDMAIL
646 SPAMC
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 ac_ct_CC
651 CFLAGS
652 CC
653 am__fastdepCXX_FALSE
654 am__fastdepCXX_TRUE
655 CXXDEPMODE
656 am__nodep
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CXX
666 CPPFLAGS
667 LDFLAGS
668 CXXFLAGS
669 CXX
670 AM_BACKSLASH
671 AM_DEFAULT_VERBOSITY
672 AM_DEFAULT_V
673 AM_V
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
679 AWK
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_silent_rules
739 enable_dependency_tracking
740 enable_emulate_poll
741 with_dmalloc
742 '
743       ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CXX
747 CXXFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CCC
752 CC
753 CFLAGS
754 SPAMC
755 SENDMAIL
756 CXXCPP'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 ac_unrecognized_opts=
763 ac_unrecognized_sep=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
766 cache_file=/dev/null
767 exec_prefix=NONE
768 no_create=
769 no_recursion=
770 prefix=NONE
771 program_prefix=NONE
772 program_suffix=NONE
773 program_transform_name=s,x,x,
774 silent=
775 site=
776 srcdir=
777 verbose=
778 x_includes=NONE
779 x_libraries=NONE
780
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
806
807 ac_prev=
808 ac_dashdash=
809 for ac_option
810 do
811   # If the previous option needs an argument, assign it.
812   if test -n "$ac_prev"; then
813     eval $ac_prev=\$ac_option
814     ac_prev=
815     continue
816   fi
817
818   case $ac_option in
819   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820   *=)   ac_optarg= ;;
821   *)    ac_optarg=yes ;;
822   esac
823
824   # Accept the important Cygnus configure options, so we can diagnose typos.
825
826   case $ac_dashdash$ac_option in
827   --)
828     ac_dashdash=yes ;;
829
830   -bindir | --bindir | --bindi | --bind | --bin | --bi)
831     ac_prev=bindir ;;
832   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833     bindir=$ac_optarg ;;
834
835   -build | --build | --buil | --bui | --bu)
836     ac_prev=build_alias ;;
837   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838     build_alias=$ac_optarg ;;
839
840   -cache-file | --cache-file | --cache-fil | --cache-fi \
841   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842     ac_prev=cache_file ;;
843   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845     cache_file=$ac_optarg ;;
846
847   --config-cache | -C)
848     cache_file=config.cache ;;
849
850   -datadir | --datadir | --datadi | --datad)
851     ac_prev=datadir ;;
852   -datadir=* | --datadir=* | --datadi=* | --datad=*)
853     datadir=$ac_optarg ;;
854
855   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856   | --dataroo | --dataro | --datar)
857     ac_prev=datarootdir ;;
858   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860     datarootdir=$ac_optarg ;;
861
862   -disable-* | --disable-*)
863     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864     # Reject names that are not valid shell variable names.
865     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866       as_fn_error $? "invalid feature name: $ac_useropt"
867     ac_useropt_orig=$ac_useropt
868     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869     case $ac_user_opts in
870       *"
871 "enable_$ac_useropt"
872 "*) ;;
873       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874          ac_unrecognized_sep=', ';;
875     esac
876     eval enable_$ac_useropt=no ;;
877
878   -docdir | --docdir | --docdi | --doc | --do)
879     ac_prev=docdir ;;
880   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881     docdir=$ac_optarg ;;
882
883   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884     ac_prev=dvidir ;;
885   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886     dvidir=$ac_optarg ;;
887
888   -enable-* | --enable-*)
889     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890     # Reject names that are not valid shell variable names.
891     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892       as_fn_error $? "invalid feature name: $ac_useropt"
893     ac_useropt_orig=$ac_useropt
894     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895     case $ac_user_opts in
896       *"
897 "enable_$ac_useropt"
898 "*) ;;
899       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900          ac_unrecognized_sep=', ';;
901     esac
902     eval enable_$ac_useropt=\$ac_optarg ;;
903
904   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906   | --exec | --exe | --ex)
907     ac_prev=exec_prefix ;;
908   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910   | --exec=* | --exe=* | --ex=*)
911     exec_prefix=$ac_optarg ;;
912
913   -gas | --gas | --ga | --g)
914     # Obsolete; use --with-gas.
915     with_gas=yes ;;
916
917   -help | --help | --hel | --he | -h)
918     ac_init_help=long ;;
919   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920     ac_init_help=recursive ;;
921   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922     ac_init_help=short ;;
923
924   -host | --host | --hos | --ho)
925     ac_prev=host_alias ;;
926   -host=* | --host=* | --hos=* | --ho=*)
927     host_alias=$ac_optarg ;;
928
929   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930     ac_prev=htmldir ;;
931   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932   | --ht=*)
933     htmldir=$ac_optarg ;;
934
935   -includedir | --includedir | --includedi | --included | --include \
936   | --includ | --inclu | --incl | --inc)
937     ac_prev=includedir ;;
938   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939   | --includ=* | --inclu=* | --incl=* | --inc=*)
940     includedir=$ac_optarg ;;
941
942   -infodir | --infodir | --infodi | --infod | --info | --inf)
943     ac_prev=infodir ;;
944   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945     infodir=$ac_optarg ;;
946
947   -libdir | --libdir | --libdi | --libd)
948     ac_prev=libdir ;;
949   -libdir=* | --libdir=* | --libdi=* | --libd=*)
950     libdir=$ac_optarg ;;
951
952   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953   | --libexe | --libex | --libe)
954     ac_prev=libexecdir ;;
955   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956   | --libexe=* | --libex=* | --libe=*)
957     libexecdir=$ac_optarg ;;
958
959   -localedir | --localedir | --localedi | --localed | --locale)
960     ac_prev=localedir ;;
961   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962     localedir=$ac_optarg ;;
963
964   -localstatedir | --localstatedir | --localstatedi | --localstated \
965   | --localstate | --localstat | --localsta | --localst | --locals)
966     ac_prev=localstatedir ;;
967   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969     localstatedir=$ac_optarg ;;
970
971   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972     ac_prev=mandir ;;
973   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974     mandir=$ac_optarg ;;
975
976   -nfp | --nfp | --nf)
977     # Obsolete; use --without-fp.
978     with_fp=no ;;
979
980   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981   | --no-cr | --no-c | -n)
982     no_create=yes ;;
983
984   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986     no_recursion=yes ;;
987
988   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990   | --oldin | --oldi | --old | --ol | --o)
991     ac_prev=oldincludedir ;;
992   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995     oldincludedir=$ac_optarg ;;
996
997   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998     ac_prev=prefix ;;
999   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000     prefix=$ac_optarg ;;
1001
1002   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003   | --program-pre | --program-pr | --program-p)
1004     ac_prev=program_prefix ;;
1005   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007     program_prefix=$ac_optarg ;;
1008
1009   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010   | --program-suf | --program-su | --program-s)
1011     ac_prev=program_suffix ;;
1012   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014     program_suffix=$ac_optarg ;;
1015
1016   -program-transform-name | --program-transform-name \
1017   | --program-transform-nam | --program-transform-na \
1018   | --program-transform-n | --program-transform- \
1019   | --program-transform | --program-transfor \
1020   | --program-transfo | --program-transf \
1021   | --program-trans | --program-tran \
1022   | --progr-tra | --program-tr | --program-t)
1023     ac_prev=program_transform_name ;;
1024   -program-transform-name=* | --program-transform-name=* \
1025   | --program-transform-nam=* | --program-transform-na=* \
1026   | --program-transform-n=* | --program-transform-=* \
1027   | --program-transform=* | --program-transfor=* \
1028   | --program-transfo=* | --program-transf=* \
1029   | --program-trans=* | --program-tran=* \
1030   | --progr-tra=* | --program-tr=* | --program-t=*)
1031     program_transform_name=$ac_optarg ;;
1032
1033   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034     ac_prev=pdfdir ;;
1035   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036     pdfdir=$ac_optarg ;;
1037
1038   -psdir | --psdir | --psdi | --psd | --ps)
1039     ac_prev=psdir ;;
1040   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041     psdir=$ac_optarg ;;
1042
1043   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044   | -silent | --silent | --silen | --sile | --sil)
1045     silent=yes ;;
1046
1047   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048     ac_prev=sbindir ;;
1049   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050   | --sbi=* | --sb=*)
1051     sbindir=$ac_optarg ;;
1052
1053   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055   | --sharedst | --shareds | --shared | --share | --shar \
1056   | --sha | --sh)
1057     ac_prev=sharedstatedir ;;
1058   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061   | --sha=* | --sh=*)
1062     sharedstatedir=$ac_optarg ;;
1063
1064   -site | --site | --sit)
1065     ac_prev=site ;;
1066   -site=* | --site=* | --sit=*)
1067     site=$ac_optarg ;;
1068
1069   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070     ac_prev=srcdir ;;
1071   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072     srcdir=$ac_optarg ;;
1073
1074   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075   | --syscon | --sysco | --sysc | --sys | --sy)
1076     ac_prev=sysconfdir ;;
1077   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079     sysconfdir=$ac_optarg ;;
1080
1081   -target | --target | --targe | --targ | --tar | --ta | --t)
1082     ac_prev=target_alias ;;
1083   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084     target_alias=$ac_optarg ;;
1085
1086   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087     verbose=yes ;;
1088
1089   -version | --version | --versio | --versi | --vers | -V)
1090     ac_init_version=: ;;
1091
1092   -with-* | --with-*)
1093     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096       as_fn_error $? "invalid package name: $ac_useropt"
1097     ac_useropt_orig=$ac_useropt
1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099     case $ac_user_opts in
1100       *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104          ac_unrecognized_sep=', ';;
1105     esac
1106     eval with_$ac_useropt=\$ac_optarg ;;
1107
1108   -without-* | --without-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       as_fn_error $? "invalid package name: $ac_useropt"
1113     ac_useropt_orig=$ac_useropt
1114     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115     case $ac_user_opts in
1116       *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120          ac_unrecognized_sep=', ';;
1121     esac
1122     eval with_$ac_useropt=no ;;
1123
1124   --x)
1125     # Obsolete; use --with-x.
1126     with_x=yes ;;
1127
1128   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129   | --x-incl | --x-inc | --x-in | --x-i)
1130     ac_prev=x_includes ;;
1131   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133     x_includes=$ac_optarg ;;
1134
1135   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137     ac_prev=x_libraries ;;
1138   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140     x_libraries=$ac_optarg ;;
1141
1142   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information"
1144     ;;
1145
1146   *=*)
1147     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148     # Reject names that are not valid shell variable names.
1149     case $ac_envvar in #(
1150       '' | [0-9]* | *[!_$as_cr_alnum]* )
1151       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152     esac
1153     eval $ac_envvar=\$ac_optarg
1154     export $ac_envvar ;;
1155
1156   *)
1157     # FIXME: should be removed in autoconf 3.0.
1158     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162     ;;
1163
1164   esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169   as_fn_error $? "missing argument to $ac_option"
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173   case $enable_option_checking in
1174     no) ;;
1175     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177   esac
1178 fi
1179
1180 # Check all directory arguments for consistency.
1181 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182                 datadir sysconfdir sharedstatedir localstatedir includedir \
1183                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184                 libdir localedir mandir
1185 do
1186   eval ac_val=\$$ac_var
1187   # Remove trailing slashes.
1188   case $ac_val in
1189     */ )
1190       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191       eval $ac_var=\$ac_val;;
1192   esac
1193   # Be sure to have absolute directory names.
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210   if test "x$build_alias" = x; then
1211     cross_compiling=maybe
1212   elif test "x$build_alias" != "x$host_alias"; then
1213     cross_compiling=yes
1214   fi
1215 fi
1216
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220 test "$silent" = yes && exec 6>/dev/null
1221
1222
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226   as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233   ac_srcdir_defaulted=yes
1234   # Try the directory containing this script, then the parent directory.
1235   ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237          X"$as_myself" : 'X\(//\)[^/]' \| \
1238          X"$as_myself" : 'X\(//\)$' \| \
1239          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)[^/].*/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)$/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\).*/{
1254             s//\1/
1255             q
1256           }
1257           s/.*/./; q'`
1258   srcdir=$ac_confdir
1259   if test ! -r "$srcdir/$ac_unique_file"; then
1260     srcdir=..
1261   fi
1262 else
1263   ac_srcdir_defaulted=no
1264 fi
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272         pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275   srcdir=.
1276 fi
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_env_${ac_var}_value=\$${ac_var}
1286   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1289
1290 #
1291 # Report the --help message.
1292 #
1293 if test "$ac_init_help" = "long"; then
1294   # Omit some internal or obsolete options to make the list less imposing.
1295   # This message is too long to be a string in the A/UX 3.1 sh.
1296   cat <<_ACEOF
1297 \`configure' configures spamass-milter 0.4.0 to adapt to many kinds of systems.
1298
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE.  See below for descriptions of some of the useful variables.
1303
1304 Defaults for the options are specified in brackets.
1305
1306 Configuration:
1307   -h, --help              display this help and exit
1308       --help=short        display options specific to this package
1309       --help=recursive    display the short help of all the included packages
1310   -V, --version           display version information and exit
1311   -q, --quiet, --silent   do not print \`checking ...' messages
1312       --cache-file=FILE   cache test results in FILE [disabled]
1313   -C, --config-cache      alias for \`--cache-file=config.cache'
1314   -n, --no-create         do not create output files
1315       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1316
1317 Installation directories:
1318   --prefix=PREFIX         install architecture-independent files in PREFIX
1319                           [$ac_default_prefix]
1320   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1321                           [PREFIX]
1322
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1327
1328 For better control, use the options below.
1329
1330 Fine tuning of the installation directories:
1331   --bindir=DIR            user executables [EPREFIX/bin]
1332   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1333   --libexecdir=DIR        program executables [EPREFIX/libexec]
1334   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1335   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1336   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1337   --libdir=DIR            object code libraries [EPREFIX/lib]
1338   --includedir=DIR        C header files [PREFIX/include]
1339   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1340   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1341   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1342   --infodir=DIR           info documentation [DATAROOTDIR/info]
1343   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1344   --mandir=DIR            man documentation [DATAROOTDIR/man]
1345   --docdir=DIR            documentation root [DATAROOTDIR/doc/spamass-milter]
1346   --htmldir=DIR           html documentation [DOCDIR]
1347   --dvidir=DIR            dvi documentation [DOCDIR]
1348   --pdfdir=DIR            pdf documentation [DOCDIR]
1349   --psdir=DIR             ps documentation [DOCDIR]
1350 _ACEOF
1351
1352   cat <<\_ACEOF
1353
1354 Program names:
1355   --program-prefix=PREFIX            prepend PREFIX to installed program names
1356   --program-suffix=SUFFIX            append SUFFIX to installed program names
1357   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1358
1359 System types:
1360   --build=BUILD     configure for building on BUILD [guessed]
1361   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1363 fi
1364
1365 if test -n "$ac_init_help"; then
1366   case $ac_init_help in
1367      short | recursive ) echo "Configuration of spamass-milter 0.4.0:";;
1368    esac
1369   cat <<\_ACEOF
1370
1371 Optional Features:
1372   --disable-option-checking  ignore unrecognized --enable/--with options
1373   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375   --enable-silent-rules   less verbose build output (undo: "make V=1")
1376   --disable-silent-rules  verbose build output (undo: "make V=0")
1377   --enable-dependency-tracking
1378                           do not reject slow dependency extractors
1379   --disable-dependency-tracking
1380                           speeds up one-time build
1381   --enable-emulate-poll   use a select wrapper instead of poll (autodetected)
1382
1383 Optional Packages:
1384   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1386   --with-dmalloc          use dmalloc ( http://www.dmalloc.com )
1387
1388 Some influential environment variables:
1389   CXX         C++ compiler command
1390   CXXFLAGS    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   CC          C compiler command
1397   CFLAGS      C compiler flags
1398   SPAMC       Path to spamc
1399   SENDMAIL    Path to sendmail
1400   CXXCPP      C++ preprocessor
1401
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1404
1405 Report bugs to the package provider.
1406 _ACEOF
1407 ac_status=$?
1408 fi
1409
1410 if test "$ac_init_help" = "recursive"; then
1411   # If there are subdirs, report their specific --help.
1412   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413     test -d "$ac_dir" ||
1414       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415       continue
1416     ac_builddir=.
1417
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *)
1421   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422   # A ".." for each directory in $ac_dir_suffix.
1423   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424   case $ac_top_builddir_sub in
1425   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427   esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1433
1434 case $srcdir in
1435   .)  # We are building in place.
1436     ac_srcdir=.
1437     ac_top_srcdir=$ac_top_builddir_sub
1438     ac_abs_top_srcdir=$ac_pwd ;;
1439   [\\/]* | ?:[\\/]* )  # Absolute name.
1440     ac_srcdir=$srcdir$ac_dir_suffix;
1441     ac_top_srcdir=$srcdir
1442     ac_abs_top_srcdir=$srcdir ;;
1443   *) # Relative name.
1444     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445     ac_top_srcdir=$ac_top_build_prefix$srcdir
1446     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449
1450     cd "$ac_dir" || { ac_status=$?; continue; }
1451     # Check for guested configure.
1452     if test -f "$ac_srcdir/configure.gnu"; then
1453       echo &&
1454       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455     elif test -f "$ac_srcdir/configure"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure" --help=recursive
1458     else
1459       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460     fi || ac_status=$?
1461     cd "$ac_pwd" || { ac_status=$?; break; }
1462   done
1463 fi
1464
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467   cat <<\_ACEOF
1468 spamass-milter configure 0.4.0
1469 generated by GNU Autoconf 2.69
1470
1471 Copyright (C) 2012 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475   exit
1476 fi
1477
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1481
1482 # ac_fn_cxx_try_compile LINENO
1483 # ----------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_cxx_try_compile ()
1486 {
1487   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488   rm -f conftest.$ac_objext
1489   if { { ac_try="$ac_compile"
1490 case "(($ac_try" in
1491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492   *) ac_try_echo=$ac_try;;
1493 esac
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496   (eval "$ac_compile") 2>conftest.err
1497   ac_status=$?
1498   if test -s conftest.err; then
1499     grep -v '^ *+' conftest.err >conftest.er1
1500     cat conftest.er1 >&5
1501     mv -f conftest.er1 conftest.err
1502   fi
1503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504   test $ac_status = 0; } && {
1505          test -z "$ac_cxx_werror_flag" ||
1506          test ! -s conftest.err
1507        } && test -s conftest.$ac_objext; then :
1508   ac_retval=0
1509 else
1510   $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1512
1513         ac_retval=1
1514 fi
1515   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516   as_fn_set_status $ac_retval
1517
1518 } # ac_fn_cxx_try_compile
1519
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile ()
1524 {
1525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526   rm -f conftest.$ac_objext
1527   if { { ac_try="$ac_compile"
1528 case "(($ac_try" in
1529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530   *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534   (eval "$ac_compile") 2>conftest.err
1535   ac_status=$?
1536   if test -s conftest.err; then
1537     grep -v '^ *+' conftest.err >conftest.er1
1538     cat conftest.er1 >&5
1539     mv -f conftest.er1 conftest.err
1540   fi
1541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542   test $ac_status = 0; } && {
1543          test -z "$ac_c_werror_flag" ||
1544          test ! -s conftest.err
1545        } && test -s conftest.$ac_objext; then :
1546   ac_retval=0
1547 else
1548   $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551         ac_retval=1
1552 fi
1553   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554   as_fn_set_status $ac_retval
1555
1556 } # ac_fn_c_try_compile
1557
1558 # ac_fn_cxx_try_link LINENO
1559 # -------------------------
1560 # Try to link conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_link ()
1562 {
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   rm -f conftest.$ac_objext conftest$ac_exeext
1565   if { { ac_try="$ac_link"
1566 case "(($ac_try" in
1567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568   *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572   (eval "$ac_link") 2>conftest.err
1573   ac_status=$?
1574   if test -s conftest.err; then
1575     grep -v '^ *+' conftest.err >conftest.er1
1576     cat conftest.er1 >&5
1577     mv -f conftest.er1 conftest.err
1578   fi
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } && {
1581          test -z "$ac_cxx_werror_flag" ||
1582          test ! -s conftest.err
1583        } && test -s conftest$ac_exeext && {
1584          test "$cross_compiling" = yes ||
1585          test -x conftest$ac_exeext
1586        }; then :
1587   ac_retval=0
1588 else
1589   $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592         ac_retval=1
1593 fi
1594   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1595   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1596   # interfere with the next link command; also delete a directory that is
1597   # left behind by Apple's compiler.  We do this before executing the actions.
1598   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600   as_fn_set_status $ac_retval
1601
1602 } # ac_fn_cxx_try_link
1603
1604 # ac_fn_cxx_try_run LINENO
1605 # ------------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607 # that executables *can* be run.
1608 ac_fn_cxx_try_run ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   if { { ac_try="$ac_link"
1612 case "(($ac_try" in
1613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614   *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618   (eval "$ac_link") 2>&5
1619   ac_status=$?
1620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622   { { case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_try") 2>&5
1629   ac_status=$?
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; }; }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: program exited with status $ac_status" >&5
1635        $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638        ac_retval=$ac_status
1639 fi
1640   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642   as_fn_set_status $ac_retval
1643
1644 } # ac_fn_cxx_try_run
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   rm -f conftest.$ac_objext conftest$ac_exeext
1653   if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_link") 2>conftest.err
1661   ac_status=$?
1662   if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666   fi
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && {
1669          test -z "$ac_c_werror_flag" ||
1670          test ! -s conftest.err
1671        } && test -s conftest$ac_exeext && {
1672          test "$cross_compiling" = yes ||
1673          test -x conftest$ac_exeext
1674        }; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680         ac_retval=1
1681 fi
1682   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684   # interfere with the next link command; also delete a directory that is
1685   # left behind by Apple's compiler.  We do this before executing the actions.
1686   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688   as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_link
1691
1692 # ac_fn_cxx_try_cpp LINENO
1693 # ------------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_cxx_try_cpp ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } > conftest.i && {
1714          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1715          test ! -s conftest.err
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722     ac_retval=1
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_cxx_try_cpp
1728
1729 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # ---------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_cxx_check_header_mongrel ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   if eval \${$3+:} false; then :
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747   # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h.  */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_cxx_try_compile "$LINENO"; then :
1756   ac_header_compiler=yes
1757 else
1758   ac_header_compiler=no
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1763
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_cxx_try_cpp "$LINENO"; then :
1772   ac_header_preproc=yes
1773 else
1774   ac_header_preproc=no
1775 fi
1776 rm -f conftest.err conftest.i conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1779
1780 # So?  What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1782   yes:no: )
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787     ;;
1788   no:yes:* )
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799     ;;
1800 esac
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   eval "$3=\$ac_header_compiler"
1807 fi
1808 eval ac_res=\$$3
1809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 fi
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_cxx_check_header_mongrel
1815
1816 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1817 # ---------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_cxx_check_header_compile ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826   $as_echo_n "(cached) " >&6
1827 else
1828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h.  */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_cxx_try_compile "$LINENO"; then :
1834   eval "$3=yes"
1835 else
1836   eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_cxx_check_header_compile
1846
1847 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1848 # ---------------------------------------------
1849 # Tests whether TYPE exists after having included INCLUDES, setting cache
1850 # variable VAR accordingly.
1851 ac_fn_cxx_check_type ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857   $as_echo_n "(cached) " >&6
1858 else
1859   eval "$3=no"
1860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h.  */
1862 $4
1863 int
1864 main ()
1865 {
1866 if (sizeof ($2))
1867          return 0;
1868   ;
1869   return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_cxx_try_compile "$LINENO"; then :
1873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $4
1876 int
1877 main ()
1878 {
1879 if (sizeof (($2)))
1880             return 0;
1881   ;
1882   return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_cxx_try_compile "$LINENO"; then :
1886
1887 else
1888   eval "$3=yes"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_cxx_check_type
1900
1901 # ac_fn_cxx_check_func LINENO FUNC VAR
1902 # ------------------------------------
1903 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1904 ac_fn_cxx_check_func ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910   $as_echo_n "(cached) " >&6
1911 else
1912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1916 #define $2 innocuous_$2
1917
1918 /* System header to define __stub macros and hopefully few prototypes,
1919     which can conflict with char $2 (); below.
1920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921     <limits.h> exists even on freestanding compilers.  */
1922
1923 #ifdef __STDC__
1924 # include <limits.h>
1925 #else
1926 # include <assert.h>
1927 #endif
1928
1929 #undef $2
1930
1931 /* Override any GCC internal prototype to avoid an error.
1932    Use char because int might match the return type of a GCC
1933    builtin and then its argument prototype would still apply.  */
1934 #ifdef __cplusplus
1935 extern "C"
1936 #endif
1937 char $2 ();
1938 /* The GNU C library defines this for functions which it implements
1939     to always fail with ENOSYS.  Some functions are actually named
1940     something starting with __ and the normal name is an alias.  */
1941 #if defined __stub_$2 || defined __stub___$2
1942 choke me
1943 #endif
1944
1945 int
1946 main ()
1947 {
1948 return $2 ();
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_cxx_try_link "$LINENO"; then :
1954   eval "$3=yes"
1955 else
1956   eval "$3=no"
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext \
1959     conftest$ac_exeext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_cxx_check_func
1967
1968 # ac_fn_c_check_func LINENO FUNC VAR
1969 # ----------------------------------
1970 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1971 ac_fn_c_check_func ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977   $as_echo_n "(cached) " >&6
1978 else
1979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1983 #define $2 innocuous_$2
1984
1985 /* System header to define __stub macros and hopefully few prototypes,
1986     which can conflict with char $2 (); below.
1987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1988     <limits.h> exists even on freestanding compilers.  */
1989
1990 #ifdef __STDC__
1991 # include <limits.h>
1992 #else
1993 # include <assert.h>
1994 #endif
1995
1996 #undef $2
1997
1998 /* Override any GCC internal prototype to avoid an error.
1999    Use char because int might match the return type of a GCC
2000    builtin and then its argument prototype would still apply.  */
2001 #ifdef __cplusplus
2002 extern "C"
2003 #endif
2004 char $2 ();
2005 /* The GNU C library defines this for functions which it implements
2006     to always fail with ENOSYS.  Some functions are actually named
2007     something starting with __ and the normal name is an alias.  */
2008 #if defined __stub_$2 || defined __stub___$2
2009 choke me
2010 #endif
2011
2012 int
2013 main ()
2014 {
2015 return $2 ();
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_link "$LINENO"; then :
2021   eval "$3=yes"
2022 else
2023   eval "$3=no"
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext \
2026     conftest$ac_exeext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_func
2034
2035 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2036 # ---------------------------------------------
2037 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2038 # accordingly.
2039 ac_fn_c_check_decl ()
2040 {
2041   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042   as_decl_name=`echo $2|sed 's/ *(.*//'`
2043   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2045 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2046 if eval \${$3+:} false; then :
2047   $as_echo_n "(cached) " >&6
2048 else
2049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 #ifndef $as_decl_name
2056 #ifdef __cplusplus
2057   (void) $as_decl_use;
2058 #else
2059   (void) $as_decl_name;
2060 #endif
2061 #endif
2062
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068   eval "$3=yes"
2069 else
2070   eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_decl
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2083
2084 It was created by spamass-milter $as_me 0.4.0, which was
2085 generated by GNU Autoconf 2.69.  Invocation command line was
2086
2087   $ $0 $@
2088
2089 _ACEOF
2090 exec 5>>config.log
2091 {
2092 cat <<_ASUNAME
2093 ## --------- ##
2094 ## Platform. ##
2095 ## --------- ##
2096
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2105
2106 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2107 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2110 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2111 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2112 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2113
2114 _ASUNAME
2115
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121     $as_echo "PATH: $as_dir"
2122   done
2123 IFS=$as_save_IFS
2124
2125 } >&5
2126
2127 cat >&5 <<_ACEOF
2128
2129
2130 ## ----------- ##
2131 ## Core tests. ##
2132 ## ----------- ##
2133
2134 _ACEOF
2135
2136
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2142 ac_configure_args=
2143 ac_configure_args0=
2144 ac_configure_args1=
2145 ac_must_keep_next=false
2146 for ac_pass in 1 2
2147 do
2148   for ac_arg
2149   do
2150     case $ac_arg in
2151     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153     | -silent | --silent | --silen | --sile | --sil)
2154       continue ;;
2155     *\'*)
2156       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157     esac
2158     case $ac_pass in
2159     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160     2)
2161       as_fn_append ac_configure_args1 " '$ac_arg'"
2162       if test $ac_must_keep_next = true; then
2163         ac_must_keep_next=false # Got value, back to normal.
2164       else
2165         case $ac_arg in
2166           *=* | --config-cache | -C | -disable-* | --disable-* \
2167           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169           | -with-* | --with-* | -without-* | --without-* | --x)
2170             case "$ac_configure_args0 " in
2171               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172             esac
2173             ;;
2174           -* ) ac_must_keep_next=true ;;
2175         esac
2176       fi
2177       as_fn_append ac_configure_args " '$ac_arg'"
2178       ;;
2179     esac
2180   done
2181 done
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2184
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log.  We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191   # Save into config.log some information that might help in debugging.
2192   {
2193     echo
2194
2195     $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2198     echo
2199     # The following way of writing the cache mishandles newlines in values,
2200 (
2201   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202     eval ac_val=\$$ac_var
2203     case $ac_val in #(
2204     *${as_nl}*)
2205       case $ac_var in #(
2206       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208       esac
2209       case $ac_var in #(
2210       _ | IFS | as_nl) ;; #(
2211       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212       *) { eval $ac_var=; unset $ac_var;} ;;
2213       esac ;;
2214     esac
2215   done
2216   (set) 2>&1 |
2217     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218     *${as_nl}ac_space=\ *)
2219       sed -n \
2220         "s/'\''/'\''\\\\'\'''\''/g;
2221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222       ;; #(
2223     *)
2224       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225       ;;
2226     esac |
2227     sort
2228 )
2229     echo
2230
2231     $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2234     echo
2235     for ac_var in $ac_subst_vars
2236     do
2237       eval ac_val=\$$ac_var
2238       case $ac_val in
2239       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240       esac
2241       $as_echo "$ac_var='\''$ac_val'\''"
2242     done | sort
2243     echo
2244
2245     if test -n "$ac_subst_files"; then
2246       $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2249       echo
2250       for ac_var in $ac_subst_files
2251       do
2252         eval ac_val=\$$ac_var
2253         case $ac_val in
2254         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255         esac
2256         $as_echo "$ac_var='\''$ac_val'\''"
2257       done | sort
2258       echo
2259     fi
2260
2261     if test -s confdefs.h; then
2262       $as_echo "## ----------- ##
2263 ## confdefs.h. ##
2264 ## ----------- ##"
2265       echo
2266       cat confdefs.h
2267       echo
2268     fi
2269     test "$ac_signal" != 0 &&
2270       $as_echo "$as_me: caught signal $ac_signal"
2271     $as_echo "$as_me: exit $exit_status"
2272   } >&5
2273   rm -f core *.core core.conftest.* &&
2274     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2275     exit $exit_status
2276 ' 0
2277 for ac_signal in 1 2 13 15; do
2278   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2279 done
2280 ac_signal=0
2281
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2284
2285 $as_echo "/* confdefs.h */" > confdefs.h
2286
2287 # Predefined preprocessor variables.
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_NAME "$PACKAGE_NAME"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_STRING "$PACKAGE_STRING"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_URL "$PACKAGE_URL"
2311 _ACEOF
2312
2313
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2316 ac_site_file1=NONE
2317 ac_site_file2=NONE
2318 if test -n "$CONFIG_SITE"; then
2319   # We do not want a PATH search for config.site.
2320   case $CONFIG_SITE in #((
2321     -*)  ac_site_file1=./$CONFIG_SITE;;
2322     */*) ac_site_file1=$CONFIG_SITE;;
2323     *)   ac_site_file1=./$CONFIG_SITE;;
2324   esac
2325 elif test "x$prefix" != xNONE; then
2326   ac_site_file1=$prefix/share/config.site
2327   ac_site_file2=$prefix/etc/config.site
2328 else
2329   ac_site_file1=$ac_default_prefix/share/config.site
2330   ac_site_file2=$ac_default_prefix/etc/config.site
2331 fi
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333 do
2334   test "x$ac_site_file" = xNONE && continue
2335   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338     sed 's/^/| /' "$ac_site_file" >&5
2339     . "$ac_site_file" \
2340       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2344   fi
2345 done
2346
2347 if test -r "$cache_file"; then
2348   # Some versions of bash will fail to source /dev/null (special files
2349   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2350   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2353     case $cache_file in
2354       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355       *)                      . "./$cache_file";;
2356     esac
2357   fi
2358 else
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2361   >$cache_file
2362 fi
2363
2364 # Check that the precious variables saved in the cache have kept the same
2365 # value.
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369   eval ac_new_set=\$ac_env_${ac_var}_set
2370   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371   eval ac_new_val=\$ac_env_${ac_var}_value
2372   case $ac_old_set,$ac_new_set in
2373     set,)
2374       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376       ac_cache_corrupted=: ;;
2377     ,set)
2378       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380       ac_cache_corrupted=: ;;
2381     ,);;
2382     *)
2383       if test "x$ac_old_val" != "x$ac_new_val"; then
2384         # differences in whitespace do not lead to failure.
2385         ac_old_val_w=`echo x $ac_old_val`
2386         ac_new_val_w=`echo x $ac_new_val`
2387         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390           ac_cache_corrupted=:
2391         else
2392           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394           eval $ac_var=\$ac_old_val
2395         fi
2396         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2397 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2398         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2400       fi;;
2401   esac
2402   # Pass precious variables to config.status.
2403   if test "$ac_new_set" = set; then
2404     case $ac_new_val in
2405     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406     *) ac_arg=$ac_var=$ac_new_val ;;
2407     esac
2408     case " $ac_configure_args " in
2409       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2410       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2411     esac
2412   fi
2413 done
2414 if $ac_cache_corrupted; then
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2420 fi
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2424
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430
2431
2432
2433
2434
2435
2436 # Initialize automake now
2437 ac_config_headers="$ac_config_headers config.h"
2438
2439 am__api_version='1.14'
2440
2441 ac_aux_dir=
2442 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2443   if test -f "$ac_dir/install-sh"; then
2444     ac_aux_dir=$ac_dir
2445     ac_install_sh="$ac_aux_dir/install-sh -c"
2446     break
2447   elif test -f "$ac_dir/install.sh"; then
2448     ac_aux_dir=$ac_dir
2449     ac_install_sh="$ac_aux_dir/install.sh -c"
2450     break
2451   elif test -f "$ac_dir/shtool"; then
2452     ac_aux_dir=$ac_dir
2453     ac_install_sh="$ac_aux_dir/shtool install -c"
2454     break
2455   fi
2456 done
2457 if test -z "$ac_aux_dir"; then
2458   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2459 fi
2460
2461 # These three variables are undocumented and unsupported,
2462 # and are intended to be withdrawn in a future Autoconf release.
2463 # They can cause serious problems if a builder's source tree is in a directory
2464 # whose full name contains unusual characters.
2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2467 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2468
2469
2470 # Find a good install program.  We prefer a C program (faster),
2471 # so one script is as good as another.  But avoid the broken or
2472 # incompatible versions:
2473 # SysV /etc/install, /usr/sbin/install
2474 # SunOS /usr/etc/install
2475 # IRIX /sbin/install
2476 # AIX /bin/install
2477 # AmigaOS /C/install, which installs bootblocks on floppy discs
2478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2481 # OS/2's system install, which has a completely different semantic
2482 # ./install, which can be erroneously created by make from ./install.sh.
2483 # Reject install programs that cannot install multiple files.
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2485 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2486 if test -z "$INSTALL"; then
2487 if ${ac_cv_path_install+:} false; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495     # Account for people who put trailing slashes in PATH elements.
2496 case $as_dir/ in #((
2497   ./ | .// | /[cC]/* | \
2498   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2499   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2500   /usr/ucb/* ) ;;
2501   *)
2502     # OSF1 and SCO ODT 3.0 have their own names for install.
2503     # Don't use installbsd from OSF since it installs stuff as root
2504     # by default.
2505     for ac_prog in ginstall scoinst install; do
2506       for ac_exec_ext in '' $ac_executable_extensions; do
2507         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2508           if test $ac_prog = install &&
2509             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510             # AIX install.  It has an incompatible calling convention.
2511             :
2512           elif test $ac_prog = install &&
2513             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2514             # program-specific install script used by HP pwplus--don't use.
2515             :
2516           else
2517             rm -rf conftest.one conftest.two conftest.dir
2518             echo one > conftest.one
2519             echo two > conftest.two
2520             mkdir conftest.dir
2521             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2522               test -s conftest.one && test -s conftest.two &&
2523               test -s conftest.dir/conftest.one &&
2524               test -s conftest.dir/conftest.two
2525             then
2526               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2527               break 3
2528             fi
2529           fi
2530         fi
2531       done
2532     done
2533     ;;
2534 esac
2535
2536   done
2537 IFS=$as_save_IFS
2538
2539 rm -rf conftest.one conftest.two conftest.dir
2540
2541 fi
2542   if test "${ac_cv_path_install+set}" = set; then
2543     INSTALL=$ac_cv_path_install
2544   else
2545     # As a last resort, use the slow shell script.  Don't cache a
2546     # value for INSTALL within a source directory, because that will
2547     # break other packages using the cache if that directory is
2548     # removed, or if the value is a relative name.
2549     INSTALL=$ac_install_sh
2550   fi
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2553 $as_echo "$INSTALL" >&6; }
2554
2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556 # It thinks the first close brace ends the variable substitution.
2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2558
2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2560
2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2564 $as_echo_n "checking whether build environment is sane... " >&6; }
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name.  Accept space and tab only in the latter.
2567 am_lf='
2568 '
2569 case `pwd` in
2570   *[\\\"\#\$\&\'\`$am_lf]*)
2571     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2572 esac
2573 case $srcdir in
2574   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2575     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2576 esac
2577
2578 # Do 'set' in a subshell so we don't clobber the current shell's
2579 # arguments.  Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584    am_has_slept=no
2585    for am_try in 1 2; do
2586      echo "timestamp, slept: $am_has_slept" > conftest.file
2587      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2588      if test "$*" = "X"; then
2589         # -L didn't work.
2590         set X `ls -t "$srcdir/configure" conftest.file`
2591      fi
2592      if test "$*" != "X $srcdir/configure conftest.file" \
2593         && test "$*" != "X conftest.file $srcdir/configure"; then
2594
2595         # If neither matched, then we have a broken ls.  This can happen
2596         # if, for instance, CONFIG_SHELL is bash and it inherits a
2597         # broken ls alias from the environment.  This has actually
2598         # happened.  Such a system could not be considered "sane".
2599         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2600   alias in your environment" "$LINENO" 5
2601      fi
2602      if test "$2" = conftest.file || test $am_try -eq 2; then
2603        break
2604      fi
2605      # Just in case.
2606      sleep 1
2607      am_has_slept=yes
2608    done
2609    test "$2" = conftest.file
2610    )
2611 then
2612    # Ok.
2613    :
2614 else
2615    as_fn_error $? "newly created file is older than distributed files!
2616 Check your system clock" "$LINENO" 5
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620 # If we didn't sleep, we still need to ensure time stamps of config.status and
2621 # generated files are strictly newer.
2622 am_sleep_pid=
2623 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2624   ( sleep 1 ) &
2625   am_sleep_pid=$!
2626 fi
2627
2628 rm -f conftest.file
2629
2630 test "$program_prefix" != NONE &&
2631   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2632 # Use a double $ so make ignores it.
2633 test "$program_suffix" != NONE &&
2634   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2635 # Double any \ or $.
2636 # By default was `s,x,x', remove it if useless.
2637 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2638 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2639
2640 # expand $ac_aux_dir to an absolute path
2641 am_aux_dir=`cd $ac_aux_dir && pwd`
2642
2643 if test x"${MISSING+set}" != xset; then
2644   case $am_aux_dir in
2645   *\ * | *\     *)
2646     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2647   *)
2648     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2649   esac
2650 fi
2651 # Use eval to expand $SHELL
2652 if eval "$MISSING --is-lightweight"; then
2653   am_missing_run="$MISSING "
2654 else
2655   am_missing_run=
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2657 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2658 fi
2659
2660 if test x"${install_sh}" != xset; then
2661   case $am_aux_dir in
2662   *\ * | *\     *)
2663     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2664   *)
2665     install_sh="\${SHELL} $am_aux_dir/install-sh"
2666   esac
2667 fi
2668
2669 # Installed binaries are usually stripped using 'strip' when the user
2670 # run "make install-strip".  However 'strip' might not be the right
2671 # tool to use in cross-compilation environments, therefore Automake
2672 # will honor the 'STRIP' environment variable to overrule this program.
2673 if test "$cross_compiling" != no; then
2674   if test -n "$ac_tool_prefix"; then
2675   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}strip; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_STRIP+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   if test -n "$STRIP"; then
2683   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690     for ac_exec_ext in '' $ac_executable_extensions; do
2691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697   done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 STRIP=$ac_cv_prog_STRIP
2703 if test -n "$STRIP"; then
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2705 $as_echo "$STRIP" >&6; }
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711
2712 fi
2713 if test -z "$ac_cv_prog_STRIP"; then
2714   ac_ct_STRIP=$STRIP
2715   # Extract the first word of "strip", so it can be a program name with args.
2716 set dummy strip; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   if test -n "$ac_ct_STRIP"; then
2723   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730     for ac_exec_ext in '' $ac_executable_extensions; do
2731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732     ac_cv_prog_ac_ct_STRIP="strip"
2733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737   done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2743 if test -n "$ac_ct_STRIP"; then
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2745 $as_echo "$ac_ct_STRIP" >&6; }
2746 else
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751   if test "x$ac_ct_STRIP" = x; then
2752     STRIP=":"
2753   else
2754     case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760     STRIP=$ac_ct_STRIP
2761   fi
2762 else
2763   STRIP="$ac_cv_prog_STRIP"
2764 fi
2765
2766 fi
2767 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2771 if test -z "$MKDIR_P"; then
2772   if ${ac_cv_path_mkdir+:} false; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780     for ac_prog in mkdir gmkdir; do
2781          for ac_exec_ext in '' $ac_executable_extensions; do
2782            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2783            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2784              'mkdir (GNU coreutils) '* | \
2785              'mkdir (coreutils) '* | \
2786              'mkdir (fileutils) '4.1*)
2787                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2788                break 3;;
2789            esac
2790          done
2791        done
2792   done
2793 IFS=$as_save_IFS
2794
2795 fi
2796
2797   test -d ./--version && rmdir ./--version
2798   if test "${ac_cv_path_mkdir+set}" = set; then
2799     MKDIR_P="$ac_cv_path_mkdir -p"
2800   else
2801     # As a last resort, use the slow shell script.  Don't cache a
2802     # value for MKDIR_P within a source directory, because that will
2803     # break other packages using the cache if that directory is
2804     # removed, or if the value is a relative name.
2805     MKDIR_P="$ac_install_sh -d"
2806   fi
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2809 $as_echo "$MKDIR_P" >&6; }
2810
2811 for ac_prog in gawk mawk nawk awk
2812 do
2813   # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_AWK+:} false; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$AWK"; then
2821   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     for ac_exec_ext in '' $ac_executable_extensions; do
2829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830     ac_cv_prog_AWK="$ac_prog"
2831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835   done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 AWK=$ac_cv_prog_AWK
2841 if test -n "$AWK"; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2843 $as_echo "$AWK" >&6; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850   test -n "$AWK" && break
2851 done
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2854 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2855 set x ${MAKE-make}
2856 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2857 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   cat >conftest.make <<\_ACEOF
2861 SHELL = /bin/sh
2862 all:
2863         @echo '@@@%%%=$(MAKE)=@@@%%%'
2864 _ACEOF
2865 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2866 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2867   *@@@%%%=?*=@@@%%%*)
2868     eval ac_cv_prog_make_${ac_make}_set=yes;;
2869   *)
2870     eval ac_cv_prog_make_${ac_make}_set=no;;
2871 esac
2872 rm -f conftest.make
2873 fi
2874 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876 $as_echo "yes" >&6; }
2877   SET_MAKE=
2878 else
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881   SET_MAKE="MAKE=${MAKE-make}"
2882 fi
2883
2884 rm -rf .tst 2>/dev/null
2885 mkdir .tst 2>/dev/null
2886 if test -d .tst; then
2887   am__leading_dot=.
2888 else
2889   am__leading_dot=_
2890 fi
2891 rmdir .tst 2>/dev/null
2892
2893 # Check whether --enable-silent-rules was given.
2894 if test "${enable_silent_rules+set}" = set; then :
2895   enableval=$enable_silent_rules;
2896 fi
2897
2898 case $enable_silent_rules in # (((
2899   yes) AM_DEFAULT_VERBOSITY=0;;
2900    no) AM_DEFAULT_VERBOSITY=1;;
2901     *) AM_DEFAULT_VERBOSITY=1;;
2902 esac
2903 am_make=${MAKE-make}
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2905 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2906 if ${am_cv_make_support_nested_variables+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if $as_echo 'TRUE=$(BAR$(V))
2910 BAR0=false
2911 BAR1=true
2912 V=1
2913 am__doit:
2914         @$(TRUE)
2915 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2916   am_cv_make_support_nested_variables=yes
2917 else
2918   am_cv_make_support_nested_variables=no
2919 fi
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2922 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2923 if test $am_cv_make_support_nested_variables = yes; then
2924     AM_V='$(V)'
2925   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2926 else
2927   AM_V=$AM_DEFAULT_VERBOSITY
2928   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2929 fi
2930 AM_BACKSLASH='\'
2931
2932 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2933   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2934   # is not polluted with repeated "-I."
2935   am__isrc=' -I$(srcdir)'
2936   # test to see if srcdir already configured
2937   if test -f $srcdir/config.status; then
2938     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2939   fi
2940 fi
2941
2942 # test whether we have cygpath
2943 if test -z "$CYGPATH_W"; then
2944   if (cygpath --version) >/dev/null 2>/dev/null; then
2945     CYGPATH_W='cygpath -w'
2946   else
2947     CYGPATH_W=echo
2948   fi
2949 fi
2950
2951
2952 # Define the identity of the package.
2953
2954  PACKAGE=spamass-milter
2955  VERSION=0.4.0
2956
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2960 _ACEOF
2961
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define VERSION "$VERSION"
2965 _ACEOF
2966
2967 # Some tools Automake needs.
2968
2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983 # For better backward compatibility.  To be removed once Automake 1.9.x
2984 # dies out for good.  For more background, see:
2985 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2986 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2987 mkdir_p='$(MKDIR_P)'
2988
2989 # We need awk for the "check" target.  The system "awk" is bad on
2990 # some platforms.
2991 # Always define AMTAR for backward compatibility.  Yes, it's still used
2992 # in the wild :-(  We should find a proper way to deprecate it ...
2993 AMTAR='$${TAR-tar}'
2994
2995
2996 # We'll loop over all known methods to create a tar archive until one works.
2997 _am_tools='gnutar  pax cpio none'
2998
2999 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3000
3001
3002
3003
3004
3005
3006 # POSIX will say in a future version that running "rm -f" with no argument
3007 # is OK; and we want to be able to make that assumption in our Makefile
3008 # recipes.  So use an aggressive probe to check that the usage we want is
3009 # actually supported "in the wild" to an acceptable degree.
3010 # See automake bug#10828.
3011 # To make any issue more visible, cause the running configure to be aborted
3012 # by default if the 'rm' program in use doesn't match our expectations; the
3013 # user can still override this though.
3014 if rm -f && rm -fr && rm -rf; then : OK; else
3015   cat >&2 <<'END'
3016 Oops!
3017
3018 Your 'rm' program seems unable to run without file operands specified
3019 on the command line, even when the '-f' option is present.  This is contrary
3020 to the behaviour of most rm programs out there, and not conforming with
3021 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3022
3023 Please tell bug-automake@gnu.org about your system, including the value
3024 of your $PATH and any error possibly output before this message.  This
3025 can help us improve future automake versions.
3026
3027 END
3028   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3029     echo 'Configuration will proceed anyway, since you have set the' >&2
3030     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3031     echo >&2
3032   else
3033     cat >&2 <<'END'
3034 Aborting the configuration process, to ensure you take notice of the issue.
3035
3036 You can download and install GNU coreutils to get an 'rm' implementation
3037 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3038
3039 If you want to complete the configuration process using your problematic
3040 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3041 to "yes", and re-run configure.
3042
3043 END
3044     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3045   fi
3046 fi
3047
3048 # Checks for programs.
3049 ac_ext=cpp
3050 ac_cpp='$CXXCPP $CPPFLAGS'
3051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3054 if test -z "$CXX"; then
3055   if test -n "$CCC"; then
3056     CXX=$CCC
3057   else
3058     if test -n "$ac_tool_prefix"; then
3059   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3060   do
3061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CXX+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$CXX"; then
3069   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CXX=$ac_cv_prog_CXX
3089 if test -n "$CXX"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3091 $as_echo "$CXX" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098     test -n "$CXX" && break
3099   done
3100 fi
3101 if test -z "$CXX"; then
3102   ac_ct_CXX=$CXX
3103   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3104 do
3105   # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$ac_ct_CXX"; then
3113   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120     for ac_exec_ext in '' $ac_executable_extensions; do
3121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122     ac_cv_prog_ac_ct_CXX="$ac_prog"
3123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127   done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3133 if test -n "$ac_ct_CXX"; then
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3135 $as_echo "$ac_ct_CXX" >&6; }
3136 else
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142   test -n "$ac_ct_CXX" && break
3143 done
3144
3145   if test "x$ac_ct_CXX" = x; then
3146     CXX="g++"
3147   else
3148     case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154     CXX=$ac_ct_CXX
3155   fi
3156 fi
3157
3158   fi
3159 fi
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3162 set X $ac_compile
3163 ac_compiler=$2
3164 for ac_option in --version -v -V -qversion; do
3165   { { ac_try="$ac_compiler $ac_option >&5"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3173   ac_status=$?
3174   if test -s conftest.err; then
3175     sed '10a\
3176 ... rest of stderr output deleted ...
3177          10q' conftest.err >conftest.er1
3178     cat conftest.er1 >&5
3179   fi
3180   rm -f conftest.er1 conftest.err
3181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182   test $ac_status = 0; }
3183 done
3184
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 ac_clean_files_save=$ac_clean_files
3197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3198 # Try to create an executable without -o first, disregard a.out.
3199 # It will help us diagnose broken compilers, and finding out an intuition
3200 # of exeext.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3202 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3203 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3204
3205 # The possible output files:
3206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207
3208 ac_rmfiles=
3209 for ac_file in $ac_files
3210 do
3211   case $ac_file in
3212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214   esac
3215 done
3216 rm -f $ac_rmfiles
3217
3218 if { { ac_try="$ac_link_default"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225   (eval "$ac_link_default") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228   test $ac_status = 0; }; then :
3229   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3233 # Autoconf.
3234 for ac_file in $ac_files ''
3235 do
3236   test -f "$ac_file" || continue
3237   case $ac_file in
3238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3239         ;;
3240     [ab].out )
3241         # We found the default executable, but exeext='' is most
3242         # certainly right.
3243         break;;
3244     *.* )
3245         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3246         then :; else
3247            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248         fi
3249         # We set ac_cv_exeext here because the later test for it is not
3250         # safe: cross compilers may not add the suffix if given an `-o'
3251         # argument, so we may need to know it at that point already.
3252         # Even if this section looks crufty: it has the advantage of
3253         # actually working.
3254         break;;
3255     * )
3256         break;;
3257   esac
3258 done
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260
3261 else
3262   ac_file=''
3263 fi
3264 if test -z "$ac_file"; then :
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error 77 "C++ compiler cannot create executables
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3279 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281 $as_echo "$ac_file" >&6; }
3282 ac_exeext=$ac_cv_exeext
3283
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3287 $as_echo_n "checking for suffix of executables... " >&6; }
3288 if { { ac_try="$ac_link"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295   (eval "$ac_link") 2>&5
3296   ac_status=$?
3297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298   test $ac_status = 0; }; then :
3299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 # `rm'.
3303 for ac_file in conftest.exe conftest conftest.*; do
3304   test -f "$ac_file" || continue
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308           break;;
3309     * ) break;;
3310   esac
3311 done
3312 else
3313   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 fi
3318 rm -f conftest conftest$ac_cv_exeext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3320 $as_echo "$ac_cv_exeext" >&6; }
3321
3322 rm -f conftest.$ac_ext
3323 EXEEXT=$ac_cv_exeext
3324 ac_exeext=$EXEEXT
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h.  */
3327 #include <stdio.h>
3328 int
3329 main ()
3330 {
3331 FILE *f = fopen ("conftest.out", "w");
3332  return ferror (f) || fclose (f) != 0;
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 ac_clean_files="$ac_clean_files conftest.out"
3339 # Check that the compiler produces executables we can run.  If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 if test "$cross_compiling" != yes; then
3344   { { ac_try="$ac_link"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351   (eval "$ac_link") 2>&5
3352   ac_status=$?
3353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354   test $ac_status = 0; }
3355   if { ac_try='./conftest$ac_cv_exeext'
3356   { { case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362   (eval "$ac_try") 2>&5
3363   ac_status=$?
3364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365   test $ac_status = 0; }; }; then
3366     cross_compiling=no
3367   else
3368     if test "$cross_compiling" = maybe; then
3369         cross_compiling=yes
3370     else
3371         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot run C++ compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details" "$LINENO" 5; }
3376     fi
3377   fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3381
3382 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if ${ac_cv_objext+:} false; then :
3387   $as_echo_n "(cached) " >&6
3388 else
3389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.o conftest.obj
3401 if { { ac_try="$ac_compile"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408   (eval "$ac_compile") 2>&5
3409   ac_status=$?
3410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411   test $ac_status = 0; }; then :
3412   for ac_file in conftest.o conftest.obj conftest.*; do
3413   test -f "$ac_file" || continue;
3414   case $ac_file in
3415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3416     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3417        break;;
3418   esac
3419 done
3420 else
3421   $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of object files: cannot compile
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 fi
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3432 $as_echo "$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3434 ac_objext=$OBJEXT
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3436 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3437 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h.  */
3442
3443 int
3444 main ()
3445 {
3446 #ifndef __GNUC__
3447        choke me
3448 #endif
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_cxx_try_compile "$LINENO"; then :
3455   ac_compiler_gnu=yes
3456 else
3457   ac_compiler_gnu=no
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3461
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3464 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3466   GXX=yes
3467 else
3468   GXX=
3469 fi
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3473 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3474 if ${ac_cv_prog_cxx_g+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478    ac_cxx_werror_flag=yes
3479    ac_cv_prog_cxx_g=no
3480    CXXFLAGS="-g"
3481    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_cxx_try_compile "$LINENO"; then :
3493   ac_cv_prog_cxx_g=yes
3494 else
3495   CXXFLAGS=""
3496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h.  */
3498
3499 int
3500 main ()
3501 {
3502
3503   ;
3504   return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_cxx_try_compile "$LINENO"; then :
3508
3509 else
3510   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3511          CXXFLAGS="-g"
3512          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_cxx_try_compile "$LINENO"; then :
3524   ac_cv_prog_cxx_g=yes
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3534 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3535 if test "$ac_test_CXXFLAGS" = set; then
3536   CXXFLAGS=$ac_save_CXXFLAGS
3537 elif test $ac_cv_prog_cxx_g = yes; then
3538   if test "$GXX" = yes; then
3539     CXXFLAGS="-g -O2"
3540   else
3541     CXXFLAGS="-g"
3542   fi
3543 else
3544   if test "$GXX" = yes; then
3545     CXXFLAGS="-O2"
3546   else
3547     CXXFLAGS=
3548   fi
3549 fi
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 DEPDIR="${am__leading_dot}deps"
3556
3557 ac_config_commands="$ac_config_commands depfiles"
3558
3559
3560 am_make=${MAKE-make}
3561 cat > confinc << 'END'
3562 am__doit:
3563         @echo this is the am__doit target
3564 .PHONY: am__doit
3565 END
3566 # If we don't find an include directive, just comment out the code.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3568 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3569 am__include="#"
3570 am__quote=
3571 _am_result=none
3572 # First try GNU make style include.
3573 echo "include confinc" > confmf
3574 # Ignore all kinds of additional output from 'make'.
3575 case `$am_make -s -f confmf 2> /dev/null` in #(
3576 *the\ am__doit\ target*)
3577   am__include=include
3578   am__quote=
3579   _am_result=GNU
3580   ;;
3581 esac
3582 # Now try BSD make style include.
3583 if test "$am__include" = "#"; then
3584    echo '.include "confinc"' > confmf
3585    case `$am_make -s -f confmf 2> /dev/null` in #(
3586    *the\ am__doit\ target*)
3587      am__include=.include
3588      am__quote="\""
3589      _am_result=BSD
3590      ;;
3591    esac
3592 fi
3593
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3596 $as_echo "$_am_result" >&6; }
3597 rm -f confinc confmf
3598
3599 # Check whether --enable-dependency-tracking was given.
3600 if test "${enable_dependency_tracking+set}" = set; then :
3601   enableval=$enable_dependency_tracking;
3602 fi
3603
3604 if test "x$enable_dependency_tracking" != xno; then
3605   am_depcomp="$ac_aux_dir/depcomp"
3606   AMDEPBACKSLASH='\'
3607   am__nodep='_no'
3608 fi
3609  if test "x$enable_dependency_tracking" != xno; then
3610   AMDEP_TRUE=
3611   AMDEP_FALSE='#'
3612 else
3613   AMDEP_TRUE='#'
3614   AMDEP_FALSE=
3615 fi
3616
3617
3618
3619 depcc="$CXX"  am_compiler_list=
3620
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3622 $as_echo_n "checking dependency style of $depcc... " >&6; }
3623 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3624   $as_echo_n "(cached) " >&6
3625 else
3626   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3627   # We make a subdir and do the tests there.  Otherwise we can end up
3628   # making bogus files that we don't know about and never remove.  For
3629   # instance it was reported that on HP-UX the gcc test will end up
3630   # making a dummy file named 'D' -- because '-MD' means "put the output
3631   # in D".
3632   rm -rf conftest.dir
3633   mkdir conftest.dir
3634   # Copy depcomp to subdir because otherwise we won't find it if we're
3635   # using a relative directory.
3636   cp "$am_depcomp" conftest.dir
3637   cd conftest.dir
3638   # We will build objects and dependencies in a subdirectory because
3639   # it helps to detect inapplicable dependency modes.  For instance
3640   # both Tru64's cc and ICC support -MD to output dependencies as a
3641   # side effect of compilation, but ICC will put the dependencies in
3642   # the current directory while Tru64 will put them in the object
3643   # directory.
3644   mkdir sub
3645
3646   am_cv_CXX_dependencies_compiler_type=none
3647   if test "$am_compiler_list" = ""; then
3648      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3649   fi
3650   am__universal=false
3651   case " $depcc " in #(
3652      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3653      esac
3654
3655   for depmode in $am_compiler_list; do
3656     # Setup a source with many dependencies, because some compilers
3657     # like to wrap large dependency lists on column 80 (with \), and
3658     # we should not choose a depcomp mode which is confused by this.
3659     #
3660     # We need to recreate these files for each test, as the compiler may
3661     # overwrite some of them when testing with obscure command lines.
3662     # This happens at least with the AIX C compiler.
3663     : > sub/conftest.c
3664     for i in 1 2 3 4 5 6; do
3665       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3666       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3667       # Solaris 10 /bin/sh.
3668       echo '/* dummy */' > sub/conftst$i.h
3669     done
3670     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3671
3672     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3673     # mode.  It turns out that the SunPro C++ compiler does not properly
3674     # handle '-M -o', and we need to detect this.  Also, some Intel
3675     # versions had trouble with output in subdirs.
3676     am__obj=sub/conftest.${OBJEXT-o}
3677     am__minus_obj="-o $am__obj"
3678     case $depmode in
3679     gcc)
3680       # This depmode causes a compiler race in universal mode.
3681       test "$am__universal" = false || continue
3682       ;;
3683     nosideeffect)
3684       # After this tag, mechanisms are not by side-effect, so they'll
3685       # only be used when explicitly requested.
3686       if test "x$enable_dependency_tracking" = xyes; then
3687         continue
3688       else
3689         break
3690       fi
3691       ;;
3692     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3693       # This compiler won't grok '-c -o', but also, the minuso test has
3694       # not run yet.  These depmodes are late enough in the game, and
3695       # so weak that their functioning should not be impacted.
3696       am__obj=conftest.${OBJEXT-o}
3697       am__minus_obj=
3698       ;;
3699     none) break ;;
3700     esac
3701     if depmode=$depmode \
3702        source=sub/conftest.c object=$am__obj \
3703        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3704        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3705          >/dev/null 2>conftest.err &&
3706        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3707        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3708        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3709        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3710       # icc doesn't choke on unknown options, it will just issue warnings
3711       # or remarks (even with -Werror).  So we grep stderr for any message
3712       # that says an option was ignored or not supported.
3713       # When given -MP, icc 7.0 and 7.1 complain thusly:
3714       #   icc: Command line warning: ignoring option '-M'; no argument required
3715       # The diagnosis changed in icc 8.0:
3716       #   icc: Command line remark: option '-MP' not supported
3717       if (grep 'ignoring option' conftest.err ||
3718           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3719         am_cv_CXX_dependencies_compiler_type=$depmode
3720         break
3721       fi
3722     fi
3723   done
3724
3725   cd ..
3726   rm -rf conftest.dir
3727 else
3728   am_cv_CXX_dependencies_compiler_type=none
3729 fi
3730
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3733 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3734 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3735
3736  if
3737   test "x$enable_dependency_tracking" != xno \
3738   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3739   am__fastdepCXX_TRUE=
3740   am__fastdepCXX_FALSE='#'
3741 else
3742   am__fastdepCXX_TRUE='#'
3743   am__fastdepCXX_FALSE=
3744 fi
3745
3746
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 if test -n "$ac_tool_prefix"; then
3753   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_CC+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   if test -n "$CC"; then
3761   ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766   IFS=$as_save_IFS
3767   test -z "$as_dir" && as_dir=.
3768     for ac_exec_ext in '' $ac_executable_extensions; do
3769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772     break 2
3773   fi
3774 done
3775   done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3787 fi
3788
3789
3790 fi
3791 if test -z "$ac_cv_prog_CC"; then
3792   ac_ct_CC=$CC
3793   # Extract the first word of "gcc", so it can be a program name with args.
3794 set dummy gcc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   if test -n "$ac_ct_CC"; then
3801   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810     ac_cv_prog_ac_ct_CC="gcc"
3811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812     break 2
3813   fi
3814 done
3815   done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821 if test -n "$ac_ct_CC"; then
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823 $as_echo "$ac_ct_CC" >&6; }
3824 else
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829   if test "x$ac_ct_CC" = x; then
3830     CC=""
3831   else
3832     case $cross_compiling:$ac_tool_warned in
3833 yes:)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836 ac_tool_warned=yes ;;
3837 esac
3838     CC=$ac_ct_CC
3839   fi
3840 else
3841   CC="$ac_cv_prog_CC"
3842 fi
3843
3844 if test -z "$CC"; then
3845           if test -n "$ac_tool_prefix"; then
3846     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3847 set dummy ${ac_tool_prefix}cc; ac_word=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if ${ac_cv_prog_CC+:} false; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   if test -n "$CC"; then
3854   ac_cv_prog_CC="$CC" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861     for ac_exec_ext in '' $ac_executable_extensions; do
3862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863     ac_cv_prog_CC="${ac_tool_prefix}cc"
3864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868   done
3869 IFS=$as_save_IFS
3870
3871 fi
3872 fi
3873 CC=$ac_cv_prog_CC
3874 if test -n "$CC"; then
3875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3876 $as_echo "$CC" >&6; }
3877 else
3878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 fi
3881
3882
3883   fi
3884 fi
3885 if test -z "$CC"; then
3886   # Extract the first word of "cc", so it can be a program name with args.
3887 set dummy cc; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_CC+:} false; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   if test -n "$CC"; then
3894   ac_cv_prog_CC="$CC" # Let the user override the test.
3895 else
3896   ac_prog_rejected=no
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902     for ac_exec_ext in '' $ac_executable_extensions; do
3903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3905        ac_prog_rejected=yes
3906        continue
3907      fi
3908     ac_cv_prog_CC="cc"
3909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913   done
3914 IFS=$as_save_IFS
3915
3916 if test $ac_prog_rejected = yes; then
3917   # We found a bogon in the path, so make sure we never use it.
3918   set dummy $ac_cv_prog_CC
3919   shift
3920   if test $# != 0; then
3921     # We chose a different compiler from the bogus one.
3922     # However, it has the same basename, so the bogon will be chosen
3923     # first if we set CC to just the basename; use the full file name.
3924     shift
3925     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3926   fi
3927 fi
3928 fi
3929 fi
3930 CC=$ac_cv_prog_CC
3931 if test -n "$CC"; then
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3933 $as_echo "$CC" >&6; }
3934 else
3935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3937 fi
3938
3939
3940 fi
3941 if test -z "$CC"; then
3942   if test -n "$ac_tool_prefix"; then
3943   for ac_prog in cl.exe
3944   do
3945     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -n "$CC"; then
3953   ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960     for ac_exec_ext in '' $ac_executable_extensions; do
3961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967   done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 CC=$ac_cv_prog_CC
3973 if test -n "$CC"; then
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3976 else
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982     test -n "$CC" && break
3983   done
3984 fi
3985 if test -z "$CC"; then
3986   ac_ct_CC=$CC
3987   for ac_prog in cl.exe
3988 do
3989   # Extract the first word of "$ac_prog", so it can be a program name with args.
3990 set dummy $ac_prog; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3994   $as_echo_n "(cached) " >&6
3995 else
3996   if test -n "$ac_ct_CC"; then
3997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004     for ac_exec_ext in '' $ac_executable_extensions; do
4005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_ac_ct_CC="$ac_prog"
4007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011   done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019 $as_echo "$ac_ct_CC" >&6; }
4020 else
4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 fi
4024
4025
4026   test -n "$ac_ct_CC" && break
4027 done
4028
4029   if test "x$ac_ct_CC" = x; then
4030     CC=""
4031   else
4032     case $cross_compiling:$ac_tool_warned in
4033 yes:)
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4036 ac_tool_warned=yes ;;
4037 esac
4038     CC=$ac_ct_CC
4039   fi
4040 fi
4041
4042 fi
4043
4044
4045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "no acceptable C compiler found in \$PATH
4048 See \`config.log' for more details" "$LINENO" 5; }
4049
4050 # Provide some information about the compiler.
4051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4052 set X $ac_compile
4053 ac_compiler=$2
4054 for ac_option in --version -v -V -qversion; do
4055   { { ac_try="$ac_compiler $ac_option >&5"
4056 case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4063   ac_status=$?
4064   if test -s conftest.err; then
4065     sed '10a\
4066 ... rest of stderr output deleted ...
4067          10q' conftest.err >conftest.er1
4068     cat conftest.er1 >&5
4069   fi
4070   rm -f conftest.er1 conftest.err
4071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072   test $ac_status = 0; }
4073 done
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4076 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4077 if ${ac_cv_c_compiler_gnu+:} false; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086 #ifndef __GNUC__
4087        choke me
4088 #endif
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095   ac_compiler_gnu=yes
4096 else
4097   ac_compiler_gnu=no
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4101
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4104 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4105 if test $ac_compiler_gnu = yes; then
4106   GCC=yes
4107 else
4108   GCC=
4109 fi
4110 ac_test_CFLAGS=${CFLAGS+set}
4111 ac_save_CFLAGS=$CFLAGS
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4113 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4114 if ${ac_cv_prog_cc_g+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   ac_save_c_werror_flag=$ac_c_werror_flag
4118    ac_c_werror_flag=yes
4119    ac_cv_prog_cc_g=no
4120    CFLAGS="-g"
4121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133   ac_cv_prog_cc_g=yes
4134 else
4135   CFLAGS=""
4136       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148
4149 else
4150   ac_c_werror_flag=$ac_save_c_werror_flag
4151          CFLAGS="-g"
4152          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154
4155 int
4156 main ()
4157 {
4158
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164   ac_cv_prog_cc_g=yes
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171    ac_c_werror_flag=$ac_save_c_werror_flag
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4174 $as_echo "$ac_cv_prog_cc_g" >&6; }
4175 if test "$ac_test_CFLAGS" = set; then
4176   CFLAGS=$ac_save_CFLAGS
4177 elif test $ac_cv_prog_cc_g = yes; then
4178   if test "$GCC" = yes; then
4179     CFLAGS="-g -O2"
4180   else
4181     CFLAGS="-g"
4182   fi
4183 else
4184   if test "$GCC" = yes; then
4185     CFLAGS="-O2"
4186   else
4187     CFLAGS=
4188   fi
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4191 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4192 if ${ac_cv_prog_cc_c89+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   ac_cv_prog_cc_c89=no
4196 ac_save_CC=$CC
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h.  */
4199 #include <stdarg.h>
4200 #include <stdio.h>
4201 struct stat;
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4206      char **p;
4207      int i;
4208 {
4209   return p[i];
4210 }
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4212 {
4213   char *s;
4214   va_list v;
4215   va_start (v,p);
4216   s = g (p, va_arg (v,int));
4217   va_end (v);
4218   return s;
4219 }
4220
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4222    function prototypes and stuff, but not '\xHH' hex character constants.
4223    These don't provoke an error unfortunately, instead are silently treated
4224    as 'x'.  The following induces an error, until -std is added to get
4225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4226    array size at least.  It's necessary to write '\x00'==0 to get something
4227    that's true only with -std.  */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4229
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231    inside strings and character constants.  */
4232 #define FOO(x) 'x'
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4234
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4239 int argc;
4240 char **argv;
4241 int
4242 main ()
4243 {
4244 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252   CC="$ac_save_CC $ac_arg"
4253   if ac_fn_c_try_compile "$LINENO"; then :
4254   ac_cv_prog_cc_c89=$ac_arg
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext
4257   test "x$ac_cv_prog_cc_c89" != "xno" && break
4258 done
4259 rm -f conftest.$ac_ext
4260 CC=$ac_save_CC
4261
4262 fi
4263 # AC_CACHE_VAL
4264 case "x$ac_cv_prog_cc_c89" in
4265   x)
4266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4267 $as_echo "none needed" >&6; } ;;
4268   xno)
4269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 $as_echo "unsupported" >&6; } ;;
4271   *)
4272     CC="$CC $ac_cv_prog_cc_c89"
4273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4275 esac
4276 if test "x$ac_cv_prog_cc_c89" != xno; then :
4277
4278 fi
4279
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4292 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4293 if ${am_cv_prog_cc_c_o+:} false; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307   # Make sure it works both with $CC and with simple cc.
4308   # Following AC_PROG_CC_C_O, we do the test twice because some
4309   # compilers refuse to overwrite an existing .o file with -o,
4310   # though they will create one.
4311   am_cv_prog_cc_c_o=yes
4312   for am_i in 1 2; do
4313     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4314    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4315    ac_status=$?
4316    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317    (exit $ac_status); } \
4318          && test -f conftest2.$ac_objext; then
4319       : OK
4320     else
4321       am_cv_prog_cc_c_o=no
4322       break
4323     fi
4324   done
4325   rm -f core conftest*
4326   unset am_i
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4329 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4330 if test "$am_cv_prog_cc_c_o" != yes; then
4331    # Losing compiler, so override with the script.
4332    # FIXME: It is wrong to rewrite CC.
4333    # But if we don't then we get into trouble of one sort or another.
4334    # A longer-term fix would be to have automake use am__CC in this case,
4335    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4336    CC="$am_aux_dir/compile $CC"
4337 fi
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345 depcc="$CC"   am_compiler_list=
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348 $as_echo_n "checking dependency style of $depcc... " >&6; }
4349 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353   # We make a subdir and do the tests there.  Otherwise we can end up
4354   # making bogus files that we don't know about and never remove.  For
4355   # instance it was reported that on HP-UX the gcc test will end up
4356   # making a dummy file named 'D' -- because '-MD' means "put the output
4357   # in D".
4358   rm -rf conftest.dir
4359   mkdir conftest.dir
4360   # Copy depcomp to subdir because otherwise we won't find it if we're
4361   # using a relative directory.
4362   cp "$am_depcomp" conftest.dir
4363   cd conftest.dir
4364   # We will build objects and dependencies in a subdirectory because
4365   # it helps to detect inapplicable dependency modes.  For instance
4366   # both Tru64's cc and ICC support -MD to output dependencies as a
4367   # side effect of compilation, but ICC will put the dependencies in
4368   # the current directory while Tru64 will put them in the object
4369   # directory.
4370   mkdir sub
4371
4372   am_cv_CC_dependencies_compiler_type=none
4373   if test "$am_compiler_list" = ""; then
4374      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4375   fi
4376   am__universal=false
4377   case " $depcc " in #(
4378      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4379      esac
4380
4381   for depmode in $am_compiler_list; do
4382     # Setup a source with many dependencies, because some compilers
4383     # like to wrap large dependency lists on column 80 (with \), and
4384     # we should not choose a depcomp mode which is confused by this.
4385     #
4386     # We need to recreate these files for each test, as the compiler may
4387     # overwrite some of them when testing with obscure command lines.
4388     # This happens at least with the AIX C compiler.
4389     : > sub/conftest.c
4390     for i in 1 2 3 4 5 6; do
4391       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4392       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4393       # Solaris 10 /bin/sh.
4394       echo '/* dummy */' > sub/conftst$i.h
4395     done
4396     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4397
4398     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4399     # mode.  It turns out that the SunPro C++ compiler does not properly
4400     # handle '-M -o', and we need to detect this.  Also, some Intel
4401     # versions had trouble with output in subdirs.
4402     am__obj=sub/conftest.${OBJEXT-o}
4403     am__minus_obj="-o $am__obj"
4404     case $depmode in
4405     gcc)
4406       # This depmode causes a compiler race in universal mode.
4407       test "$am__universal" = false || continue
4408       ;;
4409     nosideeffect)
4410       # After this tag, mechanisms are not by side-effect, so they'll
4411       # only be used when explicitly requested.
4412       if test "x$enable_dependency_tracking" = xyes; then
4413         continue
4414       else
4415         break
4416       fi
4417       ;;
4418     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4419       # This compiler won't grok '-c -o', but also, the minuso test has
4420       # not run yet.  These depmodes are late enough in the game, and
4421       # so weak that their functioning should not be impacted.
4422       am__obj=conftest.${OBJEXT-o}
4423       am__minus_obj=
4424       ;;
4425     none) break ;;
4426     esac
4427     if depmode=$depmode \
4428        source=sub/conftest.c object=$am__obj \
4429        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4430        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4431          >/dev/null 2>conftest.err &&
4432        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4433        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4434        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4435        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4436       # icc doesn't choke on unknown options, it will just issue warnings
4437       # or remarks (even with -Werror).  So we grep stderr for any message
4438       # that says an option was ignored or not supported.
4439       # When given -MP, icc 7.0 and 7.1 complain thusly:
4440       #   icc: Command line warning: ignoring option '-M'; no argument required
4441       # The diagnosis changed in icc 8.0:
4442       #   icc: Command line remark: option '-MP' not supported
4443       if (grep 'ignoring option' conftest.err ||
4444           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4445         am_cv_CC_dependencies_compiler_type=$depmode
4446         break
4447       fi
4448     fi
4449   done
4450
4451   cd ..
4452   rm -rf conftest.dir
4453 else
4454   am_cv_CC_dependencies_compiler_type=none
4455 fi
4456
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4459 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4460 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4461
4462  if
4463   test "x$enable_dependency_tracking" != xno \
4464   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4465   am__fastdepCC_TRUE=
4466   am__fastdepCC_FALSE='#'
4467 else
4468   am__fastdepCC_TRUE='#'
4469   am__fastdepCC_FALSE=
4470 fi
4471
4472
4473
4474   ansi=
4475   if test -z "$ansi"; then
4476     msg="for C compiler warning flags"
4477   else
4478     msg="for C compiler warning and ANSI conformance flags"
4479   fi
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4481 $as_echo_n "checking $msg... " >&6; }
4482 if ${vl_cv_prog_cc_warnings+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485
4486     if test -n "$CC"; then
4487       cat > conftest.c <<EOF
4488 int main(int argc, char **argv) { return 0; }
4489 EOF
4490
4491             if test "$GCC" = "yes"; then
4492         if test -z "$ansi"; then
4493           vl_cv_prog_cc_warnings="-Wall"
4494         else
4495           vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
4496         fi
4497
4498
4499             elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4500            $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4501            test -f conftest.o; then
4502         if test -z "$ansi"; then
4503           vl_cv_prog_cc_warnings="-v"
4504         else
4505           vl_cv_prog_cc_warnings="-v -Xc"
4506         fi
4507
4508             elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4509            $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4510            test -f conftest.o; then
4511         if test -z "$ansi"; then
4512           vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4513         else
4514           vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4515         fi
4516
4517             elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4518            $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4519            test -f conftest.o; then
4520         if test -z "$ansi"; then
4521           vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4522         else
4523           vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4524         fi
4525
4526             elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4527            $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4528            test -f conftest.o; then
4529         if test -z "$ansi"; then
4530           vl_cv_prog_cc_warnings="-fullwarn"
4531         else
4532           vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4533         fi
4534
4535             elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4536            $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4537            test -f conftest.o; then
4538         if test -z "$ansi"; then
4539           vl_cv_prog_cc_warnings="+w1"
4540         else
4541           vl_cv_prog_cc_warnings="+w1 -Aa"
4542         fi
4543
4544             elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4545            $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4546            test -f conftest.o; then
4547         if test -z "$ansi"; then
4548           vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4549         else
4550           vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4551         fi
4552
4553             elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4554            $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4555            test -f conftest.o; then
4556         if test -z "$ansi"; then
4557           vl_cv_prog_cc_warnings="-h msglevel 2"
4558         else
4559           vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4560         fi
4561
4562             elif $CC -V 2>&1 | grep -i "Intel(R) C++ Compiler" > /dev/null 2>&1 &&
4563            $CC -c -Wall -wd981,1418,193 conftest.c > /dev/null 2>&1 &&
4564            test -f conftest.o; then
4565         if test -z "$ansi"; then
4566           vl_cv_prog_cc_warnings="-Wall -wd981,1418,193"
4567         else
4568           vl_cv_prog_cc_warnings="-Wall -wd981,1418,193 -Xc"
4569         fi
4570
4571       fi
4572       rm -f conftest.*
4573     fi
4574     if test -n "$vl_cv_prog_cc_warnings"; then
4575       VL_WARN_CFLAGS="$vl_cv_prog_cc_warnings"
4576     else
4577       vl_cv_prog_cc_warnings="unknown"
4578     fi
4579
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4582 $as_echo "$vl_cv_prog_cc_warnings" >&6; }
4583
4584 CFLAGS="$CFLAGS $VL_WARN_CFLAGS"
4585 CXXFLAGS="$CXXFLAGS $VL_WARN_CFLAGS"
4586 ac_ext=cpp
4587 ac_cpp='$CXXCPP $CPPFLAGS'
4588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4591
4592
4593 # Enable useable exception handler if it exists.
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5
4596 $as_echo_n "checking whether the compiler supports exceptions... " >&6; }
4597 if ${ac_cv_cxx_exceptions+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600
4601  ac_ext=cpp
4602 ac_cpp='$CXXCPP $CPPFLAGS'
4603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4606
4607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609
4610 int
4611 main ()
4612 {
4613 try { throw  1; } catch (int i) { return i; }
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619   ac_cv_cxx_exceptions=yes
4620 else
4621   ac_cv_cxx_exceptions=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624  ac_ext=cpp
4625 ac_cpp='$CXXCPP $CPPFLAGS'
4626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629
4630
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5
4633 $as_echo "$ac_cv_cxx_exceptions" >&6; }
4634 if test "$ac_cv_cxx_exceptions" = yes; then
4635
4636 $as_echo "#define HAVE_EXCEPTIONS /**/" >>confdefs.h
4637
4638 fi
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
4641 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
4642 if ${ac_cv_cxx_namespaces+:} false; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645
4646  ac_ext=cpp
4647 ac_cpp='$CXXCPP $CPPFLAGS'
4648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4651
4652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 namespace Outer { namespace Inner { int i = 0; }}
4655 int
4656 main ()
4657 {
4658 using namespace Outer::Inner; return i;
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_cxx_try_compile "$LINENO"; then :
4664   ac_cv_cxx_namespaces=yes
4665 else
4666   ac_cv_cxx_namespaces=no
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669  ac_ext=cpp
4670 ac_cpp='$CXXCPP $CPPFLAGS'
4671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4674
4675
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
4678 $as_echo "$ac_cv_cxx_namespaces" >&6; }
4679 if test "$ac_cv_cxx_namespaces" = yes; then
4680
4681 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
4682
4683 fi
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has __gnu_cxx::__verbose_terminate_handler" >&5
4686 $as_echo_n "checking whether the compiler has __gnu_cxx::__verbose_terminate_handler... " >&6; }
4687 if ${ac_cv_verbose_terminate_handler+:} false; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690
4691
4692
4693
4694   ac_ext=cpp
4695 ac_cpp='$CXXCPP $CPPFLAGS'
4696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4699
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #include <exception>
4703 int
4704 main ()
4705 {
4706 std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_cxx_try_compile "$LINENO"; then :
4712   ac_cv_verbose_terminate_handler=yes
4713 else
4714   ac_cv_verbose_terminate_handler=no
4715
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718   ac_ext=cpp
4719 ac_cpp='$CXXCPP $CPPFLAGS'
4720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4723
4724
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_verbose_terminate_handler" >&5
4727 $as_echo "$ac_cv_verbose_terminate_handler" >&6; }
4728 if test "$ac_cv_verbose_terminate_handler" = yes; then
4729
4730 $as_echo "#define HAVE_VERBOSE_TERMINATE_HANDLER /**/" >>confdefs.h
4731
4732 fi
4733
4734
4735 # Try and disable all inlining; gdb shows the inlined function in a
4736 # stack trace and you lose the caller's frame.  Bad for debugging.
4737
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-default-inline" >&5
4739 $as_echo_n "checking for -fno-default-inline... " >&6; }
4740   if ${pike_cv_option_fno_default_inline+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743
4744     OLD_CPPFLAGS="$CPPFLAGS"
4745     CPPFLAGS="$OLD_CPPFLAGS -fno-default-inline"
4746     old_ac_link="$ac_link"
4747     ac_link="$old_ac_link 2>conftezt.out.2"
4748     if test "$cross_compiling" = yes; then :
4749
4750       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 int
4754 main ()
4755 {
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_cxx_try_link "$LINENO"; then :
4762   pike_cv_option_fno_default_inline=yes
4763 else
4764   pike_cv_option_fno_default_inline=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext \
4767     conftest$ac_exeext conftest.$ac_ext
4768
4769 else
4770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h.  */
4772
4773       int foo;
4774       int main(int argc, char **argv)
4775       {
4776         /* The following code triggs gcc:s generation of aline opcodes,
4777          * which some versions of as does not support.
4778          */
4779         if (argc > 0) argc = 0;
4780         return argc;
4781       }
4782
4783 _ACEOF
4784 if ac_fn_cxx_try_run "$LINENO"; then :
4785   pike_cv_option_fno_default_inline=yes
4786 else
4787   pike_cv_option_fno_default_inline=no
4788 fi
4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4790   conftest.$ac_objext conftest.beam conftest.$ac_ext
4791 fi
4792
4793     if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
4794       pike_cv_option_fno_default_inline=no
4795     elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
4796       # cc/HPUX says the following regarding -q64:
4797       #
4798       # cc: warning 422: Unknown option "6" ignored.
4799       # cc: warning 422: Unknown option "4" ignored.
4800       pike_cv_option_fno_default_inline=no
4801     elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
4802       # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
4803       #
4804       # cc1: warning:
4805       # ***
4806       # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
4807       # ***
4808       pike_cv_option_fno_default_inline=no
4809     elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
4810       # cc/AIX says the following regarding +O3:
4811       #
4812       # cc: 1501-228 input file +O3 not found
4813       pike_cv_option_fno_default_inline=no
4814     elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
4815       # gcc/AIX says the following regarding -fpic:
4816       #
4817       # cc1: warning: -fpic ignored (all code is position independent)
4818       pike_cv_option_fno_default_inline=no
4819     else :; fi
4820     rm conftezt.out.2
4821     CPPFLAGS="$OLD_CPPFLAGS"
4822     ac_link="$old_ac_link"
4823
4824 fi
4825
4826
4827   if test x"$pike_cv_option_fno_default_inline" = "xyes" ; then
4828     CXXFLAGS="$CXXFLAGS -fno-default-inline"
4829     case "CXXFLAGS" in
4830       OPTIMIZE)
4831         CFLAGS="$CFLAGS -fno-default-inline"
4832       ;;
4833     esac
4834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835 $as_echo "yes" >&6; }
4836
4837   else
4838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4840
4841   fi
4842
4843
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-inline" >&5
4845 $as_echo_n "checking for -fno-inline... " >&6; }
4846   if ${pike_cv_option_fno_inline+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849
4850     OLD_CPPFLAGS="$CPPFLAGS"
4851     CPPFLAGS="$OLD_CPPFLAGS -fno-inline"
4852     old_ac_link="$ac_link"
4853     ac_link="$old_ac_link 2>conftezt.out.2"
4854     if test "$cross_compiling" = yes; then :
4855
4856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h.  */
4858
4859 int
4860 main ()
4861 {
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 if ac_fn_cxx_try_link "$LINENO"; then :
4868   pike_cv_option_fno_inline=yes
4869 else
4870   pike_cv_option_fno_inline=no
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext \
4873     conftest$ac_exeext conftest.$ac_ext
4874
4875 else
4876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h.  */
4878
4879       int foo;
4880       int main(int argc, char **argv)
4881       {
4882         /* The following code triggs gcc:s generation of aline opcodes,
4883          * which some versions of as does not support.
4884          */
4885         if (argc > 0) argc = 0;
4886         return argc;
4887       }
4888
4889 _ACEOF
4890 if ac_fn_cxx_try_run "$LINENO"; then :
4891   pike_cv_option_fno_inline=yes
4892 else
4893   pike_cv_option_fno_inline=no
4894 fi
4895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4896   conftest.$ac_objext conftest.beam conftest.$ac_ext
4897 fi
4898
4899     if grep -i 'unrecognized option' <conftezt.out.2 >/dev/null; then
4900       pike_cv_option_fno_inline=no
4901     elif grep -i 'unknown option' <conftezt.out.2 >/dev/null; then
4902       # cc/HPUX says the following regarding -q64:
4903       #
4904       # cc: warning 422: Unknown option "6" ignored.
4905       # cc: warning 422: Unknown option "4" ignored.
4906       pike_cv_option_fno_inline=no
4907     elif grep -i 'optimizer bugs' <conftezt.out.2 >/dev/null; then
4908       # gcc/FreeBSD-4.6/alpha says the following regarding -O2:
4909       #
4910       # cc1: warning:
4911       # ***
4912       # ***     The -O2 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM
4913       # ***
4914       pike_cv_option_fno_inline=no
4915     elif grep -i 'not found' <conftezt.out.2 >/dev/null; then
4916       # cc/AIX says the following regarding +O3:
4917       #
4918       # cc: 1501-228 input file +O3 not found
4919       pike_cv_option_fno_inline=no
4920     elif grep -i 'ignored' <conftezt.out.2 >/dev/null; then
4921       # gcc/AIX says the following regarding -fpic:
4922       #
4923       # cc1: warning: -fpic ignored (all code is position independent)
4924       pike_cv_option_fno_inline=no
4925     else :; fi
4926     rm conftezt.out.2
4927     CPPFLAGS="$OLD_CPPFLAGS"
4928     ac_link="$old_ac_link"
4929
4930 fi
4931
4932
4933   if test x"$pike_cv_option_fno_inline" = "xyes" ; then
4934     CXXFLAGS="$CXXFLAGS -fno-inline"
4935     case "CXXFLAGS" in
4936       OPTIMIZE)
4937         CFLAGS="$CFLAGS -fno-inline"
4938       ;;
4939     esac
4940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 $as_echo "yes" >&6; }
4942
4943   else
4944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946
4947   fi
4948
4949
4950 #PIKE_INCLUDE_PATHS
4951 #PIKE_LIBRARY_PATHS
4952
4953 # Search for spamc
4954 # Extract the first word of "spamc", so it can be a program name with args.
4955 set dummy spamc; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_path_SPAMC+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   case $SPAMC in
4962   [\\/]* | ?:[\\/]*)
4963   ac_cv_path_SPAMC="$SPAMC" # Let the user override the test with a path.
4964   ;;
4965   *)
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_path_SPAMC="$as_dir/$ac_word$ac_exec_ext"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981   ;;
4982 esac
4983 fi
4984 SPAMC=$ac_cv_path_SPAMC
4985 if test -n "$SPAMC"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPAMC" >&5
4987 $as_echo "$SPAMC" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993
4994 if test "x$SPAMC" = x ; then
4995    as_fn_error $? "Spamc not found.  Is SpamAssassin installed?" "$LINENO" 5
4996 fi
4997
4998
4999 cat >>confdefs.h <<_ACEOF
5000 #define SPAMC "$SPAMC"
5001 _ACEOF
5002
5003
5004 # Search for sendmail
5005 # Extract the first word of "sendmail", so it can be a program name with args.
5006 set dummy sendmail; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_path_SENDMAIL+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   case $SENDMAIL in
5013   [\\/]* | ?:[\\/]*)
5014   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5015   ;;
5016   *)
5017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 as_dummy="$PATH:/usr/sbin:/usr/lib"
5019 for as_dir in $as_dummy
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023     for ac_exec_ext in '' $ac_executable_extensions; do
5024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030   done
5031 IFS=$as_save_IFS
5032
5033   ;;
5034 esac
5035 fi
5036 SENDMAIL=$ac_cv_path_SENDMAIL
5037 if test -n "$SENDMAIL"; then
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
5039 $as_echo "$SENDMAIL" >&6; }
5040 else
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046 if test "x$SENDMAIL" = x ; then
5047    as_fn_error $? "Sendmail not found.  Check your PATH variable" "$LINENO" 5
5048 fi
5049
5050
5051 cat >>confdefs.h <<_ACEOF
5052 #define SENDMAIL "$SENDMAIL"
5053 _ACEOF
5054
5055
5056 # Check nroff and the options it supports
5057 for ac_prog in nroff
5058 do
5059   # Extract the first word of "$ac_prog", so it can be a program name with args.
5060 set dummy $ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_NROFF+:} false; then :
5064   $as_echo_n "(cached) " >&6
5065 else
5066   if test -n "$NROFF"; then
5067   ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074     for ac_exec_ext in '' $ac_executable_extensions; do
5075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076     ac_cv_prog_NROFF="$ac_prog"
5077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081   done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 NROFF=$ac_cv_prog_NROFF
5087 if test -n "$NROFF"; then
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5089 $as_echo "$NROFF" >&6; }
5090 else
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095
5096   test -n "$NROFF" && break
5097 done
5098
5099
5100 MDOC=no
5101 if test "x$NROFF" != x; then
5102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdoc nroff macros" >&5
5103 $as_echo_n "checking for mdoc nroff macros... " >&6; }
5104     if ${ac_cv_mdoc+:} false; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107
5108     nroff -mdoc < /dev/null > /dev/null 2>&1
5109     if test $? = 0; then
5110         ac_cv_mdoc=yes
5111     else
5112         ac_cv_mdoc=no
5113     fi
5114
5115 fi
5116
5117     MDOC=$ac_cv_mdoc
5118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MDOC" >&5
5119 $as_echo "$MDOC" >&6; }
5120 fi
5121
5122  if test $MDOC = yes; then
5123   HAVE_MDOC_TRUE=
5124   HAVE_MDOC_FALSE='#'
5125 else
5126   HAVE_MDOC_TRUE='#'
5127   HAVE_MDOC_FALSE=
5128 fi
5129
5130
5131 # Search for pthreads, and make them the default (have to do it here else
5132 # the -lmilter check will fail to link)
5133 # Make sure we can run config.sub.
5134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5135   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5138 $as_echo_n "checking build system type... " >&6; }
5139 if ${ac_cv_build+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   ac_build_alias=$build_alias
5143 test "x$ac_build_alias" = x &&
5144   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5145 test "x$ac_build_alias" = x &&
5146   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5148   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5149
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5152 $as_echo "$ac_cv_build" >&6; }
5153 case $ac_cv_build in
5154 *-*-*) ;;
5155 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5156 esac
5157 build=$ac_cv_build
5158 ac_save_IFS=$IFS; IFS='-'
5159 set x $ac_cv_build
5160 shift
5161 build_cpu=$1
5162 build_vendor=$2
5163 shift; shift
5164 # Remember, the first character of IFS is used to create $*,
5165 # except with old shells:
5166 build_os=$*
5167 IFS=$ac_save_IFS
5168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5169
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5172 $as_echo_n "checking host system type... " >&6; }
5173 if ${ac_cv_host+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if test "x$host_alias" = x; then
5177   ac_cv_host=$ac_cv_build
5178 else
5179   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5180     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5181 fi
5182
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5185 $as_echo "$ac_cv_host" >&6; }
5186 case $ac_cv_host in
5187 *-*-*) ;;
5188 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5189 esac
5190 host=$ac_cv_host
5191 ac_save_IFS=$IFS; IFS='-'
5192 set x $ac_cv_host
5193 shift
5194 host_cpu=$1
5195 host_vendor=$2
5196 shift; shift
5197 # Remember, the first character of IFS is used to create $*,
5198 # except with old shells:
5199 host_os=$*
5200 IFS=$ac_save_IFS
5201 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5202
5203
5204
5205
5206
5207
5208 ac_ext=c
5209 ac_cpp='$CPP $CPPFLAGS'
5210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214 acx_pthread_ok=no
5215
5216 # We used to check for pthread.h first, but this fails if pthread.h
5217 # requires special compiler flags (e.g. on True64 or Sequent).
5218 # It gets checked for in the link test anyway.
5219
5220 # First of all, check if the user has set any of the PTHREAD_LIBS,
5221 # etcetera environment variables, and if threads linking works using
5222 # them:
5223 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5224         save_CFLAGS="$CFLAGS"
5225         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5226         save_LIBS="$LIBS"
5227         LIBS="$PTHREAD_LIBS $LIBS"
5228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5229 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5230         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h.  */
5232
5233 /* Override any GCC internal prototype to avoid an error.
5234    Use char because int might match the return type of a GCC
5235    builtin and then its argument prototype would still apply.  */
5236 #ifdef __cplusplus
5237 extern "C"
5238 #endif
5239 char pthread_join ();
5240 int
5241 main ()
5242 {
5243 return pthread_join ();
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_link "$LINENO"; then :
5249   acx_pthread_ok=yes
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext \
5252     conftest$ac_exeext conftest.$ac_ext
5253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5254 $as_echo "$acx_pthread_ok" >&6; }
5255         if test x"$acx_pthread_ok" = xno; then
5256                 PTHREAD_LIBS=""
5257                 PTHREAD_CFLAGS=""
5258         fi
5259         LIBS="$save_LIBS"
5260         CFLAGS="$save_CFLAGS"
5261 fi
5262
5263 # We must check for the threads library under a number of different
5264 # names; the ordering is very important because some systems
5265 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5266 # libraries is broken (non-POSIX).
5267
5268 # Create a list of thread flags to try.  Items starting with a "-" are
5269 # C compiler flags, and other items are library names, except for "none"
5270 # which indicates that we try without any flags at all, and "pthread-config"
5271 # which is a program returning the flags for the Pth emulation library.
5272
5273 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5274
5275 # The ordering *is* (sometimes) important.  Some notes on the
5276 # individual items follow:
5277
5278 # pthreads: AIX (must check this before -lpthread)
5279 # none: in case threads are in libc; should be tried before -Kthread and
5280 #       other compiler flags to prevent continual compiler warnings
5281 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5282 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5283 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5284 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5285 # -pthreads: Solaris/gcc
5286 # -mthreads: Mingw32/gcc, Lynx/gcc
5287 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5288 #      doesn't hurt to check since this sometimes defines pthreads too;
5289 #      also defines -D_REENTRANT)
5290 # pthread: Linux, etcetera
5291 # --thread-safe: KAI C++
5292 # pthread-config: use pthread-config program (for GNU Pth library)
5293
5294 case "${host_cpu}-${host_os}" in
5295         *solaris*)
5296
5297         # On Solaris (at least, for some versions), libc contains stubbed
5298         # (non-functional) versions of the pthreads routines, so link-based
5299         # tests will erroneously succeed.  (We need to link with -pthread or
5300         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
5301         # a function called by this macro, so we could check for that, but
5302         # who knows whether they'll stub that too in a future libc.)  So,
5303         # we'll just look for -pthreads and -lpthread first:
5304
5305         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5306         ;;
5307 esac
5308
5309 if test x"$acx_pthread_ok" = xno; then
5310 for flag in $acx_pthread_flags; do
5311
5312         case $flag in
5313                 none)
5314                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5315 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
5316                 ;;
5317
5318                 -*)
5319                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5320 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
5321                 PTHREAD_CFLAGS="$flag"
5322                 ;;
5323
5324                 pthread-config)
5325                 # Extract the first word of "pthread-config", so it can be a program name with args.
5326 set dummy pthread-config; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_acx_pthread_config+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   if test -n "$acx_pthread_config"; then
5333   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340     for ac_exec_ext in '' $ac_executable_extensions; do
5341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342     ac_cv_prog_acx_pthread_config="yes"
5343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347   done
5348 IFS=$as_save_IFS
5349
5350   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5351 fi
5352 fi
5353 acx_pthread_config=$ac_cv_prog_acx_pthread_config
5354 if test -n "$acx_pthread_config"; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
5356 $as_echo "$acx_pthread_config" >&6; }
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361
5362
5363                 if test x"$acx_pthread_config" = xno; then continue; fi
5364                 PTHREAD_CFLAGS="`pthread-config --cflags`"
5365                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5366                 ;;
5367
5368                 *)
5369                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5370 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5371                 PTHREAD_LIBS="-l$flag"
5372                 ;;
5373         esac
5374
5375         save_LIBS="$LIBS"
5376         save_CFLAGS="$CFLAGS"
5377         LIBS="$PTHREAD_LIBS $LIBS"
5378         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5379
5380         # Check for various functions.  We must include pthread.h,
5381         # since some functions may be macros.  (On the Sequent, we
5382         # need a special flag -Kthread to make this header compile.)
5383         # We check for pthread_join because it is in -lpthread on IRIX
5384         # while pthread_create is in libc.  We check for pthread_attr_init
5385         # due to DEC craziness with -lpthreads.  We check for
5386         # pthread_cleanup_push because it is one of the few pthread
5387         # functions on Solaris that doesn't have a non-functional libc stub.
5388         # We try pthread_create on general principles.
5389         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h.  */
5391 #include <pthread.h>
5392 int
5393 main ()
5394 {
5395 pthread_t th; pthread_join(th, 0);
5396                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
5397                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_link "$LINENO"; then :
5403   acx_pthread_ok=yes
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext \
5406     conftest$ac_exeext conftest.$ac_ext
5407
5408         LIBS="$save_LIBS"
5409         CFLAGS="$save_CFLAGS"
5410
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5412 $as_echo "$acx_pthread_ok" >&6; }
5413         if test "x$acx_pthread_ok" = xyes; then
5414                 break;
5415         fi
5416
5417         PTHREAD_LIBS=""
5418         PTHREAD_CFLAGS=""
5419 done
5420 fi
5421
5422 # Various other checks:
5423 if test "x$acx_pthread_ok" = xyes; then
5424         save_LIBS="$LIBS"
5425         LIBS="$PTHREAD_LIBS $LIBS"
5426         save_CFLAGS="$CFLAGS"
5427         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5428
5429         # Detect AIX lossage: threads are created detached by default
5430         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5432 $as_echo_n "checking for joinable pthread attribute... " >&6; }
5433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h.  */
5435 #include <pthread.h>
5436 int
5437 main ()
5438 {
5439 int attr=PTHREAD_CREATE_JOINABLE;
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_link "$LINENO"; then :
5445   ok=PTHREAD_CREATE_JOINABLE
5446 else
5447   ok=unknown
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext \
5450     conftest$ac_exeext conftest.$ac_ext
5451         if test x"$ok" = xunknown; then
5452                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h.  */
5454 #include <pthread.h>
5455 int
5456 main ()
5457 {
5458 int attr=PTHREAD_CREATE_UNDETACHED;
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_link "$LINENO"; then :
5464   ok=PTHREAD_CREATE_UNDETACHED
5465 else
5466   ok=unknown
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext \
5469     conftest$ac_exeext conftest.$ac_ext
5470         fi
5471         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5472
5473 $as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
5474
5475         fi
5476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
5477 $as_echo "${ok}" >&6; }
5478         if test x"$ok" = xunknown; then
5479                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
5480 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5481         fi
5482
5483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5484 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5485         flag=no
5486         case "${host_cpu}-${host_os}" in
5487                 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5488                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5489         esac
5490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5491 $as_echo "${flag}" >&6; }
5492         if test "x$flag" != xno; then
5493                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5494         fi
5495
5496         LIBS="$save_LIBS"
5497         CFLAGS="$save_CFLAGS"
5498
5499         # More AIX lossage: must compile with cc_r
5500         # Extract the first word of "cc_r", so it can be a program name with args.
5501 set dummy cc_r; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   if test -n "$PTHREAD_CC"; then
5508   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517     ac_cv_prog_PTHREAD_CC="cc_r"
5518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522   done
5523 IFS=$as_save_IFS
5524
5525   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5526 fi
5527 fi
5528 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5529 if test -n "$PTHREAD_CC"; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5531 $as_echo "$PTHREAD_CC" >&6; }
5532 else
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537
5538 else
5539         PTHREAD_CC="$CC"
5540 fi
5541
5542
5543
5544
5545
5546 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5547 if test x"$acx_pthread_ok" = xyes; then
5548
5549 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5550
5551         :
5552 else
5553         acx_pthread_ok=no
5554         as_fn_error $? "Cannot determine how to use pthreads" "$LINENO" 5
5555 fi
5556 ac_ext=cpp
5557 ac_cpp='$CXXCPP $CPPFLAGS'
5558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5561
5562
5563 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5564 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
5565 LIBS="$LIBS $PTHREAD_LIBS"
5566
5567 # Checks for header files.
5568 ac_ext=cpp
5569 ac_cpp='$CXXCPP $CPPFLAGS'
5570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5574 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5575 if test -z "$CXXCPP"; then
5576   if ${ac_cv_prog_CXXCPP+:} false; then :
5577   $as_echo_n "(cached) " >&6
5578 else
5579       # Double quotes because CXXCPP needs to be expanded
5580     for CXXCPP in "$CXX -E" "/lib/cpp"
5581     do
5582       ac_preproc_ok=false
5583 for ac_cxx_preproc_warn_flag in '' yes
5584 do
5585   # Use a header file that comes with gcc, so configuring glibc
5586   # with a fresh cross-compiler works.
5587   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588   # <limits.h> exists even on freestanding compilers.
5589   # On the NeXT, cc -E runs the code through the compiler's parser,
5590   # not just through cpp. "Syntax error" is here to catch this case.
5591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h.  */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598                      Syntax error
5599 _ACEOF
5600 if ac_fn_cxx_try_cpp "$LINENO"; then :
5601
5602 else
5603   # Broken: fails on valid input.
5604 continue
5605 fi
5606 rm -f conftest.err conftest.i conftest.$ac_ext
5607
5608   # OK, works on sane cases.  Now check whether nonexistent headers
5609   # can be detected and how.
5610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h.  */
5612 #include <ac_nonexistent.h>
5613 _ACEOF
5614 if ac_fn_cxx_try_cpp "$LINENO"; then :
5615   # Broken: success on invalid input.
5616 continue
5617 else
5618   # Passes both tests.
5619 ac_preproc_ok=:
5620 break
5621 fi
5622 rm -f conftest.err conftest.i conftest.$ac_ext
5623
5624 done
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.i conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then :
5628   break
5629 fi
5630
5631     done
5632     ac_cv_prog_CXXCPP=$CXXCPP
5633
5634 fi
5635   CXXCPP=$ac_cv_prog_CXXCPP
5636 else
5637   ac_cv_prog_CXXCPP=$CXXCPP
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5640 $as_echo "$CXXCPP" >&6; }
5641 ac_preproc_ok=false
5642 for ac_cxx_preproc_warn_flag in '' yes
5643 do
5644   # Use a header file that comes with gcc, so configuring glibc
5645   # with a fresh cross-compiler works.
5646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647   # <limits.h> exists even on freestanding compilers.
5648   # On the NeXT, cc -E runs the code through the compiler's parser,
5649   # not just through cpp. "Syntax error" is here to catch this case.
5650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h.  */
5652 #ifdef __STDC__
5653 # include <limits.h>
5654 #else
5655 # include <assert.h>
5656 #endif
5657                      Syntax error
5658 _ACEOF
5659 if ac_fn_cxx_try_cpp "$LINENO"; then :
5660
5661 else
5662   # Broken: fails on valid input.
5663 continue
5664 fi
5665 rm -f conftest.err conftest.i conftest.$ac_ext
5666
5667   # OK, works on sane cases.  Now check whether nonexistent headers
5668   # can be detected and how.
5669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 #include <ac_nonexistent.h>
5672 _ACEOF
5673 if ac_fn_cxx_try_cpp "$LINENO"; then :
5674   # Broken: success on invalid input.
5675 continue
5676 else
5677   # Passes both tests.
5678 ac_preproc_ok=:
5679 break
5680 fi
5681 rm -f conftest.err conftest.i conftest.$ac_ext
5682
5683 done
5684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5685 rm -f conftest.i conftest.err conftest.$ac_ext
5686 if $ac_preproc_ok; then :
5687
5688 else
5689   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5692 See \`config.log' for more details" "$LINENO" 5; }
5693 fi
5694
5695 ac_ext=cpp
5696 ac_cpp='$CXXCPP $CPPFLAGS'
5697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5704 if ${ac_cv_path_GREP+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   if test -z "$GREP"; then
5708   ac_path_GREP_found=false
5709   # Loop through the user's path and test for each of PROGNAME-LIST
5710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715     for ac_prog in grep ggrep; do
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5718       as_fn_executable_p "$ac_path_GREP" || continue
5719 # Check for GNU ac_path_GREP and select it if it is found.
5720   # Check for GNU $ac_path_GREP
5721 case `"$ac_path_GREP" --version 2>&1` in
5722 *GNU*)
5723   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5724 *)
5725   ac_count=0
5726   $as_echo_n 0123456789 >"conftest.in"
5727   while :
5728   do
5729     cat "conftest.in" "conftest.in" >"conftest.tmp"
5730     mv "conftest.tmp" "conftest.in"
5731     cp "conftest.in" "conftest.nl"
5732     $as_echo 'GREP' >> "conftest.nl"
5733     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5735     as_fn_arith $ac_count + 1 && ac_count=$as_val
5736     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5737       # Best one so far, save it but keep looking for a better one
5738       ac_cv_path_GREP="$ac_path_GREP"
5739       ac_path_GREP_max=$ac_count
5740     fi
5741     # 10*(2^10) chars as input seems more than enough
5742     test $ac_count -gt 10 && break
5743   done
5744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5745 esac
5746
5747       $ac_path_GREP_found && break 3
5748     done
5749   done
5750   done
5751 IFS=$as_save_IFS
5752   if test -z "$ac_cv_path_GREP"; then
5753     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5754   fi
5755 else
5756   ac_cv_path_GREP=$GREP
5757 fi
5758
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5761 $as_echo "$ac_cv_path_GREP" >&6; }
5762  GREP="$ac_cv_path_GREP"
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5766 $as_echo_n "checking for egrep... " >&6; }
5767 if ${ac_cv_path_EGREP+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5771    then ac_cv_path_EGREP="$GREP -E"
5772    else
5773      if test -z "$EGREP"; then
5774   ac_path_EGREP_found=false
5775   # Loop through the user's path and test for each of PROGNAME-LIST
5776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_prog in egrep; do
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5784       as_fn_executable_p "$ac_path_EGREP" || continue
5785 # Check for GNU ac_path_EGREP and select it if it is found.
5786   # Check for GNU $ac_path_EGREP
5787 case `"$ac_path_EGREP" --version 2>&1` in
5788 *GNU*)
5789   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5790 *)
5791   ac_count=0
5792   $as_echo_n 0123456789 >"conftest.in"
5793   while :
5794   do
5795     cat "conftest.in" "conftest.in" >"conftest.tmp"
5796     mv "conftest.tmp" "conftest.in"
5797     cp "conftest.in" "conftest.nl"
5798     $as_echo 'EGREP' >> "conftest.nl"
5799     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801     as_fn_arith $ac_count + 1 && ac_count=$as_val
5802     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5803       # Best one so far, save it but keep looking for a better one
5804       ac_cv_path_EGREP="$ac_path_EGREP"
5805       ac_path_EGREP_max=$ac_count
5806     fi
5807     # 10*(2^10) chars as input seems more than enough
5808     test $ac_count -gt 10 && break
5809   done
5810   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811 esac
5812
5813       $ac_path_EGREP_found && break 3
5814     done
5815   done
5816   done
5817 IFS=$as_save_IFS
5818   if test -z "$ac_cv_path_EGREP"; then
5819     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5820   fi
5821 else
5822   ac_cv_path_EGREP=$EGREP
5823 fi
5824
5825    fi
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5828 $as_echo "$ac_cv_path_EGREP" >&6; }
5829  EGREP="$ac_cv_path_EGREP"
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5833 $as_echo_n "checking for ANSI C header files... " >&6; }
5834 if ${ac_cv_header_stdc+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h.  */
5839 #include <stdlib.h>
5840 #include <stdarg.h>
5841 #include <string.h>
5842 #include <float.h>
5843
5844 int
5845 main ()
5846 {
5847
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_cxx_try_compile "$LINENO"; then :
5853   ac_cv_header_stdc=yes
5854 else
5855   ac_cv_header_stdc=no
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858
5859 if test $ac_cv_header_stdc = yes; then
5860   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h.  */
5863 #include <string.h>
5864
5865 _ACEOF
5866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867   $EGREP "memchr" >/dev/null 2>&1; then :
5868
5869 else
5870   ac_cv_header_stdc=no
5871 fi
5872 rm -f conftest*
5873
5874 fi
5875
5876 if test $ac_cv_header_stdc = yes; then
5877   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h.  */
5880 #include <stdlib.h>
5881
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884   $EGREP "free" >/dev/null 2>&1; then :
5885
5886 else
5887   ac_cv_header_stdc=no
5888 fi
5889 rm -f conftest*
5890
5891 fi
5892
5893 if test $ac_cv_header_stdc = yes; then
5894   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5895   if test "$cross_compiling" = yes; then :
5896   :
5897 else
5898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h.  */
5900 #include <ctype.h>
5901 #include <stdlib.h>
5902 #if ((' ' & 0x0FF) == 0x020)
5903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5905 #else
5906 # define ISLOWER(c) \
5907                    (('a' <= (c) && (c) <= 'i') \
5908                      || ('j' <= (c) && (c) <= 'r') \
5909                      || ('s' <= (c) && (c) <= 'z'))
5910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5911 #endif
5912
5913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5914 int
5915 main ()
5916 {
5917   int i;
5918   for (i = 0; i < 256; i++)
5919     if (XOR (islower (i), ISLOWER (i))
5920         || toupper (i) != TOUPPER (i))
5921       return 2;
5922   return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_cxx_try_run "$LINENO"; then :
5926
5927 else
5928   ac_cv_header_stdc=no
5929 fi
5930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5931   conftest.$ac_objext conftest.beam conftest.$ac_ext
5932 fi
5933
5934 fi
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5937 $as_echo "$ac_cv_header_stdc" >&6; }
5938 if test $ac_cv_header_stdc = yes; then
5939
5940 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5941
5942 fi
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5945 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5946 if ${ac_cv_header_sys_wait_h+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h.  */
5951 #include <sys/types.h>
5952 #include <sys/wait.h>
5953 #ifndef WEXITSTATUS
5954 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5955 #endif
5956 #ifndef WIFEXITED
5957 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5958 #endif
5959
5960 int
5961 main ()
5962 {
5963   int s;
5964   wait (&s);
5965   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_cxx_try_compile "$LINENO"; then :
5971   ac_cv_header_sys_wait_h=yes
5972 else
5973   ac_cv_header_sys_wait_h=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5978 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5979 if test $ac_cv_header_sys_wait_h = yes; then
5980
5981 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5982
5983 fi
5984
5985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5987                   inttypes.h stdint.h unistd.h
5988 do :
5989   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5991 "
5992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5993   cat >>confdefs.h <<_ACEOF
5994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5996
5997 fi
5998
5999 done
6000
6001
6002 for ac_header in fcntl.h syslog.h sys/cdefs.h sys/select.h
6003 do :
6004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6007   cat >>confdefs.h <<_ACEOF
6008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6010
6011 fi
6012
6013 done
6014
6015
6016 # Checks for typedefs, structures, and compiler characteristics.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6018 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6019 if ${ac_cv_c_const+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h.  */
6024
6025 int
6026 main ()
6027 {
6028
6029 #ifndef __cplusplus
6030   /* Ultrix mips cc rejects this sort of thing.  */
6031   typedef int charset[2];
6032   const charset cs = { 0, 0 };
6033   /* SunOS 4.1.1 cc rejects this.  */
6034   char const *const *pcpcc;
6035   char **ppc;
6036   /* NEC SVR4.0.2 mips cc rejects this.  */
6037   struct point {int x, y;};
6038   static struct point const zero = {0,0};
6039   /* AIX XL C 1.02.0.0 rejects this.
6040      It does not let you subtract one const X* pointer from another in
6041      an arm of an if-expression whose if-part is not a constant
6042      expression */
6043   const char *g = "string";
6044   pcpcc = &g + (g ? g-g : 0);
6045   /* HPUX 7.0 cc rejects these. */
6046   ++pcpcc;
6047   ppc = (char**) pcpcc;
6048   pcpcc = (char const *const *) ppc;
6049   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6050     char tx;
6051     char *t = &tx;
6052     char const *s = 0 ? (char *) 0 : (char const *) 0;
6053
6054     *t++ = 0;
6055     if (s) return 0;
6056   }
6057   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6058     int x[] = {25, 17};
6059     const int *foo = &x[0];
6060     ++foo;
6061   }
6062   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6063     typedef const int *iptr;
6064     iptr p = 0;
6065     ++p;
6066   }
6067   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6068        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6069     struct s { int j; const int *ap[3]; } bx;
6070     struct s *b = &bx; b->j = 5;
6071   }
6072   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6073     const int foo = 10;
6074     if (!foo) return 0;
6075   }
6076   return !cs[0] && !zero.x;
6077 #endif
6078
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_cxx_try_compile "$LINENO"; then :
6084   ac_cv_c_const=yes
6085 else
6086   ac_cv_c_const=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 fi
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6091 $as_echo "$ac_cv_c_const" >&6; }
6092 if test $ac_cv_c_const = no; then
6093
6094 $as_echo "#define const /**/" >>confdefs.h
6095
6096 fi
6097
6098 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_pid_t" = xyes; then :
6100
6101 else
6102
6103 cat >>confdefs.h <<_ACEOF
6104 #define pid_t int
6105 _ACEOF
6106
6107 fi
6108
6109 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6110 if test "x$ac_cv_type_size_t" = xyes; then :
6111
6112 else
6113
6114 cat >>confdefs.h <<_ACEOF
6115 #define size_t unsigned int
6116 _ACEOF
6117
6118 fi
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must define _GNU_SOURCE" >&5
6123 $as_echo_n "checking if we must define _GNU_SOURCE... " >&6; }
6124 if ${cf_cv_gnu_source+:} false; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130 #include <sys/types.h>
6131 int
6132 main ()
6133 {
6134
6135 #ifndef _XOPEN_SOURCE
6136 make an error
6137 #endif
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_cxx_try_compile "$LINENO"; then :
6143   cf_cv_gnu_source=no
6144 else
6145   cf_save="$CPPFLAGS"
6146          CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6147          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h.  */
6149 #include <sys/types.h>
6150 int
6151 main ()
6152 {
6153
6154 #ifdef _XOPEN_SOURCE
6155 make an error
6156 #endif
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_cxx_try_compile "$LINENO"; then :
6162   cf_cv_gnu_source=no
6163 else
6164   cf_cv_gnu_source=yes
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167         CPPFLAGS="$cf_save"
6168
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_gnu_source" >&5
6174 $as_echo "$cf_cv_gnu_source" >&6; }
6175 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6176
6177
6178 # Check whether --enable-emulate-poll was given.
6179 if test "${enable_emulate_poll+set}" = set; then :
6180   enableval=$enable_emulate_poll;
6181 fi
6182
6183
6184 # If the system doesn't have poll.h, or if the user forced it, provide
6185 # our own poll function
6186 if test x$enable_emulate_poll != xyes ; then
6187 for ac_header in poll.h
6188 do :
6189   ac_fn_cxx_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
6190 if test "x$ac_cv_header_poll_h" = xyes; then :
6191   cat >>confdefs.h <<_ACEOF
6192 #define HAVE_POLL_H 1
6193 _ACEOF
6194
6195 fi
6196
6197 done
6198
6199 fi
6200
6201 if test x$enable_emulate_poll = xyes -o x$ac_cv_header_poll_h = xno ; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: Emulating poll with select" >&5
6203 $as_echo "$as_me: Emulating poll with select" >&6;}
6204 case " $LIBOBJS " in
6205   *" poll.$ac_objext "* ) ;;
6206   *) LIBOBJS="$LIBOBJS poll.$ac_objext"
6207  ;;
6208 esac
6209
6210 fi
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6213 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6214
6215 # Check whether --with-dmalloc was given.
6216 if test "${with_dmalloc+set}" = set; then :
6217   withval=$with_dmalloc; if test "$withval" = yes; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219 $as_echo "yes" >&6; }
6220
6221 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6222
6223   for ac_header in dmalloc.h
6224 do :
6225   ac_fn_cxx_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
6226 if test "x$ac_cv_header_dmalloc_h" = xyes; then :
6227   cat >>confdefs.h <<_ACEOF
6228 #define HAVE_DMALLOC_H 1
6229 _ACEOF
6230
6231 fi
6232
6233 done
6234
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_malloc in -ldmallocthcxx" >&5
6236 $as_echo_n "checking for dmalloc_malloc in -ldmallocthcxx... " >&6; }
6237 if ${ac_cv_lib_dmallocthcxx_dmalloc_malloc+:} false; then :
6238   $as_echo_n "(cached) " >&6
6239 else
6240   ac_check_lib_save_LIBS=$LIBS
6241 LIBS="-ldmallocthcxx  $LIBS"
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h.  */
6244
6245 /* Override any GCC internal prototype to avoid an error.
6246    Use char because int might match the return type of a GCC
6247    builtin and then its argument prototype would still apply.  */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 char dmalloc_malloc ();
6252 int
6253 main ()
6254 {
6255 return dmalloc_malloc ();
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_cxx_try_link "$LINENO"; then :
6261   ac_cv_lib_dmallocthcxx_dmalloc_malloc=yes
6262 else
6263   ac_cv_lib_dmallocthcxx_dmalloc_malloc=no
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext \
6266     conftest$ac_exeext conftest.$ac_ext
6267 LIBS=$ac_check_lib_save_LIBS
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&5
6270 $as_echo "$ac_cv_lib_dmallocthcxx_dmalloc_malloc" >&6; }
6271 if test "x$ac_cv_lib_dmallocthcxx_dmalloc_malloc" = xyes; then :
6272   cat >>confdefs.h <<_ACEOF
6273 #define HAVE_LIBDMALLOCTHCXX 1
6274 _ACEOF
6275
6276   LIBS="-ldmallocthcxx $LIBS"
6277
6278 else
6279   as_fn_error $? "Threaded C++ dmalloc library not found" "$LINENO" 5
6280 fi
6281
6282 else
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286 else
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292
6293 # Checks for library functions.
6294 for ac_func in vsyslog vasprintf vsnprintf
6295 do :
6296   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6297 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6298 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6299   cat >>confdefs.h <<_ACEOF
6300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6301 _ACEOF
6302
6303 fi
6304 done
6305
6306 for ac_func in asprintf snprintf
6307 do :
6308   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6309 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6311   cat >>confdefs.h <<_ACEOF
6312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6313 _ACEOF
6314
6315 fi
6316 done
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6319 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6320 if ${ac_cv_search_gethostbyname+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   ac_func_search_save_LIBS=$LIBS
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h.  */
6326
6327 /* Override any GCC internal prototype to avoid an error.
6328    Use char because int might match the return type of a GCC
6329    builtin and then its argument prototype would still apply.  */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 char gethostbyname ();
6334 int
6335 main ()
6336 {
6337 return gethostbyname ();
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 for ac_lib in '' nsl; do
6343   if test -z "$ac_lib"; then
6344     ac_res="none required"
6345   else
6346     ac_res=-l$ac_lib
6347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6348   fi
6349   if ac_fn_cxx_try_link "$LINENO"; then :
6350   ac_cv_search_gethostbyname=$ac_res
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext \
6353     conftest$ac_exeext
6354   if ${ac_cv_search_gethostbyname+:} false; then :
6355   break
6356 fi
6357 done
6358 if ${ac_cv_search_gethostbyname+:} false; then :
6359
6360 else
6361   ac_cv_search_gethostbyname=no
6362 fi
6363 rm conftest.$ac_ext
6364 LIBS=$ac_func_search_save_LIBS
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6367 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6368 ac_res=$ac_cv_search_gethostbyname
6369 if test "$ac_res" != no; then :
6370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6371
6372 fi
6373
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
6375 $as_echo_n "checking for library containing connect... " >&6; }
6376 if ${ac_cv_search_connect+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   ac_func_search_save_LIBS=$LIBS
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h.  */
6382
6383 /* Override any GCC internal prototype to avoid an error.
6384    Use char because int might match the return type of a GCC
6385    builtin and then its argument prototype would still apply.  */
6386 #ifdef __cplusplus
6387 extern "C"
6388 #endif
6389 char connect ();
6390 int
6391 main ()
6392 {
6393 return connect ();
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 for ac_lib in '' socket; do
6399   if test -z "$ac_lib"; then
6400     ac_res="none required"
6401   else
6402     ac_res=-l$ac_lib
6403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6404   fi
6405   if ac_fn_cxx_try_link "$LINENO"; then :
6406   ac_cv_search_connect=$ac_res
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext \
6409     conftest$ac_exeext
6410   if ${ac_cv_search_connect+:} false; then :
6411   break
6412 fi
6413 done
6414 if ${ac_cv_search_connect+:} false; then :
6415
6416 else
6417   ac_cv_search_connect=no
6418 fi
6419 rm conftest.$ac_ext
6420 LIBS=$ac_func_search_save_LIBS
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6423 $as_echo "$ac_cv_search_connect" >&6; }
6424 ac_res=$ac_cv_search_connect
6425 if test "$ac_res" != no; then :
6426   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6427
6428 fi
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6431 $as_echo_n "checking for library containing inet_aton... " >&6; }
6432 if ${ac_cv_search_inet_aton+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   ac_func_search_save_LIBS=$LIBS
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h.  */
6438
6439 /* Override any GCC internal prototype to avoid an error.
6440    Use char because int might match the return type of a GCC
6441    builtin and then its argument prototype would still apply.  */
6442 #ifdef __cplusplus
6443 extern "C"
6444 #endif
6445 char inet_aton ();
6446 int
6447 main ()
6448 {
6449 return inet_aton ();
6450   ;
6451   return 0;
6452 }
6453 _ACEOF
6454 for ac_lib in '' resolv; do
6455   if test -z "$ac_lib"; then
6456     ac_res="none required"
6457   else
6458     ac_res=-l$ac_lib
6459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6460   fi
6461   if ac_fn_cxx_try_link "$LINENO"; then :
6462   ac_cv_search_inet_aton=$ac_res
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext \
6465     conftest$ac_exeext
6466   if ${ac_cv_search_inet_aton+:} false; then :
6467   break
6468 fi
6469 done
6470 if ${ac_cv_search_inet_aton+:} false; then :
6471
6472 else
6473   ac_cv_search_inet_aton=no
6474 fi
6475 rm conftest.$ac_ext
6476 LIBS=$ac_func_search_save_LIBS
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6479 $as_echo "$ac_cv_search_inet_aton" >&6; }
6480 ac_res=$ac_cv_search_inet_aton
6481 if test "$ac_res" != no; then :
6482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6483
6484 fi
6485
6486
6487 # Check for functions and verify that the system provides a prototype for them.
6488 # Switch to C linkage.  Though the autoconf manual claims it does
6489 # automatically.  It lies.
6490 ac_ext=c
6491 ac_cpp='$CPP $CPPFLAGS'
6492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6495
6496 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6497 if test "x$ac_cv_func_strsep" = xyes; then :
6498   $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
6499
6500 else
6501   case " $LIBOBJS " in
6502   *" strsep.$ac_objext "* ) ;;
6503   *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
6504  ;;
6505 esac
6506
6507 fi
6508
6509 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
6510 if test "x$ac_cv_func_daemon" = xyes; then :
6511   $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
6512
6513 else
6514   case " $LIBOBJS " in
6515   *" daemon.$ac_objext "* ) ;;
6516   *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
6517  ;;
6518 esac
6519
6520 fi
6521
6522
6523 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
6524 if test "x$ac_cv_have_decl_strsep" = xyes; then :
6525   ac_have_decl=1
6526 else
6527   ac_have_decl=0
6528 fi
6529
6530 cat >>confdefs.h <<_ACEOF
6531 #define HAVE_DECL_STRSEP $ac_have_decl
6532 _ACEOF
6533 ac_fn_c_check_decl "$LINENO" "daemon" "ac_cv_have_decl_daemon" "$ac_includes_default"
6534 if test "x$ac_cv_have_decl_daemon" = xyes; then :
6535   ac_have_decl=1
6536 else
6537   ac_have_decl=0
6538 fi
6539
6540 cat >>confdefs.h <<_ACEOF
6541 #define HAVE_DECL_DAEMON $ac_have_decl
6542 _ACEOF
6543
6544 ac_ext=cpp
6545 ac_cpp='$CXXCPP $CPPFLAGS'
6546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6549
6550
6551 # Check for libmilter and its header files in the usual locations
6552 if test -d /usr/lib/libmilter ; then
6553         LDFLAGS="$LDFLAGS -L/usr/lib/libmilter"
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
6556 $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
6557 if ${ac_cv_lib_milter_mi_stop+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   ac_check_lib_save_LIBS=$LIBS
6561 LIBS="-lmilter  $LIBS"
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h.  */
6564
6565 /* Override any GCC internal prototype to avoid an error.
6566    Use char because int might match the return type of a GCC
6567    builtin and then its argument prototype would still apply.  */
6568 #ifdef __cplusplus
6569 extern "C"
6570 #endif
6571 char mi_stop ();
6572 int
6573 main ()
6574 {
6575 return mi_stop ();
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 if ac_fn_cxx_try_link "$LINENO"; then :
6581   ac_cv_lib_milter_mi_stop=yes
6582 else
6583   ac_cv_lib_milter_mi_stop=no
6584 fi
6585 rm -f core conftest.err conftest.$ac_objext \
6586     conftest$ac_exeext conftest.$ac_ext
6587 LIBS=$ac_check_lib_save_LIBS
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5
6590 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; }
6591 if test "x$ac_cv_lib_milter_mi_stop" = xyes; then :
6592   cat >>confdefs.h <<_ACEOF
6593 #define HAVE_LIBMILTER 1
6594 _ACEOF
6595
6596   LIBS="-lmilter $LIBS"
6597
6598 else
6599
6600         # Older sendmails require libsm for support functions
6601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
6602 $as_echo_n "checking for library containing strlcpy... " >&6; }
6603 if ${ac_cv_search_strlcpy+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   ac_func_search_save_LIBS=$LIBS
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h.  */
6609
6610 /* Override any GCC internal prototype to avoid an error.
6611    Use char because int might match the return type of a GCC
6612    builtin and then its argument prototype would still apply.  */
6613 #ifdef __cplusplus
6614 extern "C"
6615 #endif
6616 char strlcpy ();
6617 int
6618 main ()
6619 {
6620 return strlcpy ();
6621   ;
6622   return 0;
6623 }
6624 _ACEOF
6625 for ac_lib in '' sm smutil; do
6626   if test -z "$ac_lib"; then
6627     ac_res="none required"
6628   else
6629     ac_res=-l$ac_lib
6630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6631   fi
6632   if ac_fn_cxx_try_link "$LINENO"; then :
6633   ac_cv_search_strlcpy=$ac_res
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext \
6636     conftest$ac_exeext
6637   if ${ac_cv_search_strlcpy+:} false; then :
6638   break
6639 fi
6640 done
6641 if ${ac_cv_search_strlcpy+:} false; then :
6642
6643 else
6644   ac_cv_search_strlcpy=no
6645 fi
6646 rm conftest.$ac_ext
6647 LIBS=$ac_func_search_save_LIBS
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
6650 $as_echo "$ac_cv_search_strlcpy" >&6; }
6651 ac_res=$ac_cv_search_strlcpy
6652 if test "$ac_res" != no; then :
6653   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6654
6655 fi
6656
6657         $as_unset ac_cv_lib_milter_mi_stop
6658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mi_stop in -lmilter" >&5
6659 $as_echo_n "checking for mi_stop in -lmilter... " >&6; }
6660 if ${ac_cv_lib_milter_mi_stop+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   ac_check_lib_save_LIBS=$LIBS
6664 LIBS="-lmilter  $LIBS"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h.  */
6667
6668 /* Override any GCC internal prototype to avoid an error.
6669    Use char because int might match the return type of a GCC
6670    builtin and then its argument prototype would still apply.  */
6671 #ifdef __cplusplus
6672 extern "C"
6673 #endif
6674 char mi_stop ();
6675 int
6676 main ()
6677 {
6678 return mi_stop ();
6679   ;
6680   return 0;
6681 }
6682 _ACEOF
6683 if ac_fn_cxx_try_link "$LINENO"; then :
6684   ac_cv_lib_milter_mi_stop=yes
6685 else
6686   ac_cv_lib_milter_mi_stop=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext \
6689     conftest$ac_exeext conftest.$ac_ext
6690 LIBS=$ac_check_lib_save_LIBS
6691 fi
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_mi_stop" >&5
6693 $as_echo "$ac_cv_lib_milter_mi_stop" >&6; }
6694 if test "x$ac_cv_lib_milter_mi_stop" = xyes; then :
6695   cat >>confdefs.h <<_ACEOF
6696 #define HAVE_LIBMILTER 1
6697 _ACEOF
6698
6699   LIBS="-lmilter $LIBS"
6700
6701 else
6702
6703                 as_fn_error $? "Cannot find libmilter" "$LINENO" 5
6704
6705 fi
6706
6707
6708 fi
6709
6710 for ac_header in libmilter/mfapi.h
6711 do :
6712   ac_fn_cxx_check_header_mongrel "$LINENO" "libmilter/mfapi.h" "ac_cv_header_libmilter_mfapi_h" "$ac_includes_default"
6713 if test "x$ac_cv_header_libmilter_mfapi_h" = xyes; then :
6714   cat >>confdefs.h <<_ACEOF
6715 #define HAVE_LIBMILTER_MFAPI_H 1
6716 _ACEOF
6717
6718 else
6719
6720         as_fn_error $? "Please install mfapi.h from the sendmail distribution" "$LINENO" 5
6721
6722 fi
6723
6724 done
6725
6726
6727 # Files to create from .in templates:
6728 ac_config_files="$ac_config_files Makefile contrib/spamass-milter.spec spamass-milter.1"
6729
6730 cat >confcache <<\_ACEOF
6731 # This file is a shell script that caches the results of configure
6732 # tests run on this system so they can be shared between configure
6733 # scripts and configure runs, see configure's option --config-cache.
6734 # It is not useful on other systems.  If it contains results you don't
6735 # want to keep, you may remove or edit it.
6736 #
6737 # config.status only pays attention to the cache file if you give it
6738 # the --recheck option to rerun configure.
6739 #
6740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6742 # following values.
6743
6744 _ACEOF
6745
6746 # The following way of writing the cache mishandles newlines in values,
6747 # but we know of no workaround that is simple, portable, and efficient.
6748 # So, we kill variables containing newlines.
6749 # Ultrix sh set writes to stderr and can't be redirected directly,
6750 # and sets the high bit in the cache file unless we assign to the vars.
6751 (
6752   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6753     eval ac_val=\$$ac_var
6754     case $ac_val in #(
6755     *${as_nl}*)
6756       case $ac_var in #(
6757       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6759       esac
6760       case $ac_var in #(
6761       _ | IFS | as_nl) ;; #(
6762       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6763       *) { eval $ac_var=; unset $ac_var;} ;;
6764       esac ;;
6765     esac
6766   done
6767
6768   (set) 2>&1 |
6769     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6770     *${as_nl}ac_space=\ *)
6771       # `set' does not quote correctly, so add quotes: double-quote
6772       # substitution turns \\\\ into \\, and sed turns \\ into \.
6773       sed -n \
6774         "s/'/'\\\\''/g;
6775           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6776       ;; #(
6777     *)
6778       # `set' quotes correctly as required by POSIX, so do not add quotes.
6779       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6780       ;;
6781     esac |
6782     sort
6783 ) |
6784   sed '
6785      /^ac_cv_env_/b end
6786      t clear
6787      :clear
6788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6789      t end
6790      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6791      :end' >>confcache
6792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6793   if test -w "$cache_file"; then
6794     if test "x$cache_file" != "x/dev/null"; then
6795       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6796 $as_echo "$as_me: updating cache $cache_file" >&6;}
6797       if test ! -f "$cache_file" || test -h "$cache_file"; then
6798         cat confcache >"$cache_file"
6799       else
6800         case $cache_file in #(
6801         */* | ?:*)
6802           mv -f confcache "$cache_file"$$ &&
6803           mv -f "$cache_file"$$ "$cache_file" ;; #(
6804         *)
6805           mv -f confcache "$cache_file" ;;
6806         esac
6807       fi
6808     fi
6809   else
6810     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6812   fi
6813 fi
6814 rm -f confcache
6815
6816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6817 # Let make expand exec_prefix.
6818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6819
6820 DEFS=-DHAVE_CONFIG_H
6821
6822 ac_libobjs=
6823 ac_ltlibobjs=
6824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6825   # 1. Remove the extension, and $U if already installed.
6826   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6827   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6828   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6829   #    will be set to the directory where LIBOBJS objects are built.
6830   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6831   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6832 done
6833 LIBOBJS=$ac_libobjs
6834
6835 LTLIBOBJS=$ac_ltlibobjs
6836
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6839 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6840    if test -n "$am_sleep_pid"; then
6841      # Hide warnings about reused PIDs.
6842      wait $am_sleep_pid 2>/dev/null
6843    fi
6844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6845 $as_echo "done" >&6; }
6846  if test -n "$EXEEXT"; then
6847   am__EXEEXT_TRUE=
6848   am__EXEEXT_FALSE='#'
6849 else
6850   am__EXEEXT_TRUE='#'
6851   am__EXEEXT_FALSE=
6852 fi
6853
6854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6855   as_fn_error $? "conditional \"AMDEP\" was never defined.
6856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6857 fi
6858 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6859   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6861 fi
6862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6863   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6865 fi
6866 if test -z "${HAVE_MDOC_TRUE}" && test -z "${HAVE_MDOC_FALSE}"; then
6867   as_fn_error $? "conditional \"HAVE_MDOC\" was never defined.
6868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6869 fi
6870
6871 : "${CONFIG_STATUS=./config.status}"
6872 ac_write_fail=0
6873 ac_clean_files_save=$ac_clean_files
6874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6877 as_write_fail=0
6878 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6879 #! $SHELL
6880 # Generated by $as_me.
6881 # Run this file to recreate the current configuration.
6882 # Compiler output produced by configure, useful for debugging
6883 # configure, is in config.log if it exists.
6884
6885 debug=false
6886 ac_cs_recheck=false
6887 ac_cs_silent=false
6888
6889 SHELL=\${CONFIG_SHELL-$SHELL}
6890 export SHELL
6891 _ASEOF
6892 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6893 ## -------------------- ##
6894 ## M4sh Initialization. ##
6895 ## -------------------- ##
6896
6897 # Be more Bourne compatible
6898 DUALCASE=1; export DUALCASE # for MKS sh
6899 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6900   emulate sh
6901   NULLCMD=:
6902   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6903   # is contrary to our usage.  Disable this feature.
6904   alias -g '${1+"$@"}'='"$@"'
6905   setopt NO_GLOB_SUBST
6906 else
6907   case `(set -o) 2>/dev/null` in #(
6908   *posix*) :
6909     set -o posix ;; #(
6910   *) :
6911      ;;
6912 esac
6913 fi
6914
6915
6916 as_nl='
6917 '
6918 export as_nl
6919 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6920 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6923 # Prefer a ksh shell builtin over an external printf program on Solaris,
6924 # but without wasting forks for bash or zsh.
6925 if test -z "$BASH_VERSION$ZSH_VERSION" \
6926     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6927   as_echo='print -r --'
6928   as_echo_n='print -rn --'
6929 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6930   as_echo='printf %s\n'
6931   as_echo_n='printf %s'
6932 else
6933   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6934     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6935     as_echo_n='/usr/ucb/echo -n'
6936   else
6937     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6938     as_echo_n_body='eval
6939       arg=$1;
6940       case $arg in #(
6941       *"$as_nl"*)
6942         expr "X$arg" : "X\\(.*\\)$as_nl";
6943         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6944       esac;
6945       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6946     '
6947     export as_echo_n_body
6948     as_echo_n='sh -c $as_echo_n_body as_echo'
6949   fi
6950   export as_echo_body
6951   as_echo='sh -c $as_echo_body as_echo'
6952 fi
6953
6954 # The user is always right.
6955 if test "${PATH_SEPARATOR+set}" != set; then
6956   PATH_SEPARATOR=:
6957   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6958     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6959       PATH_SEPARATOR=';'
6960   }
6961 fi
6962
6963
6964 # IFS
6965 # We need space, tab and new line, in precisely that order.  Quoting is
6966 # there to prevent editors from complaining about space-tab.
6967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6968 # splitting by setting IFS to empty value.)
6969 IFS=" ""        $as_nl"
6970
6971 # Find who we are.  Look in the path if we contain no directory separator.
6972 as_myself=
6973 case $0 in #((
6974   *[\\/]* ) as_myself=$0 ;;
6975   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6981   done
6982 IFS=$as_save_IFS
6983
6984      ;;
6985 esac
6986 # We did not find ourselves, most probably we were run as `sh COMMAND'
6987 # in which case we are not to be found in the path.
6988 if test "x$as_myself" = x; then
6989   as_myself=$0
6990 fi
6991 if test ! -f "$as_myself"; then
6992   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6993   exit 1
6994 fi
6995
6996 # Unset variables that we do not need and which cause bugs (e.g. in
6997 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6998 # suppresses any "Segmentation fault" message there.  '((' could
6999 # trigger a bug in pdksh 5.2.14.
7000 for as_var in BASH_ENV ENV MAIL MAILPATH
7001 do eval test x\${$as_var+set} = xset \
7002   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7003 done
7004 PS1='$ '
7005 PS2='> '
7006 PS4='+ '
7007
7008 # NLS nuisances.
7009 LC_ALL=C
7010 export LC_ALL
7011 LANGUAGE=C
7012 export LANGUAGE
7013
7014 # CDPATH.
7015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7016
7017
7018 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7019 # ----------------------------------------
7020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7022 # script with STATUS, using 1 if that was 0.
7023 as_fn_error ()
7024 {
7025   as_status=$1; test $as_status -eq 0 && as_status=1
7026   if test "$4"; then
7027     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7028     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7029   fi
7030   $as_echo "$as_me: error: $2" >&2
7031   as_fn_exit $as_status
7032 } # as_fn_error
7033
7034
7035 # as_fn_set_status STATUS
7036 # -----------------------
7037 # Set $? to STATUS, without forking.
7038 as_fn_set_status ()
7039 {
7040   return $1
7041 } # as_fn_set_status
7042
7043 # as_fn_exit STATUS
7044 # -----------------
7045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7046 as_fn_exit ()
7047 {
7048   set +e
7049   as_fn_set_status $1
7050   exit $1
7051 } # as_fn_exit
7052
7053 # as_fn_unset VAR
7054 # ---------------
7055 # Portably unset VAR.
7056 as_fn_unset ()
7057 {
7058   { eval $1=; unset $1;}
7059 }
7060 as_unset=as_fn_unset
7061 # as_fn_append VAR VALUE
7062 # ----------------------
7063 # Append the text in VALUE to the end of the definition contained in VAR. Take
7064 # advantage of any shell optimizations that allow amortized linear growth over
7065 # repeated appends, instead of the typical quadratic growth present in naive
7066 # implementations.
7067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7068   eval 'as_fn_append ()
7069   {
7070     eval $1+=\$2
7071   }'
7072 else
7073   as_fn_append ()
7074   {
7075     eval $1=\$$1\$2
7076   }
7077 fi # as_fn_append
7078
7079 # as_fn_arith ARG...
7080 # ------------------
7081 # Perform arithmetic evaluation on the ARGs, and store the result in the
7082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7083 # must be portable across $(()) and expr.
7084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7085   eval 'as_fn_arith ()
7086   {
7087     as_val=$(( $* ))
7088   }'
7089 else
7090   as_fn_arith ()
7091   {
7092     as_val=`expr "$@" || test $? -eq 1`
7093   }
7094 fi # as_fn_arith
7095
7096
7097 if expr a : '\(a\)' >/dev/null 2>&1 &&
7098    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7099   as_expr=expr
7100 else
7101   as_expr=false
7102 fi
7103
7104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7105   as_basename=basename
7106 else
7107   as_basename=false
7108 fi
7109
7110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7111   as_dirname=dirname
7112 else
7113   as_dirname=false
7114 fi
7115
7116 as_me=`$as_basename -- "$0" ||
7117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7118          X"$0" : 'X\(//\)$' \| \
7119          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7120 $as_echo X/"$0" |
7121     sed '/^.*\/\([^/][^/]*\)\/*$/{
7122             s//\1/
7123             q
7124           }
7125           /^X\/\(\/\/\)$/{
7126             s//\1/
7127             q
7128           }
7129           /^X\/\(\/\).*/{
7130             s//\1/
7131             q
7132           }
7133           s/.*/./; q'`
7134
7135 # Avoid depending upon Character Ranges.
7136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7139 as_cr_digits='0123456789'
7140 as_cr_alnum=$as_cr_Letters$as_cr_digits
7141
7142 ECHO_C= ECHO_N= ECHO_T=
7143 case `echo -n x` in #(((((
7144 -n*)
7145   case `echo 'xy\c'` in
7146   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7147   xy)  ECHO_C='\c';;
7148   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7149        ECHO_T=' ';;
7150   esac;;
7151 *)
7152   ECHO_N='-n';;
7153 esac
7154
7155 rm -f conf$$ conf$$.exe conf$$.file
7156 if test -d conf$$.dir; then
7157   rm -f conf$$.dir/conf$$.file
7158 else
7159   rm -f conf$$.dir
7160   mkdir conf$$.dir 2>/dev/null
7161 fi
7162 if (echo >conf$$.file) 2>/dev/null; then
7163   if ln -s conf$$.file conf$$ 2>/dev/null; then
7164     as_ln_s='ln -s'
7165     # ... but there are two gotchas:
7166     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7167     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7168     # In both cases, we have to default to `cp -pR'.
7169     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7170       as_ln_s='cp -pR'
7171   elif ln conf$$.file conf$$ 2>/dev/null; then
7172     as_ln_s=ln
7173   else
7174     as_ln_s='cp -pR'
7175   fi
7176 else
7177   as_ln_s='cp -pR'
7178 fi
7179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7180 rmdir conf$$.dir 2>/dev/null
7181
7182
7183 # as_fn_mkdir_p
7184 # -------------
7185 # Create "$as_dir" as a directory, including parents if necessary.
7186 as_fn_mkdir_p ()
7187 {
7188
7189   case $as_dir in #(
7190   -*) as_dir=./$as_dir;;
7191   esac
7192   test -d "$as_dir" || eval $as_mkdir_p || {
7193     as_dirs=
7194     while :; do
7195       case $as_dir in #(
7196       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7197       *) as_qdir=$as_dir;;
7198       esac
7199       as_dirs="'$as_qdir' $as_dirs"
7200       as_dir=`$as_dirname -- "$as_dir" ||
7201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7202          X"$as_dir" : 'X\(//\)[^/]' \| \
7203          X"$as_dir" : 'X\(//\)$' \| \
7204          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7205 $as_echo X"$as_dir" |
7206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7207             s//\1/
7208             q
7209           }
7210           /^X\(\/\/\)[^/].*/{
7211             s//\1/
7212             q
7213           }
7214           /^X\(\/\/\)$/{
7215             s//\1/
7216             q
7217           }
7218           /^X\(\/\).*/{
7219             s//\1/
7220             q
7221           }
7222           s/.*/./; q'`
7223       test -d "$as_dir" && break
7224     done
7225     test -z "$as_dirs" || eval "mkdir $as_dirs"
7226   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7227
7228
7229 } # as_fn_mkdir_p
7230 if mkdir -p . 2>/dev/null; then
7231   as_mkdir_p='mkdir -p "$as_dir"'
7232 else
7233   test -d ./-p && rmdir ./-p
7234   as_mkdir_p=false
7235 fi
7236
7237
7238 # as_fn_executable_p FILE
7239 # -----------------------
7240 # Test if FILE is an executable regular file.
7241 as_fn_executable_p ()
7242 {
7243   test -f "$1" && test -x "$1"
7244 } # as_fn_executable_p
7245 as_test_x='test -x'
7246 as_executable_p=as_fn_executable_p
7247
7248 # Sed expression to map a string onto a valid CPP name.
7249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7250
7251 # Sed expression to map a string onto a valid variable name.
7252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7253
7254
7255 exec 6>&1
7256 ## ----------------------------------- ##
7257 ## Main body of $CONFIG_STATUS script. ##
7258 ## ----------------------------------- ##
7259 _ASEOF
7260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7261
7262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7263 # Save the log message, to keep $0 and so on meaningful, and to
7264 # report actual input values of CONFIG_FILES etc. instead of their
7265 # values after options handling.
7266 ac_log="
7267 This file was extended by spamass-milter $as_me 0.4.0, which was
7268 generated by GNU Autoconf 2.69.  Invocation command line was
7269
7270   CONFIG_FILES    = $CONFIG_FILES
7271   CONFIG_HEADERS  = $CONFIG_HEADERS
7272   CONFIG_LINKS    = $CONFIG_LINKS
7273   CONFIG_COMMANDS = $CONFIG_COMMANDS
7274   $ $0 $@
7275
7276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7277 "
7278
7279 _ACEOF
7280
7281 case $ac_config_files in *"
7282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7283 esac
7284
7285 case $ac_config_headers in *"
7286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7287 esac
7288
7289
7290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7291 # Files that config.status was made for.
7292 config_files="$ac_config_files"
7293 config_headers="$ac_config_headers"
7294 config_commands="$ac_config_commands"
7295
7296 _ACEOF
7297
7298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7299 ac_cs_usage="\
7300 \`$as_me' instantiates files and other configuration actions
7301 from templates according to the current configuration.  Unless the files
7302 and actions are specified as TAGs, all are instantiated by default.
7303
7304 Usage: $0 [OPTION]... [TAG]...
7305
7306   -h, --help       print this help, then exit
7307   -V, --version    print version number and configuration settings, then exit
7308       --config     print configuration, then exit
7309   -q, --quiet, --silent
7310                    do not print progress messages
7311   -d, --debug      don't remove temporary files
7312       --recheck    update $as_me by reconfiguring in the same conditions
7313       --file=FILE[:TEMPLATE]
7314                    instantiate the configuration file FILE
7315       --header=FILE[:TEMPLATE]
7316                    instantiate the configuration header FILE
7317
7318 Configuration files:
7319 $config_files
7320
7321 Configuration headers:
7322 $config_headers
7323
7324 Configuration commands:
7325 $config_commands
7326
7327 Report bugs to the package provider."
7328
7329 _ACEOF
7330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7331 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7332 ac_cs_version="\\
7333 spamass-milter config.status 0.4.0
7334 configured by $0, generated by GNU Autoconf 2.69,
7335   with options \\"\$ac_cs_config\\"
7336
7337 Copyright (C) 2012 Free Software Foundation, Inc.
7338 This config.status script is free software; the Free Software Foundation
7339 gives unlimited permission to copy, distribute and modify it."
7340
7341 ac_pwd='$ac_pwd'
7342 srcdir='$srcdir'
7343 INSTALL='$INSTALL'
7344 MKDIR_P='$MKDIR_P'
7345 AWK='$AWK'
7346 test -n "\$AWK" || AWK=awk
7347 _ACEOF
7348
7349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7350 # The default lists apply if the user does not specify any file.
7351 ac_need_defaults=:
7352 while test $# != 0
7353 do
7354   case $1 in
7355   --*=?*)
7356     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7357     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7358     ac_shift=:
7359     ;;
7360   --*=)
7361     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7362     ac_optarg=
7363     ac_shift=:
7364     ;;
7365   *)
7366     ac_option=$1
7367     ac_optarg=$2
7368     ac_shift=shift
7369     ;;
7370   esac
7371
7372   case $ac_option in
7373   # Handling of the options.
7374   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7375     ac_cs_recheck=: ;;
7376   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7377     $as_echo "$ac_cs_version"; exit ;;
7378   --config | --confi | --conf | --con | --co | --c )
7379     $as_echo "$ac_cs_config"; exit ;;
7380   --debug | --debu | --deb | --de | --d | -d )
7381     debug=: ;;
7382   --file | --fil | --fi | --f )
7383     $ac_shift
7384     case $ac_optarg in
7385     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7386     '') as_fn_error $? "missing file argument" ;;
7387     esac
7388     as_fn_append CONFIG_FILES " '$ac_optarg'"
7389     ac_need_defaults=false;;
7390   --header | --heade | --head | --hea )
7391     $ac_shift
7392     case $ac_optarg in
7393     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7394     esac
7395     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7396     ac_need_defaults=false;;
7397   --he | --h)
7398     # Conflict between --help and --header
7399     as_fn_error $? "ambiguous option: \`$1'
7400 Try \`$0 --help' for more information.";;
7401   --help | --hel | -h )
7402     $as_echo "$ac_cs_usage"; exit ;;
7403   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7404   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7405     ac_cs_silent=: ;;
7406
7407   # This is an error.
7408   -*) as_fn_error $? "unrecognized option: \`$1'
7409 Try \`$0 --help' for more information." ;;
7410
7411   *) as_fn_append ac_config_targets " $1"
7412      ac_need_defaults=false ;;
7413
7414   esac
7415   shift
7416 done
7417
7418 ac_configure_extra_args=
7419
7420 if $ac_cs_silent; then
7421   exec 6>/dev/null
7422   ac_configure_extra_args="$ac_configure_extra_args --silent"
7423 fi
7424
7425 _ACEOF
7426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7427 if \$ac_cs_recheck; then
7428   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7429   shift
7430   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7431   CONFIG_SHELL='$SHELL'
7432   export CONFIG_SHELL
7433   exec "\$@"
7434 fi
7435
7436 _ACEOF
7437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7438 exec 5>>config.log
7439 {
7440   echo
7441   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7442 ## Running $as_me. ##
7443 _ASBOX
7444   $as_echo "$ac_log"
7445 } >&5
7446
7447 _ACEOF
7448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7449 #
7450 # INIT-COMMANDS
7451 #
7452 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7453
7454 _ACEOF
7455
7456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7457
7458 # Handling of arguments.
7459 for ac_config_target in $ac_config_targets
7460 do
7461   case $ac_config_target in
7462     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7463     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7464     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7465     "contrib/spamass-milter.spec") CONFIG_FILES="$CONFIG_FILES contrib/spamass-milter.spec" ;;
7466     "spamass-milter.1") CONFIG_FILES="$CONFIG_FILES spamass-milter.1" ;;
7467
7468   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7469   esac
7470 done
7471
7472
7473 # If the user did not use the arguments to specify the items to instantiate,
7474 # then the envvar interface is used.  Set only those that are not.
7475 # We use the long form for the default assignment because of an extremely
7476 # bizarre bug on SunOS 4.1.3.
7477 if $ac_need_defaults; then
7478   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7479   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7480   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7481 fi
7482
7483 # Have a temporary directory for convenience.  Make it in the build tree
7484 # simply because there is no reason against having it here, and in addition,
7485 # creating and moving files from /tmp can sometimes cause problems.
7486 # Hook for its removal unless debugging.
7487 # Note that there is a small window in which the directory will not be cleaned:
7488 # after its creation but before its name has been assigned to `$tmp'.
7489 $debug ||
7490 {
7491   tmp= ac_tmp=
7492   trap 'exit_status=$?
7493   : "${ac_tmp:=$tmp}"
7494   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7495 ' 0
7496   trap 'as_fn_exit 1' 1 2 13 15
7497 }
7498 # Create a (secure) tmp directory for tmp files.
7499
7500 {
7501   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7502   test -d "$tmp"
7503 }  ||
7504 {
7505   tmp=./conf$$-$RANDOM
7506   (umask 077 && mkdir "$tmp")
7507 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7508 ac_tmp=$tmp
7509
7510 # Set up the scripts for CONFIG_FILES section.
7511 # No need to generate them if there are no CONFIG_FILES.
7512 # This happens for instance with `./config.status config.h'.
7513 if test -n "$CONFIG_FILES"; then
7514
7515
7516 ac_cr=`echo X | tr X '\015'`
7517 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7518 # But we know of no other shell where ac_cr would be empty at this
7519 # point, so we can use a bashism as a fallback.
7520 if test "x$ac_cr" = x; then
7521   eval ac_cr=\$\'\\r\'
7522 fi
7523 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7524 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7525   ac_cs_awk_cr='\\r'
7526 else
7527   ac_cs_awk_cr=$ac_cr
7528 fi
7529
7530 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7531 _ACEOF
7532
7533
7534 {
7535   echo "cat >conf$$subs.awk <<_ACEOF" &&
7536   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7537   echo "_ACEOF"
7538 } >conf$$subs.sh ||
7539   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7540 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7541 ac_delim='%!_!# '
7542 for ac_last_try in false false false false false :; do
7543   . ./conf$$subs.sh ||
7544     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7545
7546   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7547   if test $ac_delim_n = $ac_delim_num; then
7548     break
7549   elif $ac_last_try; then
7550     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7551   else
7552     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7553   fi
7554 done
7555 rm -f conf$$subs.sh
7556
7557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7558 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7559 _ACEOF
7560 sed -n '
7561 h
7562 s/^/S["/; s/!.*/"]=/
7563 p
7564 g
7565 s/^[^!]*!//
7566 :repl
7567 t repl
7568 s/'"$ac_delim"'$//
7569 t delim
7570 :nl
7571 h
7572 s/\(.\{148\}\)..*/\1/
7573 t more1
7574 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7575 p
7576 n
7577 b repl
7578 :more1
7579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7580 p
7581 g
7582 s/.\{148\}//
7583 t nl
7584 :delim
7585 h
7586 s/\(.\{148\}\)..*/\1/
7587 t more2
7588 s/["\\]/\\&/g; s/^/"/; s/$/"/
7589 p
7590 b
7591 :more2
7592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7593 p
7594 g
7595 s/.\{148\}//
7596 t delim
7597 ' <conf$$subs.awk | sed '
7598 /^[^""]/{
7599   N
7600   s/\n//
7601 }
7602 ' >>$CONFIG_STATUS || ac_write_fail=1
7603 rm -f conf$$subs.awk
7604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7605 _ACAWK
7606 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7607   for (key in S) S_is_set[key] = 1
7608   FS = "\a"
7609
7610 }
7611 {
7612   line = $ 0
7613   nfields = split(line, field, "@")
7614   substed = 0
7615   len = length(field[1])
7616   for (i = 2; i < nfields; i++) {
7617     key = field[i]
7618     keylen = length(key)
7619     if (S_is_set[key]) {
7620       value = S[key]
7621       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7622       len += length(value) + length(field[++i])
7623       substed = 1
7624     } else
7625       len += 1 + keylen
7626   }
7627
7628   print line
7629 }
7630
7631 _ACAWK
7632 _ACEOF
7633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7634 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7635   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7636 else
7637   cat
7638 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7639   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7640 _ACEOF
7641
7642 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7643 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7644 # trailing colons and then remove the whole line if VPATH becomes empty
7645 # (actually we leave an empty line to preserve line numbers).
7646 if test "x$srcdir" = x.; then
7647   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7648 h
7649 s///
7650 s/^/:/
7651 s/[      ]*$/:/
7652 s/:\$(srcdir):/:/g
7653 s/:\${srcdir}:/:/g
7654 s/:@srcdir@:/:/g
7655 s/^:*//
7656 s/:*$//
7657 x
7658 s/\(=[   ]*\).*/\1/
7659 G
7660 s/\n//
7661 s/^[^=]*=[       ]*$//
7662 }'
7663 fi
7664
7665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7666 fi # test -n "$CONFIG_FILES"
7667
7668 # Set up the scripts for CONFIG_HEADERS section.
7669 # No need to generate them if there are no CONFIG_HEADERS.
7670 # This happens for instance with `./config.status Makefile'.
7671 if test -n "$CONFIG_HEADERS"; then
7672 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7673 BEGIN {
7674 _ACEOF
7675
7676 # Transform confdefs.h into an awk script `defines.awk', embedded as
7677 # here-document in config.status, that substitutes the proper values into
7678 # config.h.in to produce config.h.
7679
7680 # Create a delimiter string that does not exist in confdefs.h, to ease
7681 # handling of long lines.
7682 ac_delim='%!_!# '
7683 for ac_last_try in false false :; do
7684   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7685   if test -z "$ac_tt"; then
7686     break
7687   elif $ac_last_try; then
7688     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7689   else
7690     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7691   fi
7692 done
7693
7694 # For the awk script, D is an array of macro values keyed by name,
7695 # likewise P contains macro parameters if any.  Preserve backslash
7696 # newline sequences.
7697
7698 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7699 sed -n '
7700 s/.\{148\}/&'"$ac_delim"'/g
7701 t rset
7702 :rset
7703 s/^[     ]*#[    ]*define[       ][      ]*/ /
7704 t def
7705 d
7706 :def
7707 s/\\$//
7708 t bsnl
7709 s/["\\]/\\&/g
7710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7711 D["\1"]=" \3"/p
7712 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7713 d
7714 :bsnl
7715 s/["\\]/\\&/g
7716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7717 D["\1"]=" \3\\\\\\n"\\/p
7718 t cont
7719 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7720 t cont
7721 d
7722 :cont
7723 n
7724 s/.\{148\}/&'"$ac_delim"'/g
7725 t clear
7726 :clear
7727 s/\\$//
7728 t bsnlc
7729 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7730 d
7731 :bsnlc
7732 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7733 b cont
7734 ' <confdefs.h | sed '
7735 s/'"$ac_delim"'/"\\\
7736 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7737
7738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7739   for (key in D) D_is_set[key] = 1
7740   FS = "\a"
7741 }
7742 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7743   line = \$ 0
7744   split(line, arg, " ")
7745   if (arg[1] == "#") {
7746     defundef = arg[2]
7747     mac1 = arg[3]
7748   } else {
7749     defundef = substr(arg[1], 2)
7750     mac1 = arg[2]
7751   }
7752   split(mac1, mac2, "(") #)
7753   macro = mac2[1]
7754   prefix = substr(line, 1, index(line, defundef) - 1)
7755   if (D_is_set[macro]) {
7756     # Preserve the white space surrounding the "#".
7757     print prefix "define", macro P[macro] D[macro]
7758     next
7759   } else {
7760     # Replace #undef with comments.  This is necessary, for example,
7761     # in the case of _POSIX_SOURCE, which is predefined and required
7762     # on some systems where configure will not decide to define it.
7763     if (defundef == "undef") {
7764       print "/*", prefix defundef, macro, "*/"
7765       next
7766     }
7767   }
7768 }
7769 { print }
7770 _ACAWK
7771 _ACEOF
7772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7773   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7774 fi # test -n "$CONFIG_HEADERS"
7775
7776
7777 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7778 shift
7779 for ac_tag
7780 do
7781   case $ac_tag in
7782   :[FHLC]) ac_mode=$ac_tag; continue;;
7783   esac
7784   case $ac_mode$ac_tag in
7785   :[FHL]*:*);;
7786   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7787   :[FH]-) ac_tag=-:-;;
7788   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7789   esac
7790   ac_save_IFS=$IFS
7791   IFS=:
7792   set x $ac_tag
7793   IFS=$ac_save_IFS
7794   shift
7795   ac_file=$1
7796   shift
7797
7798   case $ac_mode in
7799   :L) ac_source=$1;;
7800   :[FH])
7801     ac_file_inputs=
7802     for ac_f
7803     do
7804       case $ac_f in
7805       -) ac_f="$ac_tmp/stdin";;
7806       *) # Look for the file first in the build tree, then in the source tree
7807          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7808          # because $ac_f cannot contain `:'.
7809          test -f "$ac_f" ||
7810            case $ac_f in
7811            [\\/$]*) false;;
7812            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7813            esac ||
7814            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7815       esac
7816       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7817       as_fn_append ac_file_inputs " '$ac_f'"
7818     done
7819
7820     # Let's still pretend it is `configure' which instantiates (i.e., don't
7821     # use $as_me), people would be surprised to read:
7822     #    /* config.h.  Generated by config.status.  */
7823     configure_input='Generated from '`
7824           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7825         `' by configure.'
7826     if test x"$ac_file" != x-; then
7827       configure_input="$ac_file.  $configure_input"
7828       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7829 $as_echo "$as_me: creating $ac_file" >&6;}
7830     fi
7831     # Neutralize special characters interpreted by sed in replacement strings.
7832     case $configure_input in #(
7833     *\&* | *\|* | *\\* )
7834        ac_sed_conf_input=`$as_echo "$configure_input" |
7835        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7836     *) ac_sed_conf_input=$configure_input;;
7837     esac
7838
7839     case $ac_tag in
7840     *:-:* | *:-) cat >"$ac_tmp/stdin" \
7841       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7842     esac
7843     ;;
7844   esac
7845
7846   ac_dir=`$as_dirname -- "$ac_file" ||
7847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7848          X"$ac_file" : 'X\(//\)[^/]' \| \
7849          X"$ac_file" : 'X\(//\)$' \| \
7850          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7851 $as_echo X"$ac_file" |
7852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7853             s//\1/
7854             q
7855           }
7856           /^X\(\/\/\)[^/].*/{
7857             s//\1/
7858             q
7859           }
7860           /^X\(\/\/\)$/{
7861             s//\1/
7862             q
7863           }
7864           /^X\(\/\).*/{
7865             s//\1/
7866             q
7867           }
7868           s/.*/./; q'`
7869   as_dir="$ac_dir"; as_fn_mkdir_p
7870   ac_builddir=.
7871
7872 case "$ac_dir" in
7873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7874 *)
7875   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7876   # A ".." for each directory in $ac_dir_suffix.
7877   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7878   case $ac_top_builddir_sub in
7879   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7880   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7881   esac ;;
7882 esac
7883 ac_abs_top_builddir=$ac_pwd
7884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7885 # for backward compatibility:
7886 ac_top_builddir=$ac_top_build_prefix
7887
7888 case $srcdir in
7889   .)  # We are building in place.
7890     ac_srcdir=.
7891     ac_top_srcdir=$ac_top_builddir_sub
7892     ac_abs_top_srcdir=$ac_pwd ;;
7893   [\\/]* | ?:[\\/]* )  # Absolute name.
7894     ac_srcdir=$srcdir$ac_dir_suffix;
7895     ac_top_srcdir=$srcdir
7896     ac_abs_top_srcdir=$srcdir ;;
7897   *) # Relative name.
7898     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7899     ac_top_srcdir=$ac_top_build_prefix$srcdir
7900     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7901 esac
7902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7903
7904
7905   case $ac_mode in
7906   :F)
7907   #
7908   # CONFIG_FILE
7909   #
7910
7911   case $INSTALL in
7912   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7913   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7914   esac
7915   ac_MKDIR_P=$MKDIR_P
7916   case $MKDIR_P in
7917   [\\/$]* | ?:[\\/]* ) ;;
7918   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7919   esac
7920 _ACEOF
7921
7922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7923 # If the template does not know about datarootdir, expand it.
7924 # FIXME: This hack should be removed a few years after 2.60.
7925 ac_datarootdir_hack=; ac_datarootdir_seen=
7926 ac_sed_dataroot='
7927 /datarootdir/ {
7928   p
7929   q
7930 }
7931 /@datadir@/p
7932 /@docdir@/p
7933 /@infodir@/p
7934 /@localedir@/p
7935 /@mandir@/p'
7936 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7937 *datarootdir*) ac_datarootdir_seen=yes;;
7938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7940 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7941 _ACEOF
7942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7943   ac_datarootdir_hack='
7944   s&@datadir@&$datadir&g
7945   s&@docdir@&$docdir&g
7946   s&@infodir@&$infodir&g
7947   s&@localedir@&$localedir&g
7948   s&@mandir@&$mandir&g
7949   s&\\\${datarootdir}&$datarootdir&g' ;;
7950 esac
7951 _ACEOF
7952
7953 # Neutralize VPATH when `$srcdir' = `.'.
7954 # Shell code in configure.ac might set extrasub.
7955 # FIXME: do we really want to maintain this feature?
7956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7957 ac_sed_extra="$ac_vpsub
7958 $extrasub
7959 _ACEOF
7960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7961 :t
7962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7963 s|@configure_input@|$ac_sed_conf_input|;t t
7964 s&@top_builddir@&$ac_top_builddir_sub&;t t
7965 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7966 s&@srcdir@&$ac_srcdir&;t t
7967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7968 s&@top_srcdir@&$ac_top_srcdir&;t t
7969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7970 s&@builddir@&$ac_builddir&;t t
7971 s&@abs_builddir@&$ac_abs_builddir&;t t
7972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7973 s&@INSTALL@&$ac_INSTALL&;t t
7974 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7975 $ac_datarootdir_hack
7976 "
7977 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7978   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7979
7980 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7981   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7982   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7983       "$ac_tmp/out"`; test -z "$ac_out"; } &&
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7985 which seems to be undefined.  Please make sure it is defined" >&5
7986 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7987 which seems to be undefined.  Please make sure it is defined" >&2;}
7988
7989   rm -f "$ac_tmp/stdin"
7990   case $ac_file in
7991   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7992   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7993   esac \
7994   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7995  ;;
7996   :H)
7997   #
7998   # CONFIG_HEADER
7999   #
8000   if test x"$ac_file" != x-; then
8001     {
8002       $as_echo "/* $configure_input  */" \
8003       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8004     } >"$ac_tmp/config.h" \
8005       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8006     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8007       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8008 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8009     else
8010       rm -f "$ac_file"
8011       mv "$ac_tmp/config.h" "$ac_file" \
8012         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8013     fi
8014   else
8015     $as_echo "/* $configure_input  */" \
8016       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8017       || as_fn_error $? "could not create -" "$LINENO" 5
8018   fi
8019 # Compute "$ac_file"'s index in $config_headers.
8020 _am_arg="$ac_file"
8021 _am_stamp_count=1
8022 for _am_header in $config_headers :; do
8023   case $_am_header in
8024     $_am_arg | $_am_arg:* )
8025       break ;;
8026     * )
8027       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8028   esac
8029 done
8030 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8031 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8032          X"$_am_arg" : 'X\(//\)[^/]' \| \
8033          X"$_am_arg" : 'X\(//\)$' \| \
8034          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8035 $as_echo X"$_am_arg" |
8036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8037             s//\1/
8038             q
8039           }
8040           /^X\(\/\/\)[^/].*/{
8041             s//\1/
8042             q
8043           }
8044           /^X\(\/\/\)$/{
8045             s//\1/
8046             q
8047           }
8048           /^X\(\/\).*/{
8049             s//\1/
8050             q
8051           }
8052           s/.*/./; q'`/stamp-h$_am_stamp_count
8053  ;;
8054
8055   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8056 $as_echo "$as_me: executing $ac_file commands" >&6;}
8057  ;;
8058   esac
8059
8060
8061   case $ac_file$ac_mode in
8062     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8063   # Older Autoconf quotes --file arguments for eval, but not when files
8064   # are listed without --file.  Let's play safe and only enable the eval
8065   # if we detect the quoting.
8066   case $CONFIG_FILES in
8067   *\'*) eval set x "$CONFIG_FILES" ;;
8068   *)   set x $CONFIG_FILES ;;
8069   esac
8070   shift
8071   for mf
8072   do
8073     # Strip MF so we end up with the name of the file.
8074     mf=`echo "$mf" | sed -e 's/:.*$//'`
8075     # Check whether this is an Automake generated Makefile or not.
8076     # We used to match only the files named 'Makefile.in', but
8077     # some people rename them; so instead we look at the file content.
8078     # Grep'ing the first line is not enough: some people post-process
8079     # each Makefile.in and add a new line on top of each file to say so.
8080     # Grep'ing the whole file is not good either: AIX grep has a line
8081     # limit of 2048, but all sed's we know have understand at least 4000.
8082     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8083       dirpart=`$as_dirname -- "$mf" ||
8084 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8085          X"$mf" : 'X\(//\)[^/]' \| \
8086          X"$mf" : 'X\(//\)$' \| \
8087          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8088 $as_echo X"$mf" |
8089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8090             s//\1/
8091             q
8092           }
8093           /^X\(\/\/\)[^/].*/{
8094             s//\1/
8095             q
8096           }
8097           /^X\(\/\/\)$/{
8098             s//\1/
8099             q
8100           }
8101           /^X\(\/\).*/{
8102             s//\1/
8103             q
8104           }
8105           s/.*/./; q'`
8106     else
8107       continue
8108     fi
8109     # Extract the definition of DEPDIR, am__include, and am__quote
8110     # from the Makefile without running 'make'.
8111     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8112     test -z "$DEPDIR" && continue
8113     am__include=`sed -n 's/^am__include = //p' < "$mf"`
8114     test -z "$am__include" && continue
8115     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8116     # Find all dependency output files, they are included files with
8117     # $(DEPDIR) in their names.  We invoke sed twice because it is the
8118     # simplest approach to changing $(DEPDIR) to its actual value in the
8119     # expansion.
8120     for file in `sed -n "
8121       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8122          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8123       # Make sure the directory exists.
8124       test -f "$dirpart/$file" && continue
8125       fdir=`$as_dirname -- "$file" ||
8126 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8127          X"$file" : 'X\(//\)[^/]' \| \
8128          X"$file" : 'X\(//\)$' \| \
8129          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8130 $as_echo X"$file" |
8131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8132             s//\1/
8133             q
8134           }
8135           /^X\(\/\/\)[^/].*/{
8136             s//\1/
8137             q
8138           }
8139           /^X\(\/\/\)$/{
8140             s//\1/
8141             q
8142           }
8143           /^X\(\/\).*/{
8144             s//\1/
8145             q
8146           }
8147           s/.*/./; q'`
8148       as_dir=$dirpart/$fdir; as_fn_mkdir_p
8149       # echo "creating $dirpart/$file"
8150       echo '# dummy' > "$dirpart/$file"
8151     done
8152   done
8153 }
8154  ;;
8155
8156   esac
8157 done # for ac_tag
8158
8159
8160 as_fn_exit 0
8161 _ACEOF
8162 ac_clean_files=$ac_clean_files_save
8163
8164 test $ac_write_fail = 0 ||
8165   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8166
8167
8168 # configure is writing to config.log, and then calls config.status.
8169 # config.status does its own redirection, appending to config.log.
8170 # Unfortunately, on DOS this fails, as config.log is still kept open
8171 # by configure, so config.status won't be able to write to it; its
8172 # output is simply discarded.  So we exec the FD to /dev/null,
8173 # effectively closing config.log, so it can be properly (re)opened and
8174 # appended to by config.status.  When coming back to configure, we
8175 # need to make the FD available again.
8176 if test "$no_create" != yes; then
8177   ac_cs_success=:
8178   ac_config_status_args=
8179   test "$silent" = yes &&
8180     ac_config_status_args="$ac_config_status_args --quiet"
8181   exec 5>/dev/null
8182   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8183   exec 5>>config.log
8184   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8185   # would make configure fail if this is the last instruction.
8186   $ac_cs_success || as_fn_exit 1
8187 fi
8188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8191 fi
8192