From: SeokYeon Hwang Date: Wed, 2 Sep 2015 04:07:37 +0000 (+0900) Subject: configure: fixed logic when "--enable-error" is specified X-Git-Tag: TizenStudio_2.0_p2.3.2~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b9569240d279babe3c073a8f70b637c80e459e8;p=sdk%2Femulator%2Fqemu.git configure: fixed logic when "--enable-error" is specified If "--enable-error" is specified, "configure" had not tried to set CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE. To fixed this problem "configure" should skip setting "werror" only. Change-Id: I6d204ca25d242aa8b2e9c12fd8f1f1f85dcad9f4 Signed-off-by: SeokYeon Hwang --- diff --git a/configure b/configure index 8e90b04..e61a4a7 100755 --- a/configure +++ b/configure @@ -4336,10 +4336,10 @@ int main(void) { return 0; } EOF -if test "$force_werror" != "yes"; then - if compile_prog "-Werror" "" ; then - pragma_diagnostic_available=yes - else +if compile_prog "-Werror" "" ; then + pragma_diagnostic_available=yes +else + if test "$force_werror" != "yes"; then werror=no fi fi