~ubuntu-branches/ubuntu/intrepid/debtags/intrepid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
dnl Process this file with autoconf to produce a configure script.
AC_INIT(debtags, 1.7.5, [enrico@debian.org])
AC_CONFIG_SRCDIR([configure.ac])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([foreign])

dnl Make it optional to compile the docs, since it's time consuming
AC_ARG_ENABLE(docs,
		[  --enable-docs    Turn on generation of documentation],
		[case "${enableval}" in
			yes) swig=true ;;
			no)  swig=false ;;
			*) AC_MSG_ERROR(bad value ${enableval} for --enable-docs) ;;
		esac],[swig=true])
AM_CONDITIONAL(DO_DOCS, test x$swig = xtrue)

dnl To use subdirs
AC_PROG_MAKE_SET

AC_LANG(C++)

AC_GNU_SOURCE
dnl AC_ISC_POSIX
AC_PROG_CXX()
AC_PROG_CXXCPP
AM_PROG_CC_STDC
AC_HEADER_STDC

dnl Use libtool
AM_PROG_LIBTOOL

dnl Python build system
AM_PATH_PYTHON

dnl Use wibble, tagcoll2 and pkg
LIBWIBBLE_DEFS
LIBTAGCOLL2_DEFS
LIBEPT_DEFS

dnl Directory where the shared databases are kept
databasedir="$localstatedir/lib/$PACKAGE"
AC_SUBST(databasedir)

dnl Directory where the cached downloaded data are kept
pkgcachedir="$localstatedir/cache/$PACKAGE"
AC_SUBST(pkgcachedir)

confdir="$sysconfdir/$PACKAGE"
AC_SUBST(confdir)

bashcompdir="$sysconfdir/bash_completion.d"
AC_SUBST(bashcompdir)

dnl fn_tagdb = '$(statedir)'/package-tags
dnl fn_vocab = '$(statedir)'/vocabulary
dnl fn_dist_vocab = '$(/usr/share/debtags)'/vocabulary
dnl fn_sources = '$(sysconfigdir)'/debtags/sources.list
dnl path_cache = '$(localstatedir)'/cache/debtags
dnl path_tagpatch_d = '$(sysconfigdir)'/debtags/tagpatch.d
dnl path_tagvoc_d = '$(sysconfigdir)'/debtags/tagvoc.d
dnl remote_tags_fname = tags-current.gz
dnl remote_vocab_fname = vocabulary.gz

dnl Look for apt-get
AC_PATH_PROG(APTGET, apt-get, /usr/bin/apt-get)
AC_SUBST(APTGET)
AC_DEFINE_UNQUOTED(APTGET, "$APTGET", [Location of apt-get program])

dnl I want gcc to tell me as much as possible
extra_warnings=""
#extra_warnings="-W -Wsystem-headers -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wunreachable-code -Winline -Wlong-long -Wdisabled-optimization"
dnl -Waggregate-return 
CXXFLAGS="$extra_warnings $CXXFLAGS"
dnl -Werror

AC_CONFIG_FILES([
Makefile
tools/Makefile
doc/Makefile
])
AC_OUTPUT