[Mesa-dev] [PATCHv2 7/7] configure.ac: check for mkostemp()

Emil Velikov emil.l.velikov at gmail.com
Sat Jul 11 11:39:35 PDT 2015


We can make use of it over mkstemp + fcntl in the egl/wayland code.

Cc: Axel Davy <axel.davy at ens.fr>
Suggested-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---

v2: define HAVE_MKOSTEMP in order to use mkostemp rather than nuking it.

 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index e6efa01..174f9c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -652,6 +652,7 @@ fi
 AC_CHECK_HEADER([xlocale.h], [DEFINES="$DEFINES -DHAVE_XLOCALE_H"])
 AC_CHECK_HEADER([sys/sysctl.h], [DEFINES="$DEFINES -DHAVE_SYS_SYSCTL_H"])
 AC_CHECK_FUNC([strtof], [DEFINES="$DEFINES -DHAVE_STRTOF"])
+AC_CHECK_FUNC([mkostemp], [DEFINES="$DEFINES -DHAVE_MKOSTEMP"])
 
 dnl Check to see if dlopen is in default libraries (like Solaris, which
 dnl has it in libc), or if libdl is needed to get it.
-- 
2.4.5



More information about the mesa-dev mailing list