1 |
|
dnl Process this file with autoconf to produce a configure script. |
2 |
|
|
3 |
< |
AC_INIT(Frodo, 4.2, [Christian.Bauer@uni-mainz.de], Frodo) |
3 |
> |
AC_INIT([Frodo], [4.2]) |
4 |
|
AC_CONFIG_SRCDIR(main.cpp) |
5 |
|
AC_PREREQ(2.52) |
6 |
|
AC_CONFIG_HEADER(sysconfig.h) |
11 |
|
AC_PROG_CPP |
12 |
|
AC_PROG_MAKE_SET |
13 |
|
AC_PROG_INSTALL |
14 |
+ |
PKG_PROG_PKG_CONFIG |
15 |
+ |
|
16 |
+ |
dnl Configure options. |
17 |
+ |
AC_ARG_ENABLE(opengl, [ --enable-opengl use SDL/OpenGL for rendering [default=yes]], , enable_opengl=yes) |
18 |
|
|
19 |
|
dnl -fomit-frame-pointer makes things faster |
20 |
|
if [[ x"$GXX" = "xyes" ]]; then |
40 |
|
fi |
41 |
|
AC_MSG_RESULT([$EMBEDDED_EXTENSION]) |
42 |
|
|
43 |
+ |
if [[ x"$EMBEDDED_EXTENSION" == "xmaemo" ]]; then |
44 |
+ |
PKG_CHECK_MODULES(OSSO, [libosso >= 0.9.19], AC_DEFINE(HAVE_LIBOSSO, [], [Weather libosso is present on the system]), [AC_MSG_NOTICE([libosso not present.])]) |
45 |
+ |
fi |
46 |
+ |
|
47 |
|
if [[ x"$EMBEDDED_EXTENSION" == "xnone" ]]; then |
48 |
|
HAVE_GLADE=no |
49 |
< |
PKG_CHECK_MODULES(GLADE, libglade-2.0 libgnomeui-2.0 >= 1.110.0, HAVE_GLADE=yes) |
49 |
> |
PKG_CHECK_MODULES(GLADE, [libglade-2.0 libgnomeui-2.0 >= 1.110.0], HAVE_GLADE=yes) |
50 |
|
if [[ $HAVE_GLADE = yes ]]; then |
51 |
|
AC_DEFINE(HAVE_GLADE, 1, [Glade support is enabled]) |
52 |
+ |
LDFLAGS="$LDFLAGS -Wl,-E" |
53 |
|
fi |
54 |
|
else |
55 |
|
GUIOBJS="sdlgui.o file.o dlgFileSelect.o dlgMain.o dlgDrives.o dlgOptions.o dlgVideoSound.o dlgAdvanced.o dlgInput.o" |
106 |
|
TARGET=sdl |
107 |
|
CFLAGS="$CFLAGS $SDL_CFLAGS -DHAVE_SDL" |
108 |
|
LIBS="$LIBS $SDL_LIBS" |
109 |
+ |
if [[ "x$enable_opengl" = "xyes" ]]; then |
110 |
+ |
AC_MSG_CHECKING(for OpenGL support) |
111 |
+ |
have_opengl=no |
112 |
+ |
AC_TRY_COMPILE([ |
113 |
+ |
#include <GL/glew.h> |
114 |
+ |
],[ |
115 |
+ |
],[ |
116 |
+ |
have_opengl=yes |
117 |
+ |
]) |
118 |
+ |
AC_MSG_RESULT($have_opengl) |
119 |
+ |
if test x$have_opengl = xyes; then |
120 |
+ |
AC_DEFINE(ENABLE_OPENGL, 1, [OpenGL support is enabled]) |
121 |
+ |
LIBS="$LIBS -lGLEW" |
122 |
+ |
else |
123 |
+ |
AC_MSG_WARN([Could not find OpenGL, ignoring --enable-opengl.]) |
124 |
+ |
fi |
125 |
+ |
fi |
126 |
|
else |
127 |
|
AC_MSG_RESULT([X Window System]) |
128 |
|
TARGET=x11 |