OSDN Git Service

イニシャルコミット
[marathon/Aorta.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.68])
5 AC_INIT([Aorta], [2.1], [http://sf.net/tracker/?group_id=179330&atid=888719])
6 AC_CONFIG_HEADERS([config.h])
7
8 AM_INIT_AUTOMAKE
9
10 # Checks for programs.
11 AC_PROG_CC
12 AC_PROG_CPP
13 AC_PROG_CXX
14 AC_PROG_CXXCPP
15 AC_PROG_INSTALL
16
17 # Checks for header files.
18 AC_CHECK_HEADERS([stdlib.h])
19
20 # Checks for typedefs, structures, and compiler characteristics.
21 AC_HEADER_STDBOOL
22 AC_C_INLINE
23
24 # Checks for library functions.
25 AC_FUNC_MALLOC
26 AC_CHECK_FUNCS([floor memset pow sqrt])
27
28 # Checks for libsquish.
29 AC_CHECK_LIB([squish], [main], [founda=yes], [founda=no])
30 AC_LANG_PUSH([C++])
31 AC_CHECK_HEADER([squish.h], [foundb=yes], [foundb=no])
32 AC_LANG_POP()
33 if test "x$founda" = xno || test "x$foundb" = xno; then
34         AC_MSG_ERROR([libsquish is missing])
35 fi
36
37 # check wxWigets.
38 AM_OPTIONS_WXCONFIG  
39 reqwx=2.8.0
40 AM_PATH_WXCONFIG($reqwx, wxWin=1)
41
42 if test "$wxWin" != 1; then
43         AC_MSG_ERROR([wxWidgets is missing.])
44 else
45         CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
46         CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
47         CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
48         LIBS="$LIBS $WX_LIBS"
49 fi
50
51 # add some windows goodies
52 case $target in
53 *-*-mingw32*)
54         make_windows=true
55         ;;
56 *)
57         make_windows=false
58         ;;
59 esac
60 AM_CONDITIONAL(MAKE_WINDOWS, test x$make_windows = xtrue)
61
62 AC_CONFIG_FILES([Makefile])
63 AC_OUTPUT
64
65 echo "Configuration done. Now type \"make\"."