changeset 35714:fc36990b6ae5

configure: Add check for mprotect(), used in libswscale.
author diego
date Mon, 21 Jan 2013 19:44:49 +0000
parents 3f1ba7f174c5
children 8517826b0dbd
files configure
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jan 21 18:21:55 2013 +0000
+++ b/configure	Mon Jan 21 19:44:49 2013 +0000
@@ -3675,6 +3675,14 @@
   def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)'
 fi
 
+
+echocheck "mprotect"
+mprotect=no
+def_mprotect='#define HAVE_MPROTECT 0'
+statement_check_broken stddef.h sys/mman.h 'mprotect(NULL, 0, 0)' && mprotect=yes
+echores "$mprotect"
+
+
 echocheck "dynamic loader"
 _dl=no
 for ld_tmp in "" -ldl; do
@@ -8946,6 +8954,7 @@
 $def_mlib
 $def_mkstemp
 $def_mmap
+$def_mprotect
 $def_network
 $def_os2threads
 $def_pic