summaryrefslogtreecommitdiff
path: root/macros2/gnome-autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'macros2/gnome-autogen.sh')
-rw-r--r--macros2/gnome-autogen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh
index be49462..8195dfb 100644
--- a/macros2/gnome-autogen.sh
+++ b/macros2/gnome-autogen.sh
@@ -1,8 +1,6 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
-#name of package
-test "$PKG_NAME" || PKG_NAME=Package
test "$srcdir" || srcdir=.
# default version requirements ...
@@ -47,6 +45,8 @@ printerr() {
echo "$@" >&2
}
+PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"`
+
# Usage:
# compare_versions MIN_VERSION ACTUAL_VERSION
# returns true if ACTUAL_VERSION >= MIN_VERSION