Revision
105547
Author
jeremyhu@macports.org
Date
2013-04-24 11:19:51 -0700 (Wed, 24 Apr 2013)

Log Message

Point users to config.log on configure failure if it exists

Modified Paths

Diff

Modified: trunk/base/src/port1.0/portconfigure.tcl (105546 => 105547)


--- trunk/base/src/port1.0/portconfigure.tcl	2013-04-24 16:39:46 UTC (rev 105546)
+++ trunk/base/src/port1.0/portconfigure.tcl	2013-04-24 18:19:51 UTC (rev 105547)
@@ -750,6 +750,10 @@
 
         # Execute the command (with the new environment).
         if {[catch {command_exec configure} result]} {
+            global configure.dir
+            if {[file exists ${configure.dir}/config.log]} {
+                ui_error "[format [msgcat::mc "Failed to configure %s, consult %s/config.log"] [option subport] ${configure.dir}]"
+            }
             return -code error "[format [msgcat::mc "%s failure: %s"] configure $result]"
         }
     }