Fix USE_DYNAMIC_LINKING detection.

Submitted by:	ls+gnupg.devel.gnupg.org@gambit.com.ru
References:	http://lists.gnupg.org/pipermail/gnupg-devel/2003-October/020503.html
This commit is contained in:
Jun Kuriyama 2003-10-26 23:03:37 +00:00
parent 78ae367331
commit 64e5d59d5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92262
4 changed files with 58 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= gnupg
PORTVERSION= 1.2.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= gnupg

View file

@ -0,0 +1,28 @@
--- configure.orig Fri Aug 22 04:50:00 2003
+++ configure Mon Oct 27 04:14:29 2003
@@ -9208,7 +9208,7 @@
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
- :
+ found_dlopen=yes
else
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
@@ -9266,6 +9266,7 @@
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
found_dlopen=yes
+ need_libdl=yes
fi
fi
@@ -9281,6 +9282,8 @@
#define HAVE_DL_DLOPEN 1
_ACEOF
+ fi
+ if test x"$need_libdl" = "xyes" ; then
DLLIBS="-ldl"
fi

View file

@ -7,7 +7,7 @@
PORTNAME= gnupg
PORTVERSION= 1.2.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= gnupg

View file

@ -0,0 +1,28 @@
--- configure.orig Fri Aug 22 04:50:00 2003
+++ configure Mon Oct 27 04:14:29 2003
@@ -9208,7 +9208,7 @@
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
if test $ac_cv_func_dlopen = yes; then
- :
+ found_dlopen=yes
else
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
@@ -9266,6 +9266,7 @@
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
if test $ac_cv_lib_dl_dlopen = yes; then
found_dlopen=yes
+ need_libdl=yes
fi
fi
@@ -9281,6 +9282,8 @@
#define HAVE_DL_DLOPEN 1
_ACEOF
+ fi
+ if test x"$need_libdl" = "xyes" ; then
DLLIBS="-ldl"
fi