pkgsrc/net/fetch/files/configure.ac
joerg 7b8ce834be Beside a missing , in the inner autoconf test, it looks like doing a
check twice with AC_CHECK_LIB (without and with OTHER-LIBRARIES) doesn't
work due to caching. So give up and just check separately for
-lssl/-lcrypto and hope for the best.
2010-01-04 16:50:43 +00:00

29 lines
782 B
Text

dnl $NetBSD: configure.ac,v 1.3 2010/01/04 16:50:43 joerg Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT([fetch], [1.6], [joerg@NetBSD.org])
AC_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_CHECK_HEADERS([sys/param.h sys/ioctl.h sys/socket.h sys/stat.h sys/time.h])
AC_CHECK_HEADERS([err.h stdint.h termios.h sysexists.h])
AC_TYPE_INTMAX_T
AC_CHECK_FUNCS([getpass getpassphrase setproctitle])
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, gethostbyname)
AC_CHECK_LIB(ssl, SSL_read, [], [], [-lcrypto])
AC_CHECK_LIB(fetch, fetchGet)
case "$host_os" in
netbsd)
AC_DEFINE([PREFER_GETPASS], [], [getpass supports long passwords])
;;
esac
AC_DEFINE([HAVE_CONFIG_H], [], [Include config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT