-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathconfigure.ac
71 lines (54 loc) · 1.54 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.64])
AC_INIT(hashkill, 0.3.1, [email protected])
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE(hashkill, 0.3.1)
AC_OUTPUT(Makefile src/Makefile man/Makefile)
AC_CONFIG_SRCDIR([src/threads.c])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
#SAVED_CFLAGS=$(CFLAGS)
AC_PROG_CC
AM_PROG_CC_C_O
#CFLAGS=$(SAVED_CFLAGS)
AM_PROG_AS
AC_DISABLE_SHARED
LT_INIT([disable-shared])
AC_PROG_LIBTOOL
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([termios.h sys/param.h fcntl.h stdlib.h pthread.h dlfcn.h string.h unistd.h openssl/md5.h arpa/inet.h zlib.h openssl/sha1.h wchar.h stddef.h ])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT64_T
AC_TYPE_UINT32_T
AC_TYPE_UINT16_T
AC_TYPE_UINT8_T
AC_TYPE_INT64_T
AC_TYPE_INT32_T
AC_TYPE_INT16_T
AC_TYPE_INT8_T
AC_TYPE_SSIZE_T
AC_TYPE_UID_T
AC_CHECK_TYPES([ptrdiff_t])
AC_C_INLINE
AC_HEADER_STDBOOL
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([bzero strstr sysinfo strerror endpwent getcwd strchr strcspn strtoul memset strtol atexit memmove mkdir munmap setenv memchr])
AC_FUNC_REALLOC
AC_FUNC_MMAP
AC_FUNC_ALLOCA
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
m4_include([simd.m4])
m4_include([json.m4])
m4_include([oclopts.m4])
AX_EXT()
AX_CHECK_JSONLIB()
PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.0.0])
#DEPS_CFLAGS+=$(OPENSSL_CFLAGS)
#DEPS_LIBS+=$(OPENSSL_LIBS)
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)
AC_OUTPUT