-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
66 lines (52 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([Ragnarok],
m4_esyscmd([build-aux/git-version-gen .tarball-version]),
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(RAGNAROK-VERSION)
AC_CONFIG_HEADERS([config.h])
. $srcdir/RAGNAROK-VERSION
RAGNAROK_VERSION="$PACKAGE_VERSION"
# Checks for programs.
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_FORK
AC_CHECK_FUNCS([memchr mkdir])
# Check for Guile
PKG_CHECK_MODULES([GUILE], [guile-2.0])
GUILE_PROGS
GUILE_FLAGS
GUILE_SITE_DIR
LT_INIT([dlopen disable-fast-install disable-static win32-dll])
RAGNAROK_WITH_LIBGCRYPT=0
AC_ARG_ENABLE([enable-libgcrypt],
[AS_HELP_STRING([--enable-libgcrypt],
[Build with libgcrypt enabled (using ETAG must enable this)])],
if test "$enable_libgcrypt" = y || test "$enable_libgcrypt" = yes; then
RAGNAROK_WITH_LIBGCRYPT=1
fi)
AC_CHECK_HEADER([sys/epoll.h],
[AC_DEFINE([__HAS_SYS_EPOLL_H__], [], [Has epoll.])],
[],
[])
AC_CHECK_HEADER([sys/kqueue.h],
[AC_DEFINE([__HAS_SYS_KQUEUE_H__], [], [Has kqueue.])],
[],
[])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT