dnl dnl IMPORTANT NOTE: dnl These two definitions are copied to ssl's acinclude.m4. Any dnl modifications to one should be reproduced in the other. dnl dnl dnl REMOVE_WERROR dnl AC_DEFUN([REMOVE_WERROR],[ dc_werror_set="no" AC_MSG_CHECKING(whether -Werror is set) echo "$CFLAGS" | grep -e "-Werror" > /dev/null 2>&1 && dc_werror_set="yes" if test "$dc_werror_set" = "no"; then AC_MSG_RESULT(no) else AC_MSG_RESULT(yes) CFLAGS=`echo $CFLAGS | sed -e "s/-Werror//g"` fi ]) dnl dnl REPLACE WERROR dnl AC_DEFUN([REPLACE_WERROR],[ AC_MSG_CHECKING(whether to reinsert -Werror) if test "$dc_werror_set" = "yes"; then AC_MSG_RESULT(yes) CFLAGS="-Werror $CFLAGS" else AC_MSG_RESULT(no) fi ]) dnl dnl TOP_LEVEL_SSL dnl AC_DEFUN([TOP_LEVEL_SSL],[ dc_ssl_enable="yes" AC_ARG_ENABLE(ssl, AC_HELP_STRING( [--disable-ssl], [disable all SSL-specific targets]), [ if test "x$enableval" != "x"; then if test "$enableval" != "yes" -a "$enableval" != "no"; then AC_MSG_ERROR("invalid syntax: --enable-ssl=$enableval") fi dc_ssl_enable=$enableval fi ]) if test "$dc_ssl_enable" = "yes"; then AC_CONFIG_SUBDIRS(ssl) sslheaders="nal_ssl.h" else sslheaders="" fi AC_SUBST(sslheaders) AH_TEMPLATE(PREFER_POLL, [Define to 1 if you prefer poll over select]) dc_poll_prefer="yes" AC_ARG_ENABLE(poll, AC_HELP_STRING( [--disable-poll], [prefer 'select' to 'poll' if both available]), [ if test "x$enableval" != "x"; then if test "$enableval" != "yes" -a "$enableval" != "no"; then AC_MSG_ERROR("invalid syntax: --enable-poll=$enableval") fi dc_poll_prefer=$enableval fi ]) AC_MSG_CHECKING(whether to prefer poll over select) if test "$dc_poll_prefer" = "yes"; then AC_DEFINE(PREFER_POLL) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) fi dnl Put in stubs. These are properly implemented in ssl/acinclude.m4 dnl but we want them to appear in "./configure --help" AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=/path/to/openssl], [use the specified OpenSSL installation or build tree]), []) AC_ARG_ENABLE(swamp, AC_HELP_STRING([--disable-swamp], [don't build the 'sslswamp' SSL/TLS utility]), []) ])