Re: [Mesa-dev] autoconf stuff

1999-09-21 Thread Thomas Tanner


On 21-Sep-99 [EMAIL PROTECTED] wrote:
>>  I don't know the reasoning of the original libtool author.
>>  Maybe he wanted to keep the directory "clean".
>>  .libs contains libtool-specific data that must not be modified.
> And it contains the resulting library also and THAT's what I don't 
> understand. (All the object files and symlinks are in the src 
> directory... sot it's not that "clean")

 The filename(s) of the library is system-dependent (e.g. libGL.so.3.1.3,
 libGL.sl.3 ...) but the object files (.o and .lo) are not.
 The src directory contains only the files that are known to the
 make rules (.o, .lo, .la).

 There's no doubt that libtool-specific must be stored in a subdirectory
 but the question is why it should be hidden.
 I'll ask the original libtool maintainer.
 
Thomas Tanner -
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner
GGI/Picasso: http://picasso.ffii.org


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



RE: [Mesa-dev] autoconf stuff

1999-09-20 Thread Thomas Tanner


On 20-Sep-99 Hughes, Gareth wrote:
>>  cd src; make install prefix=/home/me/mesa
>>  will install it in /home/me/mesa/lib.
>>  The demos don't require an installed libGL.
> I completely trashed my copy of Mesa when I tried to "make install" it in
> the Mesa-CVS root directory.  I think it went through and deleted all the
> include files :-)

 Whoops. Sorry. You can't install Mesa over itself :/
 
> I'm doing a lot of debugging at the moment, and the current setup makes is
> slightly painful.  Every time I change something, I have to re-install the
> libs...  Again, don't get me wrong, I like autoconf, but just not for
> developing the library.  I was also surprised when gdb complained about
> books/tess not being a valid executable ;-)
> Would it be possible to do both?  Output the libs in Mesa/lib and be able
> use LD_LIBRARY_PATH, but still be able to "./configure; make; make install"
> when it becomes a permanent installation?

 I'll add that to my TODO list for the next release.

Thomas Tanner -
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner
GGI/Picasso: http://picasso.ffii.org


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-20 Thread A . Borrmann


On 20-Sep-99 Thomas Tanner wrote:
>> Why is this directory hidden anyway?
>  
>  I don't know the reasoning of the original libtool author.
>  Maybe he wanted to keep the directory "clean".
>  .libs contains libtool-specific data that must not be modified.

And it contains the resulting library also and THAT's what I don't 
understand. (All the object files and symlinks are in the src 
directory... sot it's not that "clean")

Simple solution would be symlinks in mesa/lib to mesa/src/.libs/libGL.so*
I really would like to get this with a simple "make" without a 
"make install" - shouldn't be too difficult. 

Andree



___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



RE: [Mesa-dev] autoconf stuff

1999-09-20 Thread Hughes, Gareth

>  cd src; make install prefix=/home/me/mesa
> 
>  will install it in /home/me/mesa/lib.
>  The demos don't require an installed libGL.

I completely trashed my copy of Mesa when I tried to "make install" it in
the Mesa-CVS root directory.  I think it went through and deleted all the
include files :-)

I'm doing a lot of debugging at the moment, and the current setup makes is
slightly painful.  Every time I change something, I have to re-install the
libs...  Again, don't get me wrong, I like autoconf, but just not for
developing the library.  I was also surprised when gdb complained about
books/tess not being a valid executable ;-)

Would it be possible to do both?  Output the libs in Mesa/lib and be able
use LD_LIBRARY_PATH, but still be able to "./configure; make; make install"
when it becomes a permanent installation?

-- Gareth


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-20 Thread Thomas Tanner


On 20-Sep-99 [EMAIL PROTECTED] wrote:
>>> Ah, I didn't know about src/.libs  (and I suspect a lot of other
>>> Mesa users won't either).
>>  Long-time Mesa users will realize that there's a configure script
>>  and therefore they'll assume that the usual
>>  "configure; make; make install" works.
> But I don't want to install the library - I use it with LD_LIBRARY_PATH
> since my primary libGL is from GLX project...

 cd src; make install prefix=/home/me/mesa

 will install it in /home/me/mesa/lib.
 The demos don't require an installed libGL.

> Why is this directory hidden anyway?
 
 I don't know the reasoning of the original libtool author.
 Maybe he wanted to keep the directory "clean".
 .libs contains libtool-specific data that must not be modified.

> IMHO it's no good idea hiding things somewhere - I don´t want to 
> get impressed by autoconf magic features but want to see what's going on...

 Follow the make output or set alias ls="ls -a" ;-)

Thomas Tanner -
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner
GGI/Picasso: http://picasso.ffii.org


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-20 Thread A . Borrmann


On 19-Sep-99 Thomas Tanner wrote:
> 
> On 17-Sep-99 Brian Paul wrote:
>> Ah, I didn't know about src/.libs  (and I suspect a lot of other
>> Mesa users won't either).
> 
>  Long-time Mesa users will realize that there's a configure script
>  and therefore they'll assume that the usual
>  "configure; make; make install" works.

But I don't want to install the library - I use it with LD_LIBRARY_PATH
since my primary libGL is from GLX project... Why is this directory hidden
anyway? IMHO it's no good idea hiding things somewhere - I don´t want to 
get impressed by autoconf magic features but want to see what's going on...

Andree
PS: Don't get me wrong, I like autoconf...




___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-19 Thread Thomas Tanner


On 17-Sep-99 Brian Paul wrote:
>>  That would be the only way to support
>>  the two separate packages with autoconf.
> Really?!  It shouldn't be hard to detect the presence of those
> subdirs and conditionally build their contents.  But then again,
> I don't know much about autoconf.

 That's only possible with a few QuickHacks which I just implemented.
 In the future I'd like to use the clean solution, i.e, all demos
 in the demos/ subdirectory.

> I'm hesitant to do that right now with beta 3 impending.
> Let's wait and see.

 Ok.

Thomas Tanner -
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner
GGI/Picasso: http://picasso.ffii.org


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-17 Thread Holger Waechtler


Hi Brian,

I removed the automatic fixam call in bootstrap. 

And I fixed fixam to work in both directions (I was wrong -- it couldn't
do the job right; hope it will now - ).


- Holger



___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-17 Thread Brian Paul

Holger Waechtler wrote:
> 
> On Fri, 17 Sep 1999, Thomas Tanner wrote:
> 
> >
> > On 15-Sep-99 Holger Waechtler wrote:
> > > the fixam script, which enables automatic dependency tracking, if gcc
> and
> > > gnu make are available, is now called automatically from bootstrap.
> >
> >  No, the other way round: fixam disables automatic dependency tracking,
> >  if gcc and gnu make are not available. I decided not to call it from
> bootstrap
> >  because a non-GNU developer you would always overwrite the
> >  default Makefile.am's (AUTOMAKE_OPTIONS commented out) when doing CVS
> checkins.
> >  Could you please undo your change?
> >
> 
> If I understood your script right, it works in both directions, doesn't
> it ?  (I could not test it, since I have no none-gnu compiler - Brian ??)

On IRIX, I get this error:

% make
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=conf.h \
 /bin/sh ./config.status
creating conf.h
conf.h is unchanged
make  all-recursive
Making all in include
Making all in GL
cd .. && automake --gnu include/Makefile
cd .. \
  && CONFIG_FILES=include/Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating include/Makefile
Making all in src
make: file `Makefile' line 668: Syntax error
*** Error code 1 (bu21)
*** Error code 1 (bu21)
% 

Line 668 is:

DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)


-Brian


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



RE: [Mesa-dev] autoconf stuff

1999-09-17 Thread Holger Waechtler



On Fri, 17 Sep 1999, Thomas Tanner wrote:

> 
> On 15-Sep-99 Holger Waechtler wrote:
> > the fixam script, which enables automatic dependency tracking, if gcc and
> > gnu make are available, is now called automatically from bootstrap.
> 
>  No, the other way round: fixam disables automatic dependency tracking,
>  if gcc and gnu make are not available. I decided not to call it from bootstrap
>  because a non-GNU developer you would always overwrite the
>  default Makefile.am's (AUTOMAKE_OPTIONS commented out) when doing CVS checkins.
>  Could you please undo your change?
> 

If I understood your script right, it works in both directions, doesn't 
it ?  (I could not test it, since I have no none-gnu compiler - Brian ??)

If so, it would be no problem, if people check in 'corrupted'
Makefile.am's.


>  Btw: Brian, we must make sure that automatic dependency tracking
>  is disabled before we release beta 3. Otherwise configure won't
>  work on non-GNU systems.
> 

That shouldn't be a problem -- in the release the dependent files 
shouldn't change anymore. 


- Holger



___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-17 Thread Holger Waechtler



On Fri, 17 Sep 1999, Brian Paul wrote:

> Thomas Tanner wrote:
> 
> >  I suggest to move all demos to a subdirectory "demos":
> > 
> >  demos -> demos/demos
> >  3Dfx/demos -> demos/3Dfx
> >  BeOS  -> demos/BeOS
> >  book  -> demos/book
> >  ggi/demos -> demos/ggi
> >  images-> demos/images
> >  mtdemos   -> demos/mthread
> >  samples   -> demos/samples
> >  utils -> demos/utils
> >  xdemos-> demos/x11
> > 
> >  That would be the only way to support
> >  the two separate packages with autoconf.
> 
> Really?!  It shouldn't be hard to detect the presence of those
> subdirs and conditionally build their contents.  But then again,
> I don't know much about autoconf.

We could modify the release-configure-script to call another script, which
removes the demo directories from the SUBDIR variable in Makefile.in, if
these are not present. Another way (I think, it will be the harder one - )
could be to do this in the toplevel Makefile. However, I recommend the
first way.

- Holger



___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-17 Thread Brian Paul

Thomas Tanner wrote:
> 
> On 15-Sep-99 Brian Paul wrote:
> > After ./configure and make, the lib/ directory is empty and I only find
> > static libraries in the src*/ directories.  It would be nice if the
> > libraries wound up in the lib/ directory.
> 
>  Why? You don't need to install the libraries by hand any more.

Well, that's where long-time Mesa users will look for them.


> > I thought shared libs would be made by default.
> 
>  Yep
> 
> >  I tried
> > ./configure --enable-shared  but that didn't make shared libs either.
> 
>  Are you sure that there are no shared libs in src/.libs (hidden
> directory!)?
>  The libGL.la file is not the static library.

Ah, I didn't know about src/.libs  (and I suspect a lot of other
Mesa users won't either).

-Brian


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-17 Thread Brian Paul

Thomas Tanner wrote:

>  Another important question: Is the upcoming beta 3 supposed to
>  have autoconf support?

Yes.


> If so, do you still want to split Mesa
>  into the library and demos

Yes.


> and how (configure.in doesn't support it yet)?
> 
>  I suggest to move all demos to a subdirectory "demos":
> 
>  demos -> demos/demos
>  3Dfx/demos -> demos/3Dfx
>  BeOS  -> demos/BeOS
>  book  -> demos/book
>  ggi/demos -> demos/ggi
>  images-> demos/images
>  mtdemos   -> demos/mthread
>  samples   -> demos/samples
>  utils -> demos/utils
>  xdemos-> demos/x11
> 
>  That would be the only way to support
>  the two separate packages with autoconf.

Really?!  It shouldn't be hard to detect the presence of those
subdirs and conditionally build their contents.  But then again,
I don't know much about autoconf.


>  In any case, I think it'd be a much cleaner directory structure
>  (less stuff in the toplevel directory)

You've got a point there.

>  Brian, do you think that's reasonable?
>  Could you move those directories on the CVS server?

I'm hesitant to do that right now with beta 3 impending.
Let's wait and see.

-Brian


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-16 Thread Keith Whitwell

Thomas Tanner wrote:
> 
> On 15-Sep-99 Holger Waechtler wrote:
> > the fixam script, which enables automatic dependency tracking, if gcc and
> > gnu make are available, is now called automatically from bootstrap.
> 
>  No, the other way round: fixam disables automatic dependency tracking,
>  if gcc and gnu make are not available. I decided not to call it from bootstrap
>  because a non-GNU developer you would always overwrite the
>  default Makefile.am's (AUTOMAKE_OPTIONS commented out) when doing CVS checkins.
>  Could you please undo your change?
> 
>  Btw: Brian, we must make sure that automatic dependency tracking
>  is disabled before we release beta 3. Otherwise configure won't
>  work on non-GNU systems.

What will we use for dependencies instead?

Keith


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



RE: [Mesa-dev] autoconf stuff

1999-09-16 Thread Thomas Tanner


On 15-Sep-99 Holger Waechtler wrote:
> the fixam script, which enables automatic dependency tracking, if gcc and
> gnu make are available, is now called automatically from bootstrap.

 No, the other way round: fixam disables automatic dependency tracking,
 if gcc and gnu make are not available. I decided not to call it from bootstrap
 because a non-GNU developer you would always overwrite the
 default Makefile.am's (AUTOMAKE_OPTIONS commented out) when doing CVS checkins.
 Could you please undo your change?

 Btw: Brian, we must make sure that automatic dependency tracking
 is disabled before we release beta 3. Otherwise configure won't
 work on non-GNU systems.

> Beside this, SUBDIRS in src/Makefile.am are now filtered, this should make
> compilation possible, even if somebody forgot some #ifdef's. 

 Thank you!

 Another important question: Is the upcoming beta 3 supposed to
 have autoconf support? If so, do you still want to split Mesa
 into the library and demos and how (configure.in doesn't support it yet)?

 I suggest to move all demos to a subdirectory "demos":

 demos -> demos/demos
 3Dfx/demos -> demos/3Dfx
 BeOS  -> demos/BeOS
 book  -> demos/book
 ggi/demos -> demos/ggi 
 images-> demos/images
 mtdemos   -> demos/mthread
 samples   -> demos/samples
 utils -> demos/utils
 xdemos-> demos/x11

 That would be the only way to support
 the two separate packages with autoconf.
 In any case, I think it'd be a much cleaner directory structure
 (less stuff in the toplevel directory)

 Brian, do you think that's reasonable?
 Could you move those directories on the CVS server?

Thomas Tanner -
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner
GGI/Picasso: http://picasso.ffii.org


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-16 Thread Thomas Tanner


On 15-Sep-99 Brian Paul wrote:
> After ./configure and make, the lib/ directory is empty and I only find
> static libraries in the src*/ directories.  It would be nice if the
> libraries wound up in the lib/ directory.

 Why? You don't need to install the libraries by hand any more.
 
> I thought shared libs would be made by default.

 Yep

>  I tried
> ./configure --enable-shared  but that didn't make shared libs either.

 Are you sure that there are no shared libs in src/.libs (hidden directory!)?
 The libGL.la file is not the static library.

 If you see the following lines in the output of configure
 everything should be ok:

checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

Thomas Tanner -
email: tanner@(ffii.org|gnu.org|gmx.de)
web:   http://home.pages.de/~tanner
GGI/Picasso: http://picasso.ffii.org


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-16 Thread Holger Waechtler


On Wed, 15 Sep 1999, Brian Paul wrote:

> I thought shared libs would be made by default.  I tried
> ./configure --enable-shared  but that didn't make shared libs either.
> 
On my system it works; shared libs are built by default and work. Do you
get any error messages ??

I'm not too experienced with autoconf/automake, but perhaps I' able to
solve these problems. Could you send me your config.log ??

btw: did anybody heard something of Thomas Tanner last time ??


- Holger



___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev



Re: [Mesa-dev] autoconf stuff

1999-09-15 Thread Brian Paul

Holger Waechtler wrote:
> 
> Hi everybody,
> 
> the fixam script, which enables automatic dependency tracking, if gcc and
> gnu make are available, is now called automatically from bootstrap.
> 
> Beside this, SUBDIRS in src/Makefile.am are now filtered, this should make
> compilation possible, even if somebody forgot some #ifdef's.
> 
> I hope, this will make the autoconf stuff more robust.


After ./configure and make, the lib/ directory is empty and I only find
static libraries in the src*/ directories.  It would be nice if the
libraries wound up in the lib/ directory.

I thought shared libs would be made by default.  I tried
./configure --enable-shared  but that didn't make shared libs either.

I'm using a RedHat 5.1 system at the moment.

-Brian


___
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev