Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 71956de46feef962dc0645af4c81ae074ca3b818 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> |
| 3 | Date: Wed, 19 Aug 2015 13:52:57 +0900 |
| 4 | Subject: [PATCH] configure.in: Error fix. |
| 5 | |
| 6 | the error is: conftest.c:9:28: fatal error: ac_nonexistent.h: |
| 7 | No such file or directory #include <ac_nonexistent.h> |
| 8 | |
| 9 | Upstream-Status: pending |
| 10 | |
| 11 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> |
| 12 | --- |
| 13 | src/configure.in | 30 ------------------------------ |
| 14 | 1 file changed, 30 deletions(-) |
| 15 | |
| 16 | diff --git a/src/configure.in b/src/configure.in |
| 17 | index 0b23df5..31c7fbc 100644 |
| 18 | --- a/src/configure.in |
| 19 | +++ b/src/configure.in |
| 20 | @@ -193,36 +193,6 @@ if test "$GCC" = yes; then |
| 21 | CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes" |
| 22 | fi |
| 23 | |
| 24 | -dnl Figure out packing order of structures |
| 25 | -AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[ |
| 26 | -if test "${rpppoe_cv_pack_bitfields+set}" != set ; then |
| 27 | -AC_TRY_RUN([ |
| 28 | -union foo { |
| 29 | - struct bar { |
| 30 | - unsigned int ver:4; |
| 31 | - unsigned int type:4; |
| 32 | - } bb; |
| 33 | - unsigned char baz; |
| 34 | -}; |
| 35 | - |
| 36 | -int |
| 37 | -main(void) |
| 38 | -{ |
| 39 | - union foo x; |
| 40 | - x.bb.ver = 1; |
| 41 | - x.bb.type = 2; |
| 42 | - if (x.baz == 0x21) { |
| 43 | - return 1; |
| 44 | - } else if (x.baz == 0x12) { |
| 45 | - return 0; |
| 46 | - } else { |
| 47 | - return 2; |
| 48 | - } |
| 49 | -}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev, |
| 50 | -$ECHO "no defaults for cross-compiling"; exit 1) |
| 51 | -fi |
| 52 | -]) |
| 53 | - |
| 54 | if test "$rpppoe_cv_pack_bitfields" = "rev" ; then |
| 55 | AC_MSG_RESULT(reversed) |
| 56 | AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields]) |
| 57 | -- |
| 58 | 1.8.4.2 |
| 59 | |