COIN-OR::LEMON - Graph Library

source: glemon-0.x/configure.ac

Last change on this file was 183:48580778851e, checked in by Akos Ladanyi, 13 years ago

Add missing export.

File size: 3.0 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3dnl Version information.
4m4_define([glemon_version_major], [0])
5m4_define([glemon_version_minor], [5])
6m4_define([glemon_version_micro], [90])
7m4_define([glemon_version_nano], [])
8m4_define([glemon_version_tag], [svn])
9m4_define([glemon_svn_revision], [m4_normalize(esyscmd([svn info |grep ^Revision |cut -d ' ' -f 2]))])
10m4_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()])])
11
12AC_PREREQ([2.59])
13AC_INIT([gLEMON], [glemon_version()], [etik-ol@cs.elte.hu], [glemon])
14AC_CONFIG_AUX_DIR([build-aux])
15AC_CONFIG_MACRO_DIR([m4])
16AM_INIT_AUTOMAKE([-Wall -Werror foreign])
17AC_CONFIG_SRCDIR([main_win.h])
18AC_CONFIG_HEADERS([config.h])
19
20dnl Checks for programs.
21AC_PROG_CXX
22AC_PROG_CC
23AM_GNU_GETTEXT_VERSION([0.14.2])
24AM_GNU_GETTEXT([external])
25
26dnl Checks for libraries.
27PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
28
29AC_ARG_WITH([lemon-prefix],
30AS_HELP_STRING([--with-lemon-prefix@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon_prefix=no])
31if test x"$with_lemon_prefix" != x"no"; then
32  export PKG_CONFIG_PATH="$with_lemon_prefix/lib/pkgconfig/:$PKG_CONFIG_PATH"
33fi
34
35PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5],
36  [lemon_0_5_found=yes], [
37    AC_MSG_RESULT([no])
38    lemon_0_5_found=no])
39PKG_CHECK_MODULES([LEMON_SVNHEAD], [lemon = svnhead],
40  [lemon_svn_head_found=yes], [
41    AC_MSG_RESULT([no])
42    lemon_svn_head_found=no])
43if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
44  AC_MSG_ERROR([LEMON not found.])
45else
46  if test x"$lemon_svn_head_found" = x"yes"; then
47    LEMON_CFLAGS="$LEMON_SVNHEAD_CFLAGS"
48    LEMON_LIBS="$LEMON_SVNHEAD_LIBS"
49  else
50    LEMON_CFLAGS="$LEMON_0_5_CFLAGS"
51    LEMON_LIBS="$LEMON_0_5_LIBS"
52  fi
53  AC_SUBST(LEMON_CFLAGS)
54  AC_SUBST(LEMON_LIBS)
55fi
56
57dnl Checks for header files.
58AC_CHECK_HEADERS([libintl.h locale.h])
59
60dnl Checks for typedefs, structures, and compiler characteristics.
61AC_HEADER_STDBOOL
62AC_C_CONST
63
64dnl Checks for library functions.
65AC_CHECK_FUNCS([setlocale sqrt])
66
67AC_CONFIG_FILES([
68Makefile
69glemon.spec
70autopackage/default.apspec
71po/Makefile.in
72m4/Makefile
73])
74
75AC_OUTPUT
76
77echo
78echo '****************************** SUMMARY ******************************'
79echo
80echo Package version............... : $PACKAGE-$VERSION
81echo
82echo C++ compiler.................. : $CXX
83echo C++ compiles flags............ : $CXXFLAGS
84echo
85echo LEMON CFLAGS.................. : $LEMON_CFLAGS
86echo LEMON LIBS.................... : $LEMON_LIBS
87echo
88echo The packace will be installed in
89echo -n '  '
90echo $prefix.
91echo
92echo '*********************************************************************'
93
94echo
95echo configure complete, now type \'make\' and then \'make install\'.
96echo
Note: See TracBrowser for help on using the repository browser.