From f9e64de5820298ab3d6dee04b083a46f4d113bd1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 2 Mar 2001 03:14:31 +0000 Subject: [PATCH] (jm_MACROS): Use mkstemp replacement if the system lacks mkstemp. Compile our own tempname.c if we compile our own mkstemp.c, as mkstemp relies on tempname. --- m4/jm-macros.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 208a8723da..8ce920c236 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -1,4 +1,4 @@ -#serial 33 -*- autoconf -*- +#serial 34 -*- autoconf -*- dnl Misc type-related macros for fileutils, sh-utils, textutils. @@ -83,6 +83,11 @@ AC_DEFUN(jm_MACROS, AC_REPLACE_FUNCS(memchr memcpy memmove memrchr memset) AC_CHECK_FUNCS(getpagesize) + AC_REPLACE_FUNCS(mkstemp) + if test $ac_cv_func_mkstemp != yes; then + AC_LIBOBJ(tempname) + fi + # By default, argmatch should fail calling usage (1). AC_DEFINE(ARGMATCH_DIE, [usage (1)], [Define to the function xargmatch calls on failures.]) -- 2.30.2