Fixes #4894: Move r32669 to v1.8 branch (Use dirname when available - combines with 4893)

---svn-pre-commit-ignore-below---

r32669 [[BR]]
We are failing to use the system dirname function because we are not correctly flagging that we found it. Modify opal_search_libs_core to set an "opal_have_foo" flag to indicate that we found the specified function, and then modify the have_dirname check to look for it.

cmr=v1.8.3:reviewer=jsquyres


r32721 [[BR]]
opal_search_libs.m4: remove redundant AC_MSG_CHECKING/RESULT

The AC_MSG_CHECKING/AC_MSG_RESULT in OPAL_SEARCH_LIBS_CORE were
generating recursive redundant output (i.e., AC_SEARCH_LIBS already
outputs "checking for library containing X... -lY".

Also add the "uppername" logic to OPAL_SEARCH_LIBS_COMPONENT so that
these two macros stay symmetrical.

Refs #4894.

r32723 [[BR]]
opal_search_libs: correctly AC_DEFINE results of search

1. It is not sufficient to put the result of m4_toupper() in a
variable and use that variable as the variable name in
AC_DEFINE_UNQUOTED.  Instead, just use m4_toupper() directly in
AC_DEFINE_UNQUOTED.  Also, save the result value in a "permanent"
variable that isn't erased, just in case autoconf decides to be lazy
about instantiating the body AC_DEFINE_UNQUOTED and move it later
(this is probably overkill :-) ).
1. Use the OMPI Way of always defining macros (to 0 or 1).  Then also
slightly change the logic in util/basename.c to just check
OPAL_HAVE_DIRNAME (because it will always be defined).

Refs #4894
Fixes #4901: Move r32701 to v1.8 branch (Per patch from Tetsuya, allow)

---svn-pre-commit-ignore-below---

r32701 [[BR]]
Per patch from Tetsuya, allow the user to bind-to none when specifying multiple pe's/rank as requested by Reuti. This allows the user to reserve multiple "slots" in the allocation for each process while mapping, but not to bind the process to specific processing elements on the node.

Reviewed by rhc, so RM-approved to go across to v1.8.3

cmr=v1.8.3:reviewer=ompi-gk1.8
Fixes #4893: Move r32667 to v1.8 branch (find_last_path_separator returns NULL if the)

---svn-pre-commit-ignore-below---

r32667 [[BR]]
find_last_path_separator returns NULL if the filename doesn't contain a path separator in it - i.e., it's just a local file. So protect the loop to avoid a segfault

cmr=v1.8.3:reviewer=rolfv
Fixes #4877: Move r32613 to v1.8 branch (Correctly build the args for)

---svn-pre-commit-ignore-below---

r32613 [[BR]]
Correctly build the args for the hindexed_block datatype.
cmr=v1.8.3:reviewer=jsquyres
Fixes #4890: Move r32661 to v1.8 branch (LSF required libraries.)

---svn-pre-commit-ignore-below---

r32661 [[BR]]
Per patch submitted by J. Randall, add missing library to LSF integration

cmr=v1.8.3:reviewer=rhc


r32722 [[BR]]
orte_check_lsf.m4: improve the search for LSF libraries

Based on a patch from Joshua Randall, improve the search for LSF
libraries in orte_check_lsf.m4.  This improvement theorhetically
allows the LSF libraries to work in a variety of OSs by properly
searching for its dependent libraries using a variety of library
names.

Fixes #4889.
Fixes #4898: Move r32687 to v1.8 branch (Improve the --bind-to help message)

---svn-pre-commit-ignore-below---

r32687 [[BR]]
Improve the --bind-to help message to better indicate the default options under various values of np. Remove the warning message if the user doesn't specify a binding policy and we are overloaded

cmr=v1.8.3:reviewer=jsquyres


r32691 [[BR]]
Per request from Jeff: tune up the help messages for binding options

Refs #4898