Dan Nicholson wrote:
> On Fri, Jun 20, 2008 at 6:07 PM, Alan Coopersmith
> <[EMAIL PROTECTED]> wrote:
> > I needed to apply the attached patches to git master to be able to build
> > on Solaris using the autoconf support and the Sun compilers - can they be
> > included for the 7.1 release?
>
> I'm just gonna comment on the autoconf/build stuff.
>
> > diff --git a/configs/autoconf.in b/configs/autoconf.in
> > index 9a70ec1..ed44a0f 100644
> > --- a/configs/autoconf.in
> > +++ b/configs/autoconf.in
> > @@ -98,3 +98,6 @@ DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INS
> >
> > # Where libGL will look for DRI hardware drivers
> > DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
> > +
> > +# Additional per-platform configuration settings
> > [EMAIL PROTECTED]@
> > diff --git a/configure.ac b/configure.ac
> > index a054330..c4b65db 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -29,6 +29,18 @@ AC_CHECK_PROGS([MAKE], [gmake make])
> > AC_PATH_PROG([MKDEP], [makedepend])
> > AC_PATH_PROG([SED], [sed])
> >
> > +dnl Platform-specific program settings
> > +EXTRA_CONFIG_LINES=""
> > +AC_SUBST([EXTRA_CONFIG_LINES])
> > +case "$host_os" in
> > +solaris*)
> > + # Solaris /bin/sh is too old/non-POSIX compliant
> > + AC_PATH_PROGS(POSIX_SHELL, [ksh93 ksh sh])
> > + EXTRA_CONFIG_LINES="SHELL=$POSIX_SHELL"
> > + ;;
> > +esac
>
> Oh, we should probably be setting SHELL in configs/autoconf all the
> time. Autoconf has support for this by using the shell that configure
> was called with or the value of CONFIG_SHELL.
I suggest to use { /usr/bin/ksh93, /usr/xpg4/bin/sh and finally
/usr/bin/ksh } (in that order) since /usr/bin/sh is the old Bourne shell
for all Solaris releases before OpenSolaris/2008.05 (which switched to
ksh93 for /usr/bin/sh&co.) and /usr/bin/ksh93 is only available on newer
Solaris/OpenSolaris releases. /usr/xpg4/bin/sh is guranteed to be a
fully POSIX conformant shell (on Solaris 8-10 it's based on ksh88,
starting with Solaris 11 it will be linked to ksh93 since ksh93 is
assumed to be fully POSIX conformant by default) but may not be
available on very old Solaris releases (e.g. Solaris < 2.6).
> Do you know which parts are too POSIXy? I don't think it would be too
> much work to make the build work with any reasonable Bourne shell.
The problem is that Solaris's old /usr/bin/sh is really the old Bourne
shell and not "bash" - which means even basic POSIX shell functionality
like $(...) is not available and stuff like IFS field splitting won't
work reliable.
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [EMAIL PROTECTED]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL <currently fluctuating>
(;O/ \/ \O;)
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev