summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 21:59:14 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 21:59:14 +0000
commit1bef5390ae91148e61c613235e7db3729d7e8781 (patch)
treee67887d7c5e65f7d4d57369441c98a1c46ac02b1 /configure.ac
parentcc48a5df41c59071eab0f58818366e10cb1ff4ac (diff)
Define HAS_MKSTEMP if mkstemp() is present (needed for improved protection
against tempfile race conditions in many places)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bd2ce2b..dc861d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,9 @@ AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_INSTALL
+AC_CHECK_FUNC([mkstemp],
+ AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the `mkstemp' function.]))
+
# bmtoa checks for packages
PKG_CHECK_MODULES(BMTOA, x11 xmu)
AC_SUBST(BMTOA_CFLAGS)