2 # Process this file with autoconf to produce a configure script.
6 m4_include([m4/version.m4])
8 AC_INIT([libquvi-scripts], [libquvi_scripts_rel],
9 [http://quvi.sf.net/bugs/], [], [http://quvi.sf.net/])
11 AC_CONFIG_SRCDIR([tests/lib/env.c])
12 AC_CONFIG_HEADERS([config.h])
13 AC_CONFIG_AUX_DIR([config.aux])
14 AC_CONFIG_MACRO_DIR([m4])
16 AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-xz no-dist-gzip tar-ustar])
17 AM_SILENT_RULES([yes])
20 LT_INIT([disable-static])
23 # Checks for programs.
28 genver="$srcdir/gen-ver.sh"
29 AS_IF([test -x "$genver"], [VN=`"$genver" "$srcdir"`])
30 AM_CONDITIONAL([HAVE_VN], [test -n "$VN"])
33 pkg_libquvi=libquvi-1.0
35 [AS_HELP_STRING([--with-tests], [with tests @<:@default=no@:>@])],
36 [PKG_CHECK_MODULES([libquvi], ["$pkg_libquvi" >= 1.0],
37 [libquvi_modver=`$PKG_CONFIG --modversion $pkg_libquvi 2>/dev/null`
38 PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.24],
39 [PKG_CHECK_MODULES([libcurl], [libcurl >= 7.21], [with_tests=yes])])
42 AM_CONDITIONAL([WITH_TESTS], [test x"$with_tests" = "xyes"])
46 [AS_HELP_STRING([--with-nsfw],
47 [build with adult website support @<:@default=no@:>@])],
49 AM_CONDITIONAL([WITH_NSFW], [test x"$with_nsfw" != "xno"])
53 [AS_HELP_STRING([--with-fixme],
54 [with website scripts marked as "fixme" @<:@default=no@:>@])],
56 AM_CONDITIONAL([WITH_FIXME], [test x"$with_fixme" != "xno"])
60 [AS_HELP_STRING([--with-nlfy],
61 [test scripts marked as "nlfy" @<:@default=no@:>@])],
63 AM_CONDITIONAL([WITH_NLFY], [test x"$with_nlfy" != "xno"])
67 [AS_HELP_STRING([--with-manual],
68 [install manual pages @<:@default=yes@:>@])],
69 [], [with_manual=yes])
70 AM_CONDITIONAL([WITH_MANUAL], [test x"$with_manual" != "xno"])
80 libquvi-scripts-1.0.pc])
84 version: ${VERSION} (${VN})
89 with tests: ${with_tests} (libquvi, .pc modversion ${libquvi_modver})
90 with fixme: ${with_fixme}
91 with nsfw: ${with_nsfw}
92 with nlfy: ${with_nlfy}])