glapi: Make xserver location error more helpful
[mesa.git] / src / mapi / glapi / gen / Makefile
index 87b928ccfbef1e4e1bbbeff5e0a1b971e02c6883..c3829dc005eb7d9e42876d041d48eefa018fc3ee 100644 (file)
@@ -128,7 +128,10 @@ xorg: check-xorg-source $(XORG_OUTPUTS)
 
 check-xorg-source:
        @if ! test -d $(XORG_GLX_DIR); then \
-               echo "ERROR: Must specify path to xserver/GL/ checkout; set XORG_BASE env var."; \
+               echo "ERROR: Must specify path to xserver/ checkout. Set XORG_BASE env var."; \
+               if test x$(XORG_BASE) != x; then \
+                       echo "'$(XORG_GLX_DIR)' does not exist."; \
+               fi; \
                exit 1; \
        fi