aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-04-13 10:50:16 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-04-13 10:50:16 +0800
commit9b6d05c461ab0aea44663533aefa7965647cfc1b (patch)
treef3e260ab3ca334931381d5d814321488d7f2f33d /macros
parenta31e8755664db91006b5ca0bbd45f73c7d442276 (diff)
downloadgsoc2013-evolution-9b6d05c461ab0aea44663533aefa7965647cfc1b.tar.gz
gsoc2013-evolution-9b6d05c461ab0aea44663533aefa7965647cfc1b.tar.zst
gsoc2013-evolution-9b6d05c461ab0aea44663533aefa7965647cfc1b.zip
Updated bonobo checks
svn path=/trunk/; revision=811
Diffstat (limited to 'macros')
-rw-r--r--macros/gnome-bonobo-check.m436
1 files changed, 6 insertions, 30 deletions
diff --git a/macros/gnome-bonobo-check.m4 b/macros/gnome-bonobo-check.m4
index 64807da937..e98e039ccc 100644
--- a/macros/gnome-bonobo-check.m4
+++ b/macros/gnome-bonobo-check.m4
@@ -9,8 +9,9 @@
dnl AM_PATH_BONOBO ([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for Bonobo, and define BONOBO_CFLAGS and BONOBO_LIBS
dnl
-AC_DEFUN(AM_PATH_BONOBO
-[dnl
+AC_DEFUN([AM_PATH_BONOBO],
+[
+dnl
dnl Get the cflags and libraries from the gnome-config script
dnl
AC_ARG_WITH(bonobo-prefix,[ --with-bonobo-prefix=PFX Prefix where Bonobo is installed (optional)],
@@ -41,7 +42,7 @@ AC_ARG_ENABLE(bonobotest, [ --disable-bonobotest Do not try to compile an
no_bonobo=yes
else
BONOBO_CFLAGS=`$GNOME_CONFIG $bonoboconf_args --cflags bonobo`
- BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs print`
+ BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs bonobo`
bonobo_major_version=`$GNOME_CONFIG $bonobo_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
@@ -63,7 +64,7 @@ dnl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <libgnomeprint/bonobo.h>
+#include <bonobo/gnome-object.h>
static char*
my_strdup (char *str)
@@ -87,32 +88,7 @@ int main ()
char *tmp_version;
system ("touch conf.bonobotest");
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = my_strdup("$min_bonobo_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
- printf("%s, bad version string\n", "$min_bonobo_version");
- exit(1);
- }
- return 0;
-#if 0
- if (($bonobo_major_version > major) ||
- (($bonobo_major_version == major) && ($bonobo_minor_version > minor)) ||
- (($bonobo_major_version == major) && ($bonobo_minor_version == minor) && ($bonobo_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** 'gnome-config print --version' returned %d.%d.%d, but the minimum version\n", $bonobo_major_version, $bonobo_minor_version, $bonobo_micro_version);
- printf("*** of BONOBO required is %d.%d.%d. If gnome-config is correct, then it is\n", major, minor, micro);
- printf("*** best to upgrade to the required version.\n");
- printf("*** If gnome-config was wrong, set the environment variable GNOME_CONFIG\n");
- printf("*** to point to the correct copy of gnome-config, and remove the file\n");
- printf("*** config.cache before re-running configure\n");
- return 1;
- }
-#endif
+ gnome_object_get_type ();
}
],, no_bonobo=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])