/ configure.ac
configure.ac
1 # Copyright © 2016 Dr. Tobias Quathamer <toddy@debian.org> 2 # 3 # This program is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 AC_INIT([isoquery],[3.3.4]) 17 18 AC_CONFIG_AUX_DIR([build]) 19 AC_CONFIG_MACRO_DIR([build/m4]) 20 AC_REQUIRE_AUX_FILE([tap-driver.sh]) 21 AC_REQUIRE_AUX_FILE([tap-test]) 22 23 AM_INIT_AUTOMAKE([dist-xz no-dist-gzip foreign subdir-objects]) 24 AM_MAINTAINER_MODE 25 26 # Check for required programs 27 AC_PROG_CC 28 PKG_PROG_PKG_CONFIG 29 30 # Required libraries 31 PKG_CHECK_MODULES([GLIB], [glib-2.0]) 32 PKG_CHECK_MODULES([JSON], [json-glib-1.0]) 33 34 # Use testsuite 35 GLIB_TESTS 36 37 # Set up gettext 38 AM_GNU_GETTEXT([external]) 39 AM_GNU_GETTEXT_VERSION([0.19]) 40 AC_DEFINE([GETTEXT_PACKAGE], ["isoquery"], [Gettext package name.]) 41 42 # Detect some programs needed for building 43 AC_PATH_PROG([ASCIIDOCTOR], [asciidoctor], [no]) 44 if test x"$ASCIIDOCTOR" = x"no" ; then 45 AC_MSG_ERROR([asciidoctor is required.]) 46 fi 47 AC_PATH_PROG([PO4A_TRANSLATE], [po4a-translate], [no]) 48 if test x"$PO4A_TRANSLATE" = x"no" ; then 49 AC_MSG_ERROR([po4a-translate is required.]) 50 fi 51 AC_PATH_PROG([PO4A_GETTEXTIZE], [po4a-gettextize], [no]) 52 if test x"$PO4A_GETTEXTIZE" = x"no" ; then 53 AC_MSG_ERROR([po4a-gettextize is required.]) 54 fi 55 56 # Output 57 AC_CONFIG_FILES([ 58 Makefile 59 po/Makefile.in 60 src/Makefile 61 tests/Makefile 62 ]) 63 64 AC_OUTPUT