fork-sever-process-and-introduce-broadcast-api.patch
[profile/ivi/libwebsockets.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.66])
5 AC_INIT(libwebsockets, 0.2, andy@warmcat.com)
6 AC_CONFIG_SRCDIR([test-server/test-server.c])
7 AC_CONFIG_HEADERS([config.h])
8
9 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
10 LT_INIT(shared)
11
12 #AX_PTHREAD
13
14 # Checks for programs.
15 AC_PROG_CC
16 AC_PROG_INSTALL
17 AC_PROG_MAKE_SET
18 AC_CONFIG_MACRO_DIR([m4])
19
20
21 AC_ARG_ENABLE(openssl,
22  [  --enable-openssl  Enables https support and needs openssl libs],
23  [ openssl=yes
24  ])
25
26 if test "x$openssl" = "xyes" ; then
27 AC_CHECK_LIB([ssl], [SSL_library_init])
28 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
29 fi
30
31
32
33 # Checks for header files.
34 AC_CHECK_HEADERS([fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
35
36 # Checks for typedefs, structures, and compiler characteristics.
37 AC_TYPE_SIZE_T
38
39 # Checks for library functions.
40 AC_FUNC_FORK
41 AC_FUNC_MALLOC
42 AC_FUNC_REALLOC
43 AC_CHECK_FUNCS([bzero memset socket strerror])
44
45 AC_CONFIG_FILES([Makefile
46                  lib/Makefile
47                  test-server/Makefile])
48
49 AC_OUTPUT