I am running Solaris 9 on a SPARC server. I am using automake version:
automake (GNU automake) 1.9

I ran autogen.sh and it errors out (test expects arg).
It fails on line 278 --> if test `echo ${automakeversion}| cut -c 4` =
"."; then

The test line fails because the command `echo ${automakeversion}| cut -c
4` returns a null value.  My version of automake has only three
characters, hence the null value.

I borrowed some code from a libpcap installation script, modified it,
and came up with the code below between the hash marks which seems to
work on my server.

###################################
MIN_AUTOMAKE_MAJOR_NUM=1
MIN_AUTOMAKE_MINOR_NUM=6

automakeversion_major=`echo ${automakeversion} | sed 's/\..*$//g'`
automakeversion_minor=`echo ${automakeversion} | sed
's/^[0-9]*\.\([0-9]*\).*$/\
1/'`
# automakeversion_micro=`echo ${automakeversion} | sed
's/^[0-9]*\.[0-9]*\(\.[0-
9]*\).*$/\1/'`

if [ ${automakeversion_major} -lt ${MIN_AUTOMAKE_MAJOR_NUM} ]; then
    echo ""
    echo
"******************************************************************"
    echo "*"
    echo "*ERROR: ntop requires automake version 1.6 or newer..."
    echo "*"
    echo "*>>>   Unable to proceed with your request, aborting!"
    echo "*"
    echo
"*******************************************************************"
    exit 1
elif [ ${automakeversion_minor} -lt ${MIN_AUTOMAKE_MINOR_NUM} ]; then
    echo ""
    echo
"******************************************************************"
    echo "*"
    echo "*ERROR: ntop requires automake version 1.6 or newer..."
    echo "*"
    echo "*>>>   Unable to proceed with your request, aborting!"
    echo "*"
    echo
"*******************************************************************"
    exit 1
fi
###################################

The code to grab the micro revision doesn't work the way I think it
should and so for now I have it commented out.  It may not even be
needed in this application.


Lawrence Adamiec
Unix Manager
Rm. 525B 
565 W. Adams St.
Chicago-Kent College of Law
Illinois Institute of Technology
Chicago, Illinois 60661
312-906-5301
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to