dnl Process this file with autoconf to produce a configure script.
-dnl Copyright (C) 2003, 2004
+dnl Copyright (C) 2003, 2004, 2005
dnl National Institute of Advanced Industrial Science and Technology (AIST)
dnl Registration Number H15PRO167
dnl write to the Free Software Foundation, Inc., 59 Temple Place, Suite
dnl 330, Boston, MA 02111-1307, USA.
-AC_INIT(libotf, 0.9.3, handa@m17n.org)
-AM_INIT_AUTOMAKE(libotf, 0.9.3)
+AC_INIT(libotf, 0.9.4, handa@m17n.org)
+AM_INIT_AUTOMAKE(libotf, 0.9.4)
AM_CONFIG_HEADER(src/config.h)
# Checks for programs.
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h X11/Xaw/Command.h])
+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
+
+AC_CHECK_HEADER(X11/Xaw/Command.h, , no_x=yes)
# Checks for typedefs, structures, and compiler characteristics.
exit 1
fi
+if test "x$no_x" != "xyes"; then
+ X11_XT_XAW_XMU="-lX11 -lXt -lXaw -lXmu"
+fi
+AC_SUBST(X11_XT_XAW_XMU)
+
AC_CHECK_FUNC(scandir, HAVE_SCANDIR=yes, HAVE_SCANDIR=no)
if test "x$HAVE_SCANDIR" = "xyes"; then
AC_DEFINE(HAVE_SCANDIR, 1,