summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-09-06 16:11:22 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2017-09-06 16:11:22 (GMT)
commitfd49457db9bec56addc9acafeee85df03c27358e (patch)
tree67614eff2e08c36aefec670a4198ddfd077d5d29
parente04cbf1a8dabaec4aa2259f646b696756b1b0ad3 (diff)
downloaddatamash-fd49457db9bec56addc9acafeee85df03c27358e.zip
datamash-fd49457db9bec56addc9acafeee85df03c27358e.tar.gz
datamash-fd49457db9bec56addc9acafeee85df03c27358e.tar.bz2
build: indicate which hash functions are used at end of ./configure
* NEWS: Mention the change (and the link fix from previous commit). * configure.ac: Print 'internal' or 'external' based on $LIB_CRYPTO.
-rw-r--r--NEWS13
-rw-r--r--configure.ac10
2 files changed, 23 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9ee1cbf..494c55d 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,19 @@
New option: --output-delimiter=X overrides -t/-W.
+** Bug fixes
+
+ Datamash now builds correctly with external OpenSSL libraries
+ (./configure --with-openssl=yes). The 'configure' script now reports
+ whether internal or external libraries are used:
+
+ $ ./configure [OPTIONS]
+ [...]
+ Configuration summary for datamash
+ md5/sha*: internal (gnulib)
+ OR
+ md5/sha*: external (-lcrypto)
+
* Noteworthy changes in release 1.2 (2017-08-22) [stable]
diff --git a/configure.ac b/configure.ac
index 2f82e0d..b0b3908 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,6 +185,16 @@ AC_MSG_RESULT([ COMPILER: $CC])
AC_MSG_RESULT([ CFLAGS: $CFLAGS $WARN_CFLAGS $MINGW_CFLAGS])
AC_MSG_RESULT([ CPPFLAGS: $CPPFLAGS])
AC_MSG_RESULT([ LDFLAGS: $LDFLAGS])
+
+# Show which sha* implementation is used
+# for hash functions (md5/sha*)
+if test "x$LIB_CRYPTO" = x ; then
+ lib_crypto_desc="internal (gnulib)"
+else
+ lib_crypto_desc="external ($LIB_CRYPTO)"
+fi
+AC_MSG_RESULT([ md5/sha*: $lib_crypto_desc])
+
AC_MSG_RESULT([])
AC_MSG_RESULT([ Default installation directories:])
AC_MSG_RESULT([ program: ${prefix}/bin/ ])