@@ -7085,8 +7085,8 @@ yes)
7085
7085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
7086
7086
$as_echo_n "checking if we can add -Wextra... " >&6; }
7087
7087
7088
- py_cc=$CC
7089
- CC ="$CC -Wextra -Werror"
7088
+ py_cflags=$CFLAGS
7089
+ CFLAGS ="$CFLAGS -Wextra -Werror"
7090
7090
if ${ac_cv_enable_extra_warning+:} false; then :
7091
7091
$as_echo_n "(cached) " >&6
7092
7092
else
@@ -7110,7 +7110,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110
7110
7111
7111
fi
7112
7112
7113
- CC=$py_cc
7113
+ CFLAGS=$py_cflags
7114
7114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
7115
7115
$as_echo "$ac_cv_enable_extra_warning" >&6; }
7116
7116
7197
7197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
7198
7198
$as_echo_n "checking if we can disable $CC unused-result warning... " >&6; }
7199
7199
7200
- py_cc=$CC
7201
- CC ="$CC -Wunused-result -Werror"
7200
+ py_cflags=$CFLAGS
7201
+ CFLAGS ="$CFLAGS -Wunused-result -Werror"
7202
7202
if ${ac_cv_disable_unused_result_warning+:} false; then :
7203
7203
$as_echo_n "(cached) " >&6
7204
7204
else
@@ -7222,15 +7222,14 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222
7222
7223
7223
fi
7224
7224
7225
- CC=$py_cc
7225
+ CFLAGS=$py_cflags
7226
7226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7227
7227
$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
7228
7228
7229
7229
;; #(
7230
7230
*) :
7231
7231
;;
7232
7232
esac
7233
-
7234
7233
if test "x$ac_cv_disable_unused_result_warning" = xyes; then :
7235
7234
BASECFLAGS="$BASECFLAGS -Wno-unused-result"
7236
7235
CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7240
7239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
7241
7240
$as_echo_n "checking if we can disable $CC unused-parameter warning... " >&6; }
7242
7241
7243
- py_cc=$CC
7244
- CC ="$CC -Wunused-parameter -Werror"
7242
+ py_cflags=$CFLAGS
7243
+ CFLAGS ="$CFLAGS -Wunused-parameter -Werror"
7245
7244
if ${ac_cv_disable_unused_parameter_warning+:} false; then :
7246
7245
$as_echo_n "(cached) " >&6
7247
7246
else
@@ -7265,7 +7264,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265
7264
7266
7265
fi
7267
7266
7268
- CC=$py_cc
7267
+ CFLAGS=$py_cflags
7269
7268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7270
7269
$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
7271
7270
7278
7277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
7279
7278
$as_echo_n "checking if we can disable $CC missing-field-initializers warning... " >&6; }
7280
7279
7281
- py_cc=$CC
7282
- CC ="$CC -Wmissing-field-initializers -Werror"
7280
+ py_cflags=$CFLAGS
7281
+ CFLAGS ="$CFLAGS -Wmissing-field-initializers -Werror"
7283
7282
if ${ac_cv_disable_missing_field_initializers_warning+:} false; then :
7284
7283
$as_echo_n "(cached) " >&6
7285
7284
else
@@ -7303,7 +7302,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303
7302
7304
7303
fi
7305
7304
7306
- CC=$py_cc
7305
+ CFLAGS=$py_cflags
7307
7306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
7308
7307
$as_echo "$ac_cv_disable_missing_field_initializers_warning" >&6; }
7309
7308
7316
7315
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
7317
7316
$as_echo_n "checking if we can enable $CC sign-compare warning... " >&6; }
7318
7317
7319
- py_cc=$CC
7320
- CC ="$CC -Wsign-compare -Werror"
7318
+ py_cflags=$CFLAGS
7319
+ CFLAGS ="$CFLAGS -Wsign-compare -Werror"
7321
7320
if ${ac_cv_enable_sign_compare_warning+:} false; then :
7322
7321
$as_echo_n "(cached) " >&6
7323
7322
else
@@ -7341,7 +7340,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341
7340
7342
7341
fi
7343
7342
7344
- CC=$py_cc
7343
+ CFLAGS=$py_cflags
7345
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7346
7345
$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7347
7346
7354
7353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
7355
7354
$as_echo_n "checking if we can enable $CC unreachable-code warning... " >&6; }
7356
7355
7357
- py_cc=$CC
7358
- CC ="$CC -Wunreachable-code -Werror"
7356
+ py_cflags=$CFLAGS
7357
+ CFLAGS ="$CFLAGS -Wunreachable-code -Werror"
7359
7358
if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7360
7359
$as_echo_n "(cached) " >&6
7361
7360
else
@@ -7379,7 +7378,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379
7378
7380
7379
fi
7381
7380
7382
- CC=$py_cc
7381
+ CFLAGS=$py_cflags
7383
7382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7384
7383
$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
7385
7384
@@ -7404,8 +7403,8 @@ $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
7404
7403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
7405
7404
$as_echo_n "checking if we can enable $CC strict-prototypes warning... " >&6; }
7406
7405
7407
- py_cc=$CC
7408
- CC ="$CC -Wstrict-prototypes -Werror"
7406
+ py_cflags=$CFLAGS
7407
+ CFLAGS ="$CFLAGS -Wstrict-prototypes -Werror"
7409
7408
if ${ac_cv_enable_strict_prototypes_warning+:} false; then :
7410
7409
$as_echo_n "(cached) " >&6
7411
7410
else
@@ -7429,7 +7428,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429
7428
7430
7429
fi
7431
7430
7432
- CC=$py_cc
7431
+ CFLAGS=$py_cflags
7433
7432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7434
7433
$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
7435
7434
7474
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
7475
7474
$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; }
7476
7475
7477
- if test $ac_cv_enable_implicit_function_declaration_error = yes ; then :
7476
+ if test "x $ac_cv_enable_implicit_function_declaration_error" = xyes ; then :
7478
7477
CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
7479
7478
fi
7480
7479
7514
7513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
7515
7514
$as_echo "$ac_cv_enable_visibility" >&6; }
7516
7515
7517
- if test $ac_cv_enable_visibility = yes ; then :
7516
+ if test "x $ac_cv_enable_visibility" = xyes ; then :
7518
7517
CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
7519
7518
fi
7520
7519
0 commit comments