mesa-lib: make configure messages appear only when unconfigured #58

Merged
merged 2 commits into from Nov 18, 2012
View
28 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 CONFIGURED)" ]]; 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"
@@ -89,3 +91,5 @@ else
fi
mquery TEXTURE_FLOAT "Enable patented texture-float? (if this patent is valid in your country choose N)" n "--enable-texture-float" "--disable-texture-float"
mquery ENABLE_GLX_TLS "Enable glx-tls? (lin -r xorg-server also)" y "--enable-glx-tls" "--disable-glx-tls"
+
+set_module_config CONFIGURED y