#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#
--- src/configure.in~configure
+++ src/configure.in
@@ -4,7 +4,7 @@
dnl Should also work with autoconf 2.54 and later.
AC_INIT(vim.h)
-AC_CONFIG_HEADER(auto/config.h:config.h.in)
+AC_CONFIG_HEADER(config.h:config.h.in)
dnl Being able to run configure means the system is Unix (compatible).
AC_DEFINE(UNIX)
@@ -42,10 +42,10 @@
dnl If configure thinks we are cross compiling, there is probably something
dnl wrong with the CC or CFLAGS settings, give an understandable error message
-if test "$cross_compiling" = yes; then
- AC_MSG_ERROR([cannot compile a simple program, check CC and CFLAGS
- (cross compiling doesn't work)])
-fi
+dnl if test "$cross_compiling" = yes; then
+dnl AC_MSG_ERROR([cannot compile a simple program, check CC and CFLAGS
+dnl (cross compiling doesn't work)])
+dnl fi
dnl gcc-cpp has the wonderful -MM option to produce nicer dependencies
test "$GCC" = yes && CPP_MM=M; AC_SUBST(CPP_MM)
@@ -225,6 +225,17 @@
compiledby=""; AC_MSG_RESULT(no))
AC_SUBST(compiledby)
+dnl on FreeBSD tclsh is a silly script, look for tclsh8.0 or tclsh8.2
+AC_MSG_CHECKING(--with-x argument)
+AC_ARG_WITH(x, [ --with-x= use X],
+[
+if test X"$withval" = Xno; then