]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - configure.ac
Implemented inline images and framed images
[Rakka.git] / configure.ac
index 1a6e943a92e7158d8fde0917f1c3fa2849d7581c..39ea4188390a82a188250528f6462b45e0ded325 100644 (file)
@@ -2,6 +2,7 @@ AC_INIT([Rakka], [], [phonohawk at ps dot sakura dot ne dot jp])
 
 AC_CONFIG_SRCDIR([Rakka.cabal])
 
+
 # $localstatedir has a reference to ${prefix} but the ${prefix} is
 # "NONE" at this time. AC_OUTPUT changes the value of ${prefix} from
 # "NONE" to $ac_default_prefix but it's too late!
@@ -12,6 +13,21 @@ fi
 RAKKA_LOCALSTATEDIR=`eval echo "$localstatedir"`/rakka
 AC_SUBST([RAKKA_LOCALSTATEDIR])
 
+
+# Since the Cabal executes ./configure with no arguments, the only way
+# we can receive options from user is to see environment variables.
+AC_ARG_VAR([BUILD_TEST_SUITE], [build and install the test suite. (yes / no) (default: no)])
+if test "$BUILD_TEST_SUITE" = ""; then
+  BUILD_TEST_SUITE=False
+elif test "$BUILD_TEST_SUITE" = "yes"; then
+  BUILD_TEST_SUITE=True
+elif test "$BUILD_TEST_SUITE" = "no"; then
+  BUILD_TEST_SUITE=False
+else
+  AC_MSG_ERROR([BUILD_TEST_SUITE must be either yes or no.])
+fi
+
+
 AC_CONFIG_FILES([
         Rakka.buildinfo
 ])