-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
38 lines (30 loc) · 844 Bytes
/
configure.in
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
######## Process this file with autoconf to produce a configure script.
AC_INIT(README)
######## Detect the canonical host and target build environment
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
######## Setup for automake
NAME="nuclearchess"
SDL_VERSION=1.2.0
AM_INIT_AUTOMAKE($NAME, 0.9.2)
######## Check for tools
AC_PROG_CC
AC_PROG_INSTALL
######## Check for compiler environment
AC_C_CONST
######## Check for SDL
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
######## Check for other libs
AC_CHECK_LIB(SDL_image, main, , , $SDL_LIBS)
######## Set libraries and cfalgs
CFLAGS="$CFLAGS $SDL_CFLAGS -DDATADIR=\"\\\"$datadir/nuclearchess\\\"\" -Wall"
LIBS="$SDL_LIBS -lSDL_image -lm"
######## Finally create all the generated files
AC_OUTPUT([
Makefile
src/Makefile
gfx/Makefile
])