forked from adplug/adplug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
29 lines (24 loc) · 815 Bytes
/
configure.in
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
# Tell autoconf we're compiling a C++ library, using automake & libtool
AC_INIT(adplug,2.0)
AC_CONFIG_SRCDIR(src/adplug.cpp)
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile adplugdb/Makefile test/Makefile adplug.pc])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AM_PROG_LIBTOOL
AC_LANG(C++)
# Check for a sane C/C++ build environment.
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
# Check for needed libraries.
AC_CHECK_LIB(stdc++,main,,AC_MSG_ERROR([libstdc++ not installed]))
PKG_CHECK_MODULES([libbinio], [libbinio >= 1.4])
# Sanitize some compiler features, which may be broken...
AC_C_CONST
AC_C_INLINE
# Enable debugging on user request.
AC_ARG_ENABLE([debug],AC_HELP_STRING([--enable-debug],
[Compile with debug logging support (default is to disable debug logging)]),
AC_DEFINE(DEBUG))
AC_OUTPUT