X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=d68d1bf5f8922e101aab62edd1a5b046448f5c8e;hb=6bc102626c5d7546d34375dd42ef204a248264cc;hp=d98631fcfcd08b184d6c223db679684d90ef1936;hpb=13ca98079f4cb3cd80deb10b173813548b1f3ddc;p=pspp diff --git a/configure.ac b/configure.ac index d98631fcfc..d68d1bf5f8 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,12 @@ dnl Checks for programs. AC_GNU_SOURCE AC_PROG_CC gl_EARLY +if test x"$cross_compiling" = x"yes"; then + if test x"$srcdir" = x"."; then + AC_ERROR([Cross compiling must be done out of source.]) + fi +fi + AM_PROG_CC_C_O AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_DLOPEN