source: git/configure.ac @ ee668e

spielwiese
Last change on this file since ee668e was 46d30d, checked in by Jan Engelhardt <jengelh@…>, 13 years ago
build: resolve deprecated use of AM_INIT_AUTOMAKE
  • Property mode set to 100644
File size: 2.6 KB
Line 
1AC_INIT([singular],[3.1.3.sw])
2
3AC_CONFIG_MACRO_DIR([m4])
4AC_CONFIG_AUX_DIR([.])
5
6AC_CONFIG_SRCDIR([Singular/tesths.cc])
7
8AC_CONFIG_HEADER([config.h])
9
10AM_MAINTAINER_MODE
11AM_INIT_AUTOMAKE([-Wall foreign])
12
13dnl Check if build env is sane
14AM_SANITY_CHECK
15
16#
17# - Check for CC and CXX but be careful about CFLAGS.
18#
19
20test "${CFLAGS+set}" = set || cflags_expl_set=no
21AC_PROG_CC
22test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
23AC_PROG_CXX
24if test "x$GCC" != xyes && test "x$GXX" != xyes; then
25  AC_MSG_WARN(you better use gcc to compile Factory)
26else
27  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
28    AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'
29                    (instead of the configure default \`-g -O')])
30  fi
31  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
32    AC_MSG_WARN([we use \`' as default for \`CFLAGS'
33                    (instead of the configure default \`-g -O')])
34  fi
35fi
36
37
38AC_HEADER_STDC
39AC_CHECK_HEADERS(unistd.h)
40
41AC_CHECK_FUNCS(readlink getcwd getwd)
42
43
44AC_PROG_CPP
45AC_PROG_CXXCPP
46AM_PROG_CC_C_O
47AC_PROG_LN_S
48AC_PROG_INSTALL
49
50LT_INIT
51   
52# Checks for libraries.
53LB_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)]))
54LB_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)]))
55
56AC_FUNC_ERROR_AT_LINE
57AC_FUNC_MALLOC
58
59SING_CHECK_PIPE
60
61# check for cpu properties
62AC_CHECK_SIZEOF(long,4)
63SING_CHECK_CPU
64
65#check for host:
66AC_CANONICAL_HOST
67case $host_os in
68  *cygwin* ) LIBPREFIX="-Xlinker -Bdynamic";;
69  * ) LIBPREFIX="";;
70esac
71
72
73SING_CHECK_P_PROCS
74SING_CHECK_FACTORY
75SING_CHECK_READLINE
76SING_CHECK_DBM
77
78# CFLAGS
79if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
80  CFLAGS=""
81fi
82
83# CXXFLAGS
84if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
85  CXXFLAGS=""
86fi
87
88### the following is needed due to the use of om_sing_opt_show_mem in misc_ip.cc...
89#ac_configure_args="$ac_configure_args --with-external-config_h=../Singular/omSingularConfig.h"
90
91AC_CONFIG_SUBDIRS(omalloc)
92
93if test x$ENABLE_FACTORY = xyes; then
94  AC_CONFIG_SUBDIRS(factory)
95fi
96
97AC_CONFIG_SUBDIRS(libpolys)
98AC_CONFIG_FILES([Makefile])
99AC_CONFIG_FILES([findexec/Makefile])
100AC_CONFIG_FILES([kernel/Makefile])
101AC_CONFIG_FILES([numeric/Makefile])
102AC_CONFIG_FILES([Singular/Makefile])
103AC_CONFIG_FILES([libsingular-config])
104
105AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.