enginedir=@ENGINEDIR@
PERL=@PERL@
+AM_CPPFLAGS=@AM_CPPFLAGS@
srcdir=.
lib_LTLIBRARIES=libgost.la
libgost_enginedir=$(enginedir)
[AS_HELP_STRING([--with-enginedir],[specify location of OpenSSL engines])],
[ENGINEDIR="$withval"])
AC_SUBST(ENGINEDIR)
+AC_C_BIGENDIAN([],[AM_CPPFLAGS="-DL_ENDIAN"],[],[])
# Checks for programs.
AC_PROG_CC
AC_CHECK_PROG([PERL],[perl],[perl],[AC_MSG_ERROR([*** perl not found])])
# Checks for libraries.
AC_CHECK_LIB([crypto], [ENGINE_new], [], [AC_MSG_ERROR([*** libcrypto not found])])
+AC_SUBST(AM_CPPFLAGS)
AC_CONFIG_FILES([Makefile test/Makefile])
AC_OUTPUT