1dnl Checks for static linking for wx windows
2AC_ARG_WITH([wx-static],
3            AC_HELP_STRING([--with-wx-static],
4                           [enable static linking for wxwindows (default no)]),
5            [use_static_wx=${withval}],,)
6
7dnl Check for wxwindows
8AM_OPTIONS_WXCONFIG
9AM_PATH_WXCONFIG(2.4.0, wxWin=1)
10if test "$wxWin" != 1; then
11        AC_MSG_ERROR([
12                wxWindows must be installed on your system
13                but the wx-config script couldn't be found.
14                Please check that wx-config is in path, the directory
15                where wxWindows libraries are installed (returned by
16                'wx-config --libs' command) is in LD_LIBRARY_PATH or
17                equivalent variable and wxWindows version is 2.4.0 or above
18		Try http://www.wxwindows.org to download wxwindows.
19        ])
20fi
21
22if test x"$use_static_wx" = x"yes"; then
23	WX_LIBS="$WX_LIBS_STATIC"
24fi
25
26