Remove config.aux
[libquvi-scripts.git] / configure.ac
blob15da2ff6fb863dbca6c29fa678c70dbeb60ff4eb
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ([2.68])
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`])
24 AC_SUBST([QUVI])
26 AC_PATH_PROG([PROVE], [prove], [no], [$PROVE_PATH$PATH_SEPARATOR$PATH])
27 AM_CONDITIONAL([HAVE_PROVE], [test x"$PROVE" != "xno"])
28 AC_SUBST([PROVE])
30 AC_PATH_PROG([VALGRIND], [valgrind], [no],
31   [$VALGRIND_PATH$PATH_SEPARATOR$PATH])
32 AM_CONDITIONAL([HAVE_VALGRIND], [test x"$VALGRIND" != "xno"])
33 AC_SUBST([VALGRIND])
35 # Version.
36 genver="$srcdir/gen-ver.sh"
37 AS_IF([test -x "$genver"], [VN=`"$genver" "$srcdir"`])
38 AM_CONDITIONAL([HAVE_VN], [test -n "$VN"])
40 # --with-tests
41 AC_ARG_WITH([tests],
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.])
46     with_tests=no])],
47   [with_tests=no])
48 AM_CONDITIONAL([WITH_TESTS], [test x"$with_tests" != "xno"])
50 # --with-nsfw
51 AC_ARG_WITH([nsfw],
52   [AS_HELP_STRING([--with-nsfw],
53     [build with adult website support @<:@default=no@:>@])],
54   [],
55   [with_nsfw=no])
56 AM_CONDITIONAL([WITH_NSFW], [test x"$with_nsfw" != "xno"])
58 # --with-fixme
59 AC_ARG_WITH([fixme],
60   [AS_HELP_STRING([--with-fixme],
61     [with website scripts marked as "fixme" @<:@default=no@:>@])],
62   [],
63   [with_fixme=no])
64 AM_CONDITIONAL([WITH_FIXME], [test x"$with_fixme" != "xno"])
66 # --with-nlfy
67 AC_ARG_WITH([nlfy],
68   [AS_HELP_STRING([--with-nlfy],
69     [test scripts marked as "nlfy" @<:@default=no@:>@])],
70   [],
71   [with_nlfy=no])
72 AM_CONDITIONAL([WITH_NLFY], [test x"$with_nlfy" != "xno"])
74 # --with-manual
75 AC_ARG_WITH([manual],
76   [AS_HELP_STRING([--with-manual],
77     [install manual pages @<:@default=yes@:>@])],
78   [],
79   [with_manual=yes])
80 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
82 AC_CONFIG_FILES([
83   Makefile
84   doc/Makefile
85   doc/man7/Makefile
86   share/Makefile
87   share/lua/Makefile
88   tests/Makefile
89   libquvi-scripts.pc])
90 AC_OUTPUT
92 AC_MSG_NOTICE([
93   version:    ${VERSION} (${VN})
94   prefix:     ${prefix}
95 quvi:
96   version:    ${quviver}
97   path:       ${QUVI}
98 Options:
99   with tests: ${with_tests}
100   with fixme: ${with_fixme}
101   with nsfw:  ${with_nsfw}
102   with nlfy:  ${with_nlfy}])