1 m4_define([adg_lua_version],[0.1.2])
3 m4_define([lua_prereq],5.1.0)
4 m4_define([adg_prereq],0.7.2)
9 dnl Depends on the same autoconf version of the ADG project
11 AC_INIT([adg-lua],adg_lua_version,[http://dev.entidi.com/p/adg-lua/],[adg-lua],[http://adg.entidi.com/])
12 AC_CONFIG_SRCDIR([configure.ac])
13 AC_CONFIG_AUX_DIR([build])
14 AC_CONFIG_MACRO_DIR([build])
15 AM_INIT_AUTOMAKE([1.10 gnits no-dist-gzip dist-bzip2 -Wall -Wno-portability])
17 dnl m4 backward compatibility stuff
18 m4_ifdef([AM_SILENT_RULES],
19 [AM_SILENT_RULES([yes])],
20 [AC_SUBST([AM_V_GEN],[])])
21 m4_ifdef([AM_SUBST_NOTMAKE],[],
22 [AC_DEFUN([AM_SUBST_NOTMAKE],[_AM_SUBST_NOTMAKE($@)])])
23 m4_ifdef([AM_COND_IF],[],
24 [AC_DEFUN([AM_COND_IF],
25 [AS_IF([test -z "$$1_TRUE"],[$2],[$3])])])
30 AX_PROG_LUA(adg_prereq)
34 # Check for required packages
36 dnl Get adgdatadir: if not set, use a sensible default and check for
37 dnl adg-demo.ui existence inside the guessed path.
38 AC_ARG_WITH(adgdatadir,
39 [AS_HELP_STRING([--with-adgdatadir=DIR],
40 [path to the ADG package data @<:@default=DATAROOTDIR/adg@:>@])])
41 AS_IF([test "x$with_adgdatadir" = "x"],
42 [with_adgdatadir="$($PKG_CONFIG --variable=datadir adg-1)/adg"
43 AS_IF([test -f "$with_adgdatadir/adg-demo.ui"],[:],
44 [AC_MSG_WARN([adg-demo.ui missing in adgdatadir ($with_adgdatadir)])])])
45 AC_SUBST([ADGDATADIR],${with_adgdatadir})
50 AC_CONFIG_FILES([adg-demo.lua
57 AC_MSG_NOTICE([generating report
59 AC_PACKAGE_NAME adg_lua_version will be built with the following options:
60 ----------------------------------------------------------
61 Lua interpreter: ${LUA} (version ${LUA_VERSION})
62 LGI library: not checked
63 Path to ADG package data: ${with_adgdatadir}