Bug 1097

Summary: Cross-compile fixes
Product: Portable OpenSSH Reporter: Darren Tucker <dtucker>
Component: Build systemAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor    
Priority: P2    
Version: -current   
Hardware: Other   
OS: All   
Bug Depends on:    
Bug Blocks: 1047    
Attachments:
Description Flags
Replace AC_TRY_RUN with AC_COMPILE_IFELSE
none
update based on Tim's comments, attempt to fix /etc/default/login for crosscompile none

Description Darren Tucker 2005-09-30 11:48:44 AEST
It has been pointed out that some of the tests in configure don't work when
cross compiling.  I have a patch (against -current) which I will attach but I
can't test it.

If anyone cross-compiling openssh can test it it would be appreciated.
Comment 1 Darren Tucker 2005-09-30 11:50:48 AEST
Created attachment 977 [details]
Replace AC_TRY_RUN with AC_COMPILE_IFELSE

Patch against -current.  Will need to run "autoreconf" (autoconf 2.59 or
higher) before rerunning configure.
Comment 2 Tim Rice 2005-10-04 06:44:22 AEST
>@@ -1002,10 +1003,12 @@ AC_ARG_WITH(skey,
>                       SKEY_MSG="yes"
>
>                       AC_MSG_CHECKING([for s/key support])
>-                      AC_TRY_RUN(
>+                      AC_TRY_COMPILE(
>                               [

I don't see the advantage of replacing one obsolete macro with
another obsolete macro.

Other than that, the patch looks good. I can't test cross compile, but
replaceing some of the obsolete macros is worth doing.
Comment 3 Darren Tucker 2005-10-15 14:27:42 AEST
Created attachment 998 [details]
update based on Tim's comments, attempt to fix /etc/default/login for crosscompile
Comment 4 Darren Tucker 2005-10-17 23:29:40 AEST
Tested cross compiling by aabaker at iee.org.  Applied patch id #998.
Comment 5 Damien Miller 2005-11-24 19:28:53 AEDT
Put this in the list of 4.3 fixed bugs
Comment 6 Darren Tucker 2006-10-07 11:42:37 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.