6
6
AC_CHECK_FILE(/usr/X/include/X11/X.h,
7
7
AC_PREFIX_DEFAULT(/usr/X),
8
AC_PREFIX_DEFAULT(/usr/X11R6))
8
AC_PREFIX_DEFAULT(/usr))
9
AC_CHECK_FILE(/usr/X11R6/include/X11/X.h,
10
AC_PREFIX_DEFAULT(/usr/X11R6),
11
AC_PREFIX_DEFAULT(/usr))
13
dnl AM_MAINTAINER_MODE
10
14
AC_CANONICAL_TARGET
12
16
dnl The version of the OpenMotif libraries
20
24
dnl This is really dumb but it seems to be bug
21
AM_INIT_AUTOMAKE(openmotif,2.3.0,no-define)
25
AM_INIT_AUTOMAKE(openmotif,2.3.3,no-define)
23
27
LIBTOOL_VERSION=$CURRENT:$REVISION:$AGE
41
45
dnl Do this the old fashioned way. 'bison -y' doesn't cut it
42
46
AC_CHECK_PROGS(YACC, byacc, yacc)
49
AC_CHECK_PROGS(SPLINT, splint)
52
AC_MSG_WARN([No splint is dound])
49
61
dnl Checks for libraries.
71
83
AC_CHECK_LIB(Xmu,XmuNCopyISOLatin1Lowered ,
72
84
AC_DEFINE(HAVE_XMU_N_COPY_ISO,1,Have XmuNCopyISOLatin1Lowered)
86
,,[[#include <X11/Intrinsic.h>]]
166
179
LIBDIR="${libdir}/X11"
182
MWMRCDIR="${libdir}/X11"
169
185
INCDIR="${includedir}/X11"
172
188
XMBINDDIR_FALLBACK="${libdir}/X11/bindings"
173
189
AC_SUBST(XMBINDDIR_FALLBACK)
175
194
AC_ARG_ENABLE(motif22-compatibility, [ --disable-motif22-compatibility
176
195
Disable binary compatibility with OpenMotif 2.2])
177
196
AC_ARG_ENABLE(utf8, [ --disable-utf8
221
240
if test "$enable_utf8" = "yes"
223
242
AC_DEFINE([UTF8_SUPPORTED], [1], [UTF8 is supported])
224
AC_CHECK_LIB([iconv], [iconv_open])
243
AC_SEARCH_LIBS([iconv_open], [iconv], ,
244
AC_SEARCH_LIBS([libiconv_open], [iconv]))
247
AC_ARG_ENABLE(printing, [ --disable-printing
248
Disable printing support])
250
if test x$enable_printing = x
252
enable_printing="yes"
255
if test "$enable_printing" = "yes"
257
AC_MSG_CHECKING([for libXp])
258
AC_CHECK_HEADERS(X11/extensions/Print.h,
259
AC_CHECK_LIB(Xp, XpCreateContext, ,enable_printing="no"),
260
enable_printing="no")
263
if test "$enable_printing" = "yes"
266
AC_DEFINE([PRINTING_SUPPORTED], [1], [Printing is supported])
267
PRINTING_SUPPORTED_FALSE=!
268
PRINTING_SUPPORTED_TRUE=
271
PRINTING_SUPPORTED_FALSE=
272
PRINTING_SUPPORTED_TRUE=!
274
AC_SUBST(PRINTING_SUPPORTED_FALSE)
275
AC_SUBST(PRINTING_SUPPORTED_TRUE)
277
AM_CONDITIONAL(PRINTING, test "$enable_printing" = "yes")
230
285
# AM_CONDITIONAL(Motif22Compatibility, test x$enable_motif22_compatibility = xyes)
232
287
AC_CONFIG_FILES([Makefile \