X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=configure;h=3b871efa302acb522ed25f1f51da11fc838b0cb0;hb=0f38bbef532ef9da0d43382dca58a20e57c63dc1;hp=ff97200cbcfc75e46c4b6fe261567410d8126d4f;hpb=b8116a874ba58e00919f4000e51865f2c91dd2f5;p=fio.git diff --git a/configure b/configure index ff97200c..3b871efa 100755 --- a/configure +++ b/configure @@ -135,11 +135,14 @@ show_help="no" exit_val=0 gfio_check="no" libhdfs="no" +prefix=/usr/local # parse options for opt do optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` case "$opt" in + --prefix=*) prefix="$optarg" + ;; --cpu=*) cpu="$optarg" ;; # esx is cross compiled and cannot be detect through simple uname calls @@ -178,6 +181,7 @@ for opt do done if test "$show_help" = "yes" ; then + echo "--prefix= Use this directory as installation prefix" echo "--cpu= Specify target CPU if auto-detect fails" echo "--cc= Specify compiler to use" echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" @@ -716,6 +720,24 @@ EOF fi echo "CLOCK_MONOTONIC $clock_monotonic" +########################################## +# CLOCK_MONOTONIC_RAW probe +clock_monotonic_raw="no" +if test "$clock_gettime" = "yes" ; then + cat > $TMPC << EOF +#include +#include +int main(int argc, char **argv) +{ + return clock_gettime(CLOCK_MONOTONIC_RAW, NULL); +} +EOF + if compile_prog "" "$LIBS" "clock monotonic"; then + clock_monotonic_raw="yes" + fi +fi +echo "CLOCK_MONOTONIC_RAW $clock_monotonic_raw" + ########################################## # CLOCK_MONOTONIC_PRECISE probe clock_monotonic_precise="no" @@ -1378,6 +1400,7 @@ cat > $TMPC << EOF int main(int argc, char **argv) { struct mtd_info_user info; + info.type = MTD_MLCNANDFLASH; return ioctl(0, MEMGETINFO, &info); } EOF @@ -1480,6 +1503,9 @@ fi if test "$clock_monotonic" = "yes" ; then output_sym "CONFIG_CLOCK_MONOTONIC" fi +if test "$clock_monotonic_raw" = "yes" ; then + output_sym "CONFIG_CLOCK_MONOTONIC_RAW" +fi if test "$clock_monotonic_precise" = "yes" ; then output_sym "CONFIG_CLOCK_MONOTONIC_PRECISE" fi @@ -1611,3 +1637,4 @@ echo "CFLAGS+=$CFLAGS" >> $config_host_mak echo "LDFLAGS+=$LDFLAGS" >> $config_host_mak echo "CC=$cc" >> $config_host_mak echo "BUILD_CFLAGS=$BUILD_CFLAGS $CFLAGS" >> $config_host_mak +echo "INSTALL_PREFIX=$prefix" >> $config_host_mak