1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.63])
5AC_INIT([wxguitar], [1.01], [indt@mail.ru])
6AC_CONFIG_AUX_DIR([build-aux])
7AM_INIT_AUTOMAKE(wxguitar,1.01)
8AC_CONFIG_SRCDIR([src/wxGuitarMain.cpp])
9AM_GNU_GETTEXT([external])
10
11# Checks for programs.
12AC_PROG_CXX
13AC_PROG_INSTALL
14
15# Checks for libraries.
16AM_OPTIONS_WXCONFIG
17reqwx=2.8.10
18AM_PATH_WXCONFIG($reqwx, wxWin=1)
19if test "$wxWin" != 1; then
20	AC_MSG_ERROR([
21		wxWidgets must be installed on your system.
22
23		Please check that wx-config is in path, the directory
24		where wxWidgets libraries are installed (returned by
25		'wx-config --libs' or 'wx-config --static --libs' command)
26		is in LD_LIBRARY_PATH or equivalent variable and
27		wxWidgets version is $reqwx or above.
28		])
29fi
30
31CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
32CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY -s"
33CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
34LIBS="$LIBS $WX_LIBS"
35#LIBS=`wx-config --libs media,core,base,aui`
36
37# Checks for typedefs, structures, and compiler characteristics.
38AC_HEADER_STDBOOL
39
40# Checks for library functions.
41
42AC_CONFIG_FILES([po/Makefile.in data/Makefile src/Makefile Makefile])
43AC_OUTPUT
44