2016-02-24 11:11:41 +11:00
|
|
|
AC_INIT([vk-cruft], [0.0.1], [danny@nerdcruft.net], [], [http://nerdcruft.net/])
|
|
|
|
## Explicitly set an empty CXXFLAGS if not present to prevent AC_PROG_CXX from
|
|
|
|
## generating a default -O2. This allows us to manually select -O0 when
|
|
|
|
## debugging is enabled.
|
|
|
|
: ${CXXFLAGS=""}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
## Build environment discovery
|
|
|
|
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
|
|
|
AC_LANG([C++])
|
|
|
|
|
|
|
|
NC_CXX
|
|
|
|
NC_PLATFORM
|
|
|
|
NC_OPTIMISATION
|
|
|
|
NC_WARNINGS
|
|
|
|
NC_DEBUGGING
|
|
|
|
|
2016-04-05 11:16:23 +10:00
|
|
|
NC_SUBPACKAGE_ENABLE
|
|
|
|
|
2016-02-24 11:11:41 +11:00
|
|
|
LT_INIT
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.14 foreign dist-xz dist-bzip2 subdir-objects])
|
|
|
|
AM_SILENT_RULES([yes])
|
2016-02-26 14:57:50 +11:00
|
|
|
AM_MAINTAINER_MODE([enable])
|
2016-02-24 11:11:41 +11:00
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
AX_CHECK_GNU_MAKE
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
## Required build packages
|
|
|
|
|
|
|
|
AC_CHECK_PROGS([XSLTPROC], [xsltproc], [false])
|
|
|
|
AS_IF([test "x$XSLTPROC" == "xfalse"], [
|
|
|
|
AC_MSG_ERROR([Cannot find xsltproc])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
## Required packages
|
|
|
|
|
2016-04-19 17:27:47 +10:00
|
|
|
PKG_CHECK_MODULES_STATIC([UTIL], [libcruft-util])
|
2016-04-05 11:16:23 +10:00
|
|
|
AC_SUBST([UTIL_CFLAGS])
|
|
|
|
AC_SUBST([UTIL_LIBS])
|
2016-02-24 11:11:41 +11:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
## Output
|
|
|
|
|
|
|
|
AX_APPEND_FLAG([-include config.h])
|
|
|
|
|
2016-04-05 11:16:23 +10:00
|
|
|
NC_SUBPACKAGE_PC([libcruft-vk.pc])
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Doxyfile
|
|
|
|
Makefile
|
|
|
|
])
|
|
|
|
|
2016-02-24 11:11:41 +11:00
|
|
|
AC_OUTPUT
|