mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* acinclude.m4 (AC_SHORT_D_NAME_LEN): Remove, this test is now
done at runtime. * configure.in: Don't use AC_SHORT_D_NAME_LEN.
This commit is contained in:
parent
cf8ab0de99
commit
0dbf2d1caf
@ -1,3 +1,9 @@
|
||||
2002-08-15 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* acinclude.m4 (AC_SHORT_D_NAME_LEN): Remove, this test is now
|
||||
done at runtime.
|
||||
* configure.in: Don't use AC_SHORT_D_NAME_LEN.
|
||||
|
||||
2002-08-14 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* doc/ru/mc.1.in: Remove reference to README.edit.
|
||||
|
39
acinclude.m4
39
acinclude.m4
@ -244,45 +244,6 @@ AC_MSG_RESULT([$av_struct_linger])
|
||||
])
|
||||
|
||||
|
||||
|
||||
dnl
|
||||
dnl Check for size of d_name dirent member
|
||||
dnl
|
||||
AC_DEFUN([AC_SHORT_D_NAME_LEN], [
|
||||
AC_MSG_CHECKING([filename fits on dirent.d_name])
|
||||
AC_CACHE_VAL(ac_cv_dnamesize, [
|
||||
OCFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -I$srcdir"
|
||||
AC_TRY_RUN([
|
||||
#include <src/fs.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
struct dirent ddd;
|
||||
|
||||
if (sizeof (ddd.d_name) < 12)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
],[
|
||||
ac_cv_dnamesize="no"
|
||||
], [
|
||||
ac_cv_dnamesize="yes"
|
||||
], [
|
||||
# Cannot find out, so assume no
|
||||
ac_cv_dnamesize="no"
|
||||
])
|
||||
CFLAGS="$OCFLAGS"
|
||||
])
|
||||
if test x$ac_cv_dnamesize = xno; then
|
||||
AC_DEFINE(NEED_EXTRA_DIRENT_BUFFER, 1,
|
||||
[Define if using `struct dirent' can overwrite stack])
|
||||
fi
|
||||
AC_MSG_RESULT([$ac_cv_dnamesize])
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl Filesystem information detection
|
||||
dnl
|
||||
|
@ -104,7 +104,6 @@ AC_CHECK_HEADERS([unistd.h string.h memory.h crypt.h grp.h limits.h \
|
||||
AC_HEADER_TIME
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_HEADER_DIRENT
|
||||
AC_SHORT_D_NAME_LEN
|
||||
AC_HEADER_STDC
|
||||
|
||||
dnl Missing structure components
|
||||
|
Loading…
Reference in New Issue
Block a user