This repository was archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.in
More file actions
57 lines (48 loc) · 1.23 KB
/
configure.in
File metadata and controls
57 lines (48 loc) · 1.23 KB
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
50
51
52
53
54
55
56
57
AC_INIT(libdnet, 0.0, dennis@moellegaard.dk)
AM_INIT_AUTOMAKE(libdnet.a, 0.0)
AC_CONFIG_HEADERS([src/config.h])
AC_PROG_CXX
AC_PROG_RANLIB
AC_LANG(C++)
AC_PROG_MAKE_SET
AC_PROG_INSTALL
SDL_VERSION=1.2.4
AM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
AC_CHECK_LIB(SDL_gfx, filledCircleColor,, AC_MSG_ERROR([SDL_gfx library requried]))
AC_MSG_CHECKING(for ccache)
ccache=`which ccache`
if test "x$ccache" != "x"; then
GCC="$ccache $GCC"
CC="$ccache $CC"
GXX="$ccache $GXX"
CXX="$ccache $CXX"
AC_MSG_RESULT($ccache)
else
AC_MSG_RESULT(not found)
fi
AC_SUBST(ccache)
AC_ARG_ENABLE(debug, [ --enable-debug enable debug])
AC_MSG_CHECKING(for debug)
AC_MSG_RESULT($enable_debug)
if test x$enable_debug = xyes; then
DEBUG_FLAGS="-W -Wall -Wshadow -Wundef -g -ggdb -DDEBUG"
else
DEBUG_FLAGS=""
fi
AC_SUBST(DEBUG_FLAGS)
ENET_FLAGS="-I../enet/include"
CFLAGS="$CFLAGS $ENET_FLAGS $DEBUG_FLAGS"
CXXFLAGS="$CXXFLAGS $ENET_FLAGS $DEBUG_FLAGS"
AC_CONFIG_FILES([
Makefile
src/Makefile
src/include/Makefile
src/include/dnet/Makefile
src/test/Makefile
src/test/blaster/Makefile
src/test/replayer/Makefile
src/test/t1/Makefile
src/test/t2/Makefile
src/test/t3/Makefile
])
AC_OUTPUT