]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configure.in
fixed detection of whether we're invoked from the top level configure or not
[wxWidgets.git] / utils / configure.in
index 5e94e089dbe3c79a2db31fccb28c8c58a8549882..39a4a5f333b5b1e5724e6fa2cca5e1a2e6f3db9d 100644 (file)
@@ -3,6 +3,12 @@ AC_REVISION($Id$)dnl
 
 AC_INIT(Makefile.in)
 
+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_use_gui" = "x"; then
+    AC_MSG_ERROR([Please run configure from the top level directory.])
+fi
+
 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
 USE_GUI=$wx_cv_use_gui
 USE_RESOURCES=$wx_cv_use_resources