-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
62 lines (53 loc) · 1.64 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
# Copyright (c) 2020-2024 Esrille Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
m4_define([paint_version], [0.2.4~rc1])
AC_INIT([esrille-paint], [paint_version], [https://github.com/esrille/paint/issues])
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([foreign tar-ustar])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
AM_GNU_GETTEXT_VERSION([0.19.8])
# Check Python
AM_PATH_PYTHON([3.8])
# define GETTEXT_* variables
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(
GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[Define to the read-only architecture-independent data directory.]
)
# For GitHub
m4_define(paint_source_version,
[m4_esyscmd(echo -n paint_version | tr '~' '-')])
SOURCE_VERSION="paint_source_version"
AC_SUBST(SOURCE_VERSION)
PKG_PROG_PKG_CONFIG
# glib-compile-resources
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
# OUTPUT files
AC_CONFIG_FILES(
docs/Makefile
docs/en/Makefile
docs/figures/Makefile
docs/ja/Makefile
icons/Makefile
po/Makefile.in
src/Makefile
src/esrille-paint.in
src/package.py.in
src/resources/Makefile
Makefile
)
AC_OUTPUT