X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=configure.ac;h=dafd9e2ae37bc537ee3400dc90040c5930994843;hp=1911187f25cf3fbb412adbda55e9fd83a8f002d1;hb=034d3a91404addedc1c7a3494862c79532b0b878;hpb=278f2cbeca65df1413530d116afa84b592da517a diff --git a/configure.ac b/configure.ac index 1911187..dafd9e2 100644 --- a/configure.ac +++ b/configure.ac @@ -27,13 +27,14 @@ dnl Change the 2nd argument if the version increases dnl 1st + 2nd argument is used for distribution package name AC_INIT(lcr, 1.14, andreas@eversberg.eu) AC_PREREQ(2.59) +AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_SRCDIR([main.c]) -AM_CONFIG_HEADER(config.h) +AC_CONFIG_HEADER([config.h]) # fix warnings from autoconf + automake AC_GNU_SOURCE -# AC_USE_SYSTEM_EXTENSIONS -AM_INIT_AUTOMAKE(lcr,1.14) +dnl AC_USE_SYSTEM_EXTENSIONS +AM_INIT_AUTOMAKE([foreign subdir-objects]) @@ -229,6 +230,20 @@ AS_IF([test "x$with_sip" == xyes -o "x$with_sip" == xyes], [ PKG_CHECK_MODULES(SOFIA, sofia-sip-ua >= 1.12) ]) +# check for VoOTP +AC_ARG_WITH([vootp], + [AS_HELP_STRING([--with-vootp], + [compile with VoOTP support (libvootp is required) @<:@default=no@:>@]) + ], + [], + [with_vootp="check"]) + +AM_CONDITIONAL(ENABLE_VOOTP, test "x$with_vootp" == "xyes" ) + +AS_IF([test "x$with_vootp" == xyes -o "x$with_vootp" == xyes], [ + PKG_CHECK_MODULES(VOOTP, libvootp >= 0.0) + ]) + # Checks for libraries. AC_CHECK_LIB([m], [main]) AC_CHECK_LIB([ncurses], [main]) @@ -274,4 +289,5 @@ AS_IF([test "x$found_opencore_amrnb" == xyes],[AC_MSG_NOTICE( Compiled with GSM AS_IF([test "x$with_asterisk" == xyes],[AC_MSG_NOTICE( Compiled with Asterisk channel driver support )],[AC_MSG_NOTICE( Not compiled with Asterisk channel driver support)]) AS_IF([test "x$with_ss5" == xyes],[AC_MSG_NOTICE( Compiled with CCITT No.5 support )],[AC_MSG_NOTICE( Not compiled with CCITT No.5 support)]) AS_IF([test "x$with_sip" == xyes],[AC_MSG_NOTICE( Compiled with SIP support )],[AC_MSG_NOTICE( Not compiled with SIP support)]) +AS_IF([test "x$with_vootp" == xyes],[AC_MSG_NOTICE( Compiled with VoOTP support )],[AC_MSG_NOTICE( Not compiled with VoOTP support)])