diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-05-21 21:27:43 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-05-21 21:27:43 +0000 |
commit | 4bdbbf706634d8ab4b84801f0a30fd4eacbc901c (patch) | |
tree | 6a02da9fb455ef18bdcf4fdcf7ce56555018ac83 /src/configure.in | |
parent | 32f31b1a0ff304c10136ae9b49bb15981e8bb935 (diff) | |
download | vim-git-4bdbbf706634d8ab4b84801f0a30fd4eacbc901c.tar.gz |
updated for version 7.2-184v7.2.184
Diffstat (limited to 'src/configure.in')
-rw-r--r-- | src/configure.in | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/configure.in b/src/configure.in index b17353e2f..a644d941f 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1193,6 +1193,28 @@ else LDFLAGS="$ac_save_LDFLAGS" + AC_MSG_CHECKING(size of wchar_t is 2 bytes) + AC_CACHE_VAL(ac_cv_small_wchar_t, + [AC_TRY_RUN([ +#include <X11/Xlib.h> +#if STDC_HEADERS +# include <stdlib.h> +# include <stddef.h> +#endif + main() + { + if (sizeof(wchar_t) <= 2) + exit(1); + exit(0); + }], + ac_cv_small_wchar_t="no", + ac_cv_small_wchar_t="yes", + AC_MSG_ERROR(failed to compile test program))]) + AC_MSG_RESULT($ac_cv_small_wchar_t) + if test "x$ac_cv_small_wchar_t" = "xyes" ; then + AC_DEFINE(SMALL_WCHAR_T) + fi + fi fi @@ -2881,7 +2903,6 @@ main() AC_MSG_RESULT($ac_cv_sizeof_int) AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int) - dnl Check for memmove() before bcopy(), makes memmove() be used when both are dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5. |