summaryrefslogtreecommitdiff
path: root/configure.in
blob: 2ee3ae1d696eca93dbfea598e09952b662d0cac5 (plain)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT([DrunkenMan], 3.0, flo@arch)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([main.cpp])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB(dl,dlopen, , AC_MSG_ERROR([libdl not found!]))
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h sys/socket.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_UINT32_T

# Checks for library functions.
AC_CHECK_FUNCS([gethostbyname inet_ntoa select socket strstr])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT