efl/m4
Gwanglim Lee 00382bb6a6 gl-drm: Fix missing link to gbm for ecore_evas_drm and clean up build script
@fix

Summary:
This fixes following build script problems for ecore_evas_drm engine module.

1. Missing link to gbm for ecore_evas_drm if '--enable-gl-drm' option is given.
ecore_evas_drm engine is using gbm function if it builds with that config option.
To be more exact, ecore_evas_gl_drm_new_internal function needs gbm.
Thus we need to add gbm library linking '-lgbm' to ecore_evas_drm engine module
if '--enable-gl-drm' option is given. I've added this build script to
m4/ecore_check_module.m4 file.

2. Wrong gbm dependency check code in configure.ac
EFL_OPTIONAL_INTERNAL_DEPEND_PKG m4 macro function is designed for checking
dependency of efl internal libraries. Thus we should remove gbm pkg name when
configuring ecore_evas_drm engine module. It would be better to move dependency
check for gbm to m4/ecore_check_module.m4 file. And one more thing want_drm
value has to be changed to want_gl_drm in ECORE_EVAS_MODULE([gl-drm]...).

3. BUILD_ECORE_EVAS_OPENGL_DRM macro is always defined in configure.ac.
This kind of macro, BUILD_EFL_MODULE_NAME, has to be defined only if given module
is enabled. But this macro value was just defined with no test.
And it is even useless, we can use BUILD_ECORE_EVAS_GL_DRM macro which is defined
by ECORE_EVAS_MODULE([gl-drm], [${want_gl_drm}],...) function.
So I've removed that from configure.ac.

Test Plan:
1. Configure with --enable-gl-drm:
  $ ./autogen.sh --enable-drm --enable-gl-drm
2. Build:
  $ make && make install
3. Check module.so of ecore_evas_drm engine whether it has a library dependency with gbm:
  $ readelf -a $EFL_GIT/src/modules/ecore_evas/engines/drm/.libs/module.so | grep NEEDED

Reviewers: raster, stefan_schmidt, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1379
2014-08-28 13:37:28 -04:00
..
.gitignore Split .gitignore into multiple files 2013-06-11 18:18:50 -03:00
ac_define_if.m4 efl: helper macro and remove duplicated defines. 2012-10-10 22:12:29 +00:00
ac_path_generic.m4 merge: add eet 2012-09-17 16:35:38 +00:00
ax_cxx_compile_stdcxx_11.m4 eina: add a C++ bindings to Eina @feature. 2014-02-25 18:05:01 -03:00
ecore_check_c_extension.m4 efl: improve X detection by Joel Klinghed. 2013-01-09 16:48:40 +00:00
ecore_check_module.m4 gl-drm: Fix missing link to gbm for ecore_evas_drm and clean up build script 2014-08-28 13:37:28 -04:00
efl.m4 autotools: actually put the macro at the right place. 2014-08-27 23:22:57 +02:00
efl_attribute.m4 merge: and now Evas 2012-11-04 11:51:42 +00:00
efl_beta.m4 efl: add a macro for beta API support. 2013-07-23 11:27:29 +09:00
efl_binary.m4 m4: fix macro, Makevars.in: quotes 2014-06-16 10:07:16 +01:00
efl_check_funcs.m4 autotools: use libevil libdl implementation. 2014-02-07 12:56:37 +09:00
efl_check_libs.m4 efl: refactor EFL_CHECK_LIB() and EFL_CHECK_FUNC() 2012-12-30 21:10:52 +00:00
efl_compiler.m4 optimize check for compiler and linker flags. 2013-01-18 15:25:00 +00:00
efl_doxygen.m4 merge: add infra for evil 2012-09-11 16:04:21 +00:00
efl_eo.m4 eo: eo is absolutely necessary by now, can't be disabled any more. 2013-06-28 10:18:39 +09:00
efl_find_x.m4 efl: improve X detection by Joel Klinghed. 2013-01-09 16:48:40 +00:00
efl_lua_old.m4 edje: use luajit by default, if you want lua use --enable-lua-old 2014-01-17 19:07:59 +00:00
efl_path_max.m4 merge : add eina 2012-09-16 10:57:48 +00:00
efl_pkg_config.m4 efl: m4 is a macro-expansion language, use that. 2012-12-06 23:19:35 +00:00
efl_stdcxx_11.m4 eina-cxx: Added test for inheriting constructors in the C++11 compiler 2014-08-07 11:32:49 +02:00
efl_threads.m4 eina: port Eina_Spinlock for OSX 2014-08-21 12:04:53 +02:00
eina_check.m4 efl: remove configure option to change mempool modules. 2012-10-10 20:46:29 +00:00
eina_config.m4 merge: and now Evas 2012-11-04 11:51:42 +00:00
eio_check_options.m4 efl: common inotify checks, simplified. 2012-12-06 13:02:59 +00:00
emotion_module.m4 emotion: initial port of emotion to GStreamer 1.0 2013-12-23 10:59:42 +09:00
evas_check_engine.m4 evas: add evas gl-drm engine 2014-08-21 12:04:53 +02:00
evas_check_loader.m4 Evas: Add DDS image file loader 2014-07-03 11:37:48 +09:00
evil_windows.m4 efl: remove Windows CE support 2014-07-13 15:17:17 +02:00
gcc_check_builtin.m4 eina: add infrastructure to handle more CPU and compiler builtin information. 2013-10-02 20:54:50 +09:00
libgcrypt.m4 try to fix --with-crypto=gnutls due libcrypt-config usage. 2013-01-17 16:47:36 +00:00
pkg_var.m4 link dbus and systemd services, allows systemd activation. 2014-03-10 00:09:12 -03:00