-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
37 lines (31 loc) · 867 Bytes
/
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
AC_INIT([vfdviewer], [0.0.1], [[email protected]])
: ${CFLAGS="-O3"}
# Will be generated
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign no-dependencies subdir-objects])
AC_PROG_CC
AM_PROG_AR
LT_INIT
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# Check if C-compiler supports c99 standard
AX_CHECK_C99_STD
AC_ARG_ENABLE(
[debug],
[AS_HELP_STRING([--enable-debug],[build with additional debugging code [default=no]])],
[],
[enable_debug="no"])
AM_CONDITIONAL([ENABLE_DEBUG], [test "$enable_debug" = yes])
AM_COND_IF(
[ENABLE_DEBUG],
[AX_APPEND_FLAG([-g])
AX_APPEND_FLAG([-D_DEBUG])])
# check for gtk
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.0])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([test/Makefile])
AC_CONFIG_FILES([external/Makefile])
AC_OUTPUT