Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/aclocal.m4')
-rw-r--r--winsup/mingw/aclocal.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/winsup/mingw/aclocal.m4 b/winsup/mingw/aclocal.m4
index b4070368c..02b2f11b6 100644
--- a/winsup/mingw/aclocal.m4
+++ b/winsup/mingw/aclocal.m4
@@ -2,7 +2,22 @@
#
# This provides configure definitions used by all the winsup
# configure.in files.
+
+# MINGW_AC_CONFIG_SRCDIR( VERSION_TAG, UNIQUE_FILE )
+# --------------------------------------------------
+# Wrapper for AC_CONFIG_SRCDIR; in addition to checking for a
+# unique file reference within the source tree, it resolves the
+# definition for PACKAGE_VERSION, based on a tagged definition
+# within that file, and adjusts PACKAGE_TARNAME to match.
#
+AC_DEFUN([MINGW_AC_CONFIG_SRCDIR],
+[AC_CONFIG_SRCDIR([$2])
+ AC_MSG_CHECKING([package version])
+ PACKAGE_VERSION=`awk '$[2] == "'"$1"'" { print $[3] }' ${srcdir}/$2`
+ PACKAGE_TARNAME=${PACKAGE_NAME}-${PACKAGE_VERSION}
+ AC_MSG_RESULT([$PACKAGE_VERSION])dnl
+]) #MINGW_AC_CONFIG_SRCDIR
+
# The following is copied from `no-executables.m4', in the top
# `src/config' directory.
#