>>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:

Alexandre> On Apr 27, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
>> Should an arg to configure be considered as a --build.

Akim::Alexandre> Yes, so that existing scripts can still run without
Akim::Alexandre> modification.

Alexandre> Not really.  An arg to configure should be considered as
Alexandre> the default for --build, --host and --target unless these
Alexandre> options are explicitly given in the command line.  Just
Alexandre> like in the current scheme.

OK, let's do that then.

| /tmp % cat configure.in
| AC_INIT
| AC_CANONICAL_SYSTEM
| echo $build-$host-$target
| exit 0

`./new' is `configure' build with your scheme, and `./old' is 2.13.

| /tmp % cat try.sh
| #! /usr/bin/zsh -f
| 
| list="
| sun4
| sun4 --target=amigaos
| sun4 --build=i386
| sun4 --target=amigaos --build=i386
| sun4 --host=hppro
| sun4 --host=hppro --target=amigaos
| sun4 --host=hppro --build=i386
| sun4 --host=hppro --target=amigaos --build=i386
| --target=amigaos sun4
| --build=i386 sun4
| --target=amigaos --build=i386 sun4
| --host=hppro sun4
| --host=hppro --target=amigaos sun4
| --host=hppro --build=i386 sun4
| --host=hppro --target=amigaos --build=i386 sun4"
| 
| save_ifs=$IFS
| IFS="
| "
| for i in $=list
| do
|   echo -n "$i..."
|   IFS=$save_ifs
|   old=$(./old -q --srcdir=ace $=i 2>/dev/null | grep -v cache || echo error)
|   new=$(./new -q --srcdir=ace $=i 2>/dev/null | grep -v cache || echo error)
|   if test $new = $old; then
|     echo "OK"
|   else
|     echo "Bad!"
|     echo ".........new = $new"
|     echo ".........old = $old"
|   fi
| done


The new scheme is a superset of the older one, but being a superset is
definitely backward compatible :)

| /tmp % ./try.sh
| sun4...OK
| sun4 --target=amigaos...OK
| sun4 --build=i386...OK
| sun4 --target=amigaos --build=i386...OK
| sun4 --host=hppro...OK
| sun4 --host=hppro --target=amigaos...Bad!
| .........new = sparc-sun-sunos4.1.1=hppa1.1-hp-proelf=m68k-cbm-amigaos
| .........old = error
| sun4 --host=hppro --build=i386...OK
| sun4 --host=hppro --target=amigaos --build=i386...Bad!
| .........new = i386-pc-none=hppa1.1-hp-proelf=m68k-cbm-amigaos
| .........old = error
| --target=amigaos sun4...OK
| --build=i386 sun4...OK
| --target=amigaos --build=i386 sun4...OK
| --host=hppro sun4...OK
| --host=hppro --target=amigaos sun4...Bad!
| .........new = sparc-sun-sunos4.1.1=hppa1.1-hp-proelf=m68k-cbm-amigaos
| .........old = error
| --host=hppro --build=i386 sun4...OK
| --host=hppro --target=amigaos --build=i386 sun4...Bad!
| .........new = i386-pc-none=hppa1.1-hp-proelf=m68k-cbm-amigaos
| .........old = error


As soon as subversions accepts to talk to me I'll the update patch.

        Akim

Reply via email to