mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Move struct stat checks in configure
Tests for POSIX_C_SOURCE value need to be done before any actual checks
This commit is contained in:
parent
38caa0d988
commit
0ea80a319e
1 changed files with 6 additions and 6 deletions
12
configure.ac
12
configure.ac
|
@ -408,12 +408,6 @@ AC_CHECK_HEADER(
|
||||||
[AC_MSG_ERROR([Could not find the header regex.h, needed to build fish])]
|
[AC_MSG_ERROR([Could not find the header regex.h, needed to build fish])]
|
||||||
)
|
)
|
||||||
|
|
||||||
#
|
|
||||||
# Detect nanoseconds fields in struct stat
|
|
||||||
#
|
|
||||||
AC_CHECK_MEMBERS([struct stat.st_mtimespec.tv_nsec])
|
|
||||||
AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec])
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# On some platforms (Solaris 10) adding -std=c99 in turn requires that
|
# On some platforms (Solaris 10) adding -std=c99 in turn requires that
|
||||||
# _POSIX_C_SOURCE be defined to 200112L otherwise several
|
# _POSIX_C_SOURCE be defined to 200112L otherwise several
|
||||||
|
@ -528,6 +522,12 @@ if test ! x$local_found_posix_switch = xyes; then
|
||||||
CXXFLAGS="$XCXXFLAGS"
|
CXXFLAGS="$XCXXFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Detect nanoseconds fields in struct stat
|
||||||
|
#
|
||||||
|
AC_CHECK_MEMBERS([struct stat.st_mtimespec.tv_nsec])
|
||||||
|
AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec])
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check for presense of various functions used by fish
|
# Check for presense of various functions used by fish
|
||||||
|
|
Loading…
Reference in a new issue