diff options
Diffstat (limited to 'config/open-axiom.m4')
-rw-r--r-- | config/open-axiom.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/open-axiom.m4 b/config/open-axiom.m4 index 2218be2c..410923b1 100644 --- a/config/open-axiom.m4 +++ b/config/open-axiom.m4 @@ -848,7 +848,13 @@ dnl ------------------------ dnl -- OPENAXIOM_CHECK_IO -- dnl ------------------------ AC_DEFUN([OPENAXIOM_CHECK_IO],[ -AC_CHECK_DECLS([tempnam],[],[],[#include <stdio.h>]) +# Utility for temporary pathnames. +if test -n $ac_cv_header_unistd_h; then + AC_CHECK_DECLS([mktemp, mkdtemp, mkstemp], [], [], [[#include <unistd.h>]]) +fi +if test -n $ac_cv_have_decl_mktemp; then + AC_CHECK_DECLS([tempnam],[],[],[[#include <stdio.h>]]) +fi # Honor support for large files AC_SYS_LARGEFILE # What about long file names? |