From ebec20944b213702d02e0114a3c0fa8fc663f640 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 9 Oct 2014 18:15:36 -0600 Subject: [PATCH 1/1] configure: only print gtk status if --enable-gfio used Otherwise we always just print no, even though we did not check. Signed-off-by: Jens Axboe --- configure | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 81b16a35..58f02fa5 100755 --- a/configure +++ b/configure @@ -133,7 +133,7 @@ cpu="" # default options show_help="no" exit_val=0 -gfio="no" +gfio_check="no" libhdfs="no" # parse options @@ -153,7 +153,7 @@ for opt do --build-32bit-win) build_32bit_win="yes" ;; --enable-gfio) - gfio="yes" + gfio_check="yes" ;; --disable-numa) disable_numa="yes" ;; @@ -982,7 +982,8 @@ echo "__thread $tls_thread" ########################################## # Check if we have required gtk/glib support for gfio -if test "$gfio" = "yes" ; then +gfio="no" +if test "$gfio_check" = "yes" ; then cat > $TMPC << EOF #include #include @@ -1021,7 +1022,9 @@ else fi fi -echo "gtk 2.18 or higher $gfio" +if test "$gfio_check" = "yes" ; then + echo "gtk 2.18 or higher $gfio" +fi # Check whether we have getrusage(RUSAGE_THREAD) rusage_thread="no" -- 2.25.1