/[projects]/wxCpuThrottle/configure.in
ViewVC logotype

Contents of /wxCpuThrottle/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (show annotations) (download)
Wed Aug 8 19:04:07 2007 UTC (16 years, 8 months ago) by torben
File size: 1321 byte(s)
Initial import...

1 AC_INIT(src/wxcputhrottle.cpp)
2 AM_INIT_AUTOMAKE(wxcputhrottle, 0.1)
3
4 AC_PROG_CXX
5 AC_PROG_INSTALL
6 AC_LIBTOOL_DLOPEN
7 AC_PROG_LIBTOOL
8
9 CPPFLAGS="$CPPFLAGS -Wall -g -fexceptions"
10 CXXFLAGS="$CXXFLAGS -Wall -g -fexceptions"
11
12 WXCONFIG=wx-config
13 AC_ARG_WITH(wx-config,
14 [[ --with-wx-config=FILE Use the given path to wx-config when determining
15 wxWidgets configuration; defaults to "wx-config"]],
16 [
17 if test "$withval" != "yes" -a "$withval" != ""; then
18 WXCONFIG=$withval
19 fi
20 ])
21
22 wxversion=0
23
24 AC_DEFUN([WXTEST],
25 [
26 AC_REQUIRE([AC_PROG_AWK])
27 AC_MSG_CHECKING([wxWidgets version])
28 if wxversion=`$WXCONFIG --version`; then
29 AC_MSG_RESULT([$wxversion])
30 else
31 AC_MSG_RESULT([not found])
32 AC_MSG_ERROR([wxWidgets is required. Try --with-wx-config.])
33 fi])
34
35 # Call WXTEST func
36 WXTEST
37
38 # Verify minimus requires
39 vers=`echo $wxversion | $AWK 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'`
40 if test -n "$vers" && test "$vers" -ge 2003003; then
41 WX_CPPFLAGS="`$WXCONFIG --cppflags`"
42 WX_CXXFLAGS="`$WXCONFIG --cxxflags | sed -e 's/-fno-exceptions//'`"
43 WX_LIBS="`$WXCONFIG --libs`"
44 else
45 AC_MSG_ERROR([wxWidgets 2.3.3 or newer is required])
46 fi
47
48
49 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
50 CXXFLAGS="$CXXFLAGS $WX_CPPFLAGS"
51
52
53 AC_SUBST(WX_LIBS)
54
55 AC_OUTPUT(Makefile src/Makefile)

  ViewVC Help
Powered by ViewVC 1.1.20