From 4e38f3c9aecfaddb70a55659be83689849e21d9a Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 3 Nov 1994 02:03:10 +0000 Subject: [PATCH] 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4615 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 7 +++++++ src/aclocal.m4 | 14 +++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 85e83c6bb..34773357d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 30178a185..3c4bff18c 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -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,[ -- 2.26.2