comparison configure.in @ 51646:8e29225b8438

Check for sys/_mbstate_t.h. Test XRegisterIMInstantiateCallback prototype. (AH_BOTTOM): Define DO_BLOCK_INPUT, my_strftime.
author Dave Love <fx@gnu.org>
date Mon, 23 Jun 2003 18:35:23 +0000
parents e2e63297c062
children e6a0d3015a99
comparison
equal deleted inserted replaced
51645:1fa54c621eb5 51646:8e29225b8438
1407 1407
1408 dnl checks for header files 1408 dnl checks for header files
1409 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 1409 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
1410 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 1410 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
1411 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 1411 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
1412 sys/param.h sys/vlimit.h sys/resource.h locale.h) 1412 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h)
1413 dnl On Solaris 8 there's a compilation warning for term.h because 1413 dnl On Solaris 8 there's a compilation warning for term.h because
1414 dnl it doesn't define `bool'. 1414 dnl it doesn't define `bool'.
1415 AC_CHECK_HEADERS(term.h, , , -) 1415 AC_CHECK_HEADERS(term.h, , , -)
1416 AC_HEADER_STDC 1416 AC_HEADER_STDC
1417 AC_HEADER_TIME 1417 AC_HEADER_TIME
2047 dnl with `--with-xim=no'. 2047 dnl with `--with-xim=no'.
2048 2048
2049 if test "${with_xim}" != "no"; then 2049 if test "${with_xim}" != "no"; then
2050 AC_DEFINE(USE_XIM, 1, 2050 AC_DEFINE(USE_XIM, 1,
2051 [Define to 1 if we should use XIM, if it is available.]) 2051 [Define to 1 if we should use XIM, if it is available.])
2052 AC_TRY_COMPILE([
2053 #include <X11/Xlib.h>
2054 #include <X11/Xresource.h>],
2055 [Display *display;
2056 XrmDatabase db;
2057 char *res_name;
2058 char *res_class;
2059 XIMProc callback;
2060 XPointer *client_data;
2061 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
2062 client_data);],
2063 [emacs_cv_arg6_star=yes])
2064 AH_TEMPLATE(XRegisterIMInstantiateCallback_arg6,
2065 [Define to the type of the 6th arg of XRegisterIMInstantiateCallback,
2066 either XPointer or XPointer*.])dnl
2067 if test "$emacs_cv_arg6_star" = yes; then
2068 AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer*])
2069 else
2070 AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer])
2071 fi
2052 fi 2072 fi
2053 2073
2054 ### Use -lXpm if available, unless `--with-xpm=no'. 2074 ### Use -lXpm if available, unless `--with-xpm=no'.
2055 HAVE_XPM=no 2075 HAVE_XPM=no
2056 if test "${HAVE_X11}" = "yes"; then 2076 if test "${HAVE_X11}" = "yes"; then
2658 /* Define AMPERSAND_FULL_NAME if you use the convention 2678 /* Define AMPERSAND_FULL_NAME if you use the convention
2659 that & in the full name stands for the login id. */ 2679 that & in the full name stands for the login id. */
2660 /* Turned on June 1996 supposing nobody will mind it. */ 2680 /* Turned on June 1996 supposing nobody will mind it. */
2661 #define AMPERSAND_FULL_NAME 2681 #define AMPERSAND_FULL_NAME
2662 2682
2683 /* We have blockinput.h. */
2684 #define DO_BLOCK_INPUT
2685
2663 /* Define HAVE_SOUND if we have sound support. We know it works 2686 /* Define HAVE_SOUND if we have sound support. We know it works
2664 and compiles only on the specified platforms. For others, 2687 and compiles only on the specified platforms. For others,
2665 it probably doesn't make sense to try. */ 2688 it probably doesn't make sense to try. */
2666 2689
2667 #if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__ 2690 #if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__
2733 2756
2734 /* Avoid link-time collision with system mktime if we will use our own. */ 2757 /* Avoid link-time collision with system mktime if we will use our own. */
2735 #if ! HAVE_MKTIME || BROKEN_MKTIME 2758 #if ! HAVE_MKTIME || BROKEN_MKTIME
2736 #define mktime emacs_mktime 2759 #define mktime emacs_mktime
2737 #endif 2760 #endif
2761
2762 #define my_strftime nstrftime /* for strftime.c */
2738 2763
2739 /* The rest of the code currently tests the CPP symbol BSTRING. 2764 /* The rest of the code currently tests the CPP symbol BSTRING.
2740 Override any claims made by the system-description files. 2765 Override any claims made by the system-description files.
2741 Note that on some SCO version it is possible to have bcopy and not bcmp. */ 2766 Note that on some SCO version it is possible to have bcopy and not bcmp. */
2742 #undef BSTRING 2767 #undef BSTRING