AC_PREREQ(2.59) AC_INIT([json-dbus-examples], 0.0.0, [bugs@pengutronix.de]) AC_CONFIG_SRCDIR([services/python/hello-world.py]) AC_CANONICAL_BUILD AC_CANONICAL_HOST AM_MAINTAINER_MODE AM_SILENT_RULES([yes]) CFLAGS="${CFLAGS} -W -Wall" # # Checks for programs. # AC_CHECK_PROG([HAVE_PYTHON],[python],[yes],[no]) if test "x$HAVE_PYTHON" != "xyes"; then AC_MSG_ERROR([Python not found.]) fi AC_PATH_PROGS([LIGHTTPD],[lighttpd],,) if test -z "$LIGHTTPD"; then AC_MSG_ERROR([lighttpd not found. Define LIGHTTPD=/path/to/lighttpd or make sure lighttpd is in \$PATH]) fi AC_SUBST(LIGHTTPD) AC_PATH_PROGS([JSON_DBUS_BRIDGE],[json-dbus-bridge],,) if test -z "$JSON_DBUS_BRIDGE"; then AC_MSG_ERROR([json-dbus-bridge not found. Set JSON_DBUS_BRIDGE=/path/to/json-dbus-bridge or make sure json-dbus-bridge is in \$PATH]) fi AC_SUBST(JSON_DBUS_BRIDGE) AC_ARG_WITH([qooxdoo-sdk],AS_HELP_STRING([--with-qooxdoo-sdk=PATH], [Path to qooxdoo sdk]), if test -x "$withval/tool/bin/generator.py"; then QOOXDOO_SDK="$withval" else AC_MSG_ERROR(["$withval" contains no valid qooxdoo sdk.]) fi, AC_MSG_ERROR([qooxdoo sdk not found. Please use --with-qooxdoo-sdk=PATH]) ) AC_SUBST(QOOXDOO_SDK) AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2]) AC_CONFIG_FILES([ Makefile web-gui/Makefile web-gui/hello-world/Makefile lighttpd/lighttpd.conf web-gui/hello-world/config.json ]) AC_CONFIG_FILES([run.sh],[chmod +x run.sh]) AC_OUTPUT