replace AC_TRY_LINK with AC_LINK_IFELSE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14150 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -5,9 +5,9 @@ dnl
|
|||||||
AC_DEFUN([AC_BROKEN_GLOB],[
|
AC_DEFUN([AC_BROKEN_GLOB],[
|
||||||
AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
|
AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
|
||||||
ac_cv_func_glob_working=yes
|
ac_cv_func_glob_working=yes
|
||||||
AC_TRY_LINK([
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <glob.h>],[
|
#include <glob.h>]],[[
|
||||||
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
|
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
|
||||||
#ifdef GLOB_MAXPATH
|
#ifdef GLOB_MAXPATH
|
||||||
GLOB_MAXPATH
|
GLOB_MAXPATH
|
||||||
@@ -16,7 +16,7 @@ GLOB_LIMIT
|
|||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
],:,ac_cv_func_glob_working=no,:))
|
]])],[:],[ac_cv_func_glob_working=no]))
|
||||||
|
|
||||||
if test "$ac_cv_func_glob_working" = yes; then
|
if test "$ac_cv_func_glob_working" = yes; then
|
||||||
AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks
|
AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks
|
||||||
|
Reference in New Issue
Block a user