mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
now works with autoconf 2.50
This commit is contained in:
parent
a83c3d3af5
commit
fa6dd2a9f3
2 changed files with 7 additions and 18 deletions
15
configure.in
15
configure.in
|
@ -275,7 +275,8 @@ AC_FUNC_MMAP
|
|||
AC_TYPE_SIGNAL
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS(
|
||||
gethostname gethostbyname connect gettimeofday getwd mkdir \
|
||||
access _access \
|
||||
gethostname gethostbyname connect gettimeofday getwd mkdir _mkdir \
|
||||
ftime _ftime fcntl stat putenv select socket strerror strstr \
|
||||
snprintf _snprintf vsnprintf _vsnprintf strsep dlopen getaddrinfo \
|
||||
getnameinfo
|
||||
|
@ -289,18 +290,6 @@ if test "x$ac_cv_func_dlopen" != "xyes"; then
|
|||
fi
|
||||
AC_SUBST(DL_LIBS)
|
||||
|
||||
dnl Checks for access/_access
|
||||
AC_CHECK_FUNC(access,
|
||||
AC_DEFINE(HAVE_access),
|
||||
AC_CHECK_FUNC(_access, AC_DEFINE(HAVE__access))
|
||||
)
|
||||
|
||||
dnl Checks for mkdir/_mkdir
|
||||
AC_CHECK_FUNC(mkdir,
|
||||
AC_DEFINE(HAVE_mkdir),
|
||||
AC_CHECK_FUNC(mkdir, AC_DEFINE(HAVE__mkdir))
|
||||
)
|
||||
|
||||
dnl Checks for stricmp/strcasecmp
|
||||
AC_CHECK_FUNC(strcasecmp,
|
||||
,
|
||||
|
|
|
@ -101,7 +101,7 @@ static char qfont_table[256] = {
|
|||
void
|
||||
Sys_mkdir (const char *path)
|
||||
{
|
||||
#ifdef HAVE_mkdir
|
||||
#ifdef HAVE_MKDIR
|
||||
# ifdef _WIN32
|
||||
if (mkdir (path) == 0)
|
||||
return;
|
||||
|
@ -110,7 +110,7 @@ Sys_mkdir (const char *path)
|
|||
return;
|
||||
# endif
|
||||
#else
|
||||
# ifdef HAVE__mkdir
|
||||
# ifdef HAVE__MKDIR
|
||||
if (_mkdir (path) == 0)
|
||||
return;
|
||||
# else
|
||||
|
@ -124,15 +124,15 @@ Sys_mkdir (const char *path)
|
|||
int
|
||||
Sys_FileTime (const char *path)
|
||||
{
|
||||
#ifdef HAVE_access
|
||||
#ifdef HAVE_ACCESS
|
||||
if (access (path, R_OK) == 0)
|
||||
return 0;
|
||||
#else
|
||||
# ifdef HAVE__access
|
||||
# ifdef HAVE__ACCESS
|
||||
if (_access (path, R_OK) == 0)
|
||||
return 0;
|
||||
# else
|
||||
# error do not know how to make directories
|
||||
# error do not know how to check access
|
||||
# endif
|
||||
#endif
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue