All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add configure flags for gfapi and rbd
@ 2014-06-26 12:20 Tiziano Müller
  2014-06-26 15:37 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Tiziano Müller @ 2014-06-26 12:20 UTC (permalink / raw)
  To: fio; +Cc: Tiziano Müller

Add --disable-{gfapi,rbd} to disable gfapi/rbd support even if available.
---
 configure | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 0e861ee..f1e116e 100755
--- a/configure
+++ b/configure
@@ -156,6 +156,10 @@ for opt do
   ;;
   --disable-numa) disable_numa="yes"
   ;;
+  --disable-rbd) disable_rbd="yes"
+  ;;
+  --disable-gfapi) disable_gfapi="yes"
+  ;;
   --help)
     show_help="yes"
     ;;
@@ -1146,7 +1150,7 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
-if compile_prog "" "-lrbd -lrados" "rbd"; then
+if test "$disable_rbd" != "yes"  && compile_prog "" "-lrbd -lrados" "rbd"; then
   LIBS="-lrbd -lrados $LIBS"
   rbd="yes"
 fi
@@ -1183,7 +1187,7 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
-if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then
+if test "$disable_gfapi" != "yes"  && compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then
   LIBS="-lgfapi -lglusterfs $LIBS"
   gfapi="yes"
 fi
-- 
1.9.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add configure flags for gfapi and rbd
  2014-06-26 12:20 [PATCH] Add configure flags for gfapi and rbd Tiziano Müller
@ 2014-06-26 15:37 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2014-06-26 15:37 UTC (permalink / raw)
  To: Tiziano Müller, fio

On 06/26/2014 06:20 AM, Tiziano M�ller wrote:
> Add --disable-{gfapi,rbd} to disable gfapi/rbd support even if available.

Applied, thanks.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-26 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 12:20 [PATCH] Add configure flags for gfapi and rbd Tiziano Müller
2014-06-26 15:37 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.