acinclude.m4
changeset 3012 7e30c2dc7783
parent 1613 2095da6364c9
child 3085 4800979de337
     1.1 --- a/acinclude.m4	Fri Jan 09 20:43:30 2009 +0000
     1.2 +++ b/acinclude.m4	Sat Jan 10 18:32:24 2009 +0000
     1.3 @@ -1,3 +1,18 @@
     1.4 +define(AC_CHECK_DEFINE,[dnl
     1.5 +  AC_CACHE_CHECK(for $1 in $2, ac_cv_define_$1,
     1.6 +    AC_EGREP_CPP([YES_IS_DEFINED], [
     1.7 +#include <$2>
     1.8 +#ifdef $1
     1.9 +YES_IS_DEFINED
    1.10 +#endif
    1.11 +    ], ac_cv_define_$1=yes, ac_cv_define_$1=no)
    1.12 +  )
    1.13 +  if test "$ac_cv_define_$1" = "yes" ; then
    1.14 +    AC_DEFINE(HAVE_$1)
    1.15 +  fi
    1.16 +])dnl
    1.17 +AC_DEFINE(HAVE_$1)
    1.18 +
    1.19  ##############################################################################
    1.20  dnl Configure Paths for Alsa
    1.21  dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>