Skip to content

Commit

Permalink
configure.ac: don't forcefully change the compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
  • Loading branch information
bazsi authored and alltilla committed Jan 9, 2024
1 parent eff9c85 commit 46f8a25
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions configure.ac
Expand Up @@ -481,14 +481,6 @@ dnl C++
# Ok, here is the deal
# clang cannot compile the current source, it has nultiple issues
# replace it till not fixed them
if test "x$CXX" = "xclang"; then
AC_MSG_ERROR(["clang cannot compile syslog-ng C++ sources, try using gcc instead (export CXX=gcc) for C++ compilation (NOTE: on macOS you need Homebrew gcc not the Apple one)"])
elif test "x$CC" = "xclang"; then
CPP_COMPILER="gcc"
AC_MSG_WARN(["clang cannot compile syslog-ng C++ sources, switched to $CPP_COMPILER for C++ compilation (NOTE: on macOS you need Homebrew gcc not the Apple one)"])
else
CPP_COMPILER="$CXX $CC"
fi
# This one is useful for checking the available compilers
# AC_MSG_RESULT(gcc = $(which gcc) - g++ = $(which g++) - clang = $(which clang))
# AC_MSG_RESULT(Paths: gcc = $(ls -Al $(which gcc)) - g++ = $(ls -Al $(which g++)) - clang = $(ls -Al $(which clang)))
Expand Down

0 comments on commit 46f8a25

Please sign in to comment.