-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
44 lines (36 loc) · 1.16 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
# package, version, [bug-report], [tarname], [url]
#
AC_INIT([lepton-conf],
[1.0.0],
[https://github.com/graahnul-grom/lepton-conf/issues],
[lepton-conf],
[https://github.com/graahnul-grom/lepton-conf])
# foreign: do not require README, NEWS, etc. GNU stuff
# subdir-objects: place *.o files in src/, not root dir
#
AM_INIT_AUTOMAKE([foreign subdir-objects])
# how to name autotools-output files:
#
AC_CONFIG_FILES([Makefile src/Makefile docs/Makefile data/Makefile])
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_LIBTOOL
# check for pkg-config:
#
PKG_PROG_PKG_CONFIG
# check for specific pkg-config package:
#
# params: prefix, list-of-modules, action-if-found, action-if-not-found
# prefix: for variables, e.g. prefix_CFLAGS, prefix_LIBS, etc.
#
PKG_CHECK_MODULES(LIBLEPTON,
[liblepton >= 4.0.0],
, # no action if found
AC_MSG_ERROR([liblepton 4.0.0 or later is required.]))
PKG_CHECK_MODULES(GTK,
[gtk+-2.0 >= 2.24.0],
, # no action if found
AC_MSG_ERROR([GTK+ 2.24.0 or later is required.]))
# AC_OUTPUT should be the last statement:
#
AC_OUTPUT