summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-30 21:19:44 +0200
committerwm4 <wm4@nowhere>2012-07-30 22:14:33 +0200
commit6e8633c734d9ed273f84c6ed0a15f53c66fe98fc (patch)
treeb070c03dece00af40bf2c47af1aaac1bff3ef6c5 /configure
parent261243496ef7a7e90c921f868411ddf8c71c1d83 (diff)
downloadmpv-6e8633c734d9ed273f84c6ed0a15f53c66fe98fc.tar.bz2
mpv-6e8633c734d9ed273f84c6ed0a15f53c66fe98fc.tar.xz
configure: remove checks for malloc.h and alloca()
Including <malloc.h>, especially if all you want is malloc(), has no legitimate uses (on sane platforms at least). Remove the check for it, and remove all uses in the code. Remove unused check for alloca().
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 0 insertions, 29 deletions
diff --git a/configure b/configure
index b1f288be64..0b7d3690f7 100755
--- a/configure
+++ b/configure
@@ -1713,29 +1713,6 @@ if test "$_inttypes" = no ; then
fi
-echocheck "malloc.h"
-_malloc=no
-header_check malloc.h && _malloc=yes
-if test "$_malloc" = yes ; then
- def_malloc_h='#define HAVE_MALLOC_H 1'
-else
- def_malloc_h='#define HAVE_MALLOC_H 0'
-fi
-echores "$_malloc"
-
-
-
-echocheck "alloca.h"
-_alloca=no
-statement_check alloca.h 'alloca(0)' && _alloca=yes
-if cc_check ; then
- def_alloca_h='#define HAVE_ALLOCA_H 1'
-else
- def_alloca_h='#undef HAVE_ALLOCA_H'
-fi
-echores "$_alloca"
-
-
echocheck "mman.h"
_mman=no
statement_check sys/mman.h 'mmap(0, 0, 0, 0, 0, 0)' && _mman=yes
@@ -3074,10 +3051,6 @@ fi
echores "$_openal"
echocheck "ALSA audio"
-if test "$_alloca" != yes ; then
- _alsa=no
- res_comment="alloca missing"
-fi
if test "$_alsa" = auto ; then
_alsa=no
if pkg_config_add "alsa >= 1.0.9" ; then
@@ -4346,8 +4319,6 @@ $def_dvdcss
/* system headers */
-$def_alloca_h
-$def_malloc_h
$def_mman_h
$def_mman_has_map_failed
$def_soundcard_h