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
2008-09-24 19:59:59 -07:00
AC_INIT(evas, 0.9.9.050, enlightenment-devel@lists.sourceforge.net)
2007-11-04 01:21:50 -08:00
AC_PREREQ(2.52)
2008-09-30 11:07:29 -07:00
AC_CONFIG_SRCDIR(configure.ac)
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
2008-12-17 05:03:00 -08:00
AC_C___ATTRIBUTE__
2007-11-04 01:21:50 -08:00
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
2007-11-06 21:31:17 -08:00
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);}'`
2007-11-04 01:21:50 -08:00
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
AC_SUBST(version_info)
2008-11-23 22:18:31 -08:00
2009-02-28 03:47:43 -08:00
want_fontconfig="auto"
2008-11-23 22:18:31 -08:00
want_evas_engine_buffer="yes"
want_evas_engine_software_x11="no"
want_evas_engine_xrender_x11="no"
want_evas_engine_gl_x11="no"
want_evas_engine_glitz_x11="no"
want_evas_engine_cairo_x11="no"
want_evas_engine_software_xcb="no"
want_evas_engine_xrender_xcb="no"
want_evas_engine_software_ddraw="no"
want_evas_engine_direct3d="no"
want_evas_engine_quartz="no"
want_evas_engine_gl_glew="no"
want_evas_engine_software_sdl="no"
want_evas_engine_fb="no"
want_evas_engine_directfb="no"
want_evas_engine_software_qtopia="no"
want_evas_engine_software_16_x11="no"
want_evas_engine_software_16_ddraw="no"
want_evas_engine_software_16_wince="no"
want_evas_image_loader_edb="yes"
want_evas_image_loader_eet="yes"
want_evas_image_loader_gif="yes"
want_evas_image_loader_jpeg="yes"
want_evas_image_loader_pmaps="yes"
want_evas_image_loader_png="yes"
want_evas_image_loader_svg="yes"
want_evas_image_loader_tiff="yes"
want_evas_image_loader_xpm="yes"
want_evas_font_loader_eet="yes"
case "$host_os" in
mingw32ce* | cegcc*)
2009-02-28 03:47:43 -08:00
want_fontconfig="no"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_16_wince="yes"
want_evas_image_loader_edb="no"
want_evas_image_loader_gif="no"
want_evas_image_loader_svg="no"
want_evas_image_loader_tiff="no"
;;
mingw*)
want_evas_engine_software_ddraw="yes"
2009-03-24 00:44:54 -07:00
want_evas_engine_direct3d="yes"
2008-11-23 22:18:31 -08:00
want_evas_engine_software_16_ddraw="yes"
want_evas_image_loader_edb="no"
want_evas_image_loader_svg="no"
;;
2009-01-11 00:00:06 -08:00
darwin*)
want_evas_engine_quartz="auto"
;;
2008-11-23 22:18:31 -08:00
*)
want_evas_engine_software_x11="auto"
want_evas_engine_xrender_x11="auto"
want_evas_engine_software_16_x11="auto"
;;
esac
2008-07-18 02:22:09 -07:00
LT_PROG_RC
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")
2008-03-14 09:49:49 -07:00
PKG_PROG_PKG_CONFIG
2008-12-03 14:21:40 -08:00
dnl wierd debian etch bug where pthread_barrier doesn't work without adding
dnl this.
CFLAGS="${CFLAGS=} -D_GNU_SOURCE"
AC_SUBST(CFLAGS)
2008-11-05 09:21:04 -08:00
WIN32_CPPFLAGS=""
2008-03-14 09:49:49 -07:00
WIN32_CFLAGS=""
2008-04-22 23:55:10 -07:00
lt_enable_auto_import=""
2007-02-10 09:23:09 -08:00
case "$host_os" in
2008-04-23 12:17:59 -07:00
mingw*|cegcc*)
2008-03-14 09:49:49 -07:00
PKG_CHECK_MODULES(EVIL, evil)
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
dnl needed for correct definition of EAPI
AC_DEFINE(EFL_EVAS_BUILD, 1, [Define to mention that evas is built])
if test "$host_os" = "cegcc" ; then
2008-11-05 09:21:04 -08:00
WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
2008-03-14 09:49:49 -07:00
WIN32_CFLAGS="-mwin32"
2008-04-22 23:55:10 -07:00
lt_enable_auto_import="-Wl,--enable-auto-import"
2008-03-14 09:49:49 -07:00
fi
2008-11-05 09:21:04 -08:00
if test "$host_os" = "mingw32ce" ; then
WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
fi
2007-11-04 11:09:19 -08:00
;;
2007-02-10 09:23:09 -08:00
esac
2008-11-05 09:21:04 -08:00
AC_SUBST(WIN32_CPPFLAGS)
2008-03-14 09:49:49 -07:00
AC_SUBST(WIN32_CFLAGS)
2008-04-22 23:55:10 -07:00
AC_SUBST(lt_enable_auto_import)
2007-02-10 09:23:09 -08:00
2002-11-07 23:46:04 -08:00
2007-12-06 01:36:06 -08:00
dnl when used, that option makes configure script fails when
dnl a requirement is selected, but not met.
AC_ARG_ENABLE(strict,
AC_HELP_STRING(
[enable strict mode]),
[use_strict="yes"],
[use_strict="no"]
)
2008-10-13 08:58:56 -07:00
#####################################################################
# Check evas strong dependencie
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
PKG_CHECK_MODULES([EINA], [eina-0])
2007-11-18 14:10:50 -08:00
2008-11-23 22:18:31 -08:00
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 9.3.0])
2002-11-07 23:46:04 -08:00
2007-12-15 19:37:03 -08:00
#######################################
## Simple X11 build/link
AC_ARG_ENABLE(simple-x11,
AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
[ want_evas_simple_x11=$enableval ]
)
2006-03-18 20:29:57 -08:00
#######################################
## FontConfig
2007-11-04 11:09:19 -08:00
have_fontconfig="no"
2007-03-23 15:25:12 -07:00
AC_ARG_ENABLE(fontconfig,
AC_HELP_STRING(
2007-11-04 12:01:33 -08:00
[--disable-fontconfig],
[disable fontconfig for finding fonts. [[default=enabled]]]
),
[ want_fontconfig=$enableval ]
2006-03-18 20:29:57 -08:00
)
2007-03-23 15:25:12 -07:00
2007-12-06 01:36:06 -08:00
if test "x$want_fontconfig" = "xyes" -o "x$want_fontconfig" = "xauto" ; then
2007-03-23 15:25:12 -07:00
# Check if really available
2007-12-06 01:36:06 -08:00
PKG_CHECK_MODULES(FONTCONFIG, fontconfig,
[
have_fontconfig="yes"
AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
],
[
if test "x$want_fontconfig" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Fontconfig not found (strict dependencies checking)])
fi
])
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
2008-11-20 14:16:02 -08:00
mingw32ce* | cegcc*)
2008-04-23 12:17:59 -07:00
dnl managed by evil
2008-04-29 15:33:30 -07:00
AC_DEFINE(HAVE_DLADDR)
2007-02-10 09:23:09 -08:00
;;
2008-06-24 23:47:11 -07:00
mingw*)
dnl nothing on mingw platform
;;
2007-02-10 09:23:09 -08:00
*)
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)
2008-10-29 01:34:52 -07:00
AC_CHECK_HEADER([fnmatch.h],
[dummy="yes"],
[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])])
2007-05-26 23:43:23 -07:00
2008-10-29 01:34:52 -07:00
AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"])
2007-05-26 23:43:23 -07:00
if test "x$res" = "xno"; then
2008-10-29 01:34:52 -07:00
AC_SEARCH_LIBS([fnmatch],
2008-11-14 01:57:45 -08:00
[fnmatch evil iberty],
2008-10-29 01:34:52 -07:00
[res="yes"],
[res="no"])
if test "x$res" = "xno"; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty, nor libevil])
2008-11-20 14:16:02 -08:00
fi
2007-05-26 23:43:23 -07:00
fi
2004-01-27 18:07:41 -08:00
#####################################################################
## Engines
2002-11-07 23:46:04 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([buffer], [${want_evas_engine_buffer}], [no], [Buffer])
2007-10-08 12:08:42 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-x11], [${want_evas_engine_software_x11}], [yes], [Software X11])
2007-05-26 23:43:23 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([xrender-x11], [${want_evas_engine_xrender_x11}], [yes], [XRender X11])
2007-10-08 12:08:42 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([gl-x11], [${want_evas_engine_gl_x11}], [yes], [OpenGL X11])
2007-10-08 12:08:42 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([glitz-x11], [${want_evas_engine_glitz_x11}], [yes], [Glitz X11])
2007-05-26 23:43:23 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([cairo-x11], [${want_evas_engine_cairo_x11}], [yes], [Cairo X11])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-xcb], [${want_evas_engine_software_xcb}], [no], [Software XCB])
2007-08-17 02:16:26 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([xrender-xcb], [${want_evas_engine_xrender_xcb}], [no], [XRender XCB])
2007-08-17 02:16:26 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw])
2008-04-23 12:17:59 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([direct3d], [${want_evas_engine_direct3d}], [no], [Direct3D])
2008-04-23 12:17:59 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([quartz], [${want_evas_engine_quartz}], [no], [Quartz])
2008-04-23 12:17:59 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([gl-glew], [${want_evas_engine_gl_glew}], [no], [OpenGL Glew])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-sdl], [${want_evas_engine_software_sdl}], [no], [Software SDL])
2003-12-17 23:55:21 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([fb], [${want_evas_engine_fb}], [no], [Framebuffer])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([directfb], [${want_evas_engine_directfb}], [no], [DirectFB])
2007-04-29 08:45:40 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-qtopia], [${want_evas_engine_software_qtopia}], [no], [Qtopia])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-16-x11], [${want_evas_engine_software_16_x11}], [yes], [Software X11 16 bits])
2005-03-20 15:44:22 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-16-ddraw], [${want_evas_engine_software_16_ddraw}], [no], [Software DirectDraw 16 bits])
2008-04-11 17:32:30 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}], [no], [Software Windows CE 16 bits])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
# common cairo
have_evas_engine_cairo_common="no"
if test "x${have_evas_engine_cairo_x11}" = "xyes" ; then
have_evas_engine_cairo_common="yes"
AC_DEFINE([BUILD_ENGINE_CAIRO_COMMON], [1], [Generic Cairo Rendering Support])
2003-12-17 23:55:21 -08:00
fi
2008-11-23 22:18:31 -08:00
AM_CONDITIONAL([BUILD_ENGINE_CAIRO_COMMON], [test "x$have_evas_engine_cairo_common" = "xyes"])
2007-11-04 11:09:19 -08:00
2008-11-23 22:18:31 -08:00
# common gl
have_evas_engine_gl_common="no"
if test "x$have_evas_engine_gl_x11" = "xyes" -o "x$have_evas_engine_gl_glew" = "xyes"; then
AC_DEFINE(BUILD_ENGINE_GL_COMMON, 1, [Generic OpenGL Rendering Support])
have_evas_engine_gl_common="yes"
evas_engine_gl_common_libs="-lglu32"
2003-12-17 23:55:21 -08:00
fi
2008-11-23 22:18:31 -08:00
if test "x$have_evas_engine_gl_x11" = "xyes" ; then
evas_engine_gl_common_libs="-lGL -lGLU -lpthread"
2003-12-17 23:55:21 -08:00
fi
2007-08-07 03:18:51 -07:00
2008-11-23 22:18:31 -08:00
if test "x$have_evas_engine_gl_glew" = "xyes" ; then
evas_engine_gl_common_libs="-lglu32"
2003-12-17 23:55:21 -08:00
fi
2008-11-23 22:18:31 -08:00
AC_SUBST([evas_engine_gl_common_libs])
2007-08-07 03:18:51 -07:00
2008-11-23 22:18:31 -08:00
AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, test "x$have_evas_engine_gl_common" = "xyes")
2008-09-19 19:03:22 -07:00
2008-11-23 22:18:31 -08:00
# SDL primitive
sdl_primitive="no"
2008-09-19 19:03:22 -07:00
2008-11-23 22:18:31 -08:00
AC_ARG_ENABLE([sdl-primitive],
[AC_HELP_STRING([--enable-sdl-primitive], [])],
[sdl_primitive=${enableval}]
2007-11-04 11:09:19 -08:00
)
2008-11-23 22:18:31 -08:00
AC_MSG_CHECKING([whether to use SDL primitive when possible])
AC_MSG_RESULT([${sdl_primitive}])
2007-08-05 00:22:44 -07:00
2008-11-23 22:18:31 -08:00
if test "x${sdl_primitive}" = "xyes" ; then
AC_DEFINE([ENGINE_SDL_PRIMITIVE], [1], [Use SDL primitive when possible])
2007-08-05 00:22:44 -07:00
fi
2008-11-23 22:18:31 -08:00
# 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.
have_evas_engine_software_16="no"
if test "x$have_evas_engine_software_16_x11" = "xyes"; then
have_evas_engine_software_16="yes"
2007-11-04 11:09:19 -08:00
fi
2008-11-23 22:18:31 -08:00
if test "x$have_evas_engine_software_sdl" = "xyes"; then
have_evas_engine_software_16="yes"
2004-08-16 23:03:39 -07:00
fi
2008-11-23 22:18:31 -08:00
if test "x$have_evas_engine_software_16_ddraw" = "xyes"; then
have_evas_engine_software_16="yes"
2005-10-02 08:15:44 -07:00
fi
2008-11-23 22:18:31 -08:00
if test "x$have_evas_engine_software_16_wince" = "xyes"; then
have_evas_engine_software_16="yes"
2006-03-10 11:10:07 -08:00
fi
2008-11-23 22:18:31 -08:00
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_engine_software_16" = "xyes")
2007-11-04 11:09:19 -08:00
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
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Edb], [${want_evas_image_loader_edb}])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Eet], [${want_evas_image_loader_eet}])
EVAS_CHECK_FONT_LOADER([${want_evas_font_loader_eet}])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Gif], [${want_evas_image_loader_gif}])
2006-04-08 05:22:18 -07:00
2008-11-20 14:00:50 -08:00
have_evas_image_saver_jpeg="no"
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Jpeg], [${want_evas_image_loader_jpeg}])
2007-12-06 01:36:06 -08:00
2007-02-10 09:23:09 -08:00
dnl Windows has no sigsetjmp function, nor equivalent.
dnl So we disable the jpeg saver.
2008-11-20 14:00:50 -08:00
dnl TODO: must find a workaround
2007-02-10 09:23:09 -08:00
case "$host_os" in
2008-11-20 14:00:50 -08:00
mingw* | cegcc*)
;;
*)
if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then
have_evas_image_saver_jpeg="yes"
2007-12-06 01:36:06 -08:00
fi
2008-11-20 14:00:50 -08:00
;;
esac
AM_CONDITIONAL([BUILD_SAVER_JPEG], [test "x${have_evas_image_saver_jpeg}" = "xyes"])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([PMAPS], [${want_evas_image_loader_pmaps}])
2007-12-06 01:36:06 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([PNG], [${want_evas_image_loader_png}])
2006-08-17 09:43:30 -07:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([SVG], [${want_evas_image_loader_svg}])
2008-03-01 07:27:20 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([Tiff], [${want_evas_image_loader_tiff}])
2008-03-01 07:27:20 -08:00
2008-11-23 22:18:31 -08:00
EVAS_CHECK_IMAGE_LOADER([XPM], [${want_evas_image_loader_xpm}])
2008-03-01 07:27:20 -08:00
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"
2008-04-30 05:21:31 -07:00
has_pthreads="no"
2008-09-16 07:52:57 -07:00
need_pthreads="no"
# basic pthread support
AC_CHECK_HEADER(pthread.h,
[
has_pthreads="yes"
],
[
has_pthreads="no"
]
)
2006-11-15 22:31:52 -08:00
# sched_getaffinity pthread_attr_setaffinity_np
2007-11-04 23:55:17 -08:00
AC_CHECK_HEADERS(pthread.h sched.h,
2007-07-16 01:13:40 -07:00
[
AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np,
2007-11-04 11:09:19 -08:00
[
2007-07-16 01:13:40 -07:00
AC_CHECK_LIB(pthread, pthread_barrier_wait,
2008-09-16 07:52:57 -07:00
[ build_pthreads="yes" ],
2006-11-17 18:51:27 -08:00
[ build_pthreads="no" ]
)
2007-11-04 11:09:19 -08:00
],
2006-11-15 22:31:52 -08:00
[ build_pthreads="no" ]
)
],
2006-11-15 19:20:24 -08:00
[ 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)
2008-12-01 18:33:09 -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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-pthreads], [enable threaded rendering]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2008-05-05 02:21:15 -07:00
if test "x$build_pthreads" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
build_pthreads="yes"
2008-09-16 07:52:57 -07:00
need_pthreads="yes"
2008-05-05 02:21:15 -07:00
else
if "x$use_strict" = "xyes"; then
AC_MSG_ERROR(pthreads headers or functions not found (strict dependencies checking))
else
AC_MSG_RESULT(no: pthread headers or functions not found)
fi
fi
2006-10-27 20:02:23 -07:00
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)
2007-11-04 11:09:19 -08:00
if test "x$build_pthreads" = "xyes" ; then
2006-10-27 20:02:23 -07:00
AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
2008-09-16 07:52:57 -07:00
need_pthreads="yes"
2006-10-27 20:02:23 -07:00
fi
]
)
2008-04-30 05:21:31 -07:00
#######################################
## Async events
build_async_events="auto"
AC_MSG_CHECKING(whether to build Async Events support)
AC_ARG_ENABLE(async-events,
AC_HELP_STRING([--enable-async-events], [enable async events support]),
[ build_async_events=$enableval ]
)
AC_MSG_RESULT($build_async_events)
AC_MSG_CHECKING(whether we can build Async Events support)
if test \( "x$build_async_events" = "xyes" -o "x$build_async_events" = "xauto" \) -a "x$has_pthreads" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_ASYNC_EVENTS, 1, [Build async events support])
build_async_events="yes"
2008-09-16 07:52:57 -07:00
need_pthreads="yes"
2008-04-30 05:21:31 -07:00
else
AC_MSG_RESULT(no)
build_async_events="no"
fi
2008-09-16 07:52:57 -07:00
#######################################
## Async image preload
build_async_preload="auto"
AC_MSG_CHECKING(whether to build Async Image Preload support)
AC_ARG_ENABLE(async-preload,
AC_HELP_STRING([--enable-async-preload], [enable async image preloading support]),
[ build_async_preload=$enableval ]
)
AC_MSG_RESULT($build_async_preload)
AC_MSG_CHECKING(whether we can build Async Image Preload support)
if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_ASYNC_PRELOAD, 1, [Build async image preload support])
build_async_preload="yes"
need_pthreads="yes"
else
AC_MSG_RESULT(no)
build_async_preload="no"
fi
#######################################
## Link with pthread if needed
AC_MSG_CHECKING(whether we should link with pthread)
if test "x$need_pthreads" = "xyes"; then
AC_MSG_RESULT(yes)
pthread_cflags=""
pthread_libs="-lpthread"
else
AC_MSG_RESULT(no)
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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-mmx], [enable mmx code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; 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)
2007-11-04 11:09:19 -08:00
if test "x$build_cpu_mmx" = "xyes" ; 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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-sse], [enable sse code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; 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)
2007-11-04 11:09:19 -08:00
if test "x$build_cpu_sse" = "xyes" ; 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*)
2007-12-06 01:36:06 -08:00
build_cpu_altivec="auto"
2004-01-27 18:07:41 -08:00
;;
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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-altivec], [enable altivec code]),
2007-12-06 01:36:06 -08:00
[ build_cpu_altivec=$enableval ],
[
if test ! "x$build_cpu_altivec" = "xauto"; then
build_cpu_altivec="no"
fi
]
2003-12-15 17:58:17 -08:00
)
2005-10-12 19:38:04 -07:00
AC_MSG_RESULT($build_cpu_altivec)
2007-12-06 01:36:06 -08:00
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_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
],
[
2007-12-06 01:36:06 -08:00
if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR(Altivec not found (strict dependencies checking))
fi
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
2007-12-06 01:36:06 -08:00
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)
2007-11-04 11:09:19 -08:00
if test "x$GCC" = "xyes"; then
2005-10-12 19:38:04 -07:00
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
2009-03-13 23:48:25 -07:00
AC_MSG_RESULT($altivec_cflags)
2005-10-12 19:38:04 -07:00
CFLAGS="$CFLAGS $altivec_cflags"
2003-12-15 17:58:17 -08:00
fi
2009-03-13 23:48:25 -07:00
#######################################
## NEON
build_cpu_neon="no"
case $host_cpu in
armv7*)
build_cpu_neon="yes"
;;
esac
AC_MSG_CHECKING(whether to build neon code)
AC_ARG_ENABLE(cpu-neon,
AC_HELP_STRING([--enable-cpu-neon], [enable neon code]),
[
if test "x$enableval" = "xyes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
build_cpu_neon="yes"
else
AC_MSG_RESULT(no)
build_cpu_neon="no"
fi
],
[
AC_MSG_RESULT($build_cpu_neon)
if test "x$build_cpu_neon" = "xyes" ; then
AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-cpu-c], [enable C code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; 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])
2007-11-04 11:09:19 -08:00
build_cpu_c="yes"
2003-10-14 21:20:38 -07:00
else
AC_MSG_RESULT(no)
2007-11-04 11:09:19 -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)
2007-11-04 11:09:19 -08:00
if test "x$build_cpu_c" = "xyes" ; 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
)
2008-09-12 06:14:08 -07:00
#######################################
## MAGIC_DEBUG
want_evas_magic_debug="yes"
AC_MSG_CHECKING(whether to check magic for evas object)
AC_ARG_ENABLE(evas-magic-debug,
AC_HELP_STRING(
[--disable-evas-magic-debug],
[disable MAGIC_DEBUG check when people pass in wrong object type. [[default=enabled]]]
),
[ want_evas_magic_debug="$enableval" ]
)
AC_MSG_RESULT($want_evas_magic_debug)
AM_CONDITIONAL(EVAS_MAGIC_DEBUG, test "x$want_evas_magic_debug" = "xyes")
if test "x$want_evas_magic_debug" = "xyes"; then
AC_DEFINE(EVAS_MAGIC_DEBUG, 1, [complain when peole pass in wrong object types etc.])
fi
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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-scale-sample], [enable sampling scaler code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; 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)
2007-11-04 11:09:19 -08:00
if test "x$scaler_sample" = "xyes" ; 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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-scale-smooth], [enable smooth scaler code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; 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)
2007-11-04 11:09:19 -08:00
if test "x$scaler_smooth" = "xyes" ; 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,
2007-11-05 22:44:54 -08:00
AC_HELP_STRING([--enable-convert-yuv], [enable yuv converter code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
2007-11-04 11:09:19 -08:00
conv_yuv="yes"
2004-01-27 18:07:41 -08:00
else
AC_MSG_RESULT(no)
2007-11-04 11:09:19 -08:00
conv_yuv="no"
2004-01-27 18:07:41 -08:00
fi
], [
AC_MSG_RESULT($conv_yuv)
2007-11-04 11:09:19 -08:00
if test "x$conv_yuv" = "xyes" ; 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"
AC_MSG_CHECKING(whether to build small dither mask code)
2007-07-16 01:13:40 -07:00
AC_ARG_ENABLE(small-dither-mask,
2007-11-04 23:55:17 -08:00
AC_HELP_STRING([--enable-small-dither-mask], [enable small dither mask code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2004-01-27 18:07:41 -08:00
AC_MSG_RESULT(yes)
2007-11-04 11:09:19 -08: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)
2007-11-04 11:09:19 -08:00
if test "x$conv_small_dither" = "xyes" ; 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
)
2008-09-30 23:37:31 -07:00
#######################################
## Alternate Line dither mask instead of big one (lower quality - but fastest)
conv_line_dither="no"
AC_MSG_CHECKING(whether to build line dither mask code)
AC_ARG_ENABLE(line-dither-mask,
AC_HELP_STRING([--enable-line-dither-mask], [enable line dither mask code]),
[
if test "x$enableval" = "xyes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_LINE_DITHER_MASK, 1, [Line Dither Mask Support])
conv_line_dither="yes"
else
AC_MSG_RESULT(no)
conv_line_dither="no"
fi
], [
AC_MSG_RESULT($conv_line_dither)
if test "x$conv_line_dither" = "xyes" ; then
AC_DEFINE(BUILD_LINE_DITHER_MASK, 1, [Line Dither Mask Support])
fi
]
)
2007-04-24 04:16:24 -07:00
#######################################
## No dither mask at all for 16bpp
conv_no_dither="no"
AC_MSG_CHECKING(whether to build without dither mask for 16bpp)
AC_ARG_ENABLE(no-dither-mask,
2007-11-04 23:55:17 -08:00
AC_HELP_STRING([--enable-no-dither-mask], [enable conversion to 16bpp without dither mask]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
2007-04-24 04:16:24 -07:00
AC_MSG_RESULT(yes)
2007-11-04 11:09:19 -08: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)
2007-11-04 11:09:19 -08:00
if test "x$conv_no_dither" = "xyes" ; then
2007-04-24 04:16:24 -07:00
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
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 332, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 666
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 666, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 232
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 232, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 222
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 222, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 221
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 221, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 121
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 121, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 8bpp RGB 111
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(8, RGB, 111, [yes])
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB 565
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, RGB, 565)
2007-02-10 09:23:09 -08:00
## Convert to 16bpp BGR 565
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, BGR, 565)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB 555
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, RGB, 555)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB 444
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(16, RGB, 444)
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="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,
2007-11-04 23:55:17 -08:00
AC_HELP_STRING([--disable-convert-16-rgb-ipq], [disable 16bpp 565 (444 ipaq) converter code]),
[
2007-11-04 11:09:19 -08:00
if test "x$enableval" = "xyes" ; then
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
2007-11-04 11:09:19 -08:00
conv_16_rgb_ipq="no"
2003-10-14 21:20:38 -07:00
fi
2003-12-17 23:55:21 -08:00
], [
2007-11-04 11:09:19 -08:00
if test "x$conv_16_rgb_ipq" = "xyes" ; 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
)
2007-11-04 23:55:17 -08:00
AC_MSG_RESULT($conv_16_rgb_ipq)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 16bpp RGB with rotation of 0
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 0)
2007-03-02 06:51:17 -08:00
## Convert to 16bpp RGB with rotation of 180
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 180)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB with rotation of 270
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 270)
2004-01-27 18:07:41 -08:00
## Convert to 16bpp RGB with rotation of 90
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(16, RGB, 90)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 24bpp RGB 888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(24, RGB, 888)
2004-01-27 18:07:41 -08:00
## Convert to 24bpp BGR 888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(24, BGR, 888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGB 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, RGB, 8888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGBX 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, RGBX, 8888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp BGR 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, BGR, 8888)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp BGRX 8888
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_COLOR(32, BGRX, 8888)
2002-11-07 23:46:04 -08:00
2004-01-27 18:07:41 -08:00
#######################################
## Convert to 32bpp RGB with rotation of 0
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 0)
2007-03-02 06:51:17 -08:00
## Convert to 32bpp RGB with rotation of 180
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 180)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGB with rotation of 270
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 270)
2004-01-27 18:07:41 -08:00
## Convert to 32bpp RGB with rotation of 90
2007-11-04 23:55:17 -08:00
EVAS_CONVERT_ROT(32, RGB, 90)
2003-12-09 17:12:13 -08:00
2007-11-04 23:55:17 -08:00
## valgrind
want_valgrind="no"
2006-06-07 16:30:15 -07:00
have_valgrind="no"
2004-05-02 01:41:11 -07:00
2007-11-04 23:55:17 -08:00
AC_MSG_CHECKING(whether to enable build with valgrind)
2006-06-07 16:30:15 -07:00
AC_ARG_ENABLE(valgrind,
2007-11-04 23:55:17 -08:00
AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]),
[ want_valgrind=$enableval ]
2006-06-07 16:30:15 -07:00
)
2007-11-04 23:55:17 -08:00
AC_MSG_RESULT($want_valgrind)
2006-06-07 16:30:15 -07:00
2007-11-04 23:55:17 -08:00
if test x$want_valgrind = "xyes"; then
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
[
AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
have_valgrind=yes
],
2007-12-06 01:36:06 -08:00
[
if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
AC_MSG_ERROR([Valgrind not found (strict dependencies checking)])
fi
]
2007-11-04 23:55:17 -08:00
)
2006-06-07 16:30:15 -07:00
fi
2004-05-02 01:41:11 -07:00
2009-01-11 02:20:22 -08:00
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
2004-01-27 18:07:41 -08:00
#####################################################################
## Fill in flags
2002-11-07 23:46:04 -08:00
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)
2008-11-23 22:18:31 -08:00
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
2008-09-09 13:27:58 -07:00
evas-directfb.pc
2008-04-11 16:41:44 -07:00
evas-fb.pc
2007-03-31 09:07:43 -07:00
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
2008-09-19 19:03:22 -07:00
evas-quartz.pc
2007-03-31 09:07:43 -07:00
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
2008-04-23 12:17:59 -07:00
evas-software-16-wince.pc
2007-10-28 07:11:56 -07:00
evas-software-sdl.pc
2005-03-04 06:34:35 -08:00
evas.pc
2009-01-11 02:20:22 -08:00
doc/evas.dox
doc/Makefile
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
2008-04-11 17:32:30 -07:00
src/lib/engines/common_16/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
2008-04-23 12:17:59 -07:00
src/modules/engines/software_16_wince/Makefile
2006-01-14 04:13:38 -08:00
src/modules/engines/software_x11/Makefile
src/modules/engines/fb/Makefile
src/modules/engines/buffer/Makefile
src/modules/engines/software_win32_gdi/Makefile
src/modules/engines/software_qtopia/Makefile
2008-09-09 13:27:58 -07:00
src/modules/engines/directfb/Makefile
2006-01-14 04:13:38 -08:00
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
2008-09-19 19:03:22 -07:00
src/modules/engines/quartz/Makefile
2006-01-14 04:13:38 -08:00
src/modules/engines/cairo_common/Makefile
src/modules/engines/cairo_x11/Makefile
src/modules/engines/xrender_x11/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
2008-04-11 17:32:30 -07:00
src/modules/engines/software_16_sdl/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
2008-03-01 07:27:20 -08:00
src/modules/loaders/pmaps/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
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:"
2008-11-23 22:18:31 -08:00
echo " Software Memory Buffer.....: $have_evas_engine_buffer"
2008-12-17 00:13:49 -08:00
echo " Software X11...............: $have_evas_engine_software_x11 (XCB: $have_evas_engine_software_xcb)"
2009-03-24 00:44:54 -07:00
echo " XRender X11................: $have_evas_engine_xrender_x11 (XCB: $have_evas_engine_xrender_xcb)"
2008-11-23 22:18:31 -08:00
echo " OpenGL X11.................: $have_evas_engine_gl_x11"
echo " Glitz X11..................: $have_evas_engine_glitz_x11"
echo " Cairo X11..................: $have_evas_engine_cairo_x11"
echo " XRender XCB................: $have_evas_engine_xrender_xcb"
echo " Software DirectDraw........: $have_evas_engine_software_ddraw"
echo " Direct3d...................: $have_evas_engine_direct3d"
echo " Quartz.....................: $have_evas_engine_quartz"
echo " OpenGL Glew................: $have_evas_engine_gl_glew"
echo " Software SDL...............: $have_evas_engine_software_sdl (primitive: $sdl_primitive)"
echo " Software Framebuffer.......: $have_evas_engine_fb"
echo " DirectFB...................: $have_evas_engine_directfb"
echo " Software Qtopia............: $have_evas_engine_software_qtopia"
echo " Software 16bit ............: $have_evas_engine_software_16"
echo " Software 16bit X11.........: $have_evas_engine_software_16_x11"
echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw"
echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince"
echo " Software 16bit SDL.........: $have_evas_engine_software_sdl (primitive: $sdl_primitive)"
2004-01-27 18:07:41 -08:00
# FIXME: opengl engine needs to be fixed and tested lots for all drivers
echo
echo "Image Loaders:"
2008-11-20 14:00:50 -08:00
echo " EDB.....................: $have_evas_image_loader_edb"
echo " EET.....................: $have_evas_image_loader_eet"
echo " GIF.....................: $have_evas_image_loader_gif"
echo " JPEG....................: $have_evas_image_loader_jpeg"
echo " PMAPS...................: $have_evas_image_loader_pmaps"
echo " PNG.....................: $have_evas_image_loader_png"
echo " SVG.....................: $have_evas_image_loader_svg"
echo " TIFF....................: $have_evas_image_loader_tiff"
echo " XPM.....................: $have_evas_image_loader_xpm"
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:"
2008-11-20 14:00:50 -08:00
echo " EET.....................: $have_evas_font_loader_eet"
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"
2009-03-13 23:48:25 -07:00
echo " NEON....................: $build_cpu_neon"
2007-04-15 09:47:58 -07:00
echo " Thread Support..........: $build_pthreads"
2008-09-12 06:14:08 -07:00
echo " MAGIC_DEBUG.............: $want_evas_magic_debug"
2004-01-27 18:07:41 -08:00
echo
2008-04-30 05:21:31 -07:00
echo "Async Events..............: $build_async_events"
2008-09-16 07:52:57 -07:00
echo "Async Image Preload.......: $build_async_preload"
2008-04-30 05:21:31 -07:00
echo
2004-01-27 18:07:41 -08:00
echo "ARGB Software Engine Options:"
echo " Sampling Scaler.........: $scaler_sample"
echo " Smooth Scaler...........: $scaler_smooth"
2008-05-28 22:43:12 -07:00
# FIXME: add an mmx scaler routine
2004-01-27 18:07:41 -08:00
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"
2008-09-30 23:37:31 -07:00
echo " Line Dither Mask........: $conv_line_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
2009-01-11 02:20:22 -08:00
echo "Documentation.............: ${build_doc}"
echo
2004-01-27 18:07:41 -08:00
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