diff options
Diffstat (limited to 'android-configure.sh')
-rwxr-xr-x | android-configure.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/android-configure.sh b/android-configure.sh index 30d6f3c..b992064 100755 --- a/android-configure.sh +++ b/android-configure.sh @@ -355,9 +355,9 @@ fi # check whether we have <byteswap.h> # -feature_check_header HAVE_BYTESWAP_H "<byteswap.h>" - -feature_check_header HAVE_FNMATCH_H "<fnmatch.h>" +feature_check_header HAVE_BYTESWAP_H "<byteswap.h>" +feature_check_header HAVE_MACHINE_BSWAP_H "<machine/bswap.h>" +feature_check_header HAVE_FNMATCH_H "<fnmatch.h>" # Build the config.make file # @@ -404,7 +404,10 @@ echo "/* This file was autogenerated by '$PROGNAME' */" > $config_h echo "#define CONFIG_QEMU_SHAREDIR \"/usr/local/share/qemu\"" >> $config_h echo "#define HOST_LONG_BITS $HOST_LONGBITS" >> $config_h if [ "$HAVE_BYTESWAP_H" = "yes" ] ; then - echo "#define HAVE_BYTESWAP_H 1" >> $config_h + echo "#define CONFIG_BYTESWAP_H 1" >> $config_h +fi +if [ "$HAVE_MACHINE_BYTESWAP_H" = "yes" ] ; then + echo "#define CONFIG_MACHINE_BSWAP_H 1" >> $config_h fi if [ "$HAVE_FNMATCH_H" = "yes" ] ; then echo "#define CONFIG_FNMATCH 1" >> $config_h |