source: trunk/configure.ac @ 157

Last change on this file since 157 was 152, checked in by guyru, 5 years ago

add a check for wxwidgets to the configure.ac

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 756 bytes
Line 
1AC_INIT([Open Yahtzee],[1.9],[guyrutenberg@gmail.com],[openyahtzee])
2
3AM_INIT_AUTOMAKE([-Wall -Werror])
4AC_CONFIG_SRCDIR([src/openyahtzee.cpp])
5AC_CONFIG_HEADER([config.h])
6
7dnl AC_LANG_CPLUSPLUS
8AC_PROG_CXX
9dnl AM_PROG_LIBTOOL
10
11AM_OPTIONS_WXCONFIG
12#Detect wxWidgets
13MIN_WX_VERSION="2.8.0"
14AM_PATH_WXCONFIG($MIN_WX_VERSION, wxWin=1)
15if test "$wxWin" != 1; then
16AC_MSG_ERROR([
17        wxWidgets must be installed on your system
18        but wx-config script couldn't be found.
19
20        Please check that wx-config is in path, the directory
21        where wxWidgets libraries are installed (returned by
22        'wx-config --libs' command) is in LD_LIBRARY_PATH or
23        equivalent variable and wxWidgets version is $MIN_WX_VERSION or above.
24])
25fi
26
27
28AC_CONFIG_FILES([Makefile src/Makefile])
29AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.