cd0e442a4fe27e63056d3f8faefa2f827470d5e4
[pspp] / m4 / tempname.m4
1 #serial 1
2
3 # Copyright (C) 2006 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # glibc provides __gen_tempname as a wrapper for mk[ds]temp.  Expose
9 # it as a public API, and provide it on systems that are lacking.
10 AC_DEFUN([gl_FUNC_GEN_TEMPNAME],
11 [
12   AC_REQUIRE([AC_SYS_LARGEFILE])
13   AC_CHECK_FUNCS_ONCE([__gen_tempname])
14
15   AC_LIBOBJ([tempname])
16   gl_PREREQ_TEMPNAME
17 ])
18
19 # Prerequisites of lib/tempname.c.
20 AC_DEFUN([gl_PREREQ_TEMPNAME],
21 [
22   AC_CHECK_HEADERS_ONCE([sys/time.h])
23   AC_CHECK_FUNCS_ONCE([gettimeofday])
24 ])