diff options
author | Greg Hudson <ghudson@mit.edu> | 1997-09-29 04:47:48 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1997-09-29 04:47:48 +0000 |
commit | 2dadfc4a56e59e58831556e5301ab9672f8f3514 (patch) | |
tree | 47552451e67126482b2cf9091caa46be9c9b5a14 /aclocal.m4 | |
parent | e0d5a25d493e7fb3f7614a82e916933392713708 (diff) |
Update from master version.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -21,6 +21,9 @@ dnl ATHENA_UTIL_COM_ERR dnl Generates error if com_err not found. dnl ATHENA_UTIL_SS dnl Generates error if ss not found. +dnl ATHENA_REGEXP +dnl Sets RX_LIBS if rx library used; ensures POSIX regexp +dnl support. dnl ATHENA_MOTIF dnl Sets MOTIF_LIBS and defines HAVE_MOTIF if Motif used. dnl ATHENA_MOTIF_REQUIRED @@ -87,6 +90,25 @@ else AC_MSG_ERROR(This package requires ss.) fi]) +dnl ----- Regular expressions ----- + +AC_DEFUN(ATHENA_REGEXP, +[AC_ARG_WITH(rx, + [ --with-rx=PREFIX Use installed rx library], + [rx="$withval"], [rx=no]) +if test "$rx" != no; then + if test "$rx" != yes; then + CPPFLAGS="$CPPFLAGS -I$rx/include" + LDFLAGS="$LDFLAGS -L$rx/lib" + fi + AC_CHECK_LIB(regcomp, rx, RX_LIBS=-lrx, + [AC_MSG_ERROR(rx library not found)]) +else + AC_CHECK_FUNC(regcomp, :, + [AC_MSG_ERROR(can't find POSIX regexp support)]) +fi +AC_SUBST(RX_LIBS)]) + dnl ----- Motif ----- AC_DEFUN(ATHENA_MOTIF_CHECK, |