From a794b6b7b3bf4151b80ac6a10a222d60953f3d18 Mon Sep 17 00:00:00 2001 From: Thanassis Tsiodras Date: Sun, 11 Dec 2022 17:44:22 +0100 Subject: [PATCH] Also, showcase automatically made #define USE_SSE --- Makefile.in | 1 - config.h.in | 3 +++ configure | 5 +++-- configure.ac | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 38b9520..16b17b1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -297,7 +297,6 @@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ -WHOLEPROGRAM = @WHOLEPROGRAM@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ diff --git a/config.h.in b/config.h.in index cff7354..f1f6c86 100644 --- a/config.h.in +++ b/config.h.in @@ -99,6 +99,9 @@ backward compatibility; new code need not use it. */ #undef STDC_HEADERS +/* Defined when SSE instructions are available. */ +#undef USE_SSE + /* Version number of package */ #undef VERSION diff --git a/configure b/configure index c45418d..9142c99 100755 --- a/configure +++ b/configure @@ -650,7 +650,6 @@ ac_header_cxx_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS -WHOLEPROGRAM CPP LIBOBJS ALLOCA @@ -8071,8 +8070,10 @@ case ".$var" in ;; esac -fi +printf "%s\n" "#define USE_SSE 1" >>confdefs.h + +fi # Drop any asserts CFLAGS="$CFLAGS -DNDEBUG" diff --git a/configure.ac b/configure.ac index a904110..cbc2d41 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,7 @@ AC_MSG_RESULT($HAVESSE) if test x"${HAVESSE}" = xyes ; then AX_CFLAGS_GCC_OPTION(-msse) AX_CXXFLAGS_GCC_OPTION(-msse) + AC_DEFINE([USE_SSE], 1, [Defined when SSE instructions are available.]) fi # Drop any asserts