changeset 14973:5a32f410f1b7

getsubopt: Move AC_LIBOBJ invocations to module description. * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and gl_PREREQ_GETSUBOPT invocations from here... * modules/getsubopt (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 May 2011 13:24:43 +0200
parents b15151b8de0d
children 8421bcc8acbf
files ChangeLog m4/getsubopt.m4 modules/getsubopt
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+	getsubopt: Move AC_LIBOBJ invocations to module description.
+	* m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
+	gl_PREREQ_GETSUBOPT invocations from here...
+	* modules/getsubopt (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
 	getpass-gnu: Move AC_LIBOBJ invocations to module description.
--- a/m4/getsubopt.m4
+++ b/m4/getsubopt.m4
@@ -1,4 +1,4 @@
-# getsubopt.m4 serial 4
+# getsubopt.m4 serial 5
 dnl Copyright (C) 2004, 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,
@@ -13,8 +13,6 @@
   AC_CHECK_FUNCS_ONCE([getsubopt])
   if test $ac_cv_func_getsubopt = no; then
     HAVE_GETSUBOPT=0
-    AC_LIBOBJ([getsubopt])
-    gl_PREREQ_GETSUBOPT
   fi
 ])
 
--- a/modules/getsubopt
+++ b/modules/getsubopt
@@ -13,6 +13,10 @@
 
 configure.ac:
 gl_FUNC_GETSUBOPT
+if test $HAVE_GETSUBOPT = 0; then
+  AC_LIBOBJ([getsubopt])
+  gl_PREREQ_GETSUBOPT
+fi
 gl_STDLIB_MODULE_INDICATOR([getsubopt])
 
 Makefile.am: