source: git/gfanlib/configure.ac @ 35564a5

spielwiese
Last change on this file since 35564a5 was e62a1d, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Disable debug by default (separated into m4/options.m4)
  • Property mode set to 100755
File size: 2.0 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.63])
5AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de])
6AC_CONFIG_MACRO_DIR([../m4])
7AC_CONFIG_SRCDIR([gfanlib.h])
8#AC_CONFIG_HEADERS([config.h])
9
10AM_MAINTAINER_MODE
11AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
12m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
13m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
14
15# Checks for programs.
16AC_PROG_CC
17AC_PROG_CXX
18AC_PROG_LN_S
19#AC_PROG_INSTALL
20
21# Checks for libraries.
22
23LT_INIT
24
25# Checks for header files.
26AC_HEADER_STDC
27
28LB_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)]))
29SING_CHECK_GFANLIB
30
31# AC_CHECK_HEADERS([gmp.h])
32# if test "$ac_cv_header_gmp_h" == no
33# then
34#       AC_MSG_WARN([Error, gmp.h is missing!])
35#       exit 1
36# fi
37AC_CHECK_HEADERS([cdd/setoper.h setoper.h])
38if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no
39then
40        AC_MSG_WARN([Error, setoper.h is missing!])
41fi
42
43# if setoper.h is there, assume that also cdd.h is there
44#AC_CHECK_HEADERS([cdd/cdd.h cdd.h],,,
45#[
46## include <setoper.h>
47#])
48
49if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no
50then
51        AC_MSG_WARN([Error, cdd.h is missing!])
52fi
53
54if test "x$ENABLE_GFANLIB" = xyes; then
55if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no
56then
57        exit 1
58fi
59if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no
60then
61        exit 1
62fi
63fi
64
65# Checks for typedefs, structures, and compiler characteristics.
66AC_C_INLINE
67
68SING_CHECK_DEBUG
69
70#AC_MSG_RESULT($ac_cv_singuname)
71#if test "$ac_cv_singuname" = unknown; then
72#  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
73#  ac_cv_singuname="unknown"
74#fi
75#AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname")
76#SINGUNAME=$ac_cv_singuname
77#AC_SUBST(SINGUNAME)
78
79AC_CONFIG_FILES([Makefile])
80AC_CONFIG_HEADERS([config.h])
81AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.