diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-03-10 13:36:55 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-03-10 14:10:18 +0100 |
commit | 0982c5c79f3467bcff1d64ac12cb30b25d446a5a (patch) | |
tree | 59dccf64ea3495fe207c9926d3470dc774ba0cf3 /configure | |
parent | 47b704462eea3c93ab5f46d970e5a74a4a5d4e70 (diff) | |
download | lvm2-0982c5c79f3467bcff1d64ac12cb30b25d446a5a.tar.gz |
configure: check for sync-nand
Check whether gcc support this flag.
Some older compilers (gcc version 4.3.2) miss it.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -749,6 +749,7 @@ CUNIT_CFLAGS GENPNG GENHTML LCOV +HAVE_WSYNCNAND HAVE_WCLOBBERED HAVE_WJUMP SACKPT_LIBS @@ -10214,6 +10215,44 @@ $as_echo "$ac_cv_flag_HAVE_WCLOBBERED" >&6; } + + ac_save_CFLAGS=$CFLAGS + CFLAGS=-Wsync-nand + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsync-nand flag" >&5 +$as_echo_n "checking whether $CC accepts -Wsync-nand flag... " >&6; } +if ${ac_cv_flag_HAVE_WSYNCNAND+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_flag_HAVE_WSYNCNAND=yes +else + ac_cv_flag_HAVE_WSYNCNAND=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WSYNCNAND" >&5 +$as_echo "$ac_cv_flag_HAVE_WSYNCNAND" >&6; } + CFLAGS=$ac_save_CFLAGS + HAVE_WSYNCNAND=$ac_cv_flag_HAVE_WSYNCNAND + if test "HAVE_WSYNCNAND" = yes; then + : + else + : + fi + + + ################################################################################ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 $as_echo_n "checking for C optimisation flag... " >&6; } |