openbsd-ports/net/nmap/patches/patch-configure
2010-04-21 07:08:23 +00:00

30 lines
992 B
Plaintext

$OpenBSD: patch-configure,v 1.11 2010/04/21 07:08:23 giovanni Exp $
--- configure.orig Thu Nov 5 20:50:33 2009
+++ configure Wed Jan 20 19:54:57 2010
@@ -7161,6 +7161,7 @@ cat >>conftest.$ac_ext <<_ACEOF
extern char pcap_version[];
int main() {
int major, minor1, minor2;
+ exit(0); /* fool it, use our libpcap */
sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
if (major > 0)
exit(0);
@@ -7492,7 +7493,7 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-#include <pcre/pcre.h>
+#include <pcre.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
@@ -7693,7 +7694,7 @@ if test $have_pcre != yes ; then
else
# We only need to check for and use this if we are NOT using included pcre
-for ac_header in pcre/pcre.h
+for ac_header in pcre.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then