portspoof/configure.in

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-08-04 11:28:52 +00:00
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
CFLASGS="${CFLAGS=}"
AC_PREREQ(2.61)
2014-04-25 08:06:42 +00:00
AC_INIT([portspoof], [1.2], [piotr[at]duszynski.eu])
2012-08-04 11:28:52 +00:00
AC_CONFIG_AUX_DIR(auto)
AC_CONFIG_MACRO_DIR([m4])
2014-04-25 08:06:42 +00:00
AM_INIT_AUTOMAKE(portspoof,1.2)
2013-07-16 14:06:26 +00:00
AC_CONFIG_SRCDIR([src/Portspoof.cpp])
2012-08-04 11:28:52 +00:00
AC_CONFIG_HEADER([src/config.h])
AC_DEFINE([_GNU_SOURCE], [1], [Use GNU source])
UNAME=`uname`
AC_CANONICAL_HOST
AC_SUBST([host])
# Check system type
case "$host_os" in
linux*)
AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
;;
esac
# Checks for programs.
2013-05-17 13:33:49 +00:00
AC_PROG_CXX
2012-08-04 11:28:52 +00:00
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/timeb.h syslog.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([inet_ntoa memset socket])
AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile])
AC_OUTPUT