finalcut/configure.ac

70 lines
1.5 KiB
Plaintext

#----------------------------------------------------------------------
# configure.ac - the Final Cut library
#----------------------------------------------------------------------
# Process this file with autoconf to produce a configure script.
AC_INIT([finalcut], [0.1.1])
AC_CONFIG_SRCDIR([src/fobject.cpp])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_CXX
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS( \
linux/fb.h \
sys/io.h \
sys/kd.h \
sys/stat.h \
sys/time.h \
fcntl.h \
langinfo.h \
term.h \
termios.h \
unistd.h \
cmath \
csignal \
cstdlib \
list \
map \
queue \
vector)
# Checks for 'tgetent'
AC_SEARCH_LIBS([tgetent], [termcap tinfo curses ncurses])
# Checks for 'tparm'
AC_SEARCH_LIBS([tparm], [termcap tinfo curses ncurses])
# Checks for libtool
AM_ENABLE_SHARED
AM_DISABLE_STATIC
LT_INIT([dlopen])
LT_LANG([C++])
LT_OUTPUT
### This defines the version number of the installed .so files
### using libtool's versioning system.
AC_SUBST(SO_VERSION, ["0:0:0"])
AC_SUBST([LIBTOOL_DEPS])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([Makefile src/Makefile src/fonts/Makefile doc/Makefile test/Makefile])
# use GPM (General Purpose Mouse)
AC_ARG_WITH([gpm],
[AS_HELP_STRING([--without-gpm], [Disable GPM mouse support])],
[],
[with_gpm=yes])
if test "x$with_gpm" != "xno"
then
AC_CHECK_LIB([gpm],
[main],
[AC_DEFINE(HAVE_LIBGPM) LIBS="$LIBS -lgpm"])
fi
AC_OUTPUT