2005-04-28 15:23:27 +02:00
|
|
|
AC_CONFIG_FILES(extra/yassl/Makefile dnl
|
|
|
|
extra/yassl/taocrypt/Makefile dnl
|
|
|
|
extra/yassl/taocrypt/src/Makefile dnl
|
|
|
|
extra/yassl/src/Makefile)
|
|
|
|
|
|
|
|
AC_DEFUN([MYSQL_CHECK_YASSL], [
|
|
|
|
AC_MSG_CHECKING(for yaSSL)
|
2005-06-18 16:10:53 +02:00
|
|
|
AC_ARG_WITH([yassl], [ --with-yassl Include the yaSSL support],,)
|
2005-04-28 15:23:27 +02:00
|
|
|
|
2005-06-18 16:10:53 +02:00
|
|
|
if test "$with_yassl" = "yes"
|
2005-04-28 15:23:27 +02:00
|
|
|
then
|
|
|
|
if test "$openssl" != "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Cannot configure MySQL to use yaSSL and OpenSSL simultaneously.])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([using bundled yaSSL])
|
|
|
|
yassl_dir="extra/yassl"
|
2005-10-18 15:43:59 +02:00
|
|
|
yassl_libs="-L\$(top_srcdir)/extra/yassl/src -lyassl -L\$(top_srcdir)/extra/yassl/taocrypt/src -ltaocrypt"
|
|
|
|
yassl_includes="-I\$(top_srcdir)/extra/yassl/include"
|
2005-11-28 16:28:00 +01:00
|
|
|
yassl_libs_with_path="\$(top_srcdir)/extra/yassl/src/libyassl.la \$(top_srcdir)/extra/yassl/taocrypt/src/libtaocrypt.la"
|
2005-04-28 15:23:27 +02:00
|
|
|
AC_DEFINE([HAVE_OPENSSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
|
2005-10-12 10:18:46 +02:00
|
|
|
AC_DEFINE([HAVE_YASSL], [1], [Defined by configure. Using yaSSL for OpenSSL emulation.])
|
2005-09-15 08:59:29 +02:00
|
|
|
# System specific checks
|
|
|
|
yassl_integer_extra_cxxflags=""
|
2005-09-27 17:03:43 +02:00
|
|
|
case $host_cpu--$CXX_VERSION in
|
|
|
|
sparc*--*Sun*C++*5.6*)
|
2005-11-24 17:17:36 +01:00
|
|
|
# Disable inlining when compiling taocrypt/src/
|
|
|
|
yassl_taocrypt_extra_cxxflags="+d"
|
|
|
|
AC_MSG_NOTICE([disabling inlining for yassl/taocrypt/src/])
|
2005-09-15 08:59:29 +02:00
|
|
|
;;
|
|
|
|
esac
|
2005-11-24 17:17:36 +01:00
|
|
|
AC_SUBST([yassl_taocrypt_extra_cxxflags])
|
2006-01-04 16:33:06 +01:00
|
|
|
# Link extra/yassl/include/openssl subdir to include/
|
|
|
|
yassl_h_ln_cmd="\$(LN) -s \$(top_srcdir)/extra/yassl/include/openssl openssl"
|
|
|
|
AC_SUBST(yassl_h_ln_cmd)
|
2005-04-28 15:23:27 +02:00
|
|
|
else
|
|
|
|
yassl_dir=""
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2005-10-18 15:43:59 +02:00
|
|
|
AC_SUBST(yassl_libs)
|
2005-11-28 16:28:00 +01:00
|
|
|
AC_SUBST(yassl_libs_with_path)
|
2005-10-18 15:43:59 +02:00
|
|
|
AC_SUBST(yassl_includes)
|
2005-04-28 15:23:27 +02:00
|
|
|
AC_SUBST(yassl_dir)
|
2005-06-18 16:10:53 +02:00
|
|
|
AM_CONDITIONAL([HAVE_YASSL], [ test "with_yassl" = "yes" ])
|
2005-04-28 15:23:27 +02:00
|
|
|
])
|