-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
61 lines (46 loc) · 1.49 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.70])
AC_INIT([Calibrate Joystick],
[0.5.2+],
[https://github.com/dkosmari/calibrate-joystick/issues],
[calibrate-joystick],
[https://github.com/dkosmari/calibrate-joystick])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
LT_INIT
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CHECK_PROGS([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.21])
AM_ICONV
AC_LANG([C++])
AX_APPEND_COMPILE_FLAGS([-std=c++20], [CXX])
# Checks for libraries.
PKG_CHECK_MODULES([GTKMM], [gtkmm-3.0])
PKG_CHECK_MODULES([LIBEVDEVXX], [libevdevxx])
PKG_CHECK_MODULES([LIBGUDEVXX], [libgudevxx])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_SUBST([APPLICATION_ID], [none.calibrate_joystick])
AC_DEFINE([APPLICATION_ID], ["none.calibrate_joystick"], [GApplication id, must match .desktop file name])
TARBALL_NAME="${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.gz"
AC_SUBST([TARBALL_NAME])
AC_CONFIG_FILES([calibrate-joystick.spec
Makefile
src/Makefile
po/Makefile.in])
AC_OUTPUT