Commit ee416e81 authored by Andrew Heather's avatar Andrew Heather
Browse files

promoting MESA paths to top level

parent e16a7676
......@@ -53,6 +53,8 @@ PYTHON_LIBRARY=""
# MESA graphics support:
WITH_MESA=OFF
MESA_INCLUDE_DIR="/usr/include/GL"
MESA_LIBRARY="/usr/lib64/libOSMesa.so"
#
# No further editing below this line
......
......@@ -154,9 +154,6 @@ addMesaSupport()
{
[ "$WITH_MESA" = ON ] || return
MESA_INCLUDE_DIR=/usr/include/GL
MESA_LIBRARY=/usr/lib$WM_COMPILER_LIB_ARCH/libOSMesa.so
if [ -d "$MESA_INCLUDE_DIR" -a -f "$MESA_LIBRARY" ]
then
OBJ_ADD="$OBJ_ADD-mesa"
......@@ -167,6 +164,10 @@ addMesaSupport()
else
echo "*** Error: no MESA information found"
echo "*** Deactivate MESA support by setting WITH_MESA=OFF, or"
echo "*** correct paths given by:"
echo "*** - MESA_INCLUDE_DIR ($MESA_INCLUDE_DIR)"
echo "*** - MESA_LIBRARY ($MESA_LIBRARY)"
exit 1
fi
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment