scx/configure.in

73 lines
2.3 KiB
Plaintext
Raw Normal View History

2003-10-24 11:56:09 -04:00
#AC_DEFUN(
define([SCX_PREPEND], [[$2]="$[$2] [$1]"])
2003-11-17 03:56:57 -05:00
AC_INIT(scx, 0.1)
AC_CONFIG_SRCDIR(configure.in)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS(c/config.h)
AC_PROG_LIBTOOL
2003-10-24 11:56:09 -04:00
AC_PROG_CC
AC_PATH_XTRA
2003-10-24 11:56:09 -04:00
AC_ARG_WITH(scsh-includes,
AC_HELP_STRING([--with-scsh-includes=DIR],
[scsh include files are in DIR [/usr/local/include]]),
scsh_includes=$withval,
scsh_includes=/usr/local/include)
AC_SUBST(scsh_includes)
AC_ARG_WITH(scsh-libraries,
AC_HELP_STRING([--with-scsh-libraries=DIR],
[scsh libraries are in DIR [/usr/local/lib/scsh]]),
scsh_libraries=$withval,
scsh_libraries=/usr/local/lib/scsh)
AC_SUBST(scsh_libraries)
AC_ARG_WITH(scsh-modules,
AC_HELP_STRING([--with-scsh-modules=DIR],
[scsh modules are in DIR [/usr/local/lib/scsh/modules]]),
scsh_modules=$withval,
scsh_modules=/usr/local/lib/scsh/modules)
AC_SUBST(scsh_modules)
AC_ARG_WITH(xft,
AC_HELP_STRING([--with-xft],
[Compile with Xft support]),
with_xft="yes",
with_xft="no")
dnl Compile with Xft support?
if test "$with_xft" = "yes"; then
LIBS="$LIBS -L${x_libraries}"
AC_CHECK_LIB(Xrender, XRenderQueryExtension, SCX_PREPEND(-lXrender, x_libraries))
AC_CHECK_LIB(Xft, XftFontOpen, SCX_PREPEND(-lXft, x_libraries))
AC_DEFINE([WITH_XFT], 1, [Define 1 if compiling with Xft support])
SCX_PREPEND(\$(XFT_OBJECTS), extra_objects)
AC_SUBST(load_xft_packages, yes)
2003-10-24 11:56:09 -04:00
fi
2003-03-10 21:49:51 -05:00
#AC_MSG_CHECKING(scsh installation)
#AC_CHECK_HEADER(scheme48.h)
#AC_CHECK_LIB(scsh/libscsh.a, scsh_access)
#if no_x == 'yes' fail ...
2003-11-22 15:05:09 -05:00
schemedir="${prefix}/scheme"
libsysdir="${prefix}/lib/`uname -m`-`uname -s`"
AC_SUBST(libsysdir)
2003-11-22 15:05:09 -05:00
AC_SUBST(schemedir)
2003-03-10 21:49:51 -05:00
AC_SUBST(LIBS)
2003-10-30 03:08:15 -05:00
AC_SUBST(CC)
2003-10-24 11:56:09 -04:00
AC_SUBST(x_includes)
AC_SUBST(x_libraries)
AC_SUBST(extra_objects)
2003-03-10 21:49:51 -05:00
AC_OUTPUT([Makefile c/Makefile c/xlib/Makefile scheme/Makefile])