2049 |
if test "${with_xim}" != "no"; then |
if test "${with_xim}" != "no"; then |
2050 |
AC_DEFINE(USE_XIM, 1, |
AC_DEFINE(USE_XIM, 1, |
2051 |
[Define to 1 if we should use XIM, if it is available.]) |
[Define to 1 if we should use XIM, if it is available.]) |
2052 |
|
late_CFLAGS=$CFLAGS |
2053 |
|
if test "$GCC" = yes; then |
2054 |
|
CFLAGS="$CFLAGS --pedantic-errors" |
2055 |
|
fi |
2056 |
AC_TRY_COMPILE([ |
AC_TRY_COMPILE([ |
2057 |
#include <X11/Xlib.h> |
#include <X11/Xlib.h> |
2058 |
#include <X11/Xresource.h>], |
#include <X11/Xresource.h>], |
2062 |
char *res_class; |
char *res_class; |
2063 |
XIMProc callback; |
XIMProc callback; |
2064 |
XPointer *client_data; |
XPointer *client_data; |
2065 |
|
#ifndef __GNUC__ |
2066 |
|
/* If we're not using GCC, it's probably not XFree86, and this is |
2067 |
|
probably right, but we can't use something like --pedantic-errors. */ |
2068 |
|
extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, |
2069 |
|
char*, XIMProc, XPointer*); |
2070 |
|
#endif |
2071 |
(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
2072 |
client_data);], |
client_data);], |
2073 |
[emacs_cv_arg6_star=yes]) |
[emacs_cv_arg6_star=yes]) |
2079 |
else |
else |
2080 |
AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer]) |
AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer]) |
2081 |
fi |
fi |
2082 |
|
CFLAGS=$late_CFLAGS |
2083 |
fi |
fi |
2084 |
|
|
2085 |
### Use -lXpm if available, unless `--with-xpm=no'. |
### Use -lXpm if available, unless `--with-xpm=no'. |