IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12430


Ignore:
Timestamp:
Mar 12, 2007, 7:15:35 PM (19 years ago)
Author:
Paul Price
Message:

Configuration fixes to allow configure to run successfully on panstarrs (Solaris machine): Need additional libraries to link cfitsio; md5.h is in a different location (sys/ instead of openssl/). In addition, the user also needs to provide a symlink to /usr/lib/libcrypto.so.0.9.7 as libcrypto.so.0 somewhere in the linking path.

Location:
trunk/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r12417 r12430  
    134134CFLAGS=${CFLAGS} ${CFITSIO_CFLAGS}
    135135LDFLAGS=${LDFLAGS} ${CFITSIO_LDFLAGS}
     136
     137dnl Solaris needs to suck in these symbols from unusual locations
     138AC_SEARCH_LIBS([gethostbyname], [nsl])
     139AC_SEARCH_LIBS([socket], [socket])
    136140
    137141AC_CHECK_HEADERS([fitsio.h],[],
     
    431435
    432436AC_CHECK_HEADERS([openssl/md5.h],[],
    433   [AC_MSG_ERROR([SSL headers not found.  Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])]
     437        [AC_CHECK_HEADERS([sys/md5.h],[],
     438                [AC_MSG_ERROR([SSL headers not found.  Obtain it at http://www.openssl.org/ or use --with-ssl to specify location.])]
     439        )]
    434440)
    435441AC_CHECK_LIB(crypto,MD5,[],
  • trunk/psLib/src/math/psMD5.c

    r11616 r12430  
    55#include <stdio.h>
    66#include <string.h>
     7
     8#ifdef HAVE_SYS_MD5_H
     9// Seems to be the case for Solaris
     10#include <sys/md5.h>
     11#else
     12// Seems to be the case for most others
    713#include <openssl/md5.h>
     14#endif // HAVE_SYS_MD5_H
     15
    816
    917#include "psAssert.h"
Note: See TracChangeset for help on using the changeset viewer.