source: git/gfanlib/configure.ac @ 5417ff

jengelh-datetimespielwiese
Last change on this file since 5417ff was 5417ff, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Added automake BuildSystem
  • 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([setoper.h])
38if test "$ac_cv_header_setoper_h" == no
39then
40        AC_MSG_WARN([Error, setoper.h is missing!])
41fi
42
43AC_CHECK_HEADERS([cdd.h],,,
44[
45# include <setoper.h>
46])
47
48if test "$ac_cv_header_cdd_h" == no
49then
50        AC_MSG_WARN([Error, cdd.h is missing!])
51fi
52
53if test "x$ENABLE_GFANLIB" = xyes; then
54if test "$ac_cv_header_setoper_h" == no
55then
56        exit 1
57fi
58if test "$ac_cv_header_cdd_h" == no
59then
60        exit 1
61fi
62fi
63
64# Checks for typedefs, structures, and compiler characteristics.
65AC_C_INLINE
66
67AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
68 [if test "x$enableval"  = "xyes"; then
69   ENABLE_DEBUG=yes
70 fi], ENABLE_DEBUG=no)
71
72AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
73
74#AC_MSG_RESULT($ac_cv_singuname)
75#if test "$ac_cv_singuname" = unknown; then
76#  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
77#  ac_cv_singuname="unknown"
78#fi
79#AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname")
80#SINGUNAME=$ac_cv_singuname
81#AC_SUBST(SINGUNAME)
82
83AC_CONFIG_FILES([Makefile])
84AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.