1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
3 AC_CONFIG_SRCDIR([relay_agt.c])
4 AC_CONFIG_HEADER([config.h])
9 # Checks for libraries.
11 # Checks for header files.
14 AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h])
16 # Checks for typedefs, structures, and compiler characteristics.
21 # Checks for library functions.
25 AC_CHECK_FUNCS([gethostbyname inet_ntoa memset select socket strdup inet_aton])
26 AC_SEARCH_LIBS(gethostbyname, nsl)
27 AC_CHECK_FUNC(socket, , [
28 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket", [
29 AC_CHECK_LIB(nsl, socket, LIBS="$LIBS -lsocket -lnsl", , -lsocket)
33 AC_CONFIG_FILES([Makefile])