X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=03275787c4d074b808bec2cd47f85337d68aa970;hp=4ca7d52b4006bf30065ef2d4e4ed05e6fa75635a;hb=b443ae44cb50b53ad38644294e6bda89f3af58d8;hpb=bda92394f9cbb5b611b6c56fb11ab6875035f00a diff --git a/configure b/configure index 4ca7d52b..03275787 100755 --- a/configure +++ b/configure @@ -612,7 +612,9 @@ echo "POSIX AIO fsync $posix_aio_fsync" ########################################## # POSIX pshared attribute probe -posix_pshared="no" +if test "$posix_pshared" != "yes" ; then + posix_pshared="no" +fi cat > $TMPC < int main(void) @@ -1928,16 +1930,7 @@ fi cat > $TMPC << EOF #include #include -#undef offsetof -#ifdef __compiler_offsetof -#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) -#else -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -#endif - -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) +#include struct foo { int a, b; @@ -1997,7 +1990,9 @@ echo "march_armv8_a_crc_crypto $march_armv8_a_crc_crypto" ########################################## # cuda probe -cuda="no" +if test "$cuda" != "yes" ; then + cuda="no" +fi cat > $TMPC << EOF #include int main(int argc, char **argv)