diff options
| author | Dave Love | 2003-07-22 17:29:56 +0000 |
|---|---|---|
| committer | Dave Love | 2003-07-22 17:29:56 +0000 |
| commit | 8cfdf2ca3ab97eeed24e05a8f8d1c4b98160ec67 (patch) | |
| tree | 3148fbfe59e5be60f5de5f6f2510a71753a8c47d | |
| parent | f0514b34ed6211eb2491f9eb16f460b1b1d5ad11 (diff) | |
| download | emacs-8cfdf2ca3ab97eeed24e05a8f8d1c4b98160ec67.tar.gz emacs-8cfdf2ca3ab97eeed24e05a8f8d1c4b98160ec67.zip | |
Make XRegisterIMInstantiateCallback test depend on
HAVE_X11, not with_xim.
(HAVE_CRTIN): Provide template.
<with_png>: Test for png.h and libpng/png.h.
| -rw-r--r-- | configure.in | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/configure.in b/configure.in index db0c88d92f6..e71fbc37919 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -227,8 +227,9 @@ case "${canonical}" in | |||
| 227 | *-*-netbsd* ) | 227 | *-*-netbsd* ) |
| 228 | opsys=netbsd | 228 | opsys=netbsd |
| 229 | if test -f /usr/lib/crti.o; then] | 229 | if test -f /usr/lib/crti.o; then] |
| 230 | dnl Leave quotation here temporarily | 230 | dnl The close and open brackets here are because this section is quoted -- |
| 231 | AC_DEFINE(HAVE_CRTIN) | 231 | dnl see the `changequote' comment above. |
| 232 | AC_DEFINE(HAVE_CRTIN, [], [Define to 1 if you have /usr/lib/crti.o.]) | ||
| 232 | [ fi | 233 | [ fi |
| 233 | 234 | ||
| 234 | case "${canonical}" in | 235 | case "${canonical}" in |
| @@ -2063,6 +2064,8 @@ if test "${with_xim}" != "no"; then | |||
| 2063 | if test "$GCC" = yes; then | 2064 | if test "$GCC" = yes; then |
| 2064 | CFLAGS="$CFLAGS --pedantic-errors" | 2065 | CFLAGS="$CFLAGS --pedantic-errors" |
| 2065 | fi | 2066 | fi |
| 2067 | fi | ||
| 2068 | if test "${HAVE_X11}" = "yes"; then | ||
| 2066 | AC_TRY_COMPILE([ | 2069 | AC_TRY_COMPILE([ |
| 2067 | #include <X11/Xlib.h> | 2070 | #include <X11/Xlib.h> |
| 2068 | #include <X11/Xresource.h>], | 2071 | #include <X11/Xresource.h>], |
| @@ -2085,9 +2088,9 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |||
| 2085 | [Define to the type of the 6th arg of XRegisterIMInstantiateCallback, | 2088 | [Define to the type of the 6th arg of XRegisterIMInstantiateCallback, |
| 2086 | either XPointer or XPointer*.])dnl | 2089 | either XPointer or XPointer*.])dnl |
| 2087 | if test "$emacs_cv_arg6_star" = yes; then | 2090 | if test "$emacs_cv_arg6_star" = yes; then |
| 2088 | AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer*]) | 2091 | AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer*]) |
| 2089 | else | 2092 | else |
| 2090 | AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer]) | 2093 | AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer]) |
| 2091 | fi | 2094 | fi |
| 2092 | CFLAGS=$late_CFLAGS | 2095 | CFLAGS=$late_CFLAGS |
| 2093 | fi | 2096 | fi |
| @@ -2147,8 +2150,12 @@ fi | |||
| 2147 | HAVE_PNG=no | 2150 | HAVE_PNG=no |
| 2148 | if test "${HAVE_X11}" = "yes"; then | 2151 | if test "${HAVE_X11}" = "yes"; then |
| 2149 | if test "${with_png}" != "no"; then | 2152 | if test "${with_png}" != "no"; then |
| 2150 | AC_CHECK_HEADER(png.h, | 2153 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
| 2151 | AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm)) | 2154 | # in /usr/include/libpng. |
| 2155 | AC_CHECK_HEADERS(png.h libpng/png.h) | ||
| 2156 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | ||
| 2157 | AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm) | ||
| 2158 | fi | ||
| 2152 | fi | 2159 | fi |
| 2153 | 2160 | ||
| 2154 | if test "${HAVE_PNG}" = "yes"; then | 2161 | if test "${HAVE_PNG}" = "yes"; then |