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