]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
AST_DEVMODE was defined in trunk, but not in 1.4. When Asterisk is compiled
authorRussell Bryant <russell@russellbryant.com>
Thu, 26 Jul 2007 21:23:23 +0000 (21:23 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 26 Jul 2007 21:23:23 +0000 (21:23 +0000)
under dev mode, AST_DEVMODE will get defined in buildopts.h.  Change 1.4 to
define it in the same way that trunk does.  Also, revert the change that added
this define in the Makefile

The advantage to doing it this way is that buildopts.h gets installed when
you install Asterisk.  Then, when building any out of tree modules, or
building asterisk-addons, these modules know which options the rest of Asterisk
was built with.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77410 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
build_tools/make_buildopts_h

index a5d8eae86616abb0c4f0117b5889d4ba98fd3ac3..fb8466a35bdc6e4a3ecae89dc12a1ebdc9ddd7bf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -192,7 +192,7 @@ ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declar
 ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
 
 ifeq ($(AST_DEVMODE),yes)
-  ASTCFLAGS+=-Werror  -Wunused $(AST_DECLARATION_AFTER_STATEMENT) -DAST_DEVMODE
+  ASTCFLAGS+=-Werror  -Wunused $(AST_DECLARATION_AFTER_STATEMENT)
 endif
 
 ifneq ($(findstring BSD,$(OSARCH)),)
index 9970c0c0bab27ac2e0f50a3aa4ce2c5b227fd6f2..6993e708318cc834632ea202e5276bed07e5af35 100755 (executable)
@@ -11,3 +11,7 @@ TMP=`grep MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g'
 for x in ${TMP}; do
      echo "#define ${x} 1"
 done
+if grep AST_DEVMODE makeopts | grep -q yes
+then
+       echo "#define AST_DEVMODE 1"
+fi