diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-01-14 21:40:40 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-01-14 21:40:40 +0100 |
commit | b625a9423cd74481a77f816adae37db2515f4307 (patch) | |
tree | 33211524a3963934f3fc4de133785c6ea6aa5e3b /configure.ac | |
parent | a065a7a25209c92425480fa90f9c5545e3fe0350 (diff) | |
parent | f875d640b628e5e88fd63f9b51121c90c0c1122b (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index edbf6f2..480de2d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(ipmiutil,3.0.7) +AC_INIT(ipmiutil,3.0.8) AC_CONFIG_SRCDIR(util/ipmiutil.c) echo "ipmiutil version ${PACKAGE_VERSION}" AC_CONFIG_HEADERS(config.h) @@ -342,6 +342,17 @@ else echo "ok, suppress excess warnings" fi rm -f $tmpc $tmpo >/dev/null 2>&1 + echo $ECHO_N "checking strict aliasing warning flags ... $ECHO_C" + cfalias="-fno-strict-aliasing" + echo "int main() { return(1); }" >$tmpc + $CC -o $tmpo -c $cfalias $tmpc >/dev/null 2>&1 + if test $? -ne 0 ; then + cfalias= + echo "skip" + else + echo "ok, suppress aliasing warnings" + fi + rm -f $tmpc $tmpo >/dev/null 2>&1 echo $ECHO_N "checking compile fortify flags ... $ECHO_C" cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" echo "int main() { alloca(100); return(1); }" >$tmpc @@ -405,16 +416,19 @@ else sed -i 's/# Default-Stop:/# Default-Stop: 0 1 2 6/' $init_scripts fi # The openssl rpm might not be installed + sslver="" which rpm >/dev/null 2>&1 if test $? -eq 0 ; then sslver=`rpm -q openssl-devel |cut -f3 -d'-' |cut -f1-2 -d'.'` - else - sslver=`openssl version |awk '{ print $2 }'|cut -f1-2 -d'.'` - fi + fi + if test "$sslver" = ""; then + sslver=`openssl version |awk '{ print $2 }'|cut -f1-2 -d'.'` + fi if test "$sslver" = "1.1"; then echo "Detected openssl-$sslver" MD2_CFLAGS="-DSKIP_MD2 -DSSL11" else + echo "Detected openssl-$sslver" if test -f "$LIB_DIR/libcrypto.so"; then strings $LIB_DIR/libcrypto.so | grep EVP_md2 >/dev/null 2>&1 if test $? -ne 0; then @@ -426,7 +440,7 @@ else MD2_CFLAGS="-DSKIP_MD2" fi fi - OS_CFLAGS="-DLINUX $MD2_CFLAGS -fPIC $cfwarn $cfgnu $cfhard" + OS_CFLAGS="-DLINUX $MD2_CFLAGS -fPIC $cfwarn $cfgnu $cfalias $cfhard" else macos=1 # =1 means not mac # usually "x$sysname" = "xFreeBSD", but allow NetBSD |