File dx-4.4.4-ac.patch of Package dx
--- configure.ac
+++ configure.ac
@@ -218,10 +218,6 @@ AC_DEFINE_UNQUOTED(BSH, "$bsh_path", [Pa
dnl End of command line options configuration
dnl Start DX configuration
-AC_LANG([C++])
-AC_CHECK_HEADERS(stdlib.h)
-AC_LANG([C])
-
#
# Check for large file support
#
@@ -299,6 +295,10 @@ else
ac_cv_header_windows_h="no"
fi
+AC_LANG([C++])
+AC_CHECK_HEADERS(stdlib.h)
+AC_LANG([C])
+
# On SGI, detect the ABI we're compiling for (handles all methods that
# can be used to set the ABI target).
if test "$ARCH" = "sgi" ; then