Commit 556f1327 authored by Raul Infante-Sainz's avatar Raul Infante-Sainz
Browse files

Checking Xcode installation for macOS systems

Until now, during the configure step it was checked if the host
Operative System were GNU/Linux, and if not, we assumed it is macOS.
However, it can be any other different OS! With this commit, now we
explicity check if the system is GNU/Linux or Darwin (macOS). If it is
not any of them, a warning message says to the user that the host system
is different from which we have checked so far (and invite to contact us
if there is any problem).

In addition to this, if the system is macOS, now it checks if Xcode is
already installed in the host system. If it is not installed, a warning
message informs the user to do that in case a problem/crash in the
configure step occurs. We have found that it is convenient to have Xcode
installed in order to avoid some problems.
parent 11b11e93
......@@ -212,13 +212,28 @@ if [ x$kernelname = xLinux ]; then
# Don't forget to add the respective C++ compiler below (leave 'cc' in
# the end).
c_compiler_list="gcc clang cc"
else
elif [ x$kernelname = xDarwin ]; then
host_cc=1
on_mac_os=yes
# Don't forget to add the respective C++ compiler below (leave 'cc' in
# the end).
c_compiler_list="clang gcc cc"
else
cat <<EOF
______________________________________________________
!!!!!!! WARNING !!!!!!!
Maneage has been tested on GNU/Linux and Darwin (macOS) systems. But, it seems
that the current system is not GNU/Linux or Darwin (macOS). If you notice any
problem during the configure phase, please contact us with this web-form:
https://savannah.nongnu.org/support/?func=additem&group=reproduce
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
EOF
sleep 5
fi
......@@ -281,6 +296,45 @@ fi
# Check for Xcode in macOS systems
# --------------------------------
#
# When trying to build Maneage on macOS systems, there are some problems
# related with the Xcode and Command Line Tools. As a consequnce, in order to
# avoid these error it is highly recommended to install Xcode in the host
# system. Here, it is checked that this is the case, and if not, warn the user
# about not having Xcode already installed.
if [ x$on_mac_os = xyes ]; then
xcode=$(which xcodebuild)
if [ x$xcode != x ]; then
xcode_version=$(xcodebuild -version | grep Xcode)
echo " "
echo "$xcode_version already installed in the system"
echo " "
else
cat <<EOF
______________________________________________________
!!!!!!! WARNING !!!!!!!
Maneage has been tested Darwin (macOS) systems with host Xcode installation.
However, Xcode cannot be found in this system. As a consequence, it may happen
that the configure step fails at some point. If this is the case, please
install Xcode and try to run again the configure step. If the problem still
persist after installing Xcode, please contact us with this web-form:
https://savannah.nongnu.org/support/?func=additem&group=reproduce
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
EOF
sleep 5
fi
fi
# Check for C/C++ compilers
# -------------------------
#
......
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