1 dnl $Id: broken-glob.m4,v 1.4.12.1 2004/04/01 07:27:32 joda Exp $
5 AC_DEFUN([AC_BROKEN_GLOB],[
6 AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
7 ac_cv_func_glob_working=yes
11 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
19 ],:,ac_cv_func_glob_working=no,:))
21 if test "$ac_cv_func_glob_working" = yes; then
22 AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks
23 GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, GLOB_TILDE, and GLOB_LIMIT])
25 if test "$ac_cv_func_glob_working" = yes; then
26 AC_NEED_PROTO([#include <stdio.h>
27 #include <glob.h>],glob)