fabric: Rename FI_REMOTE_EQ_DATA

The EQ was renamed to CQ for completions.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Update fi_tostr routine

Rename PP (pretty print) to 'tostr', since the function does
not actually print anything.  Change the fi_pp_type to just
fi_type for increased generality.

Move some header formatting functionality out into the
calling functions, so that headers do not appear in strings
for base data types.

Add a prefix parameter to the functions.  The prefix will be
inserted at the start of any new line.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #163 from shefty/master

Update tostr call and fix naming of EQ_DATA
Clean up dl-open features:

Add --with-dlopen=[yes,no] option to compile without loadable provider support.
Selecting no also disables the check for -ldl.

Rename FI_EXTPATH to FI_EXTDIR for consistency with variable names and configure options.

Remove unused includes in fabric.c

Re-include common.c and enosys.c in dl-loadable providers, these are needed.

Address issues from review:

Remove the ./configure-able extdir: this isn't really needed, if one wants to not
scandir a directory on libfabric load do:

1) build with: --enable-dlopen=no
2) set FI_EXTDIR=/dev/null

Not addressed in this patch:

common sources. This is a seperate issue, in the meantime
re-add these so dl-loadable providers are not broken.

More error-checking in configure script for mistakes (ie dlopen=no and providers
built with =dl). I have more ideas for this and will address in a seperate patch.
Merge pull request #161 from pmmccorm/master

Clean up dl-open features:
prov/psm: Fix PSM build -- missed EQ rename ro CQ

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #167 from shefty/master

prov/psm: Fix PSM build -- missed EQ rename ro CQ
prov/verbs: Return -FI_ENOMEM if fi_allocinfo fails

Return a negative value, rather than positive value from
fi_ibv_getpeinfo.

Problem reported by: Reese Faucette <rfaucett@cisco.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #168 from shefty/master

prov/verbs: Return -FI_ENOMEM if fi_allocinfo fails