[Libevent-users] [PATCH] Fix syntax error in autogen.sh

Magne Mæhre Magne.Mahre at Sun.COM
Thu Sep 20 08:20:19 EDT 2007


Trond Norbye wrote:
> /bin/sh does not recognize == as a valid test operator, but /bin/bash 
> does...

Changing to /bin/bash isn't a good solution, since you're not guaranteed 
to have bash on every system (nor that it's in /bin)

I would suggest to have the script Bourne shell compliant instead :

SYSNAME=`uname`
if [ "$SYSNAME" = "Darwin" ] ; then
   LIBTOOLIZE=glibtoolize
fi


--Magne


More information about the Libevent-users mailing list