diff --git a/configure b/configure index cd33497fb8..756b67b04b 100755 --- a/configure +++ b/configure @@ -3008,6 +3008,21 @@ fi echores "$_alloca" +echocheck "byteswap.h" +cat > $TMPC << EOF +#include +int main(void) { bswap_16(0); return 0; } +EOF +_byteswap_h=no +cc_check && _byteswap_h=yes +if cc_check ; then + _def_byteswap_h='#define HAVE_BYTESWAP_H 1' +else + _def_byteswap_h='#undef HAVE_BYTESWAP_H' +fi +echores "$_byteswap_h" + + echocheck "mman.h" cat > $TMPC << EOF #include @@ -8024,6 +8039,9 @@ $_def_asmalign_pot /* Define this if your system has the "alloca.h" header file */ $_def_alloca +/* Define this if your system has the "byteswap.h" header file */ +$_def_byteswap_h + /* Define this if your system has the "sys/mman.h" header file */ $_def_mman $_def_mman_has_map_failed