File: acinclude.m4

package info (click to toggle)
gaby 2.0.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,148 kB
  • ctags: 3,101
  • sloc: ansic: 48,660; sh: 8,710; python: 1,161; makefile: 951; perl: 265; sed: 93; xml: 89; sql: 25
file content (29 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (4)
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
# a macro to get the libs/cflags for libxml (adapted from test for libxml)
# serial 1

dnl AM_PATH_LIBXML([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]])
dnl Test to see if libxml is installed, and define LIBXML_CFLAGS, LIBS
dnl
AC_DEFUN(AM_PATH_LIBXML,
[dnl
dnl Get the cflags and libraries from the libxml-config script
dnl
AC_ARG_WITH(xml-config,
[  --with-xml-config=XML_CONFIG  Location of xml-config],
LIBXML_CONFIG="$withval")

AC_PATH_PROG(LIBXML_CONFIG, xml-config, no)
AC_MSG_CHECKING(for libxml)
if test "$LIBXML_CONFIG" = "no"; then
  AC_MSG_RESULT(no)
  ifelse([$2], , :, [$2])
else
  LIBXML_CFLAGS=`$LIBXML_CONFIG --cflags`
  LIBXML_LIBS=`$LIBXML_CONFIG --libs`
  AC_MSG_RESULT(yes)
  ifelse([$1], , :, [$1])
fi
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_LIBS)
])