libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit f9a75f648ab310db4ca3837510bf06b57fd3c989
parent 4c0c2f7eb351c4ebc75aa2e7c43cdf9901447438
Author: Nils Durner <durner@gnunet.org>
Date:   Thu, 19 Feb 2009 19:18:26 +0000

check whether exports list works (thanks to holindho)

Diffstat:
Mconfigure.ac | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -258,6 +258,16 @@ AM_CONDITIONAL(ENABLE_HTTPS, test "$enable_https" = "yes") MHD_LIB_LDFLAGS="-export-dynamic -no-undefined" +dnl TODO insert a proper check here +AC_CACHE_CHECK([whether -export-symbols-regex works], + gn_cv_export_symbols_regex_works, + [ + case "$host_os" in + mingw*) gn_cv_export_symbols_regex_works=no;; + *) gn_cv_export_symbols_regex_works=yes;; + esac + ]) + # optional: compile TLS client side code [only for test running] ? AC_MSG_CHECKING(whether to compile TLS client side code) AC_ARG_ENABLE(client-side, @@ -270,7 +280,10 @@ if test "$enable_client_side" = "no" then AC_DEFINE([MHD_DEBUG_TLS],[0],[Compile client side code. This will enable running some test cases.]) MSG_CLIENT_SIDE="disabled. running some test cases won't be possible" - MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-symbols \$(srcdir)/EXPORT.sym" + if test "x$gn_cv_export_symbols_regex_works" = "xyes" + then + MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-symbols \$(srcdir)/EXPORT.sym" + fi else AC_DEFINE([MHD_DEBUG_TLS],[1],[Compile client side code. This will enable running some test cases.]) MSG_CLIENT_SIDE="enabled"