2 # Process this file with autoconf to produce a configure script.
6 m4_include([m4/version.m4])
8 AC_INIT([libquvi-scripts], [_LIBQUVI_SCRIPTS_VERSION],
9 [http://sourceforge.net/apps/trac/quvi/], [],
10 [http://quvi.sourceforge.net/])
12 AC_CONFIG_AUX_DIR([config.aux])
13 AC_CONFIG_MACRO_DIR([m4])
15 AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2 dist-xz])
16 AM_SILENT_RULES([yes])
18 # Checks for programs.
20 AC_PATH_PROG([QUVI], [quvi], [no], [$QUVI_PATH$PATH_SEPARATOR$PATH])
21 AM_CONDITIONAL([HAVE_QUVI], [test x"$QUVI" != "xno"])
22 AS_IF([test x"$QUVI" != "xno"],
23 [quviver=`$QUVI --version | head -n1 2>/dev/null`])
26 AC_PATH_PROG([PROVE], [prove], [no], [$PROVE_PATH$PATH_SEPARATOR$PATH])
27 AM_CONDITIONAL([HAVE_PROVE], [test x"$PROVE" != "xno"])
30 AC_PATH_PROG([VALGRIND], [valgrind], [no],
31 [$VALGRIND_PATH$PATH_SEPARATOR$PATH])
32 AM_CONDITIONAL([HAVE_VALGRIND], [test x"$VALGRIND" != "xno"])
36 genver="$srcdir/gen-ver.sh"
37 AS_IF([test -x "$genver"], [VN=`"$genver" "$srcdir"`])
38 AM_CONDITIONAL([HAVE_VN], [test -n "$VN"])
42 [AS_HELP_STRING([--with-tests],
43 [with tests @<:@default=no@:>@])],
44 [AS_IF([test x"$QUVI" = "xno"], [
45 AC_MSG_NOTICE([quvi not found. Ignoring --with-tests.])
48 AM_CONDITIONAL([WITH_TESTS], [test x"$with_tests" != "xno"])
52 [AS_HELP_STRING([--with-nsfw],
53 [build with adult website support @<:@default=no@:>@])],
56 AM_CONDITIONAL([WITH_NSFW], [test x"$with_nsfw" != "xno"])
60 [AS_HELP_STRING([--with-fixme],
61 [with website scripts marked as "fixme" @<:@default=no@:>@])],
64 AM_CONDITIONAL([WITH_FIXME], [test x"$with_fixme" != "xno"])
68 [AS_HELP_STRING([--with-nlfy],
69 [test scripts marked as "nlfy" @<:@default=no@:>@])],
72 AM_CONDITIONAL([WITH_NLFY], [test x"$with_nlfy" != "xno"])
76 [AS_HELP_STRING([--with-manual],
77 [install manual pages @<:@default=yes@:>@])],
80 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
93 version: ${VERSION} (${VN})
99 with tests: ${with_tests}
100 with fixme: ${with_fixme}
101 with nsfw: ${with_nsfw}
102 with nlfy: ${with_nlfy}])