aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gperf-check.m4
diff options
context:
space:
mode:
authorgfarris <gfarris@src.gnome.org>2001-12-04 12:46:41 +0800
committergfarris <gfarris@src.gnome.org>2001-12-04 12:46:41 +0800
commitedd7c48be63e486f0c8c424fdc556c57503c4374 (patch)
treef2f245320b0bc90a72dd0ef4b3d977bc8a9bc051 /macros/gperf-check.m4
parent4afdf27f16d59449354dd3b5d71248b750c0a20b (diff)
downloadgsoc2013-evolution-edd7c48be63e486f0c8c424fdc556c57503c4374.tar.gz
gsoc2013-evolution-edd7c48be63e486f0c8c424fdc556c57503c4374.tar.zst
gsoc2013-evolution-edd7c48be63e486f0c8c424fdc556c57503c4374.zip
*** empty log message ***
svn path=/trunk/; revision=14857
Diffstat (limited to 'macros/gperf-check.m4')
-rw-r--r--macros/gperf-check.m479
1 files changed, 0 insertions, 79 deletions
diff --git a/macros/gperf-check.m4 b/macros/gperf-check.m4
deleted file mode 100644
index 3869459ebc..0000000000
--- a/macros/gperf-check.m4
+++ /dev/null
@@ -1,79 +0,0 @@
-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");
- return 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
-
-])
='commitgraph'>* Now gettext 0.12.1 is gettext-old.trevor2004-01-241-1/+1 * Bump the PORTREVISION for the ports directly affected by the gettext upgrade.marcus2003-08-271-0/+1 * Chase the libintl.so shared lib version.marcus2003-08-251-1/+1 * Fix build with gcc 3.3kris2003-07-181-0/+10 * Utilize USE_GETOPT_LONG.nork2003-04-271-5/+1 * De-pkg-comment.knu2003-02-212-1/+1 * upgrade to 1.10ijliao2003-01-046-32/+31 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-2/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2 * fix segfaultijliao2002-10-292-0/+12 * upgrade to 1.9ijliao2002-05-103-3/+4