update configure.ac to be less noisy

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville 2021-03-29 20:21:23 -06:00 committed by Frank Morgner
parent c3c5f2d518
commit b9c0addf88
4 changed files with 9 additions and 7 deletions

View File

@ -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=<SIZE_IN_BYTES>],
[AS_HELP_STRING([--openssl-secure-malloc=<SIZE_IN_BYTES>],
[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])

View File

@ -28,7 +28,9 @@
#if !defined(_WIN32)
#include <arpa/inet.h> /* for htons() */
#include <unistd.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> /* for gettimeofday() */
#endif
#include <stdint.h>
#else
#include <winsock2.h>

View File

@ -28,7 +28,9 @@
#include <winreg.h>
#include <limits.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <time.h>
#endif

View File

@ -38,7 +38,7 @@
#include <string.h>
#include <limits.h>
#include <time.h>
#ifdef HAVE_GETTIMEOFDAY
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_STRINGS_H