solaris 2.5.1 still no good

Andre Lucas andre.lucas at dial.pipex.com
Fri Jan 14 00:45:11 EST 2000


typo:

On Thu, Jan 13, 2000 at 01:40:21PM +0000, Andre Lucas wrote:
> On Wed, Jan 12, 2000 at 11:18:14PM -0500, Ben Taylor wrote:
> 8< snip 
> > I will check my 2.5.1 system tommorow and see what I can do 
> > about patching.  (Anyone got a snippet of Autoconf to 
> > test various versions of a particular Operating system)
> > 
> 
> I know Damien's handling this now, but just for interest's sake: In
> configure.in there's code like this:
> 
> *-*-solaris*)
> 	AC_DEFINE(USE_WTMPX)
> 	;;
> 
> you'd just need to add something like this:
> 
> *-*-solaris*)
> 	AC_DEFINE(USE_WTMPX)
> 	sol_ver=`uname -r`
> 	if test $sol_ver == 5.5 -o test $sol_ver == 5.5.1; then

remove:                            ^^^^

-Andre

> 	   AC_DEFINE(SOL_25_SNPRINTF_FIX)
> 	fi
> 	;;
> 
> (you'll have to check what `uname -r` returns on 2.5.1, though.) You
> could do wacky stuff if you need to test for, say, versions less than
> 2.6:
> 
> sol_ver=`uname -r`
> sol_major=`echo $sol_ver | awk -F. '{print $1}'`
> sol_minor=`echo $sol_ver | awk -F. '{print $2}'`
> if test $sol_major -eq 5 -a $sol_minor -lt 6 ; then
>    do_things
> fi
> 
> watch those backticks :-)
> 
> You could instead add more specific cases instead, e.g.
> 
> *-*-solaris2.5)
> *-*-solaris2.5.1)
> 	do_things
> 	# fall through
> *-*-solaris*)
> 	do_more_things
> 
> but that will get messy if there are other special cases for different
> versions.
> 
> 
> > 8< snip rest
> 
> Regs,
> -Andre
> 
> -- 
> Andre Lucas <andre.lucas at dial.pipex.com>
> http://dspace.dial.pipex.com/andre.lucas/

-- 
Andre Lucas <andre.lucas at dial.pipex.com>
http://dspace.dial.pipex.com/andre.lucas/





More information about the openssh-unix-dev mailing list