Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h

This allows config.c to compile when linked against uclibc that does not support these parameters


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@189601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Doug Bailey
2009-04-21 14:00:55 +00:00
parent 591dd05d9e
commit 9d266db16a
5 changed files with 149 additions and 17 deletions

View File

@@ -432,6 +432,24 @@ AC_LINK_IFELSE(
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(for GLOB_NOMAGIC)
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <glob.h>],
[int foo = GLOB_NOMAGIC;]),
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_GLOB_NOMAGIC], 1, [Define to 1 if your glob function supports GLOB_NOMAGIC option.]),
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(for GLOB_BRACE)
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <glob.h>],
[int foo = GLOB_BRACE;]),
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_GLOB_BRACE], 1, [Define to 1 if your glob function supports GLOB_BRACE option.]),
AC_MSG_RESULT(no)
)
AC_MSG_CHECKING(for IP_MTU_DISCOVER)
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <netinet/in.h>],