Commit 0330a4d9 authored by Erwin Janssen's avatar Erwin Janssen

Remove `AC_HEADER_DIRENT` from configure.ac

The check `AC_HEADER_DIRENT` is no longer needed, as all current UNIX
systems have the correct version of this header. The checks and
corresponding define can be removed.
parent 3e0dec77
......@@ -49,29 +49,7 @@
#include "SFinternal.h"
#if HAVE_DIRENT_H
#include <dirent.h>
#define DIRENT_DONE
#else
#define dirent direct
# if HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# define DIRENT_DONE
# endif
# if HAVE_NDIR_H
# include <ndir.h>
# define DIRENT_DONE
# endif
#endif
#ifndef DIRENT_DONE
#if defined (SVR4) || defined (SYSV) || defined (USG) || defined (__osf__) || defined (__svr4__) || defined (__FreeBSD__) || defined (SCO)
#include <dirent.h>
#else /* defined (SVR4) || defined (SYSV) || defined (USG) */
#include <sys/dir.h>
#define dirent direct
#endif /* defined (SVR4) || defined (SYSV) || defined (USG) */
#endif
#include <sys/stat.h>
......
......@@ -20,7 +20,6 @@ lib sincos
lib strcasecmp
lib strncasecmp
hdr dirent
hdr dlfcn
hdr errno
hdr fenv
......
......@@ -423,7 +423,6 @@ AC_CHECK_HEADERS(malloc.h \
sys/time.h sys/types.h sys/select.h \
sys/stat.h sys/mman.h sys/vfork.h \
sys/ioctl.h sys/inotify.h crt_externs.h)
AC_HEADER_DIRENT
# Internationalization macros
# AM_GNU_GETTEXT
......
......@@ -46,10 +46,6 @@
/* Define if you have the DevIL library */
/* #undef HAVE_DEVIL */
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#define HAVE_DIRENT_H 1
/* Define to 1 if you have the <dlfcn.h> header file. */
/* #undef HAVE_DLFCN_H */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment