From fa13a8485ce07aecfbfa481baccfc33565f0be0d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 20 May 2015 16:57:33 -0400 Subject: Add csprng and hash modules. Add real error codes instead of magic numbers, and propegate error codes up from lower layers. Whack C++-isms, add parenthesese to a lot of macro expressions for evaluation safety, other minor cleanup. --- configure.ac | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 43db468..07cd236 100644 --- a/configure.ac +++ b/configure.ac @@ -17,23 +17,13 @@ AC_ARG_VAR([CC], [C compiler command]) AC_ARG_VAR([CFLAGS], [C compiler flags]) AC_ARG_VAR([LDFLAGS], [Linker flags]) -AS_CASE($FPGA_BUS, - [""],[FPGA_BUS=EIM], - [EIM|I2C],[], +AS_CASE($FPGA_BUS, [""],[FPGA_BUS=EIM], [EIM|I2C],[], [AC_MSG_ERROR([Invalid setting of FPGA_BUS, must be "EIM" or "I2C"])]) - -AS_CASE($CC, - [""],[CC="cc"], - []) - -AS_CASE($CFLAGS, - [""],[CFLAGS="-g -Wall -fPIC"], - []) - -AS_CASE($LDFLAGS, - [""],[LDFLAGS="-g"], - []) +AS_CASE($CC, [""],[CC="cc"], []) +AS_CASE($CFLAGS, [""],[CFLAGS="-g -Wall -fPIC"], []) +AS_CASE($LDFLAGS, [""],[LDFLAGS="-g"], []) + AC_MSG_NOTICE([FPGA bus: $FPGA_BUS]) AC_MSG_NOTICE([C compiler: $CC]) AC_MSG_NOTICE([C compiler flags: $CFLAGS]) -- cgit v1.2.3