2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([l2tpns], [1.0.0], [fred_nerk@sourceforge.net])
6 AC_CONFIG_SRCDIR([ll.c])
7 AC_CONFIG_HEADER([config.h])
13 # Checks for header files.
16 AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
18 # Checks for typedefs, structures, and compiler characteristics.
24 # Checks for library functions.
26 AC_PROG_GCC_TRADITIONAL
30 AC_FUNC_SELECT_ARGTYPES
31 AC_FUNC_SETVBUF_REVERSED
36 AC_CHECK_FUNCS([alarm gethostbyname gethostname gettimeofday inet_ntoa memset pow select socket strcasecmp strchr strdup strerror strrchr])
38 # Checks for libraries.
39 AC_CHECK_LIB([cli], [cli_init])
40 AC_CHECK_LIB([dl], [dlopen])
41 AC_CHECK_LIB([m], [pow])
43 AC_DEFINE_UNQUOTED(LIBDIR, ["$prefix/lib/l2tpns"])
44 AC_DEFINE_UNQUOTED(ETCDIR, ["$sysconfdir"])
45 AC_DEFINE_UNQUOTED(BINDIR, ["$prefix/bin"])
47 AC_CONFIG_FILES([Makefile])