summaryrefslogtreecommitdiff
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
commit783f6b29ef8cfa45394847eea56362073f552b30 (patch)
treeb8741845d92367c8429b79b91953313287f17dc1
parenta72338b2f0fef721d6388d292ece4b21f19e9def (diff)
Define HAS_MKSTEMP if mkstemp() is present (needed for improved protection
against tempfile race conditions in many places)
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ae7515f..fed4b06 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.]))
+
# Checks for pkg-config packages
XAW_CHECK_XPRINT_SUPPORT(DEP)
AC_SUBST(DEP_CFLAGS)