Merge pull request #4324 from FernetMenta/wasapi
[vuplus_xbmc] / lib / libmodplug / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT
3 AC_PREREQ([2.60])
4 AC_CONFIG_SRCDIR([Makefile.am])
5
6 AM_INIT_AUTOMAKE(libmodplug, 0.8.7)
7 AC_CONFIG_HEADERS([src/config.h])
8
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.
14 AC_DISABLE_STATIC
15 AM_DISABLE_STATIC
16 AC_PROG_CC
17 AC_PROG_CXX
18 AC_LANG([C++])
19 AC_C_BIGENDIAN     #this will cause problems when cross-compiling...
20 AC_LIBTOOL_WIN32_DLL
21 AM_PROG_LIBTOOL
22 AC_HEADER_STDC
23 AC_CHECK_HEADERS([inttypes.h stdint.h malloc.h])
24 AC_CHECK_FUNCS(setenv)
25
26 CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
27 # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
28
29 AC_CANONICAL_HOST
30 case "$host" in
31         *mingw32* )
32                 MINGW32=yes
33                 ;;
34 esac
35 AM_CONDITIONAL([MINGW32], [test "x$MINGW32" = "xyes"])
36
37 case ${target_os} in
38         *sun* | *solaris*)
39                 CXXFLAGS="$CXXFLAGS -fpermissive"
40                 ;;
41 esac
42
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'
46 AC_TYPE_INT8_T
47 AC_TYPE_UINT8_T
48 AC_TYPE_INT16_T
49 AC_TYPE_UINT16_T
50 AC_TYPE_INT32_T
51 AC_TYPE_UINT32_T
52 AC_TYPE_INT64_T
53 AC_TYPE_UINT64_T
54
55
56 AC_CONFIG_FILES([Makefile
57           src/Makefile
58           libmodplug.pc])
59 AC_OUTPUT