dnl Process this file with Autoconf to produce a configure script. dnl $Id$ dnl dnl Written by Russ Allbery dnl Copyright 2006 Board of Trustees, Leland Stanford Jr. University dnl dnl See README for licensing terms. AC_REVISION($Revision$) AC_PREREQ(2.57) AC_INIT([wallet], [0.1], [rra@stanford.edu]) AC_CONFIG_AUX_DIR([tools]) AM_INIT_AUTOMAKE AM_MAINTAINER_MODE AFS_CPPFLAGS= AC_ARG_WITH([afs-headers], AC_HELP_STRING([--with-afs-headers=DIR], [Prefix for AFS headers (for kasetkey)]), [if test x"$withval" != xno ; then AFS_CPPFLAGS="-I${withval}" fi]) AC_SUBST([AFS_CPPFLAGS]) AFS_LDFLAGS= AC_ARG_WITH([afs-libs], AC_HELP_STRING([--with-afs-libs=DIR], [Prefix for AFS libraries (for kasetkey)]), [if test x"$withval" != xno ; then AFS_LDFLAGS="-L${withval}" fi]) AC_SUBST([AFS_LDFLAGS]) REMCTL_CPPFLAGS= REMCTL_LDFLAGS= AC_ARG_WITH([remctl], AC_HELP_STRING([--with-remctl=DIR], [Prefix for remctl headers and libraries]), [if test x"$withval" != xno ; then REMCTL_CPPFLAGS="-I${withval}/include" REMCTL_LDFLAGS="-L${withval}/lib" fi]) AC_SUBST([REMCTL_CPPFLAGS]) AC_SUBST([REMCTL_LDFLAGS]) AC_ARG_VAR([REMCTLD], [Path to the remctld binary]) AC_PATH_PROG([REMCTLD], [remctld], , [$PATH:/usr/sbin:/usr/local/sbin]) if test x"$REMCTLD" != x ; then AC_DEFINE_UNQUOTED([PATH_REMCTLD], ["$REMCTLD"], [Define to the full path to remctld to run remctl tests.]) fi AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL AC_SEARCH_LIBS([gethostbyname], [nsl]) AC_SEARCH_LIBS([socket], [socket], , [AC_CHECK_LIB([nsl], [socket], [LIBS="-lnsl -lsocket $LIBS"], , [-lsocket])]) AC_SEARCH_LIBS([res_search], [resolv], , [AC_SEARCH_LIBS([__res_search], [resolv])]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([tests/client/basic-t], [chmod +x tests/client/basic-t]) AC_OUTPUT