File: configure.ac

package info (click to toggle)
isoquery 2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,340 kB
  • ctags: 433
  • sloc: sh: 4,735; ansic: 3,803; makefile: 73; sed: 16
file content (68 lines) | stat: -rw-r--r-- 2,055 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Process this file with autoconf to produce a configure script.
#
# Copyright © 2013-2014 Tobias Quathamer
#
# This file is part of isoquery.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Set up autoconf
AC_PREREQ([2.69])
AC_INIT([isoquery], [2.0], [toddy@debian.org])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])

# Set up automake
AM_INIT_AUTOMAKE([1.13 foreign subdir-objects silent-rules no-dist-gzip dist-xz])
AM_MAINTAINER_MODE

# Check for compilers and pkg-config
AM_PROG_VALAC([0.20])
AC_PROG_CC
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG

# Set up gettext
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18])
AC_DEFINE([GETTEXT_PACKAGE], ["isoquery"], [Gettext package name.])

# Detect the needed libraries
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0])
PKG_CHECK_MODULES([GLIB], [glib-2.0])
PKG_CHECK_MODULES([LIBISOCODES], [libisocodes])

# Detect some programs needed for building
AC_PATH_PROG([RST2MAN], [rst2man], [no])
if test x"$RST2MAN" == x"no" ; then
    AC_MSG_ERROR([rst2man is required.])
fi
AC_PATH_PROG([PO4A_TRANSLATE], [po4a-translate], [no])
if test x"$PO4A_TRANSLATE" == x"no" ; then
    AC_MSG_ERROR([po4a-translate is required.])
fi
AC_PATH_PROG([PO4A_GETTEXTIZE], [po4a-gettextize], [no])
if test x"$PO4A_GETTEXTIZE" == x"no" ; then
    AC_MSG_ERROR([po4a-gettextize is required.])
fi

# Write configuration files
AC_CONFIG_FILES([
	Makefile
	po/Makefile.in
])

# Terminate script
AC_OUTPUT