unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* using autoconf for lib-src/Makefile.in
@ 2008-08-02  4:43 Dan Nicolaescu
  2008-08-02  5:11 ` Chong Yidong
  2008-08-03  5:45 ` Miles Bader
  0 siblings, 2 replies; 12+ messages in thread
From: Dan Nicolaescu @ 2008-08-02  4:43 UTC (permalink / raw)
  To: emacs-devel


The use of the C preprocessor on the Makefiles is not ideal.

It seems that the number of #ifdefs in lib-src/Makefile.in is not too
high, and there's enough infrastructure in configure.in in place to make
it feasible to replace the use of the preprocessor.

This patch gets rid of the C_SWITCH_SYSTEM #ifdef.  It seems to work
fine on x86 Fedora.

Is this TRTD?


--- Makefile.in.~1.167.~	2008-07-21 11:34:27.000000000 -0700
+++ Makefile.in	2008-08-01 14:49:50.000000000 -0700
@@ -161,10 +161,6 @@ INSTALLABLES = etags${EXEEXT} ctags${EXE
 #define LIBS_MACHINE
 #endif
 
-#ifndef C_SWITCH_SYSTEM
-#define C_SWITCH_SYSTEM
-#endif
-
 #ifndef C_SWITCH_MACHINE
 #define C_SWITCH_MACHINE
 #endif
@@ -237,16 +233,16 @@ LOADLIBES=LIBS_SYSTEM LIBS_MACHINE
    Some other files - those shared with other GNU utilities - need
    HAVE_CONFIG_H #defined before they know they can take advantage of
    the information in ../src/config.h.  */
-ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
+ALL_CFLAGS = @c_switch_system@ C_SWITCH_MACHINE -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
-LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
+LINK_CFLAGS = @c_switch_system@ C_SWITCH_MACHINE -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
-CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
+CPP_CFLAGS = @c_switch_system@ C_SWITCH_MACHINE -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
 /* This was all of CPP_CFLAGS except -Demacs.
    Now that -Demacs has been deleted from CPP_CFLAGS,
    this is actually the same as CPP_CFLAGS, but let\'s not delete it yet.  */
-BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
+BASE_CFLAGS = @c_switch_system@ C_SWITCH_MACHINE -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
 \f
 .SUFFIXES: .m




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-08-07 19:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02  4:43 using autoconf for lib-src/Makefile.in Dan Nicolaescu
2008-08-02  5:11 ` Chong Yidong
2008-08-02  6:48   ` Dan Nicolaescu
2008-08-04 19:00     ` Stefan Monnier
2008-08-07 17:33       ` Dan Nicolaescu
2008-08-07 19:31         ` Stefan Monnier
2008-08-03  5:45 ` Miles Bader
2008-08-04  1:12   ` Dan Nicolaescu
2008-08-04  5:28     ` Miles Bader
2008-08-04  6:16       ` Dan Nicolaescu
2008-08-04 10:21         ` Miles Bader
2008-08-04 11:55           ` Dan Nicolaescu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).