forked from fbx/librudp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
54 lines (41 loc) · 1.12 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.61])
AC_INIT([librudp],[0.3],[[email protected]])
AC_CONFIG_MACRO_DIR([autotools])
AC_CONFIG_AUX_DIR([autotools])
AC_CONFIG_SRCDIR([src/rudp.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
if test "x$GCC" = "xyes"; then
GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
fi
AC_SUBST(GCC_CFLAGS)
# Initialize libtool
LT_PREREQ([2.2])
LT_INIT
# Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h])
AC_PATH_PROG([mkdoc], [mkdoc])
AM_CONDITIONAL(HAVE_MKDOC, test x$mkdoc != x)
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_UINT32_T
LT_INIT
# Checks for libraries.
PKG_CHECK_MODULES(ELA, ela)
# Checks for library functions.
AC_FUNC_MALLOC
AC_CONFIG_FILES([
rudp.pc
Makefile
doc/Makefile
include/Makefile
include/rudp/Makefile
src/Makefile
test/Makefile
])
AC_OUTPUT