Skip to content

Commit

Permalink
Only check for Flex if we are in a git clone
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Mar 28, 2019
1 parent cd51ea4 commit 5262af9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/pmix.m4
Original file line number Diff line number Diff line change
Expand Up @@ -738,15 +738,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
AC_PROG_GREP
AC_PROG_EGREP

# check for Flex
AC_PROG_LEX
if test "x$LEX" != xflex; then
AC_MSG_WARN([PMIx requires Flex to build, but Flex])
AC_MSG_WARN([was not found. Please install Flex into])
AC_MSG_WARN([your path and try again])
AC_MSG_ERROR([Cannot continue])
fi

##################################
# Visibility
##################################
Expand Down Expand Up @@ -939,6 +930,14 @@ AC_DEFUN([PMIX_DEFINE_ARGS],[

if test -d .git; then
PMIX_DEVEL=1
# check for Flex
AC_PROG_LEX
if test "x$LEX" != xflex; then
AC_MSG_WARN([PMIx requires Flex to build from non-tarball sources,])
AC_MSG_WARN([but Flex was not found. Please install Flex into])
AC_MSG_WARN([your path and try again])
AC_MSG_ERROR([Cannot continue])
fi
else
PMIX_DEVEL=0
fi
Expand Down

0 comments on commit 5262af9

Please sign in to comment.