X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=a0692d58e62d643a30cb8734eace9969000b064f;hb=df0ca15ce2ffac0df3e9dcf4bfe4121333c4aa27;hp=82bd432ee59b61857f2cf2617489f5f5be83ba7b;hpb=4d1bc43e9f495459f03b32a53002e1526d06dea6;p=fio.git diff --git a/configure b/configure index 82bd432e..a0692d58 100755 --- a/configure +++ b/configure @@ -207,6 +207,8 @@ for opt do ;; --enable-libiscsi) libiscsi="yes" ;; + --disable-tcmalloc) disable_tcmalloc="yes" + ;; --help) show_help="yes" ;; @@ -243,6 +245,7 @@ if test "$show_help" = "yes" ; then echo "--disable-native Don't build for native host" echo "--with-ime= Install path for DDN's Infinite Memory Engine" echo "--enable-libiscsi Enable iscsi support" + echo "--disable-tcmalloc Disable tcmalloc support" exit $exit_val fi @@ -1356,19 +1359,18 @@ if test "$?" != "0" ; then echo "configure: gtk and gthread not found" exit 1 fi -if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then - $TMPE - if test "$?" = "0" ; then +if ! ${cross_prefix}pkg-config --atleast-version 2.18.0 gtk+-2.0; then + echo "GTK found, but need version 2.18 or higher" + gfio="no" +else + if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then gfio="yes" GFIO_LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" else - echo "GTK found, but need version 2.18 or higher" + echo "Please install gtk and gdk libraries" gfio="no" fi -else - echo "Please install gtk and gdk libraries" - gfio="no" fi LDFLAGS=$ORG_LDFLAGS fi @@ -2696,6 +2698,19 @@ if test "$libiscsi" = "yes" ; then echo "LIBISCSI_CFLAGS=$libiscsi_cflags" >> $config_host_mak echo "LIBISCSI_LIBS=$libiscsi_libs" >> $config_host_mak fi +cat > $TMPC << EOF +int main(int argc, char **argv) +{ + return 0; +} +EOF +if test "$disable_tcmalloc" != "yes" && compile_prog "" "-ltcmalloc" "tcmalloc"; then + LIBS="-ltcmalloc $LIBS" + tcmalloc="yes" +else + tcmalloc="no" +fi +print_config "TCMalloc support" "$tcmalloc" echo "LIBS+=$LIBS" >> $config_host_mak echo "GFIO_LIBS+=$GFIO_LIBS" >> $config_host_mak