File: configure.ac

package info (click to toggle)
mmdb 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,736 kB
  • sloc: cpp: 45,698; sh: 11,463; makefile: 35
file content (21 lines) | stat: -rw-r--r-- 684 bytes parent folder | download
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)