blob: dc687384125acd522cc27e7e821eb0f12312a4ed (
plain) (
tree)
|
|
AC_PREREQ(2.59)
AC_INIT([ManaPlusLint], [1.2.10.28], [akaras@inbox.ru], [manaplus])
AM_INIT_AUTOMAKE([1.9])
#AC_CONFIG_HEADERS([config.h:config.h.in])
AC_LANG_CPLUSPLUS
# Checks for programs.
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_INSTALL
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([atexit floor getcwd gethostbyname memset mkdir select socket])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
# Check if PCRE2 is installed.
AC_CHECK_LIB([pcre2-8], [pcre2_compile_8], ,
AC_MSG_ERROR([ *** Unable to find PCRE2 library]))
AC_CHECK_HEADERS([pcre2.h], ,
AC_MSG_ERROR([ *** PCRE2 library found but cannot find headers]),
[#define PCRE2_CODE_UNIT_WIDTH 8])
LIBS="$LIBS -lpcre2-8"
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT
|