[Drbd-dev] [drbd][PATCH 1/2] build: escape CC environment variable

Federico Simoncelli fsimonce at redhat.com
Tue Sep 13 10:48:59 CEST 2011


This will allow to set CC to multiple commands; useful if you want to
use ccache: export CC="ccache gcc"
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e3ab808..724b03f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,7 +130,7 @@ AC_PATH_PROG(DPKG_BUILDPACKAGE, dpkg-buildpackage)
 AC_PATH_PROG(UDEVADM, udevadm, [false], [/sbin$PATH_SEPARATOR$PATH])
 AC_PATH_PROG(UDEVINFO, udevinfo, [false], [/sbin$PATH_SEPARATOR$PATH])
 
-if test -z $CC; then
+if test -z "$CC"; then
    if test "$WITH_UTILS" = "yes"; then
       AC_MSG_ERROR([Cannot build utils without a C compiler, either install a compiler or pass the --without-utils option.])
    fi 
-- 
1.7.1



More information about the drbd-dev mailing list