Add freeglut3 and libdrm
[kopensolaris-gnu/patches.git] / fakeroot-1.9.5.diff
1 diff -uraN fakeroot-1.9.5.orig/aclocal.m4 fakeroot-1.9.5/aclocal.m4
2 --- fakeroot-1.9.5.orig/aclocal.m4      2008-04-26 10:45:00.000000000 -0400
3 +++ fakeroot-1.9.5/aclocal.m4   2008-09-27 23:33:59.083269784 -0400
4 @@ -2450,7 +2450,7 @@
5    ;;
6  
7  # This must be Linux ELF.
8 -linux* | k*bsd*-gnu)
9 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
10    version_type=linux
11    need_lib_prefix=no
12    need_version=no
13 @@ -3082,7 +3082,7 @@
14    ;;
15  
16  # This must be Linux ELF.
17 -linux* | k*bsd*-gnu)
18 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
19    lt_cv_deplibs_check_method=pass_all
20    ;;
21  
22 @@ -3702,7 +3702,7 @@
23             ;;
24         esac
25         ;;
26 -      linux* | k*bsd*-gnu)
27 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
28         case $cc_basename in
29           KCC*)
30             # KAI C++ Compiler
31 @@ -3978,7 +3978,7 @@
32        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
33        ;;
34  
35 -    linux* | k*bsd*-gnu)
36 +    linux* | k*bsd*-gnu | kopensolaris*-gnu)
37        case $cc_basename in
38        icc* | ecc* | ifort*)
39         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40 @@ -4169,7 +4169,7 @@
41    cygwin* | mingw*)
42      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
43    ;;
44 -  linux* | k*bsd*-gnu)
45 +  linux* | k*bsd*-gnu | kopensolaris*-gnu)
46      _LT_TAGVAR(link_all_deplibs, $1)=no
47    ;;
48    *)
49 @@ -4348,7 +4348,7 @@
50        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
51        ;;
52  
53 -    gnu* | linux* | tpf* | k*bsd*-gnu)
54 +    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
55        tmp_diet=no
56        if test "$host_os" = linux-dietlibc; then
57         case $cc_basename in
58 @@ -5823,7 +5823,7 @@
59          _LT_TAGVAR(inherit_rpath, $1)=yes
60          ;;
61  
62 -      linux* | k*bsd*-gnu)
63 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
64          case $cc_basename in
65            KCC*)
66             # Kuck and Associates, Inc. (KAI) C++ Compiler
67 diff -uraN fakeroot-1.9.5.orig/config.guess fakeroot-1.9.5/config.guess
68 --- fakeroot-1.9.5.orig/config.guess    2008-04-26 10:45:10.000000000 -0400
69 +++ fakeroot-1.9.5/config.guess 2008-09-27 23:34:06.995559649 -0400
70 @@ -828,6 +828,10 @@
71         # the GNU system
72         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
73         exit ;;
74 +    *:GNU/kOpenSolaris:*:*)
75 +       # like linux, we don't need to record the version number
76 +       echo ${UNAME_MACHINE}-unknown-kopensolaris-gnu
77 +       exit ;;
78      *:GNU/*:*:*)
79         # other systems with GNU libc and userland
80         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
81 diff -uraN fakeroot-1.9.5.orig/config.sub fakeroot-1.9.5/config.sub
82 --- fakeroot-1.9.5.orig/config.sub      2008-04-26 10:45:10.000000000 -0400
83 +++ fakeroot-1.9.5/config.sub   2008-09-27 23:34:07.007757954 -0400
84 @@ -122,7 +122,7 @@
85  case $maybe_os in
86    nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
87    uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
88 -  storm-chaos* | os2-emx* | rtmk-nova*)
89 +  storm-chaos* | os2-emx* | rtmk-nova* | kopensolaris*-gnu* )
90      os=-$maybe_os
91      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
92      ;;
93 @@ -1258,7 +1258,7 @@
94               | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
95               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
96               | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
97 -             | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
98 +             | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -kopensolaris*-gnu* )
99         # Remember, each alternative MUST END IN *, to match a version number.
100                 ;;
101         -qnx*)
102 diff -uraN fakeroot-1.9.5.orig/configure fakeroot-1.9.5/configure
103 --- fakeroot-1.9.5.orig/configure       2008-04-26 10:45:05.000000000 -0400
104 +++ fakeroot-1.9.5/configure    2008-09-27 23:33:28.167067683 -0400
105 @@ -4732,7 +4732,7 @@
106    ;;
107  
108  # This must be Linux ELF.
109 -linux* | k*bsd*-gnu)
110 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
111    lt_cv_deplibs_check_method=pass_all
112    ;;
113  
114 @@ -7196,7 +7196,7 @@
115        lt_prog_compiler_static='-non_shared'
116        ;;
117  
118 -    linux* | k*bsd*-gnu)
119 +    linux* | k*bsd*-gnu | kopensolaris*-gnu)
120        case $cc_basename in
121        icc* | ecc* | ifort*)
122         lt_prog_compiler_wl='-Wl,'
123 @@ -7743,7 +7743,7 @@
124        archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
125        ;;
126  
127 -    gnu* | linux* | tpf* | k*bsd*-gnu)
128 +    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
129        tmp_diet=no
130        if test "$host_os" = linux-dietlibc; then
131         case $cc_basename in
132 @@ -9273,7 +9273,7 @@
133    ;;
134  
135  # This must be Linux ELF.
136 -linux* | k*bsd*-gnu)
137 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
138    version_type=linux
139    need_lib_prefix=no
140    need_version=no
141 @@ -12790,7 +12790,7 @@
142         (*:osf*)
143                 libcpath="/shlib/libc.so"
144                 ;;
145 -       (*:solaris*)
146 +       (*:solaris* | *:kopensolaris*-gnu)
147                 libcpath="/lib/libc.so.1"
148                 ;;
149         (*:darwin*)
150 diff -uraN fakeroot-1.9.5.orig/configure.ac fakeroot-1.9.5/configure.ac
151 --- fakeroot-1.9.5.orig/configure.ac    2008-04-26 10:43:18.000000000 -0400
152 +++ fakeroot-1.9.5/configure.ac 2008-09-27 23:33:40.300034025 -0400
153 @@ -398,7 +398,7 @@
154         (*:osf*)
155                 libcpath="/shlib/libc.so"
156                 ;;
157 -       (*:solaris*)
158 +       (*:solaris* | *:kopensolaris*-gnu)
159                 libcpath="/lib/libc.so.1"
160                 ;;
161         (*:darwin*)