2016-01-11 04:39:30 +08:00
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.52)
|
2021-02-19 16:56:52 +08:00
|
|
|
AC_INIT(rinetd, 0.73, sam@hocevar.net)
|
2016-01-11 04:39:30 +08:00
|
|
|
AC_CONFIG_AUX_DIR(.auto)
|
2017-09-12 01:25:26 +08:00
|
|
|
AC_CONFIG_SRCDIR([src/rinetd.c])
|
|
|
|
AC_CONFIG_HEADER([src/config.h])
|
2016-01-11 04:39:30 +08:00
|
|
|
AM_INIT_AUTOMAKE([no-define tar-ustar silent-rules])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
# Checks for libraries.
|
2016-02-08 16:20:55 +08:00
|
|
|
AC_CHECK_LIB(ws2_32, main, [LIBS="${LIBS} -lws2_32"])
|
2016-01-11 04:39:30 +08:00
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
2021-02-14 06:02:03 +08:00
|
|
|
AC_CHECK_TYPES(ssize_t, [], [],
|
|
|
|
[#include <sys/types.h>])
|
2016-01-11 05:54:19 +08:00
|
|
|
AC_CHECK_TYPES(socklen_t, [], [],
|
|
|
|
[#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>])
|
2016-01-11 04:39:30 +08:00
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_FORK
|
2016-02-08 16:20:55 +08:00
|
|
|
#XXX: disabled because of cross-compilation issues
|
|
|
|
#AC_FUNC_MALLOC
|
2016-01-11 04:39:30 +08:00
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_STRFTIME
|
2016-02-07 07:02:29 +08:00
|
|
|
AC_CHECK_FUNCS([gethostbyname memset select socket strstr daemon fork sigaction])
|
2016-01-11 04:39:30 +08:00
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
2017-09-12 01:25:26 +08:00
|
|
|
AC_CONFIG_FILES([src/Makefile])
|
2016-01-11 04:39:30 +08:00
|
|
|
AC_OUTPUT
|