Code

rrdtool check: no need to save CPPFLAGS
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 13:03:03 +0000 (15:03 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 10 May 2016 09:25:42 +0000 (11:25 +0200)
There's no need to save CPPFLAGS when we're just
checking a library.

(cherry picked from commit f7e09269879b74e61324de9178503221b2df9136)

configure.ac

index c4fe39acf92f6694d2463cf248883e8167bb95b1..72eb3fdc993daa2474d5707ca9c2ef505aa03877 100644 (file)
@@ -3832,10 +3832,7 @@ then
 fi
 if test "x$with_librrd" = "xyes"
 then
-       SAVE_CPPFLAGS="$CPPFLAGS"
        SAVE_LDFLAGS="$LDFLAGS"
-
-       CPPFLAGS="$CPPFLAGS $librrd_cflags"
        LDFLAGS="$LDFLAGS $librrd_ldflags"
 
        AC_CHECK_LIB(rrd_th, rrd_update_r,
@@ -3859,7 +3856,6 @@ then
                AC_CHECK_LIB(rrd, rrdc_update, [librrd_rrdc_update="yes"], [librrd_rrdc_update="no"])
        fi
 
-       CPPFLAGS="$SAVE_CPPFLAGS"
        LDFLAGS="$SAVE_LDFLAGS"
 fi
 if test "x$with_librrd" = "xyes"