Small reorganization.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Mar 2007 00:37:10 +0000 (00:37 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Mar 2007 00:37:10 +0000 (00:37 +0000)
m4/vasnprintf-posix.m4
m4/vasnprintf.m4

index fd88860..8556794 100644 (file)
@@ -19,10 +19,6 @@ AC_DEFUN([gl_FUNC_VASNPRINTF_POSIX],
      && test $ac_cv_func_vasnprintf = yes; then
     : # vasnprintf exists and is already POSIX compliant.
   else
      && 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
     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
index 4ae3d10..e7b51dc 100644 (file)
@@ -19,6 +19,10 @@ AC_DEFUN([gl_REPLACE_VASNPRINTF],
   AC_LIBOBJ([printf-args])
   AC_LIBOBJ([printf-parse])
   AC_LIBOBJ([asnprintf])
   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
   gl_PREREQ_PRINTF_ARGS
   gl_PREREQ_PRINTF_PARSE
   gl_PREREQ_VASNPRINTF