-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (41 loc) · 1.35 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
AC_INIT([dyngb], [2.0], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC([clang++ gcc])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_PROG_CXX
# autoconf devs don't seem to have C++ configuration figured out...
# search_libs fails to include headers, while it does for C!?!?
# so pretty much everything from here on is hacked together
AC_LANG([C++])
AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_LIBS+=-lpthread])
#m4_include([ppl.m4])
#AM_PATH_PPL(1.1)
AC_CHECK_LIB([glpk], [glp_create_prob])
SAVE_LIBS="$LIBS"
LIBS="$LIBS -lppl"
m4_include([ac_checking_ppl.m4])
m4_include([ac_checking_gmp.m4])
m4_include([ax_require_defined.m4])
m4_include([ax_cxx_compile_stdcxx.m4])
AX_CXX_COMPILE_STDCXX(14)
# no way to check gmpxx yet...
#AC_SEARCH_LIBS([__gmpz_init], [gmp])
#AC_SEARCH_LIBS([version], [ppl])
#AC_CHECK_LIB([gmp])
#AC_CHECK_HEADER([gmpxx.h])
#AC_SEARCH_LIBS([__gmpz_init], [gmpxx])
AC_OUTPUT
######################################################################
# DOXYGEN SUPPORT
######################################################################
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN([$PACKAGE_NAME],[doxygen.cfg])
######################################################################