X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=3a4a37a5148165e055e854d6e9d57b5fb4ece461;hp=63aa02ddf6a42d53121407588a97830a454ef82a;hb=6e7d7dfb8fda611bc4c27b4738e05787a215d259;hpb=43cdea1d0d62fe57c0b1017c55b4700cd95f63b0 diff --git a/configure b/configure index 63aa02dd..3a4a37a5 100755 --- a/configure +++ b/configure @@ -1163,6 +1163,26 @@ if compile_prog "" "-lrbd -lrados" "rbd"; then fi echo "Rados Block Device engine $rbd" +########################################## +# check for gfapi +gfapi="no" +cat > $TMPC << EOF +#include + +int main(int argc, char **argv) +{ + + glfs_t *g = glfs_new("foo"); + + return 0; +} +EOF +if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then + LIBS="-lgfapi -lglusterfs $LIBS" + gfapi="yes" +fi +echo "Gluster API engine $gfapi" + ############################################################################# @@ -1291,6 +1311,9 @@ fi if test "$cpu_count" = "yes" ; then output_sym "CONFIG_CPU_COUNT" fi +if test "$gfapi" = "yes" ; then + output_sym "CONFIG_GFAPI" +fi echo "LIBS+=$LIBS" >> $config_host_mak echo "CFLAGS+=$CFLAGS" >> $config_host_mak