changeset 15109:0d681ec553c1

strptime: Move AC_LIBOBJ invocations to module description. * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and gl_PREREQ_STRPTIME invocations from here... * modules/strptime (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 13:42:00 +0200
parents ca5461c4906c
children 990d9ce9c393
files ChangeLog m4/strptime.m4 modules/strptime
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	strptime: Move AC_LIBOBJ invocations to module description.
+	* m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
+	gl_PREREQ_STRPTIME invocations from here...
+	* modules/strptime (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	strpbrk: Move AC_LIBOBJ invocations to module description.
--- a/m4/strptime.m4
+++ b/m4/strptime.m4
@@ -1,4 +1,4 @@
-# strptime.m4 serial 6
+# strptime.m4 serial 7
 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -11,8 +11,6 @@
   AC_CHECK_FUNCS_ONCE([strptime])
   if test $ac_cv_func_strptime != yes; then
     HAVE_STRPTIME=0
-    AC_LIBOBJ([strptime])
-    gl_PREREQ_STRPTIME
   fi
 ])
 
--- a/modules/strptime
+++ b/modules/strptime
@@ -17,6 +17,10 @@
 
 configure.ac:
 gl_FUNC_STRPTIME
+if test $HAVE_STRPTIME = 0; then
+  AC_LIBOBJ([strptime])
+  gl_PREREQ_STRPTIME
+fi
 gl_TIME_MODULE_INDICATOR([strptime])
 
 Makefile.am: