samba-vscan configure.in,1.17.2.17,1.17.2.18
Rainer Link <[email protected]> Thu, 07 Apr 2005 10:20:41 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16260
Modified Files:
Tag: VSCAN_0_3
configure.in
Log Message:
added some missing pieces for the file regexp stuff
Index: configure.in
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/configure.in,v
retrieving revision 1.17.2.17
retrieving revision 1.17.2.18
diff -u -d -r1.17.2.17 -r1.17.2.18
--- configure.in 17 Nov 2004 19:21:04 -0000 1.17.2.17
+++ configure.in 7 Apr 2005 10:20:38 -0000 1.17.2.18
@@ -935,6 +935,65 @@
###########################################################
###########################################################
+#
+# check for pcre
+#
+vscan_cv_filerregexp=auto
+PCRE_LIB+AC_MSG_CHECKING(for regexp-exclude support)
+AC_ARG_WITH(fileregexp,
+[ --with-fileregexp Check for regexp-exclude support (default=auto)],
+[ case "$withval" in
+ yes)
+ vscan_cv_filerregexp=$withval
+ vscan_cv_filerregexp_wanted=yes
+ AC_MSG_RESULT(${vscan_cv_filerregexp})
+ ;;
+ no)
+ vscan_cv_filerregexp=$withval
+ vscan_cv_filerregexp_wanted=no
+ AC_MSG_RESULT(${vscan_cv_filerregexp})
+ ;;
+ *)
+ AC_MSG_RESULT(${vscan_cv_filerregexp})
+ ;;
+ esac ],
+ AC_MSG_RESULT(${vscan_cv_filerregexp})
+)
+
+if test x"$vscan_cv_filerregexp" != x"no"; then
+ vscan_cv_filerregexp=no
+ vscan_save_LIBS=$LIBS
+ if pcre-config --cflags >/dev/null 2>&1; then
+ LIBS="$LIBS `pcre-config --libs`"
+ fi
+ AC_CHECK_LIB(pcre, pcre_exec)
+ if test x"$ac_cv_lib_pcre_pcre_exec" = x"yes"; then
+ vscan_cv_filerregexp=yes
+ PCRE_LIB="$LIBS"
+ fi
+ LIBS=$vscan_save_LIBS
+fi
+
+AC_MSG_CHECKING(whether to use regexp-exclude support)
+if test x"$vscan_cv_filerregexp" = x"yes"; then
+ GLOBAL_LIBS="${PCRE_LIB} ${GLOBAL_LIBS}"
+ AC_DEFINE(HAVE_FILEREGEXP_SUPPORT,1,[Whether to have -lpcre])
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+ if test x"$vscan_cv_filetype_wanted" = x"yes"; then
+ AC_MSG_WARN(sorry no regexp-exclude support is possible)
+ AC_MSG_ERROR(please install libpcre if you need regexp-exclude support)
+ elif test x"$vscan_cv_filerregexp_wanted" = x"no"; then
+ TMP_DUMMY+ else
+ AC_MSG_WARN(sorry no regexp-exclude support is possible)
+ AC_MSG_WARN(please install libpcre if you need regexp-exclude support)
+ fi
+fi
+#
+###########################################################
+
+###########################################################
AC_OUTPUT(Makefile)
AC_MSG_RESULT([
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click