2 dnl Process this file with autoconf to generate configure.
4 dnl The AX_* macros are defined in files in the top-level m4
7 #####################################################################
8 # Set up configuration system
9 #####################################################################
11 AC_INIT([gEDA/gaf], [1.9.0], [https://bugs.launchpad.net/geda], [geda-gaf])
14 AC_CONFIG_SRCDIR([libgeda/src/libgeda.c])
15 AC_CONFIG_AUX_DIR([build-tools])
16 AC_CONFIG_MACRO_DIR([m4])
17 AC_CONFIG_HEADER([config.h])
19 AM_INIT_AUTOMAKE([parallel-tests color-tests])
22 AC_GNU_SOURCE # FIXME for some reason this is needed?
24 #####################################################################
25 # Do version number magic
26 #####################################################################
28 AX_GIT_VERSION([20121203])
30 # This is used for keeping the ChangeLog files up-to-date
31 AC_SUBST([CHANGELOG_BASE], [1.0-20070526])
33 #####################################################################
34 # Windows/MinGW/Cygwin support
35 #####################################################################
39 #####################################################################
40 # Check for compiling & linking tools
41 #####################################################################
58 AC_PATH_PROGS([M4], [gm4 m4], [m4])
60 #####################################################################
61 # Internationalisation
62 #####################################################################
66 AM_GNU_GETTEXT_VERSION([0.16])
69 #####################################################################
70 # Check for libraries that use pkg-config
71 #####################################################################
75 AX_CHECK_GUILE([1.8.0])
77 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.20.0], ,
78 AC_MSG_ERROR([GLib 2.20.0 or later is required.]))
80 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.16.0], ,
81 AC_MSG_ERROR([GTK+ 2.16.0 or later is required.]))
83 PKG_CHECK_MODULES(GDK, [gdk-2.0 >= 2.16.0], ,
84 AC_MSG_ERROR([GDK 2.16.0 or later is required.]))
86 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= 2.16.0], ,
87 AC_MSG_ERROR([GDK_PIXBUF 2.16.0 or later is required.]))
91 PKG_CHECK_MODULES(PANGOCAIRO, [pangocairo >= 0.26], ,
92 AC_MSG_ERROR([PANGOCAIRO 0.26 or later is required.]))
94 PKG_CHECK_MODULES(PANGO, [pango >= 1.23.0], ,
95 AC_MSG_ERROR([PANGO 1.23.0 or later is required.]))
97 #####################################################################
98 # Header files & particular functions
99 #####################################################################
103 # FIXME these checks are obsolete, because every plausible platform
104 # provides what they check for.
107 # FIXME these checks may be pointless for one of three reasons: every
108 # even vaguely sane libc implementation provides them; we don't use
109 # any of their functions in favour of GLib alternatives; or we don't
110 # provide an alternative, so the build will fail anyway.
111 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
113 # FIXME since we don't have a sensible alternative, if these headers
114 # are missing we should fail. Also need to remove HAVE_ERRNO_H tests
115 # in the C source code, since if we *don't* have it the build will
117 AC_CHECK_HEADERS([errno.h fcntl.h])
119 # FIXME On a system without locale.h, the user may have just disabled NLS
120 # to be able to build. But are there known systems with working NLS but
121 # without a locale.h? We do need to include locale.h on some systems
122 # to be able to build gschem/src/gschem.c
123 AC_CHECK_HEADERS([locale.h])
125 # Check for lrint in math library.
126 AC_CHECK_LIB([m], [lrint],
127 AC_DEFINE([HAVE_LRINT], 1,
128 [If your math library has lrint in it, define this]))
130 AC_CHECK_LIB([m], [atan2])
132 AC_CHECK_FUNCS([chown getlogin])
134 # Check if the getopt header is present
135 AC_CHECK_HEADERS([getopt.h])
136 # Check for getopt_long
137 # On FreeBSD the 'gnugetopt' library is needed.
138 AC_SEARCH_LIBS([getopt_long], [gnugetopt],
139 AC_DEFINE([HAVE_GETOPT_LONG], 1,
140 [Define to 1 if you have the `getopt_long' function.]))
142 # Check for misc features of awk
145 #####################################################################
147 #####################################################################
151 # Viewing documentation
157 # KDE 3 desktop files
159 # XDG database updates
166 #####################################################################
167 # Tool-specific setup
168 #####################################################################
170 # Where should data files be installed/searched for?
172 # Where should PCB footprints be searched for?
174 # Set up libgeda with the correct ld version number
176 # Set up libgedacairo with the correct ld version number
177 AX_LIBGEDACAIRO([1:0:0])
179 #####################################################################
181 #####################################################################
183 AC_CONFIG_FILES([Makefile
188 libgeda/po/domain.mak
189 libgeda/po/Makefile.in
190 libgeda/data/Makefile
191 libgeda/docs/Makefile
192 libgeda/docs/images/Makefile
193 libgeda/include/Makefile
195 libgeda/scheme/Makefile
198 libgedacairo/Makefile
199 libgedacairo/libgedacairo.pc
205 gschem/po/Makefile.in
207 gschem/include/Makefile
208 gschem/scripts/Makefile
210 gschem/examples/Makefile
213 gschem/bitmap/Makefile
214 gschem/tests/Makefile
215 gschem/scheme/Makefile
218 gattrib/po/Makefile.in
219 gattrib/design/Makefile
220 gattrib/docs/Makefile
221 gattrib/include/Makefile
223 gattrib/lib/system-gattribrc
225 gattrib/data/Makefile
227 gsymcheck/docs/Makefile
228 gsymcheck/include/Makefile
229 gsymcheck/lib/Makefile
230 gsymcheck/lib/system-gsymcheckrc
231 gsymcheck/po/Makefile.in
232 gsymcheck/src/Makefile
233 gsymcheck/tests/Makefile
237 gnetlist/po/Makefile.in
238 gnetlist/src/Makefile
239 gnetlist/include/Makefile
240 gnetlist/scheme/Makefile
241 gnetlist/examples/Makefile
242 gnetlist/tests/Makefile
243 gnetlist/tests/hierarchy/Makefile
244 gnetlist/tests/hierarchy2/Makefile
245 gnetlist/tests/drc2/Makefile
246 gnetlist/tests/common/Makefile
247 gnetlist/docs/Makefile
248 gnetlist/docs/vams/Makefile
249 gnetlist/examples/vams/Makefile
250 gnetlist/examples/vams/vhdl/Makefile
251 gnetlist/examples/vams/vhdl/basic-vhdl/Makefile
252 gnetlist/examples/vams/vhdl/new-vhdl/Makefile
253 gnetlist/examples/switcap/Makefile
254 gnetlist/lib/Makefile
255 gnetlist/utils/Makefile
256 gnetlist/scripts/Makefile
257 gnetlist/scripts/annotate.sh
258 gnetlist/scripts/bom_xref.sh
259 gnetlist/scripts/bompp.sh
260 gnetlist/lib/system-gnetlistrc
264 utils/examples/Makefile
265 utils/examples/gmk_sym/Makefile
266 utils/examples/gsch2pcb/Makefile
267 utils/examples/tragesym/Makefile
268 utils/gschlas/Makefile
270 utils/include/Makefile
272 utils/lib/system-gschlasrc
273 utils/scripts/Makefile
277 utils/tests/gxyrs/Makefile
278 utils/tests/gxyrs/inputs/Makefile
279 utils/tests/gxyrs/outputs/Makefile
280 utils/tests/refdes_renum/Makefile
281 utils/tests/refdes_renum/inputs/Makefile
282 utils/tests/refdes_renum/outputs/Makefile
285 symbols/documentation/Makefile
288 docs/scheme-api/Makefile
289 docs/toplevel/Makefile
290 docs/toplevel/gedadocs.html
294 examples/RF_Amp/Makefile
295 examples/RF_Amp/model/Makefile
296 examples/RF_Amp/sym/Makefile
297 examples/TwoStageAmp/Makefile
298 examples/gTAG/Makefile
299 examples/lightning_detector/Makefile