-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
44 lines (34 loc) · 1.19 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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([glinegraph-cairo], [0.5.0], [James Scott Jr. skoona@gmail.com],
[glinegraph-cairo], [https://github.com/skoona/glinegraph-cairo])
# Put autotools auxiliary files in subdirectories to reduce clutter:
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE([enable])
dnl Standard C constructs
AC_GNU_SOURCE
AC_PROG_CC
AC_HEADER_STDC
AC_ISC_POSIX
dnl stricter options -ansi -pedantic
CFLAGS='-g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Winline -pipe -I/usr/include -I/usr/local/include '
AC_SUBST(CFLAGS)
dnl
dnl Gtk API Document Generator
GTK_DOC_CHECK([1.24],[--copy --flavour no-tmpl])
dnl
dnl Check for Gtk+ Libraries
dnl
PKG_CHECK_MODULES(GTK, [[gtk+-3.0 >= 3.10] [glib-2.0 >= 2.40 ]],
AC_MSG_RESULT(found),
AC_MSG_ERROR([AC_PACKAGE_NAME AC_PACKAGE_VERSION needs GTK3 and GLIB2])
)
dnl
dnl put constant on command line and not in a config.h file
dnl AC_CONFIG_HEADER(config.h) dnl
AC_CONFIG_SRCDIR(src/lgcairo.c)
AC_CONFIG_FILES([Makefile src/Makefile docs/reference/Makefile])
AC_OUTPUT