openbsd-ports/net/ucd-snmp/patches/patch-configure
danh 14a604a2c8 update to ucd-snmp 4.2.6
from Sergio Jimenez Romero <tripledes@eslack.org>
2003-04-22 15:11:05 +00:00

84 lines
2.3 KiB
Plaintext

--- configure.orig Fri Oct 11 08:10:26 2002
+++ configure Tue Apr 22 10:28:42 2003
@@ -4696,7 +4696,10 @@ openbsd*)
version_type=sunos
need_lib_prefix=no
need_version=no
+ sys_lib_search_path_spec="/usr/lib"
+ sys_lib_dlsearch_path_spec="/usr/lib /usr/local/lib"
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
case "$host_os" in
openbsd2.[89] | openbsd2.[89].*)
shlibpath_overrides_runpath=no
@@ -6674,27 +6677,6 @@ fi
echo "$ac_t""$EXTRACPPFLAGS" 1>&6
-if test "x$prefix" = "xNONE"; then
- prefix=/usr/local
-fi
-
-fch=`echo $prefix | sed 's/\(.\).*/\1/'`
-if test $fch != "/" ; then
- prefix=`pwd`/$prefix
- echo "adjusting prefix to $prefix"
-fi
-
-if test "x$exec_prefix" = "xNONE"; then
- exec_prefix=$prefix
-fi
-
-fch=`echo $exec_prefix | sed 's/\(.\).*/\1/'`
-if test $fch != "/" ; then
- exec_prefix=`pwd`/$exec_prefix
- echo "adjusting exec_prefix to $exec_prefix"
-fi
-
-
SNMPLIBPATH=""
tmpset="$libdir/snmp"
while test "x$tmpset" != "x$SNMPLIBPATH"; do
@@ -7601,6 +7583,7 @@ echo "configure:7601: checking for TCP w
cat > conftest.$ac_ext <<EOF
#line 7603 "configure"
#include "confdefs.h"
+#include <sys/types.h>
#include <tcpd.h>
int allow_severity = 0;
int deny_severity = 0;
@@ -7723,6 +7706,7 @@ echo "configure:7723: checking for TCP w
cat > conftest.$ac_ext <<EOF
#line 7725 "configure"
#include "confdefs.h"
+#include <sys/types.h>
#include <tcpd.h>
int allow_severity = 0;
int deny_severity = 0;
@@ -8576,7 +8560,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lcrypto $LIBS"
+LIBS="-lcrypto -ldes $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8582 "configure"
#include "confdefs.h"
@@ -8610,7 +8594,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
#define $ac_tr_lib 1
EOF
- LIBS="-lcrypto $LIBS"
+ LIBS="-lcrypto -ldes $LIBS"
else
echo "$ac_t""no" 1>&6
@@ -16631,6 +16615,7 @@ s%@AUTOCONF@%$AUTOCONF%g
s%@AUTOHEADER@%$AUTOHEADER%g
s%@UNAMEPROG@%$UNAMEPROG%g
s%@VERSION@%$VERSION%g
+s%@VERSION_INFO@%$VERSION_INFO%g
s%@target@%$target%g
s%@target_alias@%$target_alias%g
s%@target_cpu@%$target_cpu%g