X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/89b5297e5ba90c5b971d8b928ae72b13915aae10..bc8f3eda3f7bff17f26a7c2b1e33983feb27d877:/projects/sgconf_xml/build?ds=inline diff --git a/projects/sgconf_xml/build b/projects/sgconf_xml/build index a4857105..76985b16 100755 --- a/projects/sgconf_xml/build +++ b/projects/sgconf_xml/build @@ -90,6 +90,25 @@ else SHELL="/usr/local/bin/bash" fi +echo -n "Checking gcc... " +gcc --version > /dev/null 2> /dev/null +if [ $? != 0 ] +then + echo "FAIL!" + echo "gcc not found" + exit; +fi +echo "found" +echo -n "Checking g++... " +g++ --version > /dev/null 2> /dev/null +if [ $? != 0 ] +then + echo "FAIL!" + echo "g++ not found" + exit; +fi +echo "found" + echo -n "Checking endianess... " echo "int main() { int probe = 0x00000001; return *(char *)&probe; }" > build_check.c gcc $CXXFLAGS $LDFLAGS build_check.c -o fake > /dev/null 2> /dev/null @@ -115,7 +134,7 @@ rm -f fake echo -n "Checking for -lexpat... " echo "int main() { return 0; }" > build_check.c -gcc build_check.c -lexpat -o fake > /dev/null 2> /dev/null +gcc $CXXFLAGS $LDFLAGS build_check.c -lexpat -o fake > /dev/null 2> /dev/null if [ $? != 0 ] then CHECK_EXPAT=no