1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.63]) |
---|
5 | AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de]) |
---|
6 | AC_CONFIG_MACRO_DIR([../m4]) |
---|
7 | AC_CONFIG_SRCDIR([gfanlib.h]) |
---|
8 | #AC_CONFIG_HEADERS([config.h]) |
---|
9 | |
---|
10 | AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules |
---|
11 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
---|
12 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
---|
13 | |
---|
14 | AM_MAINTAINER_MODE |
---|
15 | |
---|
16 | SING_RESET_FLAGS() |
---|
17 | SING_CHECK_SET_ARGS() |
---|
18 | |
---|
19 | # Checks for programs. |
---|
20 | # AC_PROG_CC |
---|
21 | # AC_PROG_CXX |
---|
22 | AC_PROG_LN_S |
---|
23 | #AC_PROG_INSTALL |
---|
24 | |
---|
25 | # Checks for libraries. |
---|
26 | |
---|
27 | LT_INIT |
---|
28 | |
---|
29 | # Checks for header files. |
---|
30 | AC_HEADER_STDC |
---|
31 | |
---|
32 | LB_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)])) |
---|
33 | SING_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 |
---|
41 | AC_CHECK_HEADERS([cdd/setoper.h setoper.h]) |
---|
42 | if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no |
---|
43 | then |
---|
44 | AC_MSG_WARN([Error, setoper.h is missing!]) |
---|
45 | fi |
---|
46 | |
---|
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 | #]) |
---|
52 | |
---|
53 | if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no |
---|
54 | then |
---|
55 | AC_MSG_WARN([Error, cdd.h is missing!]) |
---|
56 | fi |
---|
57 | |
---|
58 | if test "x$ENABLE_GFANLIB" = xyes; then |
---|
59 | if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no |
---|
60 | then |
---|
61 | exit 1 |
---|
62 | fi |
---|
63 | if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no |
---|
64 | then |
---|
65 | exit 1 |
---|
66 | fi |
---|
67 | fi |
---|
68 | |
---|
69 | # Checks for typedefs, structures, and compiler characteristics. |
---|
70 | AC_C_INLINE |
---|
71 | |
---|
72 | |
---|
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 | |
---|
82 | AC_CONFIG_FILES([Makefile]) |
---|
83 | AC_CONFIG_HEADERS([config.h]) |
---|
84 | AC_OUTPUT |
---|