X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=8267e1c0b45209e4da8be760bf71aa4cb6a22083;hb=6d0e9f83bdc1b9014ffb7200f923372de29eb713;hp=87cc1cff8fa1f3691d16d7474753758d975cd2e3;hpb=d7145a78bbe51a54c305a4c18864053c2aa32336;p=fio.git diff --git a/configure b/configure index 87cc1cff..8267e1c0 100755 --- a/configure +++ b/configure @@ -161,7 +161,9 @@ if test "$show_help" = "yes" ; then exit $exit_val fi -if check_define __linux__ ; then +if check_define __ANDROID__ ; then + targetos="Android" +elif check_define __linux__ ; then targetos="Linux" elif check_define __OpenBSD__ ; then targetos='OpenBSD' @@ -222,6 +224,15 @@ CYGWIN*) echo "CC=$CC" >> $config_host_mak echo "EXTFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak exit 0 + ;; +Android) + output_sym "CONFIG_32BIT" + output_sym "CONFIG_SOCKLEN_T" + output_sym "CONFIG_GETTIMEOFDAY" + output_sym "CONFIG_CLOCK_GETTIME" + echo "CC=$cc" >> $config_host_mak + echo "EXTFLAGS=$CFLAGS -include config-host.h -DFIO_NO_HAVE_SHM_H -D_GNU_SOURCE" >> $config_host_mak + exit 0 esac if test ! -z "$cpu" ; then