提交 67ba57f6 编写于 作者: R Riku Voipio

configure: remove bogus linux-user check

linux-user=yes is not a reliable identifier that linux-user targets
have been selected. user targets can be selected via --target-list
as well.
上级 7b8118e8
...@@ -1249,8 +1249,7 @@ fi ...@@ -1249,8 +1249,7 @@ fi
# have syscall stubs for these implemented. # have syscall stubs for these implemented.
# #
atfile=no atfile=no
if [ "$linux_user" = "yes" ] ; then cat > $TMPC << EOF
cat > $TMPC << EOF
#define _ATFILE_SOURCE #define _ATFILE_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
...@@ -1263,9 +1262,8 @@ main(void) ...@@ -1263,9 +1262,8 @@ main(void)
return (unlinkat(AT_FDCWD, "nonexistent_file", 0)); return (unlinkat(AT_FDCWD, "nonexistent_file", 0));
} }
EOF EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then
atfile=yes atfile=yes
fi
fi fi
# Check for inotify functions when we are building linux-user # Check for inotify functions when we are building linux-user
...@@ -1274,8 +1272,7 @@ fi ...@@ -1274,8 +1272,7 @@ fi
# don't provide them even if kernel supports them. # don't provide them even if kernel supports them.
# #
inotify=no inotify=no
if [ "$linux_user" = "yes" ] ; then cat > $TMPC << EOF
cat > $TMPC << EOF
#include <sys/inotify.h> #include <sys/inotify.h>
int int
...@@ -1285,9 +1282,8 @@ main(void) ...@@ -1285,9 +1282,8 @@ main(void)
return inotify_init(); return inotify_init();
} }
EOF EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null > /dev/null ; then
inotify=yes inotify=yes
fi
fi fi
# check if utimensat and futimens are supported # check if utimensat and futimens are supported
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册