diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-11 17:06:54 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-11 17:06:54 +0000 |
commit | f0ef34826c9accbfbf3d2e0cc52a5b2ff537d7ec (patch) | |
tree | e885d24ef7a00b25f4d48387126f38edda508154 /configure.ac | |
parent | 4ea8cdb08addc2b92d5aea746c05cf13b5da92dc (diff) |
Merged revisions 74572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r74572 | file | 2007-07-11 14:03:08 -0300 (Wed, 11 Jul 2007) | 2 lines
Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74575 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 081a5e35a..5b6f7c68c 100644 --- a/configure.ac +++ b/configure.ac @@ -1028,9 +1028,12 @@ AC_SUBST(EDITLINE_LIB) AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0]) AC_SUBST(PBX_H323) +AC_CHECK_HEADER([linux/compiler.h], + [AC_DEFINE_UNQUOTED([HAVE_LINUX_COMPILER_H], 1, [Define to 1 if your system has linux/compiler.h.])]) + AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [ #include <linux/version.h> - #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) + #ifdef HAVE_LINUX_COMPILER_H #include <linux/compiler.h> #endif ]) |