configure.in 1.24 KB
Newer Older
Niels Möller's avatar
Niels Möller committed
1
2
3
dnl -*- mode: shell-script; sh-indentation: 2; -*-
dnl $Id$

4
5
dnl Process this file with autoconf to produce a configure script.

Niels Möller's avatar
Niels Möller committed
6
AC_INIT(arcfour.c)
Niels Möller's avatar
Niels Möller committed
7

8
AM_INIT_AUTOMAKE(nettle, 1.1)
Niels Möller's avatar
Niels Möller committed
9
10

AM_CONFIG_HEADER(config.h)
11

12
# Checks for programs.
Niels Möller's avatar
Niels Möller committed
13
AC_PROG_CC
Niels Möller's avatar
Niels Möller committed
14
AC_PROG_MAKE_SET
Niels Möller's avatar
Niels Möller committed
15
AC_PROG_RANLIB
Niels Möller's avatar
Niels Möller committed
16
AM_PROG_CC_STDC
Niels Möller's avatar
Niels Möller committed
17

Niels Möller's avatar
Niels Möller committed
18
19
20
if test "x$am_cv_prog_cc_stdc" = xno ; then
  AC_ERROR([the C compiler doesn't handle ANSI-C])
fi
21

Niels Möller's avatar
Niels Möller committed
22
AC_PATH_PROG(M4, m4, m4)
23

24
# Checks for typedefs, structures, and compiler characteristics.
Niels Möller's avatar
Niels Möller committed
25
AC_C_CONST
Niels Möller's avatar
Niels Möller committed
26
27
28
29
30
AC_C_INLINE
AC_TYPE_UID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME

31
# Needed by the supplied memcmp.c
Niels Möller's avatar
Niels Möller committed
32
33
34
35
AC_C_BIGENDIAN

AC_REPLACE_FUNCS(memxor)

36
37
38
39
40
41
42
# Checks for libraries
AC_CHECK_LIB(gmp, __gmpz_getlimbn,,
    [AC_MSG_WARN(
[GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.
Support for public key algorithms will be unavailable.])])


Niels Möller's avatar
Niels Möller committed
43
44
45
46
47
48
49
50
51
52
53
# Set these flags *last*, or else the test programs won't compile
if test x$GCC = xyes ; then
    CFLAGS="$CFLAGS -ggdb3 -Wall -W \
 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
 -Waggregate-return \
 -Wpointer-arith -Wbad-function-cast -Wnested-externs"

# Don't enable -Wcast-align as it results in tons of warnings in the
# DES code. And when using stdio.

fi
Niels Möller's avatar
Niels Möller committed
54

Niels Möller's avatar
Niels Möller committed
55
AC_OUTPUT(Makefile testsuite/Makefile examples/Makefile)
56