From 827e67570db8cdcb0af8a2108c562b7b51fbf244 Mon Sep 17 00:00:00 2001 From: Thomas Miedema Date: Fri, 4 Jul 2014 17:23:58 +0200 Subject: Remove unnecessary checks for RTLD_NOW and RTLD_GLOBAL These checks were introduced for OpenBSD on July 16 2002 in GHC commit 03e9edb3094fd3bb38ed886b96ee9f61f39e9b53. According to http://www.openbsd.org/cgi-bin/cvsweb/src/include/dlfcn.h RTLD_NOW, RTLD_GLOBAL and RTLD_LOCAL have been available on OpenBSD since Revision 1.8 (September 2 2003). This is merely code cleanup. --- configure.ac | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 57b7cf7..ccb627b 100644 --- a/configure.ac +++ b/configure.ac @@ -155,7 +155,7 @@ AC_EGREP_CPP(yes, AC_MSG_RESULT(no) ]) -dnl ** RTLD_LOCAL isn't available on cygwin or openbsd +dnl ** RTLD_LOCAL isn't available on cygwin AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h) AC_EGREP_CPP(yes, [ @@ -170,36 +170,6 @@ AC_EGREP_CPP(yes, AC_MSG_RESULT(no) ]) -dnl ** RTLD_GLOBAL isn't available on openbsd -AC_MSG_CHECKING(for RTLD_GLOBAL from dlfcn.h) -AC_EGREP_CPP(yes, -[ - #include - #ifdef RTLD_GLOBAL - yes - #endif -], [ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_RTLDGLOBAL], [1], [Define to 1 if RTLD_GLOBAL is available.]) -], [ - AC_MSG_RESULT(no) - ]) - -dnl ** RTLD_NOW isn't available on openbsd -AC_MSG_CHECKING(for RTLD_NOW from dlfcn.h) -AC_EGREP_CPP(yes, -[ - #include - #ifdef RTLD_NOW - yes - #endif -], [ - AC_MSG_RESULT(yes) - AC_DEFINE([HAVE_RTLDNOW], [1], [Define to 1 if we can see RTLD_NOW in dlfcn.h]) -], [ - AC_MSG_RESULT(no) - ]) - AC_CHECK_FUNCS(openpty,, AC_CHECK_LIB(util,openpty, [AC_DEFINE(HAVE_OPENPTY) EXTRA_LIBS="$EXTRA_LIBS util"], -- cgit v1.2.3