[libxml2] OS400: use either configure.ac or configure.in.
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] OS400: use either configure.ac or configure.in.
- Date: Fri, 10 Oct 2014 08:25:04 +0000 (UTC)
commit ad160cb3c4bbd47003468de3308457255734cce2
Author: Patrick Monnerat <pm datasphere ch>
Date: Thu Oct 9 16:01:47 2014 +0200
OS400: use either configure.ac or configure.in.
os400/initscript.sh | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/os400/initscript.sh b/os400/initscript.sh
index d2175cb..fb80507 100644
--- a/os400/initscript.sh
+++ b/os400/initscript.sh
@@ -117,10 +117,18 @@ setenv MODULE_EXTENSION '.SRVPGM'
################################################################################
+# Transitional: get file name of configure script.
+
+AUTOCONFSCRIPT="${TOPDIR}/configure.ac"
+
+if [ ! -f "${AUTOCONFSCRIPT}" ]
+then AUTOCONFSCRIPT="${TOPDIR}/configure.in"
+fi
+
# Need to get the version definitions.
-eval "`grep '^LIBXML_[A-Z]*_VERSION=' \"${TOPDIR}/configure.in\"`"
-eval "`grep '^LIBXML_MICRO_VERSION_SUFFIX=' \"${TOPDIR}/configure.in\"`"
+eval "`grep '^LIBXML_[A-Z]*_VERSION=' \"${AUTOCONFSCRIPT}\"`"
+eval "`grep '^LIBXML_MICRO_VERSION_SUFFIX=' \"${AUTOCONFSCRIPT}\"`"
LIBXML_VERSION="${LIBXML_MAJOR_VERSION}.${LIBXML_MINOR_VERSION}"
LIBXML_VERSION="${LIBXML_VERSION}.${LIBXML_MICRO_VERSION}"
LIBXML_VERSION="${LIBXML_VERSION}${LIBXML_MICRO_VERSION_SUFFIX}"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]