Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14720
Added Files: Tag: devel_0_39 config.h.in configure.in makefile.in Log Message: from now on, DesireData will use autoconf and make.
--- NEW FILE: makefile.in --- VPATH = ../obj:./ OBJ_DIR = ../obj BIN_DIR = ../bin PDEXEC = $(BIN_DIR)/pd EXT= @EXT@ GUINAME= @GUINAME@
INSTALL_PREFIX = @prefix@ GFLAGS = -DINSTALL_PREFIX="$(INSTALL_PREFIX)"
MANDIR = @mandir@
MORECFLAGS = @MORECFLAGS@
INCLUDE = -I. GINCLUDE = $(INCLUDE) @GUIFLAGS@ GLIB = @LIBS@
LDFLAGS = @LDFLAGS@ LIB = @PDLIB@
OPT_CFLAGS = @OPT_CFLAGS@ WARN_CFLAGS = -Wall -W -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch ARCH_CFLAGS = -DPD
CFLAGS = -DDESIRE -DDONTUSESIMD @CFLAGS@ $(ARCH_CFLAGS) $(WARN_CFLAGS) $(OPT_CFLAGS) $(MORECFLAGS)
# the sources
SYSSRC += @SYSSRC@
# DesireData (matju & chun) SRC = desire.c m_hash.c
# devel_0_39 (thomas & tim) SRC += m_fifo.c m_simd.c
# pd miller SRC += m_pd.c m_class.c m_obj.c m_atom.c m_memory.c m_binbuf.c m_conf.c \ m_glob.c m_sched.c s_main.c s_inter.c s_file.c s_loader.c s_path.c \ s_entry.c s_audio.c s_midi.c \ d_ugen.c d_ctl.c d_arithmetic.c d_osc.c d_filter.c d_dac.c d_misc.c \ d_math.c d_fft.c d_mayer_fft.c d_fftroutine.c d_array.c d_global.c \ d_delay.c d_resample.c \ x_arithmetic.c x_connective.c x_interface.c x_midi.c x_misc.c \ x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c x_list.c d_soundfile.c \ $(SYSSRC)
OBJ = $(SRC:.c=.o)
# # ------------------ targets ------------------------------------ #
.PHONY: pd gui externs all warmup
all: $(PDEXEC) $(BIN_DIR)/pd-watchdog $(BIN_DIR)/$(GUINAME) $(BIN_DIR)/pdsend \ $(BIN_DIR)/pdreceive $(BIN_DIR)/pd.tk externs
bin: $(PDEXEC) $(BIN_DIR)/pd-watchdog $(BIN_DIR)/$(GUINAME) $(BIN_DIR)/pdsend \ $(BIN_DIR)/pdreceive $(BIN_DIR)/pd.tk
warmup:: mkdir -p $(OBJ_DIR)
$(OBJ) : %.o : %.c $(OBJ_DIR) $(CC) $(CFLAGS) $(GFLAGS) $(INCLUDE) -c -o $(OBJ_DIR)/$*.o $*.c
$(GOBJ) : %.o : %.c $(OBJ_DIR) $(CC) $(CFLAGS) $(GFLAGS) $(GINCLUDE) -c -o $(OBJ_DIR)/$*.o $*.c
pd: $(PDEXEC)
gui: $(BIN_DIR)/$(GUINAME)
pd-watchdog: $(BIN_DIR)/pd-watchdog
$(BIN_DIR)/pd-watchdog: s_watchdog.c $(CC) -O2 $(STRIPFLAG) -o $(BIN_DIR)/pd-watchdog s_watchdog.c
$(BIN_DIR)/pdsend: u_pdsend.c $(CC) $(CFLAGS) $(STRIPFLAG) -o $(BIN_DIR)/pdsend u_pdsend.c
$(BIN_DIR)/pdreceive: u_pdreceive.c $(CC) $(CFLAGS) $(STRIPFLAG) -o $(BIN_DIR)/pdreceive u_pdreceive.c
$(PDEXEC): $(OBJ) cd ../obj; $(CC) $(LDFLAGS) $(DBG_CFLAGS) -o $(PDEXEC) $(OBJ) \ $(LIB)
$(BIN_DIR)/pd.tk: u_main.tk cp u_main.tk $(BIN_DIR)/pd.tk
#this is for Mac OSX only... $(BIN_DIR)/libPdTcl.dylib: $(GOBJ) $(GSRC) cd ../obj && $(CC) -dynamiclib -read_only_relocs warning \ -o $(BIN_DIR)/libPdTcl.dylib $(GOBJ) \ -F@TCLTK_FRAMEWORKS_PATH@ \ -framework Tcl -framework Tk -framework System \ -Wl,-install_name,@executable_path/../Resources/bin/libPdTcl.dylib install_name_tool -change @TCLTK_FRAMEWORKS_PATH@/Tcl.framework/Versions/8.4/Tcl\ @executable_path/../Frameworks/Tcl.framework/Versions/8.4/Tcl \ -change @TCLTK_FRAMEWORKS_PATH@/Tk.framework/Versions/8.4/Tk \ @executable_path/../Frameworks/Tk.framework/Versions/8.4/Tk \ ../bin/libPdTcl.dylib
externs: cd ../extra/bonk~ ;make @EXTERNTARGET@ cd ../extra/choice ;make @EXTERNTARGET@ cd ../extra/expr~ ;make @EXTERNTARGET@ cd ../extra/fiddle~ ;make @EXTERNTARGET@ cd ../extra/loop~ ;make @EXTERNTARGET@ cd ../extra/lrshift~;make @EXTERNTARGET@ cd ../extra/pique ;make @EXTERNTARGET@
INSTDIR = $(DESTDIR)/$(INSTALL_PREFIX) MANINSTDIR = $(DESTDIR)/$(INSTALL_PREFIX)/$(MANDIR) BINARYMODE=@binarymode@
install: all install -d $(INSTDIR)/bin install -d $(INSTDIR)/lib/pd/bin install $(BIN_DIR)/$(GUINAME) $(INSTDIR)/lib/pd/bin/$(GUINAME) install $(BIN_DIR)/pd-watchdog $(INSTDIR)/lib/pd/bin/pd-watchdog install -m755 desire.tk $(INSTDIR)/bin/desire for file in defaults.ddrc pkgIndex.tcl pre8.5.tcl poe.tcl bgerror.tcl; do \ install $$file $(INSTDIR)/lib/pd/bin/$$file; done cp -r locale icons $(INSTDIR)/lib/pd/bin install $(BINARYMODE) $(PDEXEC) $(INSTDIR)/bin/pd install -m755 $(BIN_DIR)/pdsend $(INSTDIR)/bin/pdsend install -m755 $(BIN_DIR)/pdreceive $(INSTDIR)/bin/pdreceive cp -pr ../doc ../extra $(INSTDIR)/lib/pd/ rm -f $(INSTDIR)/extra/*/*.o install -d $(INSTDIR)/include install -m644 m_pd.h $(INSTDIR)/include/m_pd.h install -d $(MANINSTDIR)/man1 gzip < ../man/pd.1 > $(MANINSTDIR)/man1/pd.1.gz chmod 644 $(MANINSTDIR)/man1/pd.1.gz gzip < ../man/pdsend.1 > $(MANINSTDIR)/man1/pdsend.1.gz chmod 644 $(MANINSTDIR)/man1/pdsend.1.gz gzip < ../man/pdreceive.1 > $(MANINSTDIR)/man1/pdreceive.1.gz chmod 644 $(MANINSTDIR)/man1/pdreceive.1.gz
local-clean: -rm -f ../obj/* $(BIN_DIR)/pd $(BIN_DIR)/$(GUINAME) $(BIN_DIR)/pdsend \ $(BIN_DIR)/pdreceive $(BIN_DIR)/pd-watchdog m_stamp.c -rm -f $(find ../portaudio ../portaudio_v18 -name "*.o") -rm -f *~ -(cd ../doc/6.externs; rm -f *.pd_linux) -rm -f makefile.dependencies touch makefile.dependencies chmod 666 makefile.dependencies
extra-clean: -rm -f `find ../extra/ -name "*.pd_*"` -rm -f tags
clean: extra-clean local-clean
distclean: clean rm -rf config.cache config.log config.status makefile tags \ autom4te-*.cache echo all: > makefile echo -e "\t./configure" >> makefile echo -e "\tmake" >> makefile
tags: $(SRC) $(GSRC); ctags *.[ch]
depend: makefile.dependencies
makefile.dependencies: makefile $(CC) $(INCLUDE) $(CFLAGS) -M $(SRC) > makefile.dependencies
uninstall: rm -f -r $(INSTDIR)/lib/pd rm -f $(INSTDIR)/bin/pd rm -f $(INSTDIR)/bin/pdsend rm -f $(INSTDIR)/bin/pdreceive rm -f $(INSTDIR)/include/m_pd.h rm -f $(MANINSTDIR)/man1/pd.1.gz rm -f $(MANINSTDIR)/man1/pdsend.1.gz rm -f $(MANINSTDIR)/man1/pdreceive.1.gz
include makefile.dependencies
--- NEW FILE: config.h.in ---
#undef HAVE_ALLOCA
#undef HAVE_ALLOCA_H
--- NEW FILE: configure.in --- dnl Process this file with autoconf to produce a configure script. AC_INIT(d_arithmetic.c)
AC_SUBST(alsa, yes) AC_SUBST(jack, no) AC_SUBST(portaudio, no) AC_SUBST(portmidi, no) AC_SUBST(binarymode, -m755) AC_SUBST(PDLIB) AC_SUBST(MORECFLAGS) AC_SUBST(EXT) AC_SUBST(OPT_CFLAGS) AC_SUBST(USE_DEBUG_CFLAGS, no) AC_SUBST(SYSSRC) AC_SUBST(TCLTK_FRAMEWORKS_PATH) AC_SUBST(TCLTK_FRAMEWORKS_PATH) AC_SUBST(STRIPFLAG) AC_SUBST(GUINAME) AC_SUBST(GUIFLAGS) AC_SUBST(OSNUMBER) AC_SUBST(EXTERNTARGET)
dnl check for features
AC_ARG_ENABLE(alsa, [ --enable-alsa alsa audio driver], alsa=$enableval) AC_ARG_ENABLE(jack, [ --enable-jack jack audio server], jack=$enableval) AC_ARG_ENABLE(portaudio,[ --enable-portaudio portaudio], portaudio=$enableval) AC_ARG_ENABLE(portmidi, [ --enable-portmidi portmidi], portmidi=$enableval) AC_ARG_ENABLE(debug, [ --enable-debug debugging support], USE_DEBUG_CFLAGS=$enableval) AC_ARG_ENABLE(static, [ --enable-static link statically], static=$enableval) AC_ARG_ENABLE(setuid, [ --enable-setuid install as setuid (linux)], setuid=$enableval)
dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_CPP
dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME
dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/ioctl.h sys/time.h unistd.h bstring.h)
dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_CHECK_FUNCS(gettimeofday select socket strerror) AC_FUNC_ALLOCA
dnl Checks for libraries. dnl Checking for `dlopen' function in -ldl: AC_CHECK_LIB(dl, dlopen,PDLIB="$PDLIB -ldl", echo "dynamic link support required" || exit 1)
dnl Checking for `sin' function in -lffm: dnl ffm is the fast math library on the alpha AC_CHECK_LIB(ffm, sin,PDLIB="$PDLIB -lffm")
dnl Checking for `sin' function in -lm: AC_CHECK_LIB(m, sin,PDLIB="$PDLIB -lm", echo "math library required" || exit 1)
dnl Checking for `pthread_create' function in -pthread AC_CHECK_LIB(pthread, pthread_create,PDLIB="$PDLIB -lpthread", echo "pthreads required" || exit 1)
dnl look for tcl 8.x... do I really have to go through all this!?
foundit=no if test $foundit == "no"; then AC_CHECK_HEADER(tcl.h,foundit=yes,) fi if test $foundit == "no"; then AC_CHECK_HEADER(tcl8.7/tcl.h, GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.7";foundit=yes,) fi if test $foundit == "no"; then AC_CHECK_HEADER(tcl8.6/tcl.h, GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.6";foundit=yes,) fi if test $foundit == "no"; then AC_CHECK_HEADER(tcl8.5/tcl.h, GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.5";foundit=yes,) fi if test $foundit == "no"; then AC_CHECK_HEADER(tcl8.4/tcl.h, GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.4";foundit=yes,) fi if test $foundit == "no"; then AC_CHECK_HEADER(tcl8.3/tcl.h, GUIFLAGS="$GUIFLAGS -I/usr/include/tcl8.3";foundit=yes,) fi if test $foundit == "no"; then echo no tcl header found exit -1 fi
AC_CHECK_LIB(tcl8.7, main,, AC_CHECK_LIB(tcl8.6, main,, AC_CHECK_LIB(tcl8.5, main,, AC_CHECK_LIB(tcl8.4, main,, AC_CHECK_LIB(tcl8.3, main,, echo no tcl library found || exit 1)))))
AC_CHECK_LIB(tk8.7, main,, AC_CHECK_LIB(tk8.6, main,, AC_CHECK_LIB(tk8.5, main,, AC_CHECK_LIB(tk8.4, main,, AC_CHECK_LIB(tk8.3, main,, echo no tk library found || exit 1)))))
if test `uname -s` = Linux; then dnl Ckecking for ALSA echo .................... alsa= $alsa dnl This should be fixed so Pd can use ALSA shared libraries where appropriate. if test x$alsa == xyes; then AC_CHECK_LIB(asound,snd_pcm_info,PDLIB="$PDLIB -lasound" ; alsa="yes",alsa="no") fi
dnl Checking for JACK
if test x$jack == xyes; then AC_CHECK_LIB(rt,shm_open,LIBS="$LIBS -lrt") AC_CHECK_LIB(jack,jack_set_xrun_callback,LIBS="$LIBS -ljack";jack=xrun,jack=no) AC_CHECK_LIB(jack,jack_set_error_function,LIBS="$LIBS -ljack";jack=yes,jack=no) fi
LDFLAGS="-Wl,-export-dynamic" if test "$static" = "yes"; then LDFLAGS="$LDFLAGS -static"; fi EXT=pd_linux MORECFLAGS="-DDL_OPEN -DPA_USE_OSS -DPA_LITTLE_ENDIAN -DUNIX -DUNISTD \ -DUSEAPI_OSS -I../portaudio/pa_common -I../portaudio/pablio \ -I../portmidi/pm_common -I../portmidi/pm_linux -fno-strict-aliasing" SYSSRC="s_midi_oss.c s_audio_oss.c" if test x$alsa == "xyes"; then SYSSRC=$SYSSRC" s_audio_alsa.c s_audio_alsamm.c s_midi_alsa.c" MORECFLAGS=$MORECFLAGS" -DPA_USE_ALSA -DUSEAPI_ALSA" LDFLAGS=$LDFLAGS" -lasound" fi
if test x$portaudio == "xyes"; then MORECFLAGS="-DUSEAPI_PORTAUDIO -DPA19 "$MORECFLAGS SYSSRC="s_audio_pa.c \ s_audio_pablio.c \ s_audio_paring.c \ ../portaudio/pa_common/pa_allocation.c \ ../portaudio/pa_common/pa_converters.c \ ../portaudio/pa_common/pa_cpuload.c \ ../portaudio/pa_common/pa_dither.c \ ../portaudio/pa_common/pa_front.c \ ../portaudio/pa_common/pa_process.c \ ../portaudio/pa_common/pa_skeleton.c \ ../portaudio/pa_common/pa_stream.c \ ../portaudio/pa_common/pa_trace.c \ ../portaudio/pa_unix/pa_unix_hostapis.c \ ../portaudio/pa_unix/pa_unix_util.c \ ../portaudio/pa_unix_oss/pa_unix_oss.c "$SYSSRC if test x$alsa == "xyes"; then SYSSRC=$SYSSRC" ../portaudio/pa_linux_alsa/pa_linux_alsa.c" MORECFLAGS=$MORECFLAGS" -Wno-error" fi fi if test x$setuid == "xyes"; then binarymode="-m4755"; fi STRIPFLAG=-s GUINAME="pd-gui" if test x$USE_DEBUG_CFLAGS == "xyes"; then OPT_CFLAGS="-g" else OPT_CFLAGS="-O3 -funroll-loops -fomit-frame-pointer" if test x$jack == "xyes"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi if test x$jack == "xrun"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi fi if test x$jack == "xyes"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi if test x$jack == "xrun"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi echo OPT_CFLAGS --------------- $OPT_CFLAGS OSNUMBER=0
if test x$jack == "xyes"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi if test x$jack == "xrun"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi fi
if test x$jack == "xyes"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi if test x$jack == "xrun"; then LDFLAGS=$LDFLAGS" -lrt -ljack"; fi
if test `uname -s` = Darwin; then LDFLAGS="-Wl -framework CoreAudio \ -framework AudioUnit -framework AudioToolbox \ -framework Carbon -framework CoreMIDI" EXT=pd_darwin MORECFLAGS="-DMACOSX -DUNISTD -I/usr/X11R6/include \ -I../portaudio/pa_common -I../portaudio/pablio \ -I../portmidi/pm_common -I../portmidi/pm_mac \ -I../portmidi/porttime \ -Wno-error \ -DUSEAPI_PORTAUDIO -DPA_BIG_ENDIAN -DPA19 -DPA_USE_COREAUDIO" SYSSRC="s_midi_pm.c s_audio_pa.c \ s_audio_pablio.c \ s_audio_paring.c \ ../portaudio/pa_common/pa_allocation.c \ ../portaudio/pa_common/pa_converters.c \ ../portaudio/pa_common/pa_cpuload.c \ ../portaudio/pa_common/pa_dither.c \ ../portaudio/pa_common/pa_front.c \ ../portaudio/pa_common/pa_process.c \ ../portaudio/pa_common/pa_skeleton.c \ ../portaudio/pa_common/pa_stream.c \ ../portaudio/pa_common/pa_trace.c \ ../portaudio/pa_unix/pa_unix_util.c \ ../portaudio/pa_mac_core/pa_mac_core.c \ ../portaudio/pa_mac/pa_mac_hostapis.c \ ../portmidi/pm_mac/pmmac.c \ ../portmidi/pm_mac/pmmacosxcm.c \ ../portmidi/pm_common/pmutil.c \ ../portmidi/pm_common/portmidi.c \ ../portmidi/porttime/ptmacosx_cf.c " STRIPFLAG="" GUINAME="libPdTcl.dylib"
# find the Tcl/Tk Frameworks if test -d "../../Frameworks"; then # Miller's location TCLTK_FRAMEWORKS_PATH="../../Frameworks" elif test -d "/Library/Frameworks"; then # get it from the default install location TCLTK_FRAMEWORKS_PATH="/Library/Frameworks" else # Panther has Tcl here; Tiger has Tcl and Tk here TCLTK_FRAMEWORKS_PATH="/System/Library/Frameworks" fi GUIFLAGS="-F$TCLTK_FRAMEWORKS_PATH -framework Tcl -framework Tk \ -I$TCLTK_FRAMEWORKS_PATH/Tk.framework/Versions/Current/Headers \ -I$TCLTK_FRAMEWORKS_PATH/Tcl.framework/Versions/Current/Headers \ -I$TCLTK_FRAMEWORKS_PATH/Tcl.framework/Versions/8.4/PrivateHeaders" if test x$USE_DEBUG_CFLAGS == "xyes"; then OPT_CFLAGS="-g -O1" else OPT_CFLAGS="-O3" fi OSNUMBER=2 EXTERNTARGET=pd_darwin if test x$jack == "xyes"; then LDFLAGS=$LDFLAGS" -framework Jack"; fi if test x$jack == "xrun"; then LDFLAGS=$LDFLAGS" -framework Jack"; fi fi
# support for jack, on either linux or darwin:
if test x$jack == "xyes"; then MORECFLAGS=$MORECFLAGS" -DUSEAPI_JACK"; SYSSRC=$SYSSRC" s_audio_jack.c"; fi if test x$jack == "xrun"; then MORECFLAGS=$MORECFLAGS" -DUSEAPI_JACK -DJACK_XRUN"; SYSSRC=$SYSSRC" s_audio_jack.c"; fi
AC_OUTPUT(makefile)