| 1 |
dnl $Revision: $
|
| 2 |
dnl Process this file with autoconf to produce a configure script.
|
| 3 |
|
| 4 |
VERSION = 0.9.22
|
| 5 |
|
| 6 |
AC_INIT([splashy], [0.1+SVN], [splashy-devel@alioth.debian.org])
|
| 7 |
AC_CONFIG_SRCDIR(src/main.c)
|
| 8 |
AM_CONFIG_HEADER(config.h)
|
| 9 |
AM_INIT_AUTOMAKE([splashy], [0.1+SVN])
|
| 10 |
|
| 11 |
AC_PREREQ(2.59)
|
| 12 |
AC_ENABLE_STATIC
|
| 13 |
AC_LANG_C
|
| 14 |
AC_PROG_CC
|
| 15 |
AC_PROG_INSTALL
|
| 16 |
AC_PROG_LIBTOOL
|
| 17 |
PKG_CHECK_MODULES(splashy, [glib-2.0, directfb >= $VERSION])
|
| 18 |
PKG_CHECK_MODULES(splashy_config, [glib-2.0, directfb >= $VERSION])
|
| 19 |
#>= $DIRECTFB_REQUIRED])
|
| 20 |
|
| 21 |
# EXTRA ARGS #
|
| 22 |
# Add an --enable-debug option to turn on DEBUG_PRINT statements
|
| 23 |
AH_TEMPLATE(DEBUG,[Define to enable debugging messages])
|
| 24 |
AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[enable debugging messages]),AC_DEFINE(DEBUG))
|
| 25 |
# END EXTRA ARGS
|
| 26 |
|
| 27 |
# we compile splashy statically always
|
| 28 |
AC_SUBST(splashy_LIBS)
|
| 29 |
AC_SUBST(splashy_CFLAGS)
|
| 30 |
AC_SUBST(splashy_config_LIBS)
|
| 31 |
AC_SUBST(splashy_config_CFLAGS)
|
| 32 |
|
| 33 |
AC_OUTPUT(Makefile src/Makefile Doxyfile)
|
| 34 |
|
| 35 |
echo
|
| 36 |
echo $PACKAGE $VERSION
|
| 37 |
echo
|
| 38 |
echo Print debugging messages...... : $enable_debug
|
| 39 |
echo
|