# HG changeset patch # User Richard M. Stallman # Date 1059500472 0 # Node ID 00e4f19cb4e2850859ae2c5df7bf6aa593251a65 # Parent 039e1c55561eef03e5c57e3abd9f4d8de9200467 (HAVE_XIM): Define if XIM is available. diff -r 039e1c55561e -r 00e4f19cb4e2 configure.in --- a/configure.in Tue Jul 29 17:38:21 2003 +0000 +++ b/configure.in Tue Jul 29 17:41:12 2003 +0000 @@ -1248,6 +1248,7 @@ AC_PROG_LN_S AC_PROG_CPP AC_PROG_INSTALL +AC_PROG_GNU_LD if test "x$RANLIB" = x; then AC_PROG_RANLIB fi @@ -2066,14 +2067,24 @@ fi fi -dnl Don't use X11 input methods if user specifies he doesn't want it -dnl with `--with-xim=no'. +dnl See if XIM is available. +AC_TRY_COMPILE([ + #include + #include ], + [XIMProc callback;], + HAVE_XIM=yes + AC_DEFINE(HAVE_XIM, 1, [Define to 1 if XIM is available]), + HAVE_XIM=no) + +dnl `--with-xim' now controls only the initial value of use_xim at run time. if test "${with_xim}" != "no"; then AC_DEFINE(USE_XIM, 1, [Define to 1 if we should use XIM, if it is available.]) fi -if test "${HAVE_X11}" = "yes"; then + + +if test "${HAVE_XIM}" != "no"; then late_CFLAGS=$CFLAGS if test "$GCC" = yes; then CFLAGS="$CFLAGS --pedantic-errors"