finalcut/configure.ac

85 lines
2.0 KiB
Plaintext
Raw Normal View History

2015-05-23 13:35:12 +02:00
#----------------------------------------------------------------------
# configure.ac - the Final Cut library
#----------------------------------------------------------------------
# Process this file with autoconf to produce a configure script.
2017-11-04 07:03:53 +01:00
AC_INIT([finalcut], [0.4.0])
2015-08-22 18:53:52 +02:00
AC_CONFIG_HEADER([config.h])
AX_PREFIX_CONFIG_H([include/final/fconfig.h], [F])
2015-05-23 13:35:12 +02:00
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])
2015-07-09 02:15:12 +02:00
# Checks for 'tparm'
AC_SEARCH_LIBS([tparm], [termcap tinfo curses ncurses])
2015-05-23 13:35:12 +02:00
# Checks for libtool
AC_ENABLE_SHARED
AC_ENABLE_STATIC
2015-05-23 13:35:12 +02:00
LT_INIT([dlopen])
LT_LANG([C++])
LT_OUTPUT
### This defines the version number of the installed .so files
2015-12-19 22:01:48 +01:00
### Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
2015-05-23 13:35:12 +02:00
### using libtool's versioning system.
2017-11-04 07:03:53 +01:00
AC_SUBST(SO_VERSION, ["4:0:4"])
2015-05-23 13:35:12 +02:00
AC_SUBST([LIBTOOL_DEPS])
AC_CONFIG_MACRO_DIR([m4])
2017-11-02 16:05:34 +01:00
AC_CONFIG_FILES([Makefile src/Makefile fonts/Makefile doc/Makefile examples/Makefile])
2015-05-23 13:35:12 +02:00
# use GPM (General Purpose Mouse)
AC_ARG_WITH([gpm],
[AS_HELP_STRING([--without-gpm], [Disable GPM mouse support])],
[with_gpm=no],
2015-05-23 13:35:12 +02:00
[with_gpm=yes])
if test "x$with_gpm" = "xyes"
2015-05-23 13:35:12 +02:00
then
AC_CHECK_LIB([gpm],
[main],
[AC_DEFINE([HAVE_LIBGPM], 1, [Define to 1 if GPM mouse is enabled])
LIBS="$LIBS -lgpm"])
2015-05-23 13:35:12 +02:00
fi
2015-10-15 02:37:02 +02:00
# profiling
AC_ARG_WITH([profiler],
[AS_HELP_STRING([--with-profiler], [build extra google profiler binaries])],
[with_profiler=yes],
[with_profiler=no])
if test "x$with_profiler" = "xyes"
then
AC_CHECK_LIB([profiler],
[ProfilerFlush],
[LIBS="$LIBS -lprofiler"])
fi
2015-05-23 13:35:12 +02:00
AC_OUTPUT