freebsd-skq/crypto/heimdal/cf/broken-glob.m4

30 lines
746 B
Plaintext
Raw Normal View History

2008-05-07 13:39:42 +00:00
dnl $Id: broken-glob.m4 14166 2004-08-26 12:35:42Z joda $
dnl
dnl check for glob(3)
dnl
2004-04-03 21:22:55 +00:00
AC_DEFUN([AC_BROKEN_GLOB],[
AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
ac_cv_func_glob_working=yes
2008-05-07 13:39:42 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <stdio.h>
2008-05-07 13:39:42 +00:00
#include <glob.h>]],[[
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
#ifdef GLOB_MAXPATH
GLOB_MAXPATH
#else
GLOB_LIMIT
#endif
,
2001-06-21 02:12:07 +00:00
NULL, NULL);
2008-05-07 13:39:42 +00:00
]])],[:],[ac_cv_func_glob_working=no]))
if test "$ac_cv_func_glob_working" = yes; then
AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks
2001-06-21 02:12:07 +00:00
GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, GLOB_TILDE, and GLOB_LIMIT])
fi
if test "$ac_cv_func_glob_working" = yes; then
AC_NEED_PROTO([#include <stdio.h>
#include <glob.h>],glob)
fi
])