aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Chiulli <fchiulli@src.gnome.org>2000-01-12 12:00:51 +0800
committerFrank Chiulli <fchiulli@src.gnome.org>2000-01-12 12:00:51 +0800
commit42cb348b7cbf11c6ebc8e63af45648f895ae573a (patch)
tree2bb515f94dcba1b401a0c887f517d23c4567dce8
parentc6ff08354321779cfa5995ee768b6f17a32847c5 (diff)
downloadgsoc2013-evolution-42cb348b7cbf11c6ebc8e63af45648f895ae573a.tar.gz
gsoc2013-evolution-42cb348b7cbf11c6ebc8e63af45648f895ae573a.tar.zst
gsoc2013-evolution-42cb348b7cbf11c6ebc8e63af45648f895ae573a.zip
Macro to check version of gperf
svn path=/trunk/; revision=1557
-rw-r--r--macros/gperf-check.m479
1 files changed, 79 insertions, 0 deletions
diff --git a/macros/gperf-check.m4 b/macros/gperf-check.m4
new file mode 100644
index 0000000000..1b73d3f19d
--- /dev/null
+++ b/macros/gperf-check.m4
@@ -0,0 +1,79 @@
+dnl
+dnl AC_PROG_GPERF (MINIMUM-VERSION)
+dnl
+dnl Check for availability of gperf.
+dnl Abort if not found or if current version is not up to par.
+dnl
+
+AC_DEFUN([AC_PROG_GPERF],[
+ AC_PATH_PROG(GPERF, gperf, no)
+ if test "$GPERF" = no; then
+ AC_MSG_ERROR(Could not find gperf)
+ fi
+ min_gperf_version=ifelse([$1], ,2.7,$1)
+ AC_MSG_CHECKING(for gperf - version >= $min_gperf_version)
+ gperf_major_version=`$GPERF --version | \
+ sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\1/'`
+ gperf_minor_version=`$GPERF --version | \
+ sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\2/'`
+ no_gperf=""
+dnl
+dnl Now check if the installed gperf is sufficiently new.
+dnl
+ AC_TRY_RUN([
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.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 ()
+{
+ char *tmp_version;
+
+ int major;
+ int minor;
+
+ /* HP/UX 9 (%@#!) writes to sscanf strings */
+ tmp_version = my_strdup("$min_gperf_version");
+ if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
+ printf ("%s, bad version string\n", "$min_gperf_version");
+ exit (1);
+ }
+
+ if (($gperf_major_version > major) ||
+ (($gperf_major_version == major) && ($gperf_minor_version >= minor))) {
+ return 0;
+ } else {
+ printf ("\n");
+ printf ("*** An old version of gperf ($gperf_major_version.$gperf_minor_version) was found.\n");
+ printf ("*** You need a version of gperf newer than %d.%d.%d. The latest version of\n",
+ major, minor);
+ printf ("*** gperf is always available from ftp://ftp.gnu.org.\n");
+ printf ("***\n");
+ return 1;
+ }
+}
+],,no_gperf=yes,[/bin/true])
+ if test "x$no_gperf" = x ; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+
+])
/td> Approved by: edwin (mentor) * Cleanup ghostscript-gnu-commfont and related CJK font support meta ports.hrs2007-04-282-5/+20 | | | | | | | | | | | | | | | | | | | | | Changes include: - Set WITH_GHOSTSCRIPT_GNU forcibly. - Use PostScript virtual fonts to handle CJK CID/TT-CID emulated fonts. CIDFnmap still works but when a font is both in Resource/Font or Resource/CIDFont and in CIDFnmap, the former entry will be used. For the actual font mapping, see files in Resource/CIDFont/*. So, note that you need to remove (or rename) the virtual font if you use CIDFnmap for the moment. This is still a transitional measure and more consistent font management thoughout the ports collection should be added later. This is just an internal structural change; default font mapping has not been changed. - Add Chinese font support to print/gsfonts (but no dependency added). * Rename all binaries in qt4 which conflict with binaries installed bylofi2007-04-201-1/+1 | | | | | | | qt33 to ($binary)-qt4 and adjust dependencies accordingly. This avoids conflicts once X11BASE has been changed to /usr/local and incidentally makes the naming scheme of the qt4 executables in ports equal to that of the Fedora Core and Debian packages. * Fix plist after upgrading scim to 1.4.5.ume2007-04-022-7/+5 | | | | | | scim-1.4.5 appended its version to the moduledir in scim.pc. Approved by: cjh (maintainer) * - Fix after objformat removalpav2007-03-291-17/+6 | | | | Reported by: pointyhat * Update to 4.2.3lofi2007-03-252-4/+4 | * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-142-6/+6 | * 2007-03-10 java/janosvm: Broken on all supported versions of FreeBSDmiwi2007-03-1412-214/+0 | | | | | | | | | | | | | | | | | | | | 2007-03-10 korean/gau: Broken on all supported versions of FreeBSD 2007-03-10 lang/cyclone: Broken on all supported versions of FreeBSD 2007-03-01 lang/pike70: Please use pike72 2007-03-10 misc/lile: Broken on all supported versions of FreeBSD 2007-03-10 misc/muuz: Broken on all supported versions of FreeBSD 2007-03-10 misc/xdf: Broken on all supported versions of FreeBSD 2007-03-10 net/telnetx: Broken on all supported versions of FreeBSD 2007-03-01 sysutils/diskmark: Makes no sense on FreeBSD > 4.x. Use glabel(8) instead 2007-03-10 java/janosvm: Broken on all supported versions of FreeBSD 2007-03-10 korean/gau: Broken on all supported versions of FreeBSD 2007-03-10 lang/cyclone: Broken on all supported versions of FreeBSD 2007-03-01 lang/pike70: Please use pike72 2007-03-10 misc/lile: Broken on all supported versions of FreeBSD 2007-03-10 misc/muuz: Broken on all supported versions of FreeBSD 2007-03-10 misc/xdf: Broken on all supported versions of FreeBSD 2007-03-10 net/telnetx: Broken on all supported versions of FreeBSD 2007-03-01 sysutils/diskmark: Makes no sense on FreeBSD > 4.x. Use glabel(8) instead * Update to 11.2perky2007-02-123-10/+8 | * Deprecate these ports that are broken on 5.x and above, with expiry inkris2007-02-112-0/+6 | | | | 1 month. * Use libtool15 port instead of included version to avoid objformat a.out botchkris2007-02-101-0/+1 | * From the "who gave this guy a commit bit" dept.:lofi2007-02-061-1/+0 | | | | | | | | | | -Fix categories which got mixed up during juggling with different repos. -Remove NO_FILTER_SHLIBS, which disappeared shortly before Qt4 was committed. Noticed by: erwin, pav * Add qt4, a multiplatform C++ application frameworklofi2007-02-065-0/+92 | * A library for hangul processing.alepulver2007-02-067-0/+79 | | | | | | | | --- WWW: http://kldp.net/projects/hangul/ PR: ports/108590 Submitted by: Hyogeol, Lee <hyogeollee at gmail.com> * Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-012-0/+2 | * - Remove support for a.out format and PORTOBJFORMAT variable from individualpav2007-01-302-2/+1 | | | | | | ports With hat: portmgr * Update to 7.0.9. Various security vulnerabilities have been fixed.hrs2007-01-182-4/+4 | | | | | | Security: CVE-2006-5857, CVE-2007-0045, CVE-2007-0046, CVE-2007-0047, CVE-2007-0048 Security: http://www.adobe.com/support/security/bulletins/apsb07-01.html * Fix dependency specification - korean/hlatex no longer installsvd2007-01-151-2/+2 | | | | | | | | ${LOCALBASE}/share/texmf/doc/latex/hlatex/uhc.ks, thus depend on `hbibtex' executable instead. Reported by: kris Approved by: kris * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-202-6/+6 | | | | Approved by: portmgr * Cure korean/hlatex-psfonts-uhc-extra by switching its dependency andvd2006-12-143-9/+7 | | | | fixing its plist. korean/hlatex is not broken. * - maintainer lost his motivationclsung2006-12-071-1/+1 | | | | | PR: ports/104607 Submitted by: Masanori OZAWA<ozawa_AT_ongs dot co dot jp> * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-148-14/+16 | | | | | | | new freetype2 where needed. Submitted by: mezz, ahze, pav, and many others Approved by: portmgr (implicit, kris) * Remove usage of OSVERSION in BROKEN message. I introduced this usage butlinimon2006-09-181-1/+1 | | | | | | have declared it to be bogus. Hat: portmgr * BROKEN on 6.x: Incorrect pkg-plistkris2006-09-171-1/+7 | * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-134-8/+6 | * Remove expired leaf ports:vd2006-09-125-60/+0 | | | | | | 2006-09-01 devel/linux_devtools 2006-09-10 graphics/pecl-imagick 2006-09-01 korean/linux_locale