source: git/libpolys/configure.ac @ bfa04e

spielwiese
Last change on this file since bfa04e was 72b880, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
replaced the deprecated AC_LIBTOOL_DLOPEN/AC_PROG_LIBTOOL with LT_INIT(dlopen disable-static)
  • Property mode set to 100644
File size: 1.5 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
8LT_INIT(dlopen disable-static)
9
10# Checks for programs.
11AC_PROG_CXX
12AC_PROG_CC
13AC_PROG_LN_S
14AC_PROG_INSTALL
15AM_PROG_CC_C_O
16
17# Checks for libraries.
18LB_CHECK_GMP(,,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)]))
19
20# Checks for library functions.
21AC_FUNC_ERROR_AT_LINE
22AC_CHECK_FUNCS([memmove memset pow sqrt strchr])
23AC_FUNC_VPRINTF
24AC_FUNC_MALLOC
25AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1],
26                               [Define if vsnprintf exists.])])
27
28# Checks for header files.
29AC_HEADER_STDC
30AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h limits.h float.h])
31
32# Checks for typedefs, structures, and compiler characteristics.
33AC_C_CONST
34AC_C_INLINE
35AC_HEADER_STDBOOL
36AC_TYPE_SIZE_T
37
38SING_CHECK_PIPE
39
40# check for cpu properties
41AC_CHECK_SIZEOF(long,4)
42SING_CHECK_CPU
43
44#check for host:
45AC_CANONICAL_HOST
46case $host_os in
47  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
48  * ) LIBPREFIX="";;
49esac
50
51SING_CHECK_P_PROCS
52
53AC_SUBST(LIBPREFIX)
54
55AC_CONFIG_FILES([Makefile])
56AC_CONFIG_FILES([misc/Makefile])
57AC_CONFIG_FILES([reporter/Makefile])
58AC_CONFIG_FILES([resources/Makefile])
59AC_CONFIG_FILES([coeffs/Makefile])
60AC_CONFIG_FILES([polys/Makefile])
61AC_CONFIG_FILES([tests/Makefile])
62AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.