readd RxSpencer support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fdaf7a06f6
commit
21b25d27be
1 changed files with 21 additions and 0 deletions
|
|
@ -297,6 +297,27 @@ else
|
||||||
AC_CHECK_FUNC(popen, AC_DEFINE(HAVE_POPEN, 1, [Define if popen is available]), AC_MSG_NOTICE([Disabling popen]))
|
AC_CHECK_FUNC(popen, AC_DEFINE(HAVE_POPEN, 1, [Define if popen is available]), AC_MSG_NOTICE([Disabling popen]))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
# Look for RxSpencer
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
|
||||||
|
AC_ARG_WITH(rxspencer, AS_HELP_STRING([--with-rxspencer], [Enable RxSpencer]), with_rxspencer="yes")
|
||||||
|
if test x"${with_rxspencer}" = xyes ; then
|
||||||
|
#check first for the header
|
||||||
|
AC_CHECK_HEADER(rxspencer/regex.h,with_rxspencer="yes",with_rxspencer="no")
|
||||||
|
if test x"${with_rxspencer}" = xyes ; then
|
||||||
|
# now check for the library
|
||||||
|
AC_CHECK_LIB(rxspencer, regcomp,with_rxspencer="yes",with_rxspencer="no")
|
||||||
|
fi
|
||||||
|
if test x"${with_rxspencer}" = xyes ; then
|
||||||
|
# library and header are available
|
||||||
|
AC_DEFINE(HAVE_RXSPENCER, 1,[Define if rxspencer is available])
|
||||||
|
LIBS="$LIBS -lrxspencer"
|
||||||
|
else
|
||||||
|
AC_MSG_NOTICE([RxSpencer not found. Obtain it at http://arglist.com/regex or http://gnuwin32.sourceforge.net/packages.html])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
|
|
||||||
# Check for specific libraries. Used for SWIG examples
|
# Check for specific libraries. Used for SWIG examples
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue