diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -3506,6 +3506,49 @@ else $as_nop | |||
3506 | fi | 3506 | fi |
3507 | 3507 | ||
3508 | 3508 | ||
3509 | as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$CFLAGS $CPPFLAGS -Werror_-D_FORTIFY_SOURCE=2" | $as_tr_sh` | ||
3510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5 | ||
3511 | printf %s "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; } | ||
3512 | if eval test \${$as_CACHEVAR+y} | ||
3513 | then : | ||
3514 | printf %s "(cached) " >&6 | ||
3515 | else $as_nop | ||
3516 | |||
3517 | ax_check_save_flags=$CFLAGS | ||
3518 | CFLAGS="$CFLAGS $CFLAGS $CPPFLAGS -Werror -D_FORTIFY_SOURCE=2" | ||
3519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3520 | /* end confdefs.h. */ | ||
3521 | |||
3522 | int | ||
3523 | main (void) | ||
3524 | { | ||
3525 | |||
3526 | ; | ||
3527 | return 0; | ||
3528 | } | ||
3529 | _ACEOF | ||
3530 | if ac_fn_c_try_compile "$LINENO" | ||
3531 | then : | ||
3532 | eval "$as_CACHEVAR=yes" | ||
3533 | else $as_nop | ||
3534 | eval "$as_CACHEVAR=no" | ||
3535 | fi | ||
3536 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3537 | CFLAGS=$ax_check_save_flags | ||
3538 | fi | ||
3539 | eval ac_res=\$$as_CACHEVAR | ||
3540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
3541 | printf "%s\n" "$ac_res" >&6; } | ||
3542 | if eval test \"x\$"$as_CACHEVAR"\" = x"yes" | ||
3543 | then : | ||
3544 | |||
3545 | EXTRA_CFLAGS="$EXTRA_CFLAGS -D_FORTIFY_SOURCE=2" | ||
3546 | |||
3547 | else $as_nop | ||
3548 | : | ||
3549 | fi | ||
3550 | |||
3551 | |||
3509 | HAVE_SPECTRE="no" | 3552 | HAVE_SPECTRE="no" |
3510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mindirect-branch=thunk" >&5 | 3553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mindirect-branch=thunk" >&5 |
3511 | printf %s "checking whether C compiler accepts -mindirect-branch=thunk... " >&6; } | 3554 | printf %s "checking whether C compiler accepts -mindirect-branch=thunk... " >&6; } |