[Lunar-commits] <moonbase-xorg> mesa-lib: make configure messages appear only when unconfigured

v4hn me at v4hn.de
Wed Nov 14 23:09:29 CET 2012


commit 8602a3e07a669b1ca736d85262f13bcddaa82492
Author: v4hn <me at v4hn.de>
Date: Wed, 14 Nov 2012 14:09:29 -0800
URL: https://github.com/lunar-linux/moonbase-xorg/commit/8602a3e07a669b1ca736d85262f13bcddaa82492

mesa-lib: make configure messages appear only when unconfigured

At the moment these messages also appear when installing
a module that depends on mesa-lib (and mesa-lib is already installed),
because the CONFIGURE file is parsed.
---
  lib/mesa-lib/CONFIGURE | +14/-12   
  1 file changed, 14 insertions(+), 12 deletions(-)

--- a/lib/mesa-lib/CONFIGURE
+++ b/lib/mesa-lib/CONFIGURE
@@ -53,18 +53,20 @@ if ! grep -q "MESADRIVER=" $MODULE_CONFIG; then
   set_module_config MESADRIVER "$MESADRIVER"
 fi
 
-message "${MESSAGE_COLOR}Gallium is an alternative to DRI and needed to do 3D acceleration on"
-message "nouveau, radeon(-hd), ati or Intel GMA (Poulsbo/Cedar Trail). However, Gallium is not"
-message "performing on Intel GENX graphics (Any onboard Corei3/5/7, G25/33/45, pinetrail gfx"
-message ""
-message "Open Source Drivers:"
-message "If you build for Intel DRI-based hardware, disable Gallium, llvm and enable libva, xvmc."
-message "If you build for Intel CedarTrail or Poulsbo, enable Gallium, llvm, xvmc, vdpau."
-message "If you build for NVidia or Ati hardware, enable Gallium, llvm, xvmc, vdpau."
-message ""
-message "Binary / Proprietary Drivers:"
-message "If building the NVIDIA/fglrx binary driver, disable gallium, llvm, vdpau, xvmc."
-message "${DEFAULT_COLOR}"
+if [[ -z "`get_module_config GALLIUM`" ]]; then
+  message "${MESSAGE_COLOR}Gallium is an alternative to DRI and needed to do 3D acceleration on"
+  message "nouveau, radeon(-hd), ati or Intel GMA (Poulsbo/Cedar Trail). However, Gallium is not"
+  message "performing on Intel GENX graphics (Any onboard Corei3/5/7, G25/33/45, pinetrail gfx"
+  message ""
+  message "Open Source Drivers:"
+  message "If you build for Intel DRI-based hardware, disable Gallium, llvm and enable libva, xvmc."
+  message "If you build for Intel CedarTrail or Poulsbo, enable Gallium, llvm, xvmc, vdpau."
+  message "If you build for NVidia or Ati hardware, enable Gallium, llvm, xvmc, vdpau."
+  message ""
+  message "Binary / Proprietary Drivers:"
+  message "If building the NVIDIA/fglrx binary driver, disable gallium, llvm, vdpau, xvmc."
+  message "${DEFAULT_COLOR}"
+fi
 
 mquery GALLIUM "Enable Gallium llvm renderer?" y "--enable-gallium-llvm" "--disable-gallium-llvm"
 




More information about the Lunar-commits mailing list