Forgot the meat.
1 dnl Process this file with autoconf to produce a configure script.
3 dnl Version information.
4 m4_define([glemon_version_major], [0])
5 m4_define([glemon_version_minor], [5])
6 m4_define([glemon_version_micro], [90])
7 m4_define([glemon_version_nano], [])
8 m4_define([glemon_version_tag], [svn])
9 m4_define([glemon_svn_revision], [m4_normalize(esyscmd([svn info |grep ^Revision |cut -d ' ' -f 2]))])
10 m4_define([glemon_version], [glemon_version_major().glemon_version_minor()ifelse(glemon_version_micro(), [], [], [.glemon_version_micro()])ifelse(glemon_version_nano(), [], [], [.glemon_version_nano()])ifelse(glemon_version_tag(), [], [], glemon_version_tag(), [svn], [[_]glemon_version_tag()[]glemon_svn_revision()], [[_]glemon_version_tag()])])
13 AC_INIT([gLEMON], [glemon_version()], [etik-ol@cs.elte.hu], [glemon])
14 AC_CONFIG_AUX_DIR([build-aux])
15 AC_CONFIG_MACRO_DIR([m4])
16 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
17 AC_CONFIG_SRCDIR([main_win.h])
18 AC_CONFIG_HEADERS([config.h])
20 dnl Checks for programs.
23 AM_GNU_GETTEXT_VERSION([0.14.2])
24 AM_GNU_GETTEXT([external])
26 dnl Checks for libraries.
27 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
29 AC_ARG_WITH([lemon-prefix],
30 AS_HELP_STRING([--with-lemon-prefix@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon_prefix=no])
31 if test x"$with_lemon_prefix" != x"no"; then
32 export PKG_CONFIG_PATH="$with_lemon_prefix/lib/pkgconfig/:$PKG_CONFIG_PATH"
35 PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5],
36 [lemon_0_5_found=yes], [
39 PKG_CHECK_MODULES([LEMON_SVNHEAD], [lemon = svnhead],
40 [lemon_svn_head_found=yes], [
42 lemon_svn_head_found=no])
43 if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
44 AC_MSG_ERROR([LEMON not found.])
46 if test x"$lemon_svn_head_found" = x"yes"; then
47 LEMON_CFLAGS="$LEMON_SVNHEAD_CFLAGS"
48 LEMON_LIBS="$LEMON_SVNHEAD_LIBS"
50 LEMON_CFLAGS="$LEMON_0_5_CFLAGS"
51 LEMON_LIBS="$LEMON_0_5_LIBS"
53 AC_SUBST(LEMON_CFLAGS)
57 dnl Checks for header files.
58 AC_CHECK_HEADERS([libintl.h locale.h])
60 dnl Checks for typedefs, structures, and compiler characteristics.
64 dnl Checks for library functions.
65 AC_CHECK_FUNCS([setlocale sqrt])
70 autopackage/default.apspec
78 echo '****************************** SUMMARY ******************************'
80 echo Package version............... : $PACKAGE-$VERSION
82 echo C++ compiler.................. : $CXX
83 echo C++ compiles flags............ : $CXXFLAGS
85 echo LEMON CFLAGS.................. : $LEMON_CFLAGS
86 echo LEMON LIBS.................... : $LEMON_LIBS
88 echo The packace will be installed in
92 echo '*********************************************************************'
95 echo configure complete, now type \'make\' and then \'make install\'.