| 1 |
AC_INIT([Open Yahtzee],[1.9.3],[[email protected]],[openyahtzee]) |
| 2 |
|
| 3 |
AM_INIT_AUTOMAKE([-Wall -Werror]) |
| 4 |
AC_CONFIG_SRCDIR([src/openyahtzee.cpp]) |
| 5 |
AC_CONFIG_HEADER([config.h]) |
| 6 |
|
| 7 |
m4_include(macros/wxwin.m4) |
| 8 |
m4_include(macros/ax_check_compile_flag.m4) |
| 9 |
m4_include(macros/ax_boost_base.m4) |
| 10 |
|
| 11 |
# Checks for programs. |
| 12 |
AC_PROG_CXX |
| 13 |
|
| 14 |
AX_CHECK_COMPILE_FLAG([-std=c++0x], [CXXFLAGS="$CXXFLAGS -std=c++0x"]) |
| 15 |
|
| 16 |
# Checks for typedefs, structures, and compiler characteristics. |
| 17 |
AC_HEADER_STDBOOL |
| 18 |
AC_C_INLINE |
| 19 |
AC_TYPE_SIZE_T |
| 20 |
|
| 21 |
# Checks for library functions. |
| 22 |
AC_CHECK_FUNCS([sqrt]) |
| 23 |
|
| 24 |
AM_OPTIONS_WXCONFIG |
| 25 |
|
| 26 |
#Detect wxWidgets |
| 27 |
MIN_WX_VERSION="2.8.0" |
| 28 |
AM_PATH_WXCONFIG($MIN_WX_VERSION, wxWin=1) |
| 29 |
if test "$wxWin" != 1; then |
| 30 |
AC_MSG_ERROR([ |
| 31 |
wxWidgets must be installed on your system |
| 32 |
but wx-config script couldn't be found. |
| 33 |
|
| 34 |
Please check that wx-config is in path, the directory |
| 35 |
where wxWidgets libraries are installed (returned by |
| 36 |
'wx-config --libs' command) is in LD_LIBRARY_PATH or |
| 37 |
equivalent variable and wxWidgets version is $MIN_WX_VERSION or above. |
| 38 |
]) |
| 39 |
fi |
| 40 |
|
| 41 |
AX_BOOST_BASE([1.32]) |
| 42 |
|
| 43 |
|
| 44 |
AC_CONFIG_FILES([Makefile |
| 45 |
man/Makefile |
| 46 |
src/Makefile]) |
| 47 |
AC_OUTPUT |