diff --git a/configure b/configure
index 6775eb74c18677b74c7fc3dc32a281a9f5dea29b..2c7c0f49a049889489b1c51b2084d9d6f765a4d9 100755
--- a/configure
+++ b/configure
@@ -22282,6 +22282,49 @@ fi
 
 
 
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support of printf(\"%s\", NULL)" >&5
+$as_echo_n "checking for support of printf(\"%s\", NULL)... " >&6; }
+  if test "$cross_compiling" = yes; then :
+  printf_null_ok=no
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+	#include <stdio.h>
+	#include <stdlib.h>
+	int main() { char tmp[8]; char *n=NULL; snprintf(tmp,8,"%s",n); exit(0); }
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+  printf_null_ok=yes
+else
+  printf_null_ok=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+  conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+
+  case "$host" in
+	*solaris*) have_solaris=yes ;;
+	*) have_solaris=no ;;
+  esac
+
+  if test   "$printf_null_ok" = "no" -a "$have_solaris" = "yes" -a -d /usr/lib64/0@0.so.1; then
+    as_fn_error $? "printf(\"%s\", NULL) results in abort, upgrade to OpenSolaris release 119 or set LD_PRELOAD=/usr/lib64/0@0.so.1" "$LINENO" 5
+  elif test "$printf_null_ok" = "no" -a "$have_solaris" = "yes" -a -d /usr/lib/0@0.so.1; then
+    as_fn_error $? "printf(\"%s\", NULL) results in abort, upgrade to OpenSolaris release 119 or set LD_PRELOAD=/usr/lib/0@0.so.1" "$LINENO" 5
+  elif test "$printf_null_ok" = "no" -a "$have_solaris" = "yes"; then
+    as_fn_error $? "printf(\"%s\", NULL) results in abort, upgrade to OpenSolaris release 119" "$LINENO" 5
+  elif test "$printf_null_ok" = "no"; then
+    as_fn_error $? "printf(\"%s\", NULL) results in abort" "$LINENO" 5
+  else
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+  fi
+
+
+
+
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
 $as_echo_n "checking whether debugging is enabled... " >&6; }
   # Check whether --enable-debug was given.
@@ -22958,48 +23001,6 @@ fi
 
 
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support of printf(\"%s\", NULL)" >&5
-$as_echo_n "checking for support of printf(\"%s\", NULL)... " >&6; }
-  if test "$cross_compiling" = yes; then :
-  printf_null_ok=no
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-	#include <stdio.h>
-	#include <stdlib.h>
-	int main() { char tmp[8]; char *n=NULL; snprintf(tmp,8,"%s",n); exit(0); }
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-  printf_null_ok=yes
-else
-  printf_null_ok=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-
-  case "$host" in
-	*solaris*) have_solaris=yes ;;
-	*) have_solaris=no ;;
-  esac
-
-  if test   "$printf_null_ok" = "no" -a "$have_solaris" = "yes" -a -d /usr/lib64/0@0.so.1; then
-    as_fn_error $? "printf(\"%s\", NULL) results in abort, upgrade to OpenSolaris release 119 or set LD_PRELOAD=/usr/lib64/0@0.so.1" "$LINENO" 5
-  elif test "$printf_null_ok" = "no" -a "$have_solaris" = "yes" -a -d /usr/lib/0@0.so.1; then
-    as_fn_error $? "printf(\"%s\", NULL) results in abort, upgrade to OpenSolaris release 119 or set LD_PRELOAD=/usr/lib/0@0.so.1" "$LINENO" 5
-  elif test "$printf_null_ok" = "no" -a "$have_solaris" = "yes"; then
-    as_fn_error $? "printf(\"%s\", NULL) results in abort, upgrade to OpenSolaris release 119" "$LINENO" 5
-  elif test "$printf_null_ok" = "no"; then
-    as_fn_error $? "printf(\"%s\", NULL) results in abort" "$LINENO" 5
-  else
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-  fi
-
-
-
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to include readline suport" >&5
 $as_echo_n "checking for whether to include readline suport... " >&6; }
 
diff --git a/configure.ac b/configure.ac
index bf39ea6b1dbb446c25f06434156ae5588fdc5b99..1481a54bf0caa7c6b9c19018d1fa8330308a48c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,6 +296,12 @@ dnl check for how to emulate setproctitle
 dnl
 X_AC_SETPROCTITLE
 
+dnl check if we can use standard printf functions
+dnl Has to happen before X_AC_DEBUG just incase --enable-developer is used.
+dnl
+X_AC_PRINTF_NULL
+
+
 dnl check for debug compilation, must follow X_AC_CRAY
 dnl
 X_AC_DEBUG
@@ -335,10 +341,6 @@ X_AC_MAN2HTML
 AM_CONDITIONAL(HAVE_MAN2HTML, test "x$ac_have_man2html" = "xyes")
 AC_SUBST(HAVE_MAN2HTML)
 
-dnl check if we can use standard printf functions
-dnl
-X_AC_PRINTF_NULL
-
 dnl Check for whether to include readline support
 dnl
 X_AC_READLINE