-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
38 lines (32 loc) · 963 Bytes
/
configure.ac
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
AC_PREREQ([2.67])
# Initialize build system tools
AC_INIT([geany-zencoding], [0.01], [[email protected]])
AM_INIT_AUTOMAKE([foreign silent-rules])
LT_INIT([disable-static])
# Configure build system and tools
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/plugin.c])
# Check for utilities
AC_PROG_CC
AC_PROG_SED
# Check for Python to pre-compile python sources
AC_PATH_PROG([PYTHON], [python], [no])
AC_SUBST([PYTHON])
if [[ x"$PYTHON" = "xno" ]]; then
AC_MSG_ERROR([Python not found, is it installed?])
fi
# Check for headers, libraries and packages
AC_CHECK_HEADERS([stdio.h string.h assert.h limits.h dlfcn.h regex.h])
PKG_CHECK_MODULES([gtk], [gtk+-2.0])
PKG_CHECK_MODULES([geany], [geany])
AX_PYTHON_DEVEL([>= '2.6'])
# Generate build files
AC_OUTPUT([Makefile
src/Makefile
zencoding/Makefile
zencoding/actions/Makefile
zencoding/filters/Makefile
zencoding/interface/Makefile
zencoding/parser/Makefile
data/Makefile])