source: git/gfanlib/configure.ac @ 2e473ad

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