Ticket #13329: prereq-1.1-libs.patch

File prereq-1.1-libs.patch, 1.7 KB (added by jdemeyer, 9 years ago)
  • configure.ac

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1344420252 -7200
    # Node ID 1789da930c20e6548d388aedec2ae6c651fb1bb3
    # Parent  b13a8b8797f7dd9b0f66043fd23bd3dece8da08d
    Trac #13329: Add -lcrypto and -ldl (needed for -lssl), support SAGE_LOCAL
    
    diff -r b13a8b8797f7 -r 1789da930c20 configure.ac
    a b  
    3636AC_ARG_ENABLE([compiler-checks], [Check versions and presence of C, C++ and Fortran compilers (default: yes)],
    3737    [enable_compiler_checks=$enableval], [enable_compiler_checks=yes])
    3838
    39 # Import three environment variables.
     39# Import environment variables.
     40AC_ARG_VAR([SAGE_LOCAL],[Prefix to search for libraries and include files])
    4041AC_ARG_VAR([SAGE_FORTRAN_LIB],[The path to the fortran library])
    4142AC_ARG_VAR([SAGE_FORTRAN],[The path to the fortran compiler])
    4243AC_ARG_VAR([SAGE64],[If building 64-bit])
    4344
     45CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"
     46LDFLAGS="$LDFLAGS -L$SAGE_LOCAL/lib"
     47
    4448# Check if SAGE_FORTRAN is set, and if so set 'FC' to it, as
    4549# 'FC' is just the Fortran equivalent of CC and CXX.
    4650# see http://www.gnu.org/software/hello/manual/autoconf/Fortran-Compiler.html
     
    236240
    237241# Next one should check for libraries.
    238242# OpenSSL is a prerequisite for the notebook.
     243# Before checking OpenSSL, we check for -ldl and -lcrypto (which are
     244# needed on some systems to link -lssl).
     245AC_SEARCH_LIBS([dlopen], [dl])
     246AC_SEARCH_LIBS([CRYPTO_free], [crypto])
    239247AC_CHECK_LIB(ssl, SSL_library_init, [], [
    240248    AC_MSG_NOTICE([The OpenSSL library is required to build the Sage Notebook.])
    241249    AC_MSG_NOTICE([You might need to execute one of the following (or the equivalent for your])