-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
51 lines (35 loc) · 1 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
AC_PREREQ(2.60)
AC_INIT([GNU Aris], [3.0], [[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_SRCDIR([src/aris.c])
AC_ARG_PROGRAM
AC_CANONICAL_HOST
# Check for windows
case "${host}" in
*mingw32*) WIN32="yes" ;;
*cygwin*) WIN32="yes" ;;
*) WIN32="no" ;;
esac
AM_CONDITIONAL([WIN32], test "$WIN32" = "yes")
AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_INSTALL
# Check for pkg-config
PKG_PROG_PKG_CONFIG
# Check for gtk+-3.0
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.2])
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
# Check for libxml-2.0
PKG_CHECK_MODULES([XML], [libxml-2.0 >= 2.6])
AC_SUBST(XML_CFLAGS)
AC_SUBST(XML_LIBS)
## This really only works when compiling from source.
AC_DEFINE_UNQUOTED([HELP_FILE], "file://`pwd`/doc/aris/index.html", [The help HTML file path])
if test "$WIN32" = "yes"; then
AC_DEFINE([WIN32], [], ["Used when compiling for Windows"])
fi
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
AC_OUTPUT