X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..90e389f6ec12e60a62c362296ffcf314feb5b03d:/projects/sgauth/build diff --git a/projects/sgauth/build b/projects/sgauth/build index e61b957c..7155188b 100755 --- a/projects/sgauth/build +++ b/projects/sgauth/build @@ -13,6 +13,7 @@ CONFFILE="../../Makefile.conf" PREFIX="/" BIN_MODE=0755 DATA_MODE=0644 +DIR_MODE=0755 OWNER=root if [ -z $1 ] @@ -66,9 +67,8 @@ echo "########################################################################## STG_LIBS="crypto.lib common.lib - common_settings.lib conffiles.lib - ia_auth_c.lib" + ia.lib" if [ "$OS" = "linux" ] then @@ -92,6 +92,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