tests: default: lego.json: Update
[libquvi-scripts.git] / configure.ac
blobc91674998c70386a3aadc44f5245f94f0d281c93
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ([2.67])
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], [], [$QUVI_PATH$PATH_SEPARATOR$PATH])
21 AM_CONDITIONAL([HAVE_QUVI], [test -n "$QUVI"])
22 AS_IF([test -n "$QUVI"], [quviver=`$QUVI --version | head -n1 2>/dev/null`])
23 AC_SUBST([QUVI])
25 AC_PATH_PROG([PROVE], [prove], [], [$PROVE_PATH$PATH_SEPARATOR$PATH])
26 AM_CONDITIONAL([HAVE_PROVE], [test -n "$PROVE"])
27 AC_SUBST([PROVE])
29 AC_PATH_PROG([VALGRIND], [valgrind], [], [$VALGRIND_PATH$PATH_SEPARATOR$PATH])
30 AM_CONDITIONAL([HAVE_VALGRIND], [test -n "$VALGRIND"])
31 AC_SUBST([VALGRIND])
33 # Version.
34 genver="$srcdir/gen-ver.sh"
35 AS_IF([test -x "$genver"], [VN=`"$genver" "$srcdir"`])
36 AM_CONDITIONAL([HAVE_VN], [test -n "$VN"])
38 # --with-tests
39 AC_ARG_WITH([tests],
40   [AS_HELP_STRING([--with-tests], [with tests @<:@default=no@:>@])],
41   [AS_IF([test -z "$QUVI"], [
42     AC_MSG_NOTICE([quvi not found. Ignoring --with-tests.])
43     with_tests=no])],
44   [with_tests=no])
45 AM_CONDITIONAL([WITH_TESTS], [test x"$with_tests" != "xno"])
47 # --with-nsfw
48 AC_ARG_WITH([nsfw],
49   [AS_HELP_STRING([--with-nsfw],
50     [build with adult website support @<:@default=no@:>@])],
51   [],
52   [with_nsfw=no])
53 AM_CONDITIONAL([WITH_NSFW], [test x"$with_nsfw" != "xno"])
55 # --with-fixme
56 AC_ARG_WITH([fixme],
57   [AS_HELP_STRING([--with-fixme],
58     [with website scripts marked as "fixme" @<:@default=no@:>@])],
59   [],
60   [with_fixme=no])
61 AM_CONDITIONAL([WITH_FIXME], [test x"$with_fixme" != "xno"])
63 # --with-nlfy
64 AC_ARG_WITH([nlfy],
65   [AS_HELP_STRING([--with-nlfy],
66     [test scripts marked as "nlfy" @<:@default=no@:>@])],
67   [],
68   [with_nlfy=no])
69 AM_CONDITIONAL([WITH_NLFY], [test x"$with_nlfy" != "xno"])
71 # --with-manual
72 AC_ARG_WITH([manual],
73   [AS_HELP_STRING([--with-manual],
74     [install manual pages @<:@default=yes@:>@])],
75   [],
76   [with_manual=yes])
77 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
79 AC_CONFIG_FILES([
80   Makefile
81   doc/Makefile
82   doc/man7/Makefile
83   share/Makefile
84   share/lua/Makefile
85   tests/Makefile
86   libquvi-scripts.pc])
87 AC_OUTPUT
89 AC_MSG_NOTICE([
90   version:    ${VERSION} (${VN})
91   prefix:     ${prefix}
92 quvi:
93   version:    ${quviver}
94   path:       ${QUVI}
95 Options:
96   with tests: ${with_tests}
97   with fixme: ${with_fixme}
98   with nsfw:  ${with_nsfw}
99   with nlfy:  ${with_nlfy}])