1#! /bin/sh
2# From configure.ac Id: configure.ac.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for clamassassin 1.2.4.
5#
6# Report bugs to <james.lick@gmail.com>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77  	  /^X\/\(\/\).*/{ s//\1/; q; }
78  	  s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139	 case $as_dir in
140	 /*)
141	   if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149	     CONFIG_SHELL=$as_dir/$as_base
150	     export CONFIG_SHELL
151	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152	   fi;;
153	 esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='	' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" 	$as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete.  It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='clamassassin'
272PACKAGE_TARNAME='clamassassin'
273PACKAGE_VERSION='1.2.4'
274PACKAGE_STRING='clamassassin 1.2.4'
275PACKAGE_BUGREPORT='james.lick@gmail.com'
276
277ac_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 CONF_RM CONF_CAT CONF_SED CONF_ECHO CONF_FORMAIL CONF_MKTEMP CONF_SIGTOOL CONF_CLAMSCAN CONF_CLAMSCANNER CONF_CLAMDSCAN CONF_CLAMSCANOPT CONF_SIGLOC CONF_SIGVERSFLAG CONF_ADDSCANNERFLAG CONF_TMP CONF_SUBJECTHEAD LIBOBJS LTLIBOBJS'
278ac_subst_files=''
279
280# Initialize some variables set by options.
281ac_init_help=
282ac_init_version=false
283# The variables have the same names as the options, with
284# dashes changed to underlines.
285cache_file=/dev/null
286exec_prefix=NONE
287no_create=
288no_recursion=
289prefix=NONE
290program_prefix=NONE
291program_suffix=NONE
292program_transform_name=s,x,x,
293silent=
294site=
295srcdir=
296verbose=
297x_includes=NONE
298x_libraries=NONE
299
300# Installation directory options.
301# These are left unexpanded so users can "make install exec_prefix=/foo"
302# and all the variables that are supposed to be based on exec_prefix
303# by default will actually change.
304# Use braces instead of parens because sh, perl, etc. also accept them.
305bindir='${exec_prefix}/bin'
306sbindir='${exec_prefix}/sbin'
307libexecdir='${exec_prefix}/libexec'
308datadir='${prefix}/share'
309sysconfdir='${prefix}/etc'
310sharedstatedir='${prefix}/com'
311localstatedir='${prefix}/var'
312libdir='${exec_prefix}/lib'
313includedir='${prefix}/include'
314oldincludedir='/usr/include'
315infodir='${prefix}/info'
316mandir='${prefix}/man'
317
318ac_prev=
319for ac_option
320do
321  # If the previous option needs an argument, assign it.
322  if test -n "$ac_prev"; then
323    eval "$ac_prev=\$ac_option"
324    ac_prev=
325    continue
326  fi
327
328  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329
330  # Accept the important Cygnus configure options, so we can diagnose typos.
331
332  case $ac_option in
333
334  -bindir | --bindir | --bindi | --bind | --bin | --bi)
335    ac_prev=bindir ;;
336  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337    bindir=$ac_optarg ;;
338
339  -build | --build | --buil | --bui | --bu)
340    ac_prev=build_alias ;;
341  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
342    build_alias=$ac_optarg ;;
343
344  -cache-file | --cache-file | --cache-fil | --cache-fi \
345  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
346    ac_prev=cache_file ;;
347  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
348  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
349    cache_file=$ac_optarg ;;
350
351  --config-cache | -C)
352    cache_file=config.cache ;;
353
354  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355    ac_prev=datadir ;;
356  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357  | --da=*)
358    datadir=$ac_optarg ;;
359
360  -disable-* | --disable-*)
361    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
362    # Reject names that are not valid shell variable names.
363    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365   { (exit 1); exit 1; }; }
366    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
367    eval "enable_$ac_feature=no" ;;
368
369  -enable-* | --enable-*)
370    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
371    # Reject names that are not valid shell variable names.
372    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
373      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
374   { (exit 1); exit 1; }; }
375    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376    case $ac_option in
377      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378      *) ac_optarg=yes ;;
379    esac
380    eval "enable_$ac_feature='$ac_optarg'" ;;
381
382  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
383  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
384  | --exec | --exe | --ex)
385    ac_prev=exec_prefix ;;
386  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
387  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
388  | --exec=* | --exe=* | --ex=*)
389    exec_prefix=$ac_optarg ;;
390
391  -gas | --gas | --ga | --g)
392    # Obsolete; use --with-gas.
393    with_gas=yes ;;
394
395  -help | --help | --hel | --he | -h)
396    ac_init_help=long ;;
397  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
398    ac_init_help=recursive ;;
399  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
400    ac_init_help=short ;;
401
402  -host | --host | --hos | --ho)
403    ac_prev=host_alias ;;
404  -host=* | --host=* | --hos=* | --ho=*)
405    host_alias=$ac_optarg ;;
406
407  -includedir | --includedir | --includedi | --included | --include \
408  | --includ | --inclu | --incl | --inc)
409    ac_prev=includedir ;;
410  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
411  | --includ=* | --inclu=* | --incl=* | --inc=*)
412    includedir=$ac_optarg ;;
413
414  -infodir | --infodir | --infodi | --infod | --info | --inf)
415    ac_prev=infodir ;;
416  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
417    infodir=$ac_optarg ;;
418
419  -libdir | --libdir | --libdi | --libd)
420    ac_prev=libdir ;;
421  -libdir=* | --libdir=* | --libdi=* | --libd=*)
422    libdir=$ac_optarg ;;
423
424  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
425  | --libexe | --libex | --libe)
426    ac_prev=libexecdir ;;
427  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
428  | --libexe=* | --libex=* | --libe=*)
429    libexecdir=$ac_optarg ;;
430
431  -localstatedir | --localstatedir | --localstatedi | --localstated \
432  | --localstate | --localstat | --localsta | --localst \
433  | --locals | --local | --loca | --loc | --lo)
434    ac_prev=localstatedir ;;
435  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
436  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
437  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
438    localstatedir=$ac_optarg ;;
439
440  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441    ac_prev=mandir ;;
442  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
443    mandir=$ac_optarg ;;
444
445  -nfp | --nfp | --nf)
446    # Obsolete; use --without-fp.
447    with_fp=no ;;
448
449  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450  | --no-cr | --no-c | -n)
451    no_create=yes ;;
452
453  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455    no_recursion=yes ;;
456
457  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
458  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
459  | --oldin | --oldi | --old | --ol | --o)
460    ac_prev=oldincludedir ;;
461  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
462  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
463  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
464    oldincludedir=$ac_optarg ;;
465
466  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467    ac_prev=prefix ;;
468  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469    prefix=$ac_optarg ;;
470
471  -program-prefix | --program-prefix | --program-prefi | --program-pref \
472  | --program-pre | --program-pr | --program-p)
473    ac_prev=program_prefix ;;
474  -program-prefix=* | --program-prefix=* | --program-prefi=* \
475  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
476    program_prefix=$ac_optarg ;;
477
478  -program-suffix | --program-suffix | --program-suffi | --program-suff \
479  | --program-suf | --program-su | --program-s)
480    ac_prev=program_suffix ;;
481  -program-suffix=* | --program-suffix=* | --program-suffi=* \
482  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
483    program_suffix=$ac_optarg ;;
484
485  -program-transform-name | --program-transform-name \
486  | --program-transform-nam | --program-transform-na \
487  | --program-transform-n | --program-transform- \
488  | --program-transform | --program-transfor \
489  | --program-transfo | --program-transf \
490  | --program-trans | --program-tran \
491  | --progr-tra | --program-tr | --program-t)
492    ac_prev=program_transform_name ;;
493  -program-transform-name=* | --program-transform-name=* \
494  | --program-transform-nam=* | --program-transform-na=* \
495  | --program-transform-n=* | --program-transform-=* \
496  | --program-transform=* | --program-transfor=* \
497  | --program-transfo=* | --program-transf=* \
498  | --program-trans=* | --program-tran=* \
499  | --progr-tra=* | --program-tr=* | --program-t=*)
500    program_transform_name=$ac_optarg ;;
501
502  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
503  | -silent | --silent | --silen | --sile | --sil)
504    silent=yes ;;
505
506  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507    ac_prev=sbindir ;;
508  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509  | --sbi=* | --sb=*)
510    sbindir=$ac_optarg ;;
511
512  -sharedstatedir | --sharedstatedir | --sharedstatedi \
513  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
514  | --sharedst | --shareds | --shared | --share | --shar \
515  | --sha | --sh)
516    ac_prev=sharedstatedir ;;
517  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
518  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
519  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520  | --sha=* | --sh=*)
521    sharedstatedir=$ac_optarg ;;
522
523  -site | --site | --sit)
524    ac_prev=site ;;
525  -site=* | --site=* | --sit=*)
526    site=$ac_optarg ;;
527
528  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529    ac_prev=srcdir ;;
530  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531    srcdir=$ac_optarg ;;
532
533  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
534  | --syscon | --sysco | --sysc | --sys | --sy)
535    ac_prev=sysconfdir ;;
536  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
537  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
538    sysconfdir=$ac_optarg ;;
539
540  -target | --target | --targe | --targ | --tar | --ta | --t)
541    ac_prev=target_alias ;;
542  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
543    target_alias=$ac_optarg ;;
544
545  -v | -verbose | --verbose | --verbos | --verbo | --verb)
546    verbose=yes ;;
547
548  -version | --version | --versio | --versi | --vers | -V)
549    ac_init_version=: ;;
550
551  -with-* | --with-*)
552    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid package name: $ac_package" >&2
556   { (exit 1); exit 1; }; }
557    ac_package=`echo $ac_package| sed 's/-/_/g'`
558    case $ac_option in
559      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560      *) ac_optarg=yes ;;
561    esac
562    eval "with_$ac_package='$ac_optarg'" ;;
563
564  -without-* | --without-*)
565    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
566    # Reject names that are not valid shell variable names.
567    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568      { echo "$as_me: error: invalid package name: $ac_package" >&2
569   { (exit 1); exit 1; }; }
570    ac_package=`echo $ac_package | sed 's/-/_/g'`
571    eval "with_$ac_package=no" ;;
572
573  --x)
574    # Obsolete; use --with-x.
575    with_x=yes ;;
576
577  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
578  | --x-incl | --x-inc | --x-in | --x-i)
579    ac_prev=x_includes ;;
580  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
581  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
582    x_includes=$ac_optarg ;;
583
584  -x-libraries | --x-libraries | --x-librarie | --x-librari \
585  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
586    ac_prev=x_libraries ;;
587  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
588  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
589    x_libraries=$ac_optarg ;;
590
591  -*) { echo "$as_me: error: unrecognized option: $ac_option
592Try \`$0 --help' for more information." >&2
593   { (exit 1); exit 1; }; }
594    ;;
595
596  *=*)
597    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
598    # Reject names that are not valid shell variable names.
599    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
600      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
601   { (exit 1); exit 1; }; }
602    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
603    eval "$ac_envvar='$ac_optarg'"
604    export $ac_envvar ;;
605
606  *)
607    # FIXME: should be removed in autoconf 3.0.
608    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
609    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
610      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
611    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612    ;;
613
614  esac
615done
616
617if test -n "$ac_prev"; then
618  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
619  { echo "$as_me: error: missing argument to $ac_option" >&2
620   { (exit 1); exit 1; }; }
621fi
622
623# Be sure to have absolute paths.
624for ac_var in exec_prefix prefix
625do
626  eval ac_val=$`echo $ac_var`
627  case $ac_val in
628    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
629    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
630   { (exit 1); exit 1; }; };;
631  esac
632done
633
634# Be sure to have absolute paths.
635for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
636	      localstatedir libdir includedir oldincludedir infodir mandir
637do
638  eval ac_val=$`echo $ac_var`
639  case $ac_val in
640    [\\/$]* | ?:[\\/]* ) ;;
641    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
642   { (exit 1); exit 1; }; };;
643  esac
644done
645
646# There might be people who depend on the old broken behavior: `$host'
647# used to hold the argument of --host etc.
648# FIXME: To remove some day.
649build=$build_alias
650host=$host_alias
651target=$target_alias
652
653# FIXME: To remove some day.
654if test "x$host_alias" != x; then
655  if test "x$build_alias" = x; then
656    cross_compiling=maybe
657    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
658    If a cross compiler is detected then cross compile mode will be used." >&2
659  elif test "x$build_alias" != "x$host_alias"; then
660    cross_compiling=yes
661  fi
662fi
663
664ac_tool_prefix=
665test -n "$host_alias" && ac_tool_prefix=$host_alias-
666
667test "$silent" = yes && exec 6>/dev/null
668
669
670# Find the source files, if location was not specified.
671if test -z "$srcdir"; then
672  ac_srcdir_defaulted=yes
673  # Try the directory containing this script, then its parent.
674  ac_confdir=`(dirname "$0") 2>/dev/null ||
675$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
676	 X"$0" : 'X\(//\)[^/]' \| \
677	 X"$0" : 'X\(//\)$' \| \
678	 X"$0" : 'X\(/\)' \| \
679	 .     : '\(.\)' 2>/dev/null ||
680echo X"$0" |
681    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
682  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
683  	  /^X\(\/\/\)$/{ s//\1/; q; }
684  	  /^X\(\/\).*/{ s//\1/; q; }
685  	  s/.*/./; q'`
686  srcdir=$ac_confdir
687  if test ! -r $srcdir/$ac_unique_file; then
688    srcdir=..
689  fi
690else
691  ac_srcdir_defaulted=no
692fi
693if test ! -r $srcdir/$ac_unique_file; then
694  if test "$ac_srcdir_defaulted" = yes; then
695    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
696   { (exit 1); exit 1; }; }
697  else
698    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
699   { (exit 1); exit 1; }; }
700  fi
701fi
702(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
703  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
704   { (exit 1); exit 1; }; }
705srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
706ac_env_build_alias_set=${build_alias+set}
707ac_env_build_alias_value=$build_alias
708ac_cv_env_build_alias_set=${build_alias+set}
709ac_cv_env_build_alias_value=$build_alias
710ac_env_host_alias_set=${host_alias+set}
711ac_env_host_alias_value=$host_alias
712ac_cv_env_host_alias_set=${host_alias+set}
713ac_cv_env_host_alias_value=$host_alias
714ac_env_target_alias_set=${target_alias+set}
715ac_env_target_alias_value=$target_alias
716ac_cv_env_target_alias_set=${target_alias+set}
717ac_cv_env_target_alias_value=$target_alias
718
719#
720# Report the --help message.
721#
722if test "$ac_init_help" = "long"; then
723  # Omit some internal or obsolete options to make the list less imposing.
724  # This message is too long to be a string in the A/UX 3.1 sh.
725  cat <<_ACEOF
726\`configure' configures clamassassin 1.2.4 to adapt to many kinds of systems.
727
728Usage: $0 [OPTION]... [VAR=VALUE]...
729
730To assign environment variables (e.g., CC, CFLAGS...), specify them as
731VAR=VALUE.  See below for descriptions of some of the useful variables.
732
733Defaults for the options are specified in brackets.
734
735Configuration:
736  -h, --help              display this help and exit
737      --help=short        display options specific to this package
738      --help=recursive    display the short help of all the included packages
739  -V, --version           display version information and exit
740  -q, --quiet, --silent   do not print \`checking...' messages
741      --cache-file=FILE   cache test results in FILE [disabled]
742  -C, --config-cache      alias for \`--cache-file=config.cache'
743  -n, --no-create         do not create output files
744      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
745
746_ACEOF
747
748  cat <<_ACEOF
749Installation directories:
750  --prefix=PREFIX         install architecture-independent files in PREFIX
751			  [$ac_default_prefix]
752  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
753			  [PREFIX]
754
755By default, \`make install' will install all the files in
756\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
757an installation prefix other than \`$ac_default_prefix' using \`--prefix',
758for instance \`--prefix=\$HOME'.
759
760For better control, use the options below.
761
762Fine tuning of the installation directories:
763  --bindir=DIR           user executables [EPREFIX/bin]
764  --sbindir=DIR          system admin executables [EPREFIX/sbin]
765  --libexecdir=DIR       program executables [EPREFIX/libexec]
766  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
767  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
768  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
769  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
770  --libdir=DIR           object code libraries [EPREFIX/lib]
771  --includedir=DIR       C header files [PREFIX/include]
772  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
773  --infodir=DIR          info documentation [PREFIX/info]
774  --mandir=DIR           man documentation [PREFIX/man]
775_ACEOF
776
777  cat <<\_ACEOF
778_ACEOF
779fi
780
781if test -n "$ac_init_help"; then
782  case $ac_init_help in
783     short | recursive ) echo "Configuration of clamassassin 1.2.4:";;
784   esac
785  cat <<\_ACEOF
786
787Optional Features:
788  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
789  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
790  --enable-clamdscan
791	Force clamassassin to use clamdscan even if /tmp/clamd not found.
792  --disable-clamdscan
793	Force clamassassin not to use clamdscan even if /tmp/clamd found.
794  --enable-version-check
795	(default) Checks ClamAV version for compatibility.
796  --disable-version-check
797	Skips checking ClamAV version for compatibility.
798  --enable-signature-version
799	Turns on signature version reporting
800  --disable-signature-version
801	Turns off signature version reporting (default)
802  --enable-name-adding
803	Turns on adding of scanner name (default)
804  --disable-name-adding
805	Turns off adding of scanner name
806  --enable-subject-rewrite[=message]
807        When a virus is detected, rewrite Subject: header to be
808        prefixed with *****VIRUS***** or [message] if specified
809  --disable-subject-rewrite
810        Do not do Subject: header rewriting (default)
811
812Report bugs to <james.lick@gmail.com>.
813_ACEOF
814fi
815
816if test "$ac_init_help" = "recursive"; then
817  # If there are subdirs, report their specific --help.
818  ac_popdir=`pwd`
819  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
820    test -d $ac_dir || continue
821    ac_builddir=.
822
823if test "$ac_dir" != .; then
824  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
825  # A "../" for each directory in $ac_dir_suffix.
826  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
827else
828  ac_dir_suffix= ac_top_builddir=
829fi
830
831case $srcdir in
832  .)  # No --srcdir option.  We are building in place.
833    ac_srcdir=.
834    if test -z "$ac_top_builddir"; then
835       ac_top_srcdir=.
836    else
837       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
838    fi ;;
839  [\\/]* | ?:[\\/]* )  # Absolute path.
840    ac_srcdir=$srcdir$ac_dir_suffix;
841    ac_top_srcdir=$srcdir ;;
842  *) # Relative path.
843    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
844    ac_top_srcdir=$ac_top_builddir$srcdir ;;
845esac
846
847# Do not use `cd foo && pwd` to compute absolute paths, because
848# the directories may not exist.
849case `pwd` in
850.) ac_abs_builddir="$ac_dir";;
851*)
852  case "$ac_dir" in
853  .) ac_abs_builddir=`pwd`;;
854  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
855  *) ac_abs_builddir=`pwd`/"$ac_dir";;
856  esac;;
857esac
858case $ac_abs_builddir in
859.) ac_abs_top_builddir=${ac_top_builddir}.;;
860*)
861  case ${ac_top_builddir}. in
862  .) ac_abs_top_builddir=$ac_abs_builddir;;
863  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
864  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
865  esac;;
866esac
867case $ac_abs_builddir in
868.) ac_abs_srcdir=$ac_srcdir;;
869*)
870  case $ac_srcdir in
871  .) ac_abs_srcdir=$ac_abs_builddir;;
872  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
873  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
874  esac;;
875esac
876case $ac_abs_builddir in
877.) ac_abs_top_srcdir=$ac_top_srcdir;;
878*)
879  case $ac_top_srcdir in
880  .) ac_abs_top_srcdir=$ac_abs_builddir;;
881  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
882  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
883  esac;;
884esac
885
886    cd $ac_dir
887    # Check for guested configure; otherwise get Cygnus style configure.
888    if test -f $ac_srcdir/configure.gnu; then
889      echo
890      $SHELL $ac_srcdir/configure.gnu  --help=recursive
891    elif test -f $ac_srcdir/configure; then
892      echo
893      $SHELL $ac_srcdir/configure  --help=recursive
894    elif test -f $ac_srcdir/configure.ac ||
895	   test -f $ac_srcdir/configure.in; then
896      echo
897      $ac_configure --help
898    else
899      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
900    fi
901    cd $ac_popdir
902  done
903fi
904
905test -n "$ac_init_help" && exit 0
906if $ac_init_version; then
907  cat <<\_ACEOF
908clamassassin configure 1.2.4
909generated by GNU Autoconf 2.59
910
911Copyright (C) 2003 Free Software Foundation, Inc.
912This configure script is free software; the Free Software Foundation
913gives unlimited permission to copy, distribute and modify it.
914_ACEOF
915  exit 0
916fi
917exec 5>config.log
918cat >&5 <<_ACEOF
919This file contains any messages produced by compilers while
920running configure, to aid debugging if configure makes a mistake.
921
922It was created by clamassassin $as_me 1.2.4, which was
923generated by GNU Autoconf 2.59.  Invocation command line was
924
925  $ $0 $@
926
927_ACEOF
928{
929cat <<_ASUNAME
930## --------- ##
931## Platform. ##
932## --------- ##
933
934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
935uname -m = `(uname -m) 2>/dev/null || echo unknown`
936uname -r = `(uname -r) 2>/dev/null || echo unknown`
937uname -s = `(uname -s) 2>/dev/null || echo unknown`
938uname -v = `(uname -v) 2>/dev/null || echo unknown`
939
940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
941/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
942
943/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
944/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
946hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
947/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
948/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
949/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
950
951_ASUNAME
952
953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
954for as_dir in $PATH
955do
956  IFS=$as_save_IFS
957  test -z "$as_dir" && as_dir=.
958  echo "PATH: $as_dir"
959done
960
961} >&5
962
963cat >&5 <<_ACEOF
964
965
966## ----------- ##
967## Core tests. ##
968## ----------- ##
969
970_ACEOF
971
972
973# Keep a trace of the command line.
974# Strip out --no-create and --no-recursion so they do not pile up.
975# Strip out --silent because we don't want to record it for future runs.
976# Also quote any args containing shell meta-characters.
977# Make two passes to allow for proper duplicate-argument suppression.
978ac_configure_args=
979ac_configure_args0=
980ac_configure_args1=
981ac_sep=
982ac_must_keep_next=false
983for ac_pass in 1 2
984do
985  for ac_arg
986  do
987    case $ac_arg in
988    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
989    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990    | -silent | --silent | --silen | --sile | --sil)
991      continue ;;
992    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
993      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
994    esac
995    case $ac_pass in
996    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
997    2)
998      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
999      if test $ac_must_keep_next = true; then
1000	ac_must_keep_next=false # Got value, back to normal.
1001      else
1002	case $ac_arg in
1003	  *=* | --config-cache | -C | -disable-* | --disable-* \
1004	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1005	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1006	  | -with-* | --with-* | -without-* | --without-* | --x)
1007	    case "$ac_configure_args0 " in
1008	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1009	    esac
1010	    ;;
1011	  -* ) ac_must_keep_next=true ;;
1012	esac
1013      fi
1014      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015      # Get rid of the leading space.
1016      ac_sep=" "
1017      ;;
1018    esac
1019  done
1020done
1021$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1022$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1023
1024# When interrupted or exit'd, cleanup temporary files, and complete
1025# config.log.  We remove comments because anyway the quotes in there
1026# would cause problems or look ugly.
1027# WARNING: Be sure not to use single quotes in there, as some shells,
1028# such as our DU 5.0 friend, will then `close' the trap.
1029trap 'exit_status=$?
1030  # Save into config.log some information that might help in debugging.
1031  {
1032    echo
1033
1034    cat <<\_ASBOX
1035## ---------------- ##
1036## Cache variables. ##
1037## ---------------- ##
1038_ASBOX
1039    echo
1040    # The following way of writing the cache mishandles newlines in values,
1041{
1042  (set) 2>&1 |
1043    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1044    *ac_space=\ *)
1045      sed -n \
1046	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1048      ;;
1049    *)
1050      sed -n \
1051	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1052      ;;
1053    esac;
1054}
1055    echo
1056
1057    cat <<\_ASBOX
1058## ----------------- ##
1059## Output variables. ##
1060## ----------------- ##
1061_ASBOX
1062    echo
1063    for ac_var in $ac_subst_vars
1064    do
1065      eval ac_val=$`echo $ac_var`
1066      echo "$ac_var='"'"'$ac_val'"'"'"
1067    done | sort
1068    echo
1069
1070    if test -n "$ac_subst_files"; then
1071      cat <<\_ASBOX
1072## ------------- ##
1073## Output files. ##
1074## ------------- ##
1075_ASBOX
1076      echo
1077      for ac_var in $ac_subst_files
1078      do
1079	eval ac_val=$`echo $ac_var`
1080	echo "$ac_var='"'"'$ac_val'"'"'"
1081      done | sort
1082      echo
1083    fi
1084
1085    if test -s confdefs.h; then
1086      cat <<\_ASBOX
1087## ----------- ##
1088## confdefs.h. ##
1089## ----------- ##
1090_ASBOX
1091      echo
1092      sed "/^$/d" confdefs.h | sort
1093      echo
1094    fi
1095    test "$ac_signal" != 0 &&
1096      echo "$as_me: caught signal $ac_signal"
1097    echo "$as_me: exit $exit_status"
1098  } >&5
1099  rm -f core *.core &&
1100  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1101    exit $exit_status
1102     ' 0
1103for ac_signal in 1 2 13 15; do
1104  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1105done
1106ac_signal=0
1107
1108# confdefs.h avoids OS command line length limits that DEFS can exceed.
1109rm -rf conftest* confdefs.h
1110# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1111echo >confdefs.h
1112
1113# Predefined preprocessor variables.
1114
1115cat >>confdefs.h <<_ACEOF
1116#define PACKAGE_NAME "$PACKAGE_NAME"
1117_ACEOF
1118
1119
1120cat >>confdefs.h <<_ACEOF
1121#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1122_ACEOF
1123
1124
1125cat >>confdefs.h <<_ACEOF
1126#define PACKAGE_VERSION "$PACKAGE_VERSION"
1127_ACEOF
1128
1129
1130cat >>confdefs.h <<_ACEOF
1131#define PACKAGE_STRING "$PACKAGE_STRING"
1132_ACEOF
1133
1134
1135cat >>confdefs.h <<_ACEOF
1136#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1137_ACEOF
1138
1139
1140# Let the site file select an alternate cache file if it wants to.
1141# Prefer explicitly selected file to automatically selected ones.
1142if test -z "$CONFIG_SITE"; then
1143  if test "x$prefix" != xNONE; then
1144    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1145  else
1146    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1147  fi
1148fi
1149for ac_site_file in $CONFIG_SITE; do
1150  if test -r "$ac_site_file"; then
1151    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1152echo "$as_me: loading site script $ac_site_file" >&6;}
1153    sed 's/^/| /' "$ac_site_file" >&5
1154    . "$ac_site_file"
1155  fi
1156done
1157
1158if test -r "$cache_file"; then
1159  # Some versions of bash will fail to source /dev/null (special
1160  # files actually), so we avoid doing that.
1161  if test -f "$cache_file"; then
1162    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1163echo "$as_me: loading cache $cache_file" >&6;}
1164    case $cache_file in
1165      [\\/]* | ?:[\\/]* ) . $cache_file;;
1166      *)                      . ./$cache_file;;
1167    esac
1168  fi
1169else
1170  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1171echo "$as_me: creating cache $cache_file" >&6;}
1172  >$cache_file
1173fi
1174
1175# Check that the precious variables saved in the cache have kept the same
1176# value.
1177ac_cache_corrupted=false
1178for ac_var in `(set) 2>&1 |
1179	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1180  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1181  eval ac_new_set=\$ac_env_${ac_var}_set
1182  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1183  eval ac_new_val="\$ac_env_${ac_var}_value"
1184  case $ac_old_set,$ac_new_set in
1185    set,)
1186      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1187echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1188      ac_cache_corrupted=: ;;
1189    ,set)
1190      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1191echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1192      ac_cache_corrupted=: ;;
1193    ,);;
1194    *)
1195      if test "x$ac_old_val" != "x$ac_new_val"; then
1196	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1197echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1198	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1199echo "$as_me:   former value:  $ac_old_val" >&2;}
1200	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1201echo "$as_me:   current value: $ac_new_val" >&2;}
1202	ac_cache_corrupted=:
1203      fi;;
1204  esac
1205  # Pass precious variables to config.status.
1206  if test "$ac_new_set" = set; then
1207    case $ac_new_val in
1208    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1209      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1210    *) ac_arg=$ac_var=$ac_new_val ;;
1211    esac
1212    case " $ac_configure_args " in
1213      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1214      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1215    esac
1216  fi
1217done
1218if $ac_cache_corrupted; then
1219  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1220echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1221  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1222echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1223   { (exit 1); exit 1; }; }
1224fi
1225
1226ac_ext=c
1227ac_cpp='$CPP $CPPFLAGS'
1228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1230ac_compiler_gnu=$ac_cv_c_compiler_gnu
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261                    ac_config_files="$ac_config_files clamassassin Makefile"
1262
1263
1264# Extract the first word of "rm", so it can be a program name with args.
1265set dummy rm; ac_word=$2
1266echo "$as_me:$LINENO: checking for $ac_word" >&5
1267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268if test "${ac_cv_path_CONF_RM+set}" = set; then
1269  echo $ECHO_N "(cached) $ECHO_C" >&6
1270else
1271  case $CONF_RM in
1272  [\\/]* | ?:[\\/]*)
1273  ac_cv_path_CONF_RM="$CONF_RM" # Let the user override the test with a path.
1274  ;;
1275  *)
1276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277for as_dir in $PATH
1278do
1279  IFS=$as_save_IFS
1280  test -z "$as_dir" && as_dir=.
1281  for ac_exec_ext in '' $ac_executable_extensions; do
1282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1283    ac_cv_path_CONF_RM="$as_dir/$ac_word$ac_exec_ext"
1284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1285    break 2
1286  fi
1287done
1288done
1289
1290  ;;
1291esac
1292fi
1293CONF_RM=$ac_cv_path_CONF_RM
1294
1295if test -n "$CONF_RM"; then
1296  echo "$as_me:$LINENO: result: $CONF_RM" >&5
1297echo "${ECHO_T}$CONF_RM" >&6
1298else
1299  echo "$as_me:$LINENO: result: no" >&5
1300echo "${ECHO_T}no" >&6
1301fi
1302
1303if test "$CONF_RM" = ""
1304then
1305  { { echo "$as_me:$LINENO: error: Required utility rm not found." >&5
1306echo "$as_me: error: Required utility rm not found." >&2;}
1307   { (exit 1); exit 1; }; }
1308fi
1309
1310# Extract the first word of "cat", so it can be a program name with args.
1311set dummy cat; ac_word=$2
1312echo "$as_me:$LINENO: checking for $ac_word" >&5
1313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314if test "${ac_cv_path_CONF_CAT+set}" = set; then
1315  echo $ECHO_N "(cached) $ECHO_C" >&6
1316else
1317  case $CONF_CAT in
1318  [\\/]* | ?:[\\/]*)
1319  ac_cv_path_CONF_CAT="$CONF_CAT" # Let the user override the test with a path.
1320  ;;
1321  *)
1322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323for as_dir in $PATH
1324do
1325  IFS=$as_save_IFS
1326  test -z "$as_dir" && as_dir=.
1327  for ac_exec_ext in '' $ac_executable_extensions; do
1328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1329    ac_cv_path_CONF_CAT="$as_dir/$ac_word$ac_exec_ext"
1330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1331    break 2
1332  fi
1333done
1334done
1335
1336  ;;
1337esac
1338fi
1339CONF_CAT=$ac_cv_path_CONF_CAT
1340
1341if test -n "$CONF_CAT"; then
1342  echo "$as_me:$LINENO: result: $CONF_CAT" >&5
1343echo "${ECHO_T}$CONF_CAT" >&6
1344else
1345  echo "$as_me:$LINENO: result: no" >&5
1346echo "${ECHO_T}no" >&6
1347fi
1348
1349if test "$CONF_CAT" = ""
1350then
1351  { { echo "$as_me:$LINENO: error: Required utility cat not found." >&5
1352echo "$as_me: error: Required utility cat not found." >&2;}
1353   { (exit 1); exit 1; }; }
1354fi
1355
1356# Extract the first word of "sed", so it can be a program name with args.
1357set dummy sed; ac_word=$2
1358echo "$as_me:$LINENO: checking for $ac_word" >&5
1359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360if test "${ac_cv_path_CONF_SED+set}" = set; then
1361  echo $ECHO_N "(cached) $ECHO_C" >&6
1362else
1363  case $CONF_SED in
1364  [\\/]* | ?:[\\/]*)
1365  ac_cv_path_CONF_SED="$CONF_SED" # Let the user override the test with a path.
1366  ;;
1367  *)
1368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369for as_dir in $PATH
1370do
1371  IFS=$as_save_IFS
1372  test -z "$as_dir" && as_dir=.
1373  for ac_exec_ext in '' $ac_executable_extensions; do
1374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375    ac_cv_path_CONF_SED="$as_dir/$ac_word$ac_exec_ext"
1376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377    break 2
1378  fi
1379done
1380done
1381
1382  ;;
1383esac
1384fi
1385CONF_SED=$ac_cv_path_CONF_SED
1386
1387if test -n "$CONF_SED"; then
1388  echo "$as_me:$LINENO: result: $CONF_SED" >&5
1389echo "${ECHO_T}$CONF_SED" >&6
1390else
1391  echo "$as_me:$LINENO: result: no" >&5
1392echo "${ECHO_T}no" >&6
1393fi
1394
1395if test "$CONF_SED" = ""
1396then
1397  { { echo "$as_me:$LINENO: error: Required utility sed not found." >&5
1398echo "$as_me: error: Required utility sed not found." >&2;}
1399   { (exit 1); exit 1; }; }
1400fi
1401
1402# Extract the first word of "echo", so it can be a program name with args.
1403set dummy echo; ac_word=$2
1404echo "$as_me:$LINENO: checking for $ac_word" >&5
1405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406if test "${ac_cv_path_CONF_ECHO+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  case $CONF_ECHO in
1410  [\\/]* | ?:[\\/]*)
1411  ac_cv_path_CONF_ECHO="$CONF_ECHO" # Let the user override the test with a path.
1412  ;;
1413  *)
1414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415for as_dir in $PATH
1416do
1417  IFS=$as_save_IFS
1418  test -z "$as_dir" && as_dir=.
1419  for ac_exec_ext in '' $ac_executable_extensions; do
1420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421    ac_cv_path_CONF_ECHO="$as_dir/$ac_word$ac_exec_ext"
1422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423    break 2
1424  fi
1425done
1426done
1427
1428  ;;
1429esac
1430fi
1431CONF_ECHO=$ac_cv_path_CONF_ECHO
1432
1433if test -n "$CONF_ECHO"; then
1434  echo "$as_me:$LINENO: result: $CONF_ECHO" >&5
1435echo "${ECHO_T}$CONF_ECHO" >&6
1436else
1437  echo "$as_me:$LINENO: result: no" >&5
1438echo "${ECHO_T}no" >&6
1439fi
1440
1441if test "$CONF_ECHO" = ""
1442then
1443  { { echo "$as_me:$LINENO: error: Required utility echo not found." >&5
1444echo "$as_me: error: Required utility echo not found." >&2;}
1445   { (exit 1); exit 1; }; }
1446fi
1447
1448# Extract the first word of "formail", so it can be a program name with args.
1449set dummy formail; ac_word=$2
1450echo "$as_me:$LINENO: checking for $ac_word" >&5
1451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452if test "${ac_cv_path_CONF_FORMAIL+set}" = set; then
1453  echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455  case $CONF_FORMAIL in
1456  [\\/]* | ?:[\\/]*)
1457  ac_cv_path_CONF_FORMAIL="$CONF_FORMAIL" # Let the user override the test with a path.
1458  ;;
1459  *)
1460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461for as_dir in $PATH
1462do
1463  IFS=$as_save_IFS
1464  test -z "$as_dir" && as_dir=.
1465  for ac_exec_ext in '' $ac_executable_extensions; do
1466  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467    ac_cv_path_CONF_FORMAIL="$as_dir/$ac_word$ac_exec_ext"
1468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469    break 2
1470  fi
1471done
1472done
1473
1474  ;;
1475esac
1476fi
1477CONF_FORMAIL=$ac_cv_path_CONF_FORMAIL
1478
1479if test -n "$CONF_FORMAIL"; then
1480  echo "$as_me:$LINENO: result: $CONF_FORMAIL" >&5
1481echo "${ECHO_T}$CONF_FORMAIL" >&6
1482else
1483  echo "$as_me:$LINENO: result: no" >&5
1484echo "${ECHO_T}no" >&6
1485fi
1486
1487if test "$CONF_FORMAIL" = ""
1488then
1489  { { echo "$as_me:$LINENO: error: Required utility formail not found." >&5
1490echo "$as_me: error: Required utility formail not found." >&2;}
1491   { (exit 1); exit 1; }; }
1492fi
1493
1494# Extract the first word of "mktemp", so it can be a program name with args.
1495set dummy mktemp; ac_word=$2
1496echo "$as_me:$LINENO: checking for $ac_word" >&5
1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498if test "${ac_cv_path_CONF_MKTEMP+set}" = set; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  case $CONF_MKTEMP in
1502  [\\/]* | ?:[\\/]*)
1503  ac_cv_path_CONF_MKTEMP="$CONF_MKTEMP" # Let the user override the test with a path.
1504  ;;
1505  *)
1506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507for as_dir in $PATH
1508do
1509  IFS=$as_save_IFS
1510  test -z "$as_dir" && as_dir=.
1511  for ac_exec_ext in '' $ac_executable_extensions; do
1512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513    ac_cv_path_CONF_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
1514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515    break 2
1516  fi
1517done
1518done
1519
1520  ;;
1521esac
1522fi
1523CONF_MKTEMP=$ac_cv_path_CONF_MKTEMP
1524
1525if test -n "$CONF_MKTEMP"; then
1526  echo "$as_me:$LINENO: result: $CONF_MKTEMP" >&5
1527echo "${ECHO_T}$CONF_MKTEMP" >&6
1528else
1529  echo "$as_me:$LINENO: result: no" >&5
1530echo "${ECHO_T}no" >&6
1531fi
1532
1533if test "$CONF_MKTEMP" = ""
1534then
1535  { { echo "$as_me:$LINENO: error: Required utility mktemp not found." >&5
1536echo "$as_me: error: Required utility mktemp not found." >&2;}
1537   { (exit 1); exit 1; }; }
1538fi
1539
1540# Extract the first word of "sigtool", so it can be a program name with args.
1541set dummy sigtool; ac_word=$2
1542echo "$as_me:$LINENO: checking for $ac_word" >&5
1543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544if test "${ac_cv_path_CONF_SIGTOOL+set}" = set; then
1545  echo $ECHO_N "(cached) $ECHO_C" >&6
1546else
1547  case $CONF_SIGTOOL in
1548  [\\/]* | ?:[\\/]*)
1549  ac_cv_path_CONF_SIGTOOL="$CONF_SIGTOOL" # Let the user override the test with a path.
1550  ;;
1551  *)
1552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555  IFS=$as_save_IFS
1556  test -z "$as_dir" && as_dir=.
1557  for ac_exec_ext in '' $ac_executable_extensions; do
1558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559    ac_cv_path_CONF_SIGTOOL="$as_dir/$ac_word$ac_exec_ext"
1560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561    break 2
1562  fi
1563done
1564done
1565
1566  ;;
1567esac
1568fi
1569CONF_SIGTOOL=$ac_cv_path_CONF_SIGTOOL
1570
1571if test -n "$CONF_SIGTOOL"; then
1572  echo "$as_me:$LINENO: result: $CONF_SIGTOOL" >&5
1573echo "${ECHO_T}$CONF_SIGTOOL" >&6
1574else
1575  echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
1577fi
1578
1579if test "$CONF_SIGTOOL" = ""
1580then
1581  { { echo "$as_me:$LINENO: error: Required utility sigtool not found." >&5
1582echo "$as_me: error: Required utility sigtool not found." >&2;}
1583   { (exit 1); exit 1; }; }
1584fi
1585
1586# Extract the first word of "clamscan", so it can be a program name with args.
1587set dummy clamscan; ac_word=$2
1588echo "$as_me:$LINENO: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590if test "${ac_cv_path_CONF_CLAMSCAN+set}" = set; then
1591  echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593  case $CONF_CLAMSCAN in
1594  [\\/]* | ?:[\\/]*)
1595  ac_cv_path_CONF_CLAMSCAN="$CONF_CLAMSCAN" # Let the user override the test with a path.
1596  ;;
1597  *)
1598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601  IFS=$as_save_IFS
1602  test -z "$as_dir" && as_dir=.
1603  for ac_exec_ext in '' $ac_executable_extensions; do
1604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605    ac_cv_path_CONF_CLAMSCAN="$as_dir/$ac_word$ac_exec_ext"
1606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607    break 2
1608  fi
1609done
1610done
1611
1612  ;;
1613esac
1614fi
1615CONF_CLAMSCAN=$ac_cv_path_CONF_CLAMSCAN
1616
1617if test -n "$CONF_CLAMSCAN"; then
1618  echo "$as_me:$LINENO: result: $CONF_CLAMSCAN" >&5
1619echo "${ECHO_T}$CONF_CLAMSCAN" >&6
1620else
1621  echo "$as_me:$LINENO: result: no" >&5
1622echo "${ECHO_T}no" >&6
1623fi
1624
1625if test "$CONF_CLAMSCAN" = ""
1626then
1627  { { echo "$as_me:$LINENO: error: Required utility clamscan not found." >&5
1628echo "$as_me: error: Required utility clamscan not found." >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631CONF_CLAMSCANNER=${CONF_CLAMSCAN}
1632
1633
1634# Extract the first word of "clamdscan", so it can be a program name with args.
1635set dummy clamdscan; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_path_CONF_CLAMDSCAN+set}" = set; then
1639  echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641  case $CONF_CLAMDSCAN in
1642  [\\/]* | ?:[\\/]*)
1643  ac_cv_path_CONF_CLAMDSCAN="$CONF_CLAMDSCAN" # Let the user override the test with a path.
1644  ;;
1645  *)
1646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649  IFS=$as_save_IFS
1650  test -z "$as_dir" && as_dir=.
1651  for ac_exec_ext in '' $ac_executable_extensions; do
1652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653    ac_cv_path_CONF_CLAMDSCAN="$as_dir/$ac_word$ac_exec_ext"
1654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655    break 2
1656  fi
1657done
1658done
1659
1660  ;;
1661esac
1662fi
1663CONF_CLAMDSCAN=$ac_cv_path_CONF_CLAMDSCAN
1664
1665if test -n "$CONF_CLAMDSCAN"; then
1666  echo "$as_me:$LINENO: result: $CONF_CLAMDSCAN" >&5
1667echo "${ECHO_T}$CONF_CLAMDSCAN" >&6
1668else
1669  echo "$as_me:$LINENO: result: no" >&5
1670echo "${ECHO_T}no" >&6
1671fi
1672
1673echo "$as_me:$LINENO: checking for /tmp/clamd" >&5
1674echo $ECHO_N "checking for /tmp/clamd... $ECHO_C" >&6
1675if test "${ac_cv_file__tmp_clamd+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  test "$cross_compiling" = yes &&
1679  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
1680echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
1681   { (exit 1); exit 1; }; }
1682if test -r "/tmp/clamd"; then
1683  ac_cv_file__tmp_clamd=yes
1684else
1685  ac_cv_file__tmp_clamd=no
1686fi
1687fi
1688echo "$as_me:$LINENO: result: $ac_cv_file__tmp_clamd" >&5
1689echo "${ECHO_T}$ac_cv_file__tmp_clamd" >&6
1690if test $ac_cv_file__tmp_clamd = yes; then
1691
1692cat >>confdefs.h <<_ACEOF
1693#define HAVE__TMP_CLAMD 1
1694_ACEOF
1695
1696
1697fi
1698
1699if test "$ac_cv_file__tmp_clamd" = "yes"
1700then
1701  if test "$CONF_CLAMDSCAN" = ""
1702  then
1703    { echo "$as_me:$LINENO: /tmp/clamd found, but can't find clamdscan" >&5
1704echo "$as_me: /tmp/clamd found, but can't find clamdscan" >&6;}
1705  else
1706    CONF_CLAMSCANNER=${CONF_CLAMDSCAN}
1707
1708  fi
1709else
1710  CONF_CLAMSCANNER=${CONF_CLAMSCAN}
1711
1712fi
1713
1714# Check whether --enable-clamdscan or --disable-clamdscan was given.
1715if test "${enable_clamdscan+set}" = set; then
1716  enableval="$enable_clamdscan"
1717   case $enableval in
1718    no)
1719      CONF_CLAMSCANNER=${CONF_CLAMSCAN}
1720
1721      ;;
1722    *)
1723      if test "$CONF_CLAMDSCAN" = ""
1724      then
1725        { echo "$as_me:$LINENO: --enable-clamdscan requested, but can't find clamdscan" >&5
1726echo "$as_me: --enable-clamdscan requested, but can't find clamdscan" >&6;}
1727      else
1728        CONF_CLAMSCANNER=${CONF_CLAMDSCAN}
1729
1730      fi
1731      ;;
1732  esac
1733
1734fi;
1735
1736DO_VERSION_CHECK="yes";
1737# Check whether --enable-version-check or --disable-version-check was given.
1738if test "${enable_version_check+set}" = set; then
1739  enableval="$enable_version_check"
1740   if test "$enableval" = "no"
1741  then
1742    DO_VERSION_CHECK="no";
1743  fi
1744
1745fi;
1746
1747if test "${DO_VERSION_CHECK}" = "yes"
1748then
1749
1750  CLAMVERS=`${CONF_CLAMSCAN} -V --stdout | ${CONF_SED} -e "s/.*ClamAV //" \
1751    -e "s/version //" -e "s/\/.*//"`
1752  CLAMVERSMAJ=`${CONF_ECHO} ${CLAMVERS} | ${CONF_SED} -e "s/[-\.].*//"`
1753  CLAMVERSMIN=`${CONF_ECHO} ${CLAMVERS} | \
1754    ${CONF_SED} -e "s/[^-\.]*[-\.]*//" -e "s/[^0-9].*//"`
1755  CLAMVERSEXT=`${CONF_ECHO} ${CLAMVERS} | \
1756    ${CONF_SED} -e "s/[^-\.]*[-\.]*//" \
1757    -e "s/[0-9]*\([^0-9]*\)/\1/" -e "s/^[-\.]//"`
1758  { echo "$as_me:$LINENO: ClamAV version ${CLAMVERS} detected." >&5
1759echo "$as_me: ClamAV version ${CLAMVERS} detected." >&6;}
1760  # AC_MSG_NOTICE([maj ${CLAMVERSMAJ} min ${CLAMVERSMIN} ext ${CLAMVERSEXT}])
1761
1762  case ${CLAMVERSMAJ} in
1763    devel)
1764      { echo "$as_me:$LINENO: WARNING: You are running a devel version of ClamAV.  I guess you know what you're doing" >&5
1765echo "$as_me: WARNING: You are running a devel version of ClamAV.  I guess you know what you're doing" >&2;}
1766      ;;
1767    0)
1768      if test ${CLAMVERSMIN} -lt 90
1769      then
1770        { { echo "$as_me:$LINENO: error: clamassassin requires ClamAV 0.90 or higher" >&5
1771echo "$as_me: error: clamassassin requires ClamAV 0.90 or higher" >&2;}
1772   { (exit 1); exit 1; }; }
1773      fi
1774      ;;
1775  esac
1776
1777fi
1778
1779{ echo "$as_me:$LINENO: Using scanner ${CONF_CLAMSCANNER}" >&5
1780echo "$as_me: Using scanner ${CONF_CLAMSCANNER}" >&6;}
1781
1782CONF_CLAMSCANOPT="--no-summary --stdout"
1783
1784
1785{ echo "$as_me:$LINENO: Using scanner options ${CONF_CLAMSCANOPT}" >&5
1786echo "$as_me: Using scanner options ${CONF_CLAMSCANOPT}" >&6;}
1787
1788SIGLOC=`${CONF_CLAMSCAN} --debug --tempdir=/dev/null /dev/null 2>&1 | ${CONF_SED} -e "/^LibClamAV debug: Loading databases from /!d" -e "s/.* //" -e q`
1789if test "$SIGLOC" = ""
1790then
1791  { { echo "$as_me:$LINENO: error: Cannot determine virus signature file directory" >&5
1792echo "$as_me: error: Cannot determine virus signature file directory" >&2;}
1793   { (exit 1); exit 1; }; }
1794else
1795  { echo "$as_me:$LINENO: Using virus signature file dir ${SIGLOC}" >&5
1796echo "$as_me: Using virus signature file dir ${SIGLOC}" >&6;}
1797  CONF_SIGLOC=${SIGLOC}
1798
1799fi
1800
1801CONF_SIGVERSFLAG=0
1802
1803# Check whether --enable-signature-version or --disable-signature-version was given.
1804if test "${enable_signature_version+set}" = set; then
1805  enableval="$enable_signature_version"
1806   if test "$enableval" = "no"
1807  then
1808    CONF_SIGVERSFLAG=0
1809
1810  else
1811    CONF_SIGVERSFLAG=1
1812
1813  fi
1814
1815fi;
1816
1817if test ${CONF_SIGVERSFLAG} -eq 1
1818then
1819  { echo "$as_me:$LINENO: Signature version reporting is on." >&5
1820echo "$as_me: Signature version reporting is on." >&6;}
1821else
1822  { echo "$as_me:$LINENO: Signature version reporting is off." >&5
1823echo "$as_me: Signature version reporting is off." >&6;}
1824fi
1825
1826CONF_ADDSCANNERFLAG=1
1827
1828# Check whether --enable-name-adding or --disable-name-adding was given.
1829if test "${enable_name_adding+set}" = set; then
1830  enableval="$enable_name_adding"
1831   if test "$enableval" = "no"
1832  then
1833    CONF_ADDSCANNERFLAG=0
1834
1835  else
1836    CONF_ADDSCANNERFLAG=1
1837
1838  fi
1839
1840fi;
1841
1842if test ${CONF_ADDSCANNERFLAG} -eq 1
1843then
1844  { echo "$as_me:$LINENO: Scanner name adding is on." >&5
1845echo "$as_me: Scanner name adding is on." >&6;}
1846else
1847  { echo "$as_me:$LINENO: Scanner name adding is off." >&5
1848echo "$as_me: Scanner name adding is off." >&6;}
1849fi
1850
1851if test "$TMP" = ""
1852then
1853  CONF_TMP=/tmp
1854
1855else
1856  CONF_TMP=$TMP
1857
1858fi
1859{ echo "$as_me:$LINENO: Using temporary directory $CONF_TMP" >&5
1860echo "$as_me: Using temporary directory $CONF_TMP" >&6;}
1861
1862# Check whether --enable-subject_rewrite or --disable-subject_rewrite was given.
1863if test "${enable_subject_rewrite+set}" = set; then
1864  enableval="$enable_subject_rewrite"
1865   case $enableval in
1866    yes)
1867      SUBJECTHEAD="*****VIRUS*****"
1868      ;;
1869    no)
1870      SUBJECTHEAD=""
1871      ;;
1872    *)
1873      SUBJECTHEAD=$enableval
1874      ;;
1875  esac
1876
1877else
1878   SUBJECTHEAD=""
1879fi;
1880
1881if test "$SUBJECTHEAD" = ""
1882then
1883  { echo "$as_me:$LINENO: Subject header rewriting is off." >&5
1884echo "$as_me: Subject header rewriting is off." >&6;}
1885else
1886  { echo "$as_me:$LINENO: Subject header rewriting is on: $SUBJECTHEAD" >&5
1887echo "$as_me: Subject header rewriting is on: $SUBJECTHEAD" >&6;}
1888  SUBJECTHEAD="${SUBJECTHEAD} "
1889  CONF_SUBJECTHEAD=$SUBJECTHEAD
1890
1891fi
1892
1893cat >confcache <<\_ACEOF
1894# This file is a shell script that caches the results of configure
1895# tests run on this system so they can be shared between configure
1896# scripts and configure runs, see configure's option --config-cache.
1897# It is not useful on other systems.  If it contains results you don't
1898# want to keep, you may remove or edit it.
1899#
1900# config.status only pays attention to the cache file if you give it
1901# the --recheck option to rerun configure.
1902#
1903# `ac_cv_env_foo' variables (set or unset) will be overridden when
1904# loading this file, other *unset* `ac_cv_foo' will be assigned the
1905# following values.
1906
1907_ACEOF
1908
1909# The following way of writing the cache mishandles newlines in values,
1910# but we know of no workaround that is simple, portable, and efficient.
1911# So, don't put newlines in cache variables' values.
1912# Ultrix sh set writes to stderr and can't be redirected directly,
1913# and sets the high bit in the cache file unless we assign to the vars.
1914{
1915  (set) 2>&1 |
1916    case `(ac_space=' '; set | grep ac_space) 2>&1` in
1917    *ac_space=\ *)
1918      # `set' does not quote correctly, so add quotes (double-quote
1919      # substitution turns \\\\ into \\, and sed turns \\ into \).
1920      sed -n \
1921	"s/'/'\\\\''/g;
1922	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1923      ;;
1924    *)
1925      # `set' quotes correctly as required by POSIX, so do not add quotes.
1926      sed -n \
1927	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1928      ;;
1929    esac;
1930} |
1931  sed '
1932     t clear
1933     : clear
1934     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1935     t end
1936     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1937     : end' >>confcache
1938if diff $cache_file confcache >/dev/null 2>&1; then :; else
1939  if test -w $cache_file; then
1940    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1941    cat confcache >$cache_file
1942  else
1943    echo "not updating unwritable cache $cache_file"
1944  fi
1945fi
1946rm -f confcache
1947
1948test "x$prefix" = xNONE && prefix=$ac_default_prefix
1949# Let make expand exec_prefix.
1950test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1951
1952# VPATH may cause trouble with some makes, so we remove $(srcdir),
1953# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1954# trailing colons and then remove the whole line if VPATH becomes empty
1955# (actually we leave an empty line to preserve line numbers).
1956if test "x$srcdir" = x.; then
1957  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
1958s/:*\$(srcdir):*/:/;
1959s/:*\${srcdir}:*/:/;
1960s/:*@srcdir@:*/:/;
1961s/^\([^=]*=[	 ]*\):*/\1/;
1962s/:*$//;
1963s/^[^=]*=[	 ]*$//;
1964}'
1965fi
1966
1967# Transform confdefs.h into DEFS.
1968# Protect against shell expansion while executing Makefile rules.
1969# Protect against Makefile macro expansion.
1970#
1971# If the first sed substitution is executed (which looks for macros that
1972# take arguments), then we branch to the quote section.  Otherwise,
1973# look for a macro that doesn't take arguments.
1974cat >confdef2opt.sed <<\_ACEOF
1975t clear
1976: clear
1977s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
1978t quote
1979s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
1980t quote
1981d
1982: quote
1983s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
1984s,\[,\\&,g
1985s,\],\\&,g
1986s,\$,$$,g
1987p
1988_ACEOF
1989# We use echo to avoid assuming a particular line-breaking character.
1990# The extra dot is to prevent the shell from consuming trailing
1991# line-breaks from the sub-command output.  A line-break within
1992# single-quotes doesn't work because, if this script is created in a
1993# platform that uses two characters for line-breaks (e.g., DOS), tr
1994# would break.
1995ac_LF_and_DOT=`echo; echo .`
1996DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1997rm -f confdef2opt.sed
1998
1999
2000ac_libobjs=
2001ac_ltlibobjs=
2002for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2003  # 1. Remove the extension, and $U if already installed.
2004  ac_i=`echo "$ac_i" |
2005	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2006  # 2. Add them.
2007  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2008  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2009done
2010LIBOBJS=$ac_libobjs
2011
2012LTLIBOBJS=$ac_ltlibobjs
2013
2014
2015
2016: ${CONFIG_STATUS=./config.status}
2017ac_clean_files_save=$ac_clean_files
2018ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2019{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2020echo "$as_me: creating $CONFIG_STATUS" >&6;}
2021cat >$CONFIG_STATUS <<_ACEOF
2022#! $SHELL
2023# Generated by $as_me.
2024# Run this file to recreate the current configuration.
2025# Compiler output produced by configure, useful for debugging
2026# configure, is in config.log if it exists.
2027
2028debug=false
2029ac_cs_recheck=false
2030ac_cs_silent=false
2031SHELL=\${CONFIG_SHELL-$SHELL}
2032_ACEOF
2033
2034cat >>$CONFIG_STATUS <<\_ACEOF
2035## --------------------- ##
2036## M4sh Initialization.  ##
2037## --------------------- ##
2038
2039# Be Bourne compatible
2040if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2041  emulate sh
2042  NULLCMD=:
2043  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2044  # is contrary to our usage.  Disable this feature.
2045  alias -g '${1+"$@"}'='"$@"'
2046elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2047  set -o posix
2048fi
2049DUALCASE=1; export DUALCASE # for MKS sh
2050
2051# Support unset when possible.
2052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2053  as_unset=unset
2054else
2055  as_unset=false
2056fi
2057
2058
2059# Work around bugs in pre-3.0 UWIN ksh.
2060$as_unset ENV MAIL MAILPATH
2061PS1='$ '
2062PS2='> '
2063PS4='+ '
2064
2065# NLS nuisances.
2066for as_var in \
2067  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2068  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2069  LC_TELEPHONE LC_TIME
2070do
2071  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2072    eval $as_var=C; export $as_var
2073  else
2074    $as_unset $as_var
2075  fi
2076done
2077
2078# Required to use basename.
2079if expr a : '\(a\)' >/dev/null 2>&1; then
2080  as_expr=expr
2081else
2082  as_expr=false
2083fi
2084
2085if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2086  as_basename=basename
2087else
2088  as_basename=false
2089fi
2090
2091
2092# Name of the executable.
2093as_me=`$as_basename "$0" ||
2094$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2095	 X"$0" : 'X\(//\)$' \| \
2096	 X"$0" : 'X\(/\)$' \| \
2097	 .     : '\(.\)' 2>/dev/null ||
2098echo X/"$0" |
2099    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2100  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
2101  	  /^X\/\(\/\).*/{ s//\1/; q; }
2102  	  s/.*/./; q'`
2103
2104
2105# PATH needs CR, and LINENO needs CR and PATH.
2106# Avoid depending upon Character Ranges.
2107as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2109as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2110as_cr_digits='0123456789'
2111as_cr_alnum=$as_cr_Letters$as_cr_digits
2112
2113# The user is always right.
2114if test "${PATH_SEPARATOR+set}" != set; then
2115  echo "#! /bin/sh" >conf$$.sh
2116  echo  "exit 0"   >>conf$$.sh
2117  chmod +x conf$$.sh
2118  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2119    PATH_SEPARATOR=';'
2120  else
2121    PATH_SEPARATOR=:
2122  fi
2123  rm -f conf$$.sh
2124fi
2125
2126
2127  as_lineno_1=$LINENO
2128  as_lineno_2=$LINENO
2129  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2130  test "x$as_lineno_1" != "x$as_lineno_2" &&
2131  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2132  # Find who we are.  Look in the path if we contain no path at all
2133  # relative or not.
2134  case $0 in
2135    *[\\/]* ) as_myself=$0 ;;
2136    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139  IFS=$as_save_IFS
2140  test -z "$as_dir" && as_dir=.
2141  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2142done
2143
2144       ;;
2145  esac
2146  # We did not find ourselves, most probably we were run as `sh COMMAND'
2147  # in which case we are not to be found in the path.
2148  if test "x$as_myself" = x; then
2149    as_myself=$0
2150  fi
2151  if test ! -f "$as_myself"; then
2152    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2153echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2154   { (exit 1); exit 1; }; }
2155  fi
2156  case $CONFIG_SHELL in
2157  '')
2158    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2160do
2161  IFS=$as_save_IFS
2162  test -z "$as_dir" && as_dir=.
2163  for as_base in sh bash ksh sh5; do
2164	 case $as_dir in
2165	 /*)
2166	   if ("$as_dir/$as_base" -c '
2167  as_lineno_1=$LINENO
2168  as_lineno_2=$LINENO
2169  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2170  test "x$as_lineno_1" != "x$as_lineno_2" &&
2171  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2172	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2173	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2174	     CONFIG_SHELL=$as_dir/$as_base
2175	     export CONFIG_SHELL
2176	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2177	   fi;;
2178	 esac
2179       done
2180done
2181;;
2182  esac
2183
2184  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2185  # uniformly replaced by the line number.  The first 'sed' inserts a
2186  # line-number line before each line; the second 'sed' does the real
2187  # work.  The second script uses 'N' to pair each line-number line
2188  # with the numbered line, and appends trailing '-' during
2189  # substitution so that $LINENO is not a special case at line end.
2190  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2191  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2192  sed '=' <$as_myself |
2193    sed '
2194      N
2195      s,$,-,
2196      : loop
2197      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2198      t loop
2199      s,-$,,
2200      s,^['$as_cr_digits']*\n,,
2201    ' >$as_me.lineno &&
2202  chmod +x $as_me.lineno ||
2203    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2204echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2205   { (exit 1); exit 1; }; }
2206
2207  # Don't try to exec as it changes $[0], causing all sort of problems
2208  # (the dirname of $[0] is not the place where we might find the
2209  # original and so on.  Autoconf is especially sensible to this).
2210  . ./$as_me.lineno
2211  # Exit status is that of the last command.
2212  exit
2213}
2214
2215
2216case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2217  *c*,-n*) ECHO_N= ECHO_C='
2218' ECHO_T='	' ;;
2219  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2220  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2221esac
2222
2223if expr a : '\(a\)' >/dev/null 2>&1; then
2224  as_expr=expr
2225else
2226  as_expr=false
2227fi
2228
2229rm -f conf$$ conf$$.exe conf$$.file
2230echo >conf$$.file
2231if ln -s conf$$.file conf$$ 2>/dev/null; then
2232  # We could just check for DJGPP; but this test a) works b) is more generic
2233  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2234  if test -f conf$$.exe; then
2235    # Don't use ln at all; we don't have any links
2236    as_ln_s='cp -p'
2237  else
2238    as_ln_s='ln -s'
2239  fi
2240elif ln conf$$.file conf$$ 2>/dev/null; then
2241  as_ln_s=ln
2242else
2243  as_ln_s='cp -p'
2244fi
2245rm -f conf$$ conf$$.exe conf$$.file
2246
2247if mkdir -p . 2>/dev/null; then
2248  as_mkdir_p=:
2249else
2250  test -d ./-p && rmdir ./-p
2251  as_mkdir_p=false
2252fi
2253
2254as_executable_p="test -f"
2255
2256# Sed expression to map a string onto a valid CPP name.
2257as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2258
2259# Sed expression to map a string onto a valid variable name.
2260as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2261
2262
2263# IFS
2264# We need space, tab and new line, in precisely that order.
2265as_nl='
2266'
2267IFS=" 	$as_nl"
2268
2269# CDPATH.
2270$as_unset CDPATH
2271
2272exec 6>&1
2273
2274# Open the log real soon, to keep \$[0] and so on meaningful, and to
2275# report actual input values of CONFIG_FILES etc. instead of their
2276# values after options handling.  Logging --version etc. is OK.
2277exec 5>>config.log
2278{
2279  echo
2280  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2281## Running $as_me. ##
2282_ASBOX
2283} >&5
2284cat >&5 <<_CSEOF
2285
2286This file was extended by clamassassin $as_me 1.2.4, which was
2287generated by GNU Autoconf 2.59.  Invocation command line was
2288
2289  CONFIG_FILES    = $CONFIG_FILES
2290  CONFIG_HEADERS  = $CONFIG_HEADERS
2291  CONFIG_LINKS    = $CONFIG_LINKS
2292  CONFIG_COMMANDS = $CONFIG_COMMANDS
2293  $ $0 $@
2294
2295_CSEOF
2296echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2297echo >&5
2298_ACEOF
2299
2300# Files that config.status was made for.
2301if test -n "$ac_config_files"; then
2302  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2303fi
2304
2305if test -n "$ac_config_headers"; then
2306  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2307fi
2308
2309if test -n "$ac_config_links"; then
2310  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2311fi
2312
2313if test -n "$ac_config_commands"; then
2314  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2315fi
2316
2317cat >>$CONFIG_STATUS <<\_ACEOF
2318
2319ac_cs_usage="\
2320\`$as_me' instantiates files from templates according to the
2321current configuration.
2322
2323Usage: $0 [OPTIONS] [FILE]...
2324
2325  -h, --help       print this help, then exit
2326  -V, --version    print version number, then exit
2327  -q, --quiet      do not print progress messages
2328  -d, --debug      don't remove temporary files
2329      --recheck    update $as_me by reconfiguring in the same conditions
2330  --file=FILE[:TEMPLATE]
2331		   instantiate the configuration file FILE
2332
2333Configuration files:
2334$config_files
2335
2336Report bugs to <bug-autoconf@gnu.org>."
2337_ACEOF
2338
2339cat >>$CONFIG_STATUS <<_ACEOF
2340ac_cs_version="\\
2341clamassassin config.status 1.2.4
2342configured by $0, generated by GNU Autoconf 2.59,
2343  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2344
2345Copyright (C) 2003 Free Software Foundation, Inc.
2346This config.status script is free software; the Free Software Foundation
2347gives unlimited permission to copy, distribute and modify it."
2348srcdir=$srcdir
2349_ACEOF
2350
2351cat >>$CONFIG_STATUS <<\_ACEOF
2352# If no file are specified by the user, then we need to provide default
2353# value.  By we need to know if files were specified by the user.
2354ac_need_defaults=:
2355while test $# != 0
2356do
2357  case $1 in
2358  --*=*)
2359    ac_option=`expr "x$1" : 'x\([^=]*\)='`
2360    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2361    ac_shift=:
2362    ;;
2363  -*)
2364    ac_option=$1
2365    ac_optarg=$2
2366    ac_shift=shift
2367    ;;
2368  *) # This is not an option, so the user has probably given explicit
2369     # arguments.
2370     ac_option=$1
2371     ac_need_defaults=false;;
2372  esac
2373
2374  case $ac_option in
2375  # Handling of the options.
2376_ACEOF
2377cat >>$CONFIG_STATUS <<\_ACEOF
2378  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2379    ac_cs_recheck=: ;;
2380  --version | --vers* | -V )
2381    echo "$ac_cs_version"; exit 0 ;;
2382  --he | --h)
2383    # Conflict between --help and --header
2384    { { echo "$as_me:$LINENO: error: ambiguous option: $1
2385Try \`$0 --help' for more information." >&5
2386echo "$as_me: error: ambiguous option: $1
2387Try \`$0 --help' for more information." >&2;}
2388   { (exit 1); exit 1; }; };;
2389  --help | --hel | -h )
2390    echo "$ac_cs_usage"; exit 0 ;;
2391  --debug | --d* | -d )
2392    debug=: ;;
2393  --file | --fil | --fi | --f )
2394    $ac_shift
2395    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2396    ac_need_defaults=false;;
2397  --header | --heade | --head | --hea )
2398    $ac_shift
2399    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2400    ac_need_defaults=false;;
2401  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2402  | -silent | --silent | --silen | --sile | --sil | --si | --s)
2403    ac_cs_silent=: ;;
2404
2405  # This is an error.
2406  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2407Try \`$0 --help' for more information." >&5
2408echo "$as_me: error: unrecognized option: $1
2409Try \`$0 --help' for more information." >&2;}
2410   { (exit 1); exit 1; }; } ;;
2411
2412  *) ac_config_targets="$ac_config_targets $1" ;;
2413
2414  esac
2415  shift
2416done
2417
2418ac_configure_extra_args=
2419
2420if $ac_cs_silent; then
2421  exec 6>/dev/null
2422  ac_configure_extra_args="$ac_configure_extra_args --silent"
2423fi
2424
2425_ACEOF
2426cat >>$CONFIG_STATUS <<_ACEOF
2427if \$ac_cs_recheck; then
2428  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2429  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2430fi
2431
2432_ACEOF
2433
2434
2435
2436
2437
2438cat >>$CONFIG_STATUS <<\_ACEOF
2439for ac_config_target in $ac_config_targets
2440do
2441  case "$ac_config_target" in
2442  # Handling of arguments.
2443  "clamassassin" ) CONFIG_FILES="$CONFIG_FILES clamassassin" ;;
2444  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2445  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2446echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2447   { (exit 1); exit 1; }; };;
2448  esac
2449done
2450
2451# If the user did not use the arguments to specify the items to instantiate,
2452# then the envvar interface is used.  Set only those that are not.
2453# We use the long form for the default assignment because of an extremely
2454# bizarre bug on SunOS 4.1.3.
2455if $ac_need_defaults; then
2456  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2457fi
2458
2459# Have a temporary directory for convenience.  Make it in the build tree
2460# simply because there is no reason to put it here, and in addition,
2461# creating and moving files from /tmp can sometimes cause problems.
2462# Create a temporary directory, and hook for its removal unless debugging.
2463$debug ||
2464{
2465  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2466  trap '{ (exit 1); exit 1; }' 1 2 13 15
2467}
2468
2469# Create a (secure) tmp directory for tmp files.
2470
2471{
2472  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2473  test -n "$tmp" && test -d "$tmp"
2474}  ||
2475{
2476  tmp=./confstat$$-$RANDOM
2477  (umask 077 && mkdir $tmp)
2478} ||
2479{
2480   echo "$me: cannot create a temporary directory in ." >&2
2481   { (exit 1); exit 1; }
2482}
2483
2484_ACEOF
2485
2486cat >>$CONFIG_STATUS <<_ACEOF
2487
2488#
2489# CONFIG_FILES section.
2490#
2491
2492# No need to generate the scripts if there are no CONFIG_FILES.
2493# This happens for instance when ./config.status config.h
2494if test -n "\$CONFIG_FILES"; then
2495  # Protect against being on the right side of a sed subst in config.status.
2496  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2497   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2498s,@SHELL@,$SHELL,;t t
2499s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2500s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2501s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2502s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2503s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2504s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2505s,@exec_prefix@,$exec_prefix,;t t
2506s,@prefix@,$prefix,;t t
2507s,@program_transform_name@,$program_transform_name,;t t
2508s,@bindir@,$bindir,;t t
2509s,@sbindir@,$sbindir,;t t
2510s,@libexecdir@,$libexecdir,;t t
2511s,@datadir@,$datadir,;t t
2512s,@sysconfdir@,$sysconfdir,;t t
2513s,@sharedstatedir@,$sharedstatedir,;t t
2514s,@localstatedir@,$localstatedir,;t t
2515s,@libdir@,$libdir,;t t
2516s,@includedir@,$includedir,;t t
2517s,@oldincludedir@,$oldincludedir,;t t
2518s,@infodir@,$infodir,;t t
2519s,@mandir@,$mandir,;t t
2520s,@build_alias@,$build_alias,;t t
2521s,@host_alias@,$host_alias,;t t
2522s,@target_alias@,$target_alias,;t t
2523s,@DEFS@,$DEFS,;t t
2524s,@ECHO_C@,$ECHO_C,;t t
2525s,@ECHO_N@,$ECHO_N,;t t
2526s,@ECHO_T@,$ECHO_T,;t t
2527s,@LIBS@,$LIBS,;t t
2528s,@CONF_RM@,$CONF_RM,;t t
2529s,@CONF_CAT@,$CONF_CAT,;t t
2530s,@CONF_SED@,$CONF_SED,;t t
2531s,@CONF_ECHO@,$CONF_ECHO,;t t
2532s,@CONF_FORMAIL@,$CONF_FORMAIL,;t t
2533s,@CONF_MKTEMP@,$CONF_MKTEMP,;t t
2534s,@CONF_SIGTOOL@,$CONF_SIGTOOL,;t t
2535s,@CONF_CLAMSCAN@,$CONF_CLAMSCAN,;t t
2536s,@CONF_CLAMSCANNER@,$CONF_CLAMSCANNER,;t t
2537s,@CONF_CLAMDSCAN@,$CONF_CLAMDSCAN,;t t
2538s,@CONF_CLAMSCANOPT@,$CONF_CLAMSCANOPT,;t t
2539s,@CONF_SIGLOC@,$CONF_SIGLOC,;t t
2540s,@CONF_SIGVERSFLAG@,$CONF_SIGVERSFLAG,;t t
2541s,@CONF_ADDSCANNERFLAG@,$CONF_ADDSCANNERFLAG,;t t
2542s,@CONF_TMP@,$CONF_TMP,;t t
2543s,@CONF_SUBJECTHEAD@,$CONF_SUBJECTHEAD,;t t
2544s,@LIBOBJS@,$LIBOBJS,;t t
2545s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2546CEOF
2547
2548_ACEOF
2549
2550  cat >>$CONFIG_STATUS <<\_ACEOF
2551  # Split the substitutions into bite-sized pieces for seds with
2552  # small command number limits, like on Digital OSF/1 and HP-UX.
2553  ac_max_sed_lines=48
2554  ac_sed_frag=1 # Number of current file.
2555  ac_beg=1 # First line for current file.
2556  ac_end=$ac_max_sed_lines # Line after last line for current file.
2557  ac_more_lines=:
2558  ac_sed_cmds=
2559  while $ac_more_lines; do
2560    if test $ac_beg -gt 1; then
2561      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2562    else
2563      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2564    fi
2565    if test ! -s $tmp/subs.frag; then
2566      ac_more_lines=false
2567    else
2568      # The purpose of the label and of the branching condition is to
2569      # speed up the sed processing (if there are no `@' at all, there
2570      # is no need to browse any of the substitutions).
2571      # These are the two extra sed commands mentioned above.
2572      (echo ':t
2573  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2574      if test -z "$ac_sed_cmds"; then
2575	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2576      else
2577	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2578      fi
2579      ac_sed_frag=`expr $ac_sed_frag + 1`
2580      ac_beg=$ac_end
2581      ac_end=`expr $ac_end + $ac_max_sed_lines`
2582    fi
2583  done
2584  if test -z "$ac_sed_cmds"; then
2585    ac_sed_cmds=cat
2586  fi
2587fi # test -n "$CONFIG_FILES"
2588
2589_ACEOF
2590cat >>$CONFIG_STATUS <<\_ACEOF
2591for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2592  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2593  case $ac_file in
2594  - | *:- | *:-:* ) # input from stdin
2595	cat >$tmp/stdin
2596	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2597	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2598  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2599	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2600  * )   ac_file_in=$ac_file.in ;;
2601  esac
2602
2603  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2604  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2605$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2606	 X"$ac_file" : 'X\(//\)[^/]' \| \
2607	 X"$ac_file" : 'X\(//\)$' \| \
2608	 X"$ac_file" : 'X\(/\)' \| \
2609	 .     : '\(.\)' 2>/dev/null ||
2610echo X"$ac_file" |
2611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2612  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2613  	  /^X\(\/\/\)$/{ s//\1/; q; }
2614  	  /^X\(\/\).*/{ s//\1/; q; }
2615  	  s/.*/./; q'`
2616  { if $as_mkdir_p; then
2617    mkdir -p "$ac_dir"
2618  else
2619    as_dir="$ac_dir"
2620    as_dirs=
2621    while test ! -d "$as_dir"; do
2622      as_dirs="$as_dir $as_dirs"
2623      as_dir=`(dirname "$as_dir") 2>/dev/null ||
2624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2625	 X"$as_dir" : 'X\(//\)[^/]' \| \
2626	 X"$as_dir" : 'X\(//\)$' \| \
2627	 X"$as_dir" : 'X\(/\)' \| \
2628	 .     : '\(.\)' 2>/dev/null ||
2629echo X"$as_dir" |
2630    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2631  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2632  	  /^X\(\/\/\)$/{ s//\1/; q; }
2633  	  /^X\(\/\).*/{ s//\1/; q; }
2634  	  s/.*/./; q'`
2635    done
2636    test ! -n "$as_dirs" || mkdir $as_dirs
2637  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2638echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2639   { (exit 1); exit 1; }; }; }
2640
2641  ac_builddir=.
2642
2643if test "$ac_dir" != .; then
2644  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2645  # A "../" for each directory in $ac_dir_suffix.
2646  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2647else
2648  ac_dir_suffix= ac_top_builddir=
2649fi
2650
2651case $srcdir in
2652  .)  # No --srcdir option.  We are building in place.
2653    ac_srcdir=.
2654    if test -z "$ac_top_builddir"; then
2655       ac_top_srcdir=.
2656    else
2657       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2658    fi ;;
2659  [\\/]* | ?:[\\/]* )  # Absolute path.
2660    ac_srcdir=$srcdir$ac_dir_suffix;
2661    ac_top_srcdir=$srcdir ;;
2662  *) # Relative path.
2663    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2664    ac_top_srcdir=$ac_top_builddir$srcdir ;;
2665esac
2666
2667# Do not use `cd foo && pwd` to compute absolute paths, because
2668# the directories may not exist.
2669case `pwd` in
2670.) ac_abs_builddir="$ac_dir";;
2671*)
2672  case "$ac_dir" in
2673  .) ac_abs_builddir=`pwd`;;
2674  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2675  *) ac_abs_builddir=`pwd`/"$ac_dir";;
2676  esac;;
2677esac
2678case $ac_abs_builddir in
2679.) ac_abs_top_builddir=${ac_top_builddir}.;;
2680*)
2681  case ${ac_top_builddir}. in
2682  .) ac_abs_top_builddir=$ac_abs_builddir;;
2683  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2684  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2685  esac;;
2686esac
2687case $ac_abs_builddir in
2688.) ac_abs_srcdir=$ac_srcdir;;
2689*)
2690  case $ac_srcdir in
2691  .) ac_abs_srcdir=$ac_abs_builddir;;
2692  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2693  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2694  esac;;
2695esac
2696case $ac_abs_builddir in
2697.) ac_abs_top_srcdir=$ac_top_srcdir;;
2698*)
2699  case $ac_top_srcdir in
2700  .) ac_abs_top_srcdir=$ac_abs_builddir;;
2701  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2702  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2703  esac;;
2704esac
2705
2706
2707
2708  if test x"$ac_file" != x-; then
2709    { echo "$as_me:$LINENO: creating $ac_file" >&5
2710echo "$as_me: creating $ac_file" >&6;}
2711    rm -f "$ac_file"
2712  fi
2713  # Let's still pretend it is `configure' which instantiates (i.e., don't
2714  # use $as_me), people would be surprised to read:
2715  #    /* config.h.  Generated by config.status.  */
2716  if test x"$ac_file" = x-; then
2717    configure_input=
2718  else
2719    configure_input="$ac_file.  "
2720  fi
2721  configure_input=$configure_input"Generated from `echo $ac_file_in |
2722				     sed 's,.*/,,'` by configure."
2723
2724  # First look for the input files in the build tree, otherwise in the
2725  # src tree.
2726  ac_file_inputs=`IFS=:
2727    for f in $ac_file_in; do
2728      case $f in
2729      -) echo $tmp/stdin ;;
2730      [\\/$]*)
2731	 # Absolute (can't be DOS-style, as IFS=:)
2732	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2733echo "$as_me: error: cannot find input file: $f" >&2;}
2734   { (exit 1); exit 1; }; }
2735	 echo "$f";;
2736      *) # Relative
2737	 if test -f "$f"; then
2738	   # Build tree
2739	   echo "$f"
2740	 elif test -f "$srcdir/$f"; then
2741	   # Source tree
2742	   echo "$srcdir/$f"
2743	 else
2744	   # /dev/null tree
2745	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2746echo "$as_me: error: cannot find input file: $f" >&2;}
2747   { (exit 1); exit 1; }; }
2748	 fi;;
2749      esac
2750    done` || { (exit 1); exit 1; }
2751_ACEOF
2752cat >>$CONFIG_STATUS <<_ACEOF
2753  sed "$ac_vpsub
2754$extrasub
2755_ACEOF
2756cat >>$CONFIG_STATUS <<\_ACEOF
2757:t
2758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2759s,@configure_input@,$configure_input,;t t
2760s,@srcdir@,$ac_srcdir,;t t
2761s,@abs_srcdir@,$ac_abs_srcdir,;t t
2762s,@top_srcdir@,$ac_top_srcdir,;t t
2763s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2764s,@builddir@,$ac_builddir,;t t
2765s,@abs_builddir@,$ac_abs_builddir,;t t
2766s,@top_builddir@,$ac_top_builddir,;t t
2767s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2768" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2769  rm -f $tmp/stdin
2770  if test x"$ac_file" != x-; then
2771    mv $tmp/out $ac_file
2772  else
2773    cat $tmp/out
2774    rm -f $tmp/out
2775  fi
2776
2777  # Run the commands associated with the file.
2778  case $ac_file in
2779    clamassassin ) chmod 555 clamassassin ;;
2780    Makefile ) chmod 555 clamassassin ;;
2781  esac
2782done
2783_ACEOF
2784
2785cat >>$CONFIG_STATUS <<\_ACEOF
2786
2787{ (exit 0); exit 0; }
2788_ACEOF
2789chmod +x $CONFIG_STATUS
2790ac_clean_files=$ac_clean_files_save
2791
2792
2793# configure is writing to config.log, and then calls config.status.
2794# config.status does its own redirection, appending to config.log.
2795# Unfortunately, on DOS this fails, as config.log is still kept open
2796# by configure, so config.status won't be able to write to it; its
2797# output is simply discarded.  So we exec the FD to /dev/null,
2798# effectively closing config.log, so it can be properly (re)opened and
2799# appended to by config.status.  When coming back to configure, we
2800# need to make the FD available again.
2801if test "$no_create" != yes; then
2802  ac_cs_success=:
2803  ac_config_status_args=
2804  test "$silent" = yes &&
2805    ac_config_status_args="$ac_config_status_args --quiet"
2806  exec 5>/dev/null
2807  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2808  exec 5>>config.log
2809  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2810  # would make configure fail if this is the last instruction.
2811  $ac_cs_success || { (exit 1); exit 1; }
2812fi
2813
2814