1 --- pcre-7.7/configure.ac.orig 2008-05-07 18:22:03.000000000 +0200
2 +++ pcre-7.7/configure.ac 2008-06-17 19:40:42.879677506 +0200
4 AC_SUBST(EXTRA_LIBPCRE_LDFLAGS)
5 AC_SUBST(EXTRA_LIBPCREPOSIX_LDFLAGS)
6 AC_SUBST(EXTRA_LIBPCRECPP_LDFLAGS)
7 +AC_SUBST(PCREGREP_LIBS)
8 +AC_SUBST(PCRETEST_LIBS)
10 # When we run 'make distcheck', use these arguments.
11 DISTCHECK_CONFIGURE_FLAGS="--enable-cpp --enable-unicode-properties"
13 echo "** Cannot --enable-pcregrep-libz because libz was not found"
16 - if test "$LIBS" = ""; then LIBS=-lz; else LIBS="$LIBS -lz"; fi
17 + if test "$PCREGREP_LIBS" = ""; then PCREGREP_LIBS=-lz; else PCREGREP_LIBS="$PCREGREP_LIBS -lz"; fi
20 if test "$enable_pcregrep_libbz2" = "yes"; then
22 echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
25 - if test "$LIBS" = ""; then LIBS=-lbz2; else LIBS="$LIBS -lbz2"; fi
26 + if test "$PCREGREP_LIBS" = ""; then PCREGREP_LIBS=-lbz2; else PCREGREP_LIBS="$PCREGREP_LIBS -lbz2"; fi
29 # Similarly for --enable-pcretest-readline
31 echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
34 - if test "$LIBS" = ""; then LIBS=-lreadline; else LIBS="$LIBS -lreadline"; fi
35 + if test "$PCRETEST_LIBS" = ""; then PCRETEST_LIBS=-lreadline; else PCRETEST_LIBS="$PCRETEST_LIBS -lreadline"; fi
38 # Produce these files, in addition to config.h.
39 --- pcre-7.7/Makefile.am.orig 2008-01-23 18:58:28.000000000 +0100
40 +++ pcre-7.7/Makefile.am 2008-06-17 19:43:11.376139837 +0200
42 EXTRA_DIST += RunTest.bat
43 bin_PROGRAMS += pcretest
44 pcretest_SOURCES = pcretest.c
45 -pcretest_LDADD = libpcreposix.la
46 +pcretest_LDADD = libpcreposix.la $(PCRETEST_LIBS)
49 dist_noinst_SCRIPTS += RunGrepTest
50 bin_PROGRAMS += pcregrep
51 pcregrep_SOURCES = pcregrep.c
52 -pcregrep_LDADD = libpcreposix.la
53 +pcregrep_LDADD = libpcreposix.la $(PCREGREP_LIBS)