]> git.stg.codes - stg.git/blobdiff - projects/sgconf_xml/build
Fix error with undefined CC and CXX
[stg.git] / projects / sgconf_xml / build
index 77924a9c45b34e2dbd6662dfc306434047409c4d..ea18daef53758b06a8a2aaee3196f7b36648f39c 100755 (executable)
@@ -91,6 +91,16 @@ else
     SHELL="/usr/local/bin/bash"
 fi
 
     SHELL="/usr/local/bin/bash"
 fi
 
+if [ -z "$CC" ]
+then
+    CC=gcc
+fi
+
+if [ -z "$CXX" ]
+then
+    CXX=g++
+fi
+
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]
 echo -n "Checking CC... "
 $CC --version > /dev/null 2> /dev/null
 if [ $? != 0 ]