Changeset 21181b2 in mod_gnutls for configure.ac


Ignore:
Timestamp:
Mar 14, 2016, 4:05:13 PM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
a0161fe
Parents:
c0c4106
Message:

Test suite: Enable OCSP if OpenSSL is available, provide port for responder

Tests must Define OCSP_PORT in their apache.conf to enable the OCSP
responder port.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rc0c4106 r21181b2  
    8181               [test "$enable_flock" = "no" || test "$flock_works" = "no"])
    8282
    83 # TODO: check for openssl ocsp
    84 AM_CONDITIONAL([ENABLE_OCSP_TEST], [true])
     83# openssl is needed as the responder for OCSP tests
     84AC_PATH_PROG([OPENSSL], [openssl], [no])
     85AM_CONDITIONAL([ENABLE_OCSP_TEST], [test "${OPENSSL}" != "no"])
    8586
    8687dnl Enable test namespaces? Default is "yes".
     
    208209
    209210dnl Build list of "Listen" statements for Apache
    210 LISTEN_LIST="# Listen addresses for the test servers"
     211LISTEN_LIST="@%:@ Listen addresses for the test servers"
    211212for i in ${TEST_IP}; do
    212213        LISTEN_LIST="${LISTEN_LIST}
    213214Listen ${i}:\${TEST_PORT}"
    214215done
    215 dnl HTTP ports, only active if TEST_HTTP_PORT is defined
     216# Available extra ports, tests can "Define" variables of the listed
     217# names in their apache.conf to enable them.
     218for j in TEST_HTTP_PORT OCSP_PORT; do
    216219LISTEN_LIST="${LISTEN_LIST}
    217 <IfDefine TEST_HTTP_PORT>"
     220<IfDefine ${j}>"
    218221for i in ${TEST_IP}; do
    219222        LISTEN_LIST="${LISTEN_LIST}
    220         Listen ${i}:\${TEST_HTTP_PORT}"
     223        Listen ${i}:\${${j}}"
    221224done
    222225LISTEN_LIST="${LISTEN_LIST}
    223226</IfDefine>"
     227done
    224228AC_SUBST(LISTEN_LIST)
    225229AM_SUBST_NOTMAKE(LISTEN_LIST)
Note: See TracChangeset for help on using the changeset viewer.