summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-15 10:19:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-15 10:30:10 -0800
commitb3f10a08922f568b7cbc791354cf0d4267cd88c1 (patch)
treed065d9f02d4608c928bc184da9e19276f7efd832
parentff81a4e4e894915bb6b8aece8314ca1a854140a4 (diff)
Use autoconf standard HAVE_MKSTEMP define instead of old imake HAS_MKSTEMP
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--bmtoa.c4
-rw-r--r--configure.ac3
2 files changed, 3 insertions, 4 deletions
diff --git a/bmtoa.c b/bmtoa.c
index 5e48776..2918469 100644
--- a/bmtoa.c
+++ b/bmtoa.c
@@ -44,7 +44,7 @@ from The Open Group.
#include <stdlib.h>
#include <unistd.h>
-#ifndef HAS_MKSTEMP
+#ifndef HAVE_MKSTEMP
extern char *mktemp();
#endif
@@ -78,7 +78,7 @@ copy_stdin (void)
FILE *fp;
int nread, nwritten;
-#ifndef HAS_MKSTEMP
+#ifndef HAVE_MKSTEMP
if (mktemp (tmpfilename) == NULL) {
fprintf (stderr,
"%s: unable to genererate temporary file name for stdin.\n",
diff --git a/configure.ac b/configure.ac
index b05d070..9c977a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,8 +40,7 @@ XORG_DEFAULT_OPTIONS
AM_PROG_CC_C_O
-AC_CHECK_FUNC([mkstemp],
- AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the "mkstemp" function.]))
+AC_CHECK_FUNCS([mkstemp])
# Obtain compiler/linker options from depedencies
PKG_CHECK_MODULES(BMTOA, x11 xmu)