X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/762806f18406049fd7a3579087172b92171fdbc4..a29ea0499189a0534746ed6f5df7f1638478dd3a:/configure.ac diff --git a/configure.ac b/configure.ac index f372639..1bdd1e8 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,7 @@ # # This file is part of DisOrder. # Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell +# Portions copyright (C) 2007 Ross Younger # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,9 +20,9 @@ # USA # -AC_INIT([disorder], [1.5.99+], [richard+disorder@sfere.greenend.org.uk]) +AC_INIT([disorder], [2.0], [richard+disorder@sfere.greenend.org.uk]) AC_CONFIG_AUX_DIR([config.aux]) -AM_INIT_AUTOMAKE(disorder, [1.5.99+]) +AM_INIT_AUTOMAKE(disorder, [2.0]) AC_CONFIG_SRCDIR([server/disorderd.c]) AM_CONFIG_HEADER([config.h]) @@ -125,17 +126,16 @@ subdirs="scripts lib clients doc examples debian" if test $want_server = yes; then subdirs="${subdirs} server plugins driver templates sounds images" fi -if test $want_python = yes; then - AM_PATH_PYTHON - subdirs="${subdirs} python" -fi if test $want_gtk = yes; then subdirs="${subdirs} disobedience" if test $want_server = no; then subdirs="${subdirs} images" fi fi -subdirs="${subdirs} tests" +if test $want_python = yes; then + AM_PATH_PYTHON([2.4]) + subdirs="${subdirs} python tests" +fi AC_SUBST([subdirs]) # libtool config @@ -467,10 +467,10 @@ if test "x$GCC" = xyes; then if test $rjk_cv_shadow = yes; then CC="${CC} -Wshadow" fi - - fi +RJK_GCOV + AH_BOTTOM([#ifdef __GNUC__ # define attribute(x) __attribute__(x) #else @@ -498,3 +498,6 @@ AC_OUTPUT if test $GCC = yes && test "$gcc_werror" = ''; then AC_MSG_WARN([building without -Werror]) fi +if test $want_python = no; then + AC_MSG_WARN([cannot run the test suit without Python]) +fi