X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f368d6c7a7ee49cba93c6d51b512eb44e3abe7a5..d84bf4223d7bda2b5a465d7a37de3b269de0184a:/configure.ac diff --git a/configure.ac b/configure.ac index 68dbae0..9e353f8 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 @@ -255,6 +255,7 @@ if test $want_server = yes; then AC_CHECK_HEADERS([db.h],[:],[ missing_headers="$missing_headers $ac_header" ]) + AC_CHECK_HEADERS([FLAC/file_decoder.h]) fi AC_CHECK_HEADERS([dlfcn.h gcrypt.h \ getopt.h iconv.h langinfo.h \ @@ -466,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 @@ -497,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