Remove lib/roken glob()
We no longer use it since removing ftp from appl/. Note that expansion of ~username/ couldn't have been working because k_getpwnam() was being called with an unsigned short * that was forcibly cast to char *, but it really was shorts, not chars... Anyone who ever feels like reviving lib/roken/glob.[ch] will want to fix that...
This commit is contained in:

committed by
Nico Williams

parent
8a77f45aff
commit
3b8c762dd0
@@ -1,29 +0,0 @@
|
||||
dnl $Id$
|
||||
dnl
|
||||
dnl check for glob(3)
|
||||
dnl
|
||||
AC_DEFUN([AC_BROKEN_GLOB],[
|
||||
AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
|
||||
ac_cv_func_glob_working=yes
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <stdio.h>
|
||||
#include <glob.h>]],[[
|
||||
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
|
||||
#ifdef GLOB_MAXPATH
|
||||
GLOB_MAXPATH
|
||||
#else
|
||||
GLOB_LIMIT
|
||||
#endif
|
||||
,
|
||||
NULL, NULL);
|
||||
]])],[:],[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
|
||||
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
|
||||
])
|
@@ -182,13 +182,6 @@ rk_RESOLV
|
||||
AC_BROKEN_SNPRINTF
|
||||
AC_BROKEN_VSNPRINTF
|
||||
|
||||
AC_BROKEN_GLOB
|
||||
if test "$ac_cv_func_glob_working" != yes; then
|
||||
AC_LIBOBJ(glob)
|
||||
fi
|
||||
AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
|
||||
|
||||
|
||||
AC_CHECK_FUNCS([ \
|
||||
asnprintf \
|
||||
asprintf \
|
||||
|
Reference in New Issue
Block a user