diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2002-11-19 09:52:46 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2002-11-19 09:52:46 +0000 |
commit | f1dd9d77088157baeee53f9cfbdfe6d117a4bd80 (patch) | |
tree | 277091ffee1c10e61198f8db4efcb21da1d3c1c6 /configure.in |
addedsvn2git-root
svn path=/trunk/externals/plugin~/; revision=216
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..aa359bb --- /dev/null +++ b/configure.in @@ -0,0 +1,48 @@ +dnl Process this file with autoconf to produce a configure script. + +dnl Initialize autoconf and automake. Version number here! +AC_INIT(plugin~.c) +AM_INIT_AUTOMAKE(plugin~, 0.2) +AC_CANONICAL_HOST +AM_MAINTAINER_MODE + +# I don't use libtool. This is only a hack because automake wants +# libtool, and only for installation... Works for automake 1.4, BTW. +LIBTOOL="\$(SHELL) \$(top_builddir)/libtoolkludge" +AC_SUBST(LIBTOOL) + +dnl Look for Pd. +AC_PREFIX_PROGRAM(pd) +PDDIR=$prefix/pd +AC_ARG_WITH(pddir, +[ --with-pddir=... enter absolute path to Pd (PREFIX/pd by default)], + [if expr x"$withval" : "x/" >/dev/null; then + PDDIR=$withval + AC_MSG_RESULT(Installing Pd files in $PDDIR.) + else + AC_MSG_ERROR(Illegal value given to --with-pddir. Give an absolute path.) + fi] +) +AC_SUBST(PDDIR) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_LD +AC_PROG_INSTALL + +dnl Checks for libraries. +AC_CHECK_LIB(c, printf) +AC_CHECK_LIB(m, sin) +AC_CHECK_LIB(dl, dlopen) + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(dirent.h dlfcn.h string.h sys/types.h unistd.h) + +dnl Checks for typedefs, structures, and compiler characteristics. + +dnl Checks for library functions. +AC_CHECK_FUNCS(dlopen) + +dnl Output the makefile and version information file. +AC_OUTPUT(Makefile version.h ladspa/Makefile vst/Makefile win/Makefile) |