-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
122 lines (108 loc) · 3.5 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Copyright (C) 2007-9 Andrew Schofield <andrew_s@fahmon.net>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
m4_include(m4/wxwin.m4)
m4_include(m4/libcurl.m4)
m4_define([wxcurl_lt_current], [1])
AC_INIT([FahMon],
[2.3.99.4],
[Andrew Schofield andrew_s@fahmon.net],
[FahMon])
AC_PREFIX
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])
WXCURL_LT_VERSION_INFO="wxcurl_lt_current"
AC_SUBST(WXCURL_LT_VERSION_INFO)
AC_PROG_CXX
AC_PROG_LIBTOOL
LIBCURL_CHECK_CONFIG([yes], [7.15.0], [curlOk=1], [curlOk=0])
if [[ $curlOk = 0 ]]; then
AC_MSG_ERROR([
Could not find a valid libCURL installation on your system.
If you do not have libCURL installed or you have an old version
then please install the latest version from
http://curl.haxx.se/libcurl/
If you have a valid libCURL installed, then please check the config.log
file for more details about the failure of this check.
])
fi
AM_OPTIONS_WXCONFIG
reqwx=2.8.0
AC_MSG_NOTICE([ANSI wxWidgets])
AM_PATH_WXCONFIG($reqwx, wxWin=1, wxWin=0, adv core qa net)
AC_MSG_NOTICE([Unicode wxWidgets])
AM_PATH_WXCONFIG($reqwx, wxWinU=1, wxWinU=0, --unicode adv core qa net)
if test "$wxWin" != 1; then
if test "$wxWinU" != 1; then
AC_MSG_ERROR([
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is $reqwx or above.
])
fi
fi
if test "$wxWinU" != 1; then
AC_MSG_WARN([
Unicode build of wxWidgets not found.
While FahMon will still compile with the ansi version
of wxWidgets, you will lose the ability to use any unicode
character sets for translations. If this is not what you
want, install the unicode build of wxWidgets and run
configure again.
])
fi
CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS $LIBCURL_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY $LIBCURL_CPPFLAGS"
CFLAGS="$CFLAGS $WX_CFLAGS_ONLY $LIBCURL_CPPFLAGS"
LIBS="$LIBS $WX_LIBS $LIBCURL"
ALL_LINGUAS="en_GB fr_FR pt_PT ru_RU pl_PL sv_SE cs_CZ nl_NL pt_BR es_ES de_DE it_IT nb_NB zh_CN sk_SK"
AM_GNU_GETTEXT([external])
AC_CONFIG_FILES([
Makefile
README
FahMon.nsi
fahmon.spec
doxconf
FahMon-Info.plist
doc/Makefile
doc/help/Makefile
doc/help/User_Guide.tex
m4/Makefile
po/Makefile.in
resources/Makefile
wxcurl/Makefile
wxcurl/include/Makefile
wxcurl/include/wx/Makefile
wxcurl/include/wx/curl/Makefile
wxcurl/src/Makefile
wxcurl/win32_libcurl/Makefile
wxcurl/win32_libcurl/include/Makefile
wxcurl/win32_libcurl/include/curl/Makefile
wxcurl/win32_libcurl/lib/Makefile
src/Makefile
src/include/Makefile
src/include/fahmonConsts.h
src/images/Makefile
src/images/icons/Makefile
src/images/icons/16/Makefile
src/images/icons/24/Makefile
src/images/icons/32/Makefile
src/images/icons/48/Makefile
src/images/icons/64/Makefile
src/images/icons/128/Makefile
src/images/icons/256/Makefile
templates/Makefile
FahMon.xcodeproj/Makefile
mac/FahMon-Info.plist
mac/Makefile
])
AC_OUTPUT