AC_INIT([libcapifax], 0.7.3, http://capifax.v3v.de) AC_PREFIX_DEFAULT(/usr) AC_ARG_ENABLE(boost, [ --disable-boost do not increase process priority (default: enabled) ], [ WITH_BOOST="0" ], [ WITH_BOOST="1" ]) AC_ARG_WITH(spandsp, [ --with-spandsp=(4|5|6) specify spandsp version (default: 6) ], [SPANDSP_VERSION="$withval"], [SPANDSP_VERSION='0']) AC_ARG_WITH(cip, [ --with-cip=[4|17] set CIP value 17=Fax/G3, 4=Speech (default: 17) ], [CAPI_CIP="$withval"], [CAPI_CIP='17']) AC_ARG_WITH(connections, [ --with-connections=X max. number of connections (default: 5) ], [CAPI_CONNECTIONS="$withval"], [CAPI_CONNECTIONS='5']) AC_ARG_WITH(packets, [ --with-packets=X number of CAPI packets (default: 160) ], [CAPI_PACKETS="$withval"], [CAPI_PACKETS='160']) AC_ARG_WITH(buffer-cnt, [ --with-buffer-cnt=X number if CAPI buffer blocks (default: 6) ], [CAPI_BUFFERCNT="$withval"], [CAPI_BUFFERCNT='6']) AC_ARG_WITH(bchannels, [ --with-bchannels=X number of bchannels to use (default: 2) ], [CAPI_BCHANNELS="$withval"], [CAPI_BCHANNELS='2']) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([.]) AC_CONFIG_HEADER(config_compile.h) AC_PROG_LIBTOOL AC_PROG_CC with_spandsp=no AC_MSG_CHECKING(for spandsp) pkg-config --exists spandsp && with_spandsp=yes if test "x$with_spandsp" = xyes; then AC_DEFINE([HAVE_SPANDSP], 1, [Have spandsp]) if test "$SPANDSP_VERSION" == "0" then SPANDSP_VERSION="6" fi else with_spandsp=no if test "$SPANDSP_VERSION" == "0" then SPANDSP_VERSION="5" fi fi AC_MSG_RESULT($with_spandsp) AM_CONDITIONAL(WITH_SPANDSP, test "x$with_spandsp" != "xno") AC_CHECK_LIB(capi20, main, [], AC_MSG_ERROR("-lcapi20 missing!")) AC_SUBST(SPANDSP_VERSION) AC_SUBST(WITH_BOOST) AC_SUBST(CAPI_CONNECTIONS) AC_SUBST(CAPI_PACKETS) AC_SUBST(CAPI_BUFFERCNT) AC_SUBST(CAPI_BCHANNELS) AC_SUBST(CAPI_CIP) AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CONFIG_FILES([Makefile capifax.pc]) AC_OUTPUT