-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
41 lines (32 loc) · 914 Bytes
/
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
# Process this file with autoconf to produce a configure script.
AC_INIT(src/lrdf.c)
AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(liblrdf, 0.5.0)
LRDF_LIBTOOL_VERSION=2:0:0
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_PROG_LIBTOOL
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h limits.h stdlib.h string.h unistd.h])
PKG_CHECK_MODULES(RAPTOR, raptor2 >= 2.0.0)
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
dnl AC_FUNC_MALLOC
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([getcwd strcasecmp strchr strdup strerror strncasecmp strrchr])
LIBS="$LIBS $RAPTOR_LIBS"
AM_CFLAGS="$CFLAGS $RAPTOR_CFLAGS"
AC_SUBST(AM_CFLAGS)
AC_SUBST(LIBS)
AC_SUBST(LRDF_LIBTOOL_VERSION)
AC_OUTPUT([lrdf.pc Makefile src/Makefile examples/Makefile])