Skip to content

Commit db72c18

Browse files
author
kiwigb
committed
Add autoreconf warnings. Replace obsolete AC_TRY_COMPILE.
Remove redundant checks (already done by LT_INIT).
1 parent ef6f677 commit db72c18

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

autogen.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/sh
2-
autoreconf -if
2+
set -e
3+
autoreconf -if --warnings=all

configure.ac

+3-7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ LT_INIT
1212
dnl make the compilation flags quiet unless V=1 is used
1313
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
1414

15-
AC_PROG_CC
16-
AC_PROG_CPP
17-
AC_PROG_INSTALL
18-
AC_PROG_SED
1915
PKG_PROG_PKG_CONFIG
2016

2117
AC_PATH_TOOL(AR, ar)
@@ -130,15 +126,15 @@ else
130126
fi
131127
if test x"$has_libcrypto" == x"yes" && test x"$has_openssl_ec" = x; then
132128
AC_MSG_CHECKING(for EC functions in libcrypto)
133-
AC_TRY_COMPILE([
129+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
134130
#include <openssl/ec.h>
135131
#include <openssl/ecdsa.h>
136-
#include <openssl/obj_mac.h>],[
132+
#include <openssl/obj_mac.h>]],[[
137133
EC_KEY *eckey = EC_KEY_new_by_curve_name(NID_secp256k1);
138134
ECDSA_sign(0, NULL, 0, NULL, NULL, eckey);
139135
ECDSA_verify(0, NULL, 0, NULL, 0, eckey);
140136
EC_KEY_free(eckey);
141-
],[has_openssl_ec=yes], [has_openssl_ec=no])
137+
]])],[has_openssl_ec=yes],[has_openssl_ec=no])
142138
AC_MSG_RESULT([$has_openssl_ec])
143139
fi
144140
])

0 commit comments

Comments
 (0)