File: configure.in

package info (click to toggle)
adplug 2.2.1%2Bdfsg3-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,572 kB
  • sloc: cpp: 15,483; sh: 10,256; ansic: 2,554; makefile: 48
file content (33 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (3)
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
30
31
32
33
# Tell autoconf we're compiling a C++ library, using automake & libtool
AC_INIT(adplug,2.2.1)
AC_CONFIG_SRCDIR(src/adplug.cpp)
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile adplugdb/Makefile adplug.pc])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
#AM_DISABLE_SHARED
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])

# Check if getopt header is installed on this system
AC_CHECK_HEADERS([getopt.h], , AC_SUBST(GETOPT_SOURCES, [getopt.c getopt.h]))

# 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