From: Bruno Haible Date: Sat, 21 May 2011 13:43:36 +0000 (+0200) Subject: mkdtemp: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2481 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=2ccbc9ef6bd41aedb53d8d89b5b453034a74212b;p=gnulib.git mkdtemp: Move AC_LIBOBJ invocations to module description. * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP invocations from here... * modules/mkdtemp (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index cdf53eb4b..586e7886d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-21 Bruno Haible + mkdtemp: Move AC_LIBOBJ invocations to module description. + * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP + invocations from here... + * modules/mkdtemp (configure.ac): ... to here. + +2011-05-21 Bruno Haible + mkdir: Move AC_LIBOBJ invocations to module description. * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here... * modules/mkdir (configure.ac): ... to here. diff --git a/m4/mkdtemp.m4 b/m4/mkdtemp.m4 index 073e14d38..cc6483f64 100644 --- a/m4/mkdtemp.m4 +++ b/m4/mkdtemp.m4 @@ -1,4 +1,4 @@ -# mkdtemp.m4 serial 7 +# mkdtemp.m4 serial 8 dnl Copyright (C) 2001-2003, 2006-2007, 2009-2011 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -8,10 +8,9 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MKDTEMP], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - AC_REPLACE_FUNCS([mkdtemp]) + AC_CHECK_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 49ac06bcd..87718a1b8 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -12,6 +12,10 @@ tempname [test $HAVE_MKDTEMP = 0] configure.ac: gl_FUNC_MKDTEMP +if test $HAVE_MKDTEMP = 0; then + AC_LIBOBJ([mkdtemp]) + gl_PREREQ_MKDTEMP +fi gl_STDLIB_MODULE_INDICATOR([mkdtemp]) Makefile.am: