cmake HAVE_READLINE_HISTORY_H examples

percona/percona-server cmake/readline.cmake :219

CHECK_INCLUDE_FILES("stdio.h;readline/readline.h;readline/history.h"
                      HAVE_READLINE_HISTORY_H)

percona/percona-server cmake/readline.cmake :222

LIST(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_READLINE_HISTORY_H)

percona/percona-server cmake/readline.cmake :232

CHECK_CXX_SOURCE_COMPILES("
    #include <stdio.h>
    #include <readline.h>
    #if HAVE_READLINE_HISTORY_H
    #include <history.h>
    #endif
    int main(int argc, char **argv)
    {
       HIST_ENTRY entry;
       return 0;
    }"
    READLINE_HAVE_HIST_ENTRY)

GreatSQL/GreatSQL cmake/readline.cmake :219

CHECK_INCLUDE_FILES("stdio.h;readline/readline.h;readline/history.h"
                      HAVE_READLINE_HISTORY_H)

GreatSQL/GreatSQL cmake/readline.cmake :222

LIST(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_READLINE_HISTORY_H)

GreatSQL/GreatSQL cmake/readline.cmake :232

CHECK_CXX_SOURCE_COMPILES("
    #include <stdio.h>
    #include <readline.h>
    #if HAVE_READLINE_HISTORY_H
    #include <history.h>
    #endif
    int main(int argc, char **argv)
    {
       HIST_ENTRY entry;
       return 0;
    }"
    READLINE_HAVE_HIST_ENTRY)

percona/percona-xtradb-cluster cmake/readline.cmake :219

CHECK_INCLUDE_FILES("stdio.h;readline/readline.h;readline/history.h"
                      HAVE_READLINE_HISTORY_H)

percona/percona-xtradb-cluster cmake/readline.cmake :222

LIST(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_READLINE_HISTORY_H)

percona/percona-xtradb-cluster cmake/readline.cmake :232

CHECK_CXX_SOURCE_COMPILES("
    #include <stdio.h>
    #include <readline.h>
    #if HAVE_READLINE_HISTORY_H
    #include <history.h>
    #endif
    int main(int argc, char **argv)
    {
       HIST_ENTRY entry;
       return 0;
    }"
    READLINE_HAVE_HIST_ENTRY)

whoozle/android-file-transfer-linux cmake/FindReadline.cmake :35

add_definitions(-DHAVE_READLINE_HISTORY_H=1)

amule-project/amule cmake/FindReadline.cmake :141

endif(NOT HAVE_READLINE_HISTORY_H)