[Groonga-commit] groonga/groonga at 797a673 [master] cmake: remove needless "EQUAL 1"

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 13 12:28:19 JST 2013


Kouhei Sutou	2013-11-13 12:28:19 +0900 (Wed, 13 Nov 2013)

  New Revision: 797a67307b6f58883fefcb2e635cde0d8eca3173
  https://github.com/groonga/groonga/commit/797a67307b6f58883fefcb2e635cde0d8eca3173

  Message:
    cmake: remove needless "EQUAL 1"
    
    It is a boolean value.

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+10 -10)
===================================================================
--- CMakeLists.txt    2013-11-13 12:25:58 +0900 (2a991eb)
+++ CMakeLists.txt    2013-11-13 12:28:19 +0900 (32c64c9)
@@ -166,7 +166,7 @@ endif()
 if(UNIX)
   ac_check_headers(pthread.h)
   ac_check_lib(pthread pthread_mutex_init)
-  if(NOT ${HAVE_LIBPTHREAD} EQUAL 1)
+  if(NOT ${HAVE_LIBPTHREAD})
     message(FATAL_ERROR "No libpthread found")
   endif()
   ac_check_funcs(pthread_mutexattr_setpshared)
@@ -177,44 +177,44 @@ option(GRN_WITH_NFKC "use NFKC based UTF8 normalization." ON)
 
 if(WIN32)
   ac_check_headers(winsock2.h)
-  if(NOT ${HAVE_WINSOCK2_H} EQUAL 1)
+  if(NOT ${HAVE_WINSOCK2_H})
     message(FATAL_ERROR "No winsock2.h found")
   endif()
   ac_check_lib(ws2_32 select)
-  if(NOT ${HAVE_LIBWS2_32} EQUAL 1)
+  if(NOT ${HAVE_LIBWS2_32})
     message(FATAL_ERROR "select() isn't found in ws2_32.lib")
   endif()
   set(USE_SELECT TRUE)
 else()
   ac_check_headers(sys/epoll.h)
-  if(${HAVE_SYS_EPOLL_H} EQUAL 1)
+  if(${HAVE_SYS_EPOLL_H})
     ac_check_funcs(epoll_create)
-    if(${HAVE_EPOLL_CREATE} EQUAL 1)
+    if(${HAVE_EPOLL_CREATE})
       set(USE_EPOLL TRUE)
     endif()
   endif()
 
   if(NOT USE_EPOLL)
     ac_check_headers(sys/event.h)
-    if(${HAVE_SYS_EVENT_H} EQUAL 1)
+    if(${HAVE_SYS_EVENT_H})
       ac_check_funcs(kevent)
-      if(${HAVE_KEVENT} EQUAL 1)
+      if(${HAVE_KEVENT})
         set(USE_KQUEUE TRUE)
       endif()
     endif()
 
     if(NOT USE_KQUEUE)
       ac_check_headers(sys/poll.h)
-      if(${HAVE_SYS_POLL_H} EQUAL 1)
+      if(${HAVE_SYS_POLL_H})
         ac_check_funcs(poll)
-        if(${HAVE_POLL} EQUAL 1)
+        if(${HAVE_POLL})
           set(USE_POLL TRUE)
         endif()
       endif()
 
       if(NOT USE_POLL)
         ac_check_funcs(select)
-        if(${HAVE_SELECT} EQUAL 1)
+        if(${HAVE_SELECT})
           set(USE_SELECT TRUE)
           ac_check_headers(sys/select.h)
         endif()
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index