Add support for a new "--with-cppopts" value where you can put -DXXXXX
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Nov 1994 02:03:10 +0000 (02:03 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Nov 1994 02:03:10 +0000 (02:03 +0000)
such that they are found by autoconf tests that use run the
preprocessor over header files.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4615 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 85e83c6bb02e27fa9fcb8013117d9e1cb5ff61ca..34773357d76d442e211cfafc2aa5bf8a583dcbec 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov  2 20:39:14 1994  Theodore Y. Ts'o  (tytso@dcl)
+
+       * aclocal.m4 (CONFIG_RULES, WITH_CPPOPTS): Add support for a new
+               "--with-cppopts" value where you can put -DXXXXX such that
+               they are found by autoconf tests that use run the
+               preprocessor over header files.
+
 Sat Oct 22 13:25:18 1994    (tytso@rsx-11)
 
        * aclocal.m4 (CopyHeader): Remove header file from include
index 30178a185e8e30d1658cc8aef78258a885a9e48b..3c4bff18c3526bf8643643ca5c571c290a4ce880 100644 (file)
@@ -101,7 +101,8 @@ $2::<<<
        for i in $(SUBDIRS) ;\
        do \
                (cd $$i ; echo>>> $1 <<<"in $(CURRENT_DIR)$$i..."; \
-                       $(MAKE) $(MFLAGS) CCOPTS="$(CCOPTS)" CC="$(CC)" \
+                       $(MAKE) $(MFLAGS) CC="$(CC)" \
+                       CPPOPTS="$(CPPOPTS)" CCOPTS="$(CCOPTS)" \
                        CURRENT_DIR=$(CURRENT_DIR)$$i/ >>>$2<<<); \
        done>>>
 changequote([,])dnl
@@ -139,6 +140,7 @@ dnl drop in standard configure rebuild rules -- CONFIG_RULES
 dnl
 define(CONFIG_RULES,[
 WITH_CC dnl
+WITH_CPPOPTS dnl
 AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 [
 SHELL=/bin/sh
@@ -289,6 +291,16 @@ CFLAGS="$CFLAGS $withval",
 CCOPTS=)dnl
 AC_SUBST(CCOPTS)])dnl
 dnl
+dnl set $(CPPOPTS) from --with-cppopts=value
+dnl
+define(WITH_CPPOPTS,[
+AC_ARG_WITH([cppopts],[select compiler preprocessor command line options],
+echo CPPOPTS=$withval
+CPPOPTS=$withval
+CPPFLAGS="$CPPFLAGS $withval",
+echo CPPOPTS defaults to $CPPOPTS)dnl
+AC_SUBST(CPPOPTS)])dnl
+dnl
 dnl Imake LinkFile rule, so they occur in the right place -- LinkFile(dst,src)
 dnl
 define(LinkFile,[