summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 7fde3f377997daa1c5f1250fe64177bdc0ba1537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
AC_INIT(mmdb2, 2.0.5) # keep in sync with mmdb2/mmdb_defs.h

AC_CONFIG_AUX_DIR(build-aux)
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_SRCDIR(mmdb2/mmdb_math_align.cpp)
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects silent-rules -Wall])
AM_PROG_AR
LT_INIT([disable-shared win32-dll])
AC_PROG_CXX
# AC_PROG_CXX doesn't fail if compiler is not found, test it explicitely
AC_LANG_PUSH(C++)
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [],
               [AC_MSG_ERROR([C++ compiler not found.])])
AC_LANG_POP(C++)

AM_MAINTAINER_MODE dnl disable (by default) maintainer mode

AC_SEARCH_LIBS([cos], [m], [], [AC_MSG_ERROR([need math library])])
AC_OUTPUT(Makefile mmdb2.pc)