2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(libwebsockets, 0.2, andy@warmcat.com)
6 AC_CONFIG_SRCDIR([test-server/test-server.c])
7 AC_CONFIG_HEADERS([config.h])
9 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
14 # Checks for programs.
18 AC_CONFIG_MACRO_DIR([m4])
21 AC_ARG_ENABLE(openssl,
22 [ --enable-openssl Enables https support and needs openssl libs],
26 if test "x$openssl" = "xyes" ; then
27 AC_CHECK_LIB([ssl], [SSL_library_init])
28 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
33 # Checks for header files.
34 AC_CHECK_HEADERS([fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
36 # Checks for typedefs, structures, and compiler characteristics.
39 # Checks for library functions.
43 AC_CHECK_FUNCS([bzero memset socket strerror])
45 AC_CONFIG_FILES([Makefile
47 test-server/Makefile])