~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to m4/reorganization/dbdir.m4

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_ARG_WITH([dbdir], 
 
2
[  --with-dbdir=path      path to virus database directory],
 
3
db_dir="$withval", db_dir="_default_")
 
4
 
 
5
dnl I had problems with $pkgdatadir thus these funny checks
 
6
if test "$db_dir" = "_default_"
 
7
then
 
8
    if test "$prefix" = "NONE"
 
9
    then
 
10
        db_dir="$ac_default_prefix/share/clamav"
 
11
    else
 
12
        db_dir="$prefix/share/clamav"
 
13
    fi
 
14
fi
 
15
 
 
16
AC_DEFINE_UNQUOTED([DATADIR],"$db_dir", [Path to virus database directory.])
 
17
DBDIR="$db_dir"
 
18
AC_SUBST([DBDIR])