2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(chise-base, 0.24, chise-en@m17n.org)
12 # AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
13 # /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
15 AC_SUBST(ac_configure_args)
16 AC_SUBST(xemacs_site_includes)
17 AC_SUBST(xemacs_site_libraries)
20 AC_SUBST(lemi_cvs_root)
22 if test -f CVS/Root; then
23 cvs_root=`cat CVS/Root`
24 lemi_cvs_root=`cat CVS/Root|sed 's/chise/root/'`
26 cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/chise'
27 lemi_cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/root'
30 # Checks for libraries.
31 if test -d /sw/include; then
32 xemacs_site_includes="/sw/include"
33 xemacs_site_libraries="/sw/lib"
34 xemacs_opts="--with-dialogs=athena --with-widgets=athena --with-athena=3d"
36 if test -f /sw/include/db3/db.h; then
37 xemacs_site_includes="$xemacs_site_includes:/sw/include/db3"
38 elif test -f /sw/include/db4/db.h; then
39 xemacs_site_includes="$xemacs_site_includes:/sw/include/db4"
41 if test -d /sw/include/canna; then
42 xemacs_opts="$xemacs_opts --with-canna"
46 if test "$xemacs_site_includes" != ""; then
47 xemacs_opts="$xemacs_opts --site-includes=$xemacs_site_includes"
50 if test "$xemacs_site_libraries" != ""; then
51 xemacs_opts="$xemacs_opts --site-libraries=$xemacs_site_libraries"
54 # Checks for header files.
56 # Checks for typedefs, structures, and compiler characteristics.
60 # Checks for library functions.
64 #AC_CHECK_FUNCS(strnlen)
66 AC_CONFIG_FILES([Makefile])