This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
/
configure.ac
64 lines (51 loc) · 1.56 KB
/
configure.ac
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(flint, 0.1, flint@fb.com)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign nostdinc])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_LANG([C++])
# Checks for programs.
AC_PROG_CXX
AC_CXX_COMPILE_STDCXX_0X
AC_CHECK_PROGS([DC],[gdc dmd ldc ldc2])
if test -z "$DC" ; then
AC_MSG_ERROR([\
*** No D Compiler found. Please install one of gdc, ldc, or dmd])
fi
# Be sure to add any -std option to CXXFLAGS before we invoke any
# AC_COMPILE_IFELSE() or similar macros. Any such macros that are invoked
# before we update CXXFLAGS will not be run with the same options that we use
# during the real build.
STD=""
if test "x$ac_cv_cxx_compile_cxx0x_cxx" = xyes; then
STD="-std=c++0x"
fi
if test "x$ac_cv_cxx_compile_cxx0x_gxx" = xyes; then
STD="-std=gnu++0x"
fi
CXXFLAGS="$STD $CXXFLAGS"
# Checks for libraries.
AC_CHECK_LIB([folly],[getenv],[],[AC_MSG_ERROR(
[Please install the folly library])])
AC_CHECK_LIB([gflags],[getenv],[],[AC_MSG_ERROR(
[Please install google-gflags library])])
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_C_VOLATILE
# check for boost libs
AX_BOOST_BASE([1.20.0], [], [AC_MSG_ERROR(
[Please install boost >= 1.20.0 (filesystem)])])
AX_BOOST_FILESYSTEM
# Output
AC_CONFIG_FILES([Makefile])
AC_OUTPUT