aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-03-07 20:38:17 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-03-07 20:38:17 +0000
commit8f96e6c51997d29f686ff46819adde81a45007f3 (patch)
tree620512771f9817403c82b34bb89f6c2fd7a62fb9
parent830bfe47d5b083ddb468df8270f5e28e3a66b774 (diff)
removed traces of old build-system/updated docs
svn path=/trunk/externals/iem/iemmatrix/; revision=17439
-rw-r--r--INSTALL.txt15
-rw-r--r--src/Make.config.in30
-rw-r--r--src/Makefile148
-rw-r--r--src/acinclude.m4162
-rw-r--r--src/config.h.in127
-rw-r--r--src/configure.ac259
6 files changed, 7 insertions, 734 deletions
diff --git a/INSTALL.txt b/INSTALL.txt
index bef6ecd..880eb82 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -20,9 +20,8 @@ Installation/Compilation instructions for "iemmatrix"
2) mac OS-X:
============
- there is nothing special in the code, so it should compile out of the box:
- "cd" to iemmatrix/src
- run "./bootstrap.sh; ./configure; make" (for further details please see "1) linux")
+ there is nothing special in the code, so it should compile out of the
+ box (for generic instructions, please see "1) linux")
building with a special version of Pd:
to build iemmatrix with your special version of Pd, you should specify the path to your Pd ressources
(e.g. "./configure --with-pd=/Applications/Pd.app/Contents/Resources")
@@ -44,8 +43,8 @@ Installation/Compilation instructions for "iemmatrix"
http://lists.puredata.info/pipermail/pd-list/2005-05/028266.html
i will support a makefile for msvc as soon as i boot into windows again
-CrossCompilation for w32 with MinGW (http://www.mingw.org) on linux-systems
- you need a cross-compilation tool-chain for windows (there is a debian-package mingw32)
+CrossCompilation for w32 with MinGW-w64 (http://www.mingw.org) on linux-systems
+ you need a cross-compilation tool-chain for windows (there is a debian-package mingw-w64)
run "./configure" and specify the path to your windows installation of pd
the simplest way is to give the PDPATH via the "--with-pd=PDPATH" flag; you have to make
sure that the pd-sources are in PDPATH/src and the compiled pd-binaries in PDPATH/bin
@@ -53,14 +52,14 @@ CrossCompilation for w32 with MinGW (http://www.mingw.org) on linux-systems
to your "m_pd.h" (with --includedir) and to your "pd.lib" (with --libdir)
don't forget to override the default extension ("pd_linux" on linux-systems) with the more appropriate "dll".
on bash this looks like:
- % ./configure --disable-PIC --with-extension=dll --host=i586-mingw32msvc --with-pd=/path/to/w32-pd/
+ % ./configure --with-extension=dll --host=i686-w64-mingw32 --with-pd=/path/to/w32-pd/
now run "make" and enjoy.
5) FreeBSD et al:
=================
- i don't know, but why it shouldn't run there ?
- try the configure in iemmatrix/src (see 1)linux for more information)
+ i don't know, but why shouldn't it run there ?
+ try autotools (see "1) linux" for more information)
and report any success or failure
diff --git a/src/Make.config.in b/src/Make.config.in
deleted file mode 100644
index 6105c9c..0000000
--- a/src/Make.config.in
+++ /dev/null
@@ -1,30 +0,0 @@
-LIBRARY_NAME=@PACKAGE_NAME@
-TARNAME = $(LIBRARY_NAME)-@PACKAGE_VERSION@.tgz
-
-# when build as a library this holds a pre-processor define
-# (e.g. "-DZEXY_LIBRARY")
-# when build as single externals this is empty
-BUILDLIBRARY =@BUILDLIBRARY@
-
-PREFIX =@prefix@@PDLIBDIR@
-
-INSTALL_BIN=$(DESTDIR)$(PREFIX)/lib/pd/extra
-INSTALL_DOC=$(DESTDIR)$(PREFIX)/lib/pd/extra/$(LIBRARY_NAME)
-
-EXT = @EXT@
-DEFS = @DFLAGS@
-IFLAGS = -I. @INCLUDES@
-
-CC = @CC@
-LD = @LD@
-STRIP = @STRIP@
-STRIPFLAGS= @STRIPFLAGS@
-
-WFLAGS =
-
-CONFIGUREFLAGS = @CONFIGUREFLAGS@
-MAKEDEP_FLAGS = @MAKEDEP_FLAGS@
-LIBRARY_CPPFLAGS = $(IFLAGS) $(DEFS) $(BUILDLIBRARY) -DPD $(WFLAGS) @CPPFLAGS@ $(CFLAGS)
-LFLAGS = @LFLAGS@
-LIBRARY_CFLAGS = $(IFLAGS) $(DEFS) $(BUILDLIBRARY) -DPD $(WFLAGS) @CFLAGS@ $(CFLAGS)
-LIBS = @LIBS@
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index e0eab96..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,148 +0,0 @@
-default: all
-
--include Make.config
-
-.PHONY: default all everything dist \
- clean realclean distclean \
- install install-bin install-doc install-abs \
- tests \
- $(LIBRAY_NAME) library externals
-
-VPATH = .:../alias/
-.SUFFIXES: .$(EXT)
-
-
-TESTDIR=../tests
-
-
-#####################
-# CORE: core library, ought to be statically-linked with each and every .pd_linux
-# LHELPER: infrastructure for iemmatrix.pd_linux
-# ????:
-# ALIAS: alias-objects, MUST NOT be linked statically into iemmatrix.pd_linux
-
-CORESRC=$(LIBRARY_NAME)_binops.c $(LIBRARY_NAME)_utility.c \
- mtx_qhull/list.c mtx_qhull/vectors.c mtx_qhull/zhull.c
-LHELPERSRC=$(LIBRARY_NAME).c $(LIBRARY_NAME)_sources.c
-PDOBJECTSRC=$(sort $(filter-out $(LHELPERSRC) $(CORESRC), $(filter %.c, $(wildcard *.c))))
-ALIASSRC=$(subst ../alias/,,$(sort $(filter %.c, $(wildcard ../alias/*.c))))
-
-ALLSRC=$(CORESRC) $(LHELPERSRC) $(PDOBJECTSRC) $(ALIASSRC)
-
-COREOBJ=$(CORESRC:.c=.o)
-LHELPEROBJ=$(LHELPERSRC:.c=.o)
-PDOBJ=$(PDOBJECTSRC:.c=.o)
-ALIASOBJ=$(ALIASSRC:.c=.o)
-
-PDOBJECTS=$(PDOBJECTSRC:.c=.$(EXT))
-ALIASOBJECTS=$(ALIASSRC:.c=.$(EXT))
-
-
--include $(ALLSRC:.c=.d)
-
-## 2nd only generate depend-files when we have Make.config included
-## and thus MAKEDEP_FLAGS defined
-ifdef MAKEDEP_FLAGS
-## dependencies: as proposed by the GNU-make documentation
-## see http://www.gnu.org/software/make/manual/html_node/make_47.html#SEC51
-%.d: %.c
- @set -e; rm -f $@; \
- $(CPP) $(MAKEDEP_FLAGS) $(LIBRARY_CPPFLAGS) $< > $@.$$$$; \
- sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
- rm -f $@.$$$$
-endif
-
-
-## if $(BUILDLIBRARY) is defined, the default is to
-## build everything as a single library
-## else we build separate externals
-ifneq "$(BUILDLIBRARY)" ""
-all: $(LIBRARY_NAME)
- cp $(LIBRARY_NAME).$(EXT) ..
-else
-all: externals
-endif
-
-%.o : %.c
- $(CC) $(LIBRARY_CFLAGS) $(AFLAGS) -c -o $@ $<
-
-%.$(EXT) : %.o $(COREOBJ)
- $(LD) $(LFLAGS) $(AFLAGS) -o $@ $^ $(LIBS)
- $(STRIP) $(STRIPFLAGS) $@
-
-$(LIBRARY_NAME).$(EXT): $(COREOBJ) $(LHELPEROBJ) $(PDOBJ)
- $(LD) $(LFLAGS) $(AFLAGS) -o $@ $^ $(LIBS)
- $(STRIP) $(STRIPFLAGS) $@
-
-$(LIBRARY_NAME): $(LIBRARY_NAME).$(EXT)
- @echo "$< done"
-
-externals: $(PDOBJECTS) $(ALIASOBJECTS)
-
-library: $(LIBRARY_NAME)
-
-
-clean:
- -rm -f *.$(EXT) *.o */*.o
-
-METAFILE = ../iemmatrix-meta.pd
-
-realclean: clean
- -rm -f *~ _* aclocal.m4 configure config.h config.log config.status
- -rm -f *.d *.d.*
- -rm -f ../VERSION.txt $(METAFILE)
-
-distclean: realclean
- -rm -f Make.config ../*.$(EXT)
- -rm -f $(LIBRARY_NAME).exp $(LIBRARY_NAME).lib $(LIBRARY_NAME).ncb \
- $(LIBRARY_NAME).opt $(LIBRARY_NAME).plg
- -rm -rf autom4te.cache/
-
-tests: all
- make -C $(TESTDIR)
-
-install: install-bin install-doc install-abs
- -install -d $(INSTALL_DOC)
- -install -m 644 ../VERSION.txt $(INSTALL_DOC)
- -install -m 644 $(METAFILE) $(INSTALL_DOC)
-
-install-bin:
- -install -d $(INSTALL_DOC)
- -install -m 644 *.$(EXT) $(INSTALL_DOC)
-
-install-doc:
- -install -d $(INSTALL_DOC)
- -install -m 644 ../doc/*.pd $(INSTALL_DOC)
-
-install-abs:
- -install -d $(INSTALL_DOC)
- -install -m 644 ../abs/*.pd $(INSTALL_DOC)
-
-dist: all realclean
- (cd ../..;tar czvf $(TARNAME) $(LIBRARY_NAME))
-
-everything: clean all install distclean
-
-
-#######################
-configure: configure.ac aclocal.m4
- autoconf
-
-aclocal.m4: acinclude.m4
- aclocal
-
-Make.config: Make.config.in configure
- ./configure $(CONFIGUREFLAGS)
-
-$(LIBRARY_NAME)_sources.c $(LIBRARY_NAME)_sources.h:
- ./makesource.sh
-#######################
-
-
-
-debug:
- @echo SOURCES $(SOURCES)
- @echo HELPERSOURCES $(HELPERSOURCES)
- @echo ALIASSOURCES $(ALIASOBJECTSOURCES)
- @echo TARGETS $(TARGETS)
- @echo OBJECTS $(PDOBJECTS)
diff --git a/src/acinclude.m4 b/src/acinclude.m4
deleted file mode 100644
index df131ca..0000000
--- a/src/acinclude.m4
+++ /dev/null
@@ -1,162 +0,0 @@
-dnl Copyright (C) 2005-2006 IOhannes m zmölnig
-dnl This file is free software; IOhannes m zmölnig
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-# AC_CHECK_CPPFLAGS(ADDITIONAL-CPPFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-#
-# checks whether the $(C) compiler accepts the ADDITIONAL-CPPFLAGS
-# if so, they are added to the CPPFLAGS
-AC_DEFUN([AC_CHECK_CPPFLAGS],
-[
- AC_MSG_CHECKING([whether $CPP accepts "$1"])
- temp_check_cppflags="${CPPFLAGS}"
- CPPFLAGS="$1 ${CPPFLAGS}"
- AC_PREPROC_IFELSE(
- [AC_LANG_SOURCE([[int main(void){return 0;}]])],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_RESULT([no]); CPPFLAGS="${temp_check_cppflags}"])
-])# AC_CHECK_CPPFLAGS
-
-
-
-# AC_CHECK_CFLAGS(ADDITIONAL-CFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-#
-# checks whether the $(C) compiler accepts the ADDITIONAL-CFLAGS
-# if so, they are added to the CFLAGS
-AC_DEFUN([AC_CHECK_CFLAGS],
-[
- AC_MSG_CHECKING([whether $CC accepts "$1"])
-cat > conftest.c << EOF
-int main(){
- return 0;
-}
-EOF
-if $CC $CFLAGS [$1] -o conftest.o conftest.c > /dev/null 2>&1
-then
- AC_MSG_RESULT([yes])
- CFLAGS="${CFLAGS} [$1]"
- AC_CHECK_CPPFLAGS([$1])
- [$2]
-else
- AC_MSG_RESULT([no])
- [$3]
-fi
-])# AC_CHECK_CFLAGS
-
-# AC_CHECK_CXXFLAGS(ADDITIONAL-CXXFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-#
-# checks whether the $(CXX) (c++) compiler accepts the ADDITIONAL-CXXFLAGS
-# if so, they are added to the CXXFLAGS
-AC_DEFUN([AC_CHECK_CXXFLAGS],
-[
- AC_MSG_CHECKING([whether $CXX accepts "$1"])
-cat > conftest.c++ << EOF
-int main(){
- return 0;
-}
-EOF
-if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ [$1] > /dev/null 2>&1
-then
- AC_MSG_RESULT([yes])
- CXXFLAGS="${CXXFLAGS} [$1]"
- AC_CHECK_CPPFLAGS([$1])
- [$2]
-else
- AC_MSG_RESULT([no])
- [$3]
-fi
-])# AC_CHECK_CXXFLAGS
-
-# AC_CHECK_FRAMEWORK(FRAMEWORK, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-#
-#
-AC_DEFUN([AC_CHECK_FRAMEWORK],
-[
- AC_MSG_CHECKING([for "$1"-framework])
-
- temp_check_ldflags_org="${LDFLAGS}"
- LDFLAGS="-framework [$1] ${LDFLAGS}"
-
- AC_LINK_IFELSE(AC_LANG_PROGRAM(,), [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"])
-
- if test "x$temp_check_ldflags_success" = "xyes"; then
- AC_MSG_RESULT([yes])
- [$2]
- else
- AC_MSG_RESULT([no])
- LDFLAGS="$temp_check_ldflags_org"
- [$3]
- fi
-])# AC_CHECK_FRAMEWORK
-
-# AC_CHECK_LDFLAGS(ADDITIONAL-LDFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-#
-# checks whether the $(LD) linker accepts the ADDITIONAL-LDFLAGS
-# if so, they are added to the LDFLAGS
-AC_DEFUN([AC_CHECK_LDFLAGS],
-[
- AC_MSG_CHECKING([whether linker accepts "$1"])
- temp_check_ldflags_org="${LDFLAGS}"
- LDFLAGS="$1 ${LDFLAGS}"
-
- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"])
-
- if test "x$temp_check_ldflags_success" = "xyes"; then
- AC_MSG_RESULT([yes])
- [$2]
- else
- AC_MSG_RESULT([no])
- LDFLAGS="$temp_check_ldflags_org"
- [$3]
- fi
-])# AC_CHECK_LDFLAGS
-
-
-AC_DEFUN([AC_CHECK_FAT],
-[
-AC_ARG_ENABLE(fat-binary,
- [ --enable-fat-binary=ARCHS
- build an Apple Multi Architecture Binary (MAB);
- ARCHS is a comma-delimited list of architectures for
- which to build; if ARCHS is omitted, then the package
- will be built for all architectures supported by the
- platform (e.g. "ppc,i386" for MacOS/X and Darwin;
- if this option is disabled or omitted entirely, then
- the package will be built only for the target
- platform],
- [fat_binary=$enableval], [fat_binary=no])
-if test "$fat_binary" != no; then
- AC_MSG_CHECKING([target architectures])
-
- # Respect TARGET_ARCHS setting from environment if available.
- if test -z "$TARGET_ARCHS"; then
- # Respect ARCH given to --enable-fat-binary if present.
- if test "$fat_binary" != yes; then
- TARGET_ARCHS=`echo "$fat_binary" | tr ',' ' '`
- else
- # Choose a default set of architectures based upon platform.
- TARGET_ARCHS="ppc i386"
- fi
- fi
- AC_MSG_RESULT([$TARGET_ARCHS])
-
- define([Name],[translit([$1],[./-], [___])])
- # /usr/lib/arch_tool -archify_list $TARGET_ARCHS
- []Name=""
- for archs in $TARGET_ARCHS
- do
- []Name="$[]Name -arch $archs"
- done
-
- if test "x$[]Name" != "x"; then
- AC_CHECK_CFLAGS($[]Name,,[]Name="")
- fi
-
- if test "x$[]Name" != "x"; then
- AC_CHECK_LDFLAGS($[]Name,,[]Name="")
- fi
-
- undefine([Name])
-fi
-])# AC_CHECK_FAT
diff --git a/src/config.h.in b/src/config.h.in
deleted file mode 100644
index c86dafa..0000000
--- a/src/config.h.in
+++ /dev/null
@@ -1,127 +0,0 @@
-/* config.h.in. Generated from configure.ac by autoheader. */
-
-/* Define to 1 if you have the <fftw3.h> header file. */
-#undef HAVE_FFTW3_H
-
-/* Define to 1 if you have the `getpagesize' function. */
-#undef HAVE_GETPAGESIZE
-
-/* can gsl compute complex eigenvalues? */
-#undef HAVE_GSL_EIGEN_NONSYMM
-
-/* can gsl compute Bessel functions? */
-#undef HAVE_GSL_BESSEL
-
-/* Define to 1 if you have the <gsl/gsl_linalg.h> header file. */
-#undef HAVE_GSL_GSL_LINALG_H
-
-/* Define to 1 if you have the <gsl/gsl_sf_bessel.h> header file. */
-#undef HAVE_GSL_GSL_LINALG_H
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the `c' library (-lc). */
-#undef HAVE_LIBC
-
-/* Define to 1 if you have the `crtdll' library (-lcrtdll). */
-#undef HAVE_LIBCRTDLL
-
-/* Define to 1 if you have the `fftw3' library (-lfftw3). */
-#undef HAVE_LIBFFTW3
-
-/* Define to 1 if you have the `gsl' library (-lgsl). */
-#undef HAVE_LIBGSL
-
-/* Define to 1 if you have the `gslcblas' library (-lgslcblas). */
-#undef HAVE_LIBGSLCBLAS
-
-/* Define to 1 if you have the `m' library (-lm). */
-#undef HAVE_LIBM
-
-/* Define to 1 if you have the `pd' library (-lpd). */
-#undef HAVE_LIBPD
-
-/* Define to 1 if you have the `sndfile' library (-lsndfile). */
-#undef HAVE_LIBSNDFILE
-
-/* can math compute Bessel functions? */
-#undef HAVE_MATH_BESSEL
-
-/* Define to 1 if you have the <math.h> header file. */
-#undef HAVE_MATH_H
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have a working `mmap' system call. */
-#undef HAVE_MMAP
-
-/* Define to 1 if you have the `select' function. */
-#undef HAVE_SELECT
-
-/* Define to 1 if you have the <sndfile.h> header file. */
-#undef HAVE_SNDFILE_H
-
-/* Define to 1 if you have the `socket' function. */
-#undef HAVE_SOCKET
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdio.h> header file. */
-#undef HAVE_STDIO_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the `strerror' function. */
-#undef HAVE_STRERROR
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/param.h> header file. */
-#undef HAVE_SYS_PARAM_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/time.h> header file. */
-#undef HAVE_SYS_TIME_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <time.h> header file. */
-#undef HAVE_TIME_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
diff --git a/src/configure.ac b/src/configure.ac
deleted file mode 100644
index 1ae1e58..0000000
--- a/src/configure.ac
+++ /dev/null
@@ -1,259 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-AC_INIT([iemmatrix],[0.2],[zmoelnig@iem.at])
-
-AC_CONFIG_HEADER(config.h)
-DFLAGS="${DFLAGS} -DHAVE_CONFIG_H"
-
-dnl Checks for programs.
-AC_PROG_CC
-
-AC_SUBST(STK)
-AC_SUBST(DFLAGS)
-AC_SUBST(LFLAGS)
-AC_SUBST(EXT)
-AC_SUBST(LD)
-AC_SUBST(STRIP)
-AC_SUBST(STRIPFLAGS)
-AC_SUBST(BUILDLIBRARY)
-AC_SUBST(REFERENCEPATH)
-AC_SUBST(PDLIBDIR)
-AC_SUBST(INCLUDES)
-AC_SUBST(CONFIGUREFLAGS)
-
-LIBRARY_NAME=${ac_unique_file%.*}
-
-## store the flags passed to us
-## is there no way to get the flags without quotes?
-#CONFIGUREFLAGS=${ac_configure_args}
-## and is this solution portable? time will show....
-CONFIGUREFLAGS=$(echo ${ac_configure_args} | sed "s/'//g")
-
-AC_ARG_WITH(extension, [ --with-extension=<ext> enforce a certain extension for the dynamic library (e.g. dll)])
-AC_ARG_WITH(pd, [ --with-pd=</path/to/pd> where to look for pd-headers and and -libs])
-
-AC_ARG_ENABLE(PIC, [ --disable-PIC disable compilation with PIC-flag])
-if test "x" = "x${enable_PIC}" ; then
- enable_PIC="${with_PIC}"
-fi
-
-if test "x$enable_PIC" != "xno"; then
- AC_CHECK_CFLAGS([-fPIC])
-fi
-
-
-AC_ARG_ENABLE(library,[ --disable-library split the library into single externals])
-if test "xno" != "x${enable_library}" ; then
-dnl LATER: find a more generic way to generate the .._LIBRARY define
- BUILDLIBRARY="-DLIBRARY"
-fi
-
-
-
-dnl Checks for libraries.
-dnl Replace `main' with a function in -lc:
-AC_CHECK_LIB(c, main)
-AC_CHECK_LIB(crtdll, fclose)
-
-dnl Replace `main' with a function in -lm:
-AC_CHECK_LIB(m, main)
-dnl Replace `main' with a function in -lpthread:
-dnl AC_CHECK_LIB(pthread, main)
-dnl Replace `main' with a function in -lfftw3:
-AC_CHECK_LIB([fftw3],
- [fftw_execute],
- [AC_CHECK_HEADER([fftw3.h],
- [AC_DEFINE(USE_FFTW,1,[can we use fftw?])],
- )])
-
-dnl for soundfile reading (and writing, if we do that...)
-AC_CHECK_LIB(sndfile, sf_close)
-
-dnl for gnu scientific library -lgsl:
-dnl AC_CHECK_LIB([m], [cos])
-AC_CHECK_LIB([gslcblas], [cblas_dgemm])
-AC_CHECK_LIB([gsl], [gsl_blas_dgemm])
-AC_CHECK_LIB([gsl], [gsl_eigen_nonsymm],[AC_DEFINE(HAVE_GSL_EIGEN_NONSYMM,1,[can gsl compute complex eigenvalues?])])
-AC_CHECK_LIB([gsl], [gsl_sf_bessel_Jn],AC_DEFINE(HAVE_GSL_BESSEL,1,[can gsl compute Bessel functions?]))
-
-dnl for math.h Bessel/Neumann functions
-AC_CHECK_LIB([m], [jn],AC_DEFINE(HAVE_MATH_BESSEL,1,[can math compute Bessel functions?]))
-
-
-if test "x$with_pd" != "x"; then
- if test -d "${with_pd}/src"; then
- INCLUDES="-I${with_pd}/src ${INCLUDES}"
- fi
- if test -d "${with_pd}/bin"; then
- LIBS="-L${with_pd}/bin ${LIBS}"
- fi
-fi
-
-if test "x$includedir" != "x"; then
- for id in $includedir
- do
- if test -d $id; then INCLUDES="-I$id $INCLUDES"; fi
- done
-fi
-if test "x$libdir" != "x"; then
- for id in $libdir
- do
- if test -d $id; then LIBS="-L$id $LIBS"; fi
- done
-fi
-
-AC_CHECK_LIB(pd, nullfn)
-
-dnl Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS(stdlib.h stdio.h string.h math.h time.h sys/time.h fftw3.h sndfile.h gsl/gsl_linalg.h gsl/gsl_sf_bessel.h)
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-AC_HEADER_TIME
-
-dnl Checks for library functions.
-AC_FUNC_MMAP
-AC_CHECK_FUNCS(select socket strerror)
-
-
-### make-depend flags
-if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
- AC_SUBST(MAKEDEP_FLAGS, "-MM")
-else
- AC_SUBST(MAKEDEP_FLAGS, "-M")
-fi
-
-
-
-### can we build fat-binaries
-AC_CHECK_FAT(ARCH_FLAGS)
-
-dnl check for "-mms-bitfields" cflag
-AC_CHECK_CFLAGS([-mms-bitfields])
-
-
-dnl isn't there a better way to check for good linker/stripper ?
-
-dnl if we don't have $LD set, we set it to $(CC)
-dnl LD=${LD:=$CC}
-if test "x$LD" = "x"
-then
- if test "x$host" != "x"
- then
- LD=${host}-ld
- if $(which ${LD} > /dev/null)
- then
- :
- else
- LD=""
- fi
- fi
-fi
-LD=${LD:=$CC}
-
-dnl if we don't have $STRIP set, we set it to ${host}-strip or strip
-if test "x$STRIP" = "x"
-then
- if test "x$host" != "x"
- then
- STRIP=${host}-strip
- if $(which ${host}-strip > /dev/null)
- then
- :
- else
- STRIP="echo fake strip"
- fi
- else
- STRIP=strip
- fi
-fi
-dnl STRIP=${STRIP:=strip}
-
-
-dnl
-dnl OK, checks which machines are here now
-dnl this needs some rethinking when cross-compiling (?)
-dnl
-
-# OSX
-AC_CHECK_LDFLAGS([-bundle -undefined suppress -flat_namespace])
-
-# un*x
-AC_CHECK_LDFLAGS([-shared])
-
-if test `uname -s` = Linux;
-then
- EXT=pd_linux
- STRIPFLAGS="--strip-unneeded"
-fi
-
-dnl This should use '-bundle_loader /path/to/pd/bin/pd' instead of'-undefined suppress'
-dnl then strip might do something
-if test `uname -s` = Darwin;
-then
- LD=${CC}
- EXT=pd_darwin
- STRIP="echo faking strip"
- STRIPFLAGS=
-
- if test "$enable_lpt" = "yes"; then
- AC_MSG_ERROR("lpt not supported on this platform");
- fi
- if test "$enable_lpt" = ""; then
- AC_MSG_WARN("lpt not supported on this platform - disabling");
- enable_lpt="no";
- fi
-fi
-
-if test `uname | sed -e 's/^MINGW.*/NT/'` = NT ;
-then
- LD=${CC}
-# LDFLAGS="-shared pd.dll"
- EXT=dll
-fi
-
-AC_CHECK_LDFLAGS([-shared pd.dll])
-
-if test `uname -s` = IRIX64;
-then
- LDFLAGS="-n32 -DUNIX -DIRIX -DN32 -woff 1080,1064,1185 \
- -OPT:roundoff=3 -OPT:IEEE_arithmetic=3 -OPT:cray_ivdep=true \
- -shared -rdata_shared"
- EXT=pd_irix6
- dnl DFLAGS="-DUNIX -DIRIX6 ${DFLAGS}"
- STRIPFLAGS="--strip-unneeded"
- if test "$enable_lpt" = "yes"; then
- AC_MSG_ERROR("lpt not supported on this platform");
- fi
- if test "$enable_lpt" = ""; then
- AC_MSG_WARN("lpt not supported on this platform - disabling");
- enable_lpt="no";
- fi
-fi
-
-if test `uname -s` = IRIX32;
-then
- LDFLAGS="-o32 -DUNIX -DIRIX -O2
- -shared -rdata_shared"
- EXT=pd_irix5
- dnl DFLAGS="-DUNIX -DIRIX5 ${DFLAGS}"
- STRIPFLAGS="--strip-unneeded"
- if test "$enable_lpt" = "yes"; then
- AC_MSG_ERROR("lpt not supported on this platform");
- fi
- if test "$enable_lpt" = ""; then
- AC_MSG_WARN("lpt not supported on this platform - disabling");
- enable_lpt="no";
- fi
-fi
-
-if test "x$with_extension" != "x"
-then
- EXT=$with_extension
-fi
-
-LFLAGS=${LDFLAGS}
-AC_OUTPUT(Make.config)
-AC_OUTPUT(../VERSION.txt)
-AC_OUTPUT(../iemmatrix-meta.pd)
-
-dnl rm -f conftest.*