-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
44 lines (35 loc) · 1014 Bytes
/
configure.ac
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
AC_INIT(miga, 0.1)
AC_CONFIG_SRCDIR(src/miga.h)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS(src/config.h)
AC_CONFIG_MACRO_DIR([m4])
dnl Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(assert.h)
AC_CHECK_HEADERS(math.h)
AC_CHECK_HEADERS(stdio.h)
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(time.h)
dnl this is enabled by default.
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],
if test "x$enableval" = "xyes"; then
CFLAGS="-g $CFLAGS"
fi)
AC_ARG_ENABLE(warnings, [ --enable-warnings turn on warnings [default=yes]],
if test "x$enableval" = "xyes"; then
CFLAGS="-Wall -pedantic $CFLAGS"
fi)
AC_ARG_ENABLE(efence, [ --enable-efence link against efence [default=no]],
if test "x$enableval" = "xyes"; then
AC_CHECK_LIB(efence, malloc)
fi)
dnl AC_CHECK_FUNCS(strdup malloc qsort printf)
AC_OUTPUT(Makefile src/Makefile)