Fixed bug in autoconf/automake script
parent
e09a385342
commit
c1e2830a86
|
@ -1,7 +1,7 @@
|
|||
AC_INIT(qperf, 0.20.0, general@lists.openfabrics.org)
|
||||
AM_INIT_AUTOMAKE(qperf, 0.20.0)
|
||||
AC_PROG_CC
|
||||
AC_CHECK_LIB(ibverbs, ibv_open_device, HAVE_LIBIBVERBS=1)
|
||||
AM_CONDITIONAL(HAVE_LIBIBVERBS, test -n "$HAVE_LIBIBVERBS")
|
||||
AC_CHECK_LIB(ibverbs, ibv_open_device, RDMA=1)
|
||||
AM_CONDITIONAL(RDMA, test -n "$RDMA")
|
||||
AC_CONFIG_FILES([qperf.spec])
|
||||
AC_OUTPUT(Makefile src/Makefile)
|
||||
|
|
|
@ -7,7 +7,7 @@ Group: Networking/Diagnostic
|
|||
Source: http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz
|
||||
Url: http://www.openfabrics.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libibverbs-devel
|
||||
@RDMA_TRUE@BuildRequires: libibverbs-devel
|
||||
|
||||
%description
|
||||
Measure socket and RDMA performance.
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
bin_PROGRAMS = qperf
|
||||
|
||||
if RDMA
|
||||
AM_CFLAGS = -Wall -O -DRDMA
|
||||
|
||||
if HAVE_LIBIBVERBS
|
||||
qperf_SOURCES = qperf.c socket.c rdma.c help.c qperf.h
|
||||
qperf_LDADD = -libverbs
|
||||
else
|
||||
AM_CFLAGS = -Wall -O
|
||||
qperf_SOURCES = qperf.c socket.c help.c qperf.h
|
||||
endif
|
||||
|
||||
man_MANS = qperf.1
|
||||
|
||||
qperf.1: help.txt
|
||||
qperf.1: help.txt
|
||||
./mkman >qperf.1
|
||||
|
||||
help.c: help.txt
|
||||
if HAVE_LIBIBVERBS
|
||||
if RDMA
|
||||
./mkhelp RDMA
|
||||
else
|
||||
./mkhelp
|
||||
|
|
|
@ -443,7 +443,7 @@ TEST Tests[] ={
|
|||
test(tcp_lat),
|
||||
test(udp_bw),
|
||||
test(udp_lat),
|
||||
#ifdef HAVE_LIBIBVERBS
|
||||
#ifdef RDMA
|
||||
test(rc_bi_bw),
|
||||
test(rc_bw),
|
||||
test(rc_compare_swap_mr),
|
||||
|
|
Loading…
Reference in New Issue