# Function checks
include(CheckFunctionExists)
+check_function_exists( _NSGetEnviron HAVE__NSGETENVIRON )
check_function_exists( drand48 HAVE_DRAND48 )
check_function_exists( cbrt HAVE_CBRT )
check_function_exists( getpagesize HAVE_GETPAGESIZE )
+check_function_exists( getenv HAVE_GETENV )
+check_function_exists( lrand48 HAVE_LRAND48 )
check_function_exists( mallinfo HAVE_MALLINFO )
check_function_exists( mallopt HAVE_MALLOPT )
check_function_exists( mstats HAVE_MSTATS )
+check_function_exists( setenv HAVE_SETENV )
+check_function_exists( setmode HAVE_SETMODE )
check_function_exists( sincos HAVE_SINCOS )
check_function_exists( srand48 HAVE_SRAND48 )
check_function_exists( strcasecmp HAVE_STRCASECMP )
endif()
# Values
+if (WIN32)
+ set(BROWSER start)
+elseif (APPLE)
+ set(BROWSER open)
+else ()
+ set(BROWSER xdg-open)
+endif ()
+
set(DEFAULT_DPI 96)
# Write check results to config.h header
-// Values
-#define GVPLUGIN_CONFIG_FILE "@GVPLUGIN_CONFIG_FILE@"
-#define PACKAGE_VERSION "@GRAPHVIZ_VERSION_FULL@"
-
// Include headers
#cmakedefine HAVE_CRT_EXTERNS_H
#cmakedefine HAVE_FCNTL_H
#cmakedefine HAVE_X11_XAW_TEXT_H
// Functions
+#cmakedefine HAVE__NSGETENVIRON
#cmakedefine HAVE_DRAND48
#cmakedefine HAVE_CBRT
#cmakedefine HAVE_GETPAGESIZE
+#cmakedefine HAVE_GETENV
+#cmakedefine HAVE_LRAND48
#cmakedefine HAVE_MALLINFO
#cmakedefine HAVE_MALLOPT
#cmakedefine HAVE_MSTATS
+#cmakedefine HAVE_SETENV
+#cmakedefine HAVE_SETMODE
#cmakedefine HAVE_SINCOS
#cmakedefine HAVE_SRAND48
#cmakedefine HAVE_STRCASECMP
#cmakedefine HAVE_ZLIB
// Values
+#define BROWSER "@BROWSER@"
#define DEFAULT_DPI @DEFAULT_DPI@
+#define GVPLUGIN_CONFIG_FILE "@GVPLUGIN_CONFIG_FILE@"
+#define PACKAGE_VERSION "@GRAPHVIZ_VERSION_FULL@"