2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([Aorta], [2.1], [http://sf.net/tracker/?group_id=179330&atid=888719])
6 AC_CONFIG_HEADERS([config.h])
10 # Checks for programs.
17 # Checks for header files.
18 AC_CHECK_HEADERS([stdlib.h])
20 # Checks for typedefs, structures, and compiler characteristics.
24 # Checks for library functions.
26 AC_CHECK_FUNCS([floor memset pow sqrt])
28 # Checks for libsquish.
29 AC_CHECK_LIB([squish], [main], [founda=yes], [founda=no])
31 AC_CHECK_HEADER([squish.h], [foundb=yes], [foundb=no])
33 if test "x$founda" = xno || test "x$foundb" = xno; then
34 AC_MSG_ERROR([libsquish is missing])
40 AM_PATH_WXCONFIG($reqwx, wxWin=1)
42 if test "$wxWin" != 1; then
43 AC_MSG_ERROR([wxWidgets is missing.])
45 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
46 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
47 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
51 # add some windows goodies
60 AM_CONDITIONAL(MAKE_WINDOWS, test x$make_windows = xtrue)
62 AC_CONFIG_FILES([Makefile])
65 echo "Configuration done. Now type \"make\"."