Skip to content
Snippets Groups Projects
Commit 246b9d1b authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Redirect configure error output to non-tracked log-file

parent c9cf590f
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ function test_legacy_fortran { ...@@ -111,7 +111,7 @@ function test_legacy_fortran {
J=I-I J=I-I
END END
EOF EOF
$1 -std=legacy conf_test_fortran.f -o conf_test_fortran > /dev/null 2>errors.log $1 -std=legacy conf_test_fortran.f -o conf_test_fortran > /dev/null 2>error.log
result=$? result=$?
rm conf_test_fortran.f rm conf_test_fortran.f
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
...@@ -211,7 +211,7 @@ echo -n "configure: checking for ar... " ...@@ -211,7 +211,7 @@ echo -n "configure: checking for ar... "
if [ "x$AR" = "x" ]; then if [ "x$AR" = "x" ]; then
AR="ar" AR="ar"
fi fi
$AR --version > /dev/null 2>errors.log $AR --version > /dev/null 2>error.log
result=$? result=$?
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
echo "$AR" echo "$AR"
...@@ -246,7 +246,7 @@ else ...@@ -246,7 +246,7 @@ else
J=I-I J=I-I
END END
EOF EOF
$FC -ggdb test_fortran.f -o test_fortran > /dev/null 2>errors.log $FC -ggdb test_fortran.f -o test_fortran > /dev/null 2>error.log
result=$? result=$?
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
echo "yes" echo "yes"
...@@ -294,7 +294,7 @@ int main() { ...@@ -294,7 +294,7 @@ int main() {
return (i + j); return (i + j);
} }
EOF EOF
$CXX $CLANGFLAGS test_compiler.cpp -o test_compiler > /dev/null 2>errors.log $CXX $CLANGFLAGS test_compiler.cpp -o test_compiler > /dev/null 2>error.log
result=$? result=$?
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
echo "yes" echo "yes"
...@@ -304,7 +304,7 @@ else ...@@ -304,7 +304,7 @@ else
exit 2 exit 2
fi fi
echo -n "configure: checking wether $CXX supports -ggdb... " echo -n "configure: checking wether $CXX supports -ggdb... "
$CXX $CLANGFLAGS -ggdb test_compiler.cpp -o test_compiler > /dev/null 2>errors.log $CXX $CLANGFLAGS -ggdb test_compiler.cpp -o test_compiler > /dev/null 2>error.log
result=$? result=$?
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
echo "yes" echo "yes"
...@@ -335,7 +335,7 @@ int main() { ...@@ -335,7 +335,7 @@ int main() {
return result; return result;
} }
EOF EOF
$CXX test_compiler.cpp -o test_compiler > /dev/null 2>errors.log $CXX test_compiler.cpp -o test_compiler > /dev/null 2>error.log
result=$? result=$?
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
./test_compiler ./test_compiler
...@@ -363,7 +363,7 @@ int main() { ...@@ -363,7 +363,7 @@ int main() {
return result; return result;
} }
EOF EOF
$CXX -fopenmp test_compiler.cpp -o test_compiler > /dev/null 2>errors.log $CXX -fopenmp test_compiler.cpp -o test_compiler > /dev/null 2>error.log
result=$? result=$?
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
./test_compiler ./test_compiler
...@@ -738,7 +738,7 @@ EOF ...@@ -738,7 +738,7 @@ EOF
result=$? result=$?
rm conf_test_offload.cpp rm conf_test_offload.cpp
if [ "x$result" = "x0" ]; then if [ "x$result" = "x0" ]; then
./conf_test_offload > /dev/null 2>errors.log ./conf_test_offload > /dev/null 2>error.log
result=$? result=$?
rm conf_test_offload rm conf_test_offload
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment