[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1-17-g0c77e93

Service Account noreply at mpich.org
Wed Feb 26 12:57:44 CST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  0c77e93a3f6abfd106c320be8324eb3fef4b0491 (commit)
      from  38a5e617acb34d94963e144aba2cb543a97cf608 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/0c77e93a3f6abfd106c320be8324eb3fef4b0491

commit 0c77e93a3f6abfd106c320be8324eb3fef4b0491
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date:   Tue Feb 25 07:48:20 2014 -0600

    use AC_SEARCH_LIBS for additional libraries
    
    The functions searched generally live in libc, but some platforms (e.g.
    Solaris) have them in special libraries. Use AC_SEARCH_LIBS to include
    the extra libraries when needed. Fixes #2034
    
    Signed-off-by: Pavan Balaji <balaji at mcs.anl.gov>

diff --git a/src/pm/hydra/configure.ac b/src/pm/hydra/configure.ac
index 4d545d0..1e8b324 100644
--- a/src/pm/hydra/configure.ac
+++ b/src/pm/hydra/configure.ac
@@ -158,8 +158,11 @@ AC_CHECK_HEADERS(unistd.h strings.h sys/types.h sys/socket.h sched.h sys/stat.h
 		 netinet/in.h netinet/tcp.h sys/un.h netdb.h sys/time.h time.h ifaddrs.h arpa/inet.h \
 		 poll.h fcntl.h netdb.h winsock2.h windows.h)
 
-AC_CHECK_LIB(socket,socket,LDFLAGS="$LDFLAGS -lsocket",)
-AC_CHECK_LIB(nsl,gethostbyname,LDFLAGS="$LDFLAGS -lnsl",)
+# These functions are in additional libraries on some platforms (like Solaris).
+# Check to see if they are needed.
+AC_SEARCH_LIBS(socket,socket,)
+AC_SEARCH_LIBS(gethostbyname,nsl,)
+AC_SEARCH_LIBS(hstrerror, resolv,)
 
 # Check for necessary functions
 AC_CHECK_FUNCS(gettimeofday time strdup sigaction signal usleep alloca unsetenv \

-----------------------------------------------------------------------

Summary of changes:
 src/pm/hydra/configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list