(mpx_udiv): Fix bug in quotient digit estimation.
[u/mdw/catacomb] / configure.in
... / ...
CommitLineData
1dnl -*-fundamental-*-
2dnl
3dnl $Id: configure.in,v 1.13 2000/06/17 13:51:03 mdw Exp $
4dnl
5dnl Autoconfiguration for Catacomb
6dnl
7dnl (c) 1999 Straylight/Edgeware
8dnl
9
10dnl ----- Licensing notice --------------------------------------------------
11dnl
12dnl This file is part of Catacomb.
13dnl
14dnl Catacomb is free software; you can redistribute it and/or modify
15dnl it under the terms of the GNU Library General Public License as
16dnl published by the Free Software Foundation; either version 2 of the
17dnl License, or (at your option) any later version.
18dnl
19dnl Catacomb is distributed in the hope that it will be useful,
20dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22dnl GNU Library General Public License for more details.
23dnl
24dnl You should have received a copy of the GNU Library General Public
25dnl License along with Catacomb; if not, write to the Free
26dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
27dnl MA 02111-1307, USA.
28
29dnl ----- Revision history --------------------------------------------------
30dnl
31dnl $Log: configure.in,v $
32dnl Revision 1.13 2000/06/17 13:51:03 mdw
33dnl Whoops. Too eager with the mLib version.
34dnl
35dnl Revision 1.12 2000/06/17 12:57:47 mdw
36dnl New free counter noise generator, for use if /dev/random is
37dnl unavailable.
38dnl
39dnl Revision 1.11 2000/06/17 10:51:23 mdw
40dnl Version number changes. Find maths library for Maurer's test.
41dnl
42dnl Revision 1.10 1999/12/22 16:03:31 mdw
43dnl New mLib version. Find socket functions for pixie.
44dnl
45dnl Revision 1.7 1999/11/13 01:55:48 mdw
46dnl Don't be pedantic, because using `long long' as a multiprecision type
47dnl gets complained about.
48dnl
49dnl Revision 1.6 1999/11/11 18:56:14 mdw
50dnl Use `libtool' to generate a shared library.
51dnl
52dnl Revision 1.5 1999/11/11 17:47:34 mdw
53dnl Updates for new configuration system, and `mptypes' generator.
54dnl
55dnl Revision 1.4 1999/11/11 00:58:19 mdw
56dnl Use canned check for `ssize_t'.
57dnl
58dnl Revision 1.3 1999/10/24 10:20:36 mdw
59dnl Modify for standalone distribution. The library's getting far too large
60dnl to be sensibly embedded in other programs.
61dnl
62dnl Revision 1.2 1999/10/23 12:56:25 mdw
63dnl Version number change.
64dnl
65dnl Revision 1.1 1999/09/03 08:41:11 mdw
66dnl Initial import.
67dnl
68
69dnl --- Boring boilerplate ---
70
71AC_INIT(blkc.h)
72AM_INIT_AUTOMAKE(catacomb, 2.0.0pre1)
73AM_CONFIG_HEADER(config.h)
74
75dnl --- Make sure I can compile and build libraries ---
76
77AC_PROG_CC
78AM_PROG_LIBTOOL
79mdw_GCC_FLAGS(-Wall)
80
81AC_PROG_YACC
82
83dnl --- Actually, I assume these exist anyway ---
84
85AC_CHECK_HEADERS(unistd.h)
86AC_HEADER_STDC
87
88dnl --- Check for various important system types ---
89
90AC_TYPE_PID_T
91AC_TYPE_SIZE_T
92AC_TYPE_UID_T
93AC_CHECK_TYPE(time_t, long)
94mdw_TYPE_SSIZE_T
95
96dnl --- The maths library, for Maurer's test ---
97
98mdw_CHECK_MANYLIBS(log, m,,, [#include <math.h>], [2])
99mdw_CHECK_MANYLIBS(sqrt, m,,, [#include <math.h>], [2])
100
101dnl --- Functions used for noise-gathering ---
102
103AC_CHECK_FUNCS(setgroups)
104
105AC_CACHE_CHECK([whether the freewheel noise generator will work],
106[catacomb_cv_freewheel],
107[AC_TRY_LINK([
108#include <setjmp.h>
109#include <sys/time.h>
110],
111[struct itimerval itv = { { 0, 0 }, { 0, 5000 } };
112jmp_buf j;
113setitimer(ITIMER_REAL, &itv, 0);
114sigsetjmp(j, 1);],
115[catacomb_cv_freewheel=yes],
116[catacomb_cv_freewheel=no])])
117if test "$catacomb_cv_freewheel" = "yes"; then
118 AC_DEFINE([USE_FREEWHEEL])
119fi
120
121dnl --- Support for the passphrase pixie ---
122
123mdw_CHECK_MANYLIBS(socket, socket)
124AC_CHECK_FUNCS(mlock)
125
126dnl --- Done ---
127
128mdw_MLIB(2.0.0pre1)
129AC_OUTPUT(Makefile tests/Makefile catacomb-config qcc, chmod 755 qcc)
130
131dnl ----- That's all, folks -------------------------------------------------