-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathconfigure.in
25 lines (19 loc) · 931 Bytes
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AC_PREREQ(2.57)
AC_INIT(viewssld, 0.7.0, [email protected])
AC_CONFIG_SRCDIR([src/viewssld.c])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AC_PROG_INSTALL
AC_PROG_CC
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h unistd.h])
AC_OUTPUT(Makefile src/Makefile doc/Makefile distribute.sh,[chmod +x distribute.sh],)
AC_CHECK_HEADER([pcap.h],,[AC_MSG_ERROR([libpcap header file not found. Install libpcap-dev package.])])
AC_CHECK_HEADER([openssl/ssl.h],,[AC_MSG_ERROR([libssl header file not found. Install libssl-dev package.])])
AC_CHECK_HEADER([dssl/sslcap.h],,[AC_MSG_ERROR([libdssl header file not found. https://github.com/downloads/plashchynski/viewssld/libdssl-2.1.1.tar.gz])],
[[#ifdef HAVE_SSLCAP_H
# include <dssl/sslcap.h>
#endif
]])
AC_CHECK_HEADER([libnet.h],,[AC_MSG_ERROR([libnet header file not found. Install libnet-dev package.])])