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