summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-05-21 04:24:22 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-05-21 04:24:22 (GMT)
commit1f12eab01271cbea7f8ec156190aa60f6fee1918 (patch)
treed067b893e34ed798d2b751578be971aa66cff0e5 /fortran
parentfb5ed749d0c4ea31a934cfc22211ad32b0c17e2f (diff)
downloadhdf5-1f12eab01271cbea7f8ec156190aa60f6fee1918.zip
hdf5-1f12eab01271cbea7f8ec156190aa60f6fee1918.tar.gz
hdf5-1f12eab01271cbea7f8ec156190aa60f6fee1918.tar.bz2
[svn-r12360] Purpose:
Bug fix. Description: The ${TR}, though avoid the error, is inconvenient. It is needed because configure.in use the char range in the style of 'a-z'. The other style of '[a-z]' is more commonly accepted by all tr but autoconf tends to strip away [], making the syntax rather clumsy. Solution: Learned from autoconf that it avoids the use of character range by just spell all the letters out. Changed our tr commands to use those variables defined by autoconf. Also removed the definition of ${TR} since it will cause inconsistancy when autoconf also use plain 'tr' in its generated code. The Makefile.in are changed because the elimination of ${TR} from configure triggered its removal from all Makefil.in. That is okay because ${TR} is not used at all in Makefile. Platforms tested: h5committested. Misc. update: Updated both INSTALL and RELEASE files.
Diffstat (limited to 'fortran')
-rwxr-xr-xfortran/configure3
-rw-r--r--fortran/configure.in7
2 files changed, 8 insertions, 2 deletions
diff --git a/fortran/configure b/fortran/configure
index 201f714..319827b 100755
--- a/fortran/configure
+++ b/fortran/configure
@@ -9798,8 +9798,9 @@ echo "${ECHO_T}$FILTERS" >&6
;;
esac
+
if test -n "$FILTERS"; then
- for filter in `echo $FILTERS | tr 'a-z,' 'A-Z '`; do
+ for filter in `echo $FILTERS | tr ${as_cr_letters}',' ${as_cr_LETTERS}' '`; do
if test $filter = "SHUFFLE"; then
cat >>confdefs.h <<\_ACEOF
diff --git a/fortran/configure.in b/fortran/configure.in
index 9f14fa3..fe1e6bf 100644
--- a/fortran/configure.in
+++ b/fortran/configure.in
@@ -743,8 +743,13 @@ case "X-$FILTERS" in
;;
esac
+dnl Avoid depending upon Character Ranges.
+dnl These are defined by autoconf.
+dnl as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+dnl as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
if test -n "$FILTERS"; then
- for filter in `echo $FILTERS | tr 'a-z,' 'A-Z '`; do
+ for filter in `echo $FILTERS | tr ${as_cr_letters}',' ${as_cr_LETTERS}' '`; do
dnl ----------------------------------------------------------------------
dnl Have to use separate 'if' construct for each filter, so that autoheader
dnl can detect the AC_DEFINE for each one...