pkgsrc/net/kphone/patches/patch-af
tron f542b9c34d Correct broken SSL "configure" test which causes link failures under
NetBSD 2.x. This fixes PR pkg/30315 by Torsten Harenberg,
2005-05-26 21:01:07 +00:00

32 lines
864 B
Text

$NetBSD: patch-af,v 1.6 2005/05/26 21:01:07 tron Exp $
--- configure.orig 2004-12-07 13:16:23.000000000 +0100
+++ configure 2005-05-26 22:38:17.000000000 +0200
@@ -1262,8 +1262,8 @@
fi
fi
-CFLAGS="-I$ac_cv_qt_inc -Wall"
-LIBS="-L$ac_cv_qt_lib -l$ac_cv_qt_libname -L/usr/local/lib -L/usr/X11R6/lib64 -L/usr/X11R6/lib"
+CFLAGS="$CFLAGS -I$ac_cv_qt_inc -Wall"
+LIBS="-L$ac_cv_qt_lib -l$ac_cv_qt_libname $LIBOSSAUDIO"
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -1538,7 +1538,7 @@
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lssl $LIBS"
+LIBS="-lssl -lcrypto $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1544 "configure"
#include "confdefs.h"
@@ -2116,7 +2116,6 @@
CFLAGS="$CFLAGS -g -DDEBUG"
echo "$ac_t""yes" 1>&6
else
-CFLAGS="$CFLAGS -O3"
echo "$ac_t""no" 1>&6
fi