forked from SecPlus/OrionSocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
executable file
·42 lines (34 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
# Configure Script
# --
AC_INIT([orionsocket], [1.0.9], [[email protected]])
AM_INIT_AUTOMAKE
LT_INIT
AC_CONFIG_SRCDIR([src/socket.c], [examples/simple.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([orion_config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AC_ARG_ENABLE([debug],[AS_HELP_STRING([--enable-debug],
[Print on the screen some debugging information. @<:@default=no@:>@])],
[with_debug=$enableval], [with_debug=no])
if test "x$with_debug" == "xyes"
then
AC_DEFINE([ORIONSOCKET_DEBUG], [1], [Print debug information])
fi
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([bzero getaddrinfo inet_ntoa memset socket])
# Orion DEFINE's
AC_DEFINE([ORION_LOG_STDERR], 1, [DEBUG ON STDERR])
AC_CONFIG_FILES([Makefile src/Makefile examples/Makefile])
AC_OUTPUT