From c02a7d57e68ffee83442a2cb50d5eebef6a9d09f Mon Sep 17 00:00:00 2001 From: Stefan Gehn Date: Sat, 23 Aug 2014 18:32:41 +0200 Subject: [PATCH] Unify logging and use of environment in configure scripts - Make the server configure script log the environment just like the configure script used for the client. - Honour the CFLAGS env var too since the other configure does the same --- server/configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/configure b/server/configure index 2997b57..eb94e27 100755 --- a/server/configure +++ b/server/configure @@ -16,10 +16,12 @@ done rm -f configure.h configure.log test test.o test.c touch configure.h +exec 5>./configure.log CC=${CC-gcc} -exec 5>./configure.log +echo "CC : ${CC}" 1>& 5 +echo "CFLAGS: ${CFLAGS}" 1>& 5 if [ "$without_libsensors" != "yes" ] then @@ -51,7 +53,7 @@ int main() } EOF -$CC -c test.c -o test.o 2>& 5 +$CC ${CFLAGS} -c test.c -o test.o 2>& 5 $CC test.o -o test -lsensors 2>& 5 if [ -x ./test ]