]> git.pld-linux.org Git - packages/cvsnt.git/commitdiff
- properly detect patched pcre (with a patch avoiding symbol clash)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 30 Mar 2008 10:09:05 +0000 (10:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cvsnt-system-pcre.patch -> 1.2

cvsnt-system-pcre.patch

index ba484046bcc9616ee143327e42ad77e2d8841132..be62e216fce56792baa22f85da7072c9d201e161 100644 (file)
@@ -1,5 +1,25 @@
---- cvsnt-2.5.04.2980/Makefile.am~     2008-03-27 00:18:29.000000000 +0200
-+++ cvsnt-2.5.04.2980/Makefile.am      2008-03-27 00:18:31.114055905 +0200
+diff -urN cvsnt-2.5.04.2980.org/configure.in cvsnt-2.5.04.2980/configure.in
+--- cvsnt-2.5.04.2980.org/configure.in 2008-02-14 05:26:00.000000000 +0100
++++ cvsnt-2.5.04.2980/configure.in     2008-03-30 11:45:04.690572767 +0200
+@@ -424,10 +424,11 @@
+ else
+   # Check for pcre posix library
+   saved_libs="$LIBS"
+-  LIBS=""
+-  AC_SEARCH_LIBS(pcre_compile, pcreposix, [AC_MSG_CHECKING([for PCRE posix library])
+-       AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pcreposix.h>]], [[int i;]])],[ac_cv_have_pcre="yes"],[])
+-       AC_MSG_RESULT($ac_cv_have_pcre)], ac_cv_have_pcre="no")
++  LIBS="-lpcreposix"
++  AC_MSG_CHECKING([for PCRE posix library])
++  AC_TRY_LINK([#include <pcreposix.h>], [regcomp(0, 0, 0);],
++       [ac_cv_have_pcre="yes"],[ac_cv_have_pcre="no"])
++  AC_MSG_RESULT([$ac_cv_have_pcre])
+   PCRE_LIBS="$LIBS"
+   LIBS="$saved_libs"
+ fi
+diff -urN cvsnt-2.5.04.2980.org/Makefile.am cvsnt-2.5.04.2980/Makefile.am
+--- cvsnt-2.5.04.2980.org/Makefile.am  2008-02-17 07:53:22.000000000 +0100
++++ cvsnt-2.5.04.2980/Makefile.am      2008-03-30 11:43:13.315248392 +0200
 @@ -23,7 +23,7 @@
  if WITH_PCRE
    PCRE_SUBDIR =
This page took 0.166807 seconds and 4 git commands to generate.