mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-14 02:56:48 +00:00
freetdm: use m4_ifdef() to check for pkg-config macros and print a warning if they are not available
...instead of failing at runtime Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
This commit is contained in:
parent
ad7c7f1323
commit
d4138959b2
@ -24,7 +24,12 @@ AC_PROG_MAKE_SET
|
|||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
PKG_PROG_PKG_CONFIG
|
|
||||||
|
# NOTE: pkg-config is used to detect libisdn
|
||||||
|
m4_ifdef([PKG_PROG_PKG_CONFIG],
|
||||||
|
[PKG_PROG_PKG_CONFIG],
|
||||||
|
[AC_MSG_WARN([pkg-config missing (required for libisdn detection)])]
|
||||||
|
)
|
||||||
|
|
||||||
AX_COMPILER_VENDOR
|
AX_COMPILER_VENDOR
|
||||||
|
|
||||||
@ -305,7 +310,8 @@ AC_ARG_WITH([libisdn],
|
|||||||
if test "${with_libisdn}" != "no"
|
if test "${with_libisdn}" != "no"
|
||||||
then
|
then
|
||||||
AC_MSG_RESULT([${as_nl}<<>> ftmod_isdn (libisdn stack)])
|
AC_MSG_RESULT([${as_nl}<<>> ftmod_isdn (libisdn stack)])
|
||||||
PKG_CHECK_MODULES([libisdn],
|
m4_ifdef([PKG_CHECK_MODULES],
|
||||||
|
[PKG_CHECK_MODULES([libisdn],
|
||||||
[libisdn >= 0.0.1],
|
[libisdn >= 0.0.1],
|
||||||
[AC_MSG_CHECKING([libisdn version])
|
[AC_MSG_CHECKING([libisdn version])
|
||||||
LIBISDN_VERSION="`${PKG_CONFIG} --modversion libisdn`"
|
LIBISDN_VERSION="`${PKG_CONFIG} --modversion libisdn`"
|
||||||
@ -339,7 +345,9 @@ then
|
|||||||
],
|
],
|
||||||
[AC_MSG_ERROR([Need libisdn-0.0.1 or higher])]
|
[AC_MSG_ERROR([Need libisdn-0.0.1 or higher])]
|
||||||
)
|
)
|
||||||
AX_LIB_PCAP
|
AX_LIB_PCAP],
|
||||||
|
[AC_MSG_WARN([pkg-config missing (required for libisdn detection)])]
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([HAVE_LIBISDN], [test "${HAVE_LIBISDN}" = "yes"])
|
AM_CONDITIONAL([HAVE_LIBISDN], [test "${HAVE_LIBISDN}" = "yes"])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user