1 dnl Process this file with autoconf to produce a configure script.
2 dnl Written in 2000 by Christian Bauer <Christian.Bauer@uni-mainz.de>
4 AC_INIT([ShapeFusion], [0.6], [http://sourceforge.net/bugs/?group_id=1997], [shapefusion])
7 dnl Detect the canonical host and target build environment.
13 AM_CONFIG_HEADER(config.h)
15 dnl Checks for programs.
23 dnl some platform specific stuff
26 AC_CHECK_TOOL(WINDRES, windres, :)
29 CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
40 AM_PATH_WXCONFIG($reqwx, wxWidgets=1, , , [--unicode=no])
43 AM_PATH_WXCONFIG($reqwx, wxWidgets=1)
46 if test "$wxWidgets" != 1; then
48 wxWidgets must be installed on your system.
50 Please check that wx-config is in path, the directory
51 where wxWidgets libraries are installed (returned by
52 'wx-config --libs' or 'wx-config --static --libs' command)
53 is in LD_LIBRARY_PATH or equivalent variable and
54 wxWidgets version is $reqwx or above.
58 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
59 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
60 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
63 PKG_CHECK_MODULES([SNDFILE], [sndfile], [
64 CPPFLAGS="$SNDFILE_CFLAGS $CPPFLAGS"
65 LIBS="$SNDFILE_LIBS $LIBS"], AC_ERROR([ShapeFusion requires libsndfile]))
67 dnl Check for libsndfile
68 dnl AC_CHECK_HEADER(sndfile.h, , AC_ERROR([ShapeFusion requires libsndfile]))
69 dnl AC_CHECK_LIB(sndfile, sf_open, [LIBS="-lvorbis -lvorbisenc -lvorbisfile -logg -lsndfile $LIBS"], AC_ERROR([ShapeFusion requires libsndfile]), [-lvorbis -lvorbisenc -lvorbisfile -logg -lFLAC -lsndfile])
71 dnl add some windows goodies
79 AM_CONDITIONAL(MAKE_WINDOWS, test x$make_windows = xtrue)
81 dnl Generate Makefiles.
91 echo "Configuration done. Now type \"make\"."