configure.in | configure.in | |||
---|---|---|---|---|
dnl Process this file with autoconf to produce a configure script. | dnl Process this file with autoconf to produce a configure script. | |||
AC_INIT | AC_INIT | |||
AC_PREREQ([2.60]) | AC_PREREQ(2.63) | |||
AC_CONFIG_SRCDIR([Makefile.am]) | AC_CONFIG_SRCDIR([Makefile.am]) | |||
AM_INIT_AUTOMAKE(libmodplug, 0.8.7) | AM_INIT_AUTOMAKE(libmodplug, 0.8.8) | |||
AC_CONFIG_HEADERS([src/config.h]) | AC_CONFIG_HEADERS([src/config.h]) | |||
dnl Checks for programs. | dnl Checks for programs. | |||
dnl I am disabling static libraries here because otherwise libtool insists on | dnl I am disabling static libraries here because otherwise libtool insists on | |||
dnl compiling everything twice -- once with and once without -fPIC. Pisse s me | dnl compiling everything twice -- once with and once without -fPIC. Pisse s me | |||
dnl off. Just do everything with -fPIC, damnit! Compiling everything twi ce | dnl off. Just do everything with -fPIC, damnit! Compiling everything twi ce | |||
dnl probably wastes more cycles than not using -fPIC saves. | dnl probably wastes more cycles than not using -fPIC saves. | |||
AC_DISABLE_STATIC | AC_DISABLE_STATIC | |||
AM_DISABLE_STATIC | AC_DISABLE_STATIC([]) | |||
AC_PROG_CC | AC_PROG_CC | |||
AC_PROG_CXX | AC_PROG_CXX | |||
AC_LANG([C++]) | AC_LANG([C++]) | |||
AC_C_BIGENDIAN #this will cause problems when cross-compiling... | AC_C_BIGENDIAN #this will cause problems when cross-compiling... | |||
AC_LIBTOOL_WIN32_DLL | #AC_REQUIRE([AC_CANONICAL_HOST])_LT_SET_OPTION([LT_INIT],[win32-dll]) | |||
AM_PROG_LIBTOOL | #AC_DIAGNOSE([obsolete],[AC_LIBTOOL_WIN32_DLL: Remove this warning and the | |||
call to _LT_SET_OPTION when you | ||||
#put the `win32-dll' option into LT_INIT's first parameter.]) | ||||
LT_INIT | ||||
AC_HEADER_STDC | AC_HEADER_STDC | |||
AC_CHECK_HEADERS([inttypes.h stdint.h malloc.h]) | AC_CHECK_HEADERS([inttypes.h stdint.h malloc.h]) | |||
AC_CHECK_FUNCS(setenv) | AC_CHECK_FUNCS(setenv sinf) | |||
CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT" | CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT" | |||
# CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`" | # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`" | |||
AC_CANONICAL_HOST | AC_CANONICAL_HOST | |||
case "$host" in | case "$host" in | |||
*mingw32* ) | *mingw32* ) | |||
MINGW32=yes | MINGW32=yes | |||
;; | ;; | |||
esac | esac | |||
End of changes. 5 change blocks. | ||||
6 lines changed or deleted | 10 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |