From: Brian P. <br...@va...> - 2001-02-16 15:21:11
|
"Sven M. Hallberg" wrote: > > On Mon, Feb 12, 2001 at 12:17:20PM -0700, Brian Paul wrote: > > "Sven M. Hallberg" wrote: > > > > > > Greetings, > > > > > > I have rearranged the configure.in to work with autoconf v2.13 again. > > > Unfortunately it is now no longer possible to use configure to compile a Mesa > > > with missing GLUT and/or demo source directories. However, one might consider > > > making those seperate packages, thus giving them their own configure script... > > > But that's another story. > > > > As sophisticated as autoconf is, I'm surprised that you can't > > detect whether or not src-glut/, demos/, etc. exist at compile time. > > Well, the problem lies in dynamically generating the list of Makefiles to be > created, depending on which directories are present. With the current autoconf > you must pass the entire list to a single call of AC_OUTPUT. The only > way for a dynamic list is to use a variable and pass that one. I guess that > would work with autoconf, _but_ it doesn't with automake because automake > parses configure.in for the call to AC_OUTPUT and if it finds AC_OUTPUT($list) > assumes it should create a file $list.in. *g* > > In the new autoconf you have the required flexibility because it uses > a dynamic list internally, i.e. you specify any files to be created by means > of repetitive calls to a certain macro (AC_CONFIG_FILES I think) and call > AC_OUTPUT without any arguments. The new automake is of course aware of > AC_CONFIG_FILES. You had suggested putting all the demo directories under a new demo/ subdirectory. How would that work? -Brian |