]>
Commit | Line | Data |
---|---|---|
e602dae8 KO |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | ||
3 | AC_PREREQ(2.59) | |
4 | AC_INIT([libsample],[1.2.5],[vslavik@fastmail.fm]) | |
5 | AC_CONFIG_SRCDIR([libsample.cpp]) | |
6 | ||
7 | ||
8 | dnl --------------------------------------------------------------------------- | |
9 | dnl DEFINE CONFIGURE OPTIONS | |
10 | dnl --------------------------------------------------------------------------- | |
11 | ||
12 | dnl define all the wx-config related options | |
13 | dnl (i.e. --with-wxdir, --with-wx-config, --with-wx-prefix, --with-wx-exec-prefix) | |
14 | WX_CONFIG_OPTIONS | |
15 | ||
16 | dnl define all the wxpresets related options | |
17 | WX_STANDARD_OPTIONS([debug,unicode,shared,toolkit,wxshared]) | |
18 | ||
19 | ||
20 | ||
21 | dnl --------------------------------------------------------------------------- | |
22 | dnl CONFIGURE CHECKS | |
23 | dnl --------------------------------------------------------------------------- | |
24 | ||
25 | dnl these checks are required by bakefile: | |
26 | AC_CANONICAL_SYSTEM | |
27 | AC_PROG_AWK | |
28 | AC_PROG_INSTALL | |
29 | AC_PROG_LN_S | |
30 | AC_PROG_RANLIB | |
31 | AC_PROG_CC | |
32 | AC_PROG_CXX | |
33 | AC_PROG_CXXCPP | |
34 | ||
35 | dnl we want to always have DEBUG==WX_DEBUG and UNICODE==WX_UNICODE | |
36 | WX_DEBUG=$DEBUG | |
37 | WX_UNICODE=$UNICODE | |
38 | ||
39 | dnl the following macros will search for the best matching wxWidgets build | |
40 | dnl (taking in count the values of the --enable-debug|unicode|shared and of | |
41 | dnl the --with-toolkit|wxshared options) and then set appropriately all the | |
42 | dnl WX_* options | |
43 | WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS | |
44 | WX_CONFIG_CHECK([2.8.0], [wxWin=1],,[core,base],[$WXCONFIG_FLAGS]) | |
45 | WX_DETECT_STANDARD_OPTION_VALUES | |
46 | ||
47 | dnl here all WX_* option values are available for your own processing... | |
48 | ||
49 | ||
50 | ||
51 | ||
52 | dnl --------------------------------------------------------------------------- | |
53 | dnl CONFIGURE END | |
54 | dnl --------------------------------------------------------------------------- | |
55 | ||
56 | AC_BAKEFILE([m4_include(autoconf_inc.m4)]) | |
57 | AC_CONFIG_FILES([Makefile]) | |
58 | AC_OUTPUT | |
59 | ||
60 | ||
61 | dnl show a nice summary of the chosen build settings to the user | |
62 | WX_STANDARD_OPTIONS_SUMMARY_MSG_BEGIN | |
63 | WX_STANDARD_OPTIONS_SUMMARY_MSG_END | |
64 |