ConfigChecks.cmake revision 18de8500674ed9182b588d1bfef2ae3bb21a0f71
a268eb4d3feeb31c3573681214aac856ce446227~suv#---------------
a268eb4d3feeb31c3573681214aac856ce446227~suv# From here on:
a268eb4d3feeb31c3573681214aac856ce446227~suv# Set all HAVE_XXX variables, to correctly set all defines in config.h
a268eb4d3feeb31c3573681214aac856ce446227~suv#SET(CMAKE_REQUIRED_INCLUDES ${INK_INCLUDES})
a268eb4d3feeb31c3573681214aac856ce446227~suvinclude(CheckIncludeFiles)
a268eb4d3feeb31c3573681214aac856ce446227~suvinclude(CheckFunctionExists)
a268eb4d3feeb31c3573681214aac856ce446227~suvinclude(CheckStructHasMember)
a268eb4d3feeb31c3573681214aac856ce446227~suv# usage: CHECK_INCLUDE_FILES (<header> <RESULT_VARIABLE> )
a268eb4d3feeb31c3573681214aac856ce446227~suv# usage: CHECK_FUNCTION_EXISTS (<function name> <RESULT_VARIABLE> )
a268eb4d3feeb31c3573681214aac856ce446227~suv# usage: CHECK_STRUCT_HAS_MEMBER (<struct> <member> <header> <RESULT_VARIABLE>)
a268eb4d3feeb31c3573681214aac856ce446227~suvset(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${INKSCAPE_LIBS})
a268eb4d3feeb31c3573681214aac856ce446227~suvset(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${INKSCAPE_INCS_SYS})
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(boost/concept_check.hpp HAVE_BOOST_CONCEPT_CHECK_HPP)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(cairo-pdf.h HAVE_CAIRO_PDF)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(floor HAVE_FLOOR)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(fpsetmask HAVE_FPSETMASK)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(gc/gc.h HAVE_GC_GC_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(gc.h HAVE_GC_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(getopt.h HAVE_GETOPT_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(gtk_window_fullscreen HAVE_GTK_WINDOW_FULLSCREEN)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(gtk_window_set_default_icon_from_file HAVE_GTK_WINDOW_SET_DEFAULT_ICON_FROM_FILE)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(ieeefp.h HAVE_IEEEFP_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(inttypes.h HAVE_INTTYPES_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(locale.h HAVE_LC_MESSAGES)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(locale.h HAVE_LOCALE_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(libintl.h HAVE_LIBINTL_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(fcntl.h HAVE_FCNTL_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(mallinfo HAVE_MALLINFO)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(malloc.h HAVE_MALLOC_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(memmove HAVE_MEMMOVE)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(memory.h HAVE_MEMORY_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(memset HAVE_MEMSET)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(mkdir HAVE_MKDIR)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(pow HAVE_POW)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(sqrt HAVE_SQRT)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(stddef.h HAVE_STDDEF_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(stdint.h HAVE_STDINT_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(stdlib.h HAVE_STDLIB_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(strings.h HAVE_STRINGS_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(string.h HAVE_STRING_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(strncasecmp HAVE_STRNCASECMP)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(strpbrk HAVE_STRPBRK)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(strrchr HAVE_STRRCHR)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(strspn HAVE_STRSPN)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(strstr HAVE_STRSTR)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_FUNCTION_EXISTS(strtoul HAVE_STRTOUL)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_STRUCT_HAS_MEMBER(fordblks mallinfo malloc.h HAVE_STRUCT_MALLINFO_FORDBLKS)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_STRUCT_HAS_MEMBER(fsmblks mallinfo malloc.h HAVE_STRUCT_MALLINFO_FSMBLKS)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_STRUCT_HAS_MEMBER(hblkhd mallinfo malloc.h HAVE_STRUCT_MALLINFO_HBLKHD)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_STRUCT_HAS_MEMBER(uordblks mallinfo malloc.h HAVE_STRUCT_MALLINFO_UORDBLKS)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_STRUCT_HAS_MEMBER(usmblks mallinfo malloc.h HAVE_STRUCT_MALLINFO_USMBLKS)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(sys/filio.h HAVE_SYS_FILIO_H)
a268eb4d3feeb31c3573681214aac856ce446227~suvCHECK_INCLUDE_FILES(sys/stat.h HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILES(zlib.h HAVE_ZLIB_H)