diff options
author | Julian Missig <julianm@src.gnome.org> | 2001-06-13 05:58:16 +0800 |
---|---|---|
committer | Julian Missig <julianm@src.gnome.org> | 2001-06-13 05:58:16 +0800 |
commit | 1371a37769579dad1a547850e7fb067cb24c7602 (patch) | |
tree | 5635f9f6d427e60090fcce5b95d9c434c786128a /macros | |
parent | ff61cc4f390c53bc01fc9056d4cc2ea26127437e (diff) | |
download | gsoc2013-evolution-1371a37769579dad1a547850e7fb067cb24c7602.tar.gz gsoc2013-evolution-1371a37769579dad1a547850e7fb067cb24c7602.tar.zst gsoc2013-evolution-1371a37769579dad1a547850e7fb067cb24c7602.zip |
Now checks for Xerces
svn path=/trunk/; revision=10202
Diffstat (limited to 'macros')
-rw-r--r-- | macros/xerces.m4 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/macros/xerces.m4 b/macros/xerces.m4 index a78db2548e..e502c8eb79 100644 --- a/macros/xerces.m4 +++ b/macros/xerces.m4 @@ -22,9 +22,12 @@ AC_DEFUN([AC_CHECK_XERCES],[ fi ]) + AC_MSG_CHECKING(for xerces) if test x$XERCES_INCLUDE_DIR = x; then if test x$XERCESCROOT = x; then - AC_MSG_ERROR("You must set XERCESCROOT or use --with-xerces") + if test "x$prefix" != "xNONE"; then + XERCESCROOT="$prefix" + fi fi XERCES_INCLUDE_DIR=$XERCESCROOT/include fi @@ -36,6 +39,12 @@ AC_DEFUN([AC_CHECK_XERCES],[ XERCES_VER=`ls $XERCES_LIB_DIR/libxerces*.so | perl macros/xerces-version.pl` + if test "x$XERCES_VER" = "x0_0"; then + AC_MSG_ERROR("You must have Xerces installed and set XERCESCROOT or use --with-xerces") + else + AC_MSG_RESULT(found) + fi + XERCES_LIBNAME=xerces-c XERCES_LIBRARY_NAMES=-l${XERCES_LIBNAME}${XERCES_VER} XERCES_LIBRARY_SEARCH_PATHS=-L${XERCES_LIB_DIR} |