tools: fix dependency for ipxe and rombios
authorWei Liu <wei.liu2@citrix.com>
Wed, 18 Jul 2018 16:02:12 +0000 (17:02 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 18 Jul 2018 16:30:24 +0000 (17:30 +0100)
commit205134148981fa22e49f25f16e97e847dfb7c29b
tree69b4e31602a23ef1847fd2551f05c7cb95666114
parent93102b49d501175a8ebbfb1f13f06d4bc754827f
tools: fix dependency for ipxe and rombios

It appears that the test in 01d631028 for ipxe's dependency on rombios
is not good enough. Configuring with --disable-rombios doesn't disable
ipxe.

Fix it by testing the dependency after AC_ARG_ENABLE and AC_ARG_WITH
have taken effect.

At the same time, regularise options for ipxe:

  --enable-ipxe         enable building in-tree ipxe
  --disable-ipxe        disable building in-tree ipxe
  --with-system-ipxe    specify a path to be baked into code, disable
                        building in-tree ipxe, this trumps --{en,dis}able-ipxe
  --without-system-ipxe error

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/configure
tools/configure.ac