mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 02:52:42 +08:00
add --enable-shmopen option
This commit is contained in:
15
configure.ac
15
configure.ac
@@ -93,6 +93,7 @@ message_string="no"
|
||||
osname="unspecified"
|
||||
runtime_mode="procs"
|
||||
compositing_schema="yes"
|
||||
use_shm_open="no"
|
||||
|
||||
incore_res="no"
|
||||
use_miniguientry="no"
|
||||
@@ -834,6 +835,10 @@ if test "x$runtime_mode" == "xprocs"; then
|
||||
AC_ARG_ENABLE(compositing,
|
||||
[ --enable-compositing enable compositing schema (MiniGUI-Processes runmode only) <default=yes>],
|
||||
compositing_schema=$enableval)
|
||||
|
||||
AC_ARG_ENABLE(shmopen,
|
||||
[ --enable-shmopen use shm_open <default=no>],
|
||||
use_shmopen=$enableval)
|
||||
fi
|
||||
|
||||
dnl Set up the Null video driver.
|
||||
@@ -1731,6 +1736,15 @@ case "$runtime_mode" in
|
||||
AC_DEFINE(_MGUSE_SHAREDFB, 1,
|
||||
[Define if use legacy schema (shared frame buffer) for MiniGUI-Processes])
|
||||
fi
|
||||
|
||||
if test "x$use_shmopen" = "xyes"; then
|
||||
AC_CHECK_LIB(rt, shm_open, ,
|
||||
use_shmopen="no; shm_open function not found in rt library")
|
||||
fi
|
||||
|
||||
if test "x$use_shmopen" = "xyes"; then
|
||||
AC_DEFINE(_MGUSE_SHMOPEN, 1, [Define if use shm_open])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -2711,6 +2725,7 @@ AC_MSG_NOTICE([
|
||||
* Operating system: ${osname}
|
||||
* Runtime mode: ${runtime_mode}
|
||||
* Surface schema: ${surface_schema}
|
||||
* Use shm_open: ${use_shmopen}
|
||||
* Incore resource: ${incore_res}
|
||||
* Developer mode: ${devel_mode}
|
||||
* Target name: ${with_targetname}
|
||||
|
||||
Reference in New Issue
Block a user