From: Xavier C. <cha...@gm...> - 2010-03-19 22:42:43
|
To quote Dan Nicholson : "In fact, when I wrote configure.ac originally, I wanted it to be a hard requirement and assumed that AC_PATH_PROG would error by default if it didn't find the program." I have been updating and building mesa a few times per week. More often than not, this just resulted in segfault at runtime, and I had to make clean and do a full build again. This was simply because I did not have makedepend installed, and parts of the tree were not rebuilt when they should. Signed-off-by: Xavier Chantry <cha...@gm...> --- configure.ac | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 0f51097..2ddfd14 100644 --- a/configure.ac +++ b/configure.ac @@ -30,8 +30,11 @@ AC_PROG_CPP AC_PROG_CC AC_PROG_CXX AC_CHECK_PROGS([MAKE], [gmake make]) -AC_PATH_PROG([MKDEP], [makedepend]) AC_PATH_PROG([SED], [sed]) +AC_PATH_PROG([MKDEP], [makedepend], no) +if test "x$MKDEP" = xno; then + AC_MSG_ERROR([makedepend not found]) +fi dnl Our fallback install-sh is a symlink to minstall. Use the existing dnl configuration in that case. -- 1.7.0.2 |