4 m4_define(panda_major_version, 0)
5 m4_define(panda_minor_version, 0)
6 m4_define(panda_micro_version, 54)
7 m4_define(panda_version, panda_major_version.panda_minor_version.panda_micro_version)
9 AC_INIT([Panda], [panda_version],
10 [https://bugs.launchpad.net/panda-smalltalk/+filebug],
13 AC_CONFIG_HEADERS([config.h])
14 AC_CONFIG_SRCDIR([src/st-lexer.c])
16 AM_INIT_AUTOMAKE([1.10 foreign -Wall subdir-objects])
23 if test "x$ac_cv_prog_cc_c99" = "xno"; then
24 AC_MSG_ERROR([cannot find a C99-conforming compiler])
32 AC_CHECK_SIZEOF([void *])
33 AC_CHECK_SIZEOF([int])
34 AC_CHECK_ALIGNOF([void *])
37 AC_HELP_STRING([--enable-debug=@<:@no/yes@:>@],
38 [turn on debugging support @<:@default=yes@:>@]),,
39 enable_debug=$debug_default)
40 if test "x$enable_debug" = "xyes"; then
41 AC_DEFINE([ST_DEBUG], [1], ["Debug support enabled"])
44 # recommended gcc optimization flags for libtommath
45 if test "x$GCC" = "xyes"; then
46 TOMMATH_CFLAGS="-O3 -funroll-loops -fomit-frame-pointer"
47 GDTOA_CFLAGS="-O2 -fPIC -funroll-loops -finline-functions"
49 AC_SUBST(TOMMATH_CFLAGS)
50 AC_SUBST(GDTOA_CFLAGS)
52 AC_DEFINE(PANDA_MAJOR_VERSION, panda_major_version, [Panda major version])
53 AC_SUBST(PANDA_MAJOR_VERSION, panda_major_version)
54 AC_DEFINE(PANDA_MINOR_VERSION, panda_minor_version, [Panda minor version])
55 AC_SUBST(PANDA_MINOR_VERSION, panda_minor_version)
56 AC_DEFINE(PANDA_MICRO_VERSION, panda_micro_version, [Panda micro version])
57 AC_SUBST(PANDA_MICRO_VERSION, panda_micro_version)
59 AC_SUBST([AM_CPPFLAGS])
61 AC_SUBST([AM_CXXFLAGS])
62 AC_SUBST([AM_LDFLAGS])