]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
configure: actually set cache vars when cross-compiling
authorMike Frysinger <vapier@chromium.org>
Thu, 25 May 2017 03:21:19 +0000 (23:21 -0400)
committerDamien Miller <djm@mindrot.org>
Thu, 25 May 2017 04:34:52 +0000 (14:34 +1000)
The cross-compiling fallback message says it's assuming the test
passed, but it didn't actually set the cache var which causes
later tests to fail.

configure.ac

index 5cfea38c0a6c79fd15c163a4fc21811f92c727fe..895c5211ea93c292345ab0ee881044107cd1a607 100644 (file)
@@ -3162,7 +3162,8 @@ AC_RUN_IFELSE(
         select_works_with_rlimit=yes],
        [AC_MSG_RESULT([no])
         select_works_with_rlimit=no],
-       [AC_MSG_WARN([cross compiling: assuming yes])]
+       [AC_MSG_WARN([cross compiling: assuming yes])
+        select_works_with_rlimit=yes]
 )
 
 AC_MSG_CHECKING([if setrlimit(RLIMIT_NOFILE,{0,0}) works])
@@ -3188,7 +3189,8 @@ AC_RUN_IFELSE(
         rlimit_nofile_zero_works=yes],
        [AC_MSG_RESULT([no])
         rlimit_nofile_zero_works=no],
-       [AC_MSG_WARN([cross compiling: assuming yes])]
+       [AC_MSG_WARN([cross compiling: assuming yes])
+        rlimit_nofile_zero_works=yes]
 )
 
 AC_MSG_CHECKING([if setrlimit RLIMIT_FSIZE works])