diff options
| author | Richard M. Stallman | 1994-02-04 20:20:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-04 20:20:00 +0000 |
| commit | 63041661ee705febae4a69adeafbf986517da9db (patch) | |
| tree | 6db6d515eec2630e70c519b8a973c94c1a272f7b | |
| parent | 1d66a5fabb82754741e449ed0cd7ce2bfbac6ba4 (diff) | |
| download | emacs-63041661ee705febae4a69adeafbf986517da9db.tar.gz emacs-63041661ee705febae4a69adeafbf986517da9db.zip | |
(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.
| -rwxr-xr-x | configure1.in | 17 |
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) | |||
| 1046 | [ | 1046 | [ |
| 1047 | 1047 | ||
| 1048 | #### Choose a compiler. | 1048 | #### Choose a compiler. |
| 1049 | if [ "x$CC" = x ] | ||
| 1050 | then cc_specified=1 | ||
| 1051 | fi | ||
| 1052 | |||
| 1049 | case ${with_gcc} in | 1053 | case ${with_gcc} in |
| 1050 | "yes" ) CC="gcc" GCC=1 ;; | 1054 | "yes" ) CC="gcc" GCC=1 ;; |
| 1051 | "no" ) CC=${CC:-"cc"} ;; | 1055 | "no" ) |
| 1056 | if [ "x$CC" = x ] | ||
| 1057 | then true; | ||
| 1058 | else CC=cc; | ||
| 1059 | fi | ||
| 1060 | ;; | ||
| 1052 | * ) | 1061 | * ) |
| 1053 | ] AC_PROG_CC [ | 1062 | ] AC_PROG_CC [ |
| 1054 | esac | 1063 | esac |
| @@ -1056,7 +1065,7 @@ esac | |||
| 1056 | #### Some systems specify a CPP to use unless we are using GCC. | 1065 | #### Some systems specify a CPP to use unless we are using GCC. |
| 1057 | #### Now that we know whether we are using GCC, we can decide whether | 1066 | #### Now that we know whether we are using GCC, we can decide whether |
| 1058 | #### to use that one. | 1067 | #### to use that one. |
| 1059 | if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] | 1068 | if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ] || [ "x$CPP" = x ] |
| 1060 | then true | 1069 | then true |
| 1061 | else | 1070 | else |
| 1062 | CPP="$NON_GNU_CPP" | 1071 | CPP="$NON_GNU_CPP" |
| @@ -1065,10 +1074,10 @@ fi | |||
| 1065 | #### Some systems specify a CC to use unless we are using GCC. | 1074 | #### Some systems specify a CC to use unless we are using GCC. |
| 1066 | #### Now that we know whether we are using GCC, we can decide whether | 1075 | #### Now that we know whether we are using GCC, we can decide whether |
| 1067 | #### to use that one. | 1076 | #### to use that one. |
| 1068 | if [ x$NON_GNU_CC = x ] || [ x$GCC = x1 ] | 1077 | if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ] |
| 1069 | then true | 1078 | then true |
| 1070 | else | 1079 | else |
| 1071 | CC=$NON_GNU_CC | 1080 | CC="$NON_GNU_CC" |
| 1072 | fi | 1081 | fi |
| 1073 | 1082 | ||
| 1074 | #### Some other nice autoconf tests. If you add a test here which | 1083 | #### Some other nice autoconf tests. If you add a test here which |