dnl Process this file with autoconf to produce a configure script. AC_INIT(INSTALL) AM_INIT_AUTOMAKE(liboop,0.9) AC_CANONICAL_HOST dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_RANLIB AC_PATH_PROG([AR], [ar], [notfound], [$PATH$PATH_SEPARATOR/usr/ccs/bin]) AC_ARG_VAR([AR], [ar program to use]) [if test "$AR" = "notfound"; then] AC_MSG_ERROR([cannot find ``ar'']) [fi] AC_CHECK_HEADERS(poll.h sys/select.h sys/socket.h string.h strings.h) dnl This is always present in a LysKOM build. AC_DEFINE(HAVE_ADNS) if test -z "$no_wacky_libs" ; then AC_CHECK_LIB(resolv,res_query) AC_SEARCH_LIBS(gethostbyname,nsl) AC_SEARCH_LIBS(socket,socket) fi test yes = "$GCC" && CFLAGS="-Wall -Wno-comment -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wwrite-strings $CFLAGS"' $(EXTRA_CFLAGS)' AC_SUBST(ADNS_LIBS) AC_OUTPUT(Makefile)