forked from blaztinn/opengl-glib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
34 lines (29 loc) · 793 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
AC_PREREQ([2.68])
AC_INIT([opengl-glib], [0.1], [blaz.tomazic@gmail.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AM_SILENT_RULES([yes])
AC_CONFIG_FILES([Makefile
gir/Makefile])
# Check for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_VALAC
PKG_PROG_PKG_CONFIG
# Check for libraries.
PKG_CHECK_MODULES([GLIB], [glib-2.0])
AC_SUBST([GLIB_CFLAGS])
AC_SUBST([GLIB_LIBS])
PKG_CHECK_MODULES([GEE], [gee-1.0])
AC_SUBST([GEE_CFLAGS])
AC_SUBST([GEE_LIBS])
GENERATE_VALAPACKAGES="--pkg gee-1.0 -g"
AC_SUBST([GENERATE_VALAPACKAGES])
# Check for headers
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([[#include <GL/glew.h>]])],
[AC_MSG_RESULT([OK])],
[AC_MSG_FAILURE([GLEW headers are missing])])
AC_OUTPUT