From: Neal Norwitz Date: Wed, 25 Sep 2002 20:35:57 +0000 (+0000) Subject: Fix SF # 614587, configure.in patch from Tim Rice X-Git-Tag: v2.2.2b1~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=979de98182a78fadb67b3c151eee81f48b821281;p=thirdparty%2FPython%2Fcpython.git Fix SF # 614587, configure.in patch from Tim Rice Need to quote $GCC in case it isn't set. --- diff --git a/configure b/configure index 6f1df7820974..c8047edab322 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.288.6.7 +# From configure.in Revision: 1.288.6.8 # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 @@ -1664,7 +1664,7 @@ fi if test -z "$OPT" then - case $GCC in + case "$GCC" in yes) case $ac_cv_prog_cc_g in yes) @@ -1996,7 +1996,7 @@ fi # some of the headers (Redhat 6 if kernel headers don't match glibc # headers). Thus, disable warnings. This can go away if autoconf 2.50 # is used, since it considers the gcc status to determine errors. -if test $GCC = yes +if test "$GCC" = yes then CPPFLAGS_save=$CPPFLAGS CPPFLAGS="$CPPFLAGS -w" @@ -2049,7 +2049,7 @@ fi done -if test $GCC = yes +if test "$GCC" = yes then CPPFLAGS=$CPPFLAGS_save fi diff --git a/configure.in b/configure.in index d997e0c7debe..547908ef5ec6 100644 --- a/configure.in +++ b/configure.in @@ -373,7 +373,7 @@ fi], AC_SUBST(OPT) if test -z "$OPT" then - case $GCC in + case "$GCC" in yes) case $ac_cv_prog_cc_g in yes) @@ -526,7 +526,7 @@ AC_HEADER_STDC # some of the headers (Redhat 6 if kernel headers don't match glibc # headers). Thus, disable warnings. This can go away if autoconf 2.50 # is used, since it considers the gcc status to determine errors. -if test $GCC = yes +if test "$GCC" = yes then CPPFLAGS_save=$CPPFLAGS CPPFLAGS="$CPPFLAGS -w" @@ -540,7 +540,7 @@ sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h) -if test $GCC = yes +if test "$GCC" = yes then CPPFLAGS=$CPPFLAGS_save fi