[svn-commits] trunk r22267 - in /trunk: ./ agi/ apps/ build_tools/ cdr/ channels/ channels/...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Apr 24 10:11:46 MST 2006


Author: kpfleming
Date: Mon Apr 24 12:11:45 2006
New Revision: 22267

URL: http://svn.digium.com/view/asterisk?rev=22267&view=rev
Log:
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!


Added:
    trunk/acinclude.m4   (with props)
    trunk/bootstrap.sh   (with props)
    trunk/build_tools/Makefile   (with props)
    trunk/build_tools/cflags.xml   (with props)
    trunk/build_tools/get_moduledeps   (with props)
    trunk/build_tools/make_version   (with props)
    trunk/build_tools/menuselect-deps.in   (with props)
    trunk/build_tools/menuselect.c   (with props)
    trunk/build_tools/menuselect.h   (with props)
    trunk/build_tools/menuselect_curses.c   (with props)
    trunk/build_tools/prep_moduledeps   (with props)
    trunk/config.guess   (with props)
    trunk/config.sub   (with props)
    trunk/configure.ac   (with props)
    trunk/makeopts.in   (with props)
    trunk/mxml/   (with props)
    trunk/mxml/.cvsignore   (with props)
    trunk/mxml/ANNOUNCEMENT   (with props)
    trunk/mxml/CHANGES   (with props)
    trunk/mxml/COPYING   (with props)
    trunk/mxml/Makefile.in   (with props)
    trunk/mxml/README   (with props)
    trunk/mxml/config.h.in   (with props)
    trunk/mxml/configure   (with props)
    trunk/mxml/configure.in   (with props)
    trunk/mxml/install-sh   (with props)
    trunk/mxml/mxml-attr.c   (with props)
    trunk/mxml/mxml-entity.c   (with props)
    trunk/mxml/mxml-file.c   (with props)
    trunk/mxml/mxml-index.c   (with props)
    trunk/mxml/mxml-node.c   (with props)
    trunk/mxml/mxml-private.c   (with props)
    trunk/mxml/mxml-search.c   (with props)
    trunk/mxml/mxml-set.c   (with props)
    trunk/mxml/mxml-string.c   (with props)
    trunk/mxml/mxml.h   (with props)
    trunk/mxml/mxml.list.in   (with props)
    trunk/mxml/mxml.pc   (with props)
    trunk/mxml/mxml.pc.in   (with props)
    trunk/mxml/mxml.spec   (with props)
    trunk/mxml/mxmldoc.c   (with props)
    trunk/mxml/temp1.xmlfd   (with props)
    trunk/mxml/test.xml   (with props)
    trunk/mxml/testmxml.c   (with props)
Removed:
    trunk/build_tools/make_svn_branch_name
Modified:
    trunk/   (props changed)
    trunk/Makefile
    trunk/UPGRADE.txt
    trunk/agi/Makefile
    trunk/agi/eagi-sphinx-test.c
    trunk/agi/eagi-test.c
    trunk/apps/Makefile
    trunk/apps/app_flash.c
    trunk/apps/app_ivrdemo.c
    trunk/apps/app_meetme.c
    trunk/apps/app_osplookup.c
    trunk/apps/app_page.c
    trunk/apps/app_rpt.c
    trunk/apps/app_skel.c
    trunk/apps/app_zapbarge.c
    trunk/apps/app_zapras.c
    trunk/apps/app_zapscan.c
    trunk/ast_expr2.c
    trunk/ast_expr2.fl
    trunk/ast_expr2.y
    trunk/ast_expr2f.c
    trunk/build_tools/   (props changed)
    trunk/cdr/Makefile
    trunk/cdr/cdr_odbc.c
    trunk/cdr/cdr_pgsql.c
    trunk/cdr/cdr_sqlite.c
    trunk/cdr/cdr_tds.c
    trunk/channel.c
    trunk/channels/Makefile
    trunk/channels/chan_agent.c
    trunk/channels/chan_alsa.c
    trunk/channels/chan_h323.c
    trunk/channels/chan_iax2.c
    trunk/channels/chan_misdn.c
    trunk/channels/chan_nbs.c
    trunk/channels/chan_oss.c
    trunk/channels/chan_phone.c
    trunk/channels/chan_sip.c
    trunk/channels/chan_vpb.c
    trunk/channels/chan_zap.c
    trunk/channels/h323/Makefile
    trunk/codecs/Makefile
    trunk/codecs/codec_gsm.c
    trunk/codecs/codec_speex.c
    trunk/codecs/gsm/Makefile
    trunk/codecs/ilbc/Makefile
    trunk/codecs/lpc10/Makefile
    trunk/cryptostub.c
    trunk/db1-ast/Makefile
    trunk/db1-ast/hash/hash.c
    trunk/file.c
    trunk/formats/Makefile
    trunk/formats/format_ogg_vorbis.c
    trunk/funcs/Makefile
    trunk/funcs/func_curl.c
    trunk/funcs/func_odbc.c
    trunk/include/   (props changed)
    trunk/include/asterisk.h
    trunk/include/asterisk/astmm.h
    trunk/include/asterisk/compat.h
    trunk/pbx/Makefile
    trunk/pbx/pbx_dundi.c
    trunk/pbx/pbx_gtkconsole.c
    trunk/pbx/pbx_kdeconsole.cc
    trunk/res/Makefile
    trunk/res/res_config_odbc.c
    trunk/res/res_config_pgsql.c
    trunk/res/res_crypto.c
    trunk/res/res_musiconhold.c
    trunk/res/res_odbc.c
    trunk/res/res_osp.c
    trunk/res/res_snmp.c
    trunk/strcompat.c
    trunk/utils/Makefile

Propchange: trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Apr 24 12:11:45 2006
@@ -14,3 +14,14 @@
 tags
 TAGS
 testexpr2
+makeopts
+menuselect.makeopts
+config.status
+config.log
+makeopts.xml
+install-sh
+configure
+mkinstalldirs
+autom4te.cache
+missing
+aclocal.m4

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Mon Apr 24 12:11:45 2006
@@ -49,7 +49,7 @@
 # Remember the MAKELEVEL at the top
 MAKETOPLEVEL?=$(MAKELEVEL)
 
-ifneq ($(findstring dont-optimize,$(MAKECMDGOALS)),dont-optimize)
+ifeq ($(findstring dont-optimize,$(MAKECMDGOALS)),)
 # More GSM codec optimization
 # Uncomment to enable MMXTM optimizations for x86 architecture CPU's
 # which support MMX instructions.  This should be newer pentiums,
@@ -96,13 +96,6 @@
 
 # Uncomment next one to enable ast_frame tracing (for debugging)
 TRACE_FRAMES = #-DTRACE_FRAMES
-
-# Uncomment next one to enable malloc debugging
-# You can view malloc debugging with:
-#   *CLI> show memory allocations [filename]
-#   *CLI> show memory summary [filename]
-#
-MALLOC_DEBUG = #-include $(PWD)/include/asterisk/astmm.h
 
 # Where to install asterisk after compiling
 # Default -> leave empty
@@ -182,25 +175,38 @@
 
 ASTCFLAGS=
 
-# Define this to use files larger than 2GB (useful for sound files longer than 37 hours and logfiles)
-ASTCFLAGS+=-D_FILE_OFFSET_BITS=64
-
 # Uncomment this to use the older DSP routines
 #ASTCFLAGS+=-DOLD_DSP_ROUTINES
 
 # If the file .asterisk.makeopts is present in your home directory, you can
-# include all of your favorite Makefile options so that every time you download
-# a new version of Asterisk, you don't have to edit the makefile to set them. 
-# The file, /etc/asterisk.makeopts will also be included, but can be overridden
+# include all of your favorite menuselect options so that every time you download
+# a new version of Asterisk, you don't have to run menuselect to set them. 
+# The file /etc/asterisk.makeopts will also be included but can be overridden
 # by the file in your home directory.
 
-ifneq ($(wildcard /etc/asterisk.makeopts),)
-  include /etc/asterisk.makeopts
-endif
-
-ifneq ($(wildcard ~/.asterisk.makeopts),)
-  include ~/.asterisk.makeopts
-endif
+GLOBAL_MAKEOPTS=$(wildcard /etc/asterisk.makeopts)
+USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts)
+
+ifneq ($(wildcard menuselect.makeopts),)
+  include menuselect.makeopts
+endif
+
+ifneq ($(wildcard makeopts),)
+  include makeopts
+endif
+
+ASTCFLAGS+=$(MENUSELECT_CFLAGS)
+TOPDIR_CFLAGS=-include include/autoconfig.h
+MOD_SUBDIR_CFLAGS=-include ../include/autoconfig.h
+
+#   *CLI> show memory allocations [filename]
+#   *CLI> show memory summary [filename]
+ifneq ($(findstring -DMALLOC_DEBUG,$(ASTCFLAGS)),)
+  TOPDIR_CFLAGS+=-include include/asterisk/astmm.h
+  MOD_SUBDIR_CFLAGS+=-include ../include/asterisk/astmm.h
+endif
+
+MOD_SUBDIR_CFLAGS+=-fPIC
 
 ifeq ($(OSARCH),Linux)
   ifeq ($(PROC),x86_64)
@@ -247,9 +253,13 @@
 endif
 
 INCLUDE+=-Iinclude -I../include
-ASTCFLAGS+=-pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
+ASTCFLAGS+=-pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) #-DMAKE_VALGRIND_HAPPY
 ASTCFLAGS+=$(OPTIMIZE)
-ASTCFLAGS+=# -Werror -Wunused
+
+ifeq ($(AST_DEVMODE),yes)
+  ASTCFLAGS+=-Werror -Wunused
+endif
+
 ifeq ($(shell gcc -v 2>&1 | grep 'gcc version' | cut -f3 -d' ' | cut -f1 -d.),4)
 ASTCFLAGS+= -Wno-pointer-sign
 endif
@@ -265,14 +275,6 @@
 
 ifeq ($(PROC),ppc)
   ASTCFLAGS+=-fsigned-char
-endif
-
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h),)
-  ASTCFLAGS+=-DOSP_SUPPORT -I$(CROSS_COMPILE_TARGET)/usr/local/include/osp
-else
-  ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
-    ASTCFLAGS+=-DOSP_SUPPORT -I$(CROSS_COMPILE_TARGET)/usr/include/osp
-  endif
 endif
 
 ifeq ($(OSARCH),FreeBSD)
@@ -300,27 +302,11 @@
   INCLUDE+=-Iinclude/solaris-compat -I$(CROSS_COMPILE_TARGET)/usr/local/ssl/include
 endif
 
-ifeq ($(findstring CYGWIN,$(OSARCH)),CYGWIN)
-  CYGLOADER=cygwin_a
-  OSARCH=CYGWIN
-  ASTOBJ=-shared -o asterisk.dll -Wl,--out-implib=libasterisk.dll.a -Wl,--export-all-symbols
-  ASTLINK=
-  LIBS+=-lpthread -lncurses -lm -lresolv
-  ASTSBINDIR=$(MODULES_DIR)
-endif
-
-ifndef WITHOUT_ZAPTEL
-
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),)
-  ASTCFLAGS+=-DZAPTEL_OPTIMIZATIONS
-endif
-
-endif # WITHOUT_ZAPTEL
-
 LIBEDIT=editline/libedit.a
 
+ASTERISKVERSION:=$(shell build_tools/make_version .)
+
 ifneq ($(wildcard .version),)
-  ASTERISKVERSION:=$(shell cat .version)
   ASTERISKVERSIONNUM:=$(shell awk -F. '{printf "%02d%02d%02d", $$1, $$2, $$3}' .version)
   RPMVERSION:=$(shell sed 's/[-\/:]/_/g' .version)
 else
@@ -332,11 +318,9 @@
 # showing the branch they are made from
 ifneq ($(wildcard .svnrevision),)
   ASTERISKVERSIONNUM=999999
-  ASTERISKVERSION:=SVN-$(shell cat .svnbranch)-r$(shell cat .svnrevision)
 else
   ifneq ($(wildcard .svn),)
     ASTERISKVERSIONNUM=999999
-    ASTERISKVERSION=SVN-$(shell build_tools/make_svn_branch_name)
   endif
 endif
 
@@ -345,11 +329,12 @@
 ASTCFLAGS+= $(MALLOC_DEBUG)
 ASTCFLAGS+= $(BUSYDETECT)
 ASTCFLAGS+= $(OPTIONS)
-ifneq ($(findstring dont-optimize,$(MAKECMDGOALS)),dont-optimize)
+ifeq ($(findstring dont-optimize,$(MAKECMDGOALS)),)
 ASTCFLAGS+= -fomit-frame-pointer 
 endif
 
-SUBDIRS=res channels pbx apps codecs formats agi cdr funcs utils stdtime
+MOD_SUBDIRS=res channels pbx apps codecs formats cdr funcs
+SUBDIRS:=$(MOD_SUBDIRS) utils stdtime agi
 
 OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \
 	translate.o file.o pbx.o cli.o md5.o term.o \
@@ -426,19 +411,17 @@
 endif
 
 ifeq ($(MAKETOPLEVEL),$(MAKELEVEL))
-  CFLAGS+=$(ASTCFLAGS)
+  CFLAGS+=$(ASTCFLAGS) $(TOPDIR_CFLAGS)
 endif
 
 # This is used when generating the doxygen documentation
-ifneq ($(wildcard /usr/local/bin/dot)$(wildcard /usr/bin/dot),)
+ifneq ($(DOT),:)
   HAVEDOT=yes
 else
   HAVEDOT=no
 endif
 
 INSTALL=install
-
-CFLAGS+=-DT38_SUPPORT
 
 _all: all
 	@echo " +--------- Asterisk Build Complete ---------+"  
@@ -446,10 +429,32 @@
 	@echo " + cannot be run before being installed by   +"  
 	@echo " + running:                                  +"  
 	@echo " +                                           +"
-	@echo " +               $(MAKE) install                +"  
+	@echo " +               make install                +"  
 	@echo " +-------------------------------------------+"  
 
-all: cleantest depend asterisk subdirs 
+all: include/autoconfig.h menuselect.makeopts cleantest depend asterisk subdirs
+
+configure:
+	- at ./bootstrap.sh
+
+include/autoconfig.h: configure
+	@CFLAGS="" ./configure
+	@echo "****"
+	@echo "**** The configure script was just executed, so 'make' needs to be"
+	@echo "**** restarted."
+	@echo "****"
+	@echo exit 1
+
+makeopts: configure
+	@CFLAGS="" ./configure
+	@echo "****"
+	@echo "**** The configure script was just executed, so 'make' needs to be"
+	@echo "**** restarted."
+	@echo "****"
+	@echo exit 1
+
+menuselect.makeopts: build_tools/menuselect makeopts.xml
+	@build_tools/menuselect --check-deps ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} $@
 
 #ifneq ($(wildcard tags),)
 ctags: tags
@@ -459,16 +464,14 @@
 all: TAGS
 endif
 
-noclean: depend asterisk subdirs
-
 editline/config.h:
 	cd editline && unset CFLAGS LIBS && ./configure ; \
 
-editline/libedit.a: FORCE
+editline/libedit.a:
 	cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
 	$(MAKE) -C editline libedit.a
 
-db1-ast/libdb1.a: FORCE
+db1-ast/libdb1.a:
 	$(MAKE) -C db1-ast libdb1.a
 
 ifneq ($(wildcard .depend),)
@@ -511,27 +514,24 @@
 asterisk.txt: asterisk.sgml
 	docbook2txt asterisk.sgml
 
-defaults.h: FORCE
+defaults.h: makeopts
 	build_tools/make_defaults_h > $@.tmp
 	if cmp -s $@.tmp $@ ; then echo ; else \
 		mv $@.tmp $@ ; \
 	fi
 	rm -f $@.tmp
 
-include/asterisk/version.h: FORCE
+include/asterisk/version.h:
 	build_tools/make_version_h > $@.tmp
 	if cmp -s $@.tmp $@ ; then echo; else \
 		mv $@.tmp $@ ; \
 	fi
 	rm -f $@.tmp
 
-stdtime/libtime.a: FORCE
-	$(MAKE) -C stdtime libtime.a
-
-cygwin_a:
-	$(MAKE) -C cygwin all
-
-asterisk: $(CYGLOADER) editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a $(OBJS)
+stdtime/libtime.a:
+	CFLAGS="$(ASTCFLAGS) $(MOD_SUBDIR_CFLAGS)" $(MAKE) -C stdtime libtime.a
+
+asterisk: editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a $(OBJS)
 	build_tools/make_build_h > include/asterisk/build.h.tmp
 	if cmp -s include/asterisk/build.h.tmp include/asterisk/build.h ; then echo ; else \
 		mv include/asterisk/build.h.tmp include/asterisk/build.h ; \
@@ -544,7 +544,9 @@
 	$(CC) $(AUDIO_LIBS) -o muted muted.o
 
 subdirs: 
-	for x in $(SUBDIRS); do $(MAKE) -C $$x || exit 1 ; done
+	for x in $(MOD_SUBDIRS); do CFLAGS="$(ASTCFLAGS) $(MOD_SUBDIR_CFLAGS)" $(MAKE) -C $$x || exit 1 ; done
+	CFLAGS="$(ASTCFLAGS)" $(MAKE) -C utils
+	CFLAGS="$(ASTCFLAGS) -include ../include/autoconfig.h" $(MAKE) -C agi
 
 clean-depend:
 	for x in $(SUBDIRS); do $(MAKE) -C $$x clean-depend || exit 1 ; done
@@ -562,11 +564,18 @@
 	$(MAKE) -C db1-ast clean
 	$(MAKE) -C stdtime clean
 
+dist-clean: clean
+	rm -f menuselect.makeopts makeopts makeopts.xml
+	rm -f config.log config.status
+	rm -f include/autoconfig.h
+	$(MAKE) -C mxml clean
+	$(MAKE) -C build_tools dist-clean
+
 datafiles: all
 	if [ x`$(ID) -un` = xroot ]; then sh build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
-	# Should static HTTP be installed during make samples or even with its own target ala
-	# webvoicemail?  There are portions here that *could* be customized but might also be
-	# improved a lot.  I'll put it here for now.
+# Should static HTTP be installed during make samples or even with its own target ala
+# webvoicemail?  There are portions here that *could* be customized but might also be
+# improved a lot.  I'll put it here for now.
 	mkdir -p $(DESTDIR)$(ASTDATADIR)/static-http
 	for x in static-http/*; do \
 		install -m 644 $$x $(DESTDIR)$(ASTDATADIR)/static-http ; \
@@ -664,7 +673,6 @@
 	mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme
 	mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/monitor
 	if [ -f asterisk ]; then $(INSTALL) -m 755 asterisk $(DESTDIR)$(ASTSBINDIR)/; fi
-	if [ -f cygwin/asterisk.exe ]; then $(INSTALL) -m 755 cygwin/asterisk.exe $(DESTDIR)$(ASTSBINDIR)/; fi
 	if [ -f asterisk.dll ]; then $(INSTALL) -m 755 asterisk.dll $(DESTDIR)$(ASTSBINDIR)/; fi
 	ln -sf asterisk $(DESTDIR)$(ASTSBINDIR)/rasterisk
 	$(INSTALL) -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
@@ -887,7 +895,7 @@
 depend: include/asterisk/version.h .depend defaults.h 
 	for x in $(SUBDIRS); do $(MAKE) -C $$x depend || exit 1 ; done
 
-.depend: include/asterisk/version.h
+.depend: include/asterisk/version.h defaults.h
 	build_tools/mkdep $(CFLAGS) $(wildcard *.c)
 
 .tags-depend:
@@ -928,7 +936,6 @@
 # If the cleancount has been changed, force a make clean.
 # .cleancount is the global clean count, and .lastclean is the 
 # last clean count we had
-# We can avoid this by making noclean
 
 cleantest:
 	if cmp -s .cleancount .lastclean ; then echo ; else \
@@ -967,3 +974,17 @@
 	rm -rf $(DESTDIR)$(ASTSPOOLDIR)
 	rm -rf $(DESTDIR)$(ASTETCDIR)
 	rm -rf $(DESTDIR)$(ASTLOGDIR)
+
+menuselect: build_tools/menuselect makeopts.xml
+	- at build_tools/menuselect ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
+
+build_tools/menuselect: build_tools/menuselect.c build_tools/menuselect.h mxml/libmxml.a
+	$(MAKE) -C build_tools menuselect
+
+mxml/libmxml.a:
+	@cd mxml && unset CFLAGS && test -f config.h || ./configure
+	$(MAKE) -C mxml libmxml.a
+
+makeopts.xml: $(foreach dir,$(MOD_SUBDIRS),$(dir)/*.c) build_tools/cflags.xml
+	@echo "Generating list of available modules ..."
+	@build_tools/prep_moduledeps > $@

Modified: trunk/UPGRADE.txt
URL: http://svn.digium.com/view/asterisk/trunk/UPGRADE.txt?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/UPGRADE.txt (original)
+++ trunk/UPGRADE.txt Mon Apr 24 12:11:45 2006
@@ -1,5 +1,37 @@
 Information for Upgrading From Previous Asterisk Releases
 =========================================================
+
+Build Process (configure script):
+
+Asterisk now uses an autoconf-generated configuration script to learn how it
+should build itself for your system. As it is a standard script, running:
+
+$ ./configure --help
+
+will show you all the options available. This script can be used to tell the
+build process what libraries you have on your system (if it cannot find them
+automatically), which libraries you wish to have ignored even though they may
+be present, etc.
+
+You must run the configure script before Asterisk will build, although it will
+attempt to automatically run it for you with no options specified; for most users,
+that will result in a similar build to what they would have had before the
+configure script was added to the build process (except for having to run 'make'
+again after the configure script is run). Note that the configure script does NOT
+need to be re-run just to rebuild Asterisk; you only need to re-run it when your
+system configuration changes or you wish to build Asterisk with different options.
+
+Build Process (module selection):
+
+The Asterisk source tree now includes a basic module selection and build option
+selection tool called 'menuselect'. Run 'make menuselect' to make your choices.
+In this tool, you can disable building of modules that you don't care about,
+turn on/off global options for the build and see which modules will not (and cannot)
+be built because your system does not have the required external dependencies
+installed.
+
+(TODO: document where 'global' and 'per-user' menuselect input files should go
+and what they need to contain)
 
 PBX Core:
 

Added: trunk/acinclude.m4
URL: http://svn.digium.com/view/asterisk/trunk/acinclude.m4?rev=22267&view=auto
==============================================================================
--- trunk/acinclude.m4 (added)
+++ trunk/acinclude.m4 Mon Apr 24 12:11:45 2006
@@ -1,0 +1,79 @@
+# AST_EXT_LIB([NAME], [FUNCTION], [package header], [package symbol name], [package friendly name], [additional LIB data])
+
+AC_DEFUN([AST_EXT_LIB],
+[
+AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PATH],[use $5 files in PATH]),[
+case ${withval} in
+     n|no)
+     USE_$1=no
+     ;;
+     y|ye|yes)
+     $1_MANDATORY="yes"
+     ;;
+     *)
+     $1_DIR="${withval}"
+     $1_MANDATORY="yes"
+     ;;
+esac
+])
+
+PBX_LIB$1=0
+
+if test "${USE_$1}" != "no"; then	
+   AC_CHECK_LIB([$1], [$2], AC_DEFINE_UNQUOTED([HAVE_$4], 1,
+   [Define to indicate the $5 library]), [], -L${$1_DIR}/lib $6)
+
+   if test "${ac_cv_lib_$1_$2}" = "yes"; then
+      $1_LIB="-l$1 $6"
+      $4_HEADER_FOUND="1"
+      if test "x${$1_DIR}" != "x"; then
+         $1_LIB="-L${$1_DIR}/lib ${$1_LIB}"
+	 $1_INCLUDE="-I${$1_DIR}/include"
+	 if test "x$3" != "x" ; then
+	    AC_CHECK_HEADER([${$1_DIR}/include/$3], [$4_HEADER_FOUND=1], [$4_HEADER_FOUND=0] )
+	 fi
+      else
+	 if test "x$3" != "x" ; then
+            AC_CHECK_HEADER([$3], [$4_HEADER_FOUND=1], [$4_HEADER_FOUND=0] )
+	 fi
+      fi
+      if test "x${$4_HEADER_FOUND}" = "x0" ; then
+        echo " ***"
+        echo " *** It appears that you do not have the $5 development package installed."
+        echo " *** Please install it to include $5 support, or re-run configure"
+        echo " *** with the argument --without-$1"
+        exit 1
+      fi
+      PBX_LIB$1=1 
+   elif test ! -z "${$1_MANDATORY}";
+   then
+      echo "***"
+      echo "*** The $5 installation on this system appears to be broken."
+      echo "*** Either correct the installation, or run configure"
+      echo "*** including --without-$1"
+      exit 1
+   fi
+fi
+AC_SUBST([$1_LIB])
+AC_SUBST([$1_INCLUDE])
+AC_SUBST([PBX_LIB$1])
+])
+
+
+AC_DEFUN(
+[AST_CHECK_GNU_MAKE], [ AC_CACHE_CHECK( for GNU make, GNU_MAKE,
+   GNU_MAKE='Not Found' ;
+   for a in make gmake gnumake ; do
+      if test -z "$a" ; then continue ; fi ;
+      if ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
+         GNU_MAKE=$a ;
+         break;
+      fi
+   done ;
+) ;
+if test  "x$GNU_MAKE" = "xNot Found"  ; then
+   echo " *** Please install GNU make.  It is required to build Asterisk!"
+   exit 1
+fi
+AC_SUBST([GNU_MAKE])
+] )

Propchange: trunk/acinclude.m4
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/acinclude.m4
------------------------------------------------------------------------------
    svn:keywords = Author ID Date Revision

Propchange: trunk/acinclude.m4
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: trunk/agi/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/agi/Makefile?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/agi/Makefile (original)
+++ trunk/agi/Makefile Mon Apr 24 12:11:45 2006
@@ -3,7 +3,7 @@
 # 
 # Makefile for AGI-related stuff
 #
-# Copyright (C) 1999-2005, Digium
+# Copyright (C) 1999-2006, Digium
 #
 # Mark Spencer <markster at digium.com>
 #
@@ -12,8 +12,6 @@
 #
 
 AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
-
-CFLAGS+=-DNO_AST_MM
 
 LIBS=
 ifeq ($(OSARCH),SunOS)
@@ -30,10 +28,10 @@
 	for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
 
 eagi-test: eagi-test.o
-	$(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
+	$(CC) $(CFLAGS) -include ../include/autoconfig.h -o eagi-test eagi-test.o $(LIBS)
 
 eagi-sphinx-test: eagi-sphinx-test.o
-	$(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) 
+	$(CC) $(CFLAGS) -include ../include/autoconfig.h -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) 
 
 clean-depend:
 	rm -f .depend

Modified: trunk/agi/eagi-sphinx-test.c
URL: http://svn.digium.com/view/asterisk/trunk/agi/eagi-sphinx-test.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/agi/eagi-sphinx-test.c (original)
+++ trunk/agi/eagi-sphinx-test.c Mon Apr 24 12:11:45 2006
@@ -17,7 +17,10 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
-#include <asterisk/compat.h>
+
+#include "asterisk.h"
+
+#include "asterisk/compat.h"
 
 #define AUDIO_FILENO (STDERR_FILENO + 1)
 

Modified: trunk/agi/eagi-test.c
URL: http://svn.digium.com/view/asterisk/trunk/agi/eagi-test.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/agi/eagi-test.c (original)
+++ trunk/agi/eagi-test.c Mon Apr 24 12:11:45 2006
@@ -11,7 +11,10 @@
 #include <errno.h>
 #include <string.h>
 #include <sys/select.h>
-#include <asterisk/compat.h>
+
+#include "asterisk.h"
+
+#include "asterisk/compat.h"
 
 #define AUDIO_FILENO (STDERR_FILENO + 1)
 

Modified: trunk/apps/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/apps/Makefile?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/Makefile (original)
+++ trunk/apps/Makefile Mon Apr 24 12:11:45 2006
@@ -11,37 +11,10 @@
 # the GNU General Public License
 #
 
-MODS:=$(patsubst %.c,%.so,$(wildcard app_*.c))
+MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%.so,$(wildcard app_*.c)))
 
-#
-# Experimental things
-#
-MODS:=$(filter-out app_ivrdemo.so,$(MODS))
-MODS:=$(filter-out app_skel.so,$(MODS))
-MODS:=$(filter-out app_rpt.so,$(MODS))
-
-ifndef WITHOUT_ZAPTEL
-ZAPAVAIL:=$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)
-endif
-
-ifeq (${ZAPAVAIL},)
-  MODS:=$(filter-out app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so,$(MODS))
-endif
-
-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
-  MODS:=$(filter-out app_osplookup.so,$(MODS))
-endif
-
-ifneq (${WITH_SMDI},)
+ifneq ($(WITH_SMDI),)
   CFLAGS+=-DWITH_SMDI
-endif
-
-ifeq (${OSARCH},CYGWIN)
-  CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
-  CYGSOLIB=-L.. -L. -L../res -lasterisk.dll -lres_features.so -lres_adsi.so -lres_monitor.so
-  MODS:=$(filter-out app_sms.so,$(MODS))
-else
-  CFLAGS+=-fPIC
 endif
 
 # If you have UnixODBC you can use ODBC voicemail
@@ -61,11 +34,14 @@
 clean: clean-depend
 	rm -f *.so *.o
 
-%.so : %.o
-	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB}
+%.so: %.o
+	$(CC) $(SOLINK) -o $@ $<
 
-app_rpt.so : app_rpt.o
-	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -ltonezone
+app_rpt.so: app_rpt.o
+	$(CC) $(SOLINK) -o $@ $< $(ZAPTEL_LIB)
+
+app_rpt.o: app_rpt.c
+	$(CC) $(SOLINK) -o $@ $< $(ZAPTEL_INCLUDE) 
 
 install: all
 	for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done

Modified: trunk/apps/app_flash.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_flash.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_flash.c (original)
+++ trunk/apps/app_flash.c Mon Apr 24 12:11:45 2006
@@ -25,6 +25,10 @@
  * \ingroup applications
  */
  
+/*** MODULEINFO
+	<depend>zaptel</depend>
+ ***/
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -132,3 +136,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_ivrdemo.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_ivrdemo.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_ivrdemo.c (original)
+++ trunk/apps/app_ivrdemo.c Mon Apr 24 12:11:45 2006
@@ -24,6 +24,10 @@
  * 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<defaultenabled>no</defaultenabled>
+ ***/
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -137,3 +141,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_meetme.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_meetme.c (original)
+++ trunk/apps/app_meetme.c Mon Apr 24 12:11:45 2006
@@ -25,6 +25,10 @@
  * 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<depend>zaptel</depend>
+ ***/
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -2469,5 +2473,6 @@
 {
 	return ASTERISK_GPL_KEY;
 }
- 
+
 STD_MOD(MOD_1, reload, NULL, NULL);
+

Modified: trunk/apps/app_osplookup.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_osplookup.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_osplookup.c (original)
+++ trunk/apps/app_osplookup.c Mon Apr 24 12:11:45 2006
@@ -24,6 +24,11 @@
  * 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<depend>libosptk</depend>
+	<depend>ssl</depend>
+ ***/
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -637,3 +642,5 @@
 }
 
 STD_MOD1;
+
+

Modified: trunk/apps/app_page.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_page.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_page.c (original)
+++ trunk/apps/app_page.c Mon Apr 24 12:11:45 2006
@@ -24,6 +24,10 @@
  *
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<depend>zaptel</depend>
+ ***/
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -230,3 +234,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Mon Apr 24 12:11:45 2006
@@ -94,6 +94,11 @@
  *
  *
 */
+
+/*** MODULEINFO
+	<depend>zaptel</depend>
+	<defaultenabled>no</defaultenabled>
+ ***/
 
 /* The following is JUST GROSS!! There is some soft of underlying problem,
    probably in channel_iax2.c, that causes an IAX2 connection to sometimes
@@ -7063,3 +7068,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_skel.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_skel.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_skel.c (original)
+++ trunk/apps/app_skel.c Mon Apr 24 12:11:45 2006
@@ -25,6 +25,10 @@
  * This is a skeleton for development of an Asterisk application 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<defaultenabled>no</defaultenabled>
+ ***/
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -141,3 +145,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_zapbarge.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_zapbarge.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_zapbarge.c (original)
+++ trunk/apps/app_zapbarge.c Mon Apr 24 12:11:45 2006
@@ -30,6 +30,10 @@
  * 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<depend>zaptel</depend>
+ ***/
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -329,3 +333,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_zapras.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_zapras.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_zapras.c (original)
+++ trunk/apps/app_zapras.c Mon Apr 24 12:11:45 2006
@@ -24,6 +24,10 @@
  * 
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<depend>zaptel</depend>
+ ***/
 
 #include <sys/ioctl.h>
 #include <sys/wait.h>
@@ -267,3 +271,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/apps/app_zapscan.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_zapscan.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/apps/app_zapscan.c (original)
+++ trunk/apps/app_zapscan.c Mon Apr 24 12:11:45 2006
@@ -29,6 +29,10 @@
  *
  * \ingroup applications
  */
+
+/*** MODULEINFO
+	<depend>zaptel</depend>
+ ***/
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -390,3 +394,4 @@
 }
 
 STD_MOD1;
+

Modified: trunk/ast_expr2.c
URL: http://svn.digium.com/view/asterisk/trunk/ast_expr2.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/ast_expr2.c (original)
+++ trunk/ast_expr2.c Mon Apr 24 12:11:45 2006
@@ -143,8 +143,13 @@
 #include <errno.h>
 #include <regex.h>
 #include <limits.h>
-#include <asterisk/ast_expr.h>
-#include <asterisk/logger.h>
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include "asterisk/ast_expr.h"
+#include "asterisk/logger.h"
 
 #if defined(LONG_LONG_MIN) && !defined(QUAD_MIN)
 #define QUAD_MIN LONG_LONG_MIN

Modified: trunk/ast_expr2.fl
URL: http://svn.digium.com/view/asterisk/trunk/ast_expr2.fl?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/ast_expr2.fl (original)
+++ trunk/ast_expr2.fl Mon Apr 24 12:11:45 2006
@@ -36,9 +36,14 @@
 #include <errno.h>
 #include <regex.h>
 #include <limits.h>
-#include <asterisk/ast_expr.h>
-#include <asterisk/logger.h>
-#include <asterisk/strings.h>
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include "asterisk/ast_expr.h"
+#include "asterisk/logger.h"
+#include "asterisk/strings.h"
 
 enum valtype {
 	AST_EXPR_integer, AST_EXPR_numeric_string, AST_EXPR_string

Modified: trunk/ast_expr2.y
URL: http://svn.digium.com/view/asterisk/trunk/ast_expr2.y?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/ast_expr2.y (original)
+++ trunk/ast_expr2.y Mon Apr 24 12:11:45 2006
@@ -26,8 +26,13 @@
 #include <errno.h>
 #include <regex.h>
 #include <limits.h>
-#include <asterisk/ast_expr.h>
-#include <asterisk/logger.h>
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include "asterisk/ast_expr.h"
+#include "asterisk/logger.h"
 
 #if defined(LONG_LONG_MIN) && !defined(QUAD_MIN)
 #define QUAD_MIN LONG_LONG_MIN

Modified: trunk/ast_expr2f.c
URL: http://svn.digium.com/view/asterisk/trunk/ast_expr2f.c?rev=22267&r1=22266&r2=22267&view=diff
==============================================================================
--- trunk/ast_expr2f.c (original)
+++ trunk/ast_expr2f.c Mon Apr 24 12:11:45 2006
@@ -1267,9 +1267,14 @@
 #include <errno.h>
 #include <regex.h>
 #include <limits.h>
-#include <asterisk/ast_expr.h>
-#include <asterisk/logger.h>
-#include <asterisk/strings.h>
+
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
+#include "asterisk/ast_expr.h"
+#include "asterisk/logger.h"
+#include "asterisk/strings.h"
 
 enum valtype {
 	AST_EXPR_integer, AST_EXPR_numeric_string, AST_EXPR_string

Added: trunk/bootstrap.sh
URL: http://svn.digium.com/view/asterisk/trunk/bootstrap.sh?rev=22267&view=auto
==============================================================================
--- trunk/bootstrap.sh (added)
+++ trunk/bootstrap.sh Mon Apr 24 12:11:45 2006
@@ -1,0 +1,37 @@
+#!/bin/sh
+
+check_for_app() {
+	$1 --version 2>&1 >/dev/null
+	if [ $? != 0 ]
+	then
+		echo "Please install $1 and run bootstrap.sh again!"
+		exit 1
+	fi
+}
+
+uname -s | grep -q FreeBSD
+if [ $? = 0 ]
+then
+	check_for_app aclocal19
+	check_for_app autoconf259
+	check_for_app autoheader259
+	check_for_app automake19
+
+	aclocal19 2>/dev/null
+	autoconf259
+	autoheader259
+	automake19 --add-missing --copy 2>/dev/null
+else
+	export AUTOCONF_VERSION=2.59
+	export AUTOMAKE_VERSION=1.9
+
+	check_for_app aclocal
+	check_for_app autoconf
+	check_for_app autoheader
+	check_for_app automake
+
+	aclocal 2>/dev/null
+	autoconf
+	autoheader
+	automake --add-missing --copy 2>/dev/null
+fi

Propchange: trunk/bootstrap.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/bootstrap.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: trunk/bootstrap.sh
------------------------------------------------------------------------------
    svn:keywords = Author ID Date Revision

Propchange: trunk/bootstrap.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: trunk/build_tools/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Apr 24 12:11:45 2006
@@ -1,1 +1,3 @@
 vercomp
+menuselect-deps
+menuselect

Added: trunk/build_tools/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/Makefile?rev=22267&view=auto
==============================================================================
--- trunk/build_tools/Makefile (added)
+++ trunk/build_tools/Makefile Mon Apr 24 12:11:45 2006
@@ -1,0 +1,18 @@
+MENUSELECT_OBJS=menuselect.o menuselect_curses.o
+MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -I../ -I../include/
+MENUSELECT_LIBS=../mxml/libmxml.a $(CURSES_LIB)
+
+menuselect: $(MENUSELECT_OBJS)
+	$(CC) -g -o $@ $(MENUSELECT_OBJS) $(MENUSELECT_LIBS)
+
+menuselect.o: menuselect.c menuselect.h
+	$(CC) -o $@ $(MENUSELECT_CFLAGS) $<
+
+menuselect_curses.o: menuselect_curses.c menuselect.h
+	$(CC) -o $@ $(MENUSELECT_CFLAGS) $(CURSES_INCLUDE) $<
+
+clean:
+	rm -f menuselect *.o
+
+dist-clean: clean
+	rm -f menuselect-deps

Propchange: trunk/build_tools/Makefile
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/build_tools/Makefile
------------------------------------------------------------------------------
    svn:keywords = Author ID Date Revision

Propchange: trunk/build_tools/Makefile
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/build_tools/cflags.xml
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/cflags.xml?rev=22267&view=auto
==============================================================================
--- trunk/build_tools/cflags.xml (added)
+++ trunk/build_tools/cflags.xml Mon Apr 24 12:11:45 2006
@@ -1,0 +1,23 @@
+	<category name="MENUSELECT_CFLAGS" displayname="Compiler Flags" positive_output="yes" force_clean_on_change="yes">
+		<member name="-DDEBUG_SCHEDULER">
+		</member>
+		<member name="-DDEBUG_THREADS">
+		</member>
+		<member name="-DDETECT_DEADLOCKS">
+		</member>
+		<member name="-DDUMP_SCHEDULER">
+		</member>
+		<member name="-DLOW_MEMORY">
+		</member>
+		<member name="-DMALLOC_DEBUG">
+		</member>
+		<member name="-DRADIO_RELAX">
+		</member>
+		<member name="-DTRACE_FRAMES">
+		</member>
+		<member name="-DMTX_PROFILE">
+		</member>
+		<member name="-DT38_SUPPORT">
+			<defaultenabled>yes</defaultenabled>
+		</member>
+	</category>

Propchange: trunk/build_tools/cflags.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/build_tools/cflags.xml
------------------------------------------------------------------------------
    svn:keywords = Author ID Date Revision

Propchange: trunk/build_tools/cflags.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/build_tools/get_moduledeps
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/get_moduledeps?rev=22267&view=auto
==============================================================================
--- trunk/build_tools/get_moduledeps (added)
+++ trunk/build_tools/get_moduledeps Mon Apr 24 12:11:45 2006
@@ -1,0 +1,3 @@
+/\/\*\*\* MODULEINFO/ {printit=1; next}
+/\*\*\*\// {exit}
+// {if (printit) print}

Propchange: trunk/build_tools/get_moduledeps
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/build_tools/get_moduledeps
------------------------------------------------------------------------------
    svn:keywords = Author ID Date Revision

Propchange: trunk/build_tools/get_moduledeps
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: trunk/build_tools/make_version
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/make_version?rev=22267&view=auto
==============================================================================
--- trunk/build_tools/make_version (added)
+++ trunk/build_tools/make_version Mon Apr 24 12:11:45 2006
@@ -1,0 +1,56 @@
+#!/bin/sh
+
+if [ -f ${1}/.version ]; then
+	cat ${1}.version
+elif [ -f ${1}/.svnrevision ]; then
+	echo SVN-`cat ${1}/.svnbranch`-r`cat ${1}.svnrevision`
+elif [ -d .svn ]; then
+    PARTS=`LANG=C svn info ${1} | grep URL | awk '{print $2;}' | sed -e s:^.*/svn/asterisk/:: | sed -e 's:/: :g'`
+    BRANCH=0
+    TEAM=0
+    
+    REV=`svnversion -c ${1} | cut -d: -f2`
+    
+    if [ "${PARTS}" = "trunk" ]
+	then
+	echo SVN-'trunk'-r${REV}
+	exit 0
+    fi
+    
+    for PART in $PARTS
+      do
+      if [ ${BRANCH} != 0 ]
+	  then

[... 25117 lines stripped ...]


More information about the svn-commits mailing list