File: configure.ac

package info (click to toggle)
synaesthesia 2.4-5.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,484 kB
  • ctags: 538
  • sloc: ansic: 7,090; sh: 2,915; cpp: 1,963; perl: 95; makefile: 49
file content (40 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (5)
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
AC_INIT(main.cc)

dnl Detect the canonical host and target build environment
AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE(synaesthesia,2.4)
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)