From: Sylvain Beucler Date: Fri, 9 Mar 2012 20:20:20 +0000 (+0000) Subject: Detect vfprintf (used in fgError/fgWarning) X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=8122d20eece8b654d6534a04d3fd658e581fb596;p=freeglut Detect vfprintf (used in fgError/fgWarning) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1087 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bf77354..b151e4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,8 @@ CHECK_INCLUDE_FILES(fcntl.h HAVE_FCNTL_H) CHECK_INCLUDE_FILES(errno.h HAVE_ERRNO_H) CHECK_INCLUDE_FILES(usbhid.h HAVE_USBHID_H) CHECK_FUNCTION_EXISTS(gettimeofday HAVE_GETTIMEOFDAY) +CHECK_FUNCTION_EXISTS(vfprintf HAVE_VFPRINTF) +CHECK_FUNCTION_EXISTS(_doprnt HAVE_DOPRNT) # The generated config.h is placed in the project's build directory, just to # ensure that all CMake-generated files are kept away from the main source tree. diff --git a/config.h.in b/config.h.in index fe14591..c1467bc 100644 --- a/config.h.in +++ b/config.h.in @@ -9,4 +9,6 @@ #cmakedefine HAVE_FCNTL_H #cmakedefine HAVE_ERRNO_H #cmakedefine HAVE_USBHID_H -#cmakedefine HAVE_GETTIMEOFDAY \ No newline at end of file +#cmakedefine HAVE_GETTIMEOFDAY +#cmakedefine HAVE_VFPRINTF +#cmakedefine HAVE_DOPRNT