]> 4ch.mooo.com Git - 16.git/blob - 16/adplug/adplug-2.2.1/configure.in
Please enter the commit message for your changes. Lines starting
[16.git] / 16 / adplug / adplug-2.2.1 / configure.in
1 # Tell autoconf we're compiling a C++ library, using automake & libtool
2 AC_INIT(adplug,2.2.1)
3 AC_CONFIG_SRCDIR(src/adplug.cpp)
4 AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile adplugdb/Makefile test/Makefile adplug.pc])
5 AM_INIT_AUTOMAKE
6 AM_MAINTAINER_MODE
7 #AM_DISABLE_SHARED
8 AM_PROG_LIBTOOL
9 AC_LANG(C++)
10
11 # Check for a sane C/C++ build environment.
12 AC_PROG_MAKE_SET
13 AC_PROG_INSTALL
14 AC_PROG_CC
15 AC_PROG_CXX
16
17 # Check for needed libraries.
18 AC_CHECK_LIB(stdc++,main,,AC_MSG_ERROR([libstdc++ not installed]))
19 PKG_CHECK_MODULES([libbinio], [libbinio >= 1.4])
20
21 # Check if getopt header is installed on this system
22 AC_CHECK_HEADERS([getopt.h], , AC_SUBST(GETOPT_SOURCES, [getopt.c getopt.h]))
23
24 # Sanitize some compiler features, which may be broken...
25 AC_C_CONST
26 AC_C_INLINE
27
28 # Enable debugging on user request.
29 AC_ARG_ENABLE([debug],AC_HELP_STRING([--enable-debug],
30 [Compile with debug logging support (default is to disable debug logging)]),
31         AC_DEFINE(DEBUG))
32
33 AC_OUTPUT