From: Bruno Haible Date: Sat, 21 May 2011 14:00:00 +0000 (+0200) Subject: mkstemp: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7aa202c7a09dfb8678bdbb0e01a0c8dba2a5966;p=pspp mkstemp: Move AC_LIBOBJ invocations to module description. * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and gl_PREREQ_MKSTEMP invocations from here... * modules/mkstemp (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index c984ad0428..b41bc18f04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + mkstemp: Move AC_LIBOBJ invocations to module description. + * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and + gl_PREREQ_MKSTEMP invocations from here... + * modules/mkstemp (configure.ac): ... to here. + 2011-05-21 Bruno Haible mkostemps: Move AC_LIBOBJ invocations to module description. diff --git a/m4/mkstemp.m4 b/m4/mkstemp.m4 index 0437f14e31..0bc918c108 100644 --- a/m4/mkstemp.m4 +++ b/m4/mkstemp.m4 @@ -1,4 +1,4 @@ -#serial 20 +#serial 21 # Copyright (C) 2001, 2003-2007, 2009-2011 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -61,13 +61,9 @@ AC_DEFUN([gl_FUNC_MKSTEMP], ]) if test "$gl_cv_func_working_mkstemp" != yes; then REPLACE_MKSTEMP=1 - AC_LIBOBJ([mkstemp]) - gl_PREREQ_MKSTEMP fi else HAVE_MKSTEMP=0 - AC_LIBOBJ([mkstemp]) - gl_PREREQ_MKSTEMP fi ]) diff --git a/modules/mkstemp b/modules/mkstemp index 0f4fef6665..9ac5b3fe64 100644 --- a/modules/mkstemp +++ b/modules/mkstemp @@ -12,6 +12,10 @@ tempname [test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1] configure.ac: gl_FUNC_MKSTEMP +if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then + AC_LIBOBJ([mkstemp]) + gl_PREREQ_MKSTEMP +fi gl_STDLIB_MODULE_INDICATOR([mkstemp]) Makefile.am: