X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=8125fc3ccfb685ae0f8149b191a079121adfbc81;hp=87cc1cff8fa1f3691d16d7474753758d975cd2e3;hb=3ba1ba7f3d0fde62817e3e0c2aa284759de96ec8;hpb=d7145a78bbe51a54c305a4c18864053c2aa32336 diff --git a/configure b/configure index 87cc1cff..8125fc3c 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,17 @@ 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_LITTLE_ENDIAN" + output_sym "CONFIG_SOCKLEN_T" + output_sym "CONFIG_GETTIMEOFDAY" + output_sym "CONFIG_CLOCK_GETTIME" + output_sym "CONFIG_CLOCK_MONOTONIC" + 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 @@ -336,7 +349,7 @@ int main(void) } EOF if compile_prog "" "" "wordsize"; then - wordsize=$($TMPE) + wordsize=`$TMPE` fi echo "Wordsize $wordsize"