/[mcrypt]/module-skipjack/configure.in
ViewVC logotype

Annotation of /module-skipjack/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Mon Oct 2 08:34:54 2000 UTC (21 years, 2 months ago) by nmav
Branch: MAIN
Changes since 1.2: +1 -1 lines
updated version number

1 nmav 1.1 dnl Process this file with autoconf to produce a configure script.
2     AC_INIT(lib/libdefs.h)
3    
4 nmav 1.3 AM_INIT_AUTOMAKE(libmcrypt, skipjack-0.4)
5 nmav 1.1 AM_CONFIG_HEADER(config.h)
6    
7     #AM_MAINTAINER_MODE
8    
9     AC_PROG_MAKE_SET
10    
11     AC_PROG_CC
12    
13     dnl Checks for programs.
14     AC_PROG_INSTALL
15     AC_PROG_LN_S
16    
17    
18     opt_maintainer_mode=no
19     AC_MSG_CHECKING([whether in maintanance mode])
20     AC_ARG_ENABLE(maintainer-mode,
21     [ --enable-maintainer-mode enable maintainer mode],
22     opt_maintainer_mode=$enableval)
23     AC_MSG_RESULT($opt_maintainer_mode)
24    
25    
26     if test $ac_cv_prog_gcc = yes; then
27     CFLAGS="${CFLAGS} -ffast-math"
28     if test $opt_maintainer_mode = yes; then
29     CFLAGS="${CFLAGS} -Wall -Wpointer-arith -pedantic"
30     fi
31     fi
32    
33     AC_HEADER_STDC
34     AC_CHECK_HEADERS(unistd.h strings.h)
35     AC_CHECK_HEADERS(sys/types.h sys/mman.h dirent.h)
36     AC_CHECK_HEADERS(limits.h)
37     AC_CHECK_FUNCS(bzero memset mlock,,)
38     AC_CHECK_FUNCS(memmove bcopy,,)
39    
40     dnl Checks for libraries.
41     AC_C_BIGENDIAN
42     AC_CHECK_SIZEOF(unsigned long int, 4)
43     AC_CHECK_SIZEOF(unsigned int, 4)
44     AC_CHECK_SIZEOF(unsigned short int, 2)
45     AC_CHECK_SIZEOF(unsigned char, 1)
46    
47 nmav 1.2 opt_ltdlmcrypt=no
48     AC_CHECK_LIB(dl, dlopen)
49     AC_CHECK_LIB(mcrypt, mcrypt_module_open,
50     LIBS="${LIBS} -lmcrypt"
51     opt_ltdlmcrypt=no,
52     [
53     AC_CHECK_LIB(dld, dld_init)
54     AC_CHECK_LIB(ltdl, lt_dlinit)
55     AC_CHECK_LIB(mcrypt, mcrypt_enc_get_key_size,
56     LIBS="${LIBS} -lmcrypt"
57     opt_ltdlmcrypt=yes,
58     AC_MSG_ERROR("You need libmcrypt 2.4.x to compile this module"))
59     ]
60     )
61    
62     if test $opt_ltdlmcrypt = yes; then
63     AC_DEFINE(USE_LTDL)
64     fi
65    
66    
67 nmav 1.1 AC_LIBTOOL_DLOPEN
68     dnl AC_LIBTOOL_WIN32_DLL
69    
70     AM_PROG_LIBTOOL
71    
72    
73     AC_OUTPUT([Makefile doc/Makefile lib/Makefile src/Makefile modules/Makefile modules/algorithms/Makefile])

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26