File: configure.in

package info (click to toggle)
synaesthesia 2.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 792 kB
  • ctags: 457
  • sloc: ansic: 7,093; cpp: 1,952; sh: 400; perl: 95; makefile: 44
file content (36 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
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
AC_INIT(main.cc)
AM_INIT_AUTOMAKE(synaesthesia,2.2)
AM_CONFIG_HEADER(config.h)

CXXFLAGS="-O4"
CFLAGS="-O4"

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL

dnl Check for X
AC_PATH_XTRA
if test "x$no_x" != xyes ; then  
  CFLAGS="$CFLAGS $X_CFLAGS"
  CXXFLAGS="$CXXFLAGS $X_CFLAGS"
  LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
fi

dnl Check for svgalib
AC_CHECK_LIB(vga,vga_init)

dnl Check for SDL
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
            AC_DEFINE(HAVE_SDL),
            :
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"

dnl Check for esound
AC_CHECK_LIB(esd,esd_record_stream_fallback)

AC_OUTPUT(Makefile)