configure.ac
author ladanyi
Mon, 25 Sep 2006 07:54:00 +0000
changeset 151 72f1c33f89d4
parent 139 56dd34430f07
child 159 7ea73c90a7f0
permissions -rw-r--r--
LoopEdge improvements.
ladanyi@139
     1
dnl Process this file with autoconf to produce a configure script.
ladanyi@139
     2
AC_PREREQ([2.59])
ladanyi@139
     3
AC_INIT([gLEMON], [svn-head], [etik-ol@cs.elte.hu], [glemon])
ladanyi@139
     4
AC_CONFIG_AUX_DIR([build-aux])
ladanyi@139
     5
AC_CONFIG_MACRO_DIR([m4])
ladanyi@139
     6
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
ladanyi@139
     7
AC_CONFIG_SRCDIR([main_win.h])
ladanyi@139
     8
AC_CONFIG_HEADERS([config.h])
ladanyi@139
     9
ladanyi@139
    10
dnl Checks for programs.
ladanyi@139
    11
AC_PROG_CXX
ladanyi@139
    12
AC_PROG_CC
ladanyi@139
    13
AM_GNU_GETTEXT_VERSION([0.14.2])
ladanyi@139
    14
AM_GNU_GETTEXT([external])
ladanyi@139
    15
ladanyi@139
    16
dnl Checks for libraries.
ladanyi@139
    17
PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
ladanyi@144
    18
PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5],
ladanyi@144
    19
  [lemon_0_5_found=yes], [
ladanyi@144
    20
    AC_MSG_RESULT([no])
ladanyi@144
    21
    lemon_0_5_found=no])
ladanyi@144
    22
PKG_CHECK_MODULES([LEMON_SVN_HEAD], [lemon = svn-head],
ladanyi@144
    23
  [lemon_svn_head_found=yes], [
ladanyi@144
    24
    AC_MSG_RESULT([no])
ladanyi@144
    25
    lemon_svn_head_found=no])
ladanyi@144
    26
if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
ladanyi@144
    27
  AC_MSG_ERROR([LEMON not found.])
ladanyi@144
    28
else
ladanyi@144
    29
  if test x"$lemon_svn_head_found" = x"yes"; then
ladanyi@144
    30
    LEMON_CFLAGS="$LEMON_SVN_HEAD_CFLAGS"
ladanyi@144
    31
    LEMON_LIBS="$LEMON_SVN_HEAD_LIBS"
ladanyi@144
    32
  else
ladanyi@144
    33
    LEMON_CFLAGS="$LEMON_0_5_CFLAGS"
ladanyi@144
    34
    LEMON_LIBS="$LEMON_0_5_LIBS"
ladanyi@144
    35
  fi
ladanyi@144
    36
  AC_SUBST(LEMON_CFLAGS)
ladanyi@144
    37
  AC_SUBST(LEMON_LIBS)
ladanyi@144
    38
fi
ladanyi@139
    39
ladanyi@139
    40
dnl Checks for header files.
ladanyi@139
    41
AC_CHECK_HEADERS([libintl.h locale.h])
ladanyi@139
    42
ladanyi@139
    43
dnl Checks for typedefs, structures, and compiler characteristics.
ladanyi@139
    44
AC_HEADER_STDBOOL
ladanyi@139
    45
AC_C_CONST
ladanyi@139
    46
ladanyi@139
    47
dnl Checks for library functions.
ladanyi@139
    48
AC_CHECK_FUNCS([setlocale sqrt])
ladanyi@139
    49
ladanyi@139
    50
AC_CONFIG_FILES([
ladanyi@139
    51
Makefile
ladanyi@139
    52
po/Makefile.in
ladanyi@139
    53
m4/Makefile
ladanyi@139
    54
])
ladanyi@139
    55
ladanyi@139
    56
AC_OUTPUT