File: configure.ac

package info (click to toggle)
tagcoll 1.6.3-2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,500 kB
  • ctags: 2,062
  • sloc: cpp: 10,930; sh: 8,892; makefile: 201; lex: 54; yacc: 27
file content (67 lines) | stat: -rw-r--r-- 1,364 bytes parent folder | download | duplicates (2)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(tagcoll, 1.6.3, [enrico@debian.org])
AC_CONFIG_SRCDIR([configure.ac])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([foreign])

AC_ARG_ENABLE(docs,
		[  --enable-docs    Turn on generation of documentation],
		[case "${enableval}" in
			yes) docs=true ;;
			no)  docs=false ;;
			*) AC_MSG_ERROR(bad value ${enableval} for --enable-docs) ;;
		esac],[docs=true])
AM_CONDITIONAL(DO_DOCS, test x$docs = xtrue)

AC_LANG([C++])

dnl Add options for local configuration

dnl To use subdirs
AC_PROG_MAKE_SET

AC_ISC_POSIX
AC_PROG_CXX()
AC_PROG_CXXCPP
AM_PROG_CC_STDC
AC_HEADER_STDC

AM_PROG_LEX
AC_PROG_YACC

AM_DISABLE_SHARED

dnl Use libtool
AM_PROG_LIBTOOL

LIBTAGCOLL_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
AC_SUBST(LIBTAGCOLL_VERSION_INFO)

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 perl
dnl AC_PATH_PROG(PERL, "perl")
dnl AC_SUBST(PERL)

CXXFLAGS="$CXXFLAGS -Wall"

AC_CONFIG_FILES([
Makefile
tagcoll/Makefile
tagcoll/tagexpr/Makefile
tests/Makefile
bench/Makefile
doc/Makefile
tools/Makefile
libtagcoll.pc
])
AC_OUTPUT