gnt-frontend for purple-remote
[python-gnt.git] / configure.ac
blob6c2adb37e35b9f4a64aa64af31e23bfcd3a2ca4b
1 AC_PREREQ([2.50])
3 AC_INIT([python-gnt], [0.0.1], [sadrul@pidgin.im])
5 AC_CANONICAL_SYSTEM
6 AM_CONFIG_HEADER(config.h)
7 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
9 AC_PROG_CC
10 AC_DISABLE_STATIC
11 AM_PROG_LIBTOOL
12 LIBTOOL="$LIBTOOL --silent"
13 AC_PROG_INSTALL
14 PKG_PROG_PKG_CONFIG
16 AC_C_BIGENDIAN
18 AM_PATH_PYTHON(2.4.0)
19 AM_CHECK_PYTHON_HEADERS(, [AC_MSG_ERROR(could not find Python headers.)])
20 AC_SUBST(PYTHON_INCLUDES)
22 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0], , [
23         AC_MSG_RESULT(no)
24         AC_MSG_ERROR([
26 You must have the GLib 2.0 development headers installed to build.
27 ])])
28 AC_SUBST(GLIB_CFLAGS)
29 AC_SUBST(GLIB_LIBS)
31 PKG_CHECK_MODULES(GNT, [gnt], , [
32         AC_MSG_RESULT(no)
33         AC_MSG_ERROR([
35 You must have the gnt development headers installed to build.
36 ])])
38 PKG_CHECK_MODULES(PYGTK, [pygtk-2.0], , [
39         AC_MSG_RESULT(no)
40         AC_MSG_ERROR([
42 You must have the pygtk development headers installed to build.
43 ])])
45 AC_SUBST(GNT_CFLAGS)
46 AC_SUBST(GNT_LIBS)
48 AC_OUTPUT([Makefile])