dnl
dnl $Id: config0.m4,v 1.2.2.1 2003/08/27 17:57:30 sniper Exp $
dnl

PHP_ARG_WITH(openssl, for OpenSSL support,
[  --with-openssl[=DIR]    Include OpenSSL support (requires OpenSSL >= 0.9.6)])

if test "$PHP_OPENSSL" != "no"; then
  PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, 
  [
    PHP_NEW_EXTENSION(openssl, openssl.c, $ext_shared)
    PHP_SUBST(OPENSSL_SHARED_LIBADD)
    AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
  ], [
    AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
  ])
fi
