-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
290 lines (241 loc) · 9.77 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
dnl -*-Autoconf-*-
dnl Process this file with autoconf to generate configure.
dnl
dnl The AX_* macros are defined in files in the top-level m4
dnl directory.
#####################################################################
# Set up configuration system
#####################################################################
AC_INIT([gEDA/gaf], [1.6.2], [geda-bug@seul.org], [geda-gaf])
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([libgeda/src/libgeda.c])
AC_CONFIG_AUX_DIR([build-tools])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE
AC_GNU_SOURCE # FIXME for some reason this is needed?
#####################################################################
# Do version number magic
#####################################################################
AX_GIT_VERSION([20110115])
# This is used for keeping the ChangeLog files up-to-date
AC_SUBST([CHANGELOG_BASE], [1.0-20070526])
#####################################################################
# Windows/MinGW/Cygwin support
#####################################################################
AX_WINDOWS_FLAGS
#####################################################################
# Check for compiling & linking tools
#####################################################################
AC_PROG_CC
AC_PROG_CPP
AC_LIBTOOL_WIN32_DLL
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
AX_GCC_FLAGS([-Wall])
AC_PROG_MKDIR_P
AM_PROG_LEX
AX_PROG_AWK
AX_PROG_GROFF
AC_PATH_PROGS([M4], [gm4 m4], [m4])
#####################################################################
# Internationalisation
#####################################################################
AM_NLS
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION([0.16])
AX_DESKTOP_I18N
#####################################################################
# Check for libraries that use pkg-config
#####################################################################
PKG_PROG_PKG_CONFIG
AX_CHECK_GUILE([1.8.0])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0], ,
AC_MSG_ERROR([GLib 2.12.0 or later is required.]))
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], ,
AC_MSG_ERROR([GTK+ 2.10.0 or later is required.]))
PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= 0.15.0], ,
AC_MSG_ERROR([GDK_PIXBUF 0.15.0 or later is required.]))
PKG_CHECK_MODULES(CAIRO, [cairo >= 1.2.0], ,
AC_MSG_ERROR([CAIRO 1.2.0 or later is required.]))
#####################################################################
# Header files & particular functions
#####################################################################
AC_HEADER_SYS_WAIT
# FIXME these checks are obsolete, because every plausible platform
# provides what they check for.
AC_HEADER_STDC
# FIXME these checks may be pointless for one of three reasons: every
# even vaguely sane libc implementation provides them; we don't use
# any of their functions in favour of GLib alternatives; or we don't
# provide an alternative, so the build will fail anyway.
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
# FIXME since we don't have a sensible alternative, if these headers
# are missing we should fail. Also need to remove HAVE_ERRNO_H tests
# in the C source code, since if we *don't* have it the build will
# fail anyway.
AC_CHECK_HEADERS([errno.h fcntl.h])
# FIXME On a system without locale.h, the user may have just disabled NLS
# to be able to build. But are there known systems with working NLS but
# without a locale.h? We do need to include locale.h on some systems
# to be able to build gschem/src/gschem.c
AC_CHECK_HEADERS([locale.h])
# Check for rint in math library. FIXME do we actually need to test
# this? Should we use lrint instead?
AC_CHECK_LIB([m], [lrint],
AC_DEFINE([HAVE_LRINT], 1,
[If your math library has lrint in it, define this]))
AC_CHECK_FUNCS([chown getlogin])
# Check if the getopt header is present
AC_CHECK_HEADERS([getopt.h])
# Check for getopt_long
# On FreeBSD the 'gnugetopt' library is needed.
AC_SEARCH_LIBS([getopt_long], [gnugetopt],
AC_DEFINE([HAVE_GETOPT_LONG], 1,
[Define to 1 if you have the `getopt_long' function.]))
# Check for misc features of awk
AX_AWK_FEATURES
#####################################################################
# Optional things
#####################################################################
# Assertions
AX_OPTION_ASSERT
# API documentation
AX_OPTION_DOXYGEN
# XDG desktop files
AX_OPTION_XDG_DATA
# KDE 3 desktop files
AX_OPTION_KDE3_DATA
# XDG database updates
AX_OPTION_XDG_DB
# libstroke support
AX_OPTION_STROKE
# gattrib
AX_OPTION_GATTRIB
#####################################################################
# Tool-specific setup
#####################################################################
# Where should data files be installed/searched for?
AX_DATA_DIRS
# Where should PCB footprints be searched for?
AX_PCB_DIRS
# Set up libgeda with the correct ld version number
AX_LIBGEDA([38:2:0])
#####################################################################
# Generate output
#####################################################################
AC_CONFIG_FILES([Makefile
intl/Makefile
libgeda/Makefile
libgeda/libgeda.pc
libgeda/po/domain.mak
libgeda/po/Makefile.in
libgeda/data/Makefile
libgeda/docs/Makefile
libgeda/docs/images/Makefile
libgeda/include/Makefile
libgeda/lib/Makefile
libgeda/scheme/Makefile
libgeda/share/Makefile
libgeda/src/Makefile
gschem/Makefile
gschem/po/Makefile.in
gschem/docs/Makefile
gschem/include/Makefile
gschem/scripts/Makefile
gschem/src/Makefile
gschem/examples/Makefile
gschem/lib/Makefile
gschem/lib/system-gschemrc
gschem/data/Makefile
gschem/bitmap/Makefile
gschem/tests/Makefile
gschem/scheme/Makefile
gattrib/Makefile
gattrib/po/Makefile.in
gattrib/design/Makefile
gattrib/docs/Makefile
gattrib/include/Makefile
gattrib/lib/Makefile
gattrib/lib/system-gattribrc
gattrib/src/Makefile
gattrib/data/Makefile
gsymcheck/docs/Makefile
gsymcheck/include/Makefile
gsymcheck/lib/Makefile
gsymcheck/lib/system-gsymcheckrc
gsymcheck/src/Makefile
gsymcheck/tests/Makefile
gsymcheck/Makefile
gnetlist/Makefile
gnetlist/src/Makefile
gnetlist/include/Makefile
gnetlist/scheme/Makefile
gnetlist/examples/Makefile
gnetlist/tests/Makefile
gnetlist/tests/hierarchy/Makefile
gnetlist/tests/hierarchy2/Makefile
gnetlist/tests/drc2/Makefile
gnetlist/tests/common/Makefile
gnetlist/docs/Makefile
gnetlist/docs/vams/Makefile
gnetlist/examples/vams/Makefile
gnetlist/examples/vams/vhdl/Makefile
gnetlist/examples/vams/vhdl/basic-vhdl/Makefile
gnetlist/examples/vams/vhdl/new-vhdl/Makefile
gnetlist/examples/switcap/Makefile
gnetlist/lib/Makefile
gnetlist/utils/Makefile
gnetlist/scripts/Makefile
gnetlist/scripts/annotate.sh
gnetlist/scripts/bom_xref.sh
gnetlist/scripts/bompp.sh
gnetlist/scripts/sw2asc
gnetlist/lib/system-gnetlistrc
utils/Makefile
utils/docs/Makefile
utils/examples/Makefile
utils/examples/gmk_sym/Makefile
utils/examples/gsch2pcb/Makefile
utils/examples/tragesym/Makefile
utils/gschlas/Makefile
utils/gxyrs/Makefile
utils/include/Makefile
utils/lib/Makefile
utils/lib/system-gschlasrc
utils/man/Makefile
utils/scripts/Makefile
utils/src/Makefile
utils/tests/Makefile
utils/tests/gxyrs/Makefile
utils/tests/gxyrs/inputs/Makefile
utils/tests/gxyrs/outputs/Makefile
utils/tests/refdes_renum/Makefile
utils/tests/refdes_renum/inputs/Makefile
utils/tests/refdes_renum/outputs/Makefile
symbols/Makefile
symbols/documentation/Makefile
docs/Makefile
docs/scripts/Makefile
docs/toplevel/Makefile
docs/toplevel/gedadocs.html
docs/wiki/Makefile
docs/wiki/images/smileys/Makefile
docs/wiki/images/Makefile
docs/wiki/images/interwiki/Makefile
docs/wiki/media/geda/Makefile
docs/wiki/media/wiki/Makefile
docs/wiki/media/tragesym/tragesym/Makefile
docs/wiki/media/tragesym/Makefile
docs/wiki/media/Makefile
docs/wiki/media/devel_tips/Makefile
examples/Makefile
examples/RF_Amp/Makefile
examples/RF_Amp/model/Makefile
examples/RF_Amp/sym/Makefile
examples/TwoStageAmp/Makefile
examples/gTAG/Makefile
examples/lightning_detector/Makefile
])
AC_OUTPUT