branch Attitude Adjustment packages
[12.09/packages.git] / utils / ipmitool / patches / 101-cross_compile.patch
1 --- a/configure
2 +++ b/configure
3 @@ -24315,8 +24315,7 @@ if test "$cross_compiling" = yes; then
4    { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5  See \`config.log' for more details." >&5
6  echo "$as_me: error: cannot run test program while cross compiling
7 -See \`config.log' for more details." >&2;}
8 -   { (exit 1); exit 1; }; }
9 +See \`config.log' for more details." >&2;} }
10  else
11    cat >conftest.$ac_ext <<_ACEOF
12  /* confdefs.h.  */
13 --- a/configure.in
14 +++ b/configure.in
15 @@ -489,29 +489,6 @@ AC_ARG_ENABLE([file-security],
16         fi], [])
17  
18  
19 -AC_TRY_RUN([
20 -       #include <stdio.h>
21 -       
22 -       struct packstruct {
23 -               unsigned char t0       :5;
24 -               unsigned char t1       :5;
25 -               unsigned char t2       :5;
26 -               unsigned char t3       :5;
27 -               unsigned char t4       :4;
28 -       } __attribute__ ((packed));
29 -       
30 -       int
31 -       main(int argc, char ** argv)
32 -       {
33 -       if(sizeof(struct packstruct) != 3)
34 -       return(1);
35 -       else
36 -       return(0);
37 -       }
38 -       ],[],[AC_DEFINE(HAVE_PRAGMA_PACK,[1],[Define to 1 if you need to use #pragma pack instead of __attribute__ ((packed))])]
39 -)
40 -
41 -
42  dnl Generate files for build
43  AC_CONFIG_FILES([Makefile
44                 doc/Makefile