]> gitweb @ CieloNegro.org - Rakka.git/blob - configure.ac
wrote more...
[Rakka.git] / configure.ac
1 AC_INIT([Rakka], [], [phonohawk at ps dot sakura dot ne dot jp])
2
3 AC_CONFIG_SRCDIR([Rakka.cabal])
4
5
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
11 fi
12
13 RAKKA_LOCALSTATEDIR=`eval echo "$localstatedir"`/rakka
14 AC_SUBST([RAKKA_LOCALSTATEDIR])
15
16
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 else
23   if test "$BUILD_TEST_SUITE" = "yes"; then
24     BUILD_TEST_SUITE=True
25   else
26      if test "$BUILD_TEST_SUITE" = "no"; then
27        BUILD_TEST_SUITE=False
28      else
29        AC_MSG_ERROR([BUILD_TEST_SUITE must be either yes or no.])
30      fi
31   fi
32 fi
33
34
35 AC_CONFIG_FILES([
36         Rakka.buildinfo
37 ])
38 AC_OUTPUT
39