2008-03-03 08:22:58 +01:00
|
|
|
AC_PREREQ(2.57)
|
|
|
|
|
|
|
|
######################
|
2011-12-22 22:21:03 +01:00
|
|
|
# aegisub version info
|
2008-03-03 08:22:58 +01:00
|
|
|
######################
|
2010-01-21 01:29:26 +01:00
|
|
|
# MAKE SURE YOU UPDATE THE VERSION INFO BELOW WHEN YOU SET THIS TO '1'
|
|
|
|
m4_define([aegisub_FINAL_RELEASE], [0])
|
|
|
|
|
2010-08-15 20:40:58 +02:00
|
|
|
m4_define([aegisub_version_major], [3])
|
|
|
|
m4_define([aegisub_version_minor], [0])
|
2009-07-14 20:15:11 +02:00
|
|
|
m4_define([aegisub_version_revision], [0])
|
2010-01-21 01:29:26 +01:00
|
|
|
m4_define([aegisub_version], [aegisub_version_major.aegisub_version_minor.aegisub_version_revision])
|
2009-01-06 11:44:49 +01:00
|
|
|
m4_define([aegisub_version_data], [aegisub_version_major.aegisub_version_minor])
|
2009-01-29 04:52:47 +01:00
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
###################
|
|
|
|
# Required packages
|
|
|
|
###################
|
2009-09-03 09:10:57 +02:00
|
|
|
m4_define([curl_required_version], [7.18.2])
|
2011-12-22 22:22:13 +01:00
|
|
|
m4_define([ffms_required_version], [2.15])
|
|
|
|
m4_define([fftw_required_version], [3.3])
|
2008-03-03 08:22:58 +01:00
|
|
|
m4_define([fontconfig_required_version], [2.4])
|
2008-12-27 10:32:47 +01:00
|
|
|
m4_define([freetype_required_version], [9.7.0])
|
2011-12-22 22:22:13 +01:00
|
|
|
m4_define([libass_required_version], [0.9.7])
|
|
|
|
m4_define([lua_auto4_required_version], [5.1])
|
2008-12-27 10:32:47 +01:00
|
|
|
m4_define([pkgconfig_required_version], [0.20])
|
2011-12-22 22:22:13 +01:00
|
|
|
m4_define([portaudio_required_version], [19])
|
|
|
|
m4_define([pulseaudio_required_version], [0.5])
|
2011-11-08 05:14:03 +01:00
|
|
|
m4_define([wx_required_version], [2.9.2])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
#######
|
|
|
|
# Setup
|
|
|
|
#######
|
|
|
|
AC_INIT([Aegisub], [aegisub_version],, [aegisub])
|
2011-12-22 22:21:20 +01:00
|
|
|
: ${CFLAGS=""}
|
|
|
|
: ${CXXFLAGS=""}
|
2009-03-09 01:58:38 +01:00
|
|
|
AC_CONFIG_SRCDIR([src/main.cpp])
|
2009-01-04 07:31:48 +01:00
|
|
|
AC_CONFIG_HEADER([acconf.h])
|
2008-03-03 08:22:58 +01:00
|
|
|
AC_GNU_SOURCE
|
|
|
|
AC_CANONICAL_HOST
|
2008-12-31 06:07:58 +01:00
|
|
|
|
2009-11-17 05:47:26 +01:00
|
|
|
|
2008-03-27 00:58:39 +01:00
|
|
|
###########################
|
|
|
|
# Check target architecture
|
|
|
|
###########################
|
|
|
|
AC_MSG_CHECKING([for target architecture])
|
|
|
|
case x"$target" in
|
|
|
|
xNONE | x)
|
|
|
|
target_or_host="$host" ;;
|
|
|
|
*)
|
|
|
|
target_or_host="$target" ;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT([$target_or_host])
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
build_darwin="no"
|
|
|
|
build_linux="no"
|
|
|
|
build_bsd="no"
|
|
|
|
build_default="no"
|
|
|
|
|
2008-03-27 00:58:39 +01:00
|
|
|
case "$target_or_host" in
|
|
|
|
*-*-darwin*)
|
|
|
|
build_darwin="yes"
|
|
|
|
;;
|
|
|
|
|
2008-04-10 18:15:26 +02:00
|
|
|
*-*-linux*)
|
|
|
|
build_linux="yes"
|
|
|
|
;;
|
|
|
|
|
2009-09-26 16:50:24 +02:00
|
|
|
*-*-*bsd*)
|
|
|
|
build_bsd="yes"
|
2011-12-22 22:21:03 +01:00
|
|
|
ICONV_CFLAGS="-I/usr/local/include"
|
|
|
|
ICONV_LDFLAGS="-L/usr/local/lib -liconv"
|
2009-09-26 16:50:24 +02:00
|
|
|
;;
|
|
|
|
|
2008-03-27 00:58:39 +01:00
|
|
|
*)
|
2008-03-29 23:30:30 +01:00
|
|
|
build_default="yes"
|
2008-03-27 00:58:39 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2009-04-29 01:25:42 +02:00
|
|
|
case "$target_or_host" in
|
|
|
|
ppc-*-* | powerpc-*)
|
2009-04-29 02:49:38 +02:00
|
|
|
arch_ppc="yes"
|
2010-01-21 01:34:45 +01:00
|
|
|
arch_bundle="ppc"
|
2009-04-29 01:25:42 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
i*86-*-*)
|
2009-04-29 02:49:38 +02:00
|
|
|
arch_x86="yes"
|
2010-01-21 01:34:45 +01:00
|
|
|
arch_bundle="intel"
|
2009-04-29 01:25:42 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
x86_64-*-*)
|
2009-04-29 02:49:38 +02:00
|
|
|
arch_x86="yes"
|
|
|
|
arch_x86_64="yes"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2009-04-29 01:25:42 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$build_darwin" = "yes"; then
|
|
|
|
if test "$arch_x86" = "yes"; then
|
|
|
|
DARWIN_ARCH="intel"
|
2009-04-29 02:49:38 +02:00
|
|
|
elif test "$arch_ppc" = "yes"; then
|
2009-04-29 01:25:42 +02:00
|
|
|
DARWIN_ARCH="ppc"
|
|
|
|
fi
|
|
|
|
AC_SUBST(DARWIN_ARCH)
|
|
|
|
fi
|
2009-02-17 07:37:39 +01:00
|
|
|
|
2009-02-10 22:25:32 +01:00
|
|
|
# Used for universalchardet.
|
2008-12-17 04:52:33 +01:00
|
|
|
AC_AGI_MDCPUCFG($target_or_host)
|
|
|
|
|
2008-03-29 23:30:30 +01:00
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(build_bsd)
|
|
|
|
AC_SUBST(build_linux)
|
|
|
|
AC_SUBST(build_darwin)
|
|
|
|
AC_SUBST(build_default)
|
2008-03-27 00:58:39 +01:00
|
|
|
|
2009-02-10 22:25:32 +01:00
|
|
|
# Handle endianess.
|
2008-07-04 02:41:28 +02:00
|
|
|
AC_C_BIGENDIAN(
|
2011-12-22 22:21:03 +01:00
|
|
|
AC_DEFINE([HAVE_BIG_ENDIAN], [1], [Big Endian]),
|
|
|
|
AC_DEFINE([HAVE_LITTLE_ENDIAN], [1], [Little Endian]),
|
|
|
|
AC_DEFINE([HAVE_DYNAMIC_ENDIAN], [1], [Unknown endian]),
|
|
|
|
AC_DEFINE([HAVE_UNIVERSAL_ENDIAN], [1], [Universal Endian (MAC Universal PPC/Intel Binaries, uses HAVE_DYNAMIC_ENDIAN)])
|
2008-07-04 02:41:28 +02:00
|
|
|
)
|
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
########################
|
|
|
|
# Configurable variables
|
|
|
|
########################
|
2009-01-29 22:32:39 +01:00
|
|
|
# These cannot be set before AC_INIT()
|
|
|
|
AEGISUB_VERSION_MAJOR=aegisub_version_major
|
|
|
|
AEGISUB_VERSION_MINOR=aegisub_version_minor
|
|
|
|
AEGISUB_VERSION=aegisub_version
|
2009-02-12 01:39:53 +01:00
|
|
|
# Used for gettext.
|
2009-01-29 22:32:39 +01:00
|
|
|
AEGISUB_VERSION_DATA=aegisub_version_data
|
|
|
|
|
2009-01-29 04:52:47 +01:00
|
|
|
# Suffix used for data paths.
|
2009-01-06 11:44:49 +01:00
|
|
|
AC_DEFINE_UNQUOTED(AEGISUB_VERSION_DATA, ["$AEGISUB_VERSION_DATA"], [Data path suffix.])
|
2009-01-07 09:48:33 +01:00
|
|
|
AC_SUBST(AEGISUB_VERSION_DATA)
|
2009-01-06 11:44:49 +01:00
|
|
|
|
2009-01-29 04:52:47 +01:00
|
|
|
|
|
|
|
# Name of aegisub binary.
|
|
|
|
AEGISUB_COMMAND="aegisub-$AEGISUB_VERSION_MAJOR.$AEGISUB_VERSION_MINOR"
|
2009-01-06 11:44:49 +01:00
|
|
|
AC_SUBST(AEGISUB_COMMAND)
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2009-01-29 04:52:47 +01:00
|
|
|
# Handle location of desktop files: http://freedesktop.org/wiki/Specifications/desktop-entry-spec
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(desktop-dir,
|
|
|
|
AS_HELP_STRING([--with-desktop-dir=PATH],[desktop file locations [PREFIX/share/applications]]))
|
|
|
|
|
2011-12-22 22:21:20 +01:00
|
|
|
P_DESKTOP=${with_desktop_dir:-$datarootdir/applications}
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(P_DESKTOP)
|
|
|
|
|
|
|
|
# Handle location of icons: http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(icon-dir,
|
|
|
|
AS_HELP_STRING([--with-icon-dir=PATH],[icon locations [PREFIX/share/icons]]))
|
|
|
|
|
2011-12-22 22:21:20 +01:00
|
|
|
P_ICON=${with_icon_dir:-$datarootdir/icons}
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(P_ICON)
|
2009-01-06 11:44:49 +01:00
|
|
|
|
|
|
|
|
2009-01-29 04:52:47 +01:00
|
|
|
# Install prefix
|
2009-01-06 11:44:49 +01:00
|
|
|
# If a user doesn't supply --prefix then it is set to NONE so we
|
|
|
|
# set it to $ac_default_prefix if it hasn't been supplied.
|
2009-01-04 05:38:32 +01:00
|
|
|
if test "$prefix" = "NONE"; then
|
2011-12-22 22:21:03 +01:00
|
|
|
prefix="$ac_default_prefix"
|
2009-01-04 05:38:32 +01:00
|
|
|
fi
|
|
|
|
|
2009-01-01 13:58:47 +01:00
|
|
|
# Install prefix used by wxStandardPaths::SetInstallPrefix.
|
|
|
|
AC_DEFINE_UNQUOTED([INSTALL_PREFIX], ["$prefix"], [Default install prefix, or --prefix.])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2009-01-29 04:52:47 +01:00
|
|
|
# Build credit
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(build-credit,
|
|
|
|
AS_HELP_STRING([--with-build-credit=NAME],[Build credit shown in the program title.]),
|
|
|
|
[use_build_credit="yes"])
|
|
|
|
|
2009-01-02 10:13:22 +01:00
|
|
|
AC_MSG_CHECKING([whether BUILD_CREDIT has been set])
|
|
|
|
if test "$use_build_credit" = "yes"; then
|
|
|
|
if test "$with_build_credit" = "yes" || test -z "$with_build_credit"; then
|
|
|
|
AC_MSG_FAILURE([You must set a value eg --with-build-credit=<username>])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([yes ($with_build_credit)])
|
|
|
|
AC_DEFINE_UNQUOTED([BUILD_CREDIT], ["$with_build_credit"], [Build credit supplied in application title using --with-build-credit=])
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
####################
|
|
|
|
# Check for programs
|
|
|
|
####################
|
|
|
|
CHECK_GNU_MAKE
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_LANG(C++)
|
2009-07-19 20:33:08 +02:00
|
|
|
AM_PROG_CC_C_O
|
2010-12-05 20:12:42 +01:00
|
|
|
# This is reported to be required on Ubuntu, I haven't had time to check.
|
2009-07-11 05:45:03 +02:00
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])
|
2008-03-03 08:22:58 +01:00
|
|
|
AC_PROG_INSTALL
|
2009-12-25 05:31:59 +01:00
|
|
|
AC_PROG_RANLIB
|
2008-12-27 10:32:47 +01:00
|
|
|
PKG_PROG_PKG_CONFIG([pkgconfig_required_version])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
|
2008-03-04 17:59:01 +01:00
|
|
|
#################
|
|
|
|
# Developers only
|
|
|
|
#################
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2009-01-02 09:48:13 +01:00
|
|
|
# XXX: This needs to be fixed to handle mixed revisions properly
|
2009-04-21 20:48:59 +02:00
|
|
|
# There is probably a better way to handle it as well...
|
2008-12-31 06:07:58 +01:00
|
|
|
AC_MSG_CHECKING([for svn version])
|
|
|
|
if test -d "$srcdir/.svn"; then
|
2009-01-02 09:48:13 +01:00
|
|
|
SVN_REVISION=`svnversion $srcdir | sed "s/\(^@<:@0-9@:>@*\).*/\1/"`
|
2009-01-29 04:56:23 +01:00
|
|
|
`echo $SVN_REVISION > $srcdir/svn_revision`
|
2008-12-31 06:52:52 +01:00
|
|
|
AC_MSG_RESULT([$SVN_REVISION from "svnversion $srcdir"])
|
|
|
|
elif test -f "$srcdir/svn_revision"; then
|
|
|
|
SVN_REVISION=`cat $srcdir/svn_revision`
|
|
|
|
AC_MSG_RESULT([$SVN_REVISION from "$srcdir/svn_revision"])
|
2008-12-31 06:07:58 +01:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT([not found])
|
2011-12-22 22:13:04 +01:00
|
|
|
AC_MSG_FAILURE([unable to get SVN Revision from $srcdir/svn_revision or 'svnversion $srcdir'])
|
2008-03-06 02:16:07 +01:00
|
|
|
fi
|
2008-03-04 17:59:01 +01:00
|
|
|
|
2009-02-12 01:39:53 +01:00
|
|
|
# This is required in order for the config file to work correctly.
|
2009-01-02 09:48:13 +01:00
|
|
|
AC_DEFINE_UNQUOTED([BUILD_SVN_REVISION], [$SVN_REVISION], [SVN Revision number, used for config.dat and verison.cpp])
|
|
|
|
|
2010-01-21 01:29:26 +01:00
|
|
|
|
|
|
|
# Release information.
|
|
|
|
if test "aegisub_FINAL_RELEASE" = "1"; then
|
|
|
|
AC_DEFINE([FINAL_RELEASE], [aegisub_FINAL_RELEASE], [This is only set to 1 for a RELEASE VERSION.])
|
2010-01-21 01:34:45 +01:00
|
|
|
BUNDLE_STRING="Aegisub"
|
|
|
|
DMG_STRING="Aegisub-${PACKAGE_VERSION}-${arch_bundle}"
|
2010-01-21 01:29:26 +01:00
|
|
|
else
|
2010-01-21 01:34:45 +01:00
|
|
|
PACKAGE_STRING="${PACKAGE_STRING}-dev-r${SVN_REVISION}"
|
|
|
|
PACKAGE_VERSION="${PACKAGE_VERSION}-dev-r${SVN_REVISION}"
|
|
|
|
VERSION="${VERSION}-dev-r${SVN_REVISION}"
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
BUNDLE_STRING="Aegisub-${PACKAGE_VERSION}"
|
|
|
|
DMG_STRING="Aegisub-${PACKAGE_VERSION}-${arch_bundle}"
|
2010-01-21 01:29:26 +01:00
|
|
|
fi
|
|
|
|
|
2008-12-31 06:07:58 +01:00
|
|
|
|
2009-02-12 01:39:53 +01:00
|
|
|
# Used in version.cpp
|
2008-12-31 06:07:58 +01:00
|
|
|
AC_MSG_CHECKING([for build date])
|
|
|
|
BUILD_DATE=`date "+%Y-%m-%d %H:%M %Z"`
|
|
|
|
AC_MSG_RESULT($BUILD_DATE)
|
|
|
|
|
2008-12-31 06:52:52 +01:00
|
|
|
AC_SUBST(SVN_REVISION)
|
|
|
|
AC_SUBST(BUILD_DATE)
|
2010-01-21 01:34:45 +01:00
|
|
|
AC_SUBST(BUNDLE_STRING)
|
|
|
|
AC_SUBST(DMG_STRING)
|
2008-12-31 06:07:58 +01:00
|
|
|
|
2008-03-04 17:59:01 +01:00
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
###################################################
|
|
|
|
# Check for pthreads and setup variables / compiler
|
|
|
|
###################################################
|
2009-09-05 21:53:18 +02:00
|
|
|
ACX_PTHREAD([], [AC_MSG_FAILURE([You must have working pthreads.])])
|
2008-03-03 08:22:58 +01:00
|
|
|
CC="$PTHREAD_CC";
|
|
|
|
|
2010-05-31 23:57:08 +02:00
|
|
|
AC_AGI_COMPILE([pthread_rwlock_*], [pthread_rwlock], [$PTHREAD_CFLAGS], [$PTHREAD_LIBS],[
|
|
|
|
#include <pthread.h>
|
|
|
|
#define _XOPEN_SOURCE 500
|
|
|
|
int main(void) {
|
|
|
|
pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
|
|
|
|
pthread_rwlock_rdlock(&l);
|
|
|
|
return 0;
|
|
|
|
}])
|
|
|
|
|
|
|
|
if test "$agi_cv_with_pthread_rwlock" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_RWLOCK,1,[define if the compiler implements pthread_rwlock_*])
|
|
|
|
fi
|
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
######################
|
|
|
|
# Check compiler flags
|
|
|
|
######################
|
2009-02-10 21:50:28 +01:00
|
|
|
AC_ARG_ENABLE(compiler-flags, [ --disable-compiler-flags
|
2011-12-22 22:20:24 +01:00
|
|
|
Disable *all* additional compiler flags. [no]])
|
2009-02-10 21:50:28 +01:00
|
|
|
|
|
|
|
if test "$enable_compiler_flags" != "no"; then
|
|
|
|
AC_C_FLAG([-Wall])
|
|
|
|
AC_C_FLAG([-Wextra],[AC_C_FLAG([-W])])
|
|
|
|
AC_C_FLAG([-Wno-unused-parameter])
|
|
|
|
AC_C_FLAG([-std=gnu99])
|
2009-02-14 20:08:44 +01:00
|
|
|
AC_C_FLAG([-pipe])
|
2009-02-10 21:50:28 +01:00
|
|
|
AC_CXX_FLAG([-Wall])
|
|
|
|
AC_CXX_FLAG([-Wextra],[AC_CXX_FLAG([-W])])
|
|
|
|
AC_CXX_FLAG([-Wno-unused-parameter])
|
|
|
|
AC_CXX_FLAG([-Wno-long-long])
|
|
|
|
AC_CXX_FLAG([-fno-strict-aliasing])
|
2009-02-14 20:08:44 +01:00
|
|
|
AC_CXX_FLAG([-pipe])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2009-02-14 20:05:40 +01:00
|
|
|
# -O* messes with debugging.
|
2010-01-21 01:30:42 +01:00
|
|
|
if test "$enable_debug" = "yes"; then
|
|
|
|
opt_flag="-O0"
|
|
|
|
else
|
|
|
|
opt_flag="-O2"
|
2009-02-14 20:05:40 +01:00
|
|
|
fi
|
2010-01-21 01:30:42 +01:00
|
|
|
|
|
|
|
AC_C_FLAG([$opt_flag])
|
|
|
|
AC_CXX_FLAG([$opt_flag])
|
2009-02-11 17:50:16 +01:00
|
|
|
fi
|
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
######################################
|
|
|
|
# Check Headers / Features / Libraries
|
|
|
|
######################################
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_VOLATILE
|
|
|
|
AC_CHECK_LIB([m], [main])
|
2008-10-28 03:18:14 +01:00
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_AGI_COMPILE([pragma once], [pragma_once], [], [],[
|
|
|
|
#pragma once
|
|
|
|
int main(void) {}
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "$agi_cv_pragma_once" = "no"; then
|
|
|
|
AC_MSG_FAILURE([Aegisub requires #pragma once to work correctly.])
|
|
|
|
fi
|
|
|
|
|
2011-12-22 22:19:41 +01:00
|
|
|
AC_CHECK_HEADER([wchar.h],,[AC_MSG_FAILURE([aegisub requires wide character support])])
|
|
|
|
|
2010-06-16 09:49:35 +02:00
|
|
|
AC_CHECK_HEADERS([sys/time.h])
|
2011-12-22 22:12:46 +01:00
|
|
|
AC_CHECK_SIZEOF([time_t])
|
2010-06-16 09:49:35 +02:00
|
|
|
|
2008-03-21 22:01:03 +01:00
|
|
|
##############################
|
|
|
|
# Program Support and Features
|
|
|
|
##############################
|
2011-12-22 22:21:03 +01:00
|
|
|
##########################
|
|
|
|
# X
|
|
|
|
##########################
|
|
|
|
AC_PATH_XTRA
|
|
|
|
if test "$no_x" = "yes" && test "$build_darwin" != "yes"; then
|
|
|
|
AC_MSG_FAILURE([You must have a working copy of X installed.])
|
|
|
|
fi
|
|
|
|
|
2008-04-11 17:17:00 +02:00
|
|
|
#########
|
|
|
|
## OpenGL
|
|
|
|
#########
|
2008-03-21 22:01:03 +01:00
|
|
|
AX_CHECK_GL
|
2011-12-22 22:20:07 +01:00
|
|
|
|
|
|
|
if test "$no_gl" = "yes"; then
|
|
|
|
AC_MSG_FAILURE([Aegisub requires GL support.])
|
2008-03-21 22:01:03 +01:00
|
|
|
fi
|
2011-12-22 22:20:07 +01:00
|
|
|
|
2008-03-21 22:01:03 +01:00
|
|
|
AC_SUBST(GL_CFLAGS)
|
|
|
|
AC_SUBST(GL_LIBS)
|
|
|
|
|
2009-09-03 08:53:55 +02:00
|
|
|
#######
|
|
|
|
## cURL
|
|
|
|
#######
|
|
|
|
PKG_CHECK_MODULES(LIBCURL, libcurl >= curl_required_version,,
|
|
|
|
[AC_MSG_FAILURE([aegisub requires >= cURL curl_required_version])])
|
|
|
|
|
|
|
|
AC_AGI_COMPILE([cURL], [curl], [$LIBCURL_CFLAGS], [$LIBCURL_LIBS],[
|
|
|
|
#include <curl/curl.h>
|
|
|
|
int main(void) {
|
|
|
|
CURL *handle = curl_easy_init();
|
|
|
|
}])
|
|
|
|
|
|
|
|
if test "$agi_cv_with_curl" = "no"; then
|
|
|
|
AC_MSG_FAILURE([Please install a working cURL library.])
|
|
|
|
fi
|
|
|
|
|
2008-04-11 17:17:00 +02:00
|
|
|
|
|
|
|
###########
|
|
|
|
## Freetype
|
|
|
|
###########
|
2008-12-27 10:32:47 +01:00
|
|
|
PKG_CHECK_MODULES(FREETYPE, freetype2 >= freetype_required_version,
|
2011-12-22 22:20:15 +01:00
|
|
|
AC_DEFINE(WITH_FREETYPE2, 1, [Enable FreeType 2 support.]),
|
|
|
|
[AC_MSG_FAILURE([Aegisub requires >= FreeType2 freetype_required_version])])
|
2008-03-23 00:10:55 +01:00
|
|
|
|
2008-04-11 17:17:00 +02:00
|
|
|
#############
|
|
|
|
## Fontconfig
|
|
|
|
#############
|
2011-12-22 22:20:15 +01:00
|
|
|
PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= fontconfig_required_version,
|
|
|
|
[AC_DEFINE(WITH_FONTCONFIG, 1, [Enable FontConfig support.])],
|
|
|
|
[AC_MSG_FAILURE([Aegisub requires fontconfig >= fontconfig_required_version])])
|
2009-01-29 05:15:25 +01:00
|
|
|
|
2008-04-11 17:17:00 +02:00
|
|
|
########
|
|
|
|
## iconv
|
|
|
|
########
|
2011-12-22 22:21:20 +01:00
|
|
|
AC_ARG_VAR([ICONV_CFLAGS], [CFLAGS to use for iconv []])
|
|
|
|
AC_ARG_VAR([ICONV_LDFLAGS], [LDFLAGS to use for iconv [-liconv]])
|
2008-04-11 17:17:00 +02:00
|
|
|
|
|
|
|
if test -z "$ICONV_LDFLAGS"; then
|
2011-12-22 22:21:20 +01:00
|
|
|
OLD_LIBS="$LIBS"
|
|
|
|
LIBS=""
|
|
|
|
AC_SEARCH_LIBS([iconv_open], [iconv])
|
|
|
|
ICONV_LDFLAGS="$LIBS"
|
|
|
|
LIBS="$OLD_LIBS"
|
2008-04-11 17:17:00 +02:00
|
|
|
fi
|
|
|
|
|
2011-01-09 02:37:34 +01:00
|
|
|
AC_AGI_COMPILE([iconv], [iconv], [$ICONV_CFLAGS], [$ICONV_LDFLAGS],[
|
2008-04-11 17:17:00 +02:00
|
|
|
#include <iconv.h>
|
|
|
|
int main(void) {
|
|
|
|
iconv_t ic;
|
|
|
|
ic = iconv_open ("UTF-8", "UTF-8");
|
|
|
|
if (!ic) return 1;
|
|
|
|
return 0;
|
|
|
|
} ])
|
|
|
|
|
|
|
|
AC_SUBST(ICONV_LDFLAGS)
|
|
|
|
AC_SUBST(ICONV_CFLAGS)
|
|
|
|
|
2011-01-09 02:37:34 +01:00
|
|
|
if test "$agi_cv_with_iconv" = "no" ; then
|
2011-12-22 22:21:03 +01:00
|
|
|
AC_MSG_FAILURE([Please install a working iconv library.])
|
2011-01-09 02:37:34 +01:00
|
|
|
fi
|
|
|
|
|
2011-12-22 22:21:12 +01:00
|
|
|
AC_AGI_COMPILE([iconv (const)], [iconv_const], [$ICONV_CFLAGS], [$ICONV_LDFLAGS],[
|
2010-06-06 04:40:29 +02:00
|
|
|
#include <iconv.h>
|
|
|
|
int main(void) {
|
2010-06-06 05:24:01 +02:00
|
|
|
iconv_t cd = iconv_open("UTF-16", "UTF-8");
|
|
|
|
const char *in = "in";
|
|
|
|
char *out = new char();
|
|
|
|
size_t res, inbytesleft, outbytesleft;
|
|
|
|
res = iconv(cd, &in, &inbytesleft, &out, &outbytesleft);
|
2010-06-06 04:40:29 +02:00
|
|
|
return 0;
|
|
|
|
} ])
|
|
|
|
|
2011-12-22 22:21:12 +01:00
|
|
|
if test "$agi_cv_with_iconv_const" = "yes"; then
|
|
|
|
AC_DEFINE(AGI_ICONV_CONST, 1, [Enable if iconv expects the in argument to be const])
|
2010-06-06 04:40:29 +02:00
|
|
|
fi
|
|
|
|
|
2008-06-29 20:56:46 +02:00
|
|
|
###############
|
|
|
|
# Audio Players
|
|
|
|
###############
|
2008-03-13 04:25:29 +01:00
|
|
|
#######
|
|
|
|
## ALSA
|
|
|
|
#######
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(alsa,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-alsa],
|
|
|
|
[build without ALSA audio provider [auto]]))
|
2009-04-12 12:28:42 +02:00
|
|
|
|
2011-12-22 22:21:20 +01:00
|
|
|
AC_ARG_VAR([ALSA_CFLAGS], [CFLAGS to use for ALSA []])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([ALSA_LDFLAGS], [LDFLAGS to use for ALSA [-lasound -lrt]])
|
2009-04-12 12:28:42 +02:00
|
|
|
|
2011-12-22 22:21:20 +01:00
|
|
|
ALSA_LDFLAGS=${ALSA_LDFLAGS:--lasound -lrt}
|
2009-04-12 12:28:42 +02:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_alsa" == "no"; then
|
|
|
|
alsa_disabled="(disabled)"
|
|
|
|
else
|
2011-12-22 22:21:20 +01:00
|
|
|
AC_CHECK_LIB([asound], [snd_pcm_open], [with_alsa="yes"], [with_alsa="no"], $ALSA_LDFLAGS)
|
2008-03-03 08:22:58 +01:00
|
|
|
fi
|
2009-01-15 02:02:57 +01:00
|
|
|
|
|
|
|
if test "$with_alsa" != "no"; then
|
2008-03-03 08:54:19 +01:00
|
|
|
AC_DEFINE(WITH_ALSA, 1, [Enable ALSA Support])
|
2009-04-12 12:08:28 +02:00
|
|
|
found_audio_player="yes"
|
2008-03-03 08:54:19 +01:00
|
|
|
fi
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2011-12-22 22:21:20 +01:00
|
|
|
AC_SUBST(ALSA_CFLAGS)
|
|
|
|
AC_SUBST(ALSA_LDFLAGS)
|
|
|
|
AC_SUBST(with_alsa)
|
2009-01-15 02:02:57 +01:00
|
|
|
|
2008-03-13 04:25:29 +01:00
|
|
|
############
|
|
|
|
## PortAudio
|
|
|
|
############
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(portaudio,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-portaudio],
|
|
|
|
[build without PortAudio v19 audio provider [auto]]))
|
2009-01-12 01:20:47 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_portaudio" == "no"; then
|
|
|
|
portaudio_disabled="(disabled)"
|
|
|
|
else
|
2009-06-10 06:45:57 +02:00
|
|
|
PKG_CHECK_MODULES(PORTAUDIO, portaudio-2.0 >= portaudio_required_version, [with_portaudio="yes"], [with_portaudio="no"])
|
2009-01-12 01:20:47 +01:00
|
|
|
fi
|
|
|
|
|
2011-12-22 22:20:15 +01:00
|
|
|
if test "$with_portaudio" = "yes"; then
|
2009-06-10 06:45:57 +02:00
|
|
|
AC_DEFINE(WITH_PORTAUDIO, 1, [Enable PortAudio v19 support])
|
2009-04-12 12:08:28 +02:00
|
|
|
found_audio_player="yes"
|
2008-03-03 08:54:19 +01:00
|
|
|
fi
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_portaudio)
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2008-03-13 04:25:29 +01:00
|
|
|
#############
|
|
|
|
## PulseAudio
|
|
|
|
#############
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(pulseaudio,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-pulseaudio],
|
|
|
|
[build without PulseAudio audio provider [auto]]))
|
2008-03-13 04:25:29 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_pulseaudio" == "no"; then
|
|
|
|
pulseaudio_disabled="(disabled)"
|
|
|
|
else
|
2009-01-28 04:19:53 +01:00
|
|
|
PKG_CHECK_MODULES(LIBPULSE, libpulse >= pulseaudio_required_version, [with_pulseaudio="yes"], [with_pulseaudio="no"])
|
2008-03-03 08:22:58 +01:00
|
|
|
fi
|
2008-03-24 00:07:47 +01:00
|
|
|
|
2011-12-22 22:20:15 +01:00
|
|
|
if test "$with_pulseaudio" = "yes"; then
|
2009-01-13 10:43:24 +01:00
|
|
|
AC_DEFINE(WITH_PULSEAUDIO, 1, [Enable PulseAudio support])
|
2009-04-12 12:08:28 +02:00
|
|
|
found_audio_player="yes"
|
2008-03-24 00:07:47 +01:00
|
|
|
fi
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_pulseaudio)
|
2009-01-13 10:43:24 +01:00
|
|
|
|
2008-03-13 04:25:29 +01:00
|
|
|
#########
|
|
|
|
## OpenAL
|
|
|
|
#########
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(openal,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-openal],
|
|
|
|
[build without OpenAL audio provider [auto]]))
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
if test "$build_darwin" = "yes"; then
|
|
|
|
OPENAL_LIBS="-framework OpenAL"
|
|
|
|
OPENAL_CFLAGS=""
|
|
|
|
AC_SUBST(OPENAL_LIBS)
|
|
|
|
AC_SUBST(OPENAL_CFLAGS)
|
|
|
|
with_openal="yes"
|
2011-12-22 22:22:05 +01:00
|
|
|
elif test "$with_openal" == "no"; then
|
|
|
|
openal_disabled="(disabled)"
|
|
|
|
else
|
2009-01-14 05:58:35 +01:00
|
|
|
PKG_CHECK_MODULES(OPENAL, openal >= 0.0.8, [with_openal=yes], [with_openal=no])
|
2008-03-04 01:59:02 +01:00
|
|
|
fi
|
2008-03-24 00:37:57 +01:00
|
|
|
|
2009-01-14 05:58:35 +01:00
|
|
|
if test "$with_openal" != "no"; then
|
|
|
|
AC_AGI_COMPILE([OpenAL], [openal], [$OPENAL_CFLAGS], [$OPENAL_LIBS],[
|
2008-03-24 00:37:57 +01:00
|
|
|
#if defined(__APPLE__)
|
|
|
|
#include <OpenAL/AL.h>
|
|
|
|
#include <OpenAL/ALC.h>
|
|
|
|
#else
|
|
|
|
#include <AL/al.h>
|
|
|
|
#include <AL/alc.h>
|
|
|
|
#endif
|
|
|
|
int main(void) {
|
|
|
|
ALCdevice *device = alcOpenDevice(0);
|
|
|
|
if (!device) return 1;
|
|
|
|
ALCcontext *context = alcCreateContext(device, 0);
|
|
|
|
if (!context) return 1;
|
|
|
|
return 0;
|
2009-01-14 05:58:35 +01:00
|
|
|
} ])
|
|
|
|
fi
|
2008-03-24 00:37:57 +01:00
|
|
|
|
2008-12-16 03:03:01 +01:00
|
|
|
if test "$agi_cv_with_openal" = "no" && test "$with_openal" = "yes"; then
|
2008-04-20 16:53:59 +02:00
|
|
|
AC_MSG_WARN([OpenAL detected, but it doesn't work...])
|
2008-03-24 00:37:57 +01:00
|
|
|
with_openal="no"
|
2009-01-28 22:58:53 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$agi_cv_with_openal" = "yes" && test "$with_openal" = "yes"; then
|
2009-04-12 12:08:28 +02:00
|
|
|
found_audio_player="yes"
|
2008-03-04 01:59:02 +01:00
|
|
|
AC_DEFINE(WITH_OPENAL, 1, [Enable OpenAL support])
|
|
|
|
fi
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_openal)
|
2008-03-07 16:45:12 +01:00
|
|
|
|
2009-09-09 00:06:07 +02:00
|
|
|
######
|
|
|
|
## OSS
|
|
|
|
######
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(oss,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-oss],
|
|
|
|
[build without OSS audio provider [auto]]))
|
2011-12-22 22:20:24 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_oss" == "no"; then
|
|
|
|
oss_disabled="(disabled)"
|
|
|
|
else
|
2009-09-09 00:06:07 +02:00
|
|
|
if test -f "/etc/oss.conf"; then
|
|
|
|
. /etc/oss.conf
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${OSSLIBDIR}/include/sys"
|
|
|
|
fi
|
2010-06-12 07:48:02 +02:00
|
|
|
AC_CHECK_HEADERS([soundcard.h sys/soundcard.h], [with_oss="yes"], [with_oss="no"])
|
2009-09-09 00:06:07 +02:00
|
|
|
# XXX: maybe check if OSS works
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$with_oss" != "no"; then
|
|
|
|
found_audio_player="yes"
|
|
|
|
AC_DEFINE(WITH_OSS, 1, [Enable OSS support])
|
|
|
|
fi
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_oss)
|
2009-09-09 00:06:07 +02:00
|
|
|
|
2011-12-07 00:48:18 +01:00
|
|
|
###################
|
|
|
|
# FFTW
|
|
|
|
###################
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(fftw,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-fftw],
|
|
|
|
[build without fftw support [auto]]))
|
2011-12-07 00:48:18 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_fftw" == "no"; then
|
|
|
|
fftw_disabled="(disabled)"
|
|
|
|
else
|
2011-12-07 00:48:18 +01:00
|
|
|
PKG_CHECK_MODULES(FFTW3, fftw3 >= fftw_required_version, [with_fftw="yes"], [with_fftw="no"])
|
|
|
|
fi
|
|
|
|
if test "$with_fftw" != "no"; then
|
|
|
|
AC_DEFINE(WITH_FFTW, 1, [Enable fftw support])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(with_fftw)
|
2009-09-09 00:06:07 +02:00
|
|
|
|
2008-10-28 03:18:14 +01:00
|
|
|
#########################
|
|
|
|
# Video / Audio Providers
|
|
|
|
#########################
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(ffms,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-ffms],
|
|
|
|
[build without ffms2 A/V provider [auto]]))
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_ffms" == "no"; then
|
|
|
|
ffms_disabled="(disabled)"
|
|
|
|
else
|
2011-07-16 05:36:28 +02:00
|
|
|
PKG_CHECK_MODULES(FFMS, ffms2 >= ffms_required_version, [with_ffms="yes"], [with_ffms="no"])
|
2008-10-28 03:18:14 +01:00
|
|
|
fi
|
2011-11-08 07:06:43 +01:00
|
|
|
if test "$with_ffms" != "no"; then
|
|
|
|
AC_DEFINE(WITH_FFMPEGSOURCE, 1, [Enable FFMS2 support])
|
|
|
|
fi
|
2008-10-28 03:18:14 +01:00
|
|
|
|
2011-07-16 05:36:28 +02:00
|
|
|
AC_SUBST(with_ffms)
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
###################
|
|
|
|
# Subtitle Provider
|
|
|
|
###################
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(libass,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-libass],
|
|
|
|
[build without libass support [auto]]))
|
2008-03-13 04:25:29 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_libass" == "no"; then
|
|
|
|
libass_disabled="(disabled)"
|
|
|
|
else
|
2011-07-16 05:36:28 +02:00
|
|
|
PKG_CHECK_MODULES(LIBASS, libass >= libass_required_version, [with_libass="yes"], [with_libass="no"])
|
2008-03-03 08:22:58 +01:00
|
|
|
fi
|
2011-11-08 07:06:43 +01:00
|
|
|
if test "$with_libass" != "no"; then
|
|
|
|
AC_DEFINE(WITH_LIBASS, 1, [Enable libass support])
|
|
|
|
fi
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_libass)
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2008-03-13 04:25:29 +01:00
|
|
|
###########
|
|
|
|
## Hunspell
|
|
|
|
###########
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(hunspell,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-hunspell],
|
|
|
|
[build without hunspell support [auto]]))
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_hunspell" == "no"; then
|
|
|
|
hunspell_disabled="(disabled)"
|
|
|
|
else
|
2009-01-15 02:04:55 +01:00
|
|
|
PKG_CHECK_MODULES(HUNSPELL, hunspell >= 1.2.0, [with_hunspell="yes"], [with_hunspell="no"])
|
2008-04-25 04:28:05 +02:00
|
|
|
fi
|
2008-03-23 16:54:33 +01:00
|
|
|
|
2011-12-22 22:20:15 +01:00
|
|
|
if test "$with_hunspell" = "yes"; then
|
2008-04-20 16:52:09 +02:00
|
|
|
AC_DEFINE(WITH_HUNSPELL, 1, [Enable Hunspell support.])
|
2008-03-23 16:54:33 +01:00
|
|
|
fi
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_hunspell)
|
2008-04-25 04:28:05 +02:00
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
############
|
|
|
|
# Automation
|
|
|
|
############
|
2008-04-01 03:56:49 +02:00
|
|
|
AC_ARG_WITH(lua,
|
2011-12-22 22:22:05 +01:00
|
|
|
AS_HELP_STRING([--without-lua],
|
|
|
|
[build without lua 5.1 (auto4)]))
|
2008-04-01 03:56:49 +02:00
|
|
|
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([LUA_CFLAGS], [CFLAGS to use for LUA 5.1 [autodetect]])
|
|
|
|
AC_ARG_VAR([LUA_LDFLAGS], [LDFLAGS to use for LUA 5.1 [autodetect]])
|
|
|
|
AC_ARG_VAR([LUA_LIBDIR], [Location of LUA 5.1 library. [none]])
|
2009-11-17 05:47:26 +01:00
|
|
|
|
|
|
|
if test -z "$LUA_CFLAGS"; then
|
2009-12-22 05:19:27 +01:00
|
|
|
AGI_FIND_HEADER([LUA], [lua.hpp], [/usr/include/lua5.1 /usr/include/lua51 /usr/local/include/lua51 /usr/local/include/lua5.1 /usr/include /usr/local/include])
|
2009-11-17 05:47:26 +01:00
|
|
|
fi
|
2008-04-01 03:56:49 +02:00
|
|
|
|
2008-03-20 22:24:01 +01:00
|
|
|
if test -z "$LUA_LDFLAGS"; then
|
2009-11-17 05:47:26 +01:00
|
|
|
AGI_FIND_LIB([LUA], [lua51 lua-5.1 lua5.1 lua], [$LUA_LIBDIR])
|
2008-03-20 22:24:01 +01:00
|
|
|
fi
|
2008-03-13 08:35:39 +01:00
|
|
|
|
2008-04-01 03:56:49 +02:00
|
|
|
aegisub_save_LIBS="$LIBS"
|
|
|
|
LIBS="$LUA_LDFLAGS"
|
2011-12-22 22:22:05 +01:00
|
|
|
if test "$with_lua" == "no"; then
|
|
|
|
lua_disabled="(disabled)"
|
|
|
|
else
|
2008-04-01 03:56:49 +02:00
|
|
|
AC_AGI_COMPILE([Lua 5.1 (auto4)], [lua], [$LUA_CFLAGS], [],[
|
2009-10-09 16:43:14 +02:00
|
|
|
#include <lua.hpp>
|
|
|
|
|
2008-03-20 22:24:01 +01:00
|
|
|
int main () {
|
|
|
|
lua_State *L = luaL_newstate();
|
|
|
|
lua_pushstring(L, "test");
|
|
|
|
int res = lua_objlen(L, -1) == 4;
|
|
|
|
lua_close(L);
|
|
|
|
return !res;
|
2008-04-01 03:56:49 +02:00
|
|
|
}])
|
2008-03-03 08:22:58 +01:00
|
|
|
fi
|
2008-04-01 03:56:49 +02:00
|
|
|
LIBS="$aegisub_save_LIBS"
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2008-12-16 03:03:01 +01:00
|
|
|
if test "$agi_cv_with_lua" = "yes"; then
|
2010-12-05 20:12:42 +01:00
|
|
|
with_auto4_lua="yes"
|
2008-03-05 05:09:04 +01:00
|
|
|
AC_DEFINE(WITH_AUTO4_LUA, 1, [Enable Automation (auto4), requires lua])
|
2008-03-03 08:22:58 +01:00
|
|
|
else
|
2010-12-05 20:12:42 +01:00
|
|
|
with_auto4_lua="no"
|
2008-03-03 08:22:58 +01:00
|
|
|
fi
|
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(with_auto4_lua)
|
2008-03-31 21:28:56 +02:00
|
|
|
AC_SUBST(LUA_CFLAGS)
|
|
|
|
AC_SUBST(LUA_LDFLAGS)
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
################
|
|
|
|
# Widget support
|
|
|
|
################
|
2009-07-23 22:20:03 +02:00
|
|
|
WX_CONFIG_OPTIONS
|
|
|
|
WX_STANDARD_OPTIONS([debug])
|
|
|
|
WX_DEBUG=$DEBUG
|
|
|
|
WX_UNICODE=$UNICODE
|
|
|
|
WX_CONFIG_CHECK([wx_required_version],,,[std,gl,stc],[$WXCONFIG_FLAGS])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2009-01-15 02:14:41 +01:00
|
|
|
if test "$have_wxconfig" = "no"; then
|
|
|
|
AC_MSG_FAILURE([wxWidgets detection failed, please set --with-wx* or add the libraries to your LDFLAGS, CXX/CFLAGS.])
|
2008-03-03 08:22:58 +01:00
|
|
|
fi
|
|
|
|
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(slow-wx-checks,
|
|
|
|
AS_HELP_STRING([--disable-slow-wx-checks],[Disable slow-running checks for wx components.]))
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2011-12-06 22:59:10 +01:00
|
|
|
if test "$enable_slow_wx_checks" != "no"; then
|
2008-04-13 07:52:24 +02:00
|
|
|
AC_AGI_LINK([wxWidgets OpenGL support], [wxopengl], [wx/glcanvas.h], [$GL_CFLAGS $WX_CFLAGS], [$GL_LIBS $WX_LIBS],[
|
2008-03-25 01:24:39 +01:00
|
|
|
#include <wx/glcanvas.h>
|
|
|
|
int main(void) {
|
|
|
|
wxGLCanvas *canvas;
|
2008-07-13 20:42:48 +02:00
|
|
|
wxGLContext *context;
|
2008-03-25 01:24:39 +01:00
|
|
|
return 0;
|
2008-04-13 07:52:24 +02:00
|
|
|
} ])
|
|
|
|
AC_AGI_LINK([wxWidgets StyledTextCtrl support], [wxstc], [wx/stc/stc.h], [$WX_CFLAGS], [$WX_LIBS],[
|
2008-03-25 01:24:39 +01:00
|
|
|
#include <wx/stc/stc.h>
|
|
|
|
int main(void) {
|
|
|
|
wxStyledTextCtrl *canvas;
|
|
|
|
return 0;
|
2008-04-13 07:52:24 +02:00
|
|
|
} ])
|
|
|
|
fi
|
2008-03-25 01:24:39 +01:00
|
|
|
|
2011-12-06 22:59:10 +01:00
|
|
|
if test "$with_agi_cv_wxopengl" = "no"; then
|
|
|
|
AC_MSG_FAILURE([wxWidgets OpenGL support missing])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$with_agi_cv_wxstc" = "no"; then
|
2008-03-25 01:24:39 +01:00
|
|
|
AC_MSG_FAILURE([wxWidgets StyledTextCtrl support missing])
|
|
|
|
fi
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
|
2009-08-06 06:35:35 +02:00
|
|
|
############################
|
|
|
|
# Precompiled Header Support
|
|
|
|
# Only works with gcc!
|
|
|
|
############################
|
|
|
|
AC_MSG_CHECKING([whether to use precompiled headers])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(gcc-prec, AS_HELP_STRING([--disable-gcc-prec],[disable GCC precompiled headers]))
|
2011-12-06 22:59:20 +01:00
|
|
|
if test "$enable_gcc_prec" != "no"; then
|
|
|
|
enable_gcc_prec="yes"
|
2009-09-02 09:59:17 +02:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(enable_gcc_prec)
|
2009-08-06 06:35:35 +02:00
|
|
|
|
|
|
|
|
2009-01-01 13:32:58 +01:00
|
|
|
######################################################
|
|
|
|
# Debugging support
|
|
|
|
# This is added last so it doesn't slow down configure
|
|
|
|
# If you want it earlier add it to your CXXFLAGS.
|
|
|
|
######################################################
|
|
|
|
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([DEBUG_FLAGS], [Debug flag to use with --enable-debug [-g]])
|
2009-01-01 13:32:58 +01:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to turn on debugging])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[enable debugging [no]]))
|
2011-12-22 22:21:20 +01:00
|
|
|
|
2009-01-01 13:32:58 +01:00
|
|
|
if test "$enable_debug" = "yes"; then
|
2011-12-22 22:21:20 +01:00
|
|
|
DEBUG_FLAGS=${DEBUG_FLAGS:--g}
|
2009-02-22 23:01:14 +01:00
|
|
|
|
2009-01-01 13:32:58 +01:00
|
|
|
AC_MSG_RESULT([yes ($DEBUG_FLAGS)])
|
2009-01-04 05:48:55 +01:00
|
|
|
msg_debug="($DEBUG_FLAGS)"
|
2009-02-17 10:08:27 +01:00
|
|
|
|
2009-02-17 03:27:31 +01:00
|
|
|
# This turns on some internal (to aegisub) debugging features.
|
2009-02-17 10:08:27 +01:00
|
|
|
# A debug version of wxWidgets is required.
|
|
|
|
if $WX_CONFIG_PATH --debug; then
|
|
|
|
AC_CXX_FLAG([-D_DEBUG])
|
|
|
|
fi
|
2009-01-01 13:32:58 +01:00
|
|
|
else
|
2011-12-22 22:21:20 +01:00
|
|
|
DEBUG_FLAGS=""
|
2009-01-04 05:48:55 +01:00
|
|
|
enable_debug="no"
|
2009-01-01 13:32:58 +01:00
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
2009-02-22 23:04:21 +01:00
|
|
|
AC_SUBST(DEBUG_FLAGS)
|
2009-01-01 13:32:58 +01:00
|
|
|
|
2009-02-17 07:37:39 +01:00
|
|
|
if test "$enable_debug" = "yes"; then
|
|
|
|
PACKAGE_DEBUG="-debug"
|
|
|
|
fi
|
2009-02-22 23:04:21 +01:00
|
|
|
AC_SUBST(PACKAGE_DEBUG)
|
2009-02-17 07:37:39 +01:00
|
|
|
|
2009-09-02 09:59:17 +02:00
|
|
|
AC_MSG_CHECKING([whether to use exception handling in debug mode])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(debug-exceptions, AS_HELP_STRING([--enable-debug-exceptions],[enable exception handling in debug mode [no]]))
|
|
|
|
|
2009-09-02 09:59:17 +02:00
|
|
|
if test "$enable_debug_exceptions" = "yes"; then
|
|
|
|
AC_DEFINE(WITH_EXCEPTIONS, 1, [Enable exception handling in debug mode. (--enable-debug) This is always enabled when debug mode is off.])
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
|
2009-01-29 21:39:40 +01:00
|
|
|
###########
|
|
|
|
# Profiling
|
|
|
|
###########
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([PROFILE_FLAGS], [Profile flag(s) to use with --enable-profile [-pg]])
|
2009-01-29 21:39:40 +01:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to turn on profiling])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(profile, AS_HELP_STRING([--enable-profile],[enable profiling [no]]))
|
2009-01-29 21:46:05 +01:00
|
|
|
if test "$enable_profile" = "yes"; then
|
2011-12-22 22:21:20 +01:00
|
|
|
PROFILE_FLAGS=${PROFILE_FLAGS:--pg}
|
2009-01-29 21:39:40 +01:00
|
|
|
AC_MSG_RESULT([yes ($PROFILE_FLAGS)])
|
2011-12-22 22:21:20 +01:00
|
|
|
CFLAGS="$PROFILE_FLAGS $CFLAGS"
|
2009-01-29 21:39:40 +01:00
|
|
|
else
|
|
|
|
enable_profile="no"
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2009-02-22 06:38:46 +01:00
|
|
|
######
|
|
|
|
# gcov
|
|
|
|
######
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([GCOV_CFLAGS], [gcov cflag(s) to use with --enable-gcov [-ftest-coverage -fprofile-arcs]])
|
|
|
|
AC_ARG_VAR([GCOV_LDFLAGS], [gcov ldflag(s) to use with --enable-gcov [-lgcov]])
|
2009-02-22 06:38:46 +01:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to turn on gcov])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov],[enable gcov [no]]))
|
2009-02-22 23:01:14 +01:00
|
|
|
|
2009-02-22 06:38:46 +01:00
|
|
|
if test "$enable_gcov" = "yes"; then
|
2011-12-22 22:21:20 +01:00
|
|
|
GCOV_CFLAGS=${GCOV_CLFAGS:--fprofile-arcs -ftest-coverage}
|
|
|
|
GCOV_LDFLAGS=${GCOV_LDFLAGS:--lgcov}
|
2009-10-20 05:35:42 +02:00
|
|
|
|
2009-02-22 06:38:46 +01:00
|
|
|
AC_MSG_RESULT([yes ($GCOV_FLAGS)])
|
2009-10-20 05:35:42 +02:00
|
|
|
CFLAGS="$CFLAGS $GCOV_CFLAGS"
|
|
|
|
LDFLAGS="$LDFLAGS $GCOV_LDFLAGS"
|
2009-02-22 06:38:46 +01:00
|
|
|
else
|
|
|
|
enable_gcov="no"
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
|
|
|
|
################
|
|
|
|
# Electric Fence
|
|
|
|
################
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([EFENCE_LDFLAGS], [Electric Fence ldflag(s) to use with --enable-profile [-lefence]])
|
2009-02-22 06:38:46 +01:00
|
|
|
|
2009-02-22 23:01:14 +01:00
|
|
|
AC_MSG_CHECKING([whether to turn on Electric Fence])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(efence, AS_HELP_STRING([--enable-efence],[enable Electric Fence [no]]))
|
2009-02-22 06:38:46 +01:00
|
|
|
if test "$enable_efence" = "yes"; then
|
2011-12-22 22:21:20 +01:00
|
|
|
EFENCE_LDFLAGS=${EFENCE_LDFLAGS:--lefence}
|
2009-02-22 06:38:46 +01:00
|
|
|
AC_MSG_RESULT([yes ($EFENCE_LDFLAGS)])
|
|
|
|
else
|
|
|
|
enable_efence="no"
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
2009-02-22 23:01:14 +01:00
|
|
|
AC_SUBST(EFENCE_LDFLAGS)
|
2009-02-22 06:38:46 +01:00
|
|
|
|
|
|
|
##########
|
|
|
|
# ccmalloc
|
|
|
|
##########
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_VAR([CCMALLOC_LIBS], [ccmalloc libs(s) to use with --enable-ccmalloc [$prefix/lib/ccmalloc-c++.o]])
|
|
|
|
AC_ARG_VAR([CCMALLOC_LDFLAGS], [ccmalloc ldflag(s) to use with --enable-ccmalloc [-lccmalloc]])
|
2009-02-22 06:38:46 +01:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to turn on ccmalloc])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(ccmalloc, AS_HELP_STRING([--enable-ccmalloc],[enable ccmalloc [no]]))
|
2009-02-22 06:38:46 +01:00
|
|
|
if test "$enable_ccmalloc" = "yes"; then
|
2011-12-22 22:21:20 +01:00
|
|
|
CCMALLOC_LIBS=${CCMALLOC_LIBS:-$prefix/lib/ccmalloc-c++.o}
|
|
|
|
CCMALLOC_LDFLAGS=${CCMALLOC_LDFLAGS:--lccmalloc}
|
2009-02-22 06:38:46 +01:00
|
|
|
AC_MSG_RESULT([yes ($CCMALLOC_LIBS $CCMALLOC_LDFLAGS)])
|
|
|
|
else
|
|
|
|
enable_ccmalloc="no"
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
2009-02-22 23:01:14 +01:00
|
|
|
AC_SUBST(CCMALLOC_LDFLAGS)
|
|
|
|
AC_SUBST(CCMALLOC_LIBS)
|
2009-02-22 06:38:46 +01:00
|
|
|
|
|
|
|
if test "$enable_efence" = "yes" && test "$enable_ccmalloc" = "yes"; then
|
|
|
|
AC_MSG_FAILURE([Please enable Electric Fence _or_ ccmalloc otherwise strange things will happen.])
|
2011-12-22 22:21:20 +01:00
|
|
|
fi
|
2009-02-22 06:38:46 +01:00
|
|
|
|
2010-12-05 20:12:42 +01:00
|
|
|
########
|
|
|
|
# ccache
|
|
|
|
########
|
|
|
|
AC_MSG_CHECKING([whether to enable ccache])
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_ENABLE(ccache, AS_HELP_STRING([--enable-ccache],[enable ccache [no]]))
|
2010-12-05 20:12:42 +01:00
|
|
|
if test "$enable_ccache" = "yes"; then
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
enable_ccache="no"
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
AC_SUBST(enable_ccache)
|
|
|
|
|
2009-01-05 12:07:14 +01:00
|
|
|
##############################
|
|
|
|
# Internationalisation support
|
|
|
|
##############################
|
2010-12-05 20:12:42 +01:00
|
|
|
AM_GNU_GETTEXT([external])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2009-01-12 23:52:52 +01:00
|
|
|
if test "$build_darwin" = "yes"; then
|
|
|
|
GETTEXT_PACKAGE="aegisub"
|
|
|
|
else
|
|
|
|
GETTEXT_PACKAGE="aegisub${AEGISUB_VERSION_MAJOR}${AEGISUB_VERSION_MINOR}"
|
|
|
|
fi
|
2009-01-06 11:44:49 +01:00
|
|
|
|
2008-03-03 08:22:58 +01:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
2009-01-06 11:44:49 +01:00
|
|
|
[The basename for our gettext translation domains.])
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
|
2009-01-05 12:07:14 +01:00
|
|
|
####################################################################
|
|
|
|
# Default settings for Providers/Players
|
|
|
|
# * This is done at the end to preserve sanity rather than littering
|
2009-01-06 04:48:36 +01:00
|
|
|
# it above.
|
2009-01-05 12:07:14 +01:00
|
|
|
####################################################################
|
2011-12-22 22:20:24 +01:00
|
|
|
AC_ARG_WITH(player-audio,
|
|
|
|
AS_HELP_STRING([--with-player-audio=(alsa|openal|portaudio|pulseaudio)],
|
|
|
|
[Default Audio Player [Linux/ALSA, Darwin/OpenAL, 1:*/OSS, 2:*/PortAudio]]))
|
2009-01-05 12:07:14 +01:00
|
|
|
|
|
|
|
# Default audio player.
|
2009-01-05 12:40:52 +01:00
|
|
|
if ! test -z "$with_player_audio"; then
|
2011-12-22 22:21:03 +01:00
|
|
|
default_player_audio="$with_player_audio"
|
2009-01-05 12:07:14 +01:00
|
|
|
else
|
|
|
|
if test "$build_linux" = "yes" && test "$with_alsa" = "yes"; then
|
|
|
|
default_player_audio="alsa"
|
|
|
|
elif test "$build_darwin" = "yes" && test "$with_openal" = "yes"; then
|
|
|
|
default_player_audio="openal"
|
|
|
|
elif test "$with_portaudio" = "yes"; then
|
|
|
|
default_player_audio="portaudio"
|
2010-06-12 07:48:02 +02:00
|
|
|
elif test "$with_oss" = "yes"; then
|
|
|
|
default_player_audio="oss"
|
2009-01-05 12:07:14 +01:00
|
|
|
elif test "$with_pulseaudio" = "yes"; then
|
|
|
|
default_player_audio="pulseaudio"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED([DEFAULT_PLAYER_AUDIO], ["$default_player_audio"], [Default audio player.])
|
|
|
|
|
|
|
|
|
2010-06-12 07:48:02 +02:00
|
|
|
# Set some friendly strings if some of the above aren't detected.
|
2011-12-22 22:21:20 +01:00
|
|
|
default_player_audio=${default_player_audio:-NONE}
|
2010-06-12 07:48:02 +02:00
|
|
|
|
2009-04-12 12:48:20 +02:00
|
|
|
###############
|
2011-12-22 22:21:20 +01:00
|
|
|
# Misc settings
|
2009-04-12 12:48:20 +02:00
|
|
|
###############
|
2010-12-05 20:12:42 +01:00
|
|
|
AC_SUBST(found_audio_player)
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2008-12-31 06:52:52 +01:00
|
|
|
# Files that need substitution.
|
|
|
|
AC_CONFIG_FILES([
|
2009-01-07 06:27:16 +01:00
|
|
|
desktop/aegisub.desktop
|
2009-07-25 11:35:44 +02:00
|
|
|
tools/osx-bundle.sed
|
2010-12-05 20:12:42 +01:00
|
|
|
Makefile.inc
|
2008-12-31 06:52:52 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2009-04-12 12:08:28 +02:00
|
|
|
if test -z "$found_audio_player"; then
|
2008-03-03 08:22:58 +01:00
|
|
|
AC_MSG_NOTICE([
|
|
|
|
|
|
|
|
***********************************************************************
|
|
|
|
* No supported audio player interface was found on your system.
|
|
|
|
* If you want audio support in Aegisub you need to install one of
|
|
|
|
* these libraries:
|
|
|
|
* - PulseAudio
|
|
|
|
* * http://pulseaudio.org/
|
2011-11-30 00:18:07 +01:00
|
|
|
* - ALSA (Linux only)
|
2008-03-03 08:22:58 +01:00
|
|
|
* * http://www.alsa-project.org/
|
2011-11-30 00:18:07 +01:00
|
|
|
* - PortAudio (version 19 only)
|
2008-03-03 08:22:58 +01:00
|
|
|
* * http://www.portaudio.com/
|
|
|
|
***********************************************************************
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
|
2011-07-16 05:36:28 +02:00
|
|
|
if test "$with_ffms" != "yes"; then
|
2008-03-03 08:22:58 +01:00
|
|
|
AC_MSG_NOTICE([
|
|
|
|
|
|
|
|
***********************************************************************
|
|
|
|
* No supported video/audio reader interface was found on your system.
|
|
|
|
* You will not be able to open any video or audio files in Aegisub
|
|
|
|
* unless you install a supported video/audio provider.
|
|
|
|
* You will however still be able to open "dummy" video, ie. a blank,
|
|
|
|
* virtual video clip with subtitles overlaid.
|
|
|
|
* Currently we only support one video/audio provider on non-Windows
|
|
|
|
* systems:
|
2011-07-16 05:36:28 +02:00
|
|
|
* - FFMS2
|
|
|
|
* * http://code.google.com/p/ffmpegsource/
|
2008-03-03 08:22:58 +01:00
|
|
|
***********************************************************************
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_RESULT([
|
2009-01-05 12:07:14 +01:00
|
|
|
Configure settings
|
2009-01-04 05:48:55 +01:00
|
|
|
Install prefix: $prefix
|
|
|
|
SVN Revision: $SVN_REVISION
|
|
|
|
Debug $enable_debug $msg_debug
|
2011-12-22 22:21:20 +01:00
|
|
|
CFLAGS $CFLAGS
|
2009-01-29 21:47:49 +01:00
|
|
|
CXXFLAGS $CXXFLAGS
|
2009-01-04 05:48:55 +01:00
|
|
|
CPPFLAGS $CPPFLAGS
|
|
|
|
LDFLAGS $LDFLAGS
|
|
|
|
|
2009-01-05 12:07:14 +01:00
|
|
|
Default Settings
|
|
|
|
Audio Player: $default_player_audio
|
|
|
|
|
|
|
|
Scripting Engines
|
2010-12-05 20:12:42 +01:00
|
|
|
auto4 Lua: $with_auto4_lua $lua51_disabled
|
2008-03-03 08:22:58 +01:00
|
|
|
|
2009-01-05 12:07:14 +01:00
|
|
|
Audio Players
|
2008-03-03 08:22:58 +01:00
|
|
|
ALSA: $with_alsa $alsa_disabled
|
2008-03-04 01:59:02 +01:00
|
|
|
OpenAL: $with_openal $openal_disabled
|
2009-09-09 00:06:07 +02:00
|
|
|
OSS: $with_oss $oss_disabled
|
2008-03-03 08:22:58 +01:00
|
|
|
PortAudio: $with_portaudio $portaudio_disabled
|
|
|
|
PulseAudio: $with_pulseaudio $pulseaudio_disabled
|
|
|
|
|
2009-06-10 04:09:00 +02:00
|
|
|
A/V Providers
|
2011-07-16 05:36:28 +02:00
|
|
|
FFMS2: $with_ffms $ffms_disabled
|
2008-03-03 08:22:58 +01:00
|
|
|
|
|
|
|
Subtitle Providers:
|
2011-07-16 05:36:28 +02:00
|
|
|
libass $with_libass $libass_disabled
|
2008-03-23 23:56:21 +01:00
|
|
|
|
2009-01-05 12:07:14 +01:00
|
|
|
Misc Packages
|
2011-12-22 22:20:54 +01:00
|
|
|
Hunspell: $with_hunspell $hunspell_disabled
|
2011-12-07 00:48:18 +01:00
|
|
|
FFTW3: $with_fftw $fftw_disabled
|
2008-03-03 08:22:58 +01:00
|
|
|
]);
|
2009-11-29 15:01:57 +01:00
|
|
|
|