ROMIO configure looks for lstat in wrong header
ROMIO configure looks for lstat in wrong header The ROMIO configure script checks for a declaration of lstat in unistd.h, but, at least on the Linux machines I checked, lstat is in sys/stat.h. (The detection failure led to a linker error when building ROMIO as part of OpenMPI on one of my admittedly strangely configured machines, somehow.) It appears from the man page that either location is possible, so check both. (cherry picked from mpich/mpich@7b8bd055df) Signed-off-by: Rob Latham <robl@mcs.anl.gov> Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
родитель
db74fa9d0f
Коммит
80bb41a079
@ -1720,7 +1720,8 @@ fi
|
||||
AC_CHECK_FUNCS(lstat)
|
||||
if test "$ac_cv_func_lstat" = "yes" ; then
|
||||
# Do we need to declare lstat?
|
||||
PAC_FUNC_NEEDS_DECL([#include <unistd.h>],lstat)
|
||||
PAC_FUNC_NEEDS_DECL([#include <unistd.h>
|
||||
#include <sys/stat.h>],lstat)
|
||||
fi
|
||||
AC_CHECK_FUNCS(readlink)
|
||||
if test "$ac_cv_func_readlink" = "yes" ; then
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user