]> matita.cs.unibo.it Git - helm.git/blob - helm/gtkmathview-bonobo/configure.ac
* first snapshot
[helm.git] / helm / gtkmathview-bonobo / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(gtkmathview-bonobo, [0.0.1])
3 AC_CONFIG_SRCDIR(src/GNOME_GtkMathView.server.in)
4 AM_INIT_AUTOMAKE($AC_PACKAGE_NAME, $AC_PACKAGE_VERSION)
5
6 PACKAGE=$PACKAGE_NAME
7 VERSION=$PACKAGE_VERSION
8 AC_SUBST(PACKAGE)
9 AC_SUBST(VERSION)
10
11 GTKMATHVIEW_BONOBO_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
12 AC_SUBST(EDITEX_VERSION_INFO)
13
14 AC_ARG_ENABLE(
15         profile,
16         [  --enable-profile[=ARG]  include profiling information [default=no]],
17         profile=$enableval,
18         profile=no
19 )
20
21 AC_ARG_ENABLE(
22         debug,
23         [  --enable-debug[=ARG]    include debugging debug [default=yes]],
24         enable_debug=$enableval,
25         enable_debug=yes
26 )
27
28 if test "x$enable_debug" = "xyes"; then
29    AC_DEFINE(ENABLE_DEBUG,,[Define to 1 if you want to enable validity checks while running])
30 fi
31
32 dnl AC_CONFIG_HEADERS([config.h])
33 AM_CONFIG_HEADER(config.h)
34
35 AH_TOP([
36 /* This file is part of GtkMathView-Bonobo, an implementation of
37  * some Bonobo interfaces for GtkMathView.
38  * 
39  * Copyright (C) 2003 Luca Padovani <lpadovan@cs.unibo.it>,
40  *                    Pouria Masoudi <pmasoudi@cs.unibo.it>.
41  *
42  * This library is free software; you can redistribute it and/or
43  * modify it under the terms of the GNU Lesser General Public
44  * License as published by the Free Software Foundation; either
45  * version 2.1 of the License, or (at your option) any later version.
46  *
47  * This library is distributed in the hope that it will be useful,
48  * but WITHOUT ANY WARRANTY; without even the implied warranty of
49  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
50  * Lesser General Public License for more details.
51  *
52  * You should have received a copy of the GNU Lesser General Public
53  * License along with this library; if not, write to the Free Software
54  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
55  *
56  * For more information, please visit the project's home page
57  * http://helm.cs.unibo.it/gtkmathview-bonobo/
58  * or send an email to <lpadovan@cs.unibo.it>
59  */
60
61 #ifndef config_h
62 #define config_h
63 ])
64
65 AH_BOTTOM([
66 #endif /* config_h */
67 ])
68
69 AC_PROG_CC
70 AC_PROG_CXX
71 AC_PROG_INSTALL
72 AC_HEADER_STDC([])
73
74 AC_SUBST(CFLAGS)
75 AC_SUBST(CPPFLAGS)
76 AC_SUBST(LDFLAGS)
77
78 AM_PROG_LIBTOOL
79
80 PKG_CHECK_MODULES(GTKMATHVIEW, gtkmathview >= 0.4.3)
81 AC_SUBST(GTKMATHVIEW_CFLAGS)
82 AC_SUBST(GTKMATHVIEW_LIBS)
83
84 PKG_CHECK_MODULES(BONOBO, libbonobo-2.0)
85 AC_SUBST(BONOBO_CFLAGS)
86 AC_SUBST(BONOBO_LIBS)
87
88 PKG_CHECK_MODULES(BONOBOUI, libbonoboui-2.0)
89 AC_SUBST(BONOBOUI_CFLAGS)
90 AC_SUBST(BONOBOUI_LIBS)
91
92 AC_CONFIG_FILES([
93  Makefile 
94  src/Makefile
95  src/GNOME_GtkMathView.server
96 ])
97 AC_OUTPUT