2006-10-23 16:10:05 -07:00
# get rid of that stupid cache mechanism
2002-11-07 23:46:04 -08:00
rm -f config.cache
2007-11-04 01:21:50 -08:00
AC_INIT(evas, 0.9.9.041)
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(configure.in)
2004-01-27 18:07:41 -08:00
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
2002-11-07 23:46:04 -08:00
AC_ISC_POSIX
2007-11-04 01:21:50 -08:00
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
2002-11-07 23:46:04 -08:00
AM_CONFIG_HEADER(config.h)
2007-11-04 01:21:50 -08:00
AC_PROG_CXX
2002-11-07 23:46:04 -08:00
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
2007-11-04 01:21:50 -08:00
AC_C_BIGENDIAN
2002-11-07 23:46:04 -08:00
AC_C_CONST
2007-11-04 01:21:50 -08:00
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
VMAJ=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $1);}'`
VMIN=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $2);}'`
VMIC=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $3);}'`
SNAP=`echo $PACKAGE_VERSION | awk -F . '{printf("%s", $4);}'`
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
AC_SUBST(version_info)
2005-11-28 07:18:01 -08:00
AC_FUNC_ALLOCA
2002-11-07 23:46:04 -08:00
2006-01-14 04:13:38 -08:00
MODULE_ARCH="$host_os-$host_cpu"
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
2007-02-10 09:23:09 -08:00
create_shared_lib=""
case "$host_os" in
mingw|mingw32)
create_shared_lib="-no-undefined "
;;
esac
AC_SUBST(create_shared_lib)
2002-11-07 23:46:04 -08:00
x_dir=""
x_cflags=""
x_libs=""
2005-03-20 15:44:22 -08:00
xcb_dir=""
xcb_cflags=""
xcb_libs=""
2002-11-07 23:46:04 -08:00
gl_dir=""
gl_cflags=""
gl_libs=""
qt_dir=""
qt_cflags=""
2007-07-16 01:13:40 -07:00
qt_libs=""
2003-02-06 18:49:42 -08:00
qt_moc="moc"
2007-07-16 00:25:35 -07:00
sdl_cflags=""
sdl_libs=""
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#####################################################################
2002-11-07 23:46:04 -08:00
# blah-config style checks
# qtdir setting
AC_ARG_WITH(qtdir,
2006-04-19 19:30:11 -07:00
AC_HELP_STRING([--with-qtdir=QT_DIR],[use qt directory specified]),
2007-07-16 01:13:40 -07:00
[
2002-11-07 23:46:04 -08:00
qt_dir=$withval;
echo "using "$qt_dir" for qt directory.";
],[
qt_dir="/opt/Qtopia";
])
# check for freetype
2007-03-22 09:16:30 -07:00
PKG_CHECK_MODULES(FREETYPE, freetype2 >= 9.3.0)
2002-11-07 23:46:04 -08:00
2006-03-18 20:29:57 -08:00
#######################################
## FontConfig
2007-03-23 15:25:12 -07:00
AC_ARG_ENABLE(fontconfig,
AC_HELP_STRING(
[--enable-fontconfig],
[enable fontconfig for finding fonts. [[default=enabled]]]
), [
have_fontconfig=$enableval
], [
have_fontconfig=yes
]
2006-03-18 20:29:57 -08:00
)
2007-03-23 15:25:12 -07:00
2006-03-18 20:29:57 -08:00
if test "x$have_fontconfig" = "xyes"; then
2007-03-23 15:25:12 -07:00
# Check if really available
2007-07-16 01:13:40 -07:00
PKG_CHECK_MODULES(FONTCONFIG, fontconfig, [
2007-03-23 15:25:12 -07:00
have_fontconfig="yes"
AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
], [
have_fontconfig="no"
])
2006-03-18 20:29:57 -08:00
fi
2007-07-16 01:13:40 -07:00
###############
2006-03-18 20:29:57 -08:00
## dlopen
2006-01-14 04:36:25 -08:00
dlopen_libs=""
2007-02-10 09:23:09 -08:00
case "$host_os" in
mingw|mingw32)
AC_CHECK_HEADER(windows.h, [], [AC_MSG_ERROR(Cannot find windows.h)])
;;
*)
AC_CHECK_FUNCS(dlopen, res=yes, res=no)
if test "x$res" = "xyes"; then
AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
else
AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
if test "x$res" = "xyes"; then
AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
dlopen_libs=-ldl
else
AC_MSG_ERROR(Cannot find dlopen)
fi
fi
esac
2006-01-14 04:36:25 -08:00
AC_SUBST(dlopen_libs)
2007-05-26 23:43:23 -07:00
AC_CHECK_HEADER(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file. MinGW users: see the INSTALL file]))
fnmatch_libs=""
AC_CHECK_FUNCS(fnmatch, res=yes, res=no)
if test "x$res" = "xno"; then
AC_CHECK_LIB(fnmatch, fnmatch, res=yes fnmatch_libs="-lfnmatch", res=no)
dnl Test for compilation with MinGW.
dnl fnmatch function is in the libiberty library
if test "x$res" = "xno"; then
AC_CHECK_LIB(iberty, fnmatch, res=yes fnmatch_libs="-liberty", res=no)
fi
if test "x$res" = "xno"; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty])
fi
fi
AC_SUBST(fnmatch_libs)
2004-01-27 18:07:41 -08:00
#####################################################################
## Engines
2002-11-07 23:46:04 -08:00
2007-05-26 23:43:23 -07:00
#######################################
## Check if we should build the software_ddraw engine
have_evas_software_ddraw="no";
## Automatic check...
AC_CHECK_HEADER(ddraw.h,
[ have_evas_software_ddraw="yes" ],
[ have_evas_software_ddraw="no" ]
)
## Manual override
AC_MSG_CHECKING(whether software directdraw backend is to be built)
AC_ARG_ENABLE(software-ddraw, AC_HELP_STRING([--enable-software-ddraw],[enable the Software DirectDraw rendering backend]), [
if test x"$enableval" = x"yes" ; then
have_evas_software_ddraw="yes"
else
have_evas_software_ddraw="no"
fi
2007-10-08 12:08:42 -07:00
]
2007-05-26 23:43:23 -07:00
)
2007-10-08 12:08:42 -07:00
AC_MSG_RESULT($have_evas_software_ddraw)
2007-05-26 23:43:23 -07:00
if test "x$have_evas_software_ddraw" = "xyes"; then
AC_CHECK_HEADER(ddraw.h,
[
AC_DEFINE(BUILD_ENGINE_SOFTWARE_DDRAW, 1, [Software DirectDraw Rendering Backend])
ddraw_libs="-lddraw"
],
[
AC_MSG_RESULT(disabling software DirectDraw engine)
have_evas_software_ddraw="no"
]
)
fi
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_DDRAW, test "x$have_evas_software_ddraw" = "xyes")
2007-10-08 12:08:42 -07:00
#######################################
## Check if we should build the 16bit software_ddraw engine
have_evas_software_16_ddraw="no";
## Automatic check...
AC_CHECK_HEADER(ddraw.h,
[ have_evas_software_16_ddraw="yes" ],
[ have_evas_software_16_ddraw="no" ]
)
## Manual override
AC_MSG_CHECKING(whether 16bit software directdraw backend is to be built)
AC_ARG_ENABLE(software-16-ddraw, AC_HELP_STRING([--enable-software-16-ddraw],[enable the 16bit Software DirectDraw rendering backend]), [
if test x"$enableval" = x"yes" ; then
have_evas_software_16_ddraw="yes"
else
have_evas_software_16_ddraw="no"
fi
]
)
AC_MSG_RESULT($have_evas_software_16_ddraw)
if test "x$have_evas_software_16_ddraw" = "xyes"; then
AC_CHECK_HEADER(ddraw.h,
[
AC_DEFINE(BUILD_ENGINE_SOFTWARE_16_DDRAW, 1, [16bit Software DirectDraw Rendering Backend])
ddraw_16_libs="-lddraw -lgdi32"
],
[
AC_MSG_RESULT(disabling software DirectDraw engine)
have_evas_software_16_ddraw="no"
]
)
fi
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16_DDRAW, test "x$have_evas_software_16_ddraw" = "xyes")
2007-05-26 23:43:23 -07:00
2007-08-17 02:16:26 -07:00
#######################################
## Check if we should build the direct3d engine
have_evas_direct3d="no";
## Automatic check...
AC_CHECK_HEADERS(d3d9.h d3dx9.h,
[ have_evas_direct3d="yes" ],
[ have_evas_direct3d="no" ]
)
## Manual override
AC_MSG_CHECKING(whether direct3d backend is to be built)
AC_ARG_ENABLE(direct3d, AC_HELP_STRING([--enable-direct3d],[enable the Direct3D rendering backend]), [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_evas_direct3d="yes"
else
AC_MSG_RESULT(no)
have_evas_direct3d="no"
fi
], [
AC_MSG_RESULT($have_evas_direct3d)
]
)
if test "x$have_evas_direct3d" = "xyes"; then
AC_CHECK_HEADERS(d3d9.h d3dx9.h,
[
AC_DEFINE(BUILD_ENGINE_DIRECT3D, 1, [Direct3D Rendering Backend])
direct3d_libs="-ld3d9 -ld3dx9d"
],
[
AC_MSG_RESULT(disabling Direct3D engine)
have_evas_direct3d="no"
]
)
fi
AM_CONDITIONAL(BUILD_ENGINE_DIRECT3D, test "x$have_evas_direct3d" = "xyes")
2004-01-27 18:07:41 -08:00
#######################################
## Check if we should build the software_x11 engine
have_evas_software_x11="no";
## Automatic check...
AC_CHECK_HEADER(X11/X.h,
[ have_evas_software_x11="yes" ],
[ have_evas_software_x11="no" ]
)
## Manual override
AC_MSG_CHECKING(whether software x11 backend is to be built)
2006-04-19 19:30:11 -07:00
AC_ARG_ENABLE(software-x11, AC_HELP_STRING([--enable-software-x11],[enable the Software X11 rendering backend]), [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2003-12-17 23:55:21 -08:00
have_evas_software_x11="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
have_evas_software_x11="no"
2003-10-14 21:20:38 -07:00
fi
2002-11-07 23:46:04 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_evas_software_x11)
2002-11-07 23:46:04 -08:00
]
)
2003-12-17 23:55:21 -08:00
if test "x$have_evas_software_x11" = "xyes"; then
2007-06-10 16:30:07 -07:00
AC_PATH_X
2005-01-19 13:07:06 -08:00
AC_PATH_XTRA
2003-12-17 23:55:21 -08:00
AC_CHECK_HEADER(X11/X.h,
[
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ENGINE_SOFTWARE_X11, 1, [Software X11 Rendering Backend])
2005-01-19 13:07:06 -08:00
x_dir=${x_dir:-/usr/X11R6}
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
2003-12-17 23:55:21 -08:00
],
[
AC_MSG_RESULT(disabling software X11 engine)
2004-01-27 18:07:41 -08:00
have_evas_software_x11="no"
2003-12-17 23:55:21 -08:00
]
)
fi
2006-03-11 16:08:58 -08:00
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, test "x$have_evas_software_x11" = "xyes")
2003-12-17 23:55:21 -08:00
2007-04-29 08:45:40 -07:00
#######################################
2007-08-05 00:22:44 -07:00
## Check if we should build the software_x11 16bit engine
2007-04-29 08:45:40 -07:00
have_evas_software_16_x11="no";
## Automatic check...
# -- disable software_16 by default - its usefulness as a speedup in 16bit
# seems dubious at this stage.
#AC_CHECK_HEADER(X11/X.h,
# [ have_evas_software_16_x11="yes" ],
# [ have_evas_software_16_x11="no" ]
#)
## Manual override
AC_MSG_CHECKING(whether software 16bit x11 backend is to be built)
AC_ARG_ENABLE(software-16-x11,
AC_HELP_STRING([--enable-software-16-x11],[enable the Software 16bit X11 rendering backend]), [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_evas_software_16_x11="yes"
else
AC_MSG_RESULT(no)
have_evas_software_16_x11="no"
fi
], [
AC_MSG_RESULT($have_evas_software_16_x11)
]
)
if test "x$have_evas_software_16_x11" = "xyes"; then
2007-06-10 16:30:07 -07:00
AC_PATH_X
2007-04-29 08:45:40 -07:00
AC_PATH_XTRA
AC_CHECK_HEADER(X11/X.h,
[
AC_DEFINE(BUILD_ENGINE_SOFTWARE_16_X11, 1, [Software 16bit X11 Rendering Backend])
x_dir=${x_dir:-/usr/X11R6}
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
],
[
AC_MSG_RESULT(disabling software 16bit X11 engine)
have_evas_software_16_x11="no"
]
)
fi
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16_X11, test "x$have_evas_software_16_x11" = "xyes")
### if software 16 x11 is enabled - build software_16 (the generic 16bit
### engine). later enable it fb_16 or other "16" bit engines are enabled.
2007-10-08 12:08:42 -07:00
have_evas_software_16="no"
if test "x$have_evas_software_16_x11" = "xyes" -o "x$have_evas_software_16_ddraw" = "xyes"; then
have_evas_software_16="yes"
fi
2007-04-29 08:45:40 -07:00
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_software_16" = "xyes")
2005-03-20 15:44:22 -08:00
#######################################
## Check if we should build the software_xcb engine
have_evas_software_xcb="no";
## Automatic check...
PKG_CHECK_MODULES(
XCB,
2007-02-21 16:24:32 -08:00
xcb xcb-shm xcb-image,
2006-09-09 01:10:24 -07:00
[have_evas_software_xcb="yes"],
[have_evas_software_xcb="no"],
2005-03-20 15:44:22 -08:00
[ have_evas_software_xcb="no" ])
2005-11-10 22:09:46 -08:00
## manually disable xcb engine by default - not auto detected.
have_evas_software_xcb="no"
2005-03-20 15:44:22 -08:00
## Manual override
AC_MSG_CHECKING(whether software xcb backend is to be built)
2006-04-19 19:30:11 -07:00
AC_ARG_ENABLE(software-xcb, AC_HELP_STRING([--enable-software-xcb],[enable the Software XCB rendering backend]), [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2005-03-20 15:44:22 -08:00
AC_MSG_RESULT(yes)
have_evas_software_xcb="yes"
else
AC_MSG_RESULT(no)
have_evas_software_xcb="no"
fi
], [
AC_MSG_RESULT($have_evas_software_xcb)
]
)
if test "x$have_evas_software_xcb" = "xyes"; then
PKG_CHECK_MODULES(
XCB,
2007-02-21 16:24:32 -08:00
xcb xcb-shm xcb-image,
2006-03-10 11:10:07 -08:00
[AC_DEFINE(BUILD_ENGINE_SOFTWARE_XCB, 1, [Software XCB Rendering Backend])
2006-01-06 00:36:57 -08:00
xcb_cflags=$XCB_CFLAGS
2006-11-10 22:03:13 -08:00
xcb_libs=$XCB_LIBS],
2006-03-10 11:10:07 -08:00
[AC_MSG_RESULT(disabling software XCB engine)
2006-01-06 00:36:57 -08:00
have_evas_software_xcb="no"])
2005-03-20 15:44:22 -08:00
fi
2006-03-10 11:10:07 -08:00
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_XCB, test "x$have_evas_software_xcb" = "xyes")
2005-03-20 15:44:22 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Check if we should build the directfb engine
have_evas_directfb="no";
## Automatic check...
PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.16,
[ have_evas_directfb="yes" ],
[ have_evas_directfb="no" ]
)
2005-11-10 22:09:46 -08:00
## manually disable directfb engine by default - not auto detected.
have_evas_directfb="no"
2004-01-27 18:07:41 -08:00
## Manual override
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether directfb backend is to be built)
2006-04-19 19:30:11 -07:00
AC_ARG_ENABLE(directfb, AC_HELP_STRING([--enable-directfb],[enable the DirectFB rendering backend]), [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2003-12-17 23:55:21 -08:00
have_evas_directfb="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-02-02 22:04:54 -08:00
have_evas_directfb="no"
2003-10-14 21:20:38 -07:00
fi
2002-11-07 23:46:04 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_evas_directfb)
2002-11-07 23:46:04 -08:00
]
)
2003-12-17 23:55:21 -08:00
if test "x$have_evas_directfb" = "xyes"; then
PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.16,
[
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ENGINE_DIRECTFB, 1, [DirectFB Rendering Backend])
2003-12-17 23:55:21 -08:00
], [
AC_MSG_RESULT(disabling directfb engine)
2004-01-27 18:07:41 -08:00
have_evas_directfb="no"
2003-12-17 23:55:21 -08:00
]
)
fi
2006-03-10 11:10:07 -08:00
AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, test "x$have_evas_directfb" = "xyes")
2003-12-17 23:55:21 -08:00
2007-07-16 00:25:35 -07:00
#######################################
## SDL
AC_ARG_WITH(sdl-config, [ --with-sdl-config=SDL_CONFIG use sdl-config specified],
[ SDL_CONFIG=$withval;
echo "using "$SDL_CONFIG" for sdl-config"; ],
[ if test -z "$SDL_CONFIG"; then
AC_PATH_PROG(SDL_CONFIG, "sdl-config", "", $PATH)
fi
])
if test -z "$SDL_CONFIG" ; then SDL_CONFIG="sdl-config"; fi
#######################################
## Check if we should build the sdl engine
have_evas_sdl="no";
ENGINE_SDL_PRG="";
## Automatic check...
AC_CHECK_HEADER(SDL/SDL.h,
[ have_evas_sdl="yes" ],
[ have_evas_sdl="no" ]
)
# Manual override
AC_MSG_CHECKING(whether SDL backend is to be built)
AC_ARG_ENABLE(sdl, AC_HELP_STRING([--enable-sdl],[enable the SDL rendering backend]), [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_evas_sdl="yes"
else
AC_MSG_RESULT(no)
have_evas_sdl="no"
fi
], [
AC_MSG_RESULT($have_evas_sdl)
]
)
if test "x$have_evas_sdl" = "xyes"; then
if test "x$SDL_CONFIG" = "xno" ; then
have_evas_sdl= "no"
AM_CONDITIONAL(BUILD_ENGINE_SDL, false)
AC_MSG_RESULT(disabling sdl engine)
else
ENGINE_SDL_PRG="evas_sdl_test"
sdl_cflags=`$SDL_CONFIG --cflags`
sdl_libs=`$SDL_CONFIG --libs`
AM_CONDITIONAL(BUILD_ENGINE_SDL, true)
AC_DEFINE(BUILD_ENGINE_SDL, 1, [SDL Rendering Backend])
fi
else
AM_CONDITIONAL(BUILD_ENGINE_SDL, false)
have_evas_sdl="no"
fi
2004-01-27 18:07:41 -08:00
#######################################
## Check if we should build the fb engine
have_evas_fb="no";
## Automatic check...
AC_CHECK_HEADER(linux/fb.h,
[ have_evas_fb="yes" ],
[ have_evas_fb="no" ]
)
## Manual override
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether fb backend is to be built)
2006-04-19 19:30:11 -07:00
AC_ARG_ENABLE(fb, AC_HELP_STRING([--enable-fb],[enable the FB rendering backend]), [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2003-12-17 23:55:21 -08:00
have_evas_fb="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-02-02 22:04:54 -08:00
have_evas_fb="no"
2003-10-14 21:20:38 -07:00
fi
2002-11-07 23:46:04 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_evas_fb)
2002-11-07 23:46:04 -08:00
]
)
2003-12-17 23:55:21 -08:00
if test "x$have_evas_fb" = "xyes"; then
AC_CHECK_HEADER(linux/fb.h,
[
AM_CONDITIONAL(BUILD_ENGINE_FB, true)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ENGINE_FB, 1, [Linux FB Rendering Backend])
2003-12-17 23:55:21 -08:00
], [
AM_CONDITIONAL(BUILD_ENGINE_FB, false)
AC_MSG_RESULT(disabling fb engine)
2004-01-27 18:07:41 -08:00
have_evas_fb="no"
2003-12-17 23:55:21 -08:00
]
)
else
AM_CONDITIONAL(BUILD_ENGINE_FB, false)
2004-01-27 18:07:41 -08:00
have_evas_fb="no"
2003-12-17 23:55:21 -08:00
fi
2004-01-27 18:07:41 -08:00
#######################################
## Check if we should build the buffer engine
have_evas_buffer="no";
## Automatic check...
have_evas_buffer="yes"
## Manual override
2003-04-01 20:28:27 -08:00
AC_MSG_CHECKING(whether buffer backend is to be built)
2006-04-19 19:30:11 -07:00
AC_ARG_ENABLE(buffer, AC_HELP_STRING([--enable-buffer],[enable the Buffer rendering backend]), [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2003-12-17 23:55:21 -08:00
have_evas_buffer="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-02-02 22:04:54 -08:00
have_evas_buffer="no"
2003-10-14 21:20:38 -07:00
fi
2003-04-01 20:28:27 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_evas_buffer)
2003-04-01 20:28:27 -08:00
]
)
2003-12-17 23:55:21 -08:00
if test "x$have_evas_buffer" = "xyes"; then
AM_CONDITIONAL(BUILD_ENGINE_BUFFER, true)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ENGINE_BUFFER, 1, [Buffer Rendering Backend])
2003-12-17 23:55:21 -08:00
else
AM_CONDITIONAL(BUILD_ENGINE_BUFFER, false)
fi
2004-01-27 18:07:41 -08:00
#######################################
## Check if we should build the software_qtopia engine
have_evas_qtopia="no";
## Automatic check...
AC_CHECK_HEADER(qdirectpainter_qws.h,
[ have_evas_qtopia="yes" ],
[ have_evas_qtopia="no" ],
[
#include <qwidget.h>
#include <qnamespace.h>
#include <qbrush.h>
#include <qpainter.h>
]
)
2005-11-10 22:09:46 -08:00
## manually disable qtopia engine by default - not auto detected.
have_evas_qtopia="no"
2004-01-27 18:07:41 -08:00
## Manual override
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether software qtopia backend is to be built)
2004-01-27 18:07:41 -08:00
AC_ARG_ENABLE(software-qtopia, [ --enable-software-qtopia enable the Software Qtopia rendering backend], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2003-12-17 23:55:21 -08:00
have_evas_qtopia="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-02-02 22:04:54 -08:00
have_evas_qtopia="no"
2003-10-14 21:20:38 -07:00
fi
2002-11-07 23:46:04 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_evas_qtopia)
2002-11-07 23:46:04 -08:00
]
)
2003-12-17 23:55:21 -08:00
if test "x$have_evas_qtopia" = "xyes"; then
2007-11-04 01:21:50 -08:00
AC_LANG_PUSH(C++)
2003-12-17 23:55:21 -08:00
AC_CHECK_HEADER(qdirectpainter_qws.h,
[
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, test "$enableval" = "yes")
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ENGINE_SOFTWARE_QTOPIA, 1, [Qtopia Rendering Backend])
2003-12-17 23:55:21 -08:00
qt_cflags="-fno-exceptions -fno-rtti -I"$qt_dir"/include"
qt_libs="-L"$qt_dir"/lib -lqte -lqpe"
qt_moc=$qt_dir"/bin/moc"
], [
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false)
AC_MSG_RESULT(disabling qtopia engine)
2004-01-27 18:07:41 -08:00
have_evas_qtopia="no"
2003-12-17 23:55:21 -08:00
],
[
#include <qwidget.h>
#include <qnamespace.h>
#include <qbrush.h>
#include <qpainter.h>
]
)
2007-11-04 01:21:50 -08:00
AC_LANG_POP(C++)
2003-12-17 23:55:21 -08:00
else
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false)
fi
2004-01-27 18:07:41 -08:00
#######################################
## Check if we should build the gl_x11 engine
2007-08-07 03:18:51 -07:00
have_evas_gl_common="no"
2004-01-27 18:07:41 -08:00
have_evas_gl_x11="no";
## Automatic check...
2007-08-07 03:18:51 -07:00
AC_CHECK_HEADERS(GL/gl.h GL/glu.h X11/X.h,
[ have_evas_gl_x11="yes" ],
[ have_evas_gl_x11="no" ]
2004-01-27 18:07:41 -08:00
)
2005-11-10 22:09:46 -08:00
## manually disable gl engine by default - not auto detected.
have_evas_gl_x11="no"
2004-01-27 18:07:41 -08:00
## Manual override
AC_ARG_ENABLE(gl-x11, [ --enable-gl-x11 enable the OpenGL X11 display engine], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
have_evas_gl_x11="yes"
2003-10-14 21:20:38 -07:00
else
2004-02-02 22:04:54 -08:00
have_evas_gl_x11="no"
2003-10-14 21:20:38 -07:00
fi
2007-08-07 03:18:51 -07:00
]
2002-11-07 23:46:04 -08:00
)
2007-08-07 03:18:51 -07:00
AC_MSG_CHECKING(whether gl x11 backend is to be built)
AC_MSG_RESULT($have_evas_gl_x11)
2003-12-17 23:55:21 -08:00
if test "x$have_evas_gl_x11" = "xyes"; then
2007-08-07 03:18:51 -07:00
AC_CHECK_HEADERS(GL/gl.h GL/glu.h,
[ have_evas_gl_common="yes" ],
[ have_evas_gl_x11="no" ]
2003-12-17 23:55:21 -08:00
)
2007-08-07 03:18:51 -07:00
if test "x$have_evas_gl_common" = "xyes"; then
AC_CHECK_HEADER(X11/X.h,
[
AC_DEFINE(BUILD_ENGINE_GL_X11, 1, [OpenGL X11 Rendering Backend])
AC_DEFINE(BUILD_ENGINE_GL_COMMON, 1, [Generic OpenGL Rendering Support])
x_dir=${x_dir:-/usr/X11R6};
x_cflags=${x_cflags:--I$x_dir/include}
x_libs="${x_libs:--L$x_dir/lib -lX11 -lXext}"
gl_cflags="-I/usr/include"
gl_libs="-lGL -lGLU -lpthread"
gl_dir=""
],
[
have_evas_gl_x11="no"
have_evas_gl_common="no"
]
)
fi
2003-12-17 23:55:21 -08:00
fi
2007-08-07 03:18:51 -07:00
AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, test "x$have_evas_gl_common" = "xyes")
AM_CONDITIONAL(BUILD_ENGINE_GL_X11, test "x$have_evas_gl_x11" = "xyes")
2003-12-17 23:55:21 -08:00
2004-08-16 23:03:39 -07:00
2007-08-05 00:22:44 -07:00
#######################################
## Check if we should build the gl_glew engine
have_evas_gl_glew="no";
## Automatic check...
2007-08-07 03:18:51 -07:00
AC_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glew.h,
2007-08-05 00:22:44 -07:00
[ have_evas_gl_glew="yes" ],
2007-08-06 08:36:59 -07:00
[ have_evas_gl_glew="no" ]
2007-08-05 00:22:44 -07:00
)
## manually disable gl engine by default - not auto detected.
have_evas_gl_glew="no"
## Manual override
AC_ARG_ENABLE(gl-glew, [ --enable-gl-glew enable the OpenGL Glew display engine], [
if test x"$enableval" = x"yes" ; then
have_evas_gl_glew="yes"
else
have_evas_gl_glew="no"
fi
]
)
2007-08-07 03:18:51 -07:00
AC_MSG_CHECKING(whether gl glew backend is to be built)
2007-08-05 00:22:44 -07:00
AC_MSG_RESULT($have_evas_gl_glew)
2007-08-07 03:18:51 -07:00
if test "x$have_evas_gl_glew" = "xyes" ; then
AC_CHECK_HEADERS(GL/gl.h GL/glu.h,
[ have_evas_gl_common="yes" ],
[ have_evas_gl_glew="no" ]
2007-08-05 00:22:44 -07:00
)
2007-08-07 03:18:51 -07:00
if test "x$have_evas_gl_common" = "xyes" ; then
AC_CHECK_HEADER(GL/glew.h,
[
AC_DEFINE(BUILD_ENGINE_GL_GLEW, 1, [OpenGL Glew Rendering Backend])
AC_DEFINE(BUILD_ENGINE_GL_COMMON, 1, [Generic OpenGL Rendering Support])
glew_libs="-lglew32 -lopengl32 -lgdi32"
gl_libs="-lglu32"
],
[
have_evas_gl_glew="no"
have_evas_gl_common="no"
]
)
fi
2007-08-05 00:22:44 -07:00
fi
2007-08-07 03:18:51 -07:00
AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, test "x$have_evas_gl_common" = "xyes")
2007-08-05 00:22:44 -07:00
AM_CONDITIONAL(BUILD_ENGINE_GL_GLEW, test "x$have_evas_gl_glew" = "xyes")
2004-08-16 23:03:39 -07:00
#######################################
2007-08-05 00:22:44 -07:00
## Check if we should build the cairo_x11 engine
2004-08-16 23:03:39 -07:00
have_evas_cairo_x11="no";
2005-08-31 17:53:34 -07:00
# Automatic check...
2005-09-01 16:53:03 -07:00
#PKG_CHECK_MODULES(CAIRO, cairo >= 1.0.0,
# [ have_evas_cairo_x11="yes" ],
# [ have_evas_cairo_x11="no" ]
#)
2005-08-31 17:53:34 -07:00
# Manual override
2005-09-01 16:53:03 -07:00
#AC_MSG_CHECKING(whether cairo x11 backend is to be built)
#AC_ARG_ENABLE(cairo-x11, [ --enable-cairo-x11 enable the Cairo X11 display engine], [
2005-10-06 15:53:20 -07:00
# if test x"$enableval" = x"yes" ; then
2005-09-01 16:53:03 -07:00
# AC_MSG_RESULT(yes)
# have_evas_cairo_x11="yes"
# else
# AC_MSG_RESULT(no)
# have_evas_cairo_x11="no"
# fi
# ], [
# AC_MSG_RESULT($have_evas_cairo_x11)
# ]
#)
2004-08-16 23:03:39 -07:00
if test "x$have_evas_cairo_x11" = "xyes"; then
AC_CHECK_HEADER(X11/X.h,
[
AM_CONDITIONAL(BUILD_ENGINE_CAIRO_X11, true)
AC_DEFINE(BUILD_ENGINE_CAIRO_X11, 1, [Cairo X11 Rendering Backend])
AM_CONDITIONAL(BUILD_ENGINE_CAIRO_COMMON, true)
AC_DEFINE(BUILD_ENGINE_CAIRO_COMMON, 1, [Generic Cairo Rendering Support])
x_dir="/usr/X11R6";
x_cflags="-I"$x_dir"/include"
x_libs="-L"$x_dir"/lib -lX11 -lXext"
], [
AM_CONDITIONAL(BUILD_ENGINE_CAIRO_X11, false)
AM_CONDITIONAL(BUILD_ENGINE_CAIRO_COMMON, false)
AC_MSG_RESULT(disabling Cairo X11 engine)
]
)
else
AM_CONDITIONAL(BUILD_ENGINE_CAIRO_X11, false)
AM_CONDITIONAL(BUILD_ENGINE_CAIRO_COMMON, false)
fi
2005-10-02 08:15:44 -07:00
#######################################
## Check if we should build the xrender_x11 engine
have_evas_xrender_x11="no";
## Automatic check...
AC_CHECK_HEADER(X11/X.h,
[ have_evas_xrender_x11="yes" ],
[ have_evas_xrender_x11="no" ]
)
## Manual override
AC_MSG_CHECKING(whether xrender x11 backend is to be built)
2005-10-06 15:53:20 -07:00
AC_ARG_ENABLE(xrender-x11, [ --enable-xrender-x11 enable the XRender X11 rendering backend], [
if test x"$enableval" = x"yes" ; then
2005-10-02 08:15:44 -07:00
AC_MSG_RESULT(yes)
have_evas_xrender_x11="yes"
else
AC_MSG_RESULT(no)
have_evas_xrender_x11="no"
fi
], [
AC_MSG_RESULT($have_evas_xrender_x11)
]
)
if test "x$have_evas_xrender_x11" = "xyes"; then
2007-06-10 16:30:07 -07:00
AC_PATH_X
2005-10-02 08:15:44 -07:00
AC_PATH_XTRA
AC_CHECK_HEADER(X11/X.h,
[
AC_CHECK_HEADER(X11/extensions/Xrender.h,
[
AC_DEFINE(BUILD_ENGINE_XRENDER_X11, 1, [XRender X11 Rendering Backend])
x_dir=${x_dir:-/usr/X11R6}
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
],
[
AC_MSG_RESULT(disabling xrender X11 engine)
have_evas_xrender_x11="no"
]
)
],
[
AC_MSG_RESULT(disabling xrender X11 engine)
have_evas_xrender_x11="no"
]
)
fi
2006-03-10 11:10:07 -08:00
AM_CONDITIONAL(BUILD_ENGINE_XRENDER_X11, test "x$have_evas_xrender_x11" = "xyes")
#######################################
## Check if we should build the xrender_xcb engine
have_evas_xrender_xcb="no";
## Automatic check...
PKG_CHECK_MODULES(
2006-04-23 08:38:23 -07:00
XCBRENDER,
2007-02-21 16:24:32 -08:00
xcb xcb-shm xcb-render xcb-image,
2006-09-09 01:10:24 -07:00
[have_evas_xrender_xcb="yes"],
[have_evas_xrender_xcb="no"],
2006-03-10 11:10:07 -08:00
[ have_evas_xrender_xcb="no" ])
## manually disable xcb engine by default - not auto detected.
have_evas_xrender_xcb="no"
## Manual override
AC_MSG_CHECKING(whether xrender xcb backend is to be built)
2006-04-19 19:30:11 -07:00
AC_ARG_ENABLE(xrender-xcb, [ --enable-xrender-xcb enable the Xrender XCB rendering backend], [
2006-03-10 11:10:07 -08:00
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_evas_xrender_xcb="yes"
else
AC_MSG_RESULT(no)
have_evas_xrender_xcb="no"
fi
], [
AC_MSG_RESULT($have_evas_xrender_xcb)
]
)
if test "x$have_evas_xrender_xcb" = "xyes"; then
PKG_CHECK_MODULES(
2006-04-23 08:38:23 -07:00
XCBRENDER,
2007-02-21 16:24:32 -08:00
xcb xcb-shm xcb-render xcb-image,
2006-03-10 11:10:07 -08:00
[AC_DEFINE(BUILD_ENGINE_XRENDER_XCB, 1, [Xrender XCB Rendering Backend])
2006-04-23 08:38:23 -07:00
xcbrender_cflags=$XCBRENDER_CFLAGS
2006-11-10 22:03:13 -08:00
xcbrender_libs=$XCBRENDER_LIBS],
2006-03-10 11:10:07 -08:00
[AC_MSG_RESULT(disabling xrender XCB engine)
have_evas_xrender_xcb="no"])
fi
AM_CONDITIONAL(BUILD_ENGINE_XRENDER_XCB, test "x$have_evas_xrender_xcb" = "xyes")
2005-10-02 08:15:44 -07:00
2006-11-10 22:03:13 -08:00
#######################################
## Check if we should build the glitz_x11 engine
have_evas_glitz_x11="no";
## Automatic check...
AC_CHECK_HEADER(glitz-glx.h,
[ have_evas_glitz_x11="yes" ],
[ have_evas_glitz_x11="no" ]
)
2006-11-10 22:04:55 -08:00
# maually disable glitz engine for now - as it does nothing.
have_evas_glitz_x11="no";
2006-11-10 22:03:13 -08:00
## Manual override
AC_MSG_CHECKING(whether glitz x11 backend is to be built)
AC_ARG_ENABLE(glitz-x11, [ --enable-glitz-x11 enable the Glitz X11 rendering backend], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_evas_glitz_x11="yes"
else
AC_MSG_RESULT(no)
have_evas_glitz_x11="no"
fi
], [
AC_MSG_RESULT($have_evas_glitz_x11)
]
)
if test "x$have_evas_glitz_x11" = "xyes"; then
2007-06-10 16:30:07 -07:00
AC_PATH_X
2006-11-10 22:03:13 -08:00
AC_PATH_XTRA
AC_CHECK_HEADER(X11/X.h,
[
PKG_CHECK_MODULES(GLITZ, glitz glitz-glx,
[
x_dir=${x_dir:-/usr/X11R6}
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
AC_DEFINE(BUILD_ENGINE_GLITZ_X11, 1, [Glitz X11 Rendering Backend])
],
[
AC_MSG_RESULT(disabling glitz X11 engine)
have_evas_glitz_x11="no"
]
)
],
[
AC_MSG_RESULT(disabling glitz X11 engine)
have_evas_glitz_x11="no"
]
)
fi
AM_CONDITIONAL(BUILD_ENGINE_GLITZ_X11, test "x$have_evas_glitz_x11" = "xyes")
2005-10-02 08:15:44 -07:00
2004-01-27 18:07:41 -08:00
#####################################################################
## Image loaders
2003-12-17 23:55:21 -08:00
2006-04-08 05:22:18 -07:00
#######################################
## GIF
have_gif="no";
AC_CHECK_HEADER(gif_lib.h,
[ have_gif="yes" ],
[ have_gif="no" ]
)
AC_MSG_CHECKING(whether to enable gif image loader)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(image-loader-gif,
2006-04-08 05:22:18 -07:00
[ --enable-image-loader-gif enable GIF image loader], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_gif="yes"
else
AC_MSG_RESULT(no)
have_gif="no"
fi
], [
AC_MSG_RESULT($have_gif)
]
)
if test "x$have_gif" = "xyes"; then
AC_CHECK_HEADER(gif_lib.h,
[ AC_CHECK_LIB(gif, DGifOpenFileName,
[ gif_libs="-lgif"
have_gif="yes" ],
[ AC_CHECK_LIB(ungif, DGifOpenFileName,
[ gif_libs="-lungif"
have_gif="yes" ],
[ have_gif="no" ]) ]) ],
[ have_gif="no" ]
)
fi
if test "x$have_gif" = "xyes"; then
AC_DEFINE(BUILD_LOADER_GIF, 1, [GIF Image Loader Support])
gif_cflags=""
fi
AM_CONDITIONAL(BUILD_LOADER_GIF, test x$have_gif = xyes)
2004-01-27 18:07:41 -08:00
#######################################
## PNG
have_png="no";
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to enable png image loader)
2006-07-14 13:37:05 -07:00
if pkg-config --exists libpng12; then
have_png="yes";
elif pkg-config --exists libpng10; then
have_png="yes";
elif pkg-config --exists libpng; then
have_png="yes";
fi
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(image-loader-png,
2004-01-27 18:07:41 -08:00
[ --enable-image-loader-png enable PNG image loader], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2003-12-17 23:55:21 -08:00
have_png="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-02-02 22:04:54 -08:00
have_png="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_png)
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2003-12-17 23:55:21 -08:00
if test "x$have_png" = "xyes"; then
2006-07-14 13:37:05 -07:00
if pkg-config --exists libpng12; then
png_cflags=`pkg-config --cflags libpng12`
png_libs=`pkg-config --libs libpng12`
AC_MSG_CHECKING(libpng 1.2.x)
elif pkg-config --exists libpng10; then
png_cflags=`pkg-config --cflags libpng10`
png_libs=`pkg-config --libs libpng10`
AC_MSG_CHECKING(libpng 1.0.x)
elif pkg-config --exists libpng; then
png_cflags=`pkg-config --cflags libpng`
png_libs=`pkg-config --libs libpng`
AC_MSG_CHECKING(generic system libpng)
fi
AC_MSG_RESULT($have_png)
2004-01-27 18:07:41 -08:00
fi
2003-12-17 23:55:21 -08:00
2006-01-14 12:03:42 -08:00
AM_CONDITIONAL(BUILD_LOADER_PNG, test x$have_png = xyes)
2004-01-27 18:07:41 -08:00
#######################################
## JPEG
have_jpeg="no";
AC_CHECK_HEADER(jpeglib.h,
[ have_jpeg="yes" ],
[ have_jpeg="no" ]
)
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to enable jpeg image loader)
2007-02-10 09:23:09 -08:00
dnl Windows has no sigsetjmp function, nor equivalent.
dnl So we disable the jpeg saver.
have_jpeg_saver="yes"
case "$host_os" in
mingw|mingw32)
have_jpeg_saver="no"
;;
esac
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(image-loader-jpeg,
2004-01-27 18:07:41 -08:00
[ --enable-image-loader-jpeg enable JPEG image loader], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-27 18:07:41 -08:00
have_jpeg="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-02-02 22:04:54 -08:00
have_jpeg="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($have_jpeg)
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2003-12-17 23:55:21 -08:00
if test "x$have_jpeg" = "xyes"; then
2004-01-27 18:07:41 -08:00
AC_CHECK_HEADER(jpeglib.h,
[ have_jpeg="yes" ],
[ have_jpeg="no" ]
2003-12-17 23:55:21 -08:00
)
fi
2004-01-27 18:07:41 -08:00
if test "x$have_jpeg" = "xyes"; then
AC_DEFINE(BUILD_LOADER_JPEG, 1, [JPEG Image Loader Support])
jpeg_cflags=""
jpeg_libs="-ljpeg"
2004-01-22 18:14:45 -08:00
fi
2006-01-14 12:03:42 -08:00
AM_CONDITIONAL(BUILD_LOADER_JPEG, test x$have_jpeg = xyes)
2007-02-10 09:23:09 -08:00
AM_CONDITIONAL(BUILD_SAVER_JPEG, test x$have_jpeg_saver = xyes)
2006-01-14 12:03:42 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## EET
2007-03-20 19:15:30 -07:00
#
# first, check whether the user WANTS to use EET
AC_ARG_ENABLE(image-loader-eet,
AC_HELP_STRING(
[--enable-image-loader-eet],
[enable EET image loader. [[default=enabled]]]
),
[want_eet_image_loader=$enableval],
[want_eet_image_loader=yes]
)
AC_ARG_ENABLE(font-loader-eet,
AC_HELP_STRING(
[--enable-font-loader-eet],
[enable EET font loader. [[default=enabled]]]
),
[want_eet_font_loader=$enableval],
[want_eet_font_loader=yes]
)
# next, if she does, check whether EET is available
if test "$want_eet_image_loader" = yes -o "$want_eet_font_loader" = yes; then
PKG_CHECK_MODULES(EET, eet, have_eet=yes, have_eet=no)
else
have_eet=no
2005-03-01 04:09:40 -08:00
fi
2007-03-20 19:15:30 -07:00
# finally, spew out the result
2005-03-01 04:09:40 -08:00
AC_MSG_CHECKING(whether to enable eet font loader)
2007-03-20 19:15:30 -07:00
if test "$want_eet_font_loader" = yes -a "$have_eet" = yes; then
AC_DEFINE(BUILD_FONT_LOADER_EET, 1, [EET Font Loader Support])
have_eet_font_loader=yes
else
have_eet_font_loader=no
fi
AC_MSG_RESULT($have_eet_font_loader)
2004-04-22 04:29:34 -07:00
2007-03-20 19:15:30 -07:00
AC_MSG_CHECKING(whether to enable eet image loader)
if test "$want_eet_image_loader" = yes -a "$have_eet" = yes; then
AC_DEFINE(BUILD_LOADER_EET, 1, [EET Image Loader Support])
have_eet_image_loader=yes
2005-03-01 04:09:40 -08:00
else
2007-03-20 19:15:30 -07:00
have_eet_image_loader=no
2004-01-27 18:07:41 -08:00
fi
2007-03-20 19:15:30 -07:00
AC_MSG_RESULT($have_eet_image_loader)
2003-12-17 23:55:21 -08:00
2007-03-20 19:15:30 -07:00
AM_CONDITIONAL(BUILD_LOADER_EET, test $have_eet_image_loader = yes)
2006-01-14 12:03:42 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## EDB
2007-03-20 19:28:39 -07:00
#
# first, check whether the user WANTS to use EDB
AC_ARG_ENABLE(image-loader-edb,
AC_HELP_STRING(
[--enable-image-loader-edb],
[enable EDB image loader. [[default=enabled]]]
),
[want_edb_image_loader=$enableval],
[want_edb_image_loader=yes]
)
# next, if she does, check whether EDB is available
if test "$want_edb_image_loader" = yes; then
PKG_CHECK_MODULES(EDB, edb, have_edb=yes, have_edb=no)
else
have_edb=no
2005-03-01 04:09:40 -08:00
fi
2007-03-20 19:28:39 -07:00
# finally, spew out the result
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to enable edb image loader)
2007-03-20 19:28:39 -07:00
if test "$want_edb_image_loader" = yes -a "$have_edb" = yes; then
AC_DEFINE(BUILD_LOADER_EDB, 1, [EDB Image Loader Support])
have_edb_image_loader=yes
2005-03-01 04:09:40 -08:00
else
2007-03-20 19:28:39 -07:00
have_edb_image_loader=no
2004-01-27 18:07:41 -08:00
fi
2007-03-20 19:28:39 -07:00
AC_MSG_RESULT($have_edb_image_loader)
2002-11-07 23:46:04 -08:00
2007-03-20 19:28:39 -07:00
AM_CONDITIONAL(BUILD_LOADER_EDB, test $have_edb_image_loader = yes)
2006-01-14 12:03:42 -08:00
2006-04-08 17:10:47 -07:00
#######################################
## TIFF
have_tiff="no";
AC_CHECK_HEADER(tiffio.h,
[ have_tiff="yes" ],
[ have_tiff="no" ]
)
AC_MSG_CHECKING(whether to enable tiff image loader)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(image-loader-tiff,
2006-04-19 19:30:11 -07:00
[ --enable-image-loader-tiff enable TIFF image loader], [
2006-04-08 17:10:47 -07:00
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_tiff="yes"
else
AC_MSG_RESULT(no)
have_tiff="no"
fi
], [
AC_MSG_RESULT($have_tiff)
]
)
if test "x$have_tiff" = "xyes"; then
AC_CHECK_HEADER(tiffio.h,
[ AC_CHECK_LIB(tiff, TIFFReadScanline,
[ tiff_libs="-ltiff"
have_tiff="yes" ],
[ AC_CHECK_LIB(tiff, TIFFReadScanline,
[ tiff_libs="-ltiff -ljpeg -lz -lm"
have_tiff="yes" ],
[ AC_CHECK_LIB(tiff34, TIFFReadScanline,
[ tiff_libs="-ltiff34 -ljpeg -lz -lm"
have_tiff="yes" ],
[ have_tiff="no" ]) ]) ]) ],
[ have_tiff="no" ]
)
fi
if test "x$have_tiff" = "xyes"; then
AC_DEFINE(BUILD_LOADER_TIFF, 1, [TIFF Image Loader Support])
tiff_cflags=""
fi
AM_CONDITIONAL(BUILD_LOADER_TIFF, test x$have_tiff = xyes)
2006-08-12 02:16:30 -07:00
#######################################
## XPM
have_xpm="yes";
AC_MSG_CHECKING(whether to enable xpm image loader)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(image-loader-xpm,
2006-08-12 02:16:30 -07:00
[ --enable-image-loader-xpm enable XPM image loader], [
if test x"$enableval" = x"yes" ; then
2006-09-10 20:39:10 -07:00
have_xpm="yes"
2006-08-12 02:16:30 -07:00
else
2006-09-10 20:39:10 -07:00
have_xpm="no"
2006-08-12 02:16:30 -07:00
fi
]
)
2006-09-10 20:39:10 -07:00
AC_MSG_RESULT($have_xpm)
2006-08-12 02:16:30 -07:00
xpm_cflags=""
xpm_libs=""
AM_CONDITIONAL(BUILD_LOADER_XPM, test x$have_xpm = xyes)
2006-08-17 09:43:30 -07:00
#######################################
## SVG
have_svg="yes";
AC_MSG_CHECKING(whether to enable svg image loader)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(image-loader-svg,
2006-08-17 09:43:30 -07:00
[ --enable-image-loader-svg enable SVG image loader], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_svg="yes"
else
AC_MSG_RESULT(no)
have_svg="no"
fi
], [
AC_MSG_RESULT($have_svg)
]
)
svg_cflags=""
svg_libs=""
if test "x$have_svg" = "xyes"; then
# Check if really available
2006-12-04 12:34:30 -08:00
PKG_CHECK_MODULES(SVG, librsvg-2.0 >= 2.14.0,
2007-07-16 01:13:40 -07:00
[
2006-08-17 09:43:30 -07:00
have_svg="yes"
],
2007-07-16 01:13:40 -07:00
[
2006-08-17 09:43:30 -07:00
have_svg="no"
]
)
if test "x$have_svg" = "xyes"; then
2006-08-30 15:58:44 -07:00
PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg,
2007-07-16 01:13:40 -07:00
[
2006-08-30 15:58:44 -07:00
have_svg="yes"
svg_cflags="$SVG_CFLAGS $CAIRO_SVG_CFLAGS"
svg_libs="$SVG_LIBS $CAIRO_SVG_LIBS"
],
2007-07-16 01:13:40 -07:00
[
2006-09-17 05:29:26 -07:00
PKG_CHECK_MODULES(LIBSVG_CAIRO, libsvg-cairo,
2007-07-16 01:13:40 -07:00
[
2006-08-30 15:58:44 -07:00
have_svg="yes"
svg_cflags="$SVG_CFLAGS $LIBSVG_CAIRO_CFLAGS"
svg_libs="$SVG_LIBS $LIBSVG_CAIRO_LIBS"
],
2007-07-16 01:13:40 -07:00
[
2006-08-30 15:58:44 -07:00
have_svg="no"
]
)
]
)
2006-08-17 09:43:30 -07:00
fi
2007-07-16 01:13:40 -07:00
else
2006-08-17 09:43:30 -07:00
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(BUILD_LOADER_SVG, test x$have_svg = xyes)
2004-01-27 18:07:41 -08:00
#####################################################################
## Cpu based optimizations
2006-10-27 20:02:23 -07:00
#######################################
## PTHREADS
pthread_cflags=""
pthread_libs=""
2006-11-15 04:04:02 -08:00
build_pthreads="no"
2006-11-15 22:31:52 -08:00
# sched_getaffinity pthread_attr_setaffinity_np
2006-11-15 19:20:24 -08:00
AC_CHECK_HEADER(pthread.h,
2007-07-16 01:13:40 -07:00
[
2006-11-15 19:20:24 -08:00
AC_CHECK_HEADER(sched.h,
2007-07-16 01:13:40 -07:00
[
AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np,
2006-11-17 18:51:27 -08:00
[
2007-07-16 01:13:40 -07:00
AC_CHECK_LIB(pthread, pthread_barrier_wait,
[ build_pthreads="yes" ],
2006-11-17 18:51:27 -08:00
[ build_pthreads="no" ]
)
],
2006-11-15 22:31:52 -08:00
[ build_pthreads="no" ]
)
],
2006-11-15 19:20:24 -08:00
[ build_pthreads="no" ]
)
],
[ build_pthreads="no" ]
)
2006-11-17 17:49:31 -08:00
### disable pthreads by default for now - some wierd deadlock issue with
# barriers (makes no sense)
2006-11-17 18:51:27 -08:00
#build_pthreads="no"
2006-10-27 20:02:23 -07:00
AC_MSG_CHECKING(whether to build pthread code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(pthreads,
2006-10-27 20:02:23 -07:00
[ --enable-pthreads enable threaded rendering], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
2006-11-15 03:57:42 -08:00
AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
2006-10-27 20:02:23 -07:00
build_pthreads="yes"
pthread_cflags=""
pthread_libs="-lpthread"
else
AC_MSG_RESULT(no)
build_pthreads="no"
fi
],
2007-07-16 01:13:40 -07:00
[
2006-10-27 20:02:23 -07:00
AC_MSG_RESULT($build_pthreads)
if test x"$build_pthreads" = x"yes" ; then
AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
pthread_cflags=""
pthread_libs="-lpthread"
fi
]
)
2004-01-27 18:07:41 -08:00
#######################################
## MMX
build_cpu_mmx="no"
2005-04-28 19:10:36 -07:00
case $host_cpu in
2004-01-27 18:07:41 -08:00
i*86)
build_cpu_mmx="yes"
;;
2005-12-11 23:49:22 -08:00
x86_64)
build_cpu_mmx="yes"
;;
2004-01-27 18:07:41 -08:00
esac
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build mmx code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-mmx,
2002-11-07 23:46:04 -08:00
[ --enable-cpu-mmx enable mmx code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
2004-01-27 18:07:41 -08:00
build_cpu_mmx="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
build_cpu_mmx="no"
2003-10-14 21:20:38 -07:00
fi
2004-01-27 18:07:41 -08:00
],
[
AC_MSG_RESULT($build_cpu_mmx)
2005-10-06 15:53:20 -07:00
if test x"$build_cpu_mmx" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
fi
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## SSE
build_cpu_sse="no"
2005-04-28 19:10:36 -07:00
case $host_cpu in
2004-01-27 18:07:41 -08:00
i*86)
build_cpu_sse="yes"
;;
2005-12-11 23:49:22 -08:00
x86_64)
build_cpu_sse="yes"
;;
2004-01-27 18:07:41 -08:00
esac
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build sse code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-sse,
2002-11-07 23:46:04 -08:00
[ --enable-cpu-sse enable sse code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
2004-01-27 18:07:41 -08:00
build_cpu_sse="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
build_cpu_sse="no"
2003-10-14 21:20:38 -07:00
fi
2004-01-27 18:07:41 -08:00
],
2007-07-16 01:13:40 -07:00
[
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($build_cpu_sse)
2005-10-06 15:53:20 -07:00
if test x"$build_cpu_sse" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
fi
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## ALTIVEC
build_cpu_altivec="no"
2005-04-28 19:10:36 -07:00
case $host_cpu in
2004-01-27 18:07:41 -08:00
*power* | *ppc*)
build_cpu_altivec="yes"
;;
esac
2003-12-15 17:58:17 -08:00
altivec_cflags=""
AC_MSG_CHECKING(whether to build altivec code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-altivec,
2004-01-27 18:07:41 -08:00
[ --enable-cpu-altivec enable altivec code], [
2005-10-12 19:38:04 -07:00
build_cpu_altivec=$enableval
2004-01-27 18:07:41 -08:00
]
2003-12-15 17:58:17 -08:00
)
2005-10-12 19:38:04 -07:00
AC_MSG_RESULT($build_cpu_altivec)
if test "x$build_cpu_altivec" = "xyes"; then
2003-12-15 17:58:17 -08:00
AC_CHECK_HEADER(altivec.h,
[
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2005-10-12 19:38:04 -07:00
AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
build_cpu_altivec="yes"
2004-01-27 18:07:41 -08:00
],
[
2005-10-12 19:38:04 -07:00
save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
2005-09-23 22:53:27 -07:00
CFLAGS=$CFLAGS" -maltivec"
2005-10-12 19:38:04 -07:00
CPPFLAGS=$CPPFLAGS" -maltivec"
unset ac_cv_header_altivec_h
2005-09-23 22:53:27 -07:00
AC_CHECK_HEADER(altivec.h,
[
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2005-10-12 19:38:04 -07:00
AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
build_cpu_altivec="yes"
2005-09-23 22:53:27 -07:00
],
[
build_cpu_altivec="no"
]
)
2005-10-12 19:38:04 -07:00
CFLAGS=$save_CFLAGS
CPPFLAGS=$save_CPPFLAGS
2003-12-16 09:37:26 -08:00
]
)
2003-12-15 17:58:17 -08:00
fi
2005-10-12 19:38:04 -07:00
if test "x$build_cpu_altivec" = "xyes"; then
2003-12-15 17:58:17 -08:00
AC_MSG_CHECKING(whether to use altivec compiler flag)
2005-10-12 19:38:04 -07:00
if test x"$GCC" = x"yes"; then
if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
2003-12-15 17:58:17 -08:00
altivec_cflags="-faltivec"
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2005-10-12 19:38:04 -07:00
elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
2005-09-23 22:53:27 -07:00
altivec_cflags="-maltivec"
AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
2003-12-15 17:58:17 -08:00
fi
fi
2005-10-12 19:38:04 -07:00
AC_MSG_RESULT($altivec_cflags)
CFLAGS="$CFLAGS $altivec_cflags"
2003-12-15 17:58:17 -08:00
fi
2005-10-12 19:38:04 -07:00
2004-01-27 18:07:41 -08:00
#######################################
## C
build_cpu_c="no"
build_cpu_c="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build c code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(cpu-c,
2002-11-07 23:46:04 -08:00
[ --enable-cpu-c enable C code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_C, 1, [Build plain C code])
2004-01-27 18:07:41 -08:00
build_cpu_c="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
build_cpu_c="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($build_cpu_c)
2005-10-06 15:53:20 -07:00
if test x"$build_cpu_c" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_C, 1, [Build plain C code])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#####################################################################
## ARGB engine options
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Nearest sampling scaler
scaler_sample="no"
scaler_sample="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build sampling scaler)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(scale-sample,
2002-11-07 23:46:04 -08:00
[ --enable-scale-sample enable sampling scaler code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_SCALE_SAMPLE, 1, [Sampling Scaler Support])
2004-01-27 18:07:41 -08:00
scaler_sample="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
scaler_sample="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($scaler_sample)
2005-10-06 15:53:20 -07:00
if test x"$scaler_sample" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_SCALE_SAMPLE, 1, [Sampling Scaler Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Smooth super and sub sampling scaler
scaler_smooth="no"
scaler_smooth="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build smooth scaler)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(scale-smooth,
2004-01-14 10:47:46 -08:00
[ --enable-scale-smooth enable smooth scaler code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-10-14 21:20:38 -07:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_SCALE_SMOOTH, 1, [Smooth Scaler Support])
2004-01-27 18:07:41 -08:00
scaler_smooth="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
scaler_smooth="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($scaler_smooth)
2005-10-06 15:53:20 -07:00
if test x"$scaler_smooth" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_SCALE_SMOOTH, 1, [Smooth Scaler Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## YUV -> ARGB converter
conv_yuv="no"
conv_yuv="yes"
AC_MSG_CHECKING(whether to build yuv converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-yuv,
2005-10-06 15:53:20 -07:00
[ --enable-convert-yuv enable yuv converter code], [
if test x"$enableval" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
conv_yuv="yes"
else
AC_MSG_RESULT(no)
conv_yuv="no"
fi
], [
AC_MSG_RESULT($conv_yuv)
2005-10-06 15:53:20 -07:00
if test x"$conv_yuv" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
fi
]
)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#####################################################################
## Output rendering features
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Small dither mask instead of big one (lower quality)
conv_small_dither="no"
conv_small_dither="no"
AC_MSG_CHECKING(whether to build small dither mask code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(small-dither-mask,
2004-01-27 18:07:41 -08:00
[ --enable-small-dither-mask enable small dither mask code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
2007-07-16 01:13:40 -07:00
AC_DEFINE(BUILD_SMALL_DITHER_MASK, 1, [Small Dither Mask Support])
2004-01-27 18:07:41 -08:00
conv_small_dither="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_small_dither="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_small_dither)
2005-10-06 15:53:20 -07:00
if test x"$conv_small_dither" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_SMALL_DITHER_MASK, 1, [Small Dither Mask Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2007-04-24 04:16:24 -07:00
#######################################
## No dither mask at all for 16bpp
conv_no_dither="no"
conv_no_dither="no"
AC_MSG_CHECKING(whether to build without dither mask for 16bpp)
AC_ARG_ENABLE(no-dither-mask,
[ --enable-no-dither-mask enable conversion to 16bpp without dither mask], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
2007-07-16 01:13:40 -07:00
AC_DEFINE(BUILD_NO_DITHER_MASK, 1, [No Dither Mask Support])
2007-04-24 04:16:24 -07:00
conv_no_dither="yes"
else
AC_MSG_RESULT(no)
conv_no_dither="no"
fi
], [
AC_MSG_RESULT($conv_no_dither)
if test x"$conv_no_dither" = x"yes" ; then
AC_DEFINE(BUILD_NO_DITHER_MASK, 1, [No Dither Mask Support])
fi
]
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 332
conv_8_rgb_332="no"
conv_8_rgb_332="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 8bpp 332 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-332,
2004-01-27 18:07:41 -08:00
[ --enable-convert-8-rgb-332 enable 8bpp 332 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_8_RGB_332, 1, [8bpp 332 Converter Support])
conv_8_rgb_332="yes"
else
AC_MSG_RESULT(no)
conv_8_rgb_332="no"
fi
], [
AC_MSG_RESULT($conv_8_rgb_332)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_332" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_332, 1, [8bpp 332 Converter Support])
fi
]
)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 666
conv_8_rgb_666="no"
conv_8_rgb_666="yes"
AC_MSG_CHECKING(whether to build 8bpp 666 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-666,
2002-11-07 23:46:04 -08:00
[ --enable-convert-8-rgb-666 enable 8bpp 666 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_666, 1, [8bpp 666 Converter Support])
2004-01-27 18:07:41 -08:00
conv_8_rgb_666="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_8_rgb_666="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_8_rgb_666)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_666" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_666, 1, [8bpp 666 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 232
conv_8_rgb_232="no"
conv_8_rgb_232="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 8bpp 232 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-232,
2002-11-07 23:46:04 -08:00
[ --enable-convert-8-rgb-232 enable 8bpp 232 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_232, 1, [8bpp 232 Converter Support])
2004-01-27 18:07:41 -08:00
conv_8_rgb_232="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_8_rgb_232="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_8_rgb_232)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_232" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_232, 1, [8bpp 232 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 222
conv_8_rgb_222="no"
conv_8_rgb_222="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 8bpp 222 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-222,
2002-11-07 23:46:04 -08:00
[ --enable-convert-8-rgb-222 enable 8bpp 222 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_222, 1, [8bpp 222 Converter Support])
2004-01-27 18:07:41 -08:00
conv_8_rgb_222="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_8_rgb_222="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_8_rgb_222)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_222" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_222, 1, [8bpp 222 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 221
conv_8_rgb_221="no"
conv_8_rgb_221="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 8bpp 221 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-221,
2002-11-07 23:46:04 -08:00
[ --enable-convert-8-rgb-221 enable 8bpp 221 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_221, 1, [8bpp 221 Converter Support])
2004-01-27 18:07:41 -08:00
conv_8_rgb_221="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_8_rgb_221="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_8_rgb_221)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_221" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_221, 1, [8bpp 221 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 121
conv_8_rgb_121="no"
conv_8_rgb_121="yes"
AC_MSG_CHECKING(whether to build 8bpp 121 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-121,
2004-01-27 18:07:41 -08:00
[ --enable-convert-8-rgb-121 enable 8bpp 121 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_8_RGB_121, 1, [8bpp 121 Converter Support])
conv_8_rgb_121="yes"
else
AC_MSG_RESULT(no)
conv_8_rgb_121="no"
fi
], [
AC_MSG_RESULT($conv_8_rgb_121)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_121" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_121, 1, [8bpp 121 Converter Support])
fi
]
)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 8bpp RGB 111
conv_8_rgb_111="no"
conv_8_rgb_111="yes"
AC_MSG_CHECKING(whether to build 8bpp 111 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-8-rgb-111,
2002-11-07 23:46:04 -08:00
[ --enable-convert-8-rgb-111 enable 8bpp 111 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_111, 1, [8bpp 111 Converter Support])
2004-01-27 18:07:41 -08:00
conv_8_rgb_111="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_8_rgb_111="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_8_rgb_111)
2005-10-06 15:53:20 -07:00
if test x"$conv_8_rgb_111" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_8_RGB_111, 1, [8bpp 111 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB 565
conv_16_rgb_565="no"
conv_16_rgb_565="yes"
2007-02-10 09:23:09 -08:00
AC_MSG_CHECKING(whether to build 16bpp 565 rgb converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-565,
2007-02-10 09:23:09 -08:00
[ --enable-convert-16-rgb-565 enable 16bpp rgb 565 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2007-02-10 09:23:09 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_565, 1, [16bpp RGB 565 Converter Support])
2004-01-27 18:07:41 -08:00
conv_16_rgb_565="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_565="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_565)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_565" = x"yes" ; then
2007-02-10 09:23:09 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_565, 1, [16bpp RGB 565 Converter Support])
fi
]
)
#######################################
## Convert to 16bpp BGR 565
conv_16_bgr_565="no"
conv_16_bgr_565="yes"
AC_MSG_CHECKING(whether to build 16bpp 565 bgr converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-bgr-565,
2007-02-10 09:23:09 -08:00
[ --enable-convert-16-bgr-565 enable 16bpp bgr 565 converter code], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_16_BGR_565, 1, [16bpp BGR 565 Converter Support])
conv_16_bgr_565="yes"
else
AC_MSG_RESULT(no)
conv_16_bgr_565="no"
fi
], [
AC_MSG_RESULT($conv_16_bgr_565)
if test x"$conv_16_bgr_565" = x"yes" ; then
AC_DEFINE(BUILD_CONVERT_16_BGR_565, 1, [16bpp BGR 565 Converter Support])
2004-01-27 18:07:41 -08:00
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB 555
conv_16_rgb_555="no"
conv_16_rgb_555="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp 555 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-555,
2002-11-07 23:46:04 -08:00
[ --enable-convert-16-rgb-555 enable 16bpp 555 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_555, 1, [16bpp 555 Converter Support])
2004-01-27 18:07:41 -08:00
conv_16_rgb_555="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_555="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_555)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_555" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_555, 1, [16bpp 555 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB 444
conv_16_rgb_444="no"
conv_16_rgb_444="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp 444 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-444,
2002-11-07 23:46:04 -08:00
[ --enable-convert-16-rgb-444 enable 16bpp 444 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_444, 1, [16bpp 444 Converter Support])
2004-01-27 18:07:41 -08:00
conv_16_rgb_444="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_444="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_444)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_444" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_444, 1, [16bpp 444 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB 565 (444 ipaq)
conv_16_rgb_ipq="no"
conv_16_rgb_ipq="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-ipq,
2002-11-07 23:46:04 -08:00
[ --enable-convert-16-rgb-ipq enable 16bpp 565 (444 ipaq) converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
2004-01-27 18:07:41 -08:00
conv_16_rgb_ipq="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_ipq="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_ipq)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_ipq" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB with rotation of 0
conv_16_rgb_rot_0="no"
conv_16_rgb_rot_0="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp rotation 0 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-rot-0,
2002-11-07 23:46:04 -08:00
[ --enable-convert-16-rgb-rot-0 enable 16bpp rotation 0 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT0, 1, [16bpp Rotation 0 Converter Code])
2004-01-27 18:07:41 -08:00
conv_16_rgb_rot_0="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_rot_0="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_rot_0)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_rot_0" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT0, 1, [16bpp Rotation 0 Converter Code])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2007-03-02 06:51:17 -08:00
#######################################
## Convert to 16bpp RGB with rotation of 180
conv_16_rgb_rot_180="no"
conv_16_rgb_rot_180="yes"
AC_MSG_CHECKING(whether to build 16bpp rotation 180 converter code)
AC_ARG_ENABLE(convert-16-rgb-rot-180,
[ --enable-convert-16-rgb-rot-180 enable 16bpp rotation 180 converter code], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT180, 1, [16bpp Rotation 180 Converter Code])
conv_16_rgb_rot_180="yes"
else
AC_MSG_RESULT(no)
conv_16_rgb_rot_180="no"
fi
], [
AC_MSG_RESULT($conv_16_rgb_rot_180)
if test x"$conv_16_rgb_rot_180" = x"yes" ; then
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT180, 1, [16bpp Rotation 180 Converter Code])
fi
]
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB with rotation of 270
conv_16_rgb_rot_270="no"
conv_16_rgb_rot_270="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp rotation 270 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-rot-270,
2002-11-07 23:46:04 -08:00
[ --enable-convert-16-rgb-rot-270 enable 16bpp rotation 270 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT270, 1, [16bpp Rotation 270 Converter Code])
2004-01-27 18:07:41 -08:00
conv_16_rgb_rot_270="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_rot_270="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_rot_270)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_rot_270" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT270, 1, [16bpp Rotation 270 Converter Code])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB with rotation of 90
conv_16_rgb_rot_90="no"
conv_16_rgb_rot_90="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 16bpp rotation 90 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-16-rgb-rot-90,
2002-11-07 23:46:04 -08:00
[ --enable-convert-16-rgb-rot-90 enable 16bpp rotation 90 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT90, 1, [16bpp Rotation 90 Converter Code])
2004-01-27 18:07:41 -08:00
conv_16_rgb_rot_90="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_16_rgb_rot_90="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_16_rgb_rot_90)
2005-10-06 15:53:20 -07:00
if test x"$conv_16_rgb_rot_90" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_16_RGB_ROT90, 1, [16bpp Rotation 90 Converter Code])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 24bpp RGB 888
conv_24_rgb_888="no"
conv_24_rgb_888="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 24bpp 888 rgb converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-24-rgb-888,
2002-11-07 23:46:04 -08:00
[ --enable-convert-24-rgb-888 enable 24bpp rgb 888 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_24_RGB_888, 1, [24bpp RGB 888 Converter Support])
2004-01-27 18:07:41 -08:00
conv_24_rgb_888="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_24_rgb_888="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_24_rgb_888)
2005-10-06 15:53:20 -07:00
if test x"$conv_24_rgb_888" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_24_RGB_888, 1, [24bpp RGB 888 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 24bpp BGR 888
conv_24_bgr_888="no"
conv_24_bgr_888="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 24bpp 888 bgr converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-24-bgr-888,
2002-11-07 23:46:04 -08:00
[ --enable-convert-24-bgr-888 enable 24bpp bgr 888 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_24_BGR_888, 1, [24bpp BGR 888 Converter Support])
2004-01-27 18:07:41 -08:00
conv_24_bgr_888="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_24_bgr_888="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
AC_MSG_RESULT(yes)
2005-10-06 15:53:20 -07:00
if test x"$conv_24_bgr_888" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_24_BGR_888, 1, [24bpp BGR 888 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGB 8888
conv_32_rgb_8888="no"
conv_32_rgb_8888="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp 8888 rgb converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-rgb-8888,
2002-11-07 23:46:04 -08:00
[ --enable-convert-32-rgb-8888 enable 32bpp rgb 8888 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_8888, 1, [32bpp RGB 8888 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_rgb_8888="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_rgb_8888="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_rgb_8888)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_rgb_8888" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_8888, 1, [32bpp RGB 8888 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGBX 8888
conv_32_rgbx_8888="no"
conv_32_rgbx_8888="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp 8888 rgbx converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-rgbx-8888,
2004-01-27 18:07:41 -08:00
[ --enable-convert-32-rgbx-8888 enable 32bpp rgbx 8888 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGBX_8888, 1, [32bpp RGBX 8888 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_rgbx_8888="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_rgbx_8888="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_rgbx_8888)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_rgbx_8888" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGBX_8888, 1, [32bpp RBGX 8888 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp BGR 8888
conv_32_bgr_8888="no"
conv_32_bgr_8888="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp 8888 bgr converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-bgr-8888,
2002-11-07 23:46:04 -08:00
[ --enable-convert-32-bgr-8888 enable 32bpp bgr 8888 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_BGR_8888, 1, [32bpp BGR 8888 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_bgr_8888="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_bgr_8888="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_bgr_8888)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_bgr_8888" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_BGR_8888, 1, [32bpp BGR 8888 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp BGRX 8888
conv_32_bgrx_8888="no"
conv_32_bgrx_8888="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp 8888 bgrx converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-bgrx-8888,
2004-01-27 18:07:41 -08:00
[ --enable-convert-32-bgrx-8888 enable 32bpp bgrx 8888 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_BGRX_8888, 1, [32bpp BGRX 8888 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_bgrx_8888="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_bgrx_8888="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_bgrx_8888)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_bgrx_8888" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_BGRX_8888, 1, [32bpp RBGX 8888 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGB with rotation of 0
conv_32_rgb_rot_0="no"
conv_32_rgb_rot_0="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp rotation 0 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-rgb-rot-0,
2002-11-07 23:46:04 -08:00
[ --enable-convert-32-rgb-rot-0 enable 32bpp rotation 0 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT0, 1, [32bpp Rotation 0 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_rgb_rot_0="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_rgb_rot_0="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_rgb_rot_0)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_rgb_rot_0" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT0, 1, [32bpp Rotation 0 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2007-03-02 06:51:17 -08:00
#######################################
## Convert to 32bpp RGB with rotation of 180
conv_32_rgb_rot_180="no"
conv_32_rgb_rot_180="yes"
AC_MSG_CHECKING(whether to build 32bpp rotation 180 converter code)
AC_ARG_ENABLE(convert-32-rgb-rot-180,
[ --enable-convert-32-rgb-rot-180 enable 32bpp rotation 180 converter code], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT180, 1, [32bpp Rotation 180 Converter Support])
conv_32_rgb_rot_180="yes"
else
AC_MSG_RESULT(no)
conv_32_rgb_rot_180="no"
fi
], [
AC_MSG_RESULT($conv_32_rgb_rot_180)
if test x"$conv_32_rgb_rot_180" = x"yes" ; then
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT180, 1, [32bpp Rotation 180 Converter Support])
fi
]
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGB with rotation of 270
conv_32_rgb_rot_270="no"
conv_32_rgb_rot_270="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp rotation 270 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-rgb-rot-270,
2002-11-07 23:46:04 -08:00
[ --enable-convert-32-rgb-rot-270 enable 32bpp rotation 270 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT270, 1, [32bpp Rotation 270 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_rgb_rot_270="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_rgb_rot_270="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_rgb_rot_270)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_rgb_rot_270" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT270, 1, [32bpp Rotation 270 Converter Support])
fi
2003-12-17 23:55:21 -08:00
]
2002-11-07 23:46:04 -08:00
)
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGB with rotation of 90
conv_32_rgb_rot_90="no"
conv_32_rgb_rot_90="yes"
2002-11-07 23:46:04 -08:00
AC_MSG_CHECKING(whether to build 32bpp rotation 90 converter code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(convert-32-rgb-rot-90,
2004-01-27 18:07:41 -08:00
[ --enable-convert-32-rgb-rot-90 enable 32bpp rotation 90 converter code], [
2005-10-06 15:53:20 -07:00
if test x"$enableval" = x"yes" ; then
2003-12-17 23:55:21 -08:00
AC_MSG_RESULT(yes)
2004-01-14 10:47:46 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT90, 1, [32bpp Rotation 90 Converter Support])
2004-01-27 18:07:41 -08:00
conv_32_rgb_rot_90="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2004-01-27 18:07:41 -08:00
conv_32_rgb_rot_90="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT($conv_32_rgb_rot_90)
2005-10-06 15:53:20 -07:00
if test x"$conv_32_rgb_rot_90" = x"yes" ; then
2004-01-27 18:07:41 -08:00
AC_DEFINE(BUILD_CONVERT_32_RGB_ROT90, 1, [32bpp Rotation 90 Converter Support])
2003-12-09 17:12:13 -08:00
fi
2003-12-17 23:55:21 -08:00
]
2003-12-09 17:12:13 -08:00
)
2004-05-02 01:41:11 -07:00
# Setting have_valgrind to "no" seems pointless, but we just need to
# put something in as the 4th parameter, so configure doesn't abort
# when valgrind.pc isn't found.
2006-06-07 16:30:15 -07:00
have_valgrind="no"
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
VALGRIND_LIBS="" # dont use LIBS
2004-05-02 01:41:11 -07:00
2006-06-07 16:30:15 -07:00
AC_ARG_ENABLE(valgrind,
[ --enable-valgrind enable valgrind fixes to stop false reports], [
if test x"$enableval" = x"yes" ; then
have_valgrind="yes"
else
have_valgrind="no"
VALGRIND_CFLAGS=""
fi
], [
have_valgrind=$have_valgrind
]
)
if test x$have_valgrind = "xyes"; then
AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
fi
2004-05-02 01:41:11 -07:00
2004-01-27 18:07:41 -08:00
#####################################################################
## Fill in flags
2002-11-07 23:46:04 -08:00
2004-05-02 01:41:11 -07:00
AC_SUBST(VALGRIND_CFLAGS)
2007-05-26 23:43:23 -07:00
AC_SUBST(ddraw_libs)
2007-10-08 12:08:42 -07:00
AC_SUBST(ddraw_16_libs)
2007-08-17 02:16:26 -07:00
AC_SUBST(direct3d_libs)
2007-05-26 23:43:23 -07:00
2007-08-05 00:22:44 -07:00
AC_SUBST(glew_libs)
2002-11-07 23:46:04 -08:00
AC_SUBST(x_cflags)
AC_SUBST(x_libs)
2007-07-16 00:25:35 -07:00
AC_SUBST(sdl_cflags)
AC_SUBST(sdl_libs)
2005-03-20 15:44:22 -08:00
AC_SUBST(xcb_cflags)
AC_SUBST(xcb_libs)
2006-04-23 08:38:23 -07:00
AC_SUBST(xcbrender_cflags)
AC_SUBST(xcbrender_libs)
2005-03-20 15:44:22 -08:00
2002-11-07 23:46:04 -08:00
AC_SUBST(gl_cflags)
AC_SUBST(gl_libs)
AC_SUBST(qt_cflags)
AC_SUBST(qt_libs)
AC_SUBST(qt_moc)
2006-04-08 05:22:18 -07:00
AC_SUBST(gif_cflags)
AC_SUBST(gif_libs)
2002-11-07 23:46:04 -08:00
AC_SUBST(png_cflags)
AC_SUBST(png_libs)
AC_SUBST(jpeg_cflags)
AC_SUBST(jpeg_libs)
2006-04-08 17:10:47 -07:00
AC_SUBST(tiff_cflags)
AC_SUBST(tiff_libs)
2006-08-12 02:16:30 -07:00
AC_SUBST(xpm_cflags)
AC_SUBST(xpm_libs)
2006-08-17 09:43:30 -07:00
AC_SUBST(svg_cflags)
AC_SUBST(svg_libs)
2003-12-15 17:58:17 -08:00
AC_SUBST(altivec_cflags)
2006-10-27 20:02:23 -07:00
AC_SUBST(pthread_cflags)
AC_SUBST(pthread_libs)
2004-01-27 18:07:41 -08:00
#####################################################################
## Output
2002-11-07 23:46:04 -08:00
AC_OUTPUT([
Makefile
2007-03-31 09:07:43 -07:00
evas-cairo-x11.pc
evas-directfb.pc
evas-framebuffer.pc
evas-glitz-x11.pc
2007-08-05 00:22:44 -07:00
evas-opengl-glew.pc
2007-03-31 09:07:43 -07:00
evas-opengl-x11.pc
evas-software-buffer.pc
evas-software-qtopia.pc
evas-software-x11.pc
2007-08-14 13:21:06 -07:00
evas-software-16-x11.pc
2007-03-31 09:07:43 -07:00
evas-software-xcb.pc
evas-xrender-x11.pc
evas-xrender-xcb.pc
2007-07-16 01:13:40 -07:00
evas-software-ddraw.pc
2007-10-08 12:08:42 -07:00
evas-software-16-ddraw.pc
2007-08-17 02:16:26 -07:00
evas-direct3d.pc
2007-10-28 07:11:56 -07:00
evas-software-sdl.pc
2005-03-04 06:34:35 -08:00
evas.pc
2002-11-07 23:46:04 -08:00
src/Makefile
src/lib/Makefile
src/lib/canvas/Makefile
2006-10-28 00:06:15 -07:00
src/lib/data/Makefile
2002-11-07 23:46:04 -08:00
src/lib/file/Makefile
2004-04-20 23:38:24 -07:00
src/lib/imaging/Makefile
2007-07-16 00:25:35 -07:00
src/lib/cache/Makefile
2002-11-07 23:46:04 -08:00
src/lib/engines/Makefile
src/lib/engines/common/Makefile
2006-05-02 00:28:49 -07:00
src/lib/engines/common/evas_op_add/Makefile
src/lib/engines/common/evas_op_blend/Makefile
src/lib/engines/common/evas_op_copy/Makefile
src/lib/engines/common/evas_op_mask/Makefile
src/lib/engines/common/evas_op_mul/Makefile
src/lib/engines/common/evas_op_sub/Makefile
2006-01-14 04:13:38 -08:00
src/modules/Makefile
src/modules/engines/Makefile
2006-03-02 00:06:10 -08:00
src/modules/engines/software_generic/Makefile
2007-05-26 23:43:23 -07:00
src/modules/engines/software_ddraw/Makefile
2007-08-17 02:16:26 -07:00
src/modules/engines/direct3d/Makefile
2006-01-14 04:13:38 -08:00
src/modules/engines/software_x11/Makefile
src/modules/engines/software_xcb/Makefile
src/modules/engines/fb/Makefile
src/modules/engines/buffer/Makefile
src/modules/engines/software_win32_gdi/Makefile
src/modules/engines/software_qtopia/Makefile
src/modules/engines/directfb/Makefile
src/modules/engines/gl_common/Makefile
2007-08-05 00:22:44 -07:00
src/modules/engines/gl_glew/Makefile
2006-01-14 04:13:38 -08:00
src/modules/engines/gl_x11/Makefile
src/modules/engines/cairo_common/Makefile
src/modules/engines/cairo_x11/Makefile
src/modules/engines/xrender_x11/Makefile
2006-03-10 11:10:07 -08:00
src/modules/engines/xrender_xcb/Makefile
2007-07-16 00:25:35 -07:00
src/modules/engines/software_sdl/Makefile
2006-11-10 22:03:13 -08:00
src/modules/engines/glitz_x11/Makefile
2007-04-29 08:45:40 -07:00
src/modules/engines/software_16/Makefile
src/modules/engines/software_16_x11/Makefile
2007-10-08 12:08:42 -07:00
src/modules/engines/software_16_ddraw/Makefile
2006-01-14 12:03:42 -08:00
src/modules/loaders/Makefile
src/modules/loaders/edb/Makefile
src/modules/loaders/eet/Makefile
2006-04-08 05:22:18 -07:00
src/modules/loaders/gif/Makefile
2006-01-14 12:03:42 -08:00
src/modules/loaders/jpeg/Makefile
src/modules/loaders/png/Makefile
2006-04-08 17:10:47 -07:00
src/modules/loaders/tiff/Makefile
2006-08-12 02:16:30 -07:00
src/modules/loaders/xpm/Makefile
2006-08-17 09:43:30 -07:00
src/modules/loaders/svg/Makefile
2006-01-15 02:35:02 -08:00
src/modules/savers/Makefile
src/modules/savers/edb/Makefile
src/modules/savers/eet/Makefile
src/modules/savers/jpeg/Makefile
src/modules/savers/png/Makefile
2006-04-10 00:27:54 -07:00
src/modules/savers/tiff/Makefile
2002-11-07 23:46:04 -08:00
src/lib/include/Makefile
2005-03-04 06:34:35 -08:00
README
evas.spec
2006-03-12 02:40:49 -08:00
debian/changelog
2002-11-07 23:46:04 -08:00
])
2004-01-27 18:07:41 -08:00
#####################################################################
## Info
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Configuration Options Summary:"
echo
echo "Engines:"
2007-10-08 23:53:45 -07:00
echo " Software DirectDraw........: $have_evas_software_ddraw"
echo " Direct3d...................: $have_evas_direct3d"
echo " Software X11...............: $have_evas_software_x11"
echo " Software XCB...............: $have_evas_software_xcb"
echo " Software Framebuffer.......: $have_evas_fb"
echo " Software Qtopia............: $have_evas_qtopia"
echo " Software Memory Buffer.....: $have_evas_buffer"
echo " DirectFB...................: $have_evas_directfb"
2007-10-28 07:11:56 -07:00
echo " Software SDL...............: $have_evas_sdl"
2007-10-08 23:53:45 -07:00
echo " OpenGL Glew................: $have_evas_gl_glew"
echo " OpenGL X11.................: $have_evas_gl_x11"
echo " Cairo X11..................: $have_evas_cairo_x11"
echo " XRender X11................: $have_evas_xrender_x11"
echo " XRender XCB................: $have_evas_xrender_xcb"
echo " Glitz X11..................: $have_evas_glitz_x11"
echo " Software 16bit X11.........: $have_evas_software_16_x11"
echo " Software 16bit Directdraw..: $have_evas_software_16_ddraw"
2004-01-27 18:07:41 -08:00
# FIXME: opengl engine needs to be fixed and tested lots for all drivers
# FIXME: xrender engine to be written
echo
echo "Image Loaders:"
2006-04-08 05:22:18 -07:00
echo " GIF.....................: $have_gif"
2004-01-27 18:07:41 -08:00
echo " PNG.....................: $have_png"
echo " JPEG....................: $have_jpeg"
2007-03-20 19:15:30 -07:00
echo " EET.....................: $have_eet_image_loader"
2007-03-20 19:28:39 -07:00
echo " EDB.....................: $have_edb_image_loader"
2006-04-08 17:10:47 -07:00
echo " TIFF....................: $have_tiff"
2006-08-12 02:16:30 -07:00
echo " XPM.....................: $have_xpm"
2006-08-17 09:43:30 -07:00
echo " SVG.....................: $have_svg"
2004-01-27 18:07:41 -08:00
# FIXME: need to add modular image loader system
# FIXME: add more image loader modules
echo
echo "Font Sourcing Systems:"
2007-03-20 19:15:30 -07:00
echo " EET.....................: $have_eet_font_loader"
2006-03-18 20:29:57 -08:00
echo
echo "Font Searching Systems:"
2007-03-23 15:26:26 -07:00
echo " Fontconfig..............: $have_fontconfig"
2004-01-27 18:07:41 -08:00
# FIXME: add non freetype2 font engine support
# FIXME: make freetype2 optional
echo
echo "CPU Specific Extensions:"
echo " Fallback C Code.........: $build_cpu_c"
echo " MMX.....................: $build_cpu_mmx"
echo " SSE.....................: $build_cpu_sse"
echo " ALTIVEC.................: $build_cpu_altivec"
2007-04-15 09:47:58 -07:00
echo " Thread Support..........: $build_pthreads"
2004-01-27 18:07:41 -08:00
echo
echo "ARGB Software Engine Options:"
echo " Sampling Scaler.........: $scaler_sample"
echo " Smooth Scaler...........: $scaler_smooth"
# FIXME: add an mxx scaler routine
echo " YUV Converter...........: $conv_yuv"
# FIXME: add more YUV format and colorvariant support
echo
echo "ARGB Conversion Options:"
echo " Smaller Dither Mask.....: $conv_small_dither"
2007-04-24 04:16:24 -07:00
echo " No Dither Mask for 16bpp: $conv_no_dither"
2004-01-27 18:07:41 -08:00
echo " 8bpp RGB 332............: $conv_8_rgb_332"
echo " 8bpp RGB 666............: $conv_8_rgb_666"
echo " 8bpp RGB 232............: $conv_8_rgb_232"
echo " 8bpp RGB 222............: $conv_8_rgb_222"
echo " 8bpp RGB 221............: $conv_8_rgb_221"
echo " 8bpp RGB 121............: $conv_8_rgb_121"
echo " 8bpp RGB 111............: $conv_8_rgb_111"
# FIXME: add grayscale and B&W support
echo " 16bpp RGB 565...........: $conv_16_rgb_565"
2007-02-10 09:23:09 -08:00
echo " 16bpp BGR 565...........: $conv_16_bgr_565"
2004-01-27 18:07:41 -08:00
echo " 16bpp RGB 555...........: $conv_16_rgb_555"
echo " 16bpp RGB 444...........: $conv_16_rgb_444"
echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
# FIXME: add 555 (444 ipaq) support
# FIXME: add 24bpp 666 support
# FIXME: add 32bpp 666 support
# FIXME: add 30bpp support
# FIXME: add palletted support
# FIXME: add 8bpp and below rotation
echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0"
echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90"
2007-03-02 06:51:17 -08:00
echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180"
2004-01-27 18:07:41 -08:00
echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270"
echo " 24bpp RGB 888...........: $conv_24_rgb_888"
echo " 24bpp BGR 888...........: $conv_24_bgr_888"
# FIXME: add 24bpp rotation
echo " 32bpp RGB 8888..........: $conv_32_rgb_8888"
echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888"
echo " 32bpp BGR 8888..........: $conv_32_bgr_8888"
echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888"
echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0"
echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90"
2007-03-02 06:51:17 -08:00
echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180"
2004-01-27 18:07:41 -08:00
echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270"
echo
echo "------------------------------------------------------------------------"
echo
echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE,"
echo "and then afterwards as root (or the user who will install this), type"
echo "'make install'. Change users with 'su' or 'sudo' appropriately."
echo