-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
53 lines (45 loc) · 1.47 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
define(VERSION_ID,esyscmd([
V=`git describe 2>/dev/null | sed 's/^[A-Za-z-]*//'`;
[ -z "$V" ] && V=git-`git show --format=%H | head -n 1`;
echo $V | tr -d '\n';
]))
AC_PREREQ([2.69])
AC_INIT([Portsplit], VERSION_ID, [[email protected]], [portsplit], [https://github.com/kheops2713/portsplit])
AM_INIT_AUTOMAKE([-Wall])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([include/config.h])
AC_CANONICAL_HOST
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([util], [openpty])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h \
fcntl.h \
netdb.h \
stdio.h \
stdlib.h \
string.h \
strings.h \
sys/socket.h \
sys/select.h \
time.h \
sys/types.h \
sys/wait.h \
sys/stat.h \
unistd.h \
pty.h \
endian.h \
errno.h \
signal.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([dup2 memset select socket strerror])
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile examples/Makefile man/Makefile])
AC_OUTPUT