Remove PCRE dependency.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Feb 2010 23:48:28 +0000 (15:48 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Feb 2010 22:59:41 +0000 (14:59 -0800)
INSTALL.Linux
m4/openvswitch.m4
ovsdb/automake.mk
tests/atlocal.in
tests/automake.mk
utilities/automake.mk
vswitchd/automake.mk

index 652911865a22e6103163967fdae3a3e172866871..c0344f23010bdad00857e7010f6e9e8f70f3be56 100644 (file)
@@ -27,10 +27,6 @@ you will need the following software:
       connections from an Open vSwitch to an OpenFlow controller.  To
       enable, configure with --enable-ssl=yes.
 
-    - libpcre, the Perl Compatible Regular Expression library, is
-      optional but recommended.  Without it, OVSDB will not be able to
-      validate regular-expression based contraints.
-
 To compile the kernel module, you must also install the following.  If
 you cannot build or install the kernel module, you may use the
 userspace-only implementation, at a cost in performance.  The
@@ -84,9 +80,6 @@ following software:
     - libssl compatible with the libssl used for build, if OpenSSL was
       used for the build.
 
-    - libpcre compatible with the libpcre used for build, if PCRE was
-      used for the build.
-
     - The Linux kernel version configured as part of the build.
 
     - For optional support of ingress policing, the "tc" program from
index 861e4ebd80df1ed0530a9231e20e91df944cd6a6..ccb3a0143f705b8c28d715e2d9ccde555562c979 100644 (file)
@@ -216,28 +216,16 @@ AC_DEFUN([OVS_CHECK_LINUX_VT_H],
 
 dnl Checks for libpcre.
 dnl
-dnl ovsdb wants any reasonable version of libpcre (6.6 is what
-dnl XenServer 5.5 has).
-dnl
 dnl ezio-term wants libpcre that supports the PCRE_PARTIAL feature,
 dnl which is libpcre 7.2 or later.
 AC_DEFUN([OVS_CHECK_PCRE],
   [dnl Make sure that pkg-config is installed.
    m4_pattern_forbid([PKG_CHECK_MODULES])
    PKG_CHECK_MODULES([PCRE],
-                     [libpcre >= 6.6], 
-                     [HAVE_PCRE=yes
-                      PKG_CHECK_EXISTS([libpcre >= 7.2], 
-                                       [HAVE_PCRE_PARTIAL=yes],
-                                       [HAVE_PCRE_PARTIAL=no])],
-                     [HAVE_PCRE=no
-                      HAVE_PCRE_PARTIAL=no])
-   AM_CONDITIONAL([HAVE_PCRE], [test "$HAVE_PCRE" = yes])
+                     [libpcre >= 7.2], 
+                     [HAVE_PCRE_PARTIAL=yes],
+                     [HAVE_PCRE_PARTIAL=no])
    AM_CONDITIONAL([HAVE_PCRE_PARTIAL], [test "$HAVE_PCRE_PARTIAL" = yes])
-   if test "$HAVE_PCRE" = yes; then
-      AC_DEFINE([HAVE_PCRE], [1], [Define to 1 if libpcre is installed.])
-   fi
-   AC_SUBST([HAVE_PCRE])
    AC_SUBST([HAVE_PCRE_PARTIAL])
 ])
 
index 1e05e9fb484b7877ea6972b66a3bac1b6d56d687..86054100bd2a24103b2368a6be14078e68b9117b 100644 (file)
@@ -34,7 +34,7 @@ EXTRA_DIST += \
 # ovsdb-tool
 bin_PROGRAMS += ovsdb/ovsdb-tool
 ovsdb_ovsdb_tool_SOURCES = ovsdb/ovsdb-tool.c
-ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(PCRE_LIBS)
+ovsdb_ovsdb_tool_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
 # ovsdb-tool.1
 man_MANS += ovsdb/ovsdb-tool.1
 DISTCLEANFILES += ovsdb/ovsdb-tool.1
@@ -43,7 +43,7 @@ EXTRA_DIST += ovsdb/ovsdb-tool.1.in
 # ovsdb-client
 bin_PROGRAMS += ovsdb/ovsdb-client
 ovsdb_ovsdb_client_SOURCES = ovsdb/ovsdb-client.c
-ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS) $(PCRE_LIBS)
+ovsdb_ovsdb_client_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
 # ovsdb-client.1
 man_MANS += ovsdb/ovsdb-client.1
 DISTCLEANFILES += ovsdb/ovsdb-client.1
@@ -52,7 +52,7 @@ EXTRA_DIST += ovsdb/ovsdb-client.1.in
 # ovsdb-server
 sbin_PROGRAMS += ovsdb/ovsdb-server
 ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
-ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS) $(PCRE_LIBS)
+ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
 # ovsdb-server.1
 man_MANS += ovsdb/ovsdb-server.1
 DISTCLEANFILES += ovsdb/ovsdb-server.1
index 1628ea55be8802e4824a84c5e930225cd2a7942a..8ac4f676b2927c5ef1e62962a8e0e3d1bd0eff1e 100644 (file)
@@ -1,6 +1,5 @@
 # -*- shell-script -*-
 HAVE_OPENSSL='@HAVE_OPENSSL@'
-HAVE_PCRE='@HAVE_PCRE@'
 HAVE_PYTHON='@HAVE_PYTHON@'
 PERL='@PERL@'
 PYTHON='@PYTHON@'
index e5cd0ec2f8145e7a51bcda673c1a7aade34f79ff..d6f6783911660942bc320cdf6da94dedbe1c8e3d 100644 (file)
@@ -216,7 +216,7 @@ tests_test_ovsdb_SOURCES = \
        tests/idltest.c \
        tests/idltest.h
 EXTRA_DIST += tests/uuidfilt.pl
-tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS) $(PCRE_LIBS)
+tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
 
 # idltest schema and IDL
 OVSIDL_BUILT +=        tests/idltest.c tests/idltest.h tests/idltest.ovsidl
index b84923135aa9cb1bd33e6a66eb103c40b02938b7..5feb01cda9d37d7769cee393dc793643b0e23986 100644 (file)
@@ -77,7 +77,7 @@ utilities_ovs_openflowd_LDADD = \
        $(SSL_LIBS)
 
 utilities_ovs_vsctl_SOURCES = utilities/ovs-vsctl.c vswitchd/vswitch-idl.c
-utilities_ovs_vsctl_LDADD = lib/libopenvswitch.a $(SSL_LIBS) $(PCRE_LIBS)
+utilities_ovs_vsctl_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
 
 utilities_ovs_wdt_SOURCES = utilities/ovs-wdt.c
 
index d5f9056f50daf289c0e3ba37ea533422a582fa0e..c38add65b9ba7b3e88187ae244d7a9eadd11aaaa 100644 (file)
@@ -20,15 +20,14 @@ vswitchd_ovs_vswitchd_LDADD = \
        ofproto/libofproto.a \
        lib/libsflow.a \
        lib/libopenvswitch.a \
-       $(SSL_LIBS) \
-       $(PCRE_LIBS)
+       $(SSL_LIBS)
 
 vswitchd_ovs_brcompatd_SOURCES = \
        vswitchd/ovs-brcompatd.c \
        vswitchd/vswitch-idl.c \
        vswitchd/vswitch-idl.h
 
-vswitchd_ovs_brcompatd_LDADD = lib/libopenvswitch.a $(SSL_LIBS) $(PCRE_LIBS)
+vswitchd_ovs_brcompatd_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
 
 EXTRA_DIST += \
        vswitchd/ovs-vswitchd.8.in \