-
Notifications
You must be signed in to change notification settings - Fork 0
/
natspec.m4.in
34 lines (29 loc) · 1.04 KB
/
natspec.m4.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dnl Configure paths for NATSPEC
dnl Vitaly Lipatov <[email protected]>
dnl Tests for NATSPEC, and define NATSPEC_CFLAGS and NATSPEC_LIBS
dnl TODO: AM_PATH_NATSPEC([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl
AC_DEFUN([AM_PATH_NATSPEC],
[dnl
dnl Get the cflags and libraries from pkg-config
dnl
with_natspec_support=no
AC_ARG_WITH(natspec,
[ --with-natspec NATSPEC support (auto charset detecting)],
[ case "$withval" in
yes|no)
with_natspec_support="$withval"
;;
esac ])
if test x$with_natspec_support != xno ; then
dnl PKG_CHECK_MODULES(NATSPEC,libnatspec,with_natspec_support=yes,with_natspec_support=no)
dnl AC_DEFINE(HAVE_NATSPEC,1,[Define if you have the natspec library]))
dnl AM_CONDITIONAL(HAVE_NATSPEC, $with_natspec_support)
AC_MSG_CHECKING([for NATSPEC support])
PKG_CHECK_MODULES(NATSPEC, libnatspec >= @VERSION@,
[AC_DEFINE(HAVE_NATSPEC,1,[Define if you have the natspec library])])
dnl AC_MSG_RESULT(yes)
AC_SUBST(NATSPEC_CFLAGS)
AC_SUBST(NATSPEC_LIBS)
fi
])