forked from tadeboro/snrmga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
77 lines (61 loc) · 2.94 KB
/
configure.ac
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
69
70
71
72
73
74
75
76
77
# Copyright (C) 2009 Tadej Borovšak <[email protected]>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
AC_INIT([Snrmga], [0.0.2], [[email protected]], [snrmga], [http://www.snrmga.org])
# This line initializes autoconf and tells it that our package is named
# "Snrmga", current version is "0.0.1", bugs can be reported to
# "[email protected]" and that tarball should be named snrmga.tar.gz
# "http://www.snrmga.org is the homepage of the project"
AC_PREREQ([2.64])
# This line simply sets required version of autoconf.
AC_CONFIG_SRCDIR([src/snrmga.c])
# This is safety check that can catch bad source directory being passed to
# configure script via --srcdir switch.
AC_CONFIG_MACRO_DIR([macros])
# This line informs build system where additional macros can be found.
AC_CONFIG_AUX_DIR([build-aux])
# This line instructs build system to place auxiliary files in separate folder
# (this keeps toplevel directory a bit cleaner).
AC_CONFIG_HEADERS([config.h])
# This line instructs build system to create config.h header file instead of
# passing all macros on command line.
AM_INIT_AUTOMAKE([1.11])
# Initialize automake (we require 1.11 version here).
AM_SILENT_RULES([yes])
# This line turns on silent rules.
AC_PROG_CC
# This line searches for C compiler and sets CC variable.
AM_PROG_CC_C_O
# This macro is needed in order to be able to build objects in subdirs (this
# will be explained in greater detail later when we come to Makefile.am).
IT_PROG_INTLTOOL([0.40])
AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])
AC_SUBST([GETTEXT_PACKAGE], [snrmga])
AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the package name.])
# These lines enable support for multiple languages in application. They
# initialize intltool and gettext (used to extract translatable strings) and
# set some macros that we need in sources to init translations.
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Build with debugging support])])
AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = "xyes"])
AS_IF([test "x$enable_debug" = "xyes"],
[AC_DEFINE([ENABLE_DEBUG], [1],
[Define to enable debugging])])
# This code snippet adds configure switch that turns on debug support.
SNRMGA_MODS="gtk+-2.0 >= 2.14 gmodule-2.0"
PKG_CHECK_MODULES([SNRMGA], [$SNRMGA_MODS])
# These two lines specify our application's dependencies and provide proper
# compiler and linker flags.
AC_CONFIG_FILES([Makefile
po/Makefile.in
data/snrmga.desktop.in])
AC_OUTPUT
# These two macros specify which files should be produced by configure script.