-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfigure.ac
39 lines (34 loc) · 883 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
38
39
AC_INIT([evert], [1.0], [samuli.laine@tml.hut.fi])
AM_INIT_AUTOMAKE
AC_PROG_CXX
AC_ENABLE_SHARED
AC_DISABLE_STATIC
LT_INIT
PKG_CHECK_MODULES(GL, [gl], [], [
AC_CHECK_HEADER([GL/gl.h],
[],
AC_MSG_ERROR([GL not found]))
AC_CHECK_LIB([GL],
[glBegin],
[GL_LIBS=-lGL],
AC_MSG_ERROR([GL required]))
])
PKG_CHECK_MODULES(GLU, [glu], [],
[AC_CHECK_HEADER([GL/glu.h],
[],
AC_MSG_ERROR([GLU not found]))
AC_CHECK_LIB([GLU],
[gluBeginCurve],
[GLU_LIBS=-lGLU],
AC_MSG_ERROR([GLU required])) ])
GLU_LIBS=-lGLU
PKG_CHECK_MODULES(GLUT, [glut], [],
[AC_CHECK_HEADER([GL/glut.h],
[],
AC_MSG_ERROR([GLUT not found]))
AC_CHECK_LIB([glut],
[glutInit],
[GLU_LIBS=-lglut],
AC_MSG_ERROR([GLUT required])) ])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT