f3bdf555fa727e1317e2aa7f6453de13270f3446
[sockstream.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.68])
5 AC_INIT([libsockstream], [0.1], [arjen@andromeda.nl])
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7 AC_LANG(C++)
8 AC_CONFIG_SRCDIR([src/socket.cpp])
9 AC_CONFIG_HEADERS([config.h])
10
11 # Checks for programs.
12 AC_PROG_CXX
13 AC_PROG_CC
14 AC_PROG_LIBTOOL
15
16 # Checks for libraries.
17 # FIXME: Replace `main' with a function in `-lAXE':
18 AC_CHECK_LIB([AXE], [main])
19
20 # Checks for header files.
21 AC_CHECK_HEADERS([arpa/inet.h netdb.h sys/socket.h])
22
23 # Checks for typedefs, structures, and compiler characteristics.
24 AC_TYPE_SIZE_T
25 AC_TYPE_SSIZE_T
26 AC_HEADER_STDBOOL
27
28 # Checks for library functions.
29 AC_CHECK_FUNCS([socket strchr])
30
31 AC_CONFIG_FILES([Makefile
32                  doc/Makefile
33                  test/Makefile
34                  src/Makefile])
35 AC_OUTPUT