1 AC_INIT([Rakka], [], [phonohawk at ps dot sakura dot ne dot jp])
3 AC_CONFIG_SRCDIR([Rakka.cabal])
6 # $localstatedir has a reference to ${prefix} but the ${prefix} is
7 # "NONE" at this time. AC_OUTPUT changes the value of ${prefix} from
8 # "NONE" to $ac_default_prefix but it's too late!
9 if test "x$prefix" = "xNONE"; then
10 prefix=$ac_default_prefix
13 RAKKA_LOCALSTATEDIR=`eval echo "$localstatedir"`/rakka
14 AC_SUBST([RAKKA_LOCALSTATEDIR])
17 # Since the Cabal executes ./configure with no arguments, the only way
18 # we can receive options from user is to see environment variables.
19 AC_ARG_VAR([BUILD_TEST_SUITE], [build and install the test suite. (yes / no) (default: no)])
20 if test "$BUILD_TEST_SUITE" = ""; then
21 BUILD_TEST_SUITE=False
22 elif test "$BUILD_TEST_SUITE" = "yes"; then
24 elif test "$BUILD_TEST_SUITE" = "no"; then
25 BUILD_TEST_SUITE=False
27 AC_MSG_ERROR([BUILD_TEST_SUITE must be either yes or no.])