changeset 8340:b7fc2d0aaa1e

Small reorganization.
author Bruno Haible <bruno@clisp.org>
date Mon, 05 Mar 2007 00:37:10 +0000
parents d95557541b8e
children 7929a12676ab
files m4/vasnprintf-posix.m4 m4/vasnprintf.m4
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/m4/vasnprintf-posix.m4
+++ b/m4/vasnprintf-posix.m4
@@ -19,10 +19,6 @@
      && test $ac_cv_func_vasnprintf = yes; then
     : # vasnprintf exists and is already POSIX compliant.
   else
-    if test $ac_cv_func_vasnprintf = yes; then
-      AC_DEFINE([REPLACE_VASNPRINTF], 1,
-        [Define if vasnprintf exists but is overridden by gnulib.])
-    fi
     if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then
       AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
         [Define if the vasnprintf implementation needs special code for
--- a/m4/vasnprintf.m4
+++ b/m4/vasnprintf.m4
@@ -19,6 +19,10 @@
   AC_LIBOBJ([printf-args])
   AC_LIBOBJ([printf-parse])
   AC_LIBOBJ([asnprintf])
+  if test $ac_cv_func_vasnprintf = yes; then
+    AC_DEFINE([REPLACE_VASNPRINTF], 1,
+      [Define if vasnprintf exists but is overridden by gnulib.])
+  fi
   gl_PREREQ_PRINTF_ARGS
   gl_PREREQ_PRINTF_PARSE
   gl_PREREQ_VASNPRINTF