From: Bruno Haible Date: Sun, 18 Feb 2007 15:42:40 +0000 (+0000) Subject: mkdtemp.h is replaced with . X-Git-Tag: cvs-readonly~1026 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=aa450ef4b62178b6c4264e15f742d47ee327f8f5;p=gnulib.git mkdtemp.h is replaced with . --- diff --git a/lib/clean-temp.c b/lib/clean-temp.c index b2dc268bf..823a93267 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -39,7 +39,6 @@ #include "fatal-signal.h" #include "pathmax.h" #include "tmpdir.h" -#include "mkdtemp.h" #include "xalloc.h" #include "xallocsa.h" #include "gl_linkedhash_list.h" diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index e916d385b..36b6c7577 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2001-2003, 2006 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2001-2003, 2006-2007 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -20,10 +20,9 @@ #include /* Specification. */ -#include "mkdtemp.h" +#include #include "tempname.h" -#include /* Generate a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; diff --git a/m4/mkdtemp.m4 b/m4/mkdtemp.m4 index fafc98e4c..0eeafbc9a 100644 --- a/m4/mkdtemp.m4 +++ b/m4/mkdtemp.m4 @@ -1,13 +1,15 @@ -# mkdtemp.m4 serial 4 -dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. +# mkdtemp.m4 serial 5 +dnl Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gt_FUNC_MKDTEMP], [ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REPLACE_FUNCS(mkdtemp) if test $ac_cv_func_mkdtemp = no; then + HAVE_MKDTEMP=0 gl_PREREQ_MKDTEMP fi ]) diff --git a/modules/mkdtemp b/modules/mkdtemp index 8ea9658ea..d023f3854 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -2,21 +2,22 @@ Description: mkdtemp() function: create a private temporary directory. Files: -lib/mkdtemp.h lib/mkdtemp.c m4/mkdtemp.m4 Depends-on: stdint +stdlib tempname configure.ac: gt_FUNC_MKDTEMP +gl_STDLIB_MODULE_INDICATOR([mkdtemp]) Makefile.am: Include: -"mkdtemp.h" + License: LGPL