From: Bruno Prémont Date: Tue, 10 Jul 2007 21:30:57 +0000 (+0200) Subject: configure.in: Use the custom CFLAGS and LDFLAGS when testing for the upsclient library. X-Git-Tag: collectd-4.1.0~34 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8583b0d30a4f34a59914f3d1fe8ef82b0e399855;p=collectd.git configure.in: Use the custom CFLAGS and LDFLAGS when testing for the upsclient library. --- diff --git a/configure.in b/configure.in index 0772a9b9..5b3a54a6 100644 --- a/configure.in +++ b/configure.in @@ -1256,6 +1256,10 @@ then fi if test "x$with_libupsclient" = "xyes" then + CFLAGS_ORIG=$CFLAGS + CFLAGS="$CFLAGS $with_upsclient_cflags" + LDFLAGS_ORIG=$LDFLAGS + LDFLAGS="$LDFLAGS $with_upsclient_libs" AC_CHECK_LIB(upsclient, upscli_connect, [ BUILD_WITH_LIBUPSCLIENT_CFLAGS="$with_upsclient_cflags" @@ -1266,6 +1270,8 @@ then [ with_libupsclient="no" ]) + CFLAGS=$CFLAGS_ORIG + LDFLAGS=$LDFLAGS_ORIG fi if test "x$with_libupsclient" = "xyes" then