cmake HAVE_SVR3_SIGNALS examples

alibaba/AliSQL configure.cmake :1045

CHECK_C_SOURCE_COMPILES("
    #include <signal.h>
    void foo() { }
    int main(int ac, char **av)
    {
      int mask = sigmask(SIGINT);
      sigset(SIGINT, foo); sigrelse(SIGINT);
      sighold(SIGINT); sigpause(SIGINT);
    }"
   HAVE_SVR3_SIGNALS)

alibaba/AliSQL configure.cmake :1057

ENDIF(NOT HAVE_SVR3_SIGNALS)

alibaba/AliSQLBackup configure.cmake :959

CHECK_C_SOURCE_COMPILES("
    #include <signal.h>
    void foo() { }
    int main(int ac, char **av)
    {
      int mask = sigmask(SIGINT);
      sigset(SIGINT, foo); sigrelse(SIGINT);
      sighold(SIGINT); sigpause(SIGINT);
    }"
   HAVE_SVR3_SIGNALS)

alibaba/AliSQLBackup configure.cmake :971

ENDIF(NOT HAVE_SVR3_SIGNALS)