Wells |
10-07-2008 03:08 PM |
configure script sends bad switches to daughter configure scripts
I am working on creating a gentoo ebuild for a software package, and a problem that I am running into is that the main configure script is sending some bad switches to one of the daughter configure scripts. The problem is that this is only happening when the ebuild is being emerged. If I do the configure manually, there are no problems.
So the initial configure command looks like the following:
Quote:
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-gmp --build=i686-pc-linux-gnu
|
This appears to work fine, at least until the script spawns a configure script in a daughter directory:
Quote:
=== configuring in res-rsa (/var/tmp/portage/games-simulation/netrek-server-vanilla-2.15.0/work/netrek-server-vanilla-2.15.0/res-rsa)
configure: running /bin/sh ./configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-gmp' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=i686 -pipe' 'LDFLAGS=-Wl,-O1' 'CXXFLAGS=-O2 -march=i686 -pipe' --cache-file=/dev/null --srcdir=.
configure: warning: build_alias=i686-pc-linux-gnu: invalid host type
configure: warning: host_alias=i686-pc-linux-gnu: invalid host type
configure: error: can only configure for one host and one target at a time
configure: error: ./configure failed for res-rsa
|
As can be seen in the above configure command, a couple of switches are mangled. I have not been able to find where the heck these are even coming from in the first place, but I am suspecting that there is something broken with the main configure script.
Anyone have any idea what might be wrong?
|