-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure.in
49 lines (41 loc) · 1.16 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c)
AM_INIT_AUTOMAKE(bb, 1.3.0)
AM_CONFIG_HEADER(aconfig.h)
use_cc_g_flag=no
AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC
dnl Checks for programs.
AC_PROG_MAKE_SET
AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/ioctl.h sys/time.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_SUBST(HAVE_MIKMOD)
AC_CHECK_FUNCS(ftime gettimeofday select strdup strstr strtol)
dnl Check for AA-lib
AM_PATH_AALIB(1.4.0, , AC_MSG_ERROR([*** AALIB >= 1.4.0 not installed - please install first ***]))
CFLAGS="$CFLAGS $AALIB_CFLAGS"
LIBS="$LIBS $AALIB_LIBS"
SOUNDFILES=""
AM_PATH_LIBMIKMOD(3.0.0,
CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
LIBS="$LIBS $LIBMIKMOD_LIBS"
LDADD="$LDADD $LIBMIKMOD_LDADD"
AC_DEFINE(HAVE_LIBMIKMOD)
SOUNDFILES="bb.s3m bb2.s3m bb3.s3m"
dnl AC_DEFINE_UNQUOTED(SOUNDDIR,"$datadir/bb")
,
AC_MSG_RESULT([Libmikmod is missing - sound support will be disabled])
)
AC_SUBST(SOUNDFILES)
AC_OUTPUT(Makefile)