Mercurial > emacs
comparison configure.in @ 36353:f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
converts `..' to `. .'. If it converts, set CPP_NEED_TRADITIONAL
to `yes'. Later in AC_OUTPUT, check this variable.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 23 Feb 2001 13:31:40 +0000 |
parents | f67ec8c72036 |
children | 0c5978b5eb3a |
comparison
equal
deleted
inserted
replaced
36352:a2d558c2b733 | 36353:f98c16e68579 |
---|---|
2230 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 2230 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
2231 test "${exec_prefix}" != NONE && | 2231 test "${exec_prefix}" != NONE && |
2232 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 2232 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
2233 changequote([, ])dnl | 2233 changequote([, ])dnl |
2234 | 2234 |
2235 ## Check if the C preprocessor will convert `..' to `. .'. If so, set | |
2236 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
2237 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
2238 ## C preprocessor. | |
2239 | |
2240 AC_EGREP_CPP(yes..yes, | |
2241 [yes..yes], | |
2242 CPP_NEED_TRADITIONAL=no, | |
2243 CPP_NEED_TRADITIONAL=yes) | |
2244 | |
2235 AC_OUTPUT(Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | 2245 AC_OUTPUT(Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ |
2236 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | 2246 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ |
2237 lisp/Makefile leim/Makefile, [ | 2247 lisp/Makefile leim/Makefile, [ |
2238 | 2248 |
2239 ### Make the necessary directories, if they don't exist. | 2249 ### Make the necessary directories, if they don't exist. |
2262 make epaths-force | 2272 make epaths-force |
2263 | 2273 |
2264 # As of 2000-11-19, newest development versions of GNU cpp preprocess | 2274 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
2265 # `..' to `. .' unless invoked with -traditional | 2275 # `..' to `. .' unless invoked with -traditional |
2266 | 2276 |
2267 if test "x$GCC" = xyes && test "x$NON_GNU_CPP" = x; then | 2277 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
2268 CPPFLAGS="$CPPFLAGS -traditional" | 2278 CPPFLAGS="$CPPFLAGS -traditional" |
2269 fi | 2279 fi |
2270 | 2280 |
2271 echo creating lib-src/Makefile | 2281 echo creating lib-src/Makefile |
2272 ( cd lib-src | 2282 ( cd lib-src |
2306 fi | 2316 fi |
2307 | 2317 |
2308 # This is how we know whether to re-run configure in certain cases. | 2318 # This is how we know whether to re-run configure in certain cases. |
2309 touch src/config.stamp | 2319 touch src/config.stamp |
2310 | 2320 |
2311 ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) | 2321 ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"]) |
2312 | 2322 |