source: git/libpolys/configure.ac @ 643b1eb

fieker-DuValspielwiese
Last change on this file since 643b1eb was 643b1eb, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
include ftmpl_inst.cc in libsingcf.a (template instantiations) - disabled memutil by default in factory - include readcf.og in the debug version of factory - check for ntl in libpolys
  • Property mode set to 100644
File size: 2.1 KB
Line 
1AC_INIT([singular], [3.1.2.sw])
2AC_CONFIG_MACRO_DIR([../m4])
3AC_CONFIG_AUX_DIR([.])
4AC_CONFIG_SRCDIR([reporter/reporter.h])
5AC_CONFIG_HEADER([config.h misc/auxiliary.h])
6AM_INIT_AUTOMAKE
7
8dnl Check if build env is sane
9AM_SANITY_CHECK
10
11LT_INIT(dlopen disable-static)
12
13# Checks for programs.
14AC_PROG_CXX
15AC_PROG_CC
16AC_PROG_LN_S
17AC_PROG_INSTALL
18AM_PROG_CC_C_O
19
20# Checks for libraries.
21LB_CHECK_GMP(3.1.1,,AC_MSG_ERROR([Unable to find GMP on your machine: please use --with-gmp=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
22
23LB_CHECK_NTL(5.0,,AC_MSG_WARN([Unable to find NTL (which is strongly recommended) on your machine: please use --with-ntl=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
24
25# Checks for library functions.
26AC_FUNC_ERROR_AT_LINE
27AC_CHECK_FUNCS([memmove memset pow sqrt strchr])
28AC_FUNC_VPRINTF
29AC_FUNC_MALLOC
30AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1], [Define if vsnprintf exists.])])
31
32# Checks for header files.
33AC_HEADER_STDC
34AC_STDC_HEADERS
35AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h])
36
37# Checks for typedefs, structures, and compiler characteristics.
38AC_C_CONST
39AC_C_INLINE
40AC_HEADER_STDBOOL
41AC_TYPE_SIZE_T
42
43SING_CHECK_PIPE
44
45# check for cpu properties
46AC_CHECK_SIZEOF(long,4)
47SING_CHECK_CPU
48
49#check for host:
50AC_CANONICAL_HOST
51case $host_os in
52  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
53  * ) LIBPREFIX="";;
54esac
55
56dnl INCLUDES=""
57dnl dnl OS specific flags and options
58dnl case "$host" in
59dnl     *-*-freebsd*)
60dnl         LIBS="$LIBS -L/usr/local/lib -lc"
61dnl     CFLAGS="$CFLAGS -I/usr/local/include"
62dnl     INCLUDES="$INCLUDES -I/usr/local/include"
63dnl     ;;
64dnl esac       
65dnl AC_SUBST(INCLUDES)
66
67SING_CHECK_P_PROCS
68
69AC_SUBST(LIBPREFIX)
70
71AC_CONFIG_FILES([Makefile])
72AC_CONFIG_FILES([misc/Makefile])
73AC_CONFIG_FILES([reporter/Makefile])
74AC_CONFIG_FILES([resources/Makefile])
75AC_CONFIG_FILES([coeffs/Makefile])
76AC_CONFIG_FILES([polys/Makefile])
77AC_CONFIG_FILES([tests/Makefile])
78AC_CONFIG_FILES([libpolys-config])
79AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.