]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/cf/broken-glob.m4
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / cf / broken-glob.m4
1 dnl $Id: broken-glob.m4 14166 2004-08-26 12:35:42Z joda $
2 dnl
3 dnl check for glob(3)
4 dnl
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
8 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
9 #include <stdio.h>
10 #include <glob.h>]],[[
11 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
12 #ifdef GLOB_MAXPATH
13 GLOB_MAXPATH
14 #else
15 GLOB_LIMIT
16 #endif
17 ,
18 NULL, NULL);
19 ]])],[:],[ac_cv_func_glob_working=no]))
20
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])
24 fi
25 if test "$ac_cv_func_glob_working" = yes; then
26 AC_NEED_PROTO([#include <stdio.h>
27 #include <glob.h>],glob)
28 fi
29 ])