-
Notifications
You must be signed in to change notification settings - Fork 8
/
configure.ac
75 lines (64 loc) · 1.65 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
65
66
67
68
69
70
71
72
73
74
75
#############################################################################
##
#W configure.ac Laurent Bartholdi
##
#Y Copyright (C) 2012-2016, Laurent Bartholdi
##
#############################################################################
AC_PREREQ([2.69])
LT_PREREQ([2.4.2])
AC_INIT([float],[package],[[email protected]])
AC_CONFIG_SRCDIR([src/float.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([src/floatconfig.h:config.h.in])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([foreign])
LT_INIT([disable-static dlopen win32-dll])
AC_PREFIX_DEFAULT([${PWD}])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
# Checks for header files.
AC_CHECK_HEADERS([float.h stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
# Locates GAP
FIND_GAP
GAP="${GAP:-${GAPROOT}/bin/gap.sh}"
AC_SUBST(GAP)
LT_LIB_M
AC_CHECK_MPFR
if test "$MPFR" = yes; then
AC_CHECK_MPFI
AC_CHECK_MPC
AC_CHECK_FPLLL
else
AM_CONDITIONAL([WITH_MPFI_IS_YES],[false])
AM_CONDITIONAL([WITH_MPC_IS_YES],[false])
AM_CONDITIONAL([WITH_FPLLL_IS_YES],[false])
fi
AC_CHECK_CXSC
dnl ##
dnl ## Detect Windows resp. Cygwin
dnl ##
case $host_os in
*cygwin* ) CYGWIN=yes;;
* ) CYGWIN=no;;
esac
AM_CONDITIONAL([SYS_IS_CYGWIN], [test "$CYGWIN" = "yes"])
################################################################
# generate files
##CONFIG_STATUS=bin/$GAPARCH/config.status
##
##AC_CONFIG_FILES([$GAP_MAKEFILE:Makefile.in])
##
##if test "$GAP_MAKEFILE" != Makefile; then
## ln -sf "$GAP_MAKEFILE" Makefile
##fi
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT