src/os_unix.h add
|| defined(__xlc__)where the
__ARGS macro is defined.
vim uses the Xutf8SetWMProperties function,
which can't be found in any standard library,
thus add at the end of src/vim.h:
# _AIX #undef X_HAVE_UTF8_STRING #endifMoreover, better use
gmake,
otherwise something goes wrong and the build runs into "install" with unset macros.
# AIX 5.3/6.1/7.1, C 12.1/9/12.1 examples
./configure --prefix=/tmp/vim-7.3 CC="cc" CFLAGS="-O2 -qcpluscmt -D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/include/" CPPFLAGS="-D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/include/" LDFLAGS="-L/bio/local/lib/" --enable-gui=motif --disable-motif-check MOTIFHOME=/usr --without-local-dir --enable-multibyte --enable-xim --enable-fontset --with-features=big
./configure --prefix=/tmp/vim-7.3 CC="cc" CFLAGS="-O2 -qcpluscmt -D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/../61/include/" CPPFLAGS="-D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/../61/include/" LDFLAGS="-L/bio/local/../61/lib/" --enable-gui=motif --disable-motif-check MOTIFHOME=/usr --without-local-dir --enable-multibyte --enable-xim --enable-fontset --with-features=big
# if threadsafe support libs are being used:
./configure --prefix=/tmp/vim-7.3 CC="cc" CFLAGS="-O2 -qcpluscmt -D_LARGE_FILES -D_THREAD_SAFE -I/nfs/local/71/include/" CPPFLAGS="-D_LARGE_FILES -D_THREAD_SAFE -I/nfs/local/71/include/" LDFLAGS="-L/nfs/local/71/lib/" LIBS="-lpthread" --enable-gui=motif --disable-motif-check MOTIFHOME=/usr --without-local-dir --enable-multibyte --enable-xim --enable-fontset --with-features=big
make
make install
Either: follow the instructions in src/INSTALL:
cd src configure CC=cc --prefix=/tmp/vim-70 --enable-gui=motif
make make install # goes into /tmp/vim-70
Or, in vim-70 directly:
make make install # goes into /usr/local !
src/message.c.
Use
#if SIZEOF_INT <= 2
char *q = memchr(str_arg, '\0',
precision
);
#else
char *q = memchr(str_arg, '\0',
precision <= (size_t)0x7fffffffL ? precision
: (size_t)0x7fffffffL
);
#endif
instead.
$VIM,
$VIMRUNTIME