dnl Process this file with autoconf to produce a configure script. AC_INIT GEM2PDP_VERSION=0.6 if test -d /usr/local/pd; then PD_DIR=/usr/local/pd elif test -d ../../pd; then PD_DIR=../../pd else echo "Pd sources not found" fi if test -d /usr/local/pd/pdp; then PDP_DIR=/usr/local/pd/pdp elif test -d ../pdp; then PDP_DIR=../pdp else echo "PdP sources not found" fi if test -d /win/Georg/pd-cvs/gem/Gem; then GEM_DIR=/win/Georg/pd-cvs/gem/Gem elif test -d ../../gem/Gem; then GEM_DIR=../../gem/Gem elif test -d ../../gem/Gem; then GEM_DIR=../../gem/Gem else echo "Gem sources not found" fi AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_PROG_INSTALL AC_PROG_MAKE_SET AM_SANITY_CHECK AM_MAINTAINER_MODE AM_WITH_DMALLOC AC_SUBST(GEM2PDP_VERSION) AC_ARG_WITH(pddir, [ --with-pddir= specify an alternate pd source tree]) AC_ARG_WITH(gemdir, [ --with-gemdir= specify an alternate gem source tree]) AC_ARG_WITH(pdpdir, [ --with-pdpdir= specify an alternate pdp source tree]) if test "$with_gemdir" != "" then GEM_DIR=$with_gemdir fi if test "$with_pdpdir" != "" then PDP_DIR=$with_pdpdir fi if test "$with_pddir" != "" then PD_DIR=$with_pddir fi echo -n "looking for gem sources (required) ... " if test -f $GEM_DIR/src/Base/GemMan.h then AC_SUBST(GEM_DIR) echo "ok." else echo "gem source tree not found... install it, fix the path in configure.ac and run autoconf" exit -1 fi AC_SUBST(PD_DIR) echo -n "looking for pdp sources (required) ... " if test -f $PDP_DIR/include/pdp.h then AC_SUBST(PDP_DIR) echo "ok." else echo "pdp source tree not found... install it, fix the path in configure.ac and run autoconf" exit -1 fi LIBS="$LIBS -lm" CFLAGS="$CFLAGS -Wall" AC_CONFIG_FILES([ Makefile ]) AC_OUTPUT