]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ugh clang defines __GNUC__ too
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 13 Sep 2017 07:52:05 +0000 (14:52 +0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 13 Sep 2017 07:54:07 +0000 (14:54 +0700)
configure
m4/ax_cc.m4

index 13537f462aa988f0b59dcd9f4eb479b86d084569..1bc235e8aefa436755d906de84d391e6c4fa6725 100755 (executable)
--- a/configure
+++ b/configure
@@ -4545,7 +4545,7 @@ main ()
      *  gcc will happily accept -Wno-unknown-warning-option
      *  only emitting an error about it, if an error ocurrs in the source file.
      */
-    #ifdef __GNUC__
+    #if defined(__GNUC__) && !defined(__clang__)
         gcc sucks
     #endif
 
index ffe83f44a052371daa4bdfdac6610a0f5396861e..0f01a6262d5eb70485b576288922533d7a8b889c 100644 (file)
@@ -113,7 +113,7 @@ AC_DEFUN([AX_CC_NO_UNKNOWN_WARNING_OPTION_FLAG],[
      *  gcc will happily accept -Wno-unknown-warning-option
      *  only emitting an error about it, if an error ocurrs in the source file.
      */
-    #ifdef __GNUC__
+    #if defined(__GNUC__) && !defined(__clang__)
         gcc sucks
     #endif