Skip to content

Commit

Permalink
Remove automake version check for make dist.
Browse files Browse the repository at this point in the history
No longer doing an automake check so it's not needed.
  • Loading branch information
jralls committed Sep 22, 2017
1 parent 9a0020a commit 2319dff
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions src/cmake_modules/MakeDist.cmake
Expand Up @@ -22,43 +22,20 @@ FUNCTION(FIND_AUTOMAKE AUTOMAKE_VAR ACLOCAL_VAR AUTOMAKE_VERSION_VAR NEED_OVERRI
ERROR_VARIABLE AUTOMAKE_ERROR
)

# GnuCash will not pass distcheck under automake 1.15+
# See if automake-1.11 is available. If so use, that
SET(AUTOMAKE_OK TRUE)
SET(NEED_OVERRIDE FALSE)
IF(${AUTOMAKE} STREQUAL AUTOMAKE-NOTFOUND)
SET(AUTOMAKE_OK FALSE)
ELSE()
STRING(REGEX REPLACE ".*automake \\(GNU automake\\) ([0-9]\\.[0-9]+).*" "\\1" AUTOMAKE_VERSION "${AUTOMAKE_OUTPUT}")

IF (${AUTOMAKE_VERSION} VERSION_GREATER "1.14")
SET(AUTOMAKE_OK FALSE)
ELSE()
FIND_PROGRAM(ACLOCAL aclocal)
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
MESSAGE(FATAL_ERROR "Found ok version of automake, but can't find aclocal")
ENDIF()
FIND_PROGRAM(ACLOCAL aclocal)
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
MESSAGE(FATAL_ERROR "Found ok version of automake, but can't find aclocal")
ENDIF()
ENDIF()
IF (NOT AUTOMAKE_OK)
FIND_PROGRAM(AUTOMAKE11 automake-1.11)
IF (${AUTOMAKE11} STREQUAL AUTOMAKE11-NOTFOUND)
IF (${AUTOMAKE} STREQUAL AUTOMAKE-NOTFOUND)
MESSAGE(FATAL_ERROR "Can't find 'automake' or 'automake-1.11'")
ELSE()
MESSAGE("Automake is incompatible version 1.15+, but can't find automake-1.11")
MESSAGE(" You can set AUTOTOOLS_IN_DIST=OFF to exclude autotools support.")
MESSAGE(FATAL_ERROR "automake not compatible")
ENDIF()
ELSE()
SET(AUTOMAKE ${AUTOMAKE11})
SET(AUTOMAKE_VERSION 1.11)
SET(NEED_OVERRIDE TRUE)
FIND_PROGRAM(ACLOCAL aclocal-1.11)
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
MESSAGE(FATAL_ERROR "Found automake-1.11, but not aclocal-1.11")
ENDIF()
ENDIF()
MESSAGE(FATAL_ERROR "Can't find 'automake' or 'automake-1.11'")
MESSAGE(" You can set AUTOTOOLS_IN_DIST=OFF to exclude autotools support.")
ENDIF()
SET(${AUTOMAKE_VAR} ${AUTOMAKE} PARENT_SCOPE)
SET(${ACLOCAL_VAR} ${ACLOCAL} PARENT_SCOPE)
Expand Down

0 comments on commit 2319dff

Please sign in to comment.