1 AC_INIT(screen-message, 0.18, mail@joachim-breitner.de)
2 AC_CONFIG_SRCDIR([sm.c])
3 AM_INIT_AUTOMAKE([foreign])
4 AC_CONFIG_FILES([setup.iss README.Win32])
7 [*mingw32msvc*],[win32=true],
10 AM_CONDITIONAL(WIN32, test "x$win32" = xtrue)
11 AS_IF([test "x$win32" = xtrue],[
12 AC_CHECK_TOOL(WINE,[wine],[],[])
13 AC_CHECK_TOOL(WINEPATH,[winepath],[],[])
14 AC_CHECK_TOOL(WINDRES,[windres],[],[])
18 [AS_HELP_STRING([--with-issc=PATH],
19 [path to the Inno Setup compiler for win32 cross builds])],
23 AS_IF([test "x$with_iscc" != xno],
25 AC_SUBST(ISCC,[$with_iscc])
28 AS_IF([test "x$win32" = xtrue],
29 [AC_MSG_ERROR("You need to specify --with-iscc when building for Win32")]
35 AC_ARG_WITH([win32-gtk],
36 [AS_HELP_STRING([--with-win32-gtk=PATH],
37 [path to the gtk+ source bundle for win32 cross builds])],
41 AS_IF([test "x$with_win32_gtk" != xno],
42 [AC_SUBST(WIN32_GTK, [`$WINEPATH -w $with_win32_gtk`])
43 AS_VAR_APPEND(PKG_CONFIG," --define-variable prefix=$with_win32_gtk")
44 export PKG_CONFIG_PATH="$with_win32_gtk/lib/pkgconfig:$PKG_CONFIG_PATH"
47 AS_IF([test "x$win32" = xtrue],
48 [AC_MSG_ERROR("You need to specify --with-win32-gtk when building for Win32")]
53 AC_CONFIG_HEADERS(config.h)
59 PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.10 gdk-2.0 >= 2.10 pango >= 1.16)
63 AC_CONFIG_FILES([Makefile])