1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_SRCDIR([Makefile.am])
6 AM_INIT_AUTOMAKE(libmodplug, 0.8.7)
7 AC_CONFIG_HEADERS([src/config.h])
9 dnl Checks for programs.
10 dnl I am disabling static libraries here because otherwise libtool insists on
11 dnl compiling everything twice -- once with and once without -fPIC. Pisses me
12 dnl off. Just do everything with -fPIC, damnit! Compiling everything twice
13 dnl probably wastes more cycles than not using -fPIC saves.
19 AC_C_BIGENDIAN #this will cause problems when cross-compiling...
23 AC_CHECK_HEADERS([inttypes.h stdint.h malloc.h])
24 AC_CHECK_FUNCS(setenv)
26 CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
27 # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
35 AM_CONDITIONAL([MINGW32], [test "x$MINGW32" = "xyes"])
39 CXXFLAGS="$CXXFLAGS -fpermissive"
43 # portable types. requires autoconf 2.60
44 # `configure' will check if these are defined in system headers.
45 # if not, it will auto-detect and define them in `config.h'
56 AC_CONFIG_FILES([Makefile