X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=configure.ac;h=4f72c76916b87cbd85565e28a2194f0513eab946;hp=39ea4188390a82a188250528f6462b45e0ded325;hb=HEAD;hpb=2ad43b49ecc25bdf87dd19037fd63c12428992ae diff --git a/configure.ac b/configure.ac index 39ea418..4f72c76 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([Rakka], [], [phonohawk at ps dot sakura dot ne dot jp]) +AC_INIT([Rakka], [], [pho at cielonegro dot org]) AC_CONFIG_SRCDIR([Rakka.cabal]) @@ -9,27 +9,18 @@ AC_CONFIG_SRCDIR([Rakka.cabal]) if test "x$prefix" = "xNONE"; then prefix=$ac_default_prefix fi +if test "x$exec_prefix" = "xNONE"; then + exec_prefix="$prefix" +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 +RAKKA_BINDIR=`eval echo "$bindir"` +AC_SUBST([RAKKA_BINDIR]) -AC_CONFIG_FILES([ - Rakka.buildinfo -]) +AC_CONFIG_FILES([Rakka.buildinfo]) +AC_CONFIG_FILES([rc.d/NetBSD/rakka], [chmod +x rc.d/NetBSD/rakka]) AC_OUTPUT