[PD-cvs] externals/sprinkler Makefile.am, NONE, 1.1 README.txt, NONE, 1.1 autogen.sh, 1.1.1.1, 1.2 configure.in, 1.4, 1.5 install-sh, 1.1.1.1, NONE makefile.in, 1.1.1.1, NONE
Bryan Jurish
mukau at users.sourceforge.net
Fri Aug 3 00:45:42 CEST 2007
Update of /cvsroot/pure-data/externals/sprinkler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22521
Modified Files:
autogen.sh configure.in
Added Files:
Makefile.am README.txt
Removed Files:
install-sh makefile.in
Log Message:
Index: configure.in
===================================================================
RCS file: /cvsroot/pure-data/externals/sprinkler/configure.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** configure.in 14 Sep 2004 17:34:41 -0000 1.4
--- configure.in 2 Aug 2007 22:45:39 -0000 1.5
***************
*** 2,6 ****
dnl -- adapted from 'configure.in' in ggee distribution by Guenter Geiger
AC_PREREQ(2.5)
! AC_INIT(sprinkler, [0.06], [moocow at ling.uni-potsdam.de])
dnl
--- 2,34 ----
dnl -- adapted from 'configure.in' in ggee distribution by Guenter Geiger
AC_PREREQ(2.5)
!
! dnl Some handy macros
! define([THE_PACKAGE_NAME], [sprinkler])
! define([THE_PACKAGE_VERSION], [0.06])
! define([THE_PACKAGE_AUTHOR], [moocow at ling.uni-potsdam.de])
!
! AC_INIT(THE_PACKAGE_NAME, THE_PACKAGE_VERSION, THE_PACKAGE_AUTHOR)
!
! dnl
! dnl source & aux
! dnl
! AC_CONFIG_AUX_DIR(config)
!
!
! dnl
! dnl save user's CFLAGS,CPPFLAGS
! dnl
! UCPPFLAGS="$CPPFLAGS"
! UCFLAGS="$CFLAGS"
!
! dnl
! dnl use automake
! dnl
! AM_INIT_AUTOMAKE(THE_PACKAGE_NAME, THE_PACKAGE_VERSION)
!
! dnl
! dnl use autoheader
! dnl
! dnl AM_CONFIG_HEADER(config.h)
dnl
***************
*** 19,31 ****
AC_SUBST(LFLAGS)
AC_SUBST(OFLAGS)
AC_SUBST(LD)
! AC_SUBST(EXT)
!
! AC_SUBST(MYSOURCES)
! AC_SUBST(MYPODS)
! AC_SUBST(MYPDDOC)
! AC_SUBST(MYDISTNAME)
!
dnl version stuff (automatically exported?)
--- 47,54 ----
AC_SUBST(LFLAGS)
AC_SUBST(OFLAGS)
+ AC_SUBST(WFLAGS)
AC_SUBST(LD)
! AC_SUBST(PDEXT)
dnl version stuff (automatically exported?)
***************
*** 34,80 ****
AC_SUBST(BUGREPORT)
! dnl
! dnl pd-directory/ies
! dnl
AC_ARG_WITH(pd-dir,
! AC_HELP_STRING([--with-pd-dir=DIR], [PD base directory (default=/usr/local/pd)]),
! [PD_DIR="$withval"],
! [PD_DIR="/usr/local/pd"])
! AC_SUBST(PD_DIR)
AC_ARG_WITH(pd-include,
! AC_HELP_STRING([--with-pd-include=DIR], [PD include directory (default=${PD_DIR}/src)]),
! [PD_INC="$withval"],
! [PD_INC="${PD_DIR}/src"])
! AC_SUBST(PD_INC)
!
! dnl
! dnl configuration stuff here
! dnl
! MYDISTNAME="sprinkler"
! MYSOURCES="sprinkler.c"
! MYPODS="`echo *.pod`"
! MYPDDOC="sprinkler-help.pd"
! IFLAGS="-I./include -I${PD_INC}"
dnl
! dnl debug version?
dnl
! AC_MSG_CHECKING([whether we are building a debug version])
! AC_ARG_ENABLE([debug],
! AC_HELP_STRING([--enable-debug],[build debug version (default=no)]))
!
! if test "$enable_debug" == "yes" ; then
! AC_MSG_RESULT(yes)
! DEBUG="yes"
! AC_DEFINE(SPRINKLER_DEBUG, 1, [Define this to use pd_forwardmess() for all messages])
! else
! AC_MSG_RESULT(no)
! DEBUG="no"
! fi
! AC_SUBST(DEBUG)
dnl
--- 57,107 ----
AC_SUBST(BUGREPORT)
+ dnl other flags
+ dnl AC_ISC_POSIX
! ##--------------------------------------------------------------
! ## Pd external objects
! PD_OBJECT_EXTERNALS="sprinkler\$(EXEEXT)"
! AC_SUBST(PD_OBJECT_EXTERNALS)
!
!
! ##--------------------------------------------------------------
! ## Pd directories
AC_ARG_WITH(pd-dir,
! AC_HELP_STRING([--with-pd-dir=DIR], [PD base directory (default=PREFIX/pd)]),
! [pddir="$withval"],
! [pddir="\${prefix}/pd"])
! pddocdir="${pddir}/doc/5.reference"
! AC_SUBST(pddir)
! AC_SUBST(pddocdir)
!
AC_ARG_WITH(pd-include,
! AC_HELP_STRING([--with-pd-include=DIR], [PD include directory (default=NONE)]),
! [pdincludedir="$withval"],
! [pdincludedir=""])
! if test -n "$pdincludedir" ; then
! IFLAGS="$IFLAGS -I$pdincludedir"
! fi
! AC_SUBST(pdincludedir)
! AC_ARG_WITH(pd-extdir,
! AC_HELP_STRING([--with-pd-extdir=DIR], [Directory for PD externals (default=PDDIR/externs)]),
! [pdexternsdir="$withval"],
! [pdexternsdir="$pddir/externs"])
! AC_SUBST(pdexternsdir)
dnl
! dnl Check for m_pd.h
dnl
! CPPFLAGS="$CPPFLAGS $IFLAGS"
! AC_CHECK_HEADER(m_pd.h,[],
! AC_MSG_WARN([-----------------------------------------------------------------])
! AC_MSG_WARN([could not find PD header file 'm_pd.h' -- things might get ugly.])
! AC_MSG_WARN([-----------------------------------------------------------------]),
! [/* nonempty includes: compile only */])
+ ##--------------------------------------------------------------
+ ## local config
dnl
***************
*** 122,128 ****
fi
! dnl
! dnl machine-dependent variables
! dnl
LD=ld
if test `uname -s` = Linux;
--- 149,173 ----
fi
!
! ##--------------------------------------------------------------
! ## debug?
! AC_MSG_CHECKING([whether we are building a debug version])
! AC_ARG_ENABLE([debug],
! AC_HELP_STRING([--enable-debug],[build debug version (default=no)]))
! if test "$enable_debug" == "yes" ; then
! AC_MSG_RESULT(yes)
! DEBUG="yes"
! AC_DEFINE(SPRINKLER_DEBUG,1,
! [Define this to include debugging code for the 'readdir' external.])
! else
! AC_MSG_RESULT(no)
! DEBUG="no"
! fi
! AC_SUBST(DEBUG)
!
!
! ##--------------------------------------------------------------
! ## machine-dependent variables
! ##
LD=ld
if test `uname -s` = Linux;
***************
*** 130,138 ****
LFLAGS="-export_dynamic -shared"
if test "$DEBUG" == "no"; then
OFLAGS="-O6 -funroll-loops -fomit-frame-pointer"
else
OFLAGS="-g"
fi
! EXT=pd_linux
fi
--- 175,184 ----
LFLAGS="-export_dynamic -shared"
if test "$DEBUG" == "no"; then
+ #OFLAGS="-O6 -funroll-loops -fomit-frame-pointer -finline-limit-10000000"
OFLAGS="-O6 -funroll-loops -fomit-frame-pointer"
else
OFLAGS="-g"
fi
! PDEXT=pd_linux
fi
***************
*** 149,153 ****
-shared -rdata_shared"
OFLAGS="$CFLAGS"
! EXT=pd_irix6
fi
--- 195,199 ----
-shared -rdata_shared"
OFLAGS="$CFLAGS"
! PDEXT=pd_irix6
fi
***************
*** 156,160 ****
LFLAGS="-o32 -DUNIX -DIRIX -O2 -shared -rdata_shared"
OFLAGS="$CFLAGS"
! EXT=pd_irix5
fi
--- 202,206 ----
LFLAGS="-o32 -DUNIX -DIRIX -O2 -shared -rdata_shared"
OFLAGS="$CFLAGS"
! PDEXT=pd_irix5
fi
***************
*** 166,170 ****
LD=cc
LFLAGS="-bundle -undefined suppress -flat_namespace"
! EXT=pd_darwin
DFLAGS="$DFLAGS -DMACOSX"
--- 212,216 ----
LD=cc
LFLAGS="-bundle -undefined suppress -flat_namespace"
! PDEXT=pd_darwin
DFLAGS="$DFLAGS -DMACOSX"
***************
*** 176,178 ****
fi
! AC_OUTPUT(makefile sprinkler-help.pd)
--- 222,229 ----
fi
!
! ##-- restore user's CFLAGS
! CFLAGS="$UCFLAGS"
! CPPFLAGS="$UCPPFLAGS"
!
! AC_OUTPUT(config/Makefile sprinkler-help.pd Makefile)
--- makefile.in DELETED ---
--- NEW FILE: Makefile.am ---
# File: ./Makefile.am
# Package: sprinkler
# Description:
# + top-level automake file
#
# Process this file with Automake to create Makefile.in.
#-----------------------------------------------------------------------
#-----------------------------------------------------------------------
# Options & Subdirectories
#-----------------------------------------------------------------------
## --- automake options
#AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip
AUTOMAKE_OPTIONS = foreign
## --- recursion subdirectories
#SUBDIRS = config src
## --- pseudo-deps for '.SUFFIXES'
SUFFIXES = .pod .txt . at PDEXT@
#-----------------------------------------------------------------------
# Variables: cleanup
#-----------------------------------------------------------------------
## --- mostlyclean: built by 'make' & commonly rebuilt
#MOSTLYCLEANFILES =
## --- clean: built by 'make'
#CLEANFILES =
## --- distclean: built by 'configure'
DISTCLEANFILES = \
config.log \
config.cache \
config.status
## -- maintainerclean: built by maintainer / by hand
MAINTAINERCLEANFILES = \
*$(EXEEXT) \
.*~ *~ \
Makefile Makefile.in \
aclocal.m4 \
configure \
install-sh \
stamp-h.in \
config.h.in \
compile \
config.guess \
config.sub \
depcomp \
install-sh \
ltmain.sh \
missing \
mkinstalldirs \
texinfo.tex \
ylwrap
# $(PODS:.pod=.txt)
maintainer-clean-local:
rm -rf autom4te.cache
#CVSCLEAN_SUBDIRS = $(SUBDIRS)
#CVSCLEANFILES = Makefile.in Makefile
#-----------------------------------------------------------------------
# Additional Variables & Rules: PODS
#-----------------------------------------------------------------------
PODS = README.pod
.pod.txt:
pod2text $< $@
all-local: $(PODS:.pod=.txt)
#-----------------------------------------------------------------------
# Variables: distribution
#-----------------------------------------------------------------------
## --- extra distribution files
EXTRA_DIST = \
$(PODS:.pod=.txt) autogen.sh configure \
README.cvs GnuGPL.txt \
Makefile.in
## --- recursion subdirectories for 'make dist'
#DIST_SUBDIRS = $(SUBDIRS)
## --- dist-hook: when another 'Makefile.am' is overkill
#DISTHOOK_DIRS = foo
#DISTHOOK_FILES = foo/bar.txt foo/baz.txt
#dist-hook:
# for d in $(DISTHOOK_DIRS); do\
# mkdir -p $(distdir)/$$d ;\
# done
# for f in $(DISTHOOK_FILES); do\
# cp -p $(srcdir)/$$f $(distdir)/$$f ;\
# done
#dist-bz2: dist-bzip2 ;
#-----------------------------------------------------------------------
# Rules: cleanup
#-----------------------------------------------------------------------
.PHONY: cvsclean cvsclean-hook
cvsclean: maintainer-clean ;
##======================================================================
## sources etc
##======================================================================
#-----------------------------------------------------------------------
# Flags and variables
#-----------------------------------------------------------------------
PDEXT = @PDEXT@
EXEEXT = . at PDEXT@
#-----------------------------------------------------------------------
# pd externals (hacked _PROGRAMS target)
#-----------------------------------------------------------------------
## --- externals
pdexterns_PROGRAMS = @PD_OBJECT_EXTERNALS@
## --- possible externals
EXTRA_PROGRAMS = \
sprinkler
## --- patches
pdexterns_DATA =
## --- documentation
pddoc_DATA = sprinkler-help.pd
#-----------------------------------------------------------------------
# sources
#-----------------------------------------------------------------------
sprinkler_SOURCES = \
sprinkler.c
#-----------------------------------------------------------------------
# external compilation : flags
#-----------------------------------------------------------------------
DEFS = @DEFS@
AFLAGS = @AFLAGS@
DFLAGS = @DFLAGS@
IFLAGS = @IFLAGS@
LFLAGS = @LFLAGS@
OFLAGS = @OFLAGS@
WFLAGS = -Wall -Winline
#GLIB_IFLAGS = @GLIB_IFLAGS@
#GLIB_LFLAGS = @GLIB_LFLAGS@
AM_CPPFLAGS = $(IFLAGS) $(DFLAGS)
AM_CFLAGS = $(OFLAGS) $(WFLAGS) $(AFLAGS)
sprinkler_LDFLAGS = $(LFLAGS)
#sprinkler_LDADD =
#-----------------------------------------------------------------------
# Variables: distribution
#-----------------------------------------------------------------------
## --- extra distribution files
EXTRA_DIST += \
$(pddoc_DATA) \
$(pdexterns_DATA)
Index: autogen.sh
===================================================================
RCS file: /cvsroot/pure-data/externals/sprinkler/autogen.sh,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** autogen.sh 8 Sep 2002 00:15:19 -0000 1.1.1.1
--- autogen.sh 2 Aug 2007 22:45:39 -0000 1.2
***************
*** 1,4 ****
#!/bin/sh
! autoconf
! pod2text README.pod README.txt
--- 1,48 ----
#!/bin/sh
! #-----------------------------------------------------------------------
! # File: autogen.sh
! # Description:
! # + wrapper for m4 black-magic
! #-----------------------------------------------------------------------
!
! MY_ALDIRS="."
! MY_AHDIRS=""
! MY_AMDIRS="."
! MY_ACDIRS="."
!
! test -z "$ACLOCAL" && ACLOCAL=aclocal
! test -z "$AUTOHEADER" && AUTOHEADER=autoheader
! test -z "$AUTOMAKE" && AUTOMAKE=automake
! test -z "$AUTOCONF" && AUTOCONF=autoconf
!
! if test -n "$MY_ALDIRS"; then
! for d in $MY_ALDIRS ; do
! echo "(cd $d ; $ACLOCAL)"
! (cd $d ; $ACLOCAL)
! done
! fi
!
! if test -n "$MY_AHDIRS"; then
! for d in $MY_AHDIRS ; do
! echo "(cd $d ; $AUTOHEADER)"
! (cd $d ; $AUTOHEADER)
! done
! fi
!
! if test -n "$MY_AMDIRS"; then
! for d in $MY_AMDIRS ; do
! echo "(cd $d ; $AUTOMAKE -a)"
! (cd $d ; $AUTOMAKE -a)
! done
! fi
!
! if test -n "$MY_ACDIRS"; then
! for d in $MY_ACDIRS ; do
! echo "(cd $d ; $AUTOCONF)"
! (cd $d ; $AUTOCONF)
! done
! fi
!
! #echo "(./configure)"
! #./configure $*
--- install-sh DELETED ---
--- NEW FILE: README.txt ---
README for pd external 'sprinkler' (formerly 'forward')
DESCRIPTION
'sprinkler' objects do dynamic control-message dissemination.
Given a list as input, a 'sprinkler' object interprets the initial list
element as the name of a 'receive' object, and [send]s the rest of the
list to that object.
INSTALLATION
Issue the following commands to the shell:
cd sprinkler-X.YY (or wherever you extracted the distribution)
./configure
make
make install
BUILD OPTIONS
The 'configure' script supports the following options, among others:
--enable-debug , --disable-debug
Whether to enable verbose debugging messages. Default=no.
--enable-forward , --disable-forward
Whether to create [forward] objects as instances of the [sprinkler]
class (MAX-incompatible). Default=no.
--enable-all-forwardmess , --disable-all-forwardmess
Whether to use pd_forwardmess() for all messages. If this option is
disabled (the default), messages of length 1 will be handled
specially; thus a symbol 'foo' will be passed as 'symbol foo',
rather than just 'foo'.
Default=no.
Future versions of 'sprinkler' may use pd_forwardmess() for all
messages by default -- go on, try it!
ACKNOWLEDGEMENTS
PD by Miller Puckette and others.
Ideas, black magic, and other nuggets of information drawn from code by
Guenter Geiger, Larry Troxler, and iohannes m zmoeling.
Thanks to Krzysztof Czaja for pointing out to me the existence of MAX
"forward", and to Miller Puckette for the name "sprinkler".
Thanks to Erasmus Zipfel for a bugreport and useful ideas.
KNOWN BUGS
One of the acknowledgements used to be in this section. Sorry, folks.
Backwards-compatible version is incompatible with MAX.
Semantic strangeness with singleton messages is somewhat cryptic.
AUTHOR
Bryan Jurish <moocow at ling.uni-potsdam.de>
More information about the Pd-cvs
mailing list