aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorGlenn Morris2010-05-26 22:43:27 -0700
committerGlenn Morris2010-05-26 22:43:27 -0700
commit81ac4f35366bfc525fa6ed89e0b5aaa90a05c902 (patch)
treee77b927e7e5fcf2d0ac05bcacb13baa10ed4b285 /configure
parent11e4d8c0d35ec52819d5ce11176fc1f53b9890e0 (diff)
downloademacs-81ac4f35366bfc525fa6ed89e0b5aaa90a05c902.tar.gz
emacs-81ac4f35366bfc525fa6ed89e0b5aaa90a05c902.zip
Do not preprocess src/Makefile.in.
* configure.in: Do not preprocess src/Makefile.in. (cpp_undefs, CPP_NEED_TRADITIONAL): Remove. (AC_EGREP_CPP): Test no longer needed. * configure: Regenerate. * config.bat: Do not preprocess src/Makefile.in. * make-dist: No more Makefile.c files. * INSTALL, src/README: Makefiles are not preprocessed. * src/Makefile.in, src/autodeps.mk, src/deps.mk, src/ns.mk: Convert comments to Makefile format. * lib-src/Makefile.in (distclean): No more Makefile.c. * src/Makefile.in (bootstrap-clean): No more Makefile.c. * admin/notes/cpp: Remove file. * admin/quick-install-emacs (AVOID): No more Makefile.c files. * etc/PROBLEMS, etc/MACHINES: Remove details of cpp problems which can no longer occur.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure75
1 files changed, 7 insertions, 68 deletions
diff --git a/configure b/configure
index 7895df600a2..3f8ebffc6ee 100755
--- a/configure
+++ b/configure
@@ -26694,15 +26694,15 @@ fi
26694 26694
26695 26695
26696test "x$LINKER" = "x" && LINKER=ld 26696test "x$LINKER" = "x" && LINKER=ld
26697## FIXME? What setting of YMF_PASS_LDFLAGS should this have? 26697## FIXME? What setting of EDIT_LDFLAGS should this have?
26698test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" 26698test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
26699 26699
26700 26700
26701 26701
26702 26702
26703## FIXME? The logic here is not precisely the same as that above 26703## FIXME? The logic here is not precisely the same as that above.
26704## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined 26704## There is no check here for a pre-defined LINKER.
26705## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib? 26705## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26706LIB_GCC= 26706LIB_GCC=
26707if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then 26707if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26708 26708
@@ -26848,42 +26848,7 @@ test "${prefix}" != NONE &&
26848test "${exec_prefix}" != NONE && 26848test "${exec_prefix}" != NONE &&
26849 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 26849 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26850 26850
26851# Now get this: Some word that is part of the ${srcdir} directory name 26851ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
26852# or the ${configuration} value might, just might, happen to be an
26853# identifier like `sun4' or `i386' or something, and be predefined by
26854# the C preprocessor to some helpful value like 1, or maybe the empty
26855# string. Needless to say consequent macro substitutions are less
26856# than conducive to the makefile finding the correct directory.
26857# src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26858# But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26859# so that cannot have been doing anything.
26860cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26861 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26862 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26863
26864## Check if the C preprocessor will convert `..' to `. .'. If so, set
26865## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26866## from Makefile.c can correctly provide the arg `-traditional' to the
26867## C preprocessor.
26868
26869cat >conftest.$ac_ext <<_ACEOF
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
26875yes..yes
26876_ACEOF
26877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26878 $EGREP "yes..yes" >/dev/null 2>&1; then
26879 CPP_NEED_TRADITIONAL=no
26880else
26881 CPP_NEED_TRADITIONAL=yes
26882fi
26883rm -f conftest*
26884
26885
26886ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26887 26852
26888ac_config_commands="$ac_config_commands default" 26853ac_config_commands="$ac_config_commands default"
26889 26854
@@ -27470,7 +27435,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27470# 27435#
27471# INIT-COMMANDS 27436# INIT-COMMANDS
27472# 27437#
27473GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs" 27438GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
27474 27439
27475_ACEOF 27440_ACEOF
27476 27441
@@ -27488,7 +27453,7 @@ do
27488 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 27453 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27489 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; 27454 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27490 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; 27455 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27491 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; 27456 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27492 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 27457 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27493 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 27458 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27494 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 27459 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
@@ -28154,35 +28119,9 @@ for dir in etc lisp ; do
28154 test -d ${dir} || mkdir ${dir} 28119 test -d ${dir} || mkdir ${dir}
28155done 28120done
28156 28121
28157# Build src/Makefile from ${srcdir}/src/Makefile.c
28158# This must be done after src/config.h is built, since we rely on that file.
28159
28160echo creating src/epaths.h 28122echo creating src/epaths.h
28161${MAKE-make} epaths-force 28123${MAKE-make} epaths-force
28162 28124
28163# As of 2000-11-19, newest development versions of GNU cpp preprocess
28164# `..' to `. .' unless invoked with -traditional
28165
28166if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28167 CPPFLAGS="$CPPFLAGS -traditional"
28168fi
28169
28170echo creating src/Makefile
28171( cd src
28172 rm -f junk.c junk1.c junk2.c
28173 sed -e '/start of cpp stuff/q' \
28174 < Makefile.c > junk1.c
28175 sed -e '1,/start of cpp stuff/d'\
28176 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28177 < Makefile.c > junk.c
28178 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28179 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
28180 cat junk1.c junk2.c > Makefile.new
28181 rm -f junk.c junk1.c junk2.c
28182 chmod 444 Makefile.new
28183 mv -f Makefile.new Makefile
28184)
28185
28186if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then 28125if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28187 echo creating src/.gdbinit 28126 echo creating src/.gdbinit
28188 echo source $srcdir/src/.gdbinit > src/.gdbinit 28127 echo source $srcdir/src/.gdbinit > src/.gdbinit