[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 4a59240 1/2: Some explanations in configure.ac
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 4a59240 1/2: Some explanations in configure.ac regarding static builds |
Date: |
Mon, 3 Dec 2018 15:18:10 -0500 (EST) |
branch: master
commit 4a59240a635e87be5aea3d9b13c4cc6d012542e4
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Some explanations in configure.ac regarding static builds
Static builds are a little complicated because all the dependency libraries
of things like `libcurl' and `libssl' (necessary for `libcurl' and
`libgit2') will also have to be done statically. An explanation was added
above the appropriate section in `configure.ac' to help explain this issue.
---
configure.ac | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 484aff0..6313a4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -275,8 +275,13 @@ AC_SEARCH_LIBS([gsl_integration_qng], [gsl], [],
# no problem for Gnuastro either. So there is no need to stop the configure
# script if libcurl isn't found.
#
-# For static builds, libcurl depends on linking with zlib. So we'll need to
-# also search for that.
+# For static builds, linking libcurl (also built in static-only mode) will
+# depend on linking with zlib. So we'll need to also search for that
+# also. But if libcurl isn't built in static-only mode, then it will have
+# undefined symbols for many libraries (for example libpsl, libidn2,
+# librtmp, libldap). So if you intend to make Gnuastro statically, then
+# build Libcurl in static-only mode so you won't have to check for all
+# these extra libraries here.
AC_SEARCH_LIBS([deflateInit_], [z], [], [])
AC_SEARCH_LIBS([curl_global_init], [curl], [], [])
AC_SEARCH_LIBS([ffopen], [cfitsio], [],