summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: f859434bcb5fbad5c7a7abaa2c81c5793f7839fa (plain)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT(mad, 0.1, matthias@gamezock.de)
AC_CONFIG_SRCDIR([src/mad.cpp])
AM_CONFIG_HEADER([src/config.h])

AM_INIT_AUTOMAKE(mad, 0.1)
AM_MAINTAINER_MODE
AC_DISABLE_STATIC

# Checks for programs.
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LIBTOOL

# Checks for libraries.
PKG_CHECK_MODULES(GnuTLS, gnutls, , AC_MSG_ERROR(Test for GnuTLS failed.))
PKG_CHECK_MODULES(sigc, sigc++-2.0, , AC_MSG_ERROR(Test for SigC++ 2.0 failed.))

CPPFLAGS="$GnuTLS_CFLAGS $sigc_CFLAGS $CPPFLAGS"
LIBS="$GnuTLS_LIBS $sigc_LIBS $LIBS" 

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h sys/socket.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST

# Checks for library functions.

AC_CONFIG_FILES([
  Makefile
  src/Makefile
  src/Core/Makefile
  src/Net/Makefile
])

AC_OUTPUT