aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-04-13 09:41:06 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-04-13 09:41:06 +0800
commita31e8755664db91006b5ca0bbd45f73c7d442276 (patch)
tree02445f7fb734a6d559b6d7f39a7d4ef998646ed1 /macros
parentd41d8024ae45564285dd8ea806bfc2cf24af99ea (diff)
downloadgsoc2013-evolution-a31e8755664db91006b5ca0bbd45f73c7d442276.tar.gz
gsoc2013-evolution-a31e8755664db91006b5ca0bbd45f73c7d442276.tar.zst
gsoc2013-evolution-a31e8755664db91006b5ca0bbd45f73c7d442276.zip
Added Bonobo test
svn path=/trunk/; revision=810
Diffstat (limited to 'macros')
-rw-r--r--macros/gnome-bonobo-check.m4172
1 files changed, 172 insertions, 0 deletions
diff --git a/macros/gnome-bonobo-check.m4 b/macros/gnome-bonobo-check.m4
new file mode 100644
index 0000000000..64807da937
--- /dev/null
+++ b/macros/gnome-bonobo-check.m4
@@ -0,0 +1,172 @@
+# Configure paths for Bonobo
+# Miguel de Icaza, 99-04-12
+# Stolen from Chris Lahey 99-2-5
+# stolen from Manish Singh again
+# stolen back from Frank Belew
+# stolen from Manish Singh
+# Shamelessly stolen from Owen Taylor
+
+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
+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)],
+ bonobo_prefix="$withval", bonobo_prefix="")
+AC_ARG_WITH(bonobo-exec-prefix,[ --with-bonobo-exec-prefix=PFX Exec prefix where Bonobo is installed (optional)],
+ bonobo_exec_prefix="$withval", bonobo_exec_prefix="")
+AC_ARG_ENABLE(bonobotest, [ --disable-bonobotest Do not try to compile and run a test Bonobo program],
+ , enable_bonobotest=yes)
+
+ if test x$bonobo_exec_prefix != x ; then
+ bonobo_args="$bonobo_args --exec-prefix=$bonobo_exec_prefix"
+ if test x${GNOME_CONFIG+set} != xset ; then
+ GNOME_CONFIG=$bonobo_exec_prefix/bin/gnome-config
+ fi
+ fi
+ if test x$bonobo_prefix != x ; then
+ bonobo_args="$bonobo_args --prefix=$bonobo_prefix"
+ if test x${GNOME_CONFIG+set} != xset ; then
+ GNOME_CONFIG=$bonobo_prefix/bin/gnome-config
+ fi
+ fi
+
+ AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
+ min_bonobo_version=ifelse([$1], ,0.1.0,$1)
+ AC_MSG_CHECKING(for BONOBO - version >= $min_bonobo_version)
+ no_bonobo=""
+ if test "$GNOME_CONFIG" = "no" ; then
+ no_bonobo=yes
+ else
+ BONOBO_CFLAGS=`$GNOME_CONFIG $bonoboconf_args --cflags bonobo`
+ BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs print`
+
+ bonobo_major_version=`$GNOME_CONFIG $bonobo_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+ bonobo_minor_version=`$GNOME_CONFIG $bonobo_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+ bonobo_micro_version=`$GNOME_CONFIG $bonobo_config_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+ if test "x$enable_bonobotest" = "xyes" ; then
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $BONOBO_CFLAGS"
+ LIBS="$LIBS $BONOBO_LIBS"
+dnl
+dnl Now check if the installed BONOBO is sufficiently new. (Also sanity
+dnl checks the results of gnome-config to some extent
+dnl
+ rm -f conf.bonobotest
+ AC_TRY_RUN([
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <libgnomeprint/bonobo.h>
+
+static char*
+my_strdup (char *str)
+{
+ char *new_str;
+
+ if (str)
+ {
+ new_str = malloc ((strlen (str) + 1) * sizeof(char));
+ strcpy (new_str, str);
+ }
+ else
+ new_str = NULL;
+
+ return new_str;
+}
+
+int main ()
+{
+ int major, minor, micro;
+ 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
+}
+
+],, no_bonobo=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ if test "x$no_bonobo" = x ; then
+ AC_MSG_RESULT(yes)
+ ifelse([$2], , :, [$2])
+ else
+ AC_MSG_RESULT(no)
+ if test "$GNOME_CONFIG" = "no" ; then
+ echo "*** The gnome-config script installed by GNOME-LIBS could not be found"
+ echo "*** If BONOBO was installed in PREFIX, make sure PREFIX/bin is in"
+ echo "*** your path, or set the GNOME_CONFIG environment variable to the"
+ echo "*** full path to gnome-config."
+ else
+ if test -f conf.bonobotest ; then
+ :
+ else
+ echo "*** Could not run BONOBO test program, checking why..."
+ CFLAGS="$CFLAGS $BONOBO_CFLAGS"
+ LIBS="$LIBS $BONOBO_LIBS"
+ AC_TRY_LINK([
+#include <stdio.h>
+#include <bonobo/gnome-object.h>
+], [ return 0; ],
+ [ echo "*** The test program compiled, but did not run. This usually means"
+ echo "*** that the run-time linker is not finding BONOBO or finding the wrong"
+ echo "*** version of BONOBO. If it is not finding BONOBO, you'll need to set your"
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
+ echo "*** is required on your system"
+ echo "***"
+ echo "*** If you have an old version installed, it is best to remove it, although"
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
+ echo "*** exact error that occured. This usually means BONOBO was incorrectly installed"
+ echo "*** or that you have moved BONOBO since it was installed. In the latter case, you"
+ echo "*** may want to edit the gnome-config script: $GNOME_CONFIG" ])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ BONOBO_CFLAGS=""
+ BONOBO_LIBS=""
+ ifelse([$3], , :, [$3])
+ fi
+ AC_SUBST(BONOBO_CFLAGS)
+ AC_SUBST(BONOBO_LIBS)
+ rm -f conf.bonobotest
+])
+
+AC_DEFUN([BONOBO_CHECK], [
+ AM_PATH_BONOBO(0.1.0,failure)
+])
4/cgit/cgit.cgi/freebsd-ports-gnome/commit/korean?h=mate-1.16&id=f95009149efc7ac95888cf22b92547ec11d3c1fa'>Remove dependecy of mizifont, only used for ksc5601.1987-1 encoded fonts.cjh2000-11-052-4/+2 * Remove hack to install XLC_LOCALE for ko locale, this changecjh2000-11-052-14/+1 * Remove hack to install XLC_LOCALE for ko locale, this changecjh2000-11-052-18/+3 * Remove hack to install XLC_LOCALE for ko locale, this changecjh2000-11-052-16/+2 * Add MD5_FILE for correctly finding distinfo file.cjh2000-11-031-0/+1 * add MD5_FILE for correctly finding distinfo file.cjh2000-11-031-0/+1 * Checksum update. the author of gulim* fonts updatedcjh2000-11-022-3/+3 * Update to 4.76 Korean kit 20001031.cjh2000-10-312-4/+4 * Converts data between Korean KSC-5601 and Unicode 3.0 UTF-16cjh2000-10-297-0/+77 * Fix uninstallation problem.cjh2000-10-291-0/+2 * Fix uninstallation problem, fixing and adding @unexec rmdir...cjh2000-10-291-2/+3 * - Update to new Korean kit to 20001028. revision increasedcjh2000-10-284-6/+11 * Import from ja-netscape4-communicator.cjh2000-10-282-2/+8 * Import r1.5 -> r1.6 changes in ja-linux-netscape-*.cjh2000-10-281-2/+13 * We don't want to use gtk-bitchx and esounds at the default installation.jeh2000-10-253-14/+11 * Fix the build problem with XFree86 4.0.x.cjh2000-10-201-0/+1 * PLIST fixes to ports which I touched recently. Not all caused by myreg2000-10-131-1/+2 * Update to 0.1.1cjh2000-10-094-4/+4 * Add batang10, batang10b manually-hinted fonts.cjh2000-10-092-3/+6 * Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} isasami2000-10-0812-13/+13 * Change PATCHDIR from patches/ to files/. Also change PKGDIR (pkg/ toasami2000-10-081-2/+2 * Fixed typotaoka2000-10-071-1/+1 * Remove remnants of GTK 1.0.x since nothing depends on them any more.ade2000-10-061-1/+0 * Implement WANT_GNOME.reg2000-10-056-113/+122 * Implement WANT_IMLIB and USE_IMLIB.reg2000-10-053-10/+9 * Implement USE_GTK, part 2.reg2000-10-051-5/+1 * Activate ko-a2ps.cjh2000-10-016-0/+72 * Active ko-a2ps.cjh2000-10-011-0/+1 * Mark all of the pine3/4 ports FORBIDDEN due to remotely exploitablekris2000-09-291-0/+2 * Korean enabled Texinfo formattercjh2000-09-266-0/+71 * Change manually hinted gulim{10,10b} fonts from pcf to bdf source.cjh2000-09-252-9/+12 * Add BUILD_DEPENDS to bdftopcf:XFree86-4-clients when XFREE86_VERSION=4.asami2000-09-151-0/+1 * Add PORTREVISION.cjh2000-09-131-0/+1 * (1) {chinese,korean,japanese}/Wnn (Wnn 4.2) was updated as follows:taoka2000-09-138-283/+49 * Fix for segfault when ^D pressed.cjh2000-09-132-1/+3 * Add BUILD_DEPENDS=bdftopcf:XFree86-4-clients andasami2000-09-123-3/+26 * Add dependency to mkfontdir:XFree86-4-clients when XFREE86_VERSION=4.asami2000-09-123-3/+23 * (1) {chinese,korean,japanese}/Wnn (Wnn 4.2) was updated as follows:taoka2000-09-084-8/+10 * Install a manually hinted gulim10 and gulim10b fonts.cjh2000-09-032-3/+16 * update to 0.5.10cjh2000-09-013-8/+2 * Remove ${PREFIX}/share/doc directory after uninstallation.cjh2000-09-011-0/+1 * Remove ${PREFIX}/share/fonts directory after uninstallation.cjh2000-09-012-0/+2 * Don't use ${CHMOD}, it's unnecessary and dangerous.cjh2000-09-011-2/+0 * Display help message about GNOME panel applet support.cjh2000-08-301-0/+3 * Back out the previous commit. That one has a problem which occurs onknu2000-08-281-5/+1 * PKGNAMEPREFIX cleanup. This should allow chained PKGNAMEPREFIX'es.knu2000-08-271-1/+5 * Not to display unnecessary 'pty_search' message.cjh2000-08-271-0/+11 * Author(it's me!) re-released the tarball.cjh2000-08-261-1/+1 * Update to 4.75 20000826 version.cjh2000-08-252-2/+2 * Extra BUILD_DEPENDS on XFree86 removed.cjh2000-08-251-2/+0 * Update to Korean kit v4.75.cjh2000-08-252-3/+3 * (1) Add new variable, XFREE86_VERSION, to specify which version ofasami2000-08-033-5/+5 * Upgrade to 4.74 Korean kit.cjh2000-07-262-3/+3 * distfile fix & reclaim maintainer to mecjh2000-07-2333-25/+58 * Fix typo. (ghostscript55htff -> ghostscript55httf)cjh2000-07-201-1/+1 * Complete move from ftghostscript55 -> ghostscript55httf. The latter isasami2000-07-2011-529/+852 * PLIST sorted.cjh2000-07-181-1/+1 * Clean up ports.cjh2000-07-183-5/+5 * Fix pkg/COMMENT(for more portlint-compliant)cjh2000-07-181-1/+1 * - Change MAINTAINER line.cjh2000-07-173-2/+8 * Fix distfile location. Original site is working now.cjh2000-07-171-4/+3 * Set version number of libpng correctly.cjh2000-07-162-2/+2 * Add LIB_DEPENDS: xpm.cjh2000-07-161-0/+1 * - Update han to work in 4.x. Use patches from kon2-16dot.cjh2000-07-1615-9/+586 * - Add FreeBSD-specific X resourcecjh2000-07-154-10/+32 * - copyright notice removed. Now it's free software.cjh2000-07-152-5/+2 * Copyright notice removed. now it's freely redistiributable.cjh2000-07-153-19/+4 * - remove BUILD_DEPENDS(NO_BUILD=YES!)cjh2000-07-152-9/+5 * Remove RUN_DEPENDS to ghostscript. Now we have two Koreancjh2000-07-151-2/+0 * Change default font to Gulim-Medium(korean/baekmukfonts-ttf).cjh2000-07-151-0/+11 * Update to GNU gs.cjh2000-07-152-20/+24 * Default configuration file of Korean TTF.cjh2000-07-152-0/+98 * - Change MAINTAINER line.cjh2000-07-152-10/+22 * COMMENT should be ended without period.kuriyama2000-07-121-1/+1 * Add master site of tfm files.cjh2000-07-081-1/+2 * - Use GTK_CONFIG/GLIB_CONFIG instead of hardcoded gtk12-config/glib12-configsteve2000-07-085-20/+25 * Update to 1.0c16/Korean.cjh2000-07-075-34/+1055 * As threatened on freebsd-ports: all startup scripts know about the twotg2000-07-051-8/+19 * Fix unistall problem. Found from bento log.cjh2000-07-051-0/+1 * Add ftghostscript55.cjh2000-07-051-0/+1 * Remove patch-aa and add patch-ba.cjh2000-07-051-0/+44 * hanIM is now open source. This ports is changed to compile hanIM!cjh2000-07-054-80/+11 * Adjust dependency to hlatex-psfonts-wansung.cjh2000-07-051-1/+1 * Add hlatex-wansung.cjh2000-07-056-996/+113 * Active hlatex family.cjh2000-07-051-0/+5 * MF font collection of HLaTeX-wansungcjh2000-07-0510-0/+5878 * Change hlatexpsfonts-wansungstd to hlatex-psfonts-wansung.cjh2000-07-054-61/+26 * Add hlatex 0.991.cjh2000-07-055-965/+4309 * Remove hlatex family temporarily for incoming large update.cjh2000-07-051-1/+0 * Add hTeXp family.cjh2000-07-021-1/+5 * An implementation of TeX for Hangul.cjh2000-07-026-0/+100 * Korean pk fonts collection of hLaTeXp(1200dpi)cjh2000-07-025-0/+1392 * Korean pk fonts collection of hLaTeXp(600dpi)cjh2000-07-025-0/+1532 * Korean pk fonts collection of hLaTeXp(300dpi)cjh2000-07-026-0/+1577 * Hangul (Korean) LaTeX2e system.cjh2000-07-026-0/+346 * Fix build problem(link to jpeg and libpng direcoty).cjh2000-06-302-4/+4 * Fix perl location(perl is now /usr/bin/perl)cjh2000-06-303-11/+5 * Move the stragler's www.freebsd.org/~user distfiles to the officalobrien2000-06-291-1/+2 * Update category Makefile in aftermath of afterstep,vim,fvwm95 removal.will2000-06-271-3/+0 * Add hanmiscutils.cjh2000-06-251-0/+1 * hanmiscutils is a collection of various Hangul-related sources.cjh2000-06-255-0/+44 * To be more compact, following netscape47-communicator changes.cjh2000-06-251-7/+3 * More generalization.cjh2000-06-251-1/+1 * comment 'preeditType' resource. it doesn't affectcjh2000-06-251-11/+11 * More generalization, for ko-linux-netscape-*.cjh2000-06-251-9/+6 * remove files/ and pkg/ dir for more generalization.cjh2000-06-252-12/+6 * For new linux-netscape-*, more generalization added.cjh2000-06-254-36/+44 * Add ko-linux-netscape-* family.cjh2000-06-251-0/+2 * Korean-enabled Netscape Navigator for Linux.cjh2000-06-251-0/+10 * Korean-enabled Netscape Comunicator for Linux.cjh2000-06-252-0/+40 * Update to 0.5.9.cjh2000-06-252-2/+2 * Fix GNU fileutils-style option in installation.cjh2000-06-241-0/+11 * Remove a problem with a missing .if introduced in revision 1.9.steve2000-06-241-1/+1 * Replace MASTER_SITES to backup.cjh2000-06-232-4/+2 * - Fix MASTER_SITES.cjh2000-06-231-1/+1 * - WITH_GNOME_APPLET returned. applet should depend on panel.cjh2000-06-232-8/+6 * Update to 1.0.6.cjh2000-06-234-18/+42 * - Change distfile location.cjh2000-06-234-4/+4 * @dirrm share/doc/nhpfasami2000-06-081-0/+1 * Updates for new shared library versions in GNOME 1.2ade2000-06-021-1/+1 * Remove empty fonts.dir and fonts.alias files. (Note chinese/kcfonts stillasami2000-06-016-0/+6 * Update to version 4.73.steve2000-05-292-3/+3 * Make netscape4 ports use the new wrapper which I've freshly importedknu2000-05-093-3/+3 * Adding ko-gtkcomm version 0.5.7.steve2000-05-017-0/+110 * Update to version 1.0.5.steve2000-05-013-13/+2 * Remove junker@jazz.snu.ac.kr as MAINTAINER; mail has been bouncing forfenner2000-04-2217-34/+0 * Back out useful `Version required lines' that I'd blindly removed.knu2000-04-151-0/+1 * Portlint COMMENT's.knu2000-04-152-2/+2 * Remove obsolete `Version required' lines.knu2000-04-151-1/+0 * Cosmetic. Set their categories right.knu2000-04-152-2/+2 * Cosmetic.knu2000-04-151-1/+1 * Convert to PORTNAME/PORTVERSION. Problems found: afterstep, bitchx,asami2000-04-1350-141/+125 * Remove unnecessary PKGNAME which is obsoleted by PKGNAMEPREFIX.knu2000-04-122-4/+0 * Set PKGNAMEPREFIX with ?= so it can be overridden.asami2000-04-111-1/+1 * Add PKGNAMEPREFIX definitions for language-specific dirs.asami2000-04-111-0/+4 * Remove hanmutt.asami2000-04-051-1/+0 * update to p18mharo2000-04-012-3/+3 * Revert to rev. 1.3, I verified that this is indeed the file on the master site.asami2000-03-121-1/+1 * Upgrade to 4.72 .sada2000-03-052-3/+3 * Distfiles' location has been changed.sada2000-03-052-3/+3 * Remove good old netscape46 ports.sada2000-03-051-2/+0 * Fix build for 4-current ("__FreeBSD__ == 3" => "__FreeBSD__ >= 3").asami2000-03-031-1/+1 * Add virtual category "linux" to Linux apps and support libs/utils.asami2000-02-284-4/+4 * Don't know exactly what changed in the distfile because I can't get asteve2000-02-281-1/+1 * Minor distfile changeskris2000-02-271-1/+1 * I forgot to add these patches in privous commit.taoka2000-02-203-0/+30 * Update to 0.4.1taoka2000-02-205-22/+37 * Fix to use KS_C_5601-1987taoka2000-02-171-0/+11 * Remove "-" at end of PKGNAME, you can't use "-" inside the version part.asami2000-02-141-1/+1 * Update nvi-m17n (19990331 -> 19991117).imura2000-02-132-2/+2 * New port korean netscape47-navigator,communicator.imura2000-02-095-9/+11 * Change all www.freebsd.org/~user references to people.FreeBSD.org/~user,peter2000-02-081-1/+1 * Update about Hangul CID fontstaoka2000-02-037-11/+72 * - Use Baekmukfonts-bdf instead of hanyang fonts.steve2000-01-302-4/+10 * Adding ko-baekmukfonts-ttf version 2.0.steve2000-01-30