File: configure.in

package info (click to toggle)
dd2 0.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,448 kB
  • sloc: ansic: 3,650; sh: 371; makefile: 41
file content (26 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.am)

AM_INIT_AUTOMAKE(dodgindiamond2, 0.2.2)

AM_MAINTAINER_MODE

AC_PROG_CC

AC_CHECK_LIB(m, main,, AC_MSG_ERROR(math lib is needed))

CFLAGS="$CFLAGS -Wall"

AM_PATH_SDL(1.2.0,, AC_MSG_ERROR(SDL library is needed))
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"

AC_CHECK_LIB(SDL_mixer, main,, 
AC_MSG_ERROR(SDL_Mixer library is needed for sound support))

AC_ARG_ENABLE(alternate-fire-key,
[  --enable-alternate-fire-key Use 'm' key instead RIGHT CONTROL for fire],
	[CFLAGS="$CFLAGS -DALT_FIRE"])

AC_OUTPUT(Makefile src/Makefile src/data/Makefile)