Merge branch 'org.openembedded.dev' of git://git.openembedded.net/openembedded into...
[vuplus_openembedded] / packages / libcdio / libcdio / libcdio-0.80-configure-crosscompile.patch
1 Index: libcdio-0.80/configure.ac
2 ===================================================================
3 --- libcdio-0.80.orig/configure.ac      2008-03-15 17:45:17.000000000 +0000
4 +++ libcdio-0.80/configure.ac           2008-07-16 09:21:06.000000000 +0000
5 @@ -271,33 +271,9 @@
6  
7  dnl bitfield order
8  AC_MSG_CHECKING(bitfield ordering in structs)
9 -AC_TRY_RUN([
10 -int
11 - main() {
12 -  struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
13 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
14 -  __attribute__((packed))
15 -#endif
16 -  bf = { 1,1,1,1 };
17 -  if (sizeof (bf) != 1) return 1;
18 -  return *((unsigned char*) &bf) != 0x4b; }
19 -], bf_lsbf=1, AC_TRY_RUN([ 
20 -int
21 -main() {
22 -  struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
23 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
24 -  __attribute__((packed))
25 -#endif
26 -  bf = { 1,1,1,1 };
27 -  if (sizeof (bf) != 1) return 1;
28 -  return *((unsigned char*) &bf) != 0xa5; }
29 -], bf_lsbf=0, AC_MSG_ERROR([unsupported bitfield ordering])))
30 -if test "x$bf_lsbf" = "x1"; then
31 - AC_MSG_RESULT(LSBF)
32 - AC_DEFINE(BITFIELD_LSBF, [], [compiler does least-significant bit first in struct bitfields])
33 -else
34 - AC_MSG_RESULT(MSBF)
35 -fi
36 +bf_lsbf=1
37 +AC_MSG_RESULT(LSBF)
38 +AC_DEFINE(BITFIELD_LSBF, [], [compiler does least-significant bit first in struct bitfields])
39  dnl
40  
41  dnl AM_PROG_LIBTOOL tests whether we have GNU ld
42 @@ -466,24 +442,6 @@
43         ;;
44  esac
45  
46 -AC_MSG_CHECKING(extern long timezone variable)
47 -AC_TRY_RUN([
48 -#ifdef NEED_TIMEZONEVAR
49 -#define timezonevar 1
50 -#endif
51 -
52 -#include <time.h>
53 -extern long timezone;
54 -int main(int argc, char **argv) {
55 -  long test_timezone = timezone;
56 -  return 0; 
57 -}
58 -], [AC_MSG_RESULT(yes); 
59 -   AC_DEFINE([HAVE_TIMEZONE_VAR], 1, 
60 -       [Define if you have an extern long timenzone variable.])],
61 -   [AC_MSG_RESULT(no)])
62 -dnl
63 -
64  AC_SUBST(LINUX_CDROM_TIMEOUT)
65  AC_SUBST(DARWIN_PKG_LIB_HACK)
66  AC_SUBST(HAVE_BSDI_CDROM)
67 @@ -508,43 +466,6 @@
68                   ,
69                   [#include <time.h>])
70  
71 -if test $ac_cv_member_struct_tm_tm_gmtoff = yes ; then
72 -  AC_MSG_CHECKING([whether time.h defines daylight and timezone variables])
73 -  AC_TRY_RUN([
74 -#include <time.h>
75 -
76 -
77 -       extern char *tzname[2];
78 -       extern long timezone;
79 -       extern int daylight;
80 -
81 -int
82 - main() {
83 -  return (timezone != 0) + daylight;
84 -}
85 -  ],[AC_DEFINE(HAVE_DAYLIGHT, 1,
86 -   [Define if time.h defines extern long timezone and int daylight vars.])
87 -   has_daylight=yes
88 -   ],[has_daylight=no])
89 -  AC_MSG_RESULT($has_daylight)
90 -  AC_MSG_CHECKING([whether time.h defines tzname variable])
91 -  AC_TRY_RUN([
92 -#include <time.h>
93 -
94 -
95 -       extern char *tzname[2];
96 -
97 -int
98 - main() {
99 -  return (tzname != NULL);
100 -}
101 -  ],[AC_DEFINE(HAVE_TZNAME, 1,
102 -   [Define if time.h defines extern extern char *tzname[2] variable])
103 -   has_tzname=yes
104 -   ],[has_tzname=no])
105 -   AC_MSG_RESULT($has_tzname)
106 -fi
107 -
108  AC_ARG_ENABLE(joliet,
109         AS_HELP_STRING([--disable-joliet], [don't include Joliet extension support (default enabled)]),
110         [enable_joliet=$enableval],