From: <ebo...@us...> - 2003-06-28 22:16:16
|
Update of /cvsroot/alleg/allegro In directory sc8-pr-cvs1:/tmp/cvs-serv1086 Modified Files: configure.in Log Message: Fixed invocation of non-GNU make. Index: configure.in =================================================================== RCS file: /cvsroot/alleg/allegro/configure.in,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- configure.in 26 Jun 2003 17:34:16 -0000 1.62 +++ configure.in 28 Jun 2003 22:16:13 -0000 1.63 @@ -709,17 +709,29 @@ AC_OUTPUT(makefile:makefile.in allegro-config:misc/allegro-config.in, [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h]) +dnl The makefile doesn't work with non-GNU make so test for its presence. +if ${MAKE-make} -v -f /dev/null 2>/dev/null | grep -i "gnu" >/dev/null; then + gnu_make="yes" +fi + dnl Run "make depend" if necessary. if test "X$allegro_make_depend" = "Xyes"; then - dnl The makefile doesn't work with non-gmake at the moment, so force gmake. - if ${MAKE-make} -v -f /dev/null 2>/dev/null | grep -i "gnu" >/dev/null; then + if test "X$gnu_make" = "Xyes"; then ${MAKE-make} depend else AC_MSG_WARN([Non-GNU make detected, trying gmake to build dependencies.]) gmake depend - AC_MSG_WARN([You need to use GNU make to build Allegro.]) - AC_MSG_WARN([This might be called gmake on your system.]) fi fi -${MAKE-make} info +dnl Display configuration informations +if test "X$gnu_make" = "Xyes"; then + ${MAKE-make} info +else + gmake info +fi + +if test "X$gnu_make" != "Xyes"; then + AC_MSG_WARN([You need to use GNU make to build Allegro.]) + AC_MSG_WARN([This might be called gmake on your system.]) +fi |