summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-04 20:20:00 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-04 20:20:00 +0000
commit840e03e43ad697cd30c1848b0d556dbf1362ae8a (patch)
tree831e8f196f2641e7c238f6a51f6ac10d185f3439 /configure1.in
parent38bf9c9c6c7c06a20ef413d4cb6b367e98a0811c (diff)
downloademacs-840e03e43ad697cd30c1848b0d556dbf1362ae8a.tar.gz
(Using NON_GNU_CPP): Don't lose if it has spaces.
If CPP was inherited from environment, don't use NON_GNU_CPP. (NON_GNU_CC): Likewise. (handling with_gcc): Use explicit if in the `no' case. (cc_specified): New variable; if set, don't use NON_GNU_CC.
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in17
1 files changed, 13 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in
index c2780e1d012..b440aa07afd 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1046,9 +1046,18 @@ AC_CONFIG_HEADER(src/config.h)
[
#### Choose a compiler.
+if [ "x$CC" = x ]
+then cc_specified=1
+fi
+
case ${with_gcc} in
"yes" ) CC="gcc" GCC=1 ;;
- "no" ) CC=${CC:-"cc"} ;;
+ "no" )
+ if [ "x$CC" = x ]
+ then true;
+ else CC=cc;
+ fi
+ ;;
* )
] AC_PROG_CC [
esac
@@ -1056,7 +1065,7 @@ esac
#### Some systems specify a CPP to use unless we are using GCC.
#### Now that we know whether we are using GCC, we can decide whether
#### to use that one.
-if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ]
+if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" = x ]
then true
else
CPP="$NON_GNU_CPP"
@@ -1065,10 +1074,10 @@ fi
#### Some systems specify a CC to use unless we are using GCC.
#### Now that we know whether we are using GCC, we can decide whether
#### to use that one.
-if [ x$NON_GNU_CC = x ] || [ x$GCC = x1 ]
+if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
then true
else
- CC=$NON_GNU_CC
+ CC="$NON_GNU_CC"
fi
#### Some other nice autoconf tests. If you add a test here which