]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fixed compilation of gosthash12 on little-endian arch
authorVictor Wagner <wagner@atlas-kard.ru>
Thu, 1 Oct 2015 14:04:30 +0000 (17:04 +0300)
committerVictor Wagner <wagner@atlas-kard.ru>
Thu, 1 Oct 2015 14:04:30 +0000 (17:04 +0300)
Makefile.am
configure.ac

index 42564c041ed9f57fe9926e24f2aa5cee4c0ef08c..74706099363a8a99335fc22e649f08ef5c2c5307 100644 (file)
@@ -1,5 +1,6 @@
 enginedir=@ENGINEDIR@
 PERL=@PERL@
+AM_CPPFLAGS=@AM_CPPFLAGS@
 srcdir=.
 lib_LTLIBRARIES=libgost.la
 libgost_enginedir=$(enginedir)
index d1626f4c3c4d9f07a40eef55192b4871fe2a7556..b7fd02b1d2347aac819a7f48841c5af1c27618c8 100644 (file)
@@ -10,6 +10,7 @@ AC_ARG_WITH([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
@@ -18,5 +19,6 @@ AC_PROG_LIBTOOL
 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