gcc: add a CC_GCC_HAS_PKGVERSION_BUGURL option

This patch adds a blind option CC_GCC_HAS_PKGVERSION_BUGURL to test the support
of --with-pkgversion and --with-bugurl by GCC's configure.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
This commit is contained in:
Benoît THÉBAUDEAU" 2011-05-31 19:55:59 +02:00
parent c06117b767
commit b87fff5473
2 changed files with 9 additions and 2 deletions

View File

@ -195,6 +195,7 @@ config CC_GCC_4_3
bool
select CC_GCC_4_3_or_later
select CC_GCC_USE_GMP_MPFR
select CC_GCC_HAS_PKGVERSION_BUGURL
config CC_GCC_4_3_or_later
bool
@ -205,6 +206,7 @@ config CC_GCC_4_4
select CC_GCC_4_4_or_later
select CC_GCC_USE_GMP_MPFR
select CC_GCC_HAS_GRAPHITE
select CC_GCC_HAS_PKGVERSION_BUGURL
config CC_GCC_4_4_or_later
bool
@ -217,6 +219,7 @@ config CC_GCC_4_5
select CC_GCC_USE_MPC
select CC_GCC_HAS_GRAPHITE
select CC_GCC_HAS_LTO
select CC_GCC_HAS_PKGVERSION_BUGURL
config CC_GCC_4_5_or_later
bool
@ -229,6 +232,7 @@ config CC_GCC_4_6
select CC_GCC_USE_MPC
select CC_GCC_HAS_GRAPHITE
select CC_GCC_HAS_LTO
select CC_GCC_HAS_PKGVERSION_BUGURL
config CC_GCC_4_6_or_later
bool
@ -248,6 +252,9 @@ config CC_GCC_HAS_GRAPHITE
config CC_GCC_HAS_LTO
bool
config CC_GCC_HAS_PKGVERSION_BUGURL
bool
# Only enable gcc's support for plugins if binutils has it as well
# They are usefull only when doing LTO, but it does no harm enabling
# them even without LTO.

View File

@ -3,7 +3,7 @@
config CC_PKGVERSION
string
prompt "gcc ID string"
depends on CC_GCC_4_3_or_later
depends on CC_GCC_HAS_PKGVERSION_BUGURL
default "crosstool-NG-${CT_VERSION}"
help
Specify a string that identifies your package. You may wish to include
@ -15,7 +15,7 @@ config CC_PKGVERSION
config CC_BUGURL
string
prompt "gcc bug URL"
depends on CC_GCC_4_3_or_later
depends on CC_GCC_HAS_PKGVERSION_BUGURL
default ""
help
Specify the URL that users should visit if they wish to report a bug.