diff options
author | Marcus Brinkmann <[email protected]> | 2004-09-14 17:14:48 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2004-09-14 17:14:48 +0000 |
commit | 7c98030d77903262777ce147ba1961f41d1fc693 (patch) | |
tree | cc2920de121004e5212e463c71d719c683801cde | |
parent | post release version bumb (diff) | |
download | libgpg-error-7c98030d77903262777ce147ba1961f41d1fc693.tar.gz libgpg-error-7c98030d77903262777ce147ba1961f41d1fc693.zip |
2004-09-14 Marcus Brinkmann <[email protected]>
* configure.ac: Call AC_CANONICAL_HOST. Suppress warning about
lack of strerror_r on all Solaris platforms.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 16 |
2 files changed, 19 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2004-09-14 Marcus Brinkmann <[email protected]> + + * configure.ac: Call AC_CANONICAL_HOST. Suppress warning about + lack of strerror_r on all Solaris platforms. + 2004-07-30 Werner Koch <[email protected]> Released 1.0. diff --git a/configure.ac b/configure.ac index 0c27535..39863ba 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,10 @@ AM_MAINTAINER_MODE AC_CONFIG_SRCDIR([src/err-sources.h.in]) AC_CONFIG_HEADER([config.h]) +# We need to know about the host architecture to avoid spurious +# warnings. +AC_CANONICAL_HOST + # Checks for programs. AC_PROG_CC AC_PROG_CPP @@ -71,8 +75,16 @@ AM_GNU_GETTEXT([external]) AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h]) AC_FUNC_STRERROR_R -AC_CHECK_FUNC([strerror_r], [], - AC_MSG_WARN([[Without strerror_r, gpg_strerror_r might not be thread-safe]])) +case "${host_os}" in + solaris*) + # All versions of Solaris from 2.4 have a thread-safe strerror(). + # Since Solaris 10, in addition strerror_r() exists. + ;; + *) + AC_CHECK_FUNC([strerror_r], [], +AC_MSG_WARN([[Without strerror_r, gpg_strerror_r might not be thread-safe]])) + ;; +esac # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST |