From b9c0addf882e074d3072a98bf2358d78c7169b5c Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Mon, 29 Mar 2021 20:21:23 -0600 Subject: [PATCH] update configure.ac to be less noisy Signed-off-by: Philip Prindeville --- configure.ac | 10 ++++------ src/common/simclist.c | 2 ++ src/pkcs11/pkcs11-spy.c | 2 ++ src/pkcs15init/pkcs15-lib.c | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 908481a8..2f83b477 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl -*- mode: m4; -*- -AC_PREREQ(2.60) +AC_PREREQ(2.68) define([PRODUCT_NAME], [OpenSC]) define([PRODUCT_TARNAME], [opensc]) @@ -188,7 +188,7 @@ AC_ARG_ENABLE( ) AC_ARG_ENABLE([openssl-secure-malloc], - [AC_HELP_STRING([--openssl-secure-malloc=], + [AS_HELP_STRING([--openssl-secure-malloc=], [Enable OpenSSL secure memory by specifying its size in bytes, must be a power of 2 @<:@disabled@:>@])], [], [enable_openssl_secure_malloc=no]) AS_IF([test $enable_openssl_secure_malloc != no], @@ -394,7 +394,6 @@ dnl C Compiler features AC_C_INLINE dnl Checks for header files. -AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_ASSERT AC_CHECK_HEADERS([ \ @@ -408,7 +407,6 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_UID_T AC_TYPE_SIZE_T -AC_HEADER_TIME dnl Checks for library functions. AC_FUNC_ERROR_AT_LINE @@ -729,7 +727,7 @@ LIBS="$saved_LIBS" AC_ARG_ENABLE(cvcdir, - AC_HELP_STRING([--enable-cvcdir=DIR], + AS_HELP_STRING([--enable-cvcdir=DIR], [directory containing CV certificates (default is determined by libeac)]), [cvcdir="${enableval}"], [cvcdir=false]) @@ -751,7 +749,7 @@ AC_SUBST(CVCDIR) AC_DEFINE_UNQUOTED([CVCDIR], ["${CVCDIR}"], [CVC directory]) AC_ARG_ENABLE(x509dir, - AC_HELP_STRING([--enable-x509dir=DIR], + AS_HELP_STRING([--enable-x509dir=DIR], [directory containing X.509 certificates (default is determined by libeac)]), [x509dir="${enableval}"], [x509dir=false]) diff --git a/src/common/simclist.c b/src/common/simclist.c index a5da703f..11a9254f 100644 --- a/src/common/simclist.c +++ b/src/common/simclist.c @@ -28,7 +28,9 @@ #if !defined(_WIN32) #include /* for htons() */ #include +#ifdef HAVE_SYS_TIME_H #include /* for gettimeofday() */ +#endif #include #else #include diff --git a/src/pkcs11/pkcs11-spy.c b/src/pkcs11/pkcs11-spy.c index 35042460..c03418b3 100644 --- a/src/pkcs11/pkcs11-spy.c +++ b/src/pkcs11/pkcs11-spy.c @@ -28,7 +28,9 @@ #include #include #else +#ifdef HAVE_SYS_TIME_H #include +#endif #include #endif diff --git a/src/pkcs15init/pkcs15-lib.c b/src/pkcs15init/pkcs15-lib.c index b2322bc3..1269bd9c 100644 --- a/src/pkcs15init/pkcs15-lib.c +++ b/src/pkcs15init/pkcs15-lib.c @@ -38,7 +38,7 @@ #include #include #include -#ifdef HAVE_GETTIMEOFDAY +#ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_STRINGS_H