File: configure.ac

package info (click to toggle)
debtags-edit 1.2.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 644 kB
  • ctags: 475
  • sloc: cpp: 3,045; sh: 788; makefile: 23
file content (64 lines) | stat: -rw-r--r-- 1,526 bytes parent folder | download
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(debtags-edit, 1.2.3, [enrico@debian.org])
AC_CONFIG_SRCDIR([configure.ac])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([foreign])

AC_LANG([C++])

dnl Add options for local configuration

dnl Ti use subdirs
AC_PROG_MAKE_SET

AC_ISC_POSIX
AC_PROG_CXX()
AC_PROG_CXXCPP
AM_PROG_CC_STDC
AC_HEADER_STDC

dnl AC_PROG_RANLIB
dnl AM_PROG_LIBTOOL

LIBWIBBLE_DEFS
LIBTAGCOLL2_DEFS
LIBEPT_DEFS

PKG_CHECK_MODULES([GTKMM], [sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0])AC_SUBST([GTKMM_CFLAGS])
AC_SUBST([GTKMM_LIBS])

dnl Check for libapt-pkg
dnl FIXME: since I've found no way of checking for the library, I assume that
dnl if the header is found, then the library must also be available
AC_CHECK_HEADER(apt-pkg/error.h, LIBS="-lapt-pkg $LIBS"; AC_DEFINE(HAVE_APT_PKG, 1, apt-pkg headers have been found),
AC_MSG_ERROR([
*** apt-pkg/error.h not found. Check 'config.log' for more details.]))

dnl Add the languages which your application supports here.
dnl ALL_LINGUAS="fr da es no it"
dnl ALL_LINGUAS="it"
dnl ALL_LINGUAS=""
dnl AM_GNU_GETTEXT

dnl Controlla se c'e' libpthread
dnl AC_CHECK_HEADERS(pthread.h)
dnl AC_CHECK_LIB(pthread, pthread_create)

dnl Look for tail and #define TAIL_BIN
dnl AC_PATH_PROG(TAIL_BIN, "tail")
dnl AC_DEFINE_UNQUOTED(TAIL_BIN, "${TAIL_BIN}")

dnl Look for perl
dnl AC_PATH_PROG(PERL, "perl")
dnl AC_SUBST(PERL)

dnl CXXFLAGS="-Wall -gstabs+ $CXXFLAGS"
CXXFLAGS="-Wall $CXXFLAGS"

AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT