bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoconf 2.61 and Solaris and tr regression from 2.59


From: Roger Jarrett
Subject: Autoconf 2.61 and Solaris and tr regression from 2.59
Date: Tue, 24 Jul 2007 17:52:35 -0400

Used Autoconf to build configure for hdf5;  this worked correctly for
version 2.59 of Autoconf

 However, in 2.61 the tr test on Solaris does not work for /usr/bin/tr

 

For the Solaris the command line for tr requires "[]"

 

e.g script that fails on Solaris: #! /bin/sh +x

if test "X${TR}" = "X"; then

  TR=tr

fi

echo " tr is ${TR} ...";

TR_TEST="`echo Test | ${TR} 'a-z,' 'A-Z '`"

if test "X${TR_TEST}" != "XTEST"; then

  echo "|" ${TR_TEST} "|" FAIL

else

  echo Pass "|" ${TR_TEST} "|"

fi

 

script that passes:

#! /bin/sh +x

if test "X${TR}" = "X"; then

  TR=tr

fi

echo " tr is ${TR} ...";

TR_TEST="`echo Test | ${TR} '[a-z],' '[A-Z] '`"

if test "X${TR_TEST}" != "XTEST"; then

  echo "|" ${TR_TEST} "|" FAIL

else

  echo Pass "|" ${TR_TEST} "|"

fi

 

 

>From configure.in Id: configure.in.

# Guess values for system-dependent variables and create Makefiles.

# Generated by GNU Autoconf 2.61 for HDF5 1.6.5.

 

 

Output from hdf5 configure looks like this:

...

checking host system type... sparc-sun-solaris2.10

checking shell variables initial values... done

checking if tr works... configure: error: tr program doesn't work

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]