-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
49 lines (31 loc) · 1.04 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
dnl Process this file with autoconf to produce a configure script.
AC_CONFIG_MACRO_DIR([m4])
AC_INIT([picnic],[0.1],[picnic@pfeifer-syscon.de])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AX_CHECK_ENABLE_DEBUG([info], [DEBUG], [RELEASE], [IS-RELEASE])
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX([20], [noext], [optional])
LT_INIT
PKG_CHECK_MODULES([EPOXY], [epoxy])
PKG_CHECK_MODULES(GTHREAD, [gthread-2.0])
PKG_CHECK_MODULES([GENERICGLM], [genericglm >= 0.3.1])
PKG_CHECK_MODULES([GENERICIMG], [genericimg >= 0.3.3])
dnl dont repeat dependencies
dnl PKG_CHECK_MODULES([GLIBMM], [glibmm-2.4])
dnl PKG_CHECK_MODULES([GTKMM], [gtkmm-3.0])
PKG_CHECK_MODULES([OPENSSL], [openssl])
AC_ARG_WITH([gles], AS_HELP_STRING([--with-gles], [use openGL ES 3 (Raspi) otherweise fullgl]))
if test "x$with_gles" = "xyes" ; then
PKG_CHECK_MODULES(EPOXY,[glesv2], [AC_DEFINE([USE_GLES], [1], [Using openGL ES 3])])
else
PKG_CHECK_MODULES(EPOXY,[epoxy])
fi
AX_CHECK_SED()
AC_CONFIG_FILES([
Makefile
src/Makefile
res/Makefile
])
AC_OUTPUT