Fixes #4841: Move r32447, r32448 to v1.8 branch (configury: ensure wrapper static LIBS)

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

(GK resolved conflicts for v1.8 branch)

r32447 [[BR]]
configury: ensure wrapper static LIBS is filled properly

In core library portions of the configury (e.g., top-level
configure.ac itself), we were calling AC_CHECK_LIB and
OPAL_CHECK_FUNC_LIB to check for various libraries.

'''SIDENOTE:''' It turns out that modern Autoconf has AC_SEARCH_LIBS,
which does just about exactly what OPAL_CHECK_FUNC_LIB does.  So this
commit effectively replaces OPAL_CHECK_FUNC_LIB with AC_SEARCH_LIBS.

However, we never bothered to add these found libraries to the wrapper
compiler list of libraries used for static linking (doh!).  We've been
getting lucky for quite a while that components were adding the same
libraries to their wrapper compiler LIBS list.  

This is problematic, however, if we don't build some of these
components.  For example, Paul Hargrove noticed that if he configured
with --disable-shared --enable-static --disable-io-romio, ROMIO was no
longer adding some libraries to the wrapper LIBS list -- libraries
that just happened to also be needed by core OPAL/ORTE/OMPI layers.

The solution is not to use AC_CHECK_LIB or OPAL_CHECK_FUNC_LIB, but
use a pair of new macros:

 * OPAL_SEARCH_LIBS_CORE: a wrapper around AC_SEARCH_LIBS.  If we add
   something to $LIBS, then also add it to the wrapper list of static
   libraries.  This is the main piece of functionality that was
   wrong/missing.
 * OPAL_SEARCH_LIBS_COMPONENT: similar to OPAL_SEARCH_LIBS_CORE, but
   instead of directly adding it to the wrapper list of static
   libaries, add it to <framework>_<component>_LIBS (which eventually
   gets slurped up into the wrapper list of static libraries.  See the
   lengthy comment in config/opal_setup_wrappers.m4 near the beginning
   of OPAL_SETUP_WRAPPER_INIT() for a more detailed explanation).
   Most components did this correctly already, but one or two weren't
   right, so I implemented this second macro quite similar to the
   first and put it everywhere we already used AC_SEARCH_LIBS or
   OPAL_CHECK_FUNC_LIB.

This needs to soak for a day or two on the trunk before moving to the
v1.8 branch.

Refs #4834

cmr=v1.8.2:reviewer=ggouaillardet

r32448 [[BR]]
configury: ensure wrapper static LIBS is filled properly

Fix parameter order in OPAL_SEARCH_LIBS_CORE call

cmr=v1.8.2:ticket=#4841
Fixes #4842: Move r32449 to v1.8 branch (Fix missing prototype for _strdup)

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

r32449 [[BR]]
Fix missing prototype for _strdup

_strdup is not part of any include file i could find on Solaris 10.
manually add the _strdup prototype if needed.

cmr=v1.8.2:reviewer=jsquyres

r32450 [[BR]]
windows: effectively revert r32449

The _strdup usage in opal/util/basename looks like it was a product of
Windows compatibility (see r11336), which we don't care about any
more.  Further, opal/win32/win_compat.h, which we sitll maintain for
cygwin compatibility, #define's strdup to _strdup (which is what
Microsoft wants you to use).  

So this old _strdup in opal/util/basename.c (and its corresponding
check in configure.ac) should just be removed.
Fixes #4843: Move r32457 to v1.8 branch (README: Document the --with-usnic configure)

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

r32457 [[BR]]
README: Document the --with-usnic configure switch

cmr=v1.8.2:reviewer=rhc
Fixes #4844: Move r32459 to v1.8 branch (Avoid alignment issues in opal_value_t)

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

r32459 [[BR]]
Avoid alignment issues in opal_value_t copies

cmr=v1.8.2:reviewer=rhc
Fixes #4845: Move r32460 to v1.8 branch (Resolve race condition when procs)

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

r32460 [[BR]]
Resolve race condition when procs call MPI_Abort. Since we go thru the errmgr instead of the normal proc termination routines, we need to ensure we mark that the proc has fired its waitpid and is no longer alive. Otherwise, the local daemon won't terminate because it thinks there is still a local proc alive and we hang.

Thanks to Gilles for tracking it down.

cmr=v1.8.2:reviewer=rhc