From: Adam Dickmeiss Date: Tue, 10 Jul 2007 14:41:36 +0000 (+0000) Subject: Make configure produce error if --with-pcap=yes or --with-pcap is given X-Git-Tag: YAZ.3.0.10~21 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=a6a6e734143028630b0cfc4af582840fbbbe9c2a;p=yaz-moved-to-github.git Make configure produce error if --with-pcap=yes or --with-pcap is given and libpcap is not found. Added --with-pcap to configure in PRM spec. --- diff --git a/configure.ac b/configure.ac index 221b174..44e45cc 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl YAZ Toolkit, Index Data 1995-2007 dnl See the file LICENSE for details. -dnl $Id: configure.ac,v 1.88 2007-07-10 14:28:37 adam Exp $ +dnl $Id: configure.ac,v 1.89 2007-07-10 14:41:36 adam Exp $ AC_PREREQ(2.59) AC_INIT([yaz],[3.0.9],[yaz-help@indexdata.dk]) AC_CONFIG_SRCDIR(configure.ac) @@ -209,7 +209,7 @@ fi AC_MSG_CHECKING([for libpcap (required for ziffy)]) if test -z "${PCAP_LIBS}"; then AC_MSG_RESULT([not found. ziffy disabled]) - if test "${PCAP_LIBS}"; then + if test "${PCAP_DIR}" = "yes"; then AC_MSG_ERROR([libpcap missing]) fi else diff --git a/yaz.spec.in b/yaz.spec.in index 14b395c..b4f4361 100644 --- a/yaz.spec.in +++ b/yaz.spec.in @@ -59,7 +59,7 @@ yaz-illclient: an ISO ILL client. %build CFLAGS="$RPM_OPT_FLAGS" \ - ./configure --prefix=/usr --enable-shared --enable-tcpd --with-xslt --with-openssl + ./configure --prefix=/usr --enable-shared --enable-tcpd --with-xslt --with-openssl --with-pcap make CFLAGS="$RPM_OPT_FLAGS" %install