PCem

view configure.ac @ 170:a0642e86daea

Fixed MMX PANDN instruction.
author TomW
date Wed Oct 08 20:43:36 2014 +0100
parents d0d530adce12
children
line source
1 # configure.ac for PCem
2 #
4 AC_PREREQ([2.61])
5 AC_INIT(PCem, v9, Tom Walker <tommowalker@tommowalker.co.uk>, pcem)
7 AM_INIT_AUTOMAKE
8 AC_PROG_CC
9 AC_PROG_CXX
10 AM_PROG_CC_C_O
14 AC_MSG_CHECKING([whether to enable debugging])
15 AC_ARG_ENABLE(debug,
16 AC_HELP_STRING([--enable-debug], [build debug executable]))
17 if test "$enable_debug" = "yes"; then
18 CFLAGS="-Wall -O0 -g -D_DEBUG"
19 AC_MSG_RESULT([yes])
20 else
21 CFLAGS="-O3"
22 AC_MSG_RESULT([no])
23 fi
25 #AC_MSG_CHECKING([for libz])
26 #AX_CHECK_ZLIB
28 AM_CONDITIONAL(OS_WIN, test "$OS" = "win")
29 AM_CONDITIONAL(OS_LINUX, test "$OS" = "linux")
31 # Do not run test for Allegro with Win32/MinGW version, as binary builds have
32 # `allegro-config' missing.
33 # NOTE: For the following Autoconf macro to be supported, you need to extract
34 # allegro.m4 from the DOS/Windows Allegro sources (the file is contained
35 # in `misc') and copy it to this directory or MSYS's `/share/aclocal'.
36 if test "$OS" != "win"; then
37 AM_PATH_ALLEGRO(, , AC_MSG_ERROR(building B-em requires Allegro to be installed))
38 fi
40 AC_CHECK_LIB([openal], [alGetError], [], \
41 [echo "You need to install the OpenAL library."
42 exit -1])
43 AC_CHECK_LIB([alut], [alutInit], [], \
44 [echo "You need to install the ALUT library."
45 exit -1])
47 AC_CHECK_LIB([pthread], [pthread_create])
49 AC_OUTPUT([Makefile src/Makefile])