Merge pull request #184 from t6/alloca

Check for alloca.h in the configure script
master
karl 8 years ago committed by GitHub
commit 51e48d81a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      cava.c
  2. 5
      configure.ac

@ -1,12 +1,10 @@
#define _XOPEN_SOURCE_EXTENDED
#include <locale.h>
#ifdef SNDIO
#include <stdlib.h>
#endif
#ifndef SNDIO
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#else
#include <stdlib.h>
#endif
#include <stdio.h>
@ -63,11 +61,6 @@
#ifdef SNDIO
#include "input/sndio.c"
#include <stdlib.h>
#endif
#ifndef SNDIO
#include <alloca.h>
#endif
#include <iniparser.h>

@ -36,6 +36,11 @@ AC_CHECK_HEADERS([pthread.h],
AC_MSG_ERROR([no pthread.h header header file found])
)
dnl ######################
dnl checking for alloca.h
dnl ######################
AC_CHECK_HEADER([alloca.h], [CPPFLAGS="$CPPFLAGS -DHAVE_ALLOCA_H"])
dnl ######################
dnl checking for alsa dev

Loading…
Cancel
Save