-if test "x$wx_cv_if_gnu_make" = "x"; then
+if test "x$wx_cv_path_ifs" = "x"; then
{ echo "configure: error: Please run configure from the top level directory." 1>&2; exit 1; }
fi
dnl we need the values the main configure determined for us, so refuse
dnl to run if we don't have them
-if test "x$wx_cv_if_gnu_make" = "x"; then
+dnl
+dnl note that the only one we use here if wx_cv_if_gnu_make but we can't test
+dnl for this because it may perfectly well be empty (if we're using GNU make),
+dnl so use something else
+if test "x$wx_cv_path_ifs" = "x"; then
AC_MSG_ERROR([Please run configure from the top level directory.])
fi
-if test "x$wx_cv_path_glcanvas" = "x"; then
+if test "x$wx_cv_use_gui" = "x"; then
{ echo "configure: error: Please run configure from the top level directory." 1>&2; exit 1; }
fi
dnl we need the values the main configure determined for us, so refuse
dnl to run if we don't have them
-if test "x$wx_cv_path_glcanvas" = "x"; then
+if test "x$wx_cv_use_gui" = "x"; then
AC_MSG_ERROR([Please run configure from the top level directory.])
fi