File: configure.ac

package info (click to toggle)
libcaptury 0.3.0~svn158-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,548 kB
  • ctags: 175
  • sloc: sh: 9,002; cpp: 846; makefile: 45
file content (58 lines) | stat: -rw-r--r-- 1,617 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
AC_INIT(AUTHORS)

LIBCAPTURY_MAJOR_VERSION=0
LIBCAPTURY_MINOR_VERSION=3
LIBCAPTURY_MICRO_VERSION=0
LIBCAPTURY_RELEASE_INFO="-dev"

LIBCAPTURY_VERSION=$LIBCAPTURY_MAJOR_VERSION.$LIBCAPTURY_MINOR_VERSION.$LIBCAPTURY_MICRO_VERSION$LIBCAPTURY_RELEASE_INFO
LIBCAPTURY_VERSION_INFO=`expr $LIBCAPTURY_MAJOR_VERSION + $LIBCAPTURY_MINOR_VERSION`:$LIBCAPTURY_MICRO_VERSION:$LIBCAPTURY_MINOR_VERSION
LIBCAPTURY_VERSION_NUMBER=`expr $LIBCAPTURY_MAJOR_VERSION \* 10000 + $LIBCAPTURY_MINOR_VERSION \* 100 + $LIBCAPTURY_MICRO_VERSION`

AC_SUBST(LIBCAPTURY_MAJOR_VERSION)
AC_SUBST(LIBCAPTURY_MINOR_VERSION)
AC_SUBST(LIBCAPTURY_MICRO_VERSION)
AC_SUBST(LIBCAPTURY_VERSION)
AC_SUBST(LIBCAPTURY_VERSION_INFO)
AC_SUBST(LIBCAPTURY_VERSION_NUMBER)

VERSION=${LIBCAPTURY_VERSION}

AM_INIT_AUTOMAKE(libcaptury, $VERSION)

AM_CONFIG_HEADER(config.h)

AC_GNU_SOURCE
AC_ISC_POSIX

AC_PROG_INSTALL
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AM_PROG_LIBTOOL

PKG_PROG_PKG_CONFIG([0.17.2])

dnl {{{ --enable-examples
AC_ARG_ENABLE([examples], [
  --disable-examples       Disables compilation of example programs],
  [enable_examples=${withval}],
  [enable_examples=yes]
)
AM_CONDITIONAL([EXAMPLES], [test x$enable_examples = xyes])
dnl }}}

dnl -------------------------------------------------------------------------
PKG_CHECK_MODULES([CAPSEO], [capseo >= 0.0.0])
PKG_CHECK_MODULES([X11], [x11 >= 1.0.0])
PKG_CHECK_MODULES([XFIXES], [xfixes >= 1.0.0])

dnl -------------------------------------------------------------------------
AC_OUTPUT([
  Makefile
  libcaptury.pc
  src/Makefile
  src/captury/Makefile
  examples/Makefile
])

dnl vim:ai:et:ts=2:nowrap