Skip to content

Commit

Permalink
Check what make should user use and ask user to do that.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sokolov committed Jun 4, 2011
1 parent 4a4104a commit 797b0a7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions configure.ac
Expand Up @@ -22,6 +22,8 @@ AC_DEFUN([ZNC_AUTO_FAIL], [
CXXFLAGS="$CXXFLAGS "
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_GREP
AC_PROG_SED
AC_CANONICAL_HOST
AC_SYS_LARGEFILE

Expand Down Expand Up @@ -476,6 +478,18 @@ then
fi
fi

AC_CACHE_CHECK([for GNU make], [ac_cv_path_GNUMAKE], [
AC_PATH_PROGS_FEATURE_CHECK([GNUMAKE], [make gmake], [[
if $ac_path_GNUMAKE --version | $GREP GNU > /dev/null; then
ac_cv_path_GNUMAKE=$ac_path_GNUMAKE
ac_path_GNUMAKE_found=:
fi
]], [AC_MSG_ERROR([could not find GNU make])]
)
])
GNUMAKE_DIRNAME=`AS_DIRNAME(["$ac_cv_path_GNUMAKE"])`
GNUMAKE=`echo $ac_cv_path_GNUMAKE | $SED "s%$GNUMAKE_DIRNAME/%%"`

AC_SUBST([CXXFLAGS])
AC_SUBST([CPPFLAGS])
AC_SUBST([MODFLAGS])
Expand Down Expand Up @@ -535,4 +549,6 @@ else
echo "charset: yes"
fi
echo "run from src: $RUNFROMSOURCE"
echo
echo "Now you can run \"$GNUMAKE\" to compile ZNC"

0 comments on commit 797b0a7

Please sign in to comment.