Merge lp:~fginther/geis/geis-2.1.2.1-rename into lp:geis/oneiric
- geis-2.1.2.1-rename
- Merge into oneiric
Proposed by
Francis Ginther
Status: | Merged |
---|---|
Approved by: | Daniel d'Andrada |
Approved revision: | 140 |
Merged at revision: | 138 |
Proposed branch: | lp:~fginther/geis/geis-2.1.2.1-rename |
Merge into: | lp:geis/oneiric |
Diff against target: |
29808 lines (+10649/-9967) 135 files modified
ChangeLog (+0/-1720) Makefile.am (+3/-3) Makefile.in (+9/-7) NEWS (+1/-1) aclocal.m4 (+8/-6) config.aux/config.guess (+120/-105) config.aux/config.sub (+101/-55) config.aux/ltmain.sh (+2619/-1390) configure (+1836/-992) configure.ac (+12/-12) debian/changelog (+11/-253) debian/control (+22/-14) debian/copyright (+2/-2) debian/libgeis-doc.doc-base (+5/-5) debian/libgeis-doc.install (+1/-1) debian/libgeis1.install (+1/-1) debian/libgeis1.symbols (+1/-1) debian/patches/0001-fix-memory-leaks.patch (+15/-15) debian/patches/0002-fix-crash-no-X.patch (+9/-9) debian/patches/0003-fix-crash-unlabelled-axes.patch (+3/-3) debian/patches/0004-fix-device-array-overrun.patch (+3/-3) debian/patches/0005-restore-11.04-v1-gesture-names.patch (+4/-4) debian/source_geis.py (+1/-1) debian/watch (+1/-1) doc/Makefile.in (+3/-1) examples/Makefile.am (+3/-3) examples/Makefile.in (+7/-5) include/Makefile.am (+1/-1) include/Makefile.in (+4/-2) include/geis/geis.h (+6/-6) libgeis.pc.in (+2/-2) libgeis/Makefile.am (+12/-12) libgeis/Makefile.in (+1024/-0) libgeis/backend/Makefile.am (+3/-3) libgeis/backend/Makefile.in (+616/-0) libgeis/backend/test_fixture/Makefile.am (+9/-9) libgeis/backend/test_fixture/Makefile.in (+552/-0) libgeis/backend/test_fixture/geis_backend_test_fixture.c (+1/-1) libgeis/backend/xcb/Makefile.am (+8/-8) libgeis/backend/xcb/Makefile.in (+612/-0) libgeis/backend/xcb/geis_xcb_backend.c (+3/-3) libgeis/geis.c (+9/-9) libgeis/geis_atomic.h (+1/-1) libgeis/geis_attr.c (+1/-1) libgeis/geis_attr.h (+1/-1) libgeis/geis_class.c (+2/-2) libgeis/geis_class.h (+3/-3) libgeis/geis_device.c (+2/-2) libgeis/geis_device.h (+3/-3) libgeis/geis_error.c (+2/-2) libgeis/geis_event.c (+1/-1) libgeis/geis_event.h (+1/-1) libgeis/geis_event_queue.c (+1/-1) libgeis/geis_event_queue.h (+1/-1) libgeis/geis_filter.c (+2/-2) libgeis/geis_filter.h (+3/-3) libgeis/geis_filter_term.c (+2/-2) libgeis/geis_filter_term.h (+3/-3) libgeis/geis_group.c (+1/-1) libgeis/geis_group.h (+3/-3) libgeis/geis_region.c (+2/-2) libgeis/geis_region.h (+1/-1) libgeis/geis_subscription.c (+2/-2) libgeis/geis_subscription.h (+2/-2) libgeis/geis_timer.h (+1/-1) libgeis/geis_touch.c (+1/-1) libgeis/geis_touch.h (+3/-3) libgeis/geis_v1.c (+5/-5) libgeis/server/Makefile.am (+8/-8) libgeis/server/Makefile.in (+571/-0) libgeis/server/geis_dbus.h (+1/-1) libgeis/server/geis_dbus_server.h (+0/-3) libs/Makefile.am (+2/-2) libs/Makefile.in (+5/-3) libs/xcb/Makefile.am (+2/-2) libs/xcb/Makefile.in (+5/-3) libutouch-geis/Makefile.in (+0/-1030) libutouch-geis/backend/Makefile.in (+0/-614) libutouch-geis/backend/test_fixture/Makefile.in (+0/-550) libutouch-geis/backend/xcb/Makefile.in (+0/-611) libutouch-geis/server/Makefile.in (+0/-570) m4/ax_enable_xi2.m4 (+1/-1) m4/libtool.m4 (+1256/-782) m4/ltoptions.m4 (+7/-6) m4/ltversion.m4 (+6/-6) m4/lt~obsolete.m4 (+9/-3) python/Makefile.am (+3/-3) python/Makefile.in (+6/-4) python/_geis_bindings/_geis_bindings.c (+4/-4) python/geis/__init__.py (+6/-6) python/geis/geis_v2.py (+1/-1) python/pygeis (+1/-1) python/run_pygeis (+1/-1) testsuite/Makefile.am (+2/-2) testsuite/Makefile.in (+5/-3) testsuite/geis1/Makefile.am (+2/-2) testsuite/geis1/Makefile.in (+6/-5) testsuite/geis1/check_gesture_attrs.c (+1/-2) testsuite/geis1/check_gesture_types.c (+3/-0) testsuite/geis1/check_subscription.c (+3/-8) testsuite/geis2/Makefile.am (+2/-2) testsuite/geis2/Makefile.in (+6/-5) testsuite/geis2/check_class.c (+1/-1) testsuite/geis2/check_config.c (+1/-1) testsuite/geis2/check_device.c (+1/-1) testsuite/geis2/check_filter.c (+1/-1) testsuite/geis2/check_frame.c (+1/-1) testsuite/geis2/check_geis_new.c (+1/-1) testsuite/geis2/check_region.c (+1/-1) testsuite/geis2/check_subscription.c (+1/-1) testsuite/geistest/Makefile.am (+2/-2) testsuite/geistest/Makefile.in (+6/-5) testsuite/libgeis/Makefile.am (+6/-6) testsuite/libgeis/Makefile.in (+936/-0) testsuite/libgeis/check_attr.c (+2/-2) testsuite/libgeis/check_backend_multiplexor.c (+3/-3) testsuite/libgeis/check_backend_token.c (+5/-5) testsuite/libgeis/check_class.c (+2/-2) testsuite/libgeis/check_device.c (+2/-2) testsuite/libgeis/check_error_reporting.c (+2/-2) testsuite/libgeis/check_event_queue.c (+3/-3) testsuite/libgeis/check_filter.c (+3/-3) testsuite/libgeis/check_geis2_internals.c (+2/-2) testsuite/libgeis/check_geis_private.c (+4/-4) testsuite/libgeis/check_region.c (+4/-4) testsuite/libgeis/check_subscription.c (+4/-4) testsuite/libgeis/check_timer.c (+4/-4) testsuite/libutouch-geis/Makefile.in (+0/-934) tools/Makefile.am (+1/-1) tools/Makefile.in (+4/-2) tools/geisview/Makefile.am (+1/-1) tools/geisview/Makefile.in (+4/-2) tools/geisview/defaults.py (+1/-1) tools/geisview/defaults.py.in (+1/-1) tools/geisview/geisview (+1/-1) |
To merge this branch: | bzr merge lp:~fginther/geis/geis-2.1.2.1-rename |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel d'Andrada (community) | Approve | ||
Review via email: mp+121070@code.launchpad.net |
Commit message
* New upstream microrelease, bug fixes only
- Rename project to simply 'geis' (LP: #1040755)
* Updated debian/watch file for project rename
* Rename package and update packaging
- Added Conflicts and Replaces clauses for libgeis-dev, libgeis-doc,
python-geis and geis-tools
Description of the change
The primary rationale for this change is to repackage geis for the project rename.
* New upstream microrelease, bug fixes only
- Rename project to simply 'geis' (LP: #1040755)
* Updated debian/watch file for project rename
* Rename package and update packaging
- Added Conflicts and Replaces clauses for libgeis-dev, libgeis-doc,
python-geis and geis-tools
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2011-06-02 19:38:57 +0000 | |||
3 | +++ ChangeLog 2012-08-23 18:45:02 +0000 | |||
4 | @@ -1,1720 +0,0 @@ | |||
5 | 1 | 2011-03-31 Stephen M. Webb <stephen.webb@canonical.com> | ||
6 | 2 | |||
7 | 3 | Add initial python bindings. | ||
8 | 4 | |||
9 | 5 | * python/Makefile.am: new file | ||
10 | 6 | * python/_geis_bindings/_geis_bindings.c: new file | ||
11 | 7 | * python/geis/__init__.py: new file | ||
12 | 8 | * python/geis/geis_v2.py: new file | ||
13 | 9 | * python/pygeis: new script | ||
14 | 10 | * Makefile.am (SUBDIRS): added python | ||
15 | 11 | * configure.ac (AC_CONFIG_FILES): added new generated files | ||
16 | 12 | |||
17 | 13 | 2011-04-10 Stephen M. Webb <stephen.webb@canonical.com> | ||
18 | 14 | |||
19 | 15 | Repaired a callback persistence problem (LP: #754135). | ||
20 | 16 | |||
21 | 17 | * testsuite/geis1/check_subscription.c: new test suite | ||
22 | 18 | * libutouch-geis/geis_v1.c: saved a copy of the callback tables | ||
23 | 19 | * testsuite/geis1/Makefile.am: included new test suite | ||
24 | 20 | * testsuite/geis1/check_geis1_api.c: ran new test suite | ||
25 | 21 | |||
26 | 22 | 2011-04-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
27 | 23 | |||
28 | 24 | Made direct use of XI2.1 optional at build time (LP: #741404). | ||
29 | 25 | |||
30 | 26 | * m4/ax_enable_xi2.m4: new autoconf macro | ||
31 | 27 | * configure.ac: invoked the new macro | ||
32 | 28 | * libutouch-geis/backend/xcb/geis_xcb_backend.c: optioned XI2.1 code | ||
33 | 29 | |||
34 | 30 | 2011-04-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
35 | 31 | |||
36 | 32 | Fixed invalid pointer dereference on XI initialization failure in XCB back | ||
37 | 33 | end (LP: #730899). | ||
38 | 34 | |||
39 | 35 | * libutouch-geis/backend/xcb/geis_xcb_backend.c | ||
40 | 36 | (geis_xcb_backend_new): cleared properly to indicate a failure. | ||
41 | 37 | |||
42 | 38 | 2011-03-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
43 | 39 | |||
44 | 40 | Changes the list of attrs received from grail for the Touch gesture. | ||
45 | 41 | |||
46 | 42 | * libutouch-geis/backend/xcb/grail_gestures.c: change Touch attrs | ||
47 | 43 | |||
48 | 44 | 2011-03-25 Stephen M. Webb <stephen.webb@canonical.com> | ||
49 | 45 | |||
50 | 46 | Added new TOUCH gesture types (LP: #742555). | ||
51 | 47 | |||
52 | 48 | * include/geis/geis.h: added new TOUCH gesture types | ||
53 | 49 | * libutouch-geis/backend/xcb/geis_xcb_backend.c: tweaked gesture mask size | ||
54 | 50 | * libutouch-geis/backend/xcb/grail_gestures.c: added new TOUCH gesture types | ||
55 | 51 | added proper handling of a variable-size gesture mask | ||
56 | 52 | * libutouch-geis/geis_v1.c: mapped new TOUCH gesture types to grail TOUCH | ||
57 | 53 | gesture types | ||
58 | 54 | * testsuite/geis1/check_gesture_types.c: new testsuite | ||
59 | 55 | * testsuite/geis1/Makefile.am: added new testsuite | ||
60 | 56 | * testsuite/geis1/check_geis1_api.c: invoked new testsuite | ||
61 | 57 | * testsuite/geistest/geistest.c: added new gesture types | ||
62 | 58 | |||
63 | 59 | 2011-03-24 Stephen M. Webb <stephen.webb@canonical.com> | ||
64 | 60 | |||
65 | 61 | Fixed a bad index when translating grail touches (LP: #742002). | ||
66 | 62 | |||
67 | 63 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): | ||
68 | 64 | fixed offset calculation for grail touch properties | ||
69 | 65 | |||
70 | 66 | 2011-03-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
71 | 67 | |||
72 | 68 | Added a default back end (LP: #740311). | ||
73 | 69 | |||
74 | 70 | * examples/geis2.c (dump_gesture_event): dumped more info | ||
75 | 71 | (main): removed GEIS_INIT_UTOUCH_XCB from geis_new call | ||
76 | 72 | * libutouch-geis/geis.c (geis_new): added GEIS_INIT_UTOUCH_XCB as default | ||
77 | 73 | |||
78 | 74 | 2011-03-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
79 | 75 | |||
80 | 76 | Passed the correct gesture_id to GEIS v1 callbacks (LP: #740284). | ||
81 | 77 | |||
82 | 78 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): | ||
83 | 79 | Used the grail gesture_id as the frame_id. | ||
84 | 80 | * testsuite/geistest/geistest.c (gesture_update): reported the gesture_id | ||
85 | 81 | (gesture_start): reported the gesture_id | ||
86 | 82 | (gesture_finish): reported the gesture_id | ||
87 | 83 | |||
88 | 84 | 2011-03-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
89 | 85 | |||
90 | 86 | Corrected the number of touches on a gesture event (LP: #737745). | ||
91 | 87 | |||
92 | 88 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): | ||
93 | 89 | replaced geis_xcb_backend_touch_count() call with a calculation based on | ||
94 | 90 | the number of touch properties passed from grail | ||
95 | 91 | * libutouch-geis/backend/xcb/grail_gestures.c (geis_xcb_backend_touch_count): | ||
96 | 92 | removed | ||
97 | 93 | * libutouch-geis/backend/xcb/grail_gestures.h (geis_xcb_backend_touch_count): | ||
98 | 94 | removed | ||
99 | 95 | |||
100 | 96 | 2011-03-17 Stephen M. Webb <stephen.webb@canonical.com> | ||
101 | 97 | |||
102 | 98 | Added definitions for GEIS v1 gesture primitive types (LP: #737230). | ||
103 | 99 | |||
104 | 100 | * include/geis/geis.h (GEIS_GESTURE_PRIMITIVE_DRAG): new symbol | ||
105 | 101 | (GEIS_GESTURE_PRIMITIVE_PINCH): new symbol | ||
106 | 102 | (GEIS_GESTURE_PRIMITIVE_ROTATE): new symbol | ||
107 | 103 | (GEIS_GESTURE_PRIMITIVE_TAP): new symbol | ||
108 | 104 | * libutouch-geis/backend/xcb/grail_gestures.c (s_grail_class_map): | ||
109 | 105 | replaced utouch-grail symbolic constants with the new GEIS symbolic | ||
110 | 106 | constants | ||
111 | 107 | |||
112 | 108 | 2011-03-16 Stephen M. Webb <stephen.webb@canonical.com> | ||
113 | 109 | |||
114 | 110 | Refined the API documentation and added an examples directory. | ||
115 | 111 | |||
116 | 112 | * doc/api.dox: new documentation file | ||
117 | 113 | * doc/logo_x64.png: new logo image | ||
118 | 114 | * doc/using_geis_v2.dox: new documentation file | ||
119 | 115 | * examples/Makefile.am: examples subdirectory Makefile | ||
120 | 116 | * examples/geis2.c: new example program | ||
121 | 117 | * Makefile.am: added examples subdirectory | ||
122 | 118 | * configure.ac: added examples subdirectory | ||
123 | 119 | * doc/Doxyfile: tweaked Doxygen settings | ||
124 | 120 | * include/geis/geis.h: complete API docs refinement | ||
125 | 121 | |||
126 | 122 | 2011-03-16 Stephen M. Webb <stephen.webb@canonical.com> | ||
127 | 123 | |||
128 | 124 | Replaced device class with explicit attributes. | ||
129 | 125 | |||
130 | 126 | * include/geis/geis.h (GEIS_DEVICE_CLASS_*) removed | ||
131 | 127 | (GEIS_DEVICE_ATTRIBUTE_DIRECT_TOUCH): added | ||
132 | 128 | (GEIS_DEVICE_ATTRIBUTE_INDEPENDENT_TOUCH): added | ||
133 | 129 | * libutouch-geis/backend/xcb/geis_xcb_backend.c: | ||
134 | 130 | (_map_xi2_mode_to_geis_device_attrs): replaced function | ||
135 | 131 | _map_xi2_mode_to_geis_device_class | ||
136 | 132 | * testsuite/geis2/check_device.c: added checks for new attributes | ||
137 | 133 | |||
138 | 134 | 2011-03-16 Stephen M. Webb <stephen.webb@canonical.com> | ||
139 | 135 | |||
140 | 136 | Refinement of input device class handling. | ||
141 | 137 | |||
142 | 138 | * include/geis/geis.h (GEIS_DEVICE_CLASS_UNKNOWN): new device class | ||
143 | 139 | (GEIS_DEVICE_CLASS_TOUCH_MULTIFINGER): new device class | ||
144 | 140 | * libutouch-geis/backend/xcb/geis_xcb_backend.c | ||
145 | 141 | (_map_xi2_mode_to_geis_device_class): new function | ||
146 | 142 | (_report_an_xcb_device): used it | ||
147 | 143 | |||
148 | 144 | 2011-03-13 Stephen M. Webb <stephen.webb@canonical.com> | ||
149 | 145 | |||
150 | 146 | Initialized an uninitialized variable. | ||
151 | 147 | |||
152 | 148 | * libutouch-geis/geis_v1.c (_v1_input_callback): initialized device_id | ||
153 | 149 | |||
154 | 150 | 2011-03-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
155 | 151 | |||
156 | 152 | Added spcifying devices to geistest. | ||
157 | 153 | |||
158 | 154 | * libutouch-geis/backend/xcb/geis_xcb_backend.c: added -d swicth | ||
159 | 155 | * doc/geistest.1: documented its use | ||
160 | 156 | |||
161 | 157 | 2011-03-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
162 | 158 | |||
163 | 159 | Added proper device ID filtering for GEIS v1. | ||
164 | 160 | |||
165 | 161 | * libutouch-geis/geis_v1.c (_subscribe_device): Added filter for device ID. | ||
166 | 162 | |||
167 | 163 | 2011-03-11 Stephen M. Webb <stephen.webb@canonical.com> | ||
168 | 164 | |||
169 | 165 | Implement device enumeration (LP: #733296) | ||
170 | 166 | |||
171 | 167 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_report_an_xcb_device): new | ||
172 | 168 | (_report_xcb_devices): imlemented | ||
173 | 169 | * libutouch-geis/geis_device.c (geis_device_new): made "id" an attr | ||
174 | 170 | (geis_device_id): same | ||
175 | 171 | (geis_device_add_attr): implemented missing function | ||
176 | 172 | * libutouch-geis/geis_v1.c (_v1_input_callback): new function | ||
177 | 173 | (geis_input_devices): implemented | ||
178 | 174 | * testsuite/geis1/check_gesture_attrs.c: removed debug message | ||
179 | 175 | * testsuite/geistest/geistest.c (input_device_added): added a dump | ||
180 | 176 | |||
181 | 177 | 2011-03-11 Stephen M. Webb <stephen.webb@canonical.com> | ||
182 | 178 | |||
183 | 179 | Fix a lifetime issue with string attrs. | ||
184 | 180 | |||
185 | 181 | * libutouch_ges/geis_attr.c (geis_attr_new): dup all strings | ||
186 | 182 | (geis_attr_delete): free strings | ||
187 | 183 | |||
188 | 184 | 2011-03-11 Stephen M. Webb <stephen.webb@canonical.com> | ||
189 | 185 | |||
190 | 186 | Added new device symbolic constants due to a change in the GEIS spec. | ||
191 | 187 | |||
192 | 188 | * include/geis/geis.h (GEIS_DEVICE_ATTRIBUTE_CLASS): new constant | ||
193 | 189 | (GEIS_DEVICE_ATTRIBUTE_TOUCHES): new constant | ||
194 | 190 | (GEIS_DEVICE_CLASS_TOUCH_DIRECT): new constant | ||
195 | 191 | (GEIS_DEVICE_CLASS_TOUCH_DEPENDENT): new constant | ||
196 | 192 | (GEIS_DEVICE_CLASS_TOUCH_INDEPENDENT): new constant | ||
197 | 193 | (GEIS_DEVICE_CLASS_TOUCH_PARTIAL): new constant | ||
198 | 194 | * testsuite/geis2/check_device.c: added tests for the above | ||
199 | 195 | |||
200 | 196 | 2011-03-11 Stephen M. Webb <stephen.webb@canonical.com> | ||
201 | 197 | |||
202 | 198 | Added a required symbolic constant for device events. | ||
203 | 199 | |||
204 | 200 | * include/geis/geis.h (GEIS_EVENT_ATTRIBUTE_DEVICE): new symbol | ||
205 | 201 | (GEIS_DEVICE_ATTRIBUTE_ID): new symbol | ||
206 | 202 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c: used them | ||
207 | 203 | * libutouch-geis/geis.c: used them | ||
208 | 204 | * testsuite/geis2/check_device.c (geis_device_types): checked them | ||
209 | 205 | * testsuite/geis2/check_subscription.c: used them | ||
210 | 206 | |||
211 | 207 | 2011-03-08 Stephen M. Webb <stephen.webb@canonical.com> | ||
212 | 208 | |||
213 | 209 | Released utouch-geis v2.0.3. | ||
214 | 210 | |||
215 | 211 | * configure.ac (AC_INIT): bumped version to 2.0.3 | ||
216 | 212 | |||
217 | 213 | 2011-03-08 Stephen M. Webb <stephen.webb@canonical.com> | ||
218 | 214 | |||
219 | 215 | Added fix for LP: #732104: re-order class event pump in v1 emulation. | ||
220 | 216 | |||
221 | 217 | * libutouch-geis/geis_v1.c (_subscribe_device): added more diagnostic messages | ||
222 | 218 | (geis_subscribe): re-ordered event pump to prime the class table | ||
223 | 219 | |||
224 | 220 | 2011-03-08 Stephen M. Webb <stephen.webb@canonical.com> | ||
225 | 221 | |||
226 | 222 | Added a unit test and related infrastructure in the mock objects to reproduce | ||
227 | 223 | LP: #732104. | ||
228 | 224 | |||
229 | 225 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c: | ||
230 | 226 | moved generation of gesture events to after subscription creation, added | ||
231 | 227 | support for TOUCH filters | ||
232 | 228 | * testsuite/geis1/check_gesture_attrs.c: added check for touch count, | ||
233 | 229 | changed subscription from GEIS_ALL_GESTURES to an explicit list | ||
234 | 230 | * testsuite/geis2/check_frame.c: activated subscription | ||
235 | 231 | |||
236 | 232 | 2011-03-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
237 | 233 | |||
238 | 234 | Released GEIS v2.0.2. | ||
239 | 235 | |||
240 | 236 | * configure.ac (AC_INIT): bumped version to 2.0.2 | ||
241 | 237 | |||
242 | 238 | 2011-03-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
243 | 239 | |||
244 | 240 | Renamed test case for LP: #728606 | ||
245 | 241 | |||
246 | 242 | * testsuite/geis1/check_gesture_attrs.c: renamed from | ||
247 | 243 | testsuite/geis1/check_lp728606.c | ||
248 | 244 | * testsuite/geis1/Makefile.am: renamed source file | ||
249 | 245 | added -Werror to CFLAGS | ||
250 | 246 | * testsuite/geis1/check_geis1_api.c: renamed test | ||
251 | 247 | |||
252 | 248 | 2011-03-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
253 | 249 | |||
254 | 250 | Added regression test for LP: #728606 | ||
255 | 251 | |||
256 | 252 | * testsuite/geis1/check_lp728606.c: new test suite | ||
257 | 253 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
258 | 254 | (_create_gesture_events): add some basic gesture attrs to mock events | ||
259 | 255 | * libutouch-geis/geis_v1.c (geis_init): tweaked mock object creation | ||
260 | 256 | (geis_finish): reset global Geis object | ||
261 | 257 | (geis_subscribe): relocated class event pump | ||
262 | 258 | * testsuite/geis1/Makefile.am: added new test suite source | ||
263 | 259 | * testsuite/geis1/check_geis1_api.c: ran new test suite | ||
264 | 260 | |||
265 | 261 | 2011-03-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
266 | 262 | |||
267 | 263 | Enabled GEIS v1 for basic API unit testing. | ||
268 | 264 | |||
269 | 265 | * testsuite/geis1/check_instance.c: new test suite | ||
270 | 266 | * libutouch-geis/geis_v1.c (_generate_subscription_name): handled NULL XCB info | ||
271 | 267 | (geis_init): handled request for mock back end | ||
272 | 268 | * testsuite/geis1/Makefile.am: added new source file | ||
273 | 269 | * testsuite/geis1/check_geis1_api.c: ran new test suite | ||
274 | 270 | |||
275 | 271 | 2011-03-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
276 | 272 | |||
277 | 273 | Re-added GEIS v1 API testing. | ||
278 | 274 | |||
279 | 275 | * testsuite/geis1/check_geis_internals.c: removed | ||
280 | 276 | * testsuite/geis1/check_instance_table.c: removed | ||
281 | 277 | * testsuite/geis1/check_geis1_api.c: new file | ||
282 | 278 | * configure.ac (AC_CONFIG_FILES): added testsuite.geis1/Makefile | ||
283 | 279 | * testsuite/Makefile.am (SUBDIRS): added geis1 | ||
284 | 280 | * testsuite/geis1/Makefile.am: Removed old unit tests, added check_geis1_api | ||
285 | 281 | |||
286 | 282 | 2011-03-03 Stephen M. Webb <stephen.webb@canonical.com> | ||
287 | 283 | |||
288 | 284 | Fixed incorrect data conversion in GEIS v1 implementation (LP: #728606) | ||
289 | 285 | |||
290 | 286 | * libutouch_geis/geis_v1 (_map_frame_to_attrs): put float value in the float | ||
291 | 287 | member of the attr union to avoid unwanted coercion. | ||
292 | 288 | |||
293 | 289 | 2011-02-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
294 | 290 | |||
295 | 291 | Added a graceful exit to the geistest tool. | ||
296 | 292 | |||
297 | 293 | * testsuite/geistest/geistest.c (main): added watch on stdin for exit | ||
298 | 294 | * doc/geistest.1: mentioned how to exit gracefully | ||
299 | 295 | |||
300 | 296 | 2011-02-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
301 | 297 | |||
302 | 298 | Fixed logic in a string-to-boolean conversion. | ||
303 | 299 | |||
304 | 300 | * libutouch-geis/geis_attr.c (geis_attr_value_to_boolean): fixed logic | ||
305 | 301 | |||
306 | 302 | 2011-02-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
307 | 303 | |||
308 | 304 | Fixed memory leaks in GEIS v2 subscriptions. | ||
309 | 305 | |||
310 | 306 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_finalize): closed X display | ||
311 | 307 | * libutouch-geis/geis.c (geis_new): reffed the new geis object | ||
312 | 308 | (geis_delete): invalidated all outstanding subscriptions | ||
313 | 309 | * libutouch-geis/geis_backend.c: fixed debug message to avoid a bad dereference | ||
314 | 310 | * libutouch-geis/geis_filter.c: only unref ther geis object on destruction | ||
315 | 311 | * libutouch-geis/geis_filter_term.c: free the bag store on deletion | ||
316 | 312 | * libutouch-geis/geis_subscription.h (geis_subscription_bag_invalidate): new | ||
317 | 313 | (geis_subscription_invalidate): new | ||
318 | 314 | * libutouch-geis/geis_subscription.c: imlemented new functions | ||
319 | 315 | (_subscription_destroy): handled destruction in invalided state | ||
320 | 316 | * libutouch-geis/geis_v1.c (geis_finish): deleted window filter | ||
321 | 317 | |||
322 | 318 | 2011-02-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
323 | 319 | |||
324 | 320 | Fixed memory leaks in GEIS v2 group and touch sets. | ||
325 | 321 | |||
326 | 322 | * libutouch-geis/geis_frame.c (geis_frameset_delete): fixed loop condition | ||
327 | 323 | (geis_frame_delete): freed touches | ||
328 | 324 | * libutouch-geis/geis_group.c (geis_groupset_delete): fixed loop condition | ||
329 | 325 | * libutouch-geis/geis_touch.c (geis_touchset_delete): fixed loop condition | ||
330 | 326 | |||
331 | 327 | 2011-02-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
332 | 328 | |||
333 | 329 | Fixed a memory leak in GEIS v2 gesture events. | ||
334 | 330 | |||
335 | 331 | * libutouch-geis/geis_attr.h (GeisAttrDestructor): new type | ||
336 | 332 | (geis_attr_set_destructor): new function | ||
337 | 333 | * libutouch-geis/geis_attr.c (geis_attr_set_destructor): implemented it | ||
338 | 334 | (attr_value): named union for ISO C compatibility | ||
339 | 335 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): added | ||
340 | 336 | destructors to groupset and touchset attrs | ||
341 | 337 | |||
342 | 338 | 2011-02-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
343 | 339 | |||
344 | 340 | Released version 2.0.1. | ||
345 | 341 | |||
346 | 342 | * configure.ac (AC_INIT): bumped package version to 2.0.1 | ||
347 | 343 | |||
348 | 344 | 2011-02-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
349 | 345 | |||
350 | 346 | Used standardized LGPL-v3 license text. | ||
351 | 347 | |||
352 | 348 | * COPYING: refreshed with standardized text. | ||
353 | 349 | |||
354 | 350 | 2011-02-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
355 | 351 | |||
356 | 352 | Restored missing GEIS v1 symbols and fixed a segfault in libgrip. | ||
357 | 353 | |||
358 | 354 | * libutouch-geis/geis_v1.c (struct _GeisInstance): added window_filter field | ||
359 | 355 | (geis_init): initialized window_filter field | ||
360 | 356 | (_subscribe_device): used window_filter field from instance | ||
361 | 357 | (geis_configuration_set_value): added missing GEIS v1 function | ||
362 | 358 | (geis_unsubscribe): added missing GEIS v1 function | ||
363 | 359 | |||
364 | 360 | 2011-02-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
365 | 361 | |||
366 | 362 | Release version 2.0.0 | ||
367 | 363 | |||
368 | 364 | * configure.ac (AC_INIT): bumped package version to 2.0.0 | ||
369 | 365 | * libutouch-geis/Makefile.am (libutouch_geis_la_LDFLAGS): bumped version-info | ||
370 | 366 | to 3:0:2 (gives .so version 1.2.0) to reflect the addition of a new interface | ||
371 | 367 | |||
372 | 368 | 2011-02-21 Stephen M. Webb <stephen.webb@canonical.com> | ||
373 | 369 | |||
374 | 370 | Added support for setting the XCB sysflg through the GEIS v1 interface. | ||
375 | 371 | |||
376 | 372 | * include/geis/geis.h (GEIS_GESTURE_TYPE_SYSTEM): new gesture type | ||
377 | 373 | * libutouch-geis/geis_subscription.h | ||
378 | 374 | (geis_subscription_set_flags): new function | ||
379 | 375 | * libutouch-geis/geis_subscription.c: implemented it | ||
380 | 376 | * libutouch-geis/geis_v1.c (geis_subscribe): used it | ||
381 | 377 | |||
382 | 378 | 2011-02-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
383 | 379 | |||
384 | 380 | Cranked up warning level on testsuite and fixed (most of) the consequent | ||
385 | 381 | warnings. | ||
386 | 382 | |||
387 | 383 | * testsuite/geis2/check_attr.c: fxied compile-time warnings | ||
388 | 384 | * testsuite/geis2/check_class.c: same | ||
389 | 385 | * testsuite/geis2/check_device.c: same | ||
390 | 386 | * testsuite/geis2/check_event.c: same | ||
391 | 387 | * testsuite/geis2/check_filter.c: ditto | ||
392 | 388 | * testsuite/geis2/check_frame.c: same | ||
393 | 389 | * testsuite/geis2/check_geis2_api.c: same | ||
394 | 390 | * testsuite/geis2/check_geis_new.c: same | ||
395 | 391 | * testsuite/geis2/check_general_types.c: same | ||
396 | 392 | * testsuite/geis2/check_region.c: same | ||
397 | 393 | * testsuite/libutouch-geis/check_attr.c: same | ||
398 | 394 | * testsuite/libutouch-geis/check_backend_multiplexor.c: same | ||
399 | 395 | * testsuite/libutouch-geis/check_class.c: same | ||
400 | 396 | * testsuite/libutouch-geis/check_device.c: idem | ||
401 | 397 | * testsuite/libutouch-geis/check_error_reporting.c: same | ||
402 | 398 | * testsuite/libutouch-geis/check_filter.c: yep | ||
403 | 399 | * testsuite/libutouch-geis/check_geis2_internals.c: you guessed it | ||
404 | 400 | * testsuite/libutouch-geis/check_geis_private.c: uh-huh | ||
405 | 401 | |||
406 | 402 | 2011-02-19 Stephen M. Webb <stephen.webb@canonical.com> | ||
407 | 403 | |||
408 | 404 | Fixed failed "make distcheck". | ||
409 | 405 | |||
410 | 406 | * libutouch-geis/Makefile.am: added geis_atomic.h | ||
411 | 407 | * libutouch-geis/server/Makefile.am: added geis_dbus.h | ||
412 | 408 | |||
413 | 409 | 2011-02-19 Stephen M. Webb <stephen.webb@canonical.com> | ||
414 | 410 | |||
415 | 411 | Removed old crufty unused source code. | ||
416 | 412 | |||
417 | 413 | * libgeis-dbus: removed directory | ||
418 | 414 | * libutouch-geis-xcb: removed directory | ||
419 | 415 | |||
420 | 416 | 2011-02-17 Stephen M. Webb <stephen.webb@canonical.com> | ||
421 | 417 | |||
422 | 418 | Added proper support for region filters in XCB. | ||
423 | 419 | |||
424 | 420 | * libutouch-geis/backend/xcb/geis_xcb_backend.c | ||
425 | 421 | (XcbGestureSub): added windows and window_count fields | ||
426 | 422 | (_translate_device_term_to_xcb): eliminated duplicates | ||
427 | 423 | (_translate_region_term_to_xcb): new function | ||
428 | 424 | (_subscribe): used new fields/function | ||
429 | 425 | * libutouch-geis/geis_v1.c (geis_init): added region filter for window | ||
430 | 426 | |||
431 | 427 | 2011-02-17 Stephen M. Webb <stephen.webb@canonical.com> | ||
432 | 428 | |||
433 | 429 | Added a check for the maximum number of device terms. | ||
434 | 430 | |||
435 | 431 | * libutouch-geis/backend/xcb/geis_xcb_backend.c | ||
436 | 432 | (_translate_device_term_to_xcb): Added MAX_NUM_DEVICES and checked it. | ||
437 | 433 | |||
438 | 434 | 2011-02-17 Stephen M. Webb <stephen.webb@canonical.com> | ||
439 | 435 | |||
440 | 436 | Added proper support for continuations and system gestures. | ||
441 | 437 | |||
442 | 438 | * libutouch-geis/backend/xcb/geis_xcb_backend.c | ||
443 | 439 | (_translate_class_term_to_xcb): fixed min/max logic | ||
444 | 440 | (_translate_filter_to_xcb): added subscription parameter, | ||
445 | 441 | called new functions, | ||
446 | 442 | ORed masks from different filters on same subscription | ||
447 | 443 | (_subscribe): removed special case for no class filters | ||
448 | 444 | * libutouch-geis/backend/xcb/grail_gestures.h | ||
449 | 445 | (geis_xcb_backend_create_gesture_bitmask): removed and replaced with... | ||
450 | 446 | (geis_xcb_backend_gesture_bitmask_filter_class): new function | ||
451 | 447 | (geis_xcb_backend_gesture_bitmask_filter_touches): new function | ||
452 | 448 | (geis_xcb_backend_gesture_bitmask_init): new function | ||
453 | 449 | * libutouch-geis/backend/xcb/grail_gestures.c: implemented the above new | ||
454 | 450 | * functions | ||
455 | 451 | * libutouch-geis/geis_subscription.h (geis_subscription_flags): new function | ||
456 | 452 | * libutouch-geis/geis_subscription.c: implemented it | ||
457 | 453 | * testsuite/geistest/geistest.c: switched from 'all' to a set of gestures | ||
458 | 454 | |||
459 | 455 | 2011-02-17 Stephen M. Webb <stephen.webb@canonical.com> | ||
460 | 456 | |||
461 | 457 | Added the ability to fetch a filter from a subscription and clone it. | ||
462 | 458 | |||
463 | 459 | * include/geis/geis.h (geis_filter_clone): new function | ||
464 | 460 | (geis_subscription_filter_by_name): new function | ||
465 | 461 | * libutouch-geis/geis_filter.h (geis_filter_bag_filter_by_name): new function | ||
466 | 462 | * libutouch-geis/geis_filter.c (geis_filter_bag_filter_by_name): implemented | ||
467 | 463 | (_filter_new_empty): new function | ||
468 | 464 | (geis_filter_new): used it | ||
469 | 465 | (geis_filter_clone): implemented it | ||
470 | 466 | (geis_filter_delete): unreffed geis | ||
471 | 467 | * libutouch-geis/geis_filter_term.h (geis_filter_term_bag_clone): new function | ||
472 | 468 | * libutouch-geis/geis_filter_term.c (geis_filter_term_bag_clone): implemented | ||
473 | 469 | * libutouch-geis/geis_subscription.c (geis_subscription_filter_by_name): impl | ||
474 | 470 | * libutouch-geis/geis_v1.c (_subscribe): used new functions | ||
475 | 471 | * libutouch-geis/libutouch-geis.ver (geis_filter_clone): new exported symbol | ||
476 | 472 | (geis_subscription_filter_by_name): new exported symbol | ||
477 | 473 | * testsuite/geis2/Makefile.am: added -Wall -Wextra CFLAGS | ||
478 | 474 | * testsuite/geis2/check_filter.c: new test case, silenced warnings | ||
479 | 475 | * testsuite/geis2/check_subscription.c: new test case, silenced warnings | ||
480 | 476 | * testsuite/libutouch-geis/Makefile.am: added -Wall -Wextra CFLAGS | ||
481 | 477 | |||
482 | 478 | 2011-02-17 Stephen M. Webb <stephen.webb@canonical.com> | ||
483 | 479 | |||
484 | 480 | Reference counting fixes: added geis_atomic functions, added reference | ||
485 | 481 | counting semantics to Geis and GeisFilterTerm modules. | ||
486 | 482 | |||
487 | 483 | * libutouch-geis/geis_atomic.h: new file | ||
488 | 484 | * libutouch-geis/geis.c (_geis_destroy): new function | ||
489 | 485 | (geis_ref): new function | ||
490 | 486 | (geis_unref): new function | ||
491 | 487 | (geis_delete): used new functions | ||
492 | 488 | * libutouch-geis/geis_class.c (geis_gesture_class_ref): used new atomics | ||
493 | 489 | (geis_gesture_class_unref): same | ||
494 | 490 | * libutouch-geis/geis_device.c (geis_device_ref): used new atomics | ||
495 | 491 | (geis_device_unref): same | ||
496 | 492 | * libutouch-geis/geis_filter.c (geis_filter_ref): used new atomics | ||
497 | 493 | (geis_filter_unref): same | ||
498 | 494 | (geis_filter_bag_insert): moved ref call to after all possible errors | ||
499 | 495 | * libutouch-geis/geis_filter.h (geis_filter_ref): changed return type | ||
500 | 496 | * libutouch-geis/geis_filter_term.c (struct _GeisFilterTerm): added refcount | ||
501 | 497 | (geis_filter_term_ref): new function | ||
502 | 498 | (geis_filter_term_unref): new function | ||
503 | 499 | (geis_filter_term_new): called geis_filter_term_ref | ||
504 | 500 | (geis_filter_term_delete): made static and renamed _filter_term_destroy | ||
505 | 501 | * libutouch-geis/geis_filter_term.h: prototyped new functions | ||
506 | 502 | * libutouch-geis/geis_private.h: prototyped new functions | ||
507 | 503 | * libutouch-geis/geis_region.c: used new atomics | ||
508 | 504 | * libutouch-geis/geis_subscription.c (_subscription_ref): new static function | ||
509 | 505 | (_subscription_unref): new static function | ||
510 | 506 | (geis_subscription_bag_empty): new function | ||
511 | 507 | (geis_subscription_bag_new): used new function | ||
512 | 508 | (geis_subscription_bag_delete): used new function | ||
513 | 509 | (geis_subscription_bag_remov): used new function | ||
514 | 510 | * libutouch-geis/geis_subscription.h: prototyped new functions | ||
515 | 511 | |||
516 | 512 | 2011-02-11 Stephen M. Webb <stephen.webb@canonical.com> | ||
517 | 513 | |||
518 | 514 | Implemented class and device filters properly. | ||
519 | 515 | |||
520 | 516 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (struct _XcbGestureSub): | ||
521 | 517 | added new fields | ||
522 | 518 | (_translate_class_filter_to_xcb): removed function | ||
523 | 519 | (_translate_device_term_to_xcb): new function | ||
524 | 520 | (_translate_class_term_to_xcb): new function | ||
525 | 521 | (_translate_filter_to_xcb): new function | ||
526 | 522 | (_subscribe): replaced old functions with new, restructired filter loop | ||
527 | 523 | * libutouch-geis/backend/xcb/grail_gestures.c: silenced compiler warnings | ||
528 | 524 | * libutouch-geis/geis_filter.c: replace by_facility functions | ||
529 | 525 | * libutouch-geis/geis_filter.h: same | ||
530 | 526 | * libutouch-geis/geis_filter_term.c: same | ||
531 | 527 | * libutouch-geis/geis_filter_term.h: same | ||
532 | 528 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c: | ||
533 | 529 | replaced filter by_facility calls. | ||
534 | 530 | |||
535 | 531 | 2011-02-09 Stephen M. Webb <stephen.webb@canonical.com> | ||
536 | 532 | |||
537 | 533 | Fixed a memory allocation problem during error reporting. | ||
538 | 534 | |||
539 | 535 | * libutouch-geis/geis_error.c (geis_error_stack_push): fixed realloc size | ||
540 | 536 | |||
541 | 537 | 2011-02-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
542 | 538 | |||
543 | 539 | Fixed a memory leak in the XCB back end. | ||
544 | 540 | |||
545 | 541 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_xcb_dispatch): freed XCB | ||
546 | 542 | event | ||
547 | 543 | |||
548 | 544 | 2011-02-04 Stephen M. Webb <stephen.webb@canonical.com> | ||
549 | 545 | |||
550 | 546 | Reimplement GEIS v1.0 on top of GEIS v2.0, Part III (touch attrs). | ||
551 | 547 | |||
552 | 548 | * include/geis/geis.h (GEIS_TOUCH_ATTRIBUTE_ID): new symbol | ||
553 | 549 | (GEIS_TOUCH_ATTRIBUTE_X): new symbol | ||
554 | 550 | (GEIS_TOUCH_ATTRIBUTE_Y): new symbol | ||
555 | 551 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): | ||
556 | 552 | added touch mapping | ||
557 | 553 | * libutouch-geis/geis_v1.c (_map_frame_to_attrs): mapped touches into | ||
558 | 554 | gesture attrs | ||
559 | 555 | |||
560 | 556 | 2011-02-02 Stephen M. Webb <stephen.webb@canonical.com> | ||
561 | 557 | |||
562 | 558 | Reimplement GEIS v1.0 on top of GEIS v2.0, Part II (gesture attrs). | ||
563 | 559 | |||
564 | 560 | * libutouch-geis/backend/xcb/grail_gestures.h | ||
565 | 561 | (geis_xcb_backend_map_grail_attrs): new function | ||
566 | 562 | * libutouch-geis/backend/xcb/grail_gestures.c: implemented it | ||
567 | 563 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): | ||
568 | 564 | called it | ||
569 | 565 | * libutouch-geis/geis_attr.c: fixed a memory leak | ||
570 | 566 | * libutouch-geis/geis_v1.c (_map_frame_to_attrs): new function | ||
571 | 567 | (_v1_event_callback): called it | ||
572 | 568 | |||
573 | 569 | 2011-01-31 Stephen M. Webb <stephen.webb@canonical.com> | ||
574 | 570 | |||
575 | 571 | Reimplement GEIS v1.0 on top of GEIS v2.0, Part I (basic gesture events). | ||
576 | 572 | |||
577 | 573 | * libutouch-geis/geis_v1.c: new file | ||
578 | 574 | * configure.ac: removed refs to libutouch-geis-xcb and testsuite/geis1 | ||
579 | 575 | * libutouch-geis/Makefile.am: removed refs to libutouch-geis-xcb | ||
580 | 576 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_dispatch_gesture): | ||
581 | 577 | added basic group, frame, and touch attrs to gesture events | ||
582 | 578 | * testsuite/Makefile.am: removed refs to testsuite/geis1 | ||
583 | 579 | |||
584 | 580 | 2011-01-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
585 | 581 | |||
586 | 582 | Implemented basic gesture subscriptions through the XCB back end. | ||
587 | 583 | |||
588 | 584 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (struct _XcbGestureSub): new | ||
589 | 585 | (_dispatch_gesture): new function | ||
590 | 586 | (_xcb_dispatch): called it | ||
591 | 587 | (_subscribe): initialized XcbGestureSub | ||
592 | 588 | (_unsubscribe): destroyed XcbGestureSub | ||
593 | 589 | * libutouch-geis/backend/xcb/grail_gestures.h | ||
594 | 590 | (geis_xcb_backend_primitive_class): new function | ||
595 | 591 | (geis_xcb_backend_touch_count): implemented new functions | ||
596 | 592 | * libutouch-geis/geis_subscription.h (geis_subscription_pdata): new function | ||
597 | 593 | (geis_subscription_set_pdata): new function | ||
598 | 594 | * libutouch-geis/geis_subscription.c: implemented new functions | ||
599 | 595 | |||
600 | 596 | 2011-01-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
601 | 597 | |||
602 | 598 | Added GEIS v2.0 gesture module, part V (refined frame-touch interaction) | ||
603 | 599 | |||
604 | 600 | * include/geis/geis.h (GeisTouchId) new type | ||
605 | 601 | (geis_touchset_touch_by_id(): new function | ||
606 | 602 | (geis_frame_touchid_count(): renamed from geis_frame_touch_count | ||
607 | 603 | (geis_frame_touchid): renamed from geis_frame_touch | ||
608 | 604 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
609 | 605 | (_create_gesture_events): called geis_frame_add_touchid | ||
610 | 606 | * libutouch-geis/geis_frame.c (struct _GeisFrame): added touch fields | ||
611 | 607 | (geis_frame_new): initialized touch fields | ||
612 | 608 | (geis_frame_delete): destroyed touch fields | ||
613 | 609 | * libutouch-geis/geis_frame.h (geis_frame_add_touchid): new fucntion | ||
614 | 610 | * libutouch-geis/geis_touch.c: implemented new function | ||
615 | 611 | * libutouch-geis/geis_touch.h (geis_touch_new): changed parameter type | ||
616 | 612 | * libutouch-geis/libutouch-geis.ver: added/renamed symbols | ||
617 | 613 | * testsuite/geis2/check_frame.c: expanded test case to include frame-touch | ||
618 | 614 | |||
619 | 615 | 2011-01-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
620 | 616 | |||
621 | 617 | Added GEIS v2.0 gesture module, part IV (frame implementation) | ||
622 | 618 | |||
623 | 619 | * libutouch-geis/geis_frame.c: new file | ||
624 | 620 | * libutouch-geis/geis_frame.h: new file | ||
625 | 621 | * libutouch-geis/Makefile.am: added new files | ||
626 | 622 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
627 | 623 | (_create_gesture_events): added frame to injected event | ||
628 | 624 | * libutouch-geis/geis_group.c (struct _GeisGroup): added frameset field | ||
629 | 625 | (geis_groupset_delete): cleaned out container | ||
630 | 626 | (geis_group_new): initialized frameset member | ||
631 | 627 | (geis_group_delete): destroyed frameset member | ||
632 | 628 | (geis_group_insert_frame): added function implementation | ||
633 | 629 | (geis_group_frame_count): added function implementation | ||
634 | 630 | (geis_group_frame): added function implementation | ||
635 | 631 | (geis_group_reject): added function stub | ||
636 | 632 | * libutouch-geis/geis_group.h (geis_group_insert_frame): new function | ||
637 | 633 | * libutouch-geis/geis_touch.c (geis_touchset_delete): cleaned out container | ||
638 | 634 | (geis_touch_new): initialized attr_bag member | ||
639 | 635 | (geis_touch_delete): destroyed attr_bag member | ||
640 | 636 | * testsuite/geis2/check_frame.c: added new checks for frames | ||
641 | 637 | |||
642 | 638 | 2011-01-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
643 | 639 | |||
644 | 640 | Added missing callback registration function. | ||
645 | 641 | |||
646 | 642 | * libutouch-geis/geis.c (geis_register_device_callback): implemented function | ||
647 | 643 | |||
648 | 644 | 2011-01-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
649 | 645 | |||
650 | 646 | Added GEIS v2.0 gesture module, part III (touch/touchset implementation) | ||
651 | 647 | |||
652 | 648 | * libutouch-geis/geis_touch.c: new file | ||
653 | 649 | * libutouch-geis/geis_touch.h: new file | ||
654 | 650 | * libutouch-geis/Makefile.am: added new files | ||
655 | 651 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
656 | 652 | (_create_gesture_events): added touch set to injected event | ||
657 | 653 | * testsuite/geis2/check_frame.c: added test case | ||
658 | 654 | |||
659 | 655 | 2011-01-26 Stephen M. Webb <stephen.webb@canonical.com> | ||
660 | 656 | |||
661 | 657 | Added GEIS v2.0 gesture module, part II (group/groupset implementation) | ||
662 | 658 | |||
663 | 659 | * libutouch-geis/geis_group.c: new file | ||
664 | 660 | * libutouch-geis/geis_group.h: new file | ||
665 | 661 | * libutouch-geis/Makefile.am: added new files | ||
666 | 662 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
667 | 663 | (_create_gesture_events): new function | ||
668 | 664 | (geis_backend_new_test_fixture): called it | ||
669 | 665 | * testsuite/geis2/check_class.c(receive_events): allowed for multiple events | ||
670 | 666 | * testsuite/geis2/check_device.c(receive_events): allowed for multiple events | ||
671 | 667 | * testsuite/geis2/check_frame.c (receive_events): new test case | ||
672 | 668 | * testsuite/geis2/check_subscription.c (receive_events): fixed leak | ||
673 | 669 | |||
674 | 670 | 2011-01-25 Stephen M. Webb <stephen.webb@canonical.com> | ||
675 | 671 | |||
676 | 672 | Added GEIS v2.0 gesture module, part I (public API). | ||
677 | 673 | |||
678 | 674 | * testsuite/geis2/check_frame.c: new test suite | ||
679 | 675 | * include/geis/geis.h (GeisGroup): new type | ||
680 | 676 | (GeisGroupSet): new type | ||
681 | 677 | (GeisTouch): new type | ||
682 | 678 | (GeisTouchSet): new type | ||
683 | 679 | (GeisFrame): new type | ||
684 | 680 | (GEIS_EVENT_ATTRIBUTE_GROUPSET): new symbol | ||
685 | 681 | (GEIS_EVENT_ATTRIBUTE_TOUCHSET): new symbol | ||
686 | 682 | (geis_groupset_group_count): new function | ||
687 | 683 | (geis_groupset_group): new function | ||
688 | 684 | (geis_group_id): new function | ||
689 | 685 | (geis_group_frame_count): new function | ||
690 | 686 | (geis_group_frame): new function | ||
691 | 687 | (geis_group_reject): new function | ||
692 | 688 | (geis_touchset_touch_count): new function | ||
693 | 689 | (geis_touchset_touch): new function | ||
694 | 690 | (geis_touch_id): new function | ||
695 | 691 | (geis_touch_attr_count): new function | ||
696 | 692 | (geis_touch_attr): new function | ||
697 | 693 | (geis_touch_attr_by_name): new function | ||
698 | 694 | (geis_frame_id): new function | ||
699 | 695 | (geis_frame_is_class): new function | ||
700 | 696 | (geis_frame_attr_count): new function | ||
701 | 697 | (geis_frame_attr): new function | ||
702 | 698 | (geis_frame_attr_by_name): new function | ||
703 | 699 | (geis_frame_matrix): new function | ||
704 | 700 | (geis_frame_touch_count): new function | ||
705 | 701 | (geis_frame_touch): new function | ||
706 | 702 | (geis_gesture_reject): new function | ||
707 | 703 | * libutouch-geis/libutouch-geis.ver: added new symbols | ||
708 | 704 | * testsuite/geis2/Makefile.am: added new test suite file | ||
709 | 705 | * testsuite/geis2/check_geis2_api.c: referenced new test suite | ||
710 | 706 | |||
711 | 707 | 2011-01-10 Stephen M. Webb <stephen.webb@canonical.com> | ||
712 | 708 | |||
713 | 709 | Added gesture class events to XCB back end. | ||
714 | 710 | |||
715 | 711 | * libutouch-geis/backend/xcb/grail_gestures.c: new file | ||
716 | 712 | * libutouch-geis/backend/xcb/grail_gestures.h: new file | ||
717 | 713 | * libutouch-geis/backend/xcb/Makefile.am: added new files | ||
718 | 714 | * libutouch-geis/backend/xcb/geis_xcb_backend.c (_report_xcb_devices): new | ||
719 | 715 | (_report_grail_glasses): new | ||
720 | 716 | (geis_xcb_backend_new: called new functions | ||
721 | 717 | |||
722 | 718 | 2011-01-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
723 | 719 | |||
724 | 720 | Added XCB back end convenience library. | ||
725 | 721 | |||
726 | 722 | * libutouch-geis/backend/xcb/geis_xcb_backend.c: new file | ||
727 | 723 | * libutouch-geis/backend/xcb/geis_xcb_backend.h: new file | ||
728 | 724 | * libutouch-geis/backend/xcb/Makefile.am: added rules for new library | ||
729 | 725 | * include/geis/geis.h (GEIS_INIT_UTOUCH_XCB): new init arg symbol | ||
730 | 726 | * libutouch-geis/geis.c: used it | ||
731 | 727 | * libutouch-geis/Makefile.am: added XCB protocol library | ||
732 | 728 | * libutouch-geis-xcb/Makefile.am: removed XCB protocol library | ||
733 | 729 | * testsuite/libutouch-geis/Makefile.am: added XCB runtime libraries | ||
734 | 730 | |||
735 | 731 | 2011-01-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
736 | 732 | |||
737 | 733 | Refactored XCB protocol library into a separate convenience lib. | ||
738 | 734 | |||
739 | 735 | * libs/Makefile.am: new directory | ||
740 | 736 | * libs/xcb/Makefile.am: new subproject | ||
741 | 737 | * libs/xcb/c-client.xsl: renamed from libutouch-geis-xcb/c-client.xsl | ||
742 | 738 | * libs/xcb/c_client.py: renamed from libutouch-geis-xcb/c_client.py | ||
743 | 739 | * libs/xcb/xcb_gesture.xml.in: was libutouch-geis-xcb/xcb_gesture.xml.in | ||
744 | 740 | * Makefile.am: added new subproject | ||
745 | 741 | * configure.ac: added new subproject | ||
746 | 742 | * libutouch-geis-xcb/Makefile.am: moved XCB protocol to libs/xcb subproject | ||
747 | 743 | |||
748 | 744 | 2011-01-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
749 | 745 | |||
750 | 746 | Added XCB back end subproject to libutouch-geis. | ||
751 | 747 | |||
752 | 748 | * libutouch-geis/backend/xcb: new subproject | ||
753 | 749 | * libutouch-geis/backend/xcb/Makefile.am: new file. | ||
754 | 750 | * Makefile.am: updated copyright | ||
755 | 751 | * configure.ac: added new subproject | ||
756 | 752 | * libutouch-geis/backend/Makefile.am: added new subproject | ||
757 | 753 | |||
758 | 754 | 2011-01-06 Stephen M. Webb <stephen.webb@canonical.com> | ||
759 | 755 | |||
760 | 756 | Added Geis v2.0 gesture class implementation (part 2, utouch internals) | ||
761 | 757 | |||
762 | 758 | * testsuite/libutouch-geis/check_class.c: new test suite | ||
763 | 759 | * include/geis/geis.h: fixed GEIS_FILTER_CLASS | ||
764 | 760 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
765 | 761 | (_create_test_classes): new function | ||
766 | 762 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.h | ||
767 | 763 | (geis_backend_new_test_fixture): added track_classes parameter | ||
768 | 764 | * libutouch-geis/geis.c (struct _Geis): added new fields | ||
769 | 765 | (_class_event_handler): implemented event handling | ||
770 | 766 | (geis_new_empty): initialized new fields | ||
771 | 767 | (_set_valist): handled GEIS_INIT_TRACK_GESTURE_CLASSES | ||
772 | 768 | (geis_get_class_attr_type): new function | ||
773 | 769 | * libutouch-geis/geis_class.h (GeisGestureClassBag): new data structure | ||
774 | 770 | (geis_gesture_class_bag_new): new function | ||
775 | 771 | (geis_gesture_class_bag_delete): new function | ||
776 | 772 | (geis_gesture_class_bag_count): new function | ||
777 | 773 | (geis_gesture_class_bag_gesture_class): new function | ||
778 | 774 | (geis_gesture_class_bag_insert): new function | ||
779 | 775 | (geis_gesture_class_bag_remove): new function | ||
780 | 776 | * libutouch-geis/geis_class.c: implemented above new functions | ||
781 | 777 | * libutouch-geis/geis_filter.c (_facility_is_valid): fixed facility name | ||
782 | 778 | * libutouch-geis/geis_private.h (geis_get_class_attr_type): new function | ||
783 | 779 | * testsuite/geis2/check_filter.c: fixed facility name | ||
784 | 780 | * testsuite/geis2/check_subscription.c: added check for class subscription | ||
785 | 781 | * testsuite/libutouch-geis/Makefile.am: added new test suite file | ||
786 | 782 | * testsuite/libutouch-geis/check_geis2_internals.c: called new test suite | ||
787 | 783 | |||
788 | 784 | 2011-01-06 Stephen M. Webb <stephen.webb@canonical.com> | ||
789 | 785 | |||
790 | 786 | Added Geis v2.0 gesture class implementation (part 1, basic API) | ||
791 | 787 | |||
792 | 788 | * libutouch-geis/geis_class.c: new file | ||
793 | 789 | * libutouch-geis/geis_class.h: new file | ||
794 | 790 | * libutouch-geis/Makefile.am: added new source files | ||
795 | 791 | * libutouch-geis/geis.c (struct _Geis): added new class callback fields | ||
796 | 792 | (_class_event_handler): new function | ||
797 | 793 | (_input_event_handler): added case for gesture class events | ||
798 | 794 | (geis_register_class_callback): implemented function | ||
799 | 795 | * include/geis/geis.h (geis_gesture_class_ref): adjusted return type | ||
800 | 796 | (geis_gesture_class_unref): same | ||
801 | 797 | |||
802 | 798 | 2011-01-06 Stephen M. Webb <stephen.webb@canonical.com> | ||
803 | 799 | |||
804 | 800 | Added GEIS v2.0 gesture class API | ||
805 | 801 | |||
806 | 802 | * testsuite/geis2/check_class.c: new test suite | ||
807 | 803 | * include/geis/geis.h (GEIS_INIT_TRACK_GESTURE_CLASSES): new init ath | ||
808 | 804 | (GEIS_EVENT_CLASS_AVAILABLE): new event type | ||
809 | 805 | (GEIS_EVENT_CLASS_CHANGED): new event type | ||
810 | 806 | (GEIS_EVENT_CLASS_UNAVAILABLE): new event type | ||
811 | 807 | (GeisGestureClass): new opaque type | ||
812 | 808 | (GEIS_CLASS_ATTRIBUTE_NAME): new attribute name | ||
813 | 809 | (GEIS_CLASS_ATTRIBUTE_ID): new attribute name | ||
814 | 810 | (GEIS_EVENT_ATTRIBUTE_CLASS): new attribute name | ||
815 | 811 | (geis_register_class_callback): new function | ||
816 | 812 | (geis_gesture_class_ref): new function | ||
817 | 813 | (geis_gesture_class_unref): new function | ||
818 | 814 | (geis_gesture_class_name): new function | ||
819 | 815 | (geis_gesture_class_id): new function | ||
820 | 816 | (geis_gesture_class_attr_count): new function | ||
821 | 817 | (geis_gesture_class_attr): new function | ||
822 | 818 | * libutouch-geis/libutouch-geis.ver: added new exported symbols | ||
823 | 819 | * testsuite/geis2/Makefile.am: build new test suite | ||
824 | 820 | * testsuite/geis2/check_event.c: changed event type names | ||
825 | 821 | * testsuite/geis2/check_geis2_api.c: used new test suite | ||
826 | 822 | * testsuite/geis2/check_geis_new.c: changed init constant names | ||
827 | 823 | |||
828 | 824 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
829 | 825 | |||
830 | 826 | Minor tweaks. | ||
831 | 827 | |||
832 | 828 | * include/geis/geis.h: fixed typos in comments | ||
833 | 829 | (GEIS_DEVICE_ATTRIBUTE_NAME): new constant | ||
834 | 830 | * libutouch-geis/geis_device.c: used new constant instead of hard-coded string | ||
835 | 831 | * testsuite/geis2/check_subscription.c: same | ||
836 | 832 | |||
837 | 833 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
838 | 834 | |||
839 | 835 | Added GEIS v2.0 filter implementation (part 4, device subscription) | ||
840 | 836 | |||
841 | 837 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
842 | 838 | (_subscription): add debug output to the test fixture | ||
843 | 839 | * libutouch-geis/geis_device.c: made name an attr for filtering on | ||
844 | 840 | * libutouch-geis/geis_filter.h | ||
845 | 841 | (geis_filter_term_by_facility_count): new function | ||
846 | 842 | (geis_filter_term_by_facility): new function | ||
847 | 843 | * libutouch-geis/geis_filter.c: implemented the above new functions | ||
848 | 844 | * libutouch-geis/geis_subscription.h | ||
849 | 845 | (geis_subscription_filter_count): new function | ||
850 | 846 | (geis_subscription_filter): new function | ||
851 | 847 | * libutouch-geis/geis_subscription.c: implemented the above new functions | ||
852 | 848 | * testsuite/geis2/check_subscription.c (device_filter): new test case | ||
853 | 849 | |||
854 | 850 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
855 | 851 | |||
856 | 852 | Added group test for back end device creation. | ||
857 | 853 | |||
858 | 854 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c | ||
859 | 855 | (_create_test_devices): new function | ||
860 | 856 | (geis_backend_new_test_fixture): used it | ||
861 | 857 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.h | ||
862 | 858 | (geis_backend_new_test_fixture): added track_devices parameter | ||
863 | 859 | * libutouch-geis/geis.c (_set_valist): refactored to propagate init args | ||
864 | 860 | * testsuite/geis2/check_device.c: new test case | ||
865 | 861 | |||
866 | 862 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
867 | 863 | |||
868 | 864 | Marked missing geis_event_* symbols as exported. | ||
869 | 865 | |||
870 | 866 | * libutouch-geis/libutouch-geis.ver (geis_event_attr): exported | ||
871 | 867 | (geis_event_attr_by_name): exported | ||
872 | 868 | (geis_event_attr_count): exported | ||
873 | 869 | (geis_event_delete): exported | ||
874 | 870 | (geis_event_type): exported | ||
875 | 871 | |||
876 | 872 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
877 | 873 | |||
878 | 874 | Moved back end test fixture into a subproject. | ||
879 | 875 | |||
880 | 876 | * libutouch-geis/backend/test_fixture: new subproject | ||
881 | 877 | * libutouch-geis/backend/test_fixture/Makefile.am: new file | ||
882 | 878 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.c: renamed | ||
883 | 879 | from libutouch-geis/geis_backend_test_fixture.c | ||
884 | 880 | * libutouch-geis/backend/test_fixture/geis_backend_test_fixture.h: renamed | ||
885 | 881 | from libutouch-geis/geis_backend_test_fixture.h | ||
886 | 882 | * configure.ac (AC_OUTPUT): added libutouch-geis/backend/test_fixture/Makefile | ||
887 | 883 | * libutouch-geis/Makefile.am: linked in new subproject | ||
888 | 884 | * libutouch-geis/backend/Makefile.am: added new subproject | ||
889 | 885 | * libutouch-geis/geis.c: changed header qualification | ||
890 | 886 | |||
891 | 887 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
892 | 888 | |||
893 | 889 | Added device cacheing. | ||
894 | 890 | |||
895 | 891 | * libutouch-geis/geis_private.h (geis_get_device_attr_type): new function | ||
896 | 892 | * libutouch-geis/geis.c (struct _Geis): added devices field | ||
897 | 893 | (_device_event_handler): new function | ||
898 | 894 | (_input_event_handler): dispatched BE device events | ||
899 | 895 | (geis_new_empty): initialized devices field | ||
900 | 896 | (geis_new_delete): destroyed devices field | ||
901 | 897 | * libutouch-geis/geis_filter.c (_get_attr_type_for_facility): implemented for | ||
902 | 898 | the device facility | ||
903 | 899 | |||
904 | 900 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
905 | 901 | |||
906 | 902 | Fixed failure-mode return value from geis_filter_term_bag_new | ||
907 | 903 | |||
908 | 904 | * libutouch-geis/geis_filter_term.c (geis_filter_term_bag_new): returned | ||
909 | 905 | NULL on failure | ||
910 | 906 | |||
911 | 907 | 2011-01-05 Stephen M. Webb <stephen.webb@canonical.com> | ||
912 | 908 | |||
913 | 909 | Added missing geis_attr_value_to_pointer. | ||
914 | 910 | |||
915 | 911 | * libutouch-geis/geis_attr.c (geis_attr_value_to_pointer): new function | ||
916 | 912 | (geis_attr_value_to_string): added case to handle GEIS_ATTR_TYPE_POINTER | ||
917 | 913 | |||
918 | 914 | 2011-01-03 Stephen M. Webb <stephen.webb@canonical.com> | ||
919 | 915 | |||
920 | 916 | Added GEIS v2.0 filter implementation (part 3, filter terms) | ||
921 | 917 | |||
922 | 918 | * libutouch-geis/geis_filter_term.c: new file | ||
923 | 919 | * libutouch-geis/geis_filter_term.h: new file | ||
924 | 920 | * include/geis/geis.h (GeisFilterOperation): fixed typo | ||
925 | 921 | * libutouch-geis/Makefile.am: added new files | ||
926 | 922 | * libutouch-geis/geis_filter.c (geis_filter_add_term): implemented function | ||
927 | 923 | (_facility_is_valid): new function | ||
928 | 924 | (_operation_is_valid): new function | ||
929 | 925 | (_get_attr_for_facility): new function | ||
930 | 926 | |||
931 | 927 | 2011-01-01 Stephen M. Webb <stephen.webb@canonical.com> | ||
932 | 928 | |||
933 | 929 | Added GEIS v2.0 filter implementation (part 2) | ||
934 | 930 | |||
935 | 931 | * libutouch-geis/geis_filter.c: fixed refcounting on bag insertion | ||
936 | 932 | * libutouch-geis/geis_subscription.c | ||
937 | 933 | (geis_subscription_add_filter): implemented stubbed-out function | ||
938 | 934 | (geis_subscription_remove_filter): implemented stubbed-out function | ||
939 | 935 | * testsuite/geis2/check_subscription.c: new test case | ||
940 | 936 | |||
941 | 937 | 2010-12-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
942 | 938 | |||
943 | 939 | Added GEIS v2.0 filter implementation (part 1) | ||
944 | 940 | |||
945 | 941 | * testsuite/libutouch-geis/check_filter.c: new test suite | ||
946 | 942 | * libutouch-geis/geis_filter.h (GeisFilterBag): new data structure | ||
947 | 943 | (geis_filter_bag_new): new function | ||
948 | 944 | (geis_filter_bag_delete): new function | ||
949 | 945 | (geis_filter_bag_count): new function | ||
950 | 946 | (geis_filter_bag_filter): new function | ||
951 | 947 | (geis_filter_bag_insert): new function | ||
952 | 948 | (geis_filter_bag_remove): new function | ||
953 | 949 | (geis_filter_ref): new function | ||
954 | 950 | (geis_filter_unref): new function | ||
955 | 951 | * libutouch-geis/geis_filter.c: implemented new functions | ||
956 | 952 | * testsuite/libutouch-geis/Makefile.am: added new test suite | ||
957 | 953 | * testsuite/libutouch-geis/check_geis2_internals.c: added new test suite | ||
958 | 954 | |||
959 | 955 | 2010-12-29 Stephen M. Webb <stephen.webb@canonical.com> | ||
960 | 956 | |||
961 | 957 | Added GEIS v2.0 filter API | ||
962 | 958 | |||
963 | 959 | * libutouch-geis/geis_filter.c: new file | ||
964 | 960 | * libutouch-geis/geis_filter.h: new file | ||
965 | 961 | * testsuite/geis2/check_filter.c: new test suite | ||
966 | 962 | * include/geis/geis.h (GeisFilter): new type | ||
967 | 963 | (GeisFilterFacility): new enumeration | ||
968 | 964 | (GeisFilterOperation): new enumeration | ||
969 | 965 | (gei_filter_new): new function | ||
970 | 966 | (geis_filter_delete): new function | ||
971 | 967 | (geis_filter_name): new function | ||
972 | 968 | (geis_filter_add_term): new function | ||
973 | 969 | * libutouch-geis/Makefile.am: added new files | ||
974 | 970 | * libutouch-geis/libutouch-geis.ver: added new symbols | ||
975 | 971 | * testsuite/geis2/Makefile.am: added new test suite | ||
976 | 972 | * testsuite/geis2/check_geis2_api.c: added new test suite | ||
977 | 973 | |||
978 | 974 | 2010-12-29 Stephen M. Webb <stephen.webb@canonical.com> | ||
979 | 975 | |||
980 | 976 | Added backend subdirectory to libutouch-geis. | ||
981 | 977 | |||
982 | 978 | * libutouch-geis/backend/Makefile.am: new file | ||
983 | 979 | * configure.ac (AC_OUTPUT): added libutouch-geis/backend/Makefile | ||
984 | 980 | * libutouch-geis/Makefile.am (SUBDORS): added backend | ||
985 | 981 | |||
986 | 982 | 2010-12-29 Stephen M. Webb <stephen.webb@canonical.com> | ||
987 | 983 | |||
988 | 984 | Moved geis/geisimpl.h into GEIS v2.0 sources. | ||
989 | 985 | |||
990 | 986 | * libutouch-geis/geis/geisimple.h: renamed from libutouch-geis-xcb/geis | ||
991 | 987 | * libutouch-geis-xcb/Makefile.am: changed header search path | ||
992 | 988 | * libutouch-geis/Makefile.am: changed header search path | ||
993 | 989 | * testsuite/geis1/Makefile.am: changed header search path | ||
994 | 990 | * testsuite/geis2/Makefile.am: changed header search path | ||
995 | 991 | * testsuite/geistest/Makefile.am: changed header search path | ||
996 | 992 | * testsuite/libutouch-geis/Makefile.am: changed header search path | ||
997 | 993 | |||
998 | 994 | 2010-12-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
999 | 995 | |||
1000 | 996 | Added GEIS v2.0 input device implementation. | ||
1001 | 997 | |||
1002 | 998 | * libutouch-geis/geis_device.h (GeisDeviceBag): new type | ||
1003 | 999 | (geis_device_bag_new): new function | ||
1004 | 1000 | (geis_device_bag_delete): new function | ||
1005 | 1001 | (geis_device_bag_count): new function | ||
1006 | 1002 | (geis_device_bag_device): new function | ||
1007 | 1003 | (geis_device_bag_insert): new function | ||
1008 | 1004 | (geis_device_bag_remove): new function | ||
1009 | 1005 | * libutouch-geis/geis_device.c: implemented new functions | ||
1010 | 1006 | * testsuite/libutouch-geis/check_device.c: new test suite | ||
1011 | 1007 | * testsuite/libutouch-geis/Makefile.am: added new test suite | ||
1012 | 1008 | * testsuite/libutouch-geis/check_geis2_internals.c: added new test suite | ||
1013 | 1009 | |||
1014 | 1010 | 2010-12-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
1015 | 1011 | |||
1016 | 1012 | Added GEIS v2.0 input device API | ||
1017 | 1013 | |||
1018 | 1014 | * libutouch-geis/geis_device.c: new file | ||
1019 | 1015 | * libutouch-geis/geis_device.h: new file | ||
1020 | 1016 | * testsuite/geis2/check_device.c: new test suite | ||
1021 | 1017 | * include/geis/geis.h (GeisDevice): new type | ||
1022 | 1018 | (geis_register_device_callback): new function | ||
1023 | 1019 | (geis_device_ref): new function | ||
1024 | 1020 | (geis_device_unref): new function | ||
1025 | 1021 | (geis_device_name): new function | ||
1026 | 1022 | (geis_device_id): new function | ||
1027 | 1023 | (geis_device_attr_count): new function | ||
1028 | 1024 | (geis_device_attr): new function | ||
1029 | 1025 | * libutouch-geis/Makefile.am: added new files | ||
1030 | 1026 | * libutouch-geis/libutouch-geis.ver: added new API symbols | ||
1031 | 1027 | * testsuite/geis2/Makefile.am: added new test suite | ||
1032 | 1028 | * testsuite/geis2/check_geis2_api.c: added new test suite | ||
1033 | 1029 | |||
1034 | 1030 | 2010-12-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
1035 | 1031 | |||
1036 | 1032 | Updates to match new GEIS v2.0 spec release of 2010.12.20. | ||
1037 | 1033 | - added a pointer type to the GEIS attr module | ||
1038 | 1034 | - added additional required GEIS initialization arguments | ||
1039 | 1035 | - event type enumarant name changes | ||
1040 | 1036 | |||
1041 | 1037 | * testsuite/geis2/check_attr.c: new test suite | ||
1042 | 1038 | * testsuite/geis2/check_event.c: new test suite | ||
1043 | 1039 | * include/geis/geis.h (GEIS_INIT_TRACK_DEVICES): new init arg | ||
1044 | 1040 | (GEIS_INIT_TRACK_GESTURE_TYPES): new init arg | ||
1045 | 1041 | (GeisAttrType): added GEIS_ATTR_TYPE_POINTER enumerant | ||
1046 | 1042 | (geis_attr_value_to_pointer): new function | ||
1047 | 1043 | (GeisEventType): added new enumerants | ||
1048 | 1044 | * libutouch-geis-xcb/geis/geisimpl.h: added GeisPointer type | ||
1049 | 1045 | * libutouch-geis/Makefile.am: added libutouch-geis-xcb to header search path | ||
1050 | 1046 | * libutouch-geis/libutouch-geis.ver (geis_attr_value_to_pointer): new symbol | ||
1051 | 1047 | * testsuite/geis2/Makefile.am: added new test suites | ||
1052 | 1048 | * testsuite/geis2/check_geis2_api.c: added new test suites | ||
1053 | 1049 | * testsuite/geis2/check_geis_new.c: added new test case for init args | ||
1054 | 1050 | * testsuite/geis2/check_general_types.c: added new test case fo GeisPointer | ||
1055 | 1051 | * testsuite/geistest/Makefile.am: added libutouch-geis-xcb to header search path | ||
1056 | 1052 | * testsuite/libutouch-geis/Makefile.am: same | ||
1057 | 1053 | * testsuite/libutouch-geis/check_event_queue.c: changed name of event types | ||
1058 | 1054 | * testsuite/libutouch-geis/check_geis_private.c: changed name of event types | ||
1059 | 1055 | |||
1060 | 1056 | 2010-12-15 Stephen M. Webb <stephen.webb@canonical.com> | ||
1061 | 1057 | |||
1062 | 1058 | Added GEIS v2.0 region module. | ||
1063 | 1059 | |||
1064 | 1060 | * libutouch-geis/geis_region.c: new file | ||
1065 | 1061 | * libutouch-geis/geis_region.h: new file | ||
1066 | 1062 | * testsuite/geis2/check_region.c: new test suite | ||
1067 | 1063 | * testsuite/libutouch-geis/check_region.c: new test suite | ||
1068 | 1064 | * include/geis/geis.h (GeisRegion): new typedef | ||
1069 | 1065 | (GEIS_REGION_X11_ROOT): new region initialization constant | ||
1070 | 1066 | (GEIS_REGION_X11_WINDOWID): new region initialization constant | ||
1071 | 1067 | (geis_region_new): new function | ||
1072 | 1068 | (geis_region_delete): new function | ||
1073 | 1069 | (geis_region_name): new function | ||
1074 | 1070 | * libutouch-geis/Makefile.am: added new files | ||
1075 | 1071 | * libutouch-geis/libutouch-geis.ver: added new symbols | ||
1076 | 1072 | * testsuite/geis2/Makefile.am: added new test suite files | ||
1077 | 1073 | * testsuite/geis2/check_geis2_api.c: added new test suite | ||
1078 | 1074 | * testsuite/libutouch-geis/Makefile.am: added new test suite files | ||
1079 | 1075 | * testsuite/libutouch-geis/check_geis2_internals.c: added new test suite | ||
1080 | 1076 | |||
1081 | 1077 | 2010-12-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
1082 | 1078 | |||
1083 | 1079 | Fixed some container expansion errors. | ||
1084 | 1080 | |||
1085 | 1081 | * libutouch-geis/geis_attr.c (geis_attr_bag_insert): fixed realloc size | ||
1086 | 1082 | * libutouch-geis/geis_subscription.c (geis_subscription_bag_insert): | ||
1087 | 1083 | fixed realloc size, cleared newly realloc'd memory | ||
1088 | 1084 | * testsuite/libutouch-geis/check_attr.c (expansion): new check | ||
1089 | 1085 | * testsuite/libutouch-geis/check_subscription.c (expansion): new check | ||
1090 | 1086 | |||
1091 | 1087 | 2010-12-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
1092 | 1088 | |||
1093 | 1089 | Added GEIS v2.0 subscription activation calls. | ||
1094 | 1090 | |||
1095 | 1091 | * include/geis/geis.h (geis_subscription_activate): new function | ||
1096 | 1092 | (geis_subscription_deactivate): new function | ||
1097 | 1093 | * libutouch-geis/geis_subscription.c: implemented above new functions | ||
1098 | 1094 | * libutouch-geis/geis_backend.h (geis_backend_subscribe) new function | ||
1099 | 1095 | (geis_backend_unsubscribe): new function | ||
1100 | 1096 | * libutouch-geis/geis_backend.c: implemented above new functions | ||
1101 | 1097 | * libutouch-geis/geis_backend_protected.h (GeisBackendVtable): added new | ||
1102 | 1098 | subscribe and unsubscribe function pointers | ||
1103 | 1099 | * libutouch-geis/geis_backend_test_fixture.c (_subscribe): new vfunction | ||
1104 | 1100 | (_unsubscribe): new vfunction | ||
1105 | 1101 | * libutouch-geis/geis_private.h (geis_activate_subscription): new function | ||
1106 | 1102 | (geis_deactivate_subscription): new function | ||
1107 | 1103 | * libutouch-geis/geis.c: implemented above new functions | ||
1108 | 1104 | * libutouch-geis/geis_subscription.h: fixed a typo in a prototype | ||
1109 | 1105 | * libutouch-geis/libutouch-geis.ver: added new GEIS v2.0 symbols | ||
1110 | 1106 | * testsuite/geis2/check_subscription.c: new test cases | ||
1111 | 1107 | |||
1112 | 1108 | 2010-12-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
1113 | 1109 | |||
1114 | 1110 | Added forwarding functions so back ends can multiplex file descriptors through | ||
1115 | 1111 | the API. | ||
1116 | 1112 | |||
1117 | 1113 | * libutouch-geis/geis_private.h (geis_multiplex_fd): new function | ||
1118 | 1114 | (geis_demultiplex_fd): new function | ||
1119 | 1115 | * libutouch-geis/geis.c: implemented above new functions | ||
1120 | 1116 | * testsuite/libutouch-geis/check_geis_private.c: | ||
1121 | 1117 | renamed from check_backend_event_posting.c | ||
1122 | 1118 | (multiplex_fd): new test case | ||
1123 | 1119 | * testsuite/libutouch-geis/Makefile.am: renamed above file | ||
1124 | 1120 | * testsuite/libutouch-geis/check_backend_multiplexor.c: removed debug message | ||
1125 | 1121 | silenced build warnings | ||
1126 | 1122 | |||
1127 | 1123 | 2010-12-08 Stephen M. Webb <stephen.webb@canonical.com> | ||
1128 | 1124 | |||
1129 | 1125 | Refactored event queue style. | ||
1130 | 1126 | |||
1131 | 1127 | * libutouch-geis/geis_event_queue.h (geis_event_queue_enqueue): renamed from | ||
1132 | 1128 | geis_event_queue_push | ||
1133 | 1129 | (geis_event_queue_dequeue): renamed from geis_event_queue_pop | ||
1134 | 1130 | changed event output parameter to return value | ||
1135 | 1131 | * libutouch-geis/geis_event_queue.c: refactored for above | ||
1136 | 1132 | * libutouch-geis/geis.c: refactored for above | ||
1137 | 1133 | * testsuite/libutouch-geis/check_event_queue.c: refactored for above | ||
1138 | 1134 | |||
1139 | 1135 | |||
1140 | 1136 | 2010-12-08 Stephen M. Webb <stephen.webb@canonical.com> | ||
1141 | 1137 | |||
1142 | 1138 | Added an event queue. | ||
1143 | 1139 | |||
1144 | 1140 | * libutouch-geis/geis_event.c: new file | ||
1145 | 1141 | * libutouch-geis/geis_event.h: new file | ||
1146 | 1142 | * libutouch-geis/geis_event_queue.c: new file | ||
1147 | 1143 | * libutouch-geis/geis_event_queue.h: new file | ||
1148 | 1144 | * testsuite/libutouch-geis/check_backend_event_posting.c: new test case | ||
1149 | 1145 | * testsuite/libutouch-geis/check_event_queue.c: new test case | ||
1150 | 1146 | * include/geis/geis.h (GeisEventType): new enum type | ||
1151 | 1147 | (geis_event_delete): new function | ||
1152 | 1148 | (geis_event_type): new function | ||
1153 | 1149 | (geis_event_attr_count): new function | ||
1154 | 1150 | (geis_event_attr): new function | ||
1155 | 1151 | (geis_event_attr_by_name): new function | ||
1156 | 1152 | * libutouch-geis/Makefile.am: added new files | ||
1157 | 1153 | * libutouch-geis/geis.c (struct _Geis): added input_event_queue, | ||
1158 | 1154 | output_event_queue, and input_signal_pipe members | ||
1159 | 1155 | (_default_output_event_callback): new function | ||
1160 | 1156 | (_input_event_handler): new function | ||
1161 | 1157 | (geis_new_empty): initialized new members | ||
1162 | 1158 | (geis_register_event_callback): used _default_output_event_callback | ||
1163 | 1159 | (geis_next_event): implemented stubbed-out function | ||
1164 | 1160 | * testsuite/libutouch-geis/Makefile.am: added new test cases | ||
1165 | 1161 | * testsuite/libutouch-geis/check_geis2_internals.c: added new test cases | ||
1166 | 1162 | |||
1167 | 1163 | |||
1168 | 1164 | 2010-12-02 Stephen M. Webb <stephen.webb@canonical.com> | ||
1169 | 1165 | |||
1170 | 1166 | Added GEIS v2.0 event control functions. | ||
1171 | 1167 | |||
1172 | 1168 | * include/geis/geis.h (GeisEvent): new type | ||
1173 | 1169 | (GeisEventCallback): new type | ||
1174 | 1170 | (GEIS_DEFAULT_EVENT_CALLBACK): new constant | ||
1175 | 1171 | (geis_register_event_callback): new function | ||
1176 | 1172 | (geis_dispatch_events): new function | ||
1177 | 1173 | (geis_next_event): new function | ||
1178 | 1174 | * libutouch-geis/geis_private.h (geis_post_event): new function | ||
1179 | 1175 | * libutouch-geis/geis.c: implemented new functions | ||
1180 | 1176 | * libutouch-geis/libutouch-geis.ver: added new symbols | ||
1181 | 1177 | |||
1182 | 1178 | 2010-12-02 Stephen M. Webb <stephen.webb@canonical.com> | ||
1183 | 1179 | |||
1184 | 1180 | Added a back end base and test fixture. | ||
1185 | 1181 | |||
1186 | 1182 | * libutouch-geis/geis_backend.c: new file | ||
1187 | 1183 | * libutouch-geis/geis_backend.h: new file | ||
1188 | 1184 | * libutouch-geis/geis_backend_protected.h: new file | ||
1189 | 1185 | * libutouch-geis/geis_backend_test_fixture.c: new file | ||
1190 | 1186 | * libutouch-geis/geis_backend_test_fixture.h: new file | ||
1191 | 1187 | * include/geis/geis.h (GEIS_INIT_SERVICE_PROVIDER): changed constant value | ||
1192 | 1188 | (GEIS_INIT_UTOUCH_MOCK_ENGINE): added new constant | ||
1193 | 1189 | * libutouch-geis/Makefile.am: added new files | ||
1194 | 1190 | * libutouch-geis/geis.c (struct _Geis): replaced is_test_fixture with backend | ||
1195 | 1191 | (geis_set_valist): created new test fixture backend | ||
1196 | 1192 | (geis_delete): destroyed backend | ||
1197 | 1193 | * testsuite/geis2/check_config.c: used new name for test fixture back end | ||
1198 | 1194 | * testsuite/geis2/check_geis_new.c: same | ||
1199 | 1195 | * testsuite/geis2/check_subscription.c: idem | ||
1200 | 1196 | * testsuite/libutouch-geis/check_subscription.c: ditto | ||
1201 | 1197 | |||
1202 | 1198 | 2010-12-02 Stephen M. Webb <stephen.webb@canonical.com> | ||
1203 | 1199 | |||
1204 | 1200 | Added a back end multiplexor. | ||
1205 | 1201 | |||
1206 | 1202 | * libutouch-geis/geis_backend_multiplexor.c: new file | ||
1207 | 1203 | * libutouch-geis/geis_backend_multiplexor.h: new file | ||
1208 | 1204 | * testsuite/libutouch-geis/check_backend_multiplexor.c: new testsuite | ||
1209 | 1205 | * include/geis/geis.h (GeisStatus): added new status codes | ||
1210 | 1206 | GEIS_STATUS_CONTINUE and GEIS_STATUS_EMPTY | ||
1211 | 1207 | (GEIS_CONFIG_UTOUCH_MAX_EVENTS): new configuration item | ||
1212 | 1208 | * libutouch-geis/Makefile.am: added new files | ||
1213 | 1209 | * libutouch-geis/geis.c (struct _Geis): added backend_multiplexor field | ||
1214 | 1210 | (geis_new_empty): initialized it | ||
1215 | 1211 | (geis_delete): destroyed it | ||
1216 | 1212 | (geis_get_configuration): retrieved its file descriptor and config value | ||
1217 | 1213 | (geis_set_configuration): set its configuration value | ||
1218 | 1214 | * testsuite/geis2/check_error_codes.c: checked new status codes | ||
1219 | 1215 | * testsuite/libutouch-geis/Makefile.am | ||
1220 | 1216 | * testsuite/libutouch-geis/check_geis2_internals.c | ||
1221 | 1217 | |||
1222 | 1218 | 2010-11-29 Stephen M. Webb <stephen.webb@canonical.com> | ||
1223 | 1219 | |||
1224 | 1220 | Refactored geis_private.h to provide improved data encapsulation. | ||
1225 | 1221 | |||
1226 | 1222 | * libutouch-geis/geis_private.h (struct _Geis): moved to geis.c | ||
1227 | 1223 | (geis_error_stack): new function | ||
1228 | 1224 | * libutouch-geis/geis.c: implemented new function | ||
1229 | 1225 | * libutouch-geis/geis_error.c: used new function | ||
1230 | 1226 | |||
1231 | 1227 | 2010-11-29 Stephen M. Webb <stephen.webb@canonical.com> | ||
1232 | 1228 | |||
1233 | 1229 | Fixed a typo in the Doxygen comments in geis.h. | ||
1234 | 1230 | |||
1235 | 1231 | * include/geis/geis.h: fixed typo in documentation | ||
1236 | 1232 | |||
1237 | 1233 | 2010-11-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
1238 | 1234 | |||
1239 | 1235 | Added Geis Subscription creation and accessors. | ||
1240 | 1236 | |||
1241 | 1237 | * libutouch-geis/geis_subscription.c: new file | ||
1242 | 1238 | * libutouch-geis/geis_subscription.h: new file | ||
1243 | 1239 | * testsuite/geis2/check_subscription.c: new API test suite | ||
1244 | 1240 | * testsuite/libutouch-geis/check_subscription.c: new internals test suite | ||
1245 | 1241 | * include/geis/geis.h (GeisFilter): new type | ||
1246 | 1242 | (GeisSubscription): new type | ||
1247 | 1243 | (GeisSubscriptionFlags): new type | ||
1248 | 1244 | (geis_subscription_new): new function | ||
1249 | 1245 | (geis_subscription_delete): new function | ||
1250 | 1246 | (geis_subscription_name): new function | ||
1251 | 1247 | (geis_subscription_id): new function | ||
1252 | 1248 | (geis_subscription_add_filter): new function | ||
1253 | 1249 | (geis_subscription_remove_filter): new function | ||
1254 | 1250 | * libutouch-geis/Makefile.am: added new files | ||
1255 | 1251 | * libutouch-geis/geis_private.h (geis_subscription_bag): new function | ||
1256 | 1252 | (struct _Geis): added subscription_bag field | ||
1257 | 1253 | * libutouch-geis/geis.c (geis_subscription_bag): implemented it | ||
1258 | 1254 | (geis_new_empty): created an empty subscription bag | ||
1259 | 1255 | * libutouch-geis/libutouch-geis.ver: added new geis_subscription_* symbols | ||
1260 | 1256 | * testsuite/geis2/Makefile.am: added new test suite source | ||
1261 | 1257 | * testsuite/geis2/check_geis2_api.c: added new test suite | ||
1262 | 1258 | * testsuite/libutouch-geis/Makefile.am: added new test suite source | ||
1263 | 1259 | * testsuite/libutouch-geis/check_geis2_internals.c: added new test suite | ||
1264 | 1260 | |||
1265 | 1261 | |||
1266 | 1262 | 2010-11-26 Stephen M. Webb <stephen.webb@canonical.com> | ||
1267 | 1263 | |||
1268 | 1264 | Added Geis Attr functions. | ||
1269 | 1265 | |||
1270 | 1266 | * libutouch-geis/geis_attr.c: new file | ||
1271 | 1267 | * libutouch-geis/geis_attr.h: new file | ||
1272 | 1268 | * testsuite/libutouch-geis/check_attr.c: new unit test suite | ||
1273 | 1269 | * include/geis/geis.h (GeisAttr): new type | ||
1274 | 1270 | (geis_attr_name): new function | ||
1275 | 1271 | (geis_attr_type): new function | ||
1276 | 1272 | (geis_attr_value_to_boolean): new function | ||
1277 | 1273 | (geis_attr_value_to_float): new function | ||
1278 | 1274 | (geis_attr_value_to_integer): new function | ||
1279 | 1275 | (geis_attr_value_to_string): new function | ||
1280 | 1276 | * libutouch-geis/Makefile.am: added new files | ||
1281 | 1277 | * libutouch-geis/libutouch-geis.ver: added new symbols | ||
1282 | 1278 | * testsuite/libutouch-geis/Makefile.am: added new test suite | ||
1283 | 1279 | * testsuite/libutouch-geis/check_error_reporting.c: renamed test suite | ||
1284 | 1280 | * testsuite/libutouch-geis/check_geis2_internals.c: added new test suite | ||
1285 | 1281 | |||
1286 | 1282 | 2010-11-24 Stephen M. Webb <stephen.webb@canonical.com> | ||
1287 | 1283 | |||
1288 | 1284 | Added Geis configuration functions. | ||
1289 | 1285 | |||
1290 | 1286 | * include/geis/geis.h (geis_get_config): new function | ||
1291 | 1287 | (geis_set_config): new function | ||
1292 | 1288 | * libutouch-geis/geis.c: added stubs for new functions | ||
1293 | 1289 | * libutouch-geis/libutouch-geis.ver: added symbols for new functions | ||
1294 | 1290 | * testsuite/geis2/check_config.c: new test suite for new functions | ||
1295 | 1291 | * testsuite/geis2/Makefile.am: added above new file | ||
1296 | 1292 | |||
1297 | 1293 | 2010-11-24 Stephen M. Webb <stephen.webb@canonical.com> | ||
1298 | 1294 | |||
1299 | 1295 | Added silent rules to build. | ||
1300 | 1296 | |||
1301 | 1297 | * configure.ac (AM_INIT_AUTOMAKE): required minimum version 1.11 | ||
1302 | 1298 | (AM_SILENT_RULES): new macros to set silent build rules on by default | ||
1303 | 1299 | |||
1304 | 1300 | 2010-11-24 Stephen M. Webb <stephen.webb@canonical.com> | ||
1305 | 1301 | |||
1306 | 1302 | Fixed a "make distcheck" problem. | ||
1307 | 1303 | |||
1308 | 1304 | * testsuite/libutouch-geis/Makefile.am (check_geis2_internals_CFLAGS): added | ||
1309 | 1305 | $(top_srcdir) to the header search path | ||
1310 | 1306 | |||
1311 | 1307 | 2010-11-24 Stephen M. Webb <stephen.webb@canonical.com> | ||
1312 | 1308 | |||
1313 | 1309 | Added unit testing for uTouch GEIS v2.0 internals. | ||
1314 | 1310 | |||
1315 | 1311 | * testsuite/libutouch-geis: new subdirectory | ||
1316 | 1312 | * testsuite/libutouch-geis/Makefile.am: new file | ||
1317 | 1313 | * testsuite/libutouch-geis/check_error_reporting.c: new file | ||
1318 | 1314 | * testsuite/libutouch-geis/check_geis2_internals.c: new file | ||
1319 | 1315 | * configure.ac (AC_OUTPUT): added new Makefile | ||
1320 | 1316 | * testsuite/Makefile.am (SUBDIRS): added new subdirectory | ||
1321 | 1317 | * testsuite/geis1/check_geis_internals.c: renamed test suite | ||
1322 | 1318 | * testsuite/geis2/check_geis2_api.c: renamed test suite | ||
1323 | 1319 | |||
1324 | 1320 | 2010-11-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
1325 | 1321 | |||
1326 | 1322 | Added Error Reporting functions. | ||
1327 | 1323 | |||
1328 | 1324 | * libutouch-geis/geis_error.c: new file | ||
1329 | 1325 | * libutouch-geis/geis_error.h: new file | ||
1330 | 1326 | * libutouch-geis/geis_private.h: new file | ||
1331 | 1327 | * include/geis/geis.h (geis_error_count): new function | ||
1332 | 1328 | (geis_error_code): new function | ||
1333 | 1329 | (geis_error_message): new function | ||
1334 | 1330 | * libutouch-geis/Makefile.am: added new files | ||
1335 | 1331 | * libutouch-geis/geis.c: used new functions | ||
1336 | 1332 | * libutouch-geis/libutouch-geis.ver: added new function symbols | ||
1337 | 1333 | |||
1338 | 1334 | 2010-11-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
1339 | 1335 | |||
1340 | 1336 | Added diagnostics to geis_new(). | ||
1341 | 1337 | |||
1342 | 1338 | * libutouch-geis/geis.c (geis_error): reported calloc failure | ||
1343 | 1339 | (geis_set_valist): added debug diagnostics for init args | ||
1344 | 1340 | |||
1345 | 1341 | 2010-11-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
1346 | 1342 | |||
1347 | 1343 | Moved diagnostic logging from GEIS v1.0 to GEIS v2.0 libraries. | ||
1348 | 1344 | |||
1349 | 1345 | * libutouch-geis/geis_logging.h: renamed from libutouch-geis-xcb/geis_logging.h | ||
1350 | 1346 | * libutouch-geis/geis_logging.c: renamed from libutouch-geis-xcb/geis_logging.c | ||
1351 | 1347 | * libutouch-geis-xcb/Makefile.am: removed above renamed files | ||
1352 | 1348 | * libutouch-geis/Makefile.am: added above renamed files | ||
1353 | 1349 | * testsuite/geis1/Makefile.am: changed library path | ||
1354 | 1350 | * testsuite/geistest/Makefile.am: changed library path | ||
1355 | 1351 | |||
1356 | 1352 | 2010-11-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
1357 | 1353 | |||
1358 | 1354 | Merged GEIS v1.0 into GEIS v2.0 library for backwards compatibility. | ||
1359 | 1355 | |||
1360 | 1356 | * libutouch-geis-xcb/libutouch-geis-xcb.ver: removed | ||
1361 | 1357 | * libutouch-geis-xcb/Makefile.am: converted to build a convenience lib | ||
1362 | 1358 | * libutouch-geis/Makefile.am: added libutouch-geis-xcb as a conveniemnce lib | ||
1363 | 1359 | * libutouch-geis/libutouch-geis.ver: Added GEIS v1.0 symbols | ||
1364 | 1360 | * testsuite/geis2/Makefile.am: fixed path to shared library in build tree | ||
1365 | 1361 | |||
1366 | 1362 | 2010-11-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
1367 | 1363 | |||
1368 | 1364 | Refactored API initialization to use variadic arguments a la spec change. | ||
1369 | 1365 | |||
1370 | 1366 | * include/geis/geis.h (geis_new): changed function prototype | ||
1371 | 1367 | * libutouch-geis/geis.c (geis_new_empty): new function | ||
1372 | 1368 | (geis_set_valist): new function | ||
1373 | 1369 | (geis_new): changed parameters, used new functions | ||
1374 | 1370 | * testsuite/geis2/check_geis_new.c (geis_new_and_delete): changed geis_new() | ||
1375 | 1371 | arguments | ||
1376 | 1372 | |||
1377 | 1373 | 2010-11-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
1378 | 1374 | |||
1379 | 1375 | Fixed visibility of new GEIS 2.0 symbols. | ||
1380 | 1376 | |||
1381 | 1377 | * include/geis/geis.h (geis_new): fixed visibility | ||
1382 | 1378 | (geis_delete): same | ||
1383 | 1379 | |||
1384 | 1380 | 2010-11-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
1385 | 1381 | |||
1386 | 1382 | Made geis2_geis_new test case pass. | ||
1387 | 1383 | |||
1388 | 1384 | * libutouch-geis/geis.c (geis_hints_find_by_id): new static function | ||
1389 | 1385 | (geis_hints_append): new static function | ||
1390 | 1386 | (geis_new): used them, malloc'd struct _Geis | ||
1391 | 1387 | (geis_delete): free'd struct _Geis | ||
1392 | 1388 | |||
1393 | 1389 | 2010-11-22 Stephen M. Webb <stephen.webb@canonical.com> | ||
1394 | 1390 | |||
1395 | 1391 | Added test case for GEIS v2.0 geis_new() and geis_delete() functions, together | ||
1396 | 1392 | with a skeletal implementation of the libutouch-geis v2.0 library. | ||
1397 | 1393 | |||
1398 | 1394 | * libutouch-geis: new source directory | ||
1399 | 1395 | * libutouch-geis/Makefile.am: new build recipe for libutouch-geis v2.0 | ||
1400 | 1396 | * libutouch-geis/geis.c: new source file | ||
1401 | 1397 | * libutouch-geis/libutouch-geis.ver: new library version map | ||
1402 | 1398 | * testsuite/geis2/check_geis_new.c: new test suite | ||
1403 | 1399 | * Makefile.am (SUBDIRS): added libutouch-geis | ||
1404 | 1400 | * configure.ac (AC_OUTPUT): added libutouch-geis/Makefile | ||
1405 | 1401 | * include/geis/geis.h (GeisHints): new data structure | ||
1406 | 1402 | (Geis): new opaque data structure | ||
1407 | 1403 | (geis_new): new function | ||
1408 | 1404 | (geis_delete): new function | ||
1409 | 1405 | * testsuite/geis2/Makefile.am (check_geis2_api_SOURCES): added check_geis_new | ||
1410 | 1406 | * testsuite/geis2/check_geis2_api.c (main): added geis_new_suite | ||
1411 | 1407 | |||
1412 | 1408 | 2010-11-21 Stephen M. Webb <stephen.webb@canonical.com> | ||
1413 | 1409 | |||
1414 | 1410 | Added test case for geis v2.0 error codes. | ||
1415 | 1411 | |||
1416 | 1412 | * include/geis/geis.h: added required v2.0 error codes | ||
1417 | 1413 | * testsuite/geis2/check_error_codes.c: new test case | ||
1418 | 1414 | * testsuite/geis2/Makefile.am: added new test case | ||
1419 | 1415 | * testsuite/geis2/check_geis2_api.c: same | ||
1420 | 1416 | |||
1421 | 1417 | 2010-11-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
1422 | 1418 | |||
1423 | 1419 | Added test case for geis v2.0 basic types. | ||
1424 | 1420 | |||
1425 | 1421 | * testsuite/geis2/check_general_types.c: new file | ||
1426 | 1422 | * testsuite/geis2/Makefile.am: added above new file | ||
1427 | 1423 | * testsuite/geis2/check_geis2_api.c (geis2_general_types_suite_new): added new | ||
1428 | 1424 | unit test | ||
1429 | 1425 | |||
1430 | 1426 | 2010-11-19 Stephen M. Webb <stephen.webb@canonical.com> | ||
1431 | 1427 | |||
1432 | 1428 | Added geis v2.0 test hardness and version macro test. | ||
1433 | 1429 | |||
1434 | 1430 | * include/geis/geis.h (GEIS_VERSION_2_0): added macro | ||
1435 | 1431 | * testsuite/geis2/check_geis_api.c: new testsuite. | ||
1436 | 1432 | * testsuite/geis2/check_version_macro.c: added unit test for geis 2.0 version | ||
1437 | 1433 | macro | ||
1438 | 1434 | * testsuite/geis2/Makefile: new file | ||
1439 | 1435 | * configure.ac (AC_OUTPUT): added above enw file | ||
1440 | 1436 | * testsuite/Makefile: added new testsuite directory geis2 | ||
1441 | 1437 | |||
1442 | 1438 | 2010-11-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
1443 | 1439 | |||
1444 | 1440 | Made existing unit test directory specific to geis v1.0. | ||
1445 | 1441 | |||
1446 | 1442 | * testsuite/geis1: renamed from testsuite/check | ||
1447 | 1443 | * configure.ac: renamed testsuite/check | ||
1448 | 1444 | * testsuite/Makefile.am: same | ||
1449 | 1445 | * testsuite/geis1/Makefile.am: same | ||
1450 | 1446 | |||
1451 | 1447 | 2010-10-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
1452 | 1448 | |||
1453 | 1449 | Added unit tests for internal geis_instance_table. | ||
1454 | 1450 | |||
1455 | 1451 | * testsuite/check/check_instance_table.c: new file | ||
1456 | 1452 | * testsuite/check/Makefile.am (check_geis_internals_SOURCES): added it | ||
1457 | 1453 | (MOSTLYCLEANFILES): new target to clean up unit test logs | ||
1458 | 1454 | * testsuite/check/check_geis_internals.c (main): added unit test suite | ||
1459 | 1455 | |||
1460 | 1456 | 2010-10-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
1461 | 1457 | |||
1462 | 1458 | Added unit test infrastructure based on 'check'. | ||
1463 | 1459 | |||
1464 | 1460 | * testsuite/check/Makefile.am: new file | ||
1465 | 1461 | * testsuite/check/check_geis_internals.c: new file | ||
1466 | 1462 | * testsuite/Makefile.am (SUBDIRS): added check target | ||
1467 | 1463 | * configure.ac: added new stanza for detecting check package | ||
1468 | 1464 | (AC_CONFIG_FILES): added testsuite/check/Makefile | ||
1469 | 1465 | |||
1470 | 1466 | 2010-10-18 Stephen M. Webb <stephen.webb@canonical.com> | ||
1471 | 1467 | |||
1472 | 1468 | Added configury check for xcb-proto package >= 1.6 (LP: #661946). | ||
1473 | 1469 | |||
1474 | 1470 | * configure.ac: added PKG_CHECK_MODULES for xcb-proto >= 1.6 | ||
1475 | 1471 | |||
1476 | 1472 | 2010-10-14 Stephen M. Webb <stephen.webb@canonical.com> | ||
1477 | 1473 | |||
1478 | 1474 | Release version 1.0.13. | ||
1479 | 1475 | |||
1480 | 1476 | * configure.ac (AC_INIT): bumped package version to 1.0.13 | ||
1481 | 1477 | |||
1482 | 1478 | 2010-10-12 Stephen M. Webb <stephen.webb@canonical.com> | ||
1483 | 1479 | |||
1484 | 1480 | Removed extra newlines from diagnostic messages | ||
1485 | 1481 | |||
1486 | 1482 | * libutouch-geis-xcb/geis_xcb.c: removed newline from several diagnostic | ||
1487 | 1483 | messages. | ||
1488 | 1484 | |||
1489 | 1485 | 2010-10-07 Stephen M. Webb <stephen.webb@canonical.com> | ||
1490 | 1486 | |||
1491 | 1487 | Fixed LP: #656503 - event dispatch can hang under some circumstances | ||
1492 | 1488 | |||
1493 | 1489 | * libutouch-geis-xcb/geis_xcb.c (geis_xcb_dispatch): changed loop condition | ||
1494 | 1490 | * libutouch-geis-xcb/Makefile.am (libutouch_geis_la_LDFLAGS): bumped library | ||
1495 | 1491 | revision | ||
1496 | 1492 | |||
1497 | 1493 | 2010-09-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
1498 | 1494 | |||
1499 | 1495 | Version bump to 1.0.12. | ||
1500 | 1496 | |||
1501 | 1497 | * configure.ac (AC_INIT): bumped package version to 1.0.12 | ||
1502 | 1498 | |||
1503 | 1499 | 2010-09-28 Stephen M. Webb <stephen.webb@canonical.com> | ||
1504 | 1500 | |||
1505 | 1501 | Made lib compatible with C++. | ||
1506 | 1502 | |||
1507 | 1503 | * geis/geis.h: forced C linkage | ||
1508 | 1504 | |||
1509 | 1505 | 2010-09-14 Stephen M. Webb <stephen.webb@canonical.com> | ||
1510 | 1506 | |||
1511 | 1507 | Version bump tp 1.0.11 | ||
1512 | 1508 | |||
1513 | 1509 | * configure.ac: bumped package version to 1.0.11 | ||
1514 | 1510 | * libutouch-geis-xcb/Makefile.am: bumped shlib version to reflect changes | ||
1515 | 1511 | |||
1516 | 1512 | 2010-09-01 Stephen M. Webb <stephen.webb@canonical.com> | ||
1517 | 1513 | |||
1518 | 1514 | Fixed typos in manpage. | ||
1519 | 1515 | |||
1520 | 1516 | * doc/geistest.1: fixed several typographical errors | ||
1521 | 1517 | |||
1522 | 1518 | 2010-09-01 Stephen M. Webb <stephen.webb@canonical.com> | ||
1523 | 1519 | |||
1524 | 1520 | Fixed a memory leak when logging messages. | ||
1525 | 1521 | |||
1526 | 1522 | * libutouch-geis-xcb/geis_logging.c (_geis_message): fixed memory leak | ||
1527 | 1523 | |||
1528 | 1524 | 2010-08-31 Stephen M. Webb <stephen.webb@canonical.com> | ||
1529 | 1525 | |||
1530 | 1526 | Fixed prefix string used in diagnostics. | ||
1531 | 1527 | |||
1532 | 1528 | * libutouch-geis-xcb/geis_logging.c (_geis_message): fixed which prefix string | ||
1533 | 1529 | gets used for which diagnostic level | ||
1534 | 1530 | |||
1535 | 1531 | 2010-08-31 Stephen M. Webb <stephen.webb@canonical.com> | ||
1536 | 1532 | |||
1537 | 1533 | Removed input device enumeration handling until later. | ||
1538 | 1534 | |||
1539 | 1535 | * libutouch-geis-xcb/geis.c (geis_input_devices): removed #if 0 block | ||
1540 | 1536 | * libutouch-geis-xcb/geis_instance.h (geis_instance_input_devices): removed | ||
1541 | 1537 | * libutouch-geis-xcb/geis_instance.c (geis_instance_input_devices): removed | ||
1542 | 1538 | * libutouch-geis-xcb/geis_xcb.h (geis_xcb_input_devices): added funcs and | ||
1543 | 1539 | cookie parameters | ||
1544 | 1540 | * libutouch-geis-xcb/geis_xcb.c (_GeisXcb): added input_funcs and input_cookie | ||
1545 | 1541 | (geis_xcb_new): removed #if 0 blocks | ||
1546 | 1542 | (geis_xcb_input_devices): removed XInput handling until later | ||
1547 | 1543 | |||
1548 | 1544 | 2010-08-30 Stephen M. Webb <stephen.webb@canonical.com> | ||
1549 | 1545 | |||
1550 | 1546 | Removed some debug code and fixed pasto. | ||
1551 | 1547 | |||
1552 | 1548 | * libutouch-geis-xcb/geis_instance.c: fixed a pasto | ||
1553 | 1549 | * testsuite/geistest/geistest.c: removed debug code | ||
1554 | 1550 | |||
1555 | 1551 | 2010-08-30 Stephen M. Webb <stephen.webb@canonical.com> | ||
1556 | 1552 | |||
1557 | 1553 | Fixed so multiple windows will work. | ||
1558 | 1554 | |||
1559 | 1555 | Altered geistest to work with a single window or all windows, had to fix geis | ||
1560 | 1556 | implementation so this was possible. | ||
1561 | 1557 | |||
1562 | 1558 | * libutouch-geis-xcb/geis_instance_table.c: new file | ||
1563 | 1559 | * libutouch-geis-xcb/geis_instance_table.h: new file | ||
1564 | 1560 | * configure.ac: added package checks for x11-xcb and xi | ||
1565 | 1561 | * doc/geistest.1: documented new CLI switches | ||
1566 | 1562 | * geis/geis.h (geis_input_devices): fixed argument type | ||
1567 | 1563 | * libutouch-geis-xcb/Makefile.am (libutouch_geis_la_SOURCES): added new files | ||
1568 | 1564 | (libutouch_geis_la_CFLAGS): aded X11XCB_CFLAGS and XI2_CFLAGS | ||
1569 | 1565 | (libutouch_geis_la_LIBADD): aded X11XCB_LIBS and XI2LIBS_ | ||
1570 | 1566 | * libutouch-geis-xcb/geis.c (s_geis_xcb): new static global | ||
1571 | 1567 | (geis_init): used it | ||
1572 | 1568 | * libutouch-geis-xcb/geis_instance.h (_GeisInstance): added window_id | ||
1573 | 1569 | (geis_instance_new): renamed from geis_instance_get | ||
1574 | 1570 | (geis_instance_input_devices): new function | ||
1575 | 1571 | (geis_instance_subscribe): added GeisXcb parameter | ||
1576 | 1572 | (geis_instance_get_window_id): new function | ||
1577 | 1573 | (geis_instance_fd): removed function | ||
1578 | 1574 | (geis_instance_event_dispatch): removed function | ||
1579 | 1575 | * libutouch-geis-xcb/geis_instance.c: implemented new functions | ||
1580 | 1576 | * libutouch-geis-xcb/geis_xcb.h (geis_xcb_new): renamed from geis_xcb_get | ||
1581 | 1577 | (geis_xcb_create_instance): new function | ||
1582 | 1578 | (geis_xcb_input_devices): new function | ||
1583 | 1579 | (geis_xcb_subscribe): added GeisInstance parameter | ||
1584 | 1580 | (geis_xcb_dispatch): changed parameter type to GeisXcb | ||
1585 | 1581 | * libutouch-geis-xcb/geis_xcb.c: Implemeneted new functions | ||
1586 | 1582 | * testsuite/geistest/geistest.c (parse_opts): added -w switch | ||
1587 | 1583 | (subscribe_window): new function | ||
1588 | 1584 | (subscribe_windows_preorder): new function | ||
1589 | 1585 | (subscribe_all_windows): new function | ||
1590 | 1586 | (main): used the new functions | ||
1591 | 1587 | |||
1592 | 1588 | 2010-08-30 Stephen M. Webb <stephen.webb@canonical.com> | ||
1593 | 1589 | |||
1594 | 1590 | Added runtime diagnostic facility. | ||
1595 | 1591 | |||
1596 | 1592 | * libutouch-geis-xcb/geis_debug.h: replaced with | ||
1597 | 1593 | * libutouch-geis-xcb/geis_logging.h: mew file | ||
1598 | 1594 | * libutouch-geis-xcb/geis_logging.c: new file | ||
1599 | 1595 | * libutouch-geis-xcb/Makefile.am: replaced above files | ||
1600 | 1596 | * libutouch-geis-xcb/geis_xcb.c: replaced geis_debug calls with | ||
1601 | 1597 | geis_warning or geis_error as appropriate | ||
1602 | 1598 | |||
1603 | 1599 | 2010-08-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
1604 | 1600 | |||
1605 | 1601 | Fixed checking of gesture masks for multiple input devices. | ||
1606 | 1602 | |||
1607 | 1603 | * libutouch-geis-xcb/geis_instance.c (geis_instance_subscribe): | ||
1608 | 1604 | added missing index increment | ||
1609 | 1605 | * libutouch-geis-xcb/geis_xcb.c (geis_xcb_verify_event_selection): | ||
1610 | 1606 | added logic for iterating through multiple input devices | ||
1611 | 1607 | |||
1612 | 1608 | 2010-08-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
1613 | 1609 | |||
1614 | 1610 | Move gesture-type-added callback until later in the subscription sequence. | ||
1615 | 1611 | |||
1616 | 1612 | * libutouch-geis-xcb/geis_xcb.c (geis_xcb_subscribe): move call to | ||
1617 | 1613 | geis_xcb_dispatch_gesture_type until later in sequence | ||
1618 | 1614 | |||
1619 | 1615 | 2010-08-27 Stephen M. Webb <stephen.webb@canonical.com> | ||
1620 | 1616 | |||
1621 | 1617 | Removed "Grab" gestire entirely from the list of known gestures. | ||
1622 | 1618 | |||
1623 | 1619 | * libutouch-geis-xcb/geis_xcb.c (s_grail_type_map): removed GRAIL_TYPE_SYSFLAG1 | ||
1624 | 1620 | (geis_xcb_dispatch_gesture_type): removed references to GRAIL_TYPE_SYSFLAG1 | ||
1625 | 1621 | |||
1626 | 1622 | 2010-08-26 Stephen M. Webb <stephen.webb@canonical.com> | ||
1627 | 1623 | |||
1628 | 1624 | Prevented "Grab" gesture from being propagated. | ||
1629 | 1625 | |||
1630 | 1626 | * libutouch-geis-xcb/geis_xcb.c (geis_xcb_dispatch_gesture_type): skipped | ||
1631 | 1627 | notification of the availability of the "Grab" gesture type. | ||
1632 | 1628 | |||
1633 | 1629 | 2010-08-26 Stephen M. Webb <stephen.webb@canonical.com> | ||
1634 | 1630 | |||
1635 | 1631 | Fixed an allocation size issue. | ||
1636 | 1632 | |||
1637 | 1633 | * libutouch-geis-xcb/geis_instance.c (geis_instance_get): fixed allocation | ||
1638 | 1634 | size issue | ||
1639 | 1635 | |||
1640 | 1636 | 2010-08-26 Stephen M. Webb <stephen.webb@canonical.com> | ||
1641 | 1637 | |||
1642 | 1638 | Minor style adjustments. Adjusted whitespace for consistency. | ||
1643 | 1639 | |||
1644 | 1640 | * libutouch-geis-xcb/geis_xcb.c (geis_xcb_verify_event_selection): | ||
1645 | 1641 | renamed function from geis_xcb_select_events | ||
1646 | 1642 | (geis_xcb_determine_primitive_type): renamed from | ||
1647 | 1643 | geis_xcb_determine_fundamental_gesture_type | ||
1648 | 1644 | (geis_xcb_get_gesture_type_primitive_name): renamed form | ||
1649 | 1645 | geis_xcb_get_gesture_type_fundamental_name | ||
1650 | 1646 | |||
1651 | 1647 | 2010-08-25 Stephen M. Webb <stephen.webb@canonical.com> | ||
1652 | 1648 | |||
1653 | 1649 | Reverted version bump. | ||
1654 | 1650 | |||
1655 | 1651 | * configure,.ac (AC_INIT): reverted to version 1.0.10 | ||
1656 | 1652 | |||
1657 | 1653 | 2010-08-23 Stephen M. Webb <stephen.webb@canonical.com> | ||
1658 | 1654 | |||
1659 | 1655 | Implemented gesture and input device selection. | ||
1660 | 1656 | |||
1661 | 1657 | * geis/geis.h: new gesture definitions | ||
1662 | 1658 | * libutouch-geis-xcb/geis_xcb.h (geis_xcb_subscribe): | ||
1663 | 1659 | added device_id parameter | ||
1664 | 1660 | * libutouch-geis-xcb/geis_xcb.c (s_grail_type_map): new gesture definitions | ||
1665 | 1661 | (geis_xcb_map_gestures_to_mask): new function | ||
1666 | 1662 | (geis_xcb_select_events): new function | ||
1667 | 1663 | (geis_xcb_subscribe): used them | ||
1668 | 1664 | added device_id parameter | ||
1669 | 1665 | (geis_xcb_determine_gesture_type): renamed to | ||
1670 | 1666 | geis_xcb_determine_fundamental_gesture_type | ||
1671 | 1667 | (geis_xcb_get_gesture_type_fundamental_name): new function | ||
1672 | 1668 | (geis_xcb_dispatch_gesture_type): mapped public gesture definitions to | ||
1673 | 1669 | fundamental gesture types | ||
1674 | 1670 | * libutouch-geis-xcb/geis_instance.c (geis_instance_subscribe): | ||
1675 | 1671 | handled input_list argument | ||
1676 | 1672 | * testsuite/geistest/geistest.c: included an example of selecting gestures | ||
1677 | 1673 | |||
1678 | 1674 | 2010-08-22 Chase Douglas <chase.douglas@canonical.com> | ||
1679 | 1675 | |||
1680 | 1676 | Bumped to version 1.0.10 for various fixes | ||
1681 | 1677 | |||
1682 | 1678 | * geisimple.h: Define the correct number of attributes for each gesture | ||
1683 | 1679 | * geis.h: Sync up with latest grail ABI for gesture attributes | ||
1684 | 1680 | * geis_xcb.c: Sync up with latest grail ABI for gesture attributes | ||
1685 | 1681 | * geisspec-1.0.asc: Sync up with latest grail ABI for gesture attributes | ||
1686 | 1682 | * geis_instance.h: Fix header include macro typo | ||
1687 | 1683 | * geisimple.h: Use int32_t instead of long for integer values | ||
1688 | 1684 | * geis.h: Make win_type unsigned to match usage in code | ||
1689 | 1685 | * geis_xcb.c: Fix missing initializer value issue | ||
1690 | 1686 | * geis_xcb.c: Fix unused variable warning | ||
1691 | 1687 | |||
1692 | 1688 | 2010-08-20 Stephen M. Webb <stephen.webb@canonical.com> | ||
1693 | 1689 | |||
1694 | 1690 | Removed spec build from packaged files. | ||
1695 | 1691 | |||
1696 | 1692 | * doc/Makefile.am (doc-html): removed doc-html-asciidoc | ||
1697 | 1693 | |||
1698 | 1694 | 2010-08-16 Stephen M. Webb <stephen.webb@canonical.com> | ||
1699 | 1695 | |||
1700 | 1696 | Conformed to GNU strictness for consistency. | ||
1701 | 1697 | |||
1702 | 1698 | * AUTHORS: New file. | ||
1703 | 1699 | * COPYING: new file renamed from COPYING.LGPL. | ||
1704 | 1700 | * INSTALL: New file. | ||
1705 | 1701 | * NEWS: New file. | ||
1706 | 1702 | * README: New file. | ||
1707 | 1703 | * Makefile.am: distributed the new files. | ||
1708 | 1704 | * configure.ac: Swicthed from foreign to gnu conformance level. | ||
1709 | 1705 | * libutouch-geis-xcb/Makefile.am: Fixed relative paths. | ||
1710 | 1706 | |||
1711 | 1707 | 2010-08-16 Stephen M. Webb <stephen.webb@canonical.com> | ||
1712 | 1708 | |||
1713 | 1709 | Bumped version to 1.0.9 to replect API change. | ||
1714 | 1710 | |||
1715 | 1711 | * configure.ac: bumped package version. | ||
1716 | 1712 | |||
1717 | 1713 | 2010-08-16 Stephen M. Webb <stephen.webb@canonical.com> | ||
1718 | 1714 | |||
1719 | 1715 | Added standard fundamental gesture constants. | ||
1720 | 1716 | |||
1721 | 1717 | * doc/geisspec-1.0.asc: Added section on fundamental gestures. | ||
1722 | 1718 | * geis/geis.h: Added fundamental gestures and attributes. | ||
1723 | 1719 | * libutouch-geis-xcb/geis_xcb.c: Used them. | ||
1724 | 1720 | |||
1725 | 1721 | 0 | ||
1726 | === modified file 'Makefile.am' | |||
1727 | --- Makefile.am 2011-06-02 19:38:57 +0000 | |||
1728 | +++ Makefile.am 2012-08-23 18:45:02 +0000 | |||
1729 | @@ -4,7 +4,7 @@ | |||
1730 | 4 | # | 4 | # |
1731 | 5 | # Copyright 2010, 2011 Canonical, Ltd. | 5 | # Copyright 2010, 2011 Canonical, Ltd. |
1732 | 6 | # | 6 | # |
1734 | 7 | # This file is part of the utouch-geis library. This library is free software; | 7 | # This file is part of the geis library. This library is free software; |
1735 | 8 | # you can redistribute it and/or modify it under the terms of the GNU Lesser | 8 | # you can redistribute it and/or modify it under the terms of the GNU Lesser |
1736 | 9 | # General Public License as published by the Free Software Foundation; either | 9 | # General Public License as published by the Free Software Foundation; either |
1737 | 10 | # version 3 of the License, or (at your option) any later version. | 10 | # version 3 of the License, or (at your option) any later version. |
1738 | @@ -21,14 +21,14 @@ | |||
1739 | 21 | 21 | ||
1740 | 22 | ACLOCAL_MFLAGS = -I m4 | 22 | ACLOCAL_MFLAGS = -I m4 |
1741 | 23 | 23 | ||
1743 | 24 | SUBDIRS = include libs libutouch-geis testsuite python tools examples doc | 24 | SUBDIRS = include libs libgeis testsuite python tools examples doc |
1744 | 25 | 25 | ||
1745 | 26 | doc-%: | 26 | doc-%: |
1746 | 27 | $(MAKE) -C doc $@ | 27 | $(MAKE) -C doc $@ |
1747 | 28 | 28 | ||
1748 | 29 | pkgconfigdir = $(libdir)/pkgconfig | 29 | pkgconfigdir = $(libdir)/pkgconfig |
1749 | 30 | 30 | ||
1751 | 31 | pkgconfig_DATA = libutouch-geis.pc | 31 | pkgconfig_DATA = libgeis.pc |
1752 | 32 | 32 | ||
1753 | 33 | EXTRA_DIST = \ | 33 | EXTRA_DIST = \ |
1754 | 34 | AUTHORS \ | 34 | AUTHORS \ |
1755 | 35 | 35 | ||
1756 | === modified file 'Makefile.in' | |||
1757 | --- Makefile.in 2011-07-27 19:55:58 +0000 | |||
1758 | +++ Makefile.in 2012-08-23 18:45:02 +0000 | |||
1759 | @@ -21,7 +21,7 @@ | |||
1760 | 21 | # | 21 | # |
1761 | 22 | # Copyright 2010, 2011 Canonical, Ltd. | 22 | # Copyright 2010, 2011 Canonical, Ltd. |
1762 | 23 | # | 23 | # |
1764 | 24 | # This file is part of the utouch-geis library. This library is free software; | 24 | # This file is part of the geis library. This library is free software; |
1765 | 25 | # you can redistribute it and/or modify it under the terms of the GNU Lesser | 25 | # you can redistribute it and/or modify it under the terms of the GNU Lesser |
1766 | 26 | # General Public License as published by the Free Software Foundation; either | 26 | # General Public License as published by the Free Software Foundation; either |
1767 | 27 | # version 3 of the License, or (at your option) any later version. | 27 | # version 3 of the License, or (at your option) any later version. |
1768 | @@ -57,7 +57,7 @@ | |||
1769 | 57 | subdir = . | 57 | subdir = . |
1770 | 58 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | 58 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
1771 | 59 | $(srcdir)/Makefile.in $(srcdir)/geis_config.h.in \ | 59 | $(srcdir)/Makefile.in $(srcdir)/geis_config.h.in \ |
1773 | 60 | $(srcdir)/libutouch-geis.pc.in $(top_srcdir)/configure AUTHORS \ | 60 | $(srcdir)/libgeis.pc.in $(top_srcdir)/configure AUTHORS \ |
1774 | 61 | COPYING ChangeLog INSTALL NEWS config.aux/compile \ | 61 | COPYING ChangeLog INSTALL NEWS config.aux/compile \ |
1775 | 62 | config.aux/config.guess config.aux/config.sub \ | 62 | config.aux/config.guess config.aux/config.sub \ |
1776 | 63 | config.aux/depcomp config.aux/install-sh config.aux/ltmain.sh \ | 63 | config.aux/depcomp config.aux/install-sh config.aux/ltmain.sh \ |
1777 | @@ -73,7 +73,7 @@ | |||
1778 | 73 | configure.lineno config.status.lineno | 73 | configure.lineno config.status.lineno |
1779 | 74 | mkinstalldirs = $(install_sh) -d | 74 | mkinstalldirs = $(install_sh) -d |
1780 | 75 | CONFIG_HEADER = geis_config.h | 75 | CONFIG_HEADER = geis_config.h |
1782 | 76 | CONFIG_CLEAN_FILES = libutouch-geis.pc | 76 | CONFIG_CLEAN_FILES = libgeis.pc |
1783 | 77 | CONFIG_CLEAN_VPATH_FILES = | 77 | CONFIG_CLEAN_VPATH_FILES = |
1784 | 78 | AM_V_GEN = $(am__v_GEN_$(V)) | 78 | AM_V_GEN = $(am__v_GEN_$(V)) |
1785 | 79 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | 79 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) |
1786 | @@ -177,6 +177,7 @@ | |||
1787 | 177 | DBUS_LIBS = @DBUS_LIBS@ | 177 | DBUS_LIBS = @DBUS_LIBS@ |
1788 | 178 | DEFS = @DEFS@ | 178 | DEFS = @DEFS@ |
1789 | 179 | DEPDIR = @DEPDIR@ | 179 | DEPDIR = @DEPDIR@ |
1790 | 180 | DLLTOOL = @DLLTOOL@ | ||
1791 | 180 | DSYMUTIL = @DSYMUTIL@ | 181 | DSYMUTIL = @DSYMUTIL@ |
1792 | 181 | DUMPBIN = @DUMPBIN@ | 182 | DUMPBIN = @DUMPBIN@ |
1793 | 182 | ECHO_C = @ECHO_C@ | 183 | ECHO_C = @ECHO_C@ |
1794 | @@ -202,6 +203,7 @@ | |||
1795 | 202 | LN_S = @LN_S@ | 203 | LN_S = @LN_S@ |
1796 | 203 | LTLIBOBJS = @LTLIBOBJS@ | 204 | LTLIBOBJS = @LTLIBOBJS@ |
1797 | 204 | MAKEINFO = @MAKEINFO@ | 205 | MAKEINFO = @MAKEINFO@ |
1798 | 206 | MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
1799 | 205 | MKDIR_P = @MKDIR_P@ | 207 | MKDIR_P = @MKDIR_P@ |
1800 | 206 | NM = @NM@ | 208 | NM = @NM@ |
1801 | 207 | NMEDIT = @NMEDIT@ | 209 | NMEDIT = @NMEDIT@ |
1802 | @@ -250,6 +252,7 @@ | |||
1803 | 250 | abs_srcdir = @abs_srcdir@ | 252 | abs_srcdir = @abs_srcdir@ |
1804 | 251 | abs_top_builddir = @abs_top_builddir@ | 253 | abs_top_builddir = @abs_top_builddir@ |
1805 | 252 | abs_top_srcdir = @abs_top_srcdir@ | 254 | abs_top_srcdir = @abs_top_srcdir@ |
1806 | 255 | ac_ct_AR = @ac_ct_AR@ | ||
1807 | 253 | ac_ct_CC = @ac_ct_CC@ | 256 | ac_ct_CC = @ac_ct_CC@ |
1808 | 254 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | 257 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
1809 | 255 | am__include = @am__include@ | 258 | am__include = @am__include@ |
1810 | @@ -282,7 +285,6 @@ | |||
1811 | 282 | libexecdir = @libexecdir@ | 285 | libexecdir = @libexecdir@ |
1812 | 283 | localedir = @localedir@ | 286 | localedir = @localedir@ |
1813 | 284 | localstatedir = @localstatedir@ | 287 | localstatedir = @localstatedir@ |
1814 | 285 | lt_ECHO = @lt_ECHO@ | ||
1815 | 286 | mandir = @mandir@ | 288 | mandir = @mandir@ |
1816 | 287 | mkdir_p = @mkdir_p@ | 289 | mkdir_p = @mkdir_p@ |
1817 | 288 | oldincludedir = @oldincludedir@ | 290 | oldincludedir = @oldincludedir@ |
1818 | @@ -303,9 +305,9 @@ | |||
1819 | 303 | top_builddir = @top_builddir@ | 305 | top_builddir = @top_builddir@ |
1820 | 304 | top_srcdir = @top_srcdir@ | 306 | top_srcdir = @top_srcdir@ |
1821 | 305 | ACLOCAL_MFLAGS = -I m4 | 307 | ACLOCAL_MFLAGS = -I m4 |
1823 | 306 | SUBDIRS = include libs libutouch-geis testsuite python tools examples doc | 308 | SUBDIRS = include libs libgeis testsuite python tools examples doc |
1824 | 307 | pkgconfigdir = $(libdir)/pkgconfig | 309 | pkgconfigdir = $(libdir)/pkgconfig |
1826 | 308 | pkgconfig_DATA = libutouch-geis.pc | 310 | pkgconfig_DATA = libgeis.pc |
1827 | 309 | EXTRA_DIST = \ | 311 | EXTRA_DIST = \ |
1828 | 310 | AUTHORS \ | 312 | AUTHORS \ |
1829 | 311 | COPYING \ | 313 | COPYING \ |
1830 | @@ -369,7 +371,7 @@ | |||
1831 | 369 | 371 | ||
1832 | 370 | distclean-hdr: | 372 | distclean-hdr: |
1833 | 371 | -rm -f geis_config.h stamp-h1 | 373 | -rm -f geis_config.h stamp-h1 |
1835 | 372 | libutouch-geis.pc: $(top_builddir)/config.status $(srcdir)/libutouch-geis.pc.in | 374 | libgeis.pc: $(top_builddir)/config.status $(srcdir)/libgeis.pc.in |
1836 | 373 | cd $(top_builddir) && $(SHELL) ./config.status $@ | 375 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
1837 | 374 | 376 | ||
1838 | 375 | mostlyclean-libtool: | 377 | mostlyclean-libtool: |
1839 | 376 | 378 | ||
1840 | === modified file 'NEWS' | |||
1841 | --- NEWS 2011-02-21 16:08:50 +0000 | |||
1842 | +++ NEWS 2012-08-23 18:45:02 +0000 | |||
1843 | @@ -1,4 +1,4 @@ | |||
1845 | 1 | uTouch-geis NEWS -- a history of user-visible changes | 1 | geis NEWS -- a history of user-visible changes |
1846 | 2 | 2 | ||
1847 | 3 | Copyright 2010, 2011 Canonical Ltd. | 3 | Copyright 2010, 2011 Canonical Ltd. |
1848 | 4 | 4 | ||
1849 | 5 | 5 | ||
1850 | === modified file 'aclocal.m4' | |||
1851 | --- aclocal.m4 2011-06-02 19:38:57 +0000 | |||
1852 | +++ aclocal.m4 2012-08-23 18:45:02 +0000 | |||
1853 | @@ -13,8 +13,8 @@ | |||
1854 | 13 | 13 | ||
1855 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
1856 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
1859 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],, | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, |
1860 | 17 | [m4_warning([this file was generated for autoconf 2.67. | 17 | [m4_warning([this file was generated for autoconf 2.68. |
1861 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
1862 | 19 | If you have problems, you may need to regenerate the build system entirely. | 19 | If you have problems, you may need to regenerate the build system entirely. |
1863 | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
1864 | @@ -47,7 +47,8 @@ | |||
1865 | 47 | # ---------------------------------- | 47 | # ---------------------------------- |
1866 | 48 | AC_DEFUN([PKG_PROG_PKG_CONFIG], | 48 | AC_DEFUN([PKG_PROG_PKG_CONFIG], |
1867 | 49 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | 49 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
1869 | 50 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | 50 | m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) |
1870 | 51 | m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) | ||
1871 | 51 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | 52 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
1872 | 52 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | 53 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
1873 | 53 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | 54 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) |
1874 | @@ -93,7 +94,8 @@ | |||
1875 | 93 | pkg_cv_[]$1="$$1" | 94 | pkg_cv_[]$1="$$1" |
1876 | 94 | elif test -n "$PKG_CONFIG"; then | 95 | elif test -n "$PKG_CONFIG"; then |
1877 | 95 | PKG_CHECK_EXISTS([$3], | 96 | PKG_CHECK_EXISTS([$3], |
1879 | 96 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], | 97 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` |
1880 | 98 | test "x$?" != "x0" && pkg_failed=yes ], | ||
1881 | 97 | [pkg_failed=yes]) | 99 | [pkg_failed=yes]) |
1882 | 98 | else | 100 | else |
1883 | 99 | pkg_failed=untried | 101 | pkg_failed=untried |
1884 | @@ -141,9 +143,9 @@ | |||
1885 | 141 | AC_MSG_RESULT([no]) | 143 | AC_MSG_RESULT([no]) |
1886 | 142 | _PKG_SHORT_ERRORS_SUPPORTED | 144 | _PKG_SHORT_ERRORS_SUPPORTED |
1887 | 143 | if test $_pkg_short_errors_supported = yes; then | 145 | if test $_pkg_short_errors_supported = yes; then |
1889 | 144 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` | 146 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` |
1890 | 145 | else | 147 | else |
1892 | 146 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` | 148 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` |
1893 | 147 | fi | 149 | fi |
1894 | 148 | # Put the nasty error message in config.log where it belongs | 150 | # Put the nasty error message in config.log where it belongs |
1895 | 149 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | 151 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
1896 | 150 | 152 | ||
1897 | === modified file 'config.aux/config.guess' | |||
1898 | --- config.aux/config.guess 2010-08-11 16:07:43 +0000 | |||
1899 | +++ config.aux/config.guess 2012-08-23 18:45:02 +0000 | |||
1900 | @@ -1,10 +1,10 @@ | |||
1901 | 1 | #! /bin/sh | 1 | #! /bin/sh |
1902 | 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
1903 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
1906 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
1907 | 5 | # Free Software Foundation, Inc. | 5 | # 2011 Free Software Foundation, Inc. |
1908 | 6 | 6 | ||
1910 | 7 | timestamp='2009-12-30' | 7 | timestamp='2011-05-11' |
1911 | 8 | 8 | ||
1912 | 9 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
1913 | 10 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
1914 | @@ -57,7 +57,7 @@ | |||
1915 | 57 | 57 | ||
1916 | 58 | Originally written by Per Bothner. | 58 | Originally written by Per Bothner. |
1917 | 59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
1919 | 60 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | 60 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
1920 | 61 | Software Foundation, Inc. | 61 | Software Foundation, Inc. |
1921 | 62 | 62 | ||
1922 | 63 | This is free software; see the source for copying conditions. There is NO | 63 | This is free software; see the source for copying conditions. There is NO |
1923 | @@ -181,7 +181,7 @@ | |||
1924 | 181 | fi | 181 | fi |
1925 | 182 | ;; | 182 | ;; |
1926 | 183 | *) | 183 | *) |
1928 | 184 | os=netbsd | 184 | os=netbsd |
1929 | 185 | ;; | 185 | ;; |
1930 | 186 | esac | 186 | esac |
1931 | 187 | # The OS release | 187 | # The OS release |
1932 | @@ -224,7 +224,7 @@ | |||
1933 | 224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | 224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
1934 | 225 | ;; | 225 | ;; |
1935 | 226 | *5.*) | 226 | *5.*) |
1937 | 227 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | 227 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` |
1938 | 228 | ;; | 228 | ;; |
1939 | 229 | esac | 229 | esac |
1940 | 230 | # According to Compaq, /usr/sbin/psrinfo has been available on | 230 | # According to Compaq, /usr/sbin/psrinfo has been available on |
1941 | @@ -270,7 +270,10 @@ | |||
1942 | 270 | # A Xn.n version is an unreleased experimental baselevel. | 270 | # A Xn.n version is an unreleased experimental baselevel. |
1943 | 271 | # 1.2 uses "1.2" for uname -r. | 271 | # 1.2 uses "1.2" for uname -r. |
1944 | 272 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 272 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
1946 | 273 | exit ;; | 273 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
1947 | 274 | exitcode=$? | ||
1948 | 275 | trap '' 0 | ||
1949 | 276 | exit $exitcode ;; | ||
1950 | 274 | Alpha\ *:Windows_NT*:*) | 277 | Alpha\ *:Windows_NT*:*) |
1951 | 275 | # How do we know it's Interix rather than the generic POSIX subsystem? | 278 | # How do we know it's Interix rather than the generic POSIX subsystem? |
1952 | 276 | # Should we change UNAME_MACHINE based on the output of uname instead | 279 | # Should we change UNAME_MACHINE based on the output of uname instead |
1953 | @@ -296,7 +299,7 @@ | |||
1954 | 296 | echo s390-ibm-zvmoe | 299 | echo s390-ibm-zvmoe |
1955 | 297 | exit ;; | 300 | exit ;; |
1956 | 298 | *:OS400:*:*) | 301 | *:OS400:*:*) |
1958 | 299 | echo powerpc-ibm-os400 | 302 | echo powerpc-ibm-os400 |
1959 | 300 | exit ;; | 303 | exit ;; |
1960 | 301 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 304 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
1961 | 302 | echo arm-acorn-riscix${UNAME_RELEASE} | 305 | echo arm-acorn-riscix${UNAME_RELEASE} |
1962 | @@ -395,23 +398,23 @@ | |||
1963 | 395 | # MiNT. But MiNT is downward compatible to TOS, so this should | 398 | # MiNT. But MiNT is downward compatible to TOS, so this should |
1964 | 396 | # be no problem. | 399 | # be no problem. |
1965 | 397 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | 400 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
1967 | 398 | echo m68k-atari-mint${UNAME_RELEASE} | 401 | echo m68k-atari-mint${UNAME_RELEASE} |
1968 | 399 | exit ;; | 402 | exit ;; |
1969 | 400 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | 403 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
1970 | 401 | echo m68k-atari-mint${UNAME_RELEASE} | 404 | echo m68k-atari-mint${UNAME_RELEASE} |
1972 | 402 | exit ;; | 405 | exit ;; |
1973 | 403 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | 406 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
1975 | 404 | echo m68k-atari-mint${UNAME_RELEASE} | 407 | echo m68k-atari-mint${UNAME_RELEASE} |
1976 | 405 | exit ;; | 408 | exit ;; |
1977 | 406 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | 409 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
1980 | 407 | echo m68k-milan-mint${UNAME_RELEASE} | 410 | echo m68k-milan-mint${UNAME_RELEASE} |
1981 | 408 | exit ;; | 411 | exit ;; |
1982 | 409 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | 412 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
1985 | 410 | echo m68k-hades-mint${UNAME_RELEASE} | 413 | echo m68k-hades-mint${UNAME_RELEASE} |
1986 | 411 | exit ;; | 414 | exit ;; |
1987 | 412 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 415 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
1990 | 413 | echo m68k-unknown-mint${UNAME_RELEASE} | 416 | echo m68k-unknown-mint${UNAME_RELEASE} |
1991 | 414 | exit ;; | 417 | exit ;; |
1992 | 415 | m68k:machten:*:*) | 418 | m68k:machten:*:*) |
1993 | 416 | echo m68k-apple-machten${UNAME_RELEASE} | 419 | echo m68k-apple-machten${UNAME_RELEASE} |
1994 | 417 | exit ;; | 420 | exit ;; |
1995 | @@ -481,8 +484,8 @@ | |||
1996 | 481 | echo m88k-motorola-sysv3 | 484 | echo m88k-motorola-sysv3 |
1997 | 482 | exit ;; | 485 | exit ;; |
1998 | 483 | AViiON:dgux:*:*) | 486 | AViiON:dgux:*:*) |
2001 | 484 | # DG/UX returns AViiON for all architectures | 487 | # DG/UX returns AViiON for all architectures |
2002 | 485 | UNAME_PROCESSOR=`/usr/bin/uname -p` | 488 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
2003 | 486 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | 489 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
2004 | 487 | then | 490 | then |
2005 | 488 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | 491 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
2006 | @@ -495,7 +498,7 @@ | |||
2007 | 495 | else | 498 | else |
2008 | 496 | echo i586-dg-dgux${UNAME_RELEASE} | 499 | echo i586-dg-dgux${UNAME_RELEASE} |
2009 | 497 | fi | 500 | fi |
2011 | 498 | exit ;; | 501 | exit ;; |
2012 | 499 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | 502 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
2013 | 500 | echo m88k-dolphin-sysv3 | 503 | echo m88k-dolphin-sysv3 |
2014 | 501 | exit ;; | 504 | exit ;; |
2015 | @@ -552,7 +555,7 @@ | |||
2016 | 552 | echo rs6000-ibm-aix3.2 | 555 | echo rs6000-ibm-aix3.2 |
2017 | 553 | fi | 556 | fi |
2018 | 554 | exit ;; | 557 | exit ;; |
2020 | 555 | *:AIX:*:[456]) | 558 | *:AIX:*:[4567]) |
2021 | 556 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | 559 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
2022 | 557 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | 560 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
2023 | 558 | IBM_ARCH=rs6000 | 561 | IBM_ARCH=rs6000 |
2024 | @@ -595,52 +598,52 @@ | |||
2025 | 595 | 9000/[678][0-9][0-9]) | 598 | 9000/[678][0-9][0-9]) |
2026 | 596 | if [ -x /usr/bin/getconf ]; then | 599 | if [ -x /usr/bin/getconf ]; then |
2027 | 597 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | 600 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
2036 | 598 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | 601 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
2037 | 599 | case "${sc_cpu_version}" in | 602 | case "${sc_cpu_version}" in |
2038 | 600 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | 603 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
2039 | 601 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | 604 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 |
2040 | 602 | 532) # CPU_PA_RISC2_0 | 605 | 532) # CPU_PA_RISC2_0 |
2041 | 603 | case "${sc_kernel_bits}" in | 606 | case "${sc_kernel_bits}" in |
2042 | 604 | 32) HP_ARCH="hppa2.0n" ;; | 607 | 32) HP_ARCH="hppa2.0n" ;; |
2043 | 605 | 64) HP_ARCH="hppa2.0w" ;; | 608 | 64) HP_ARCH="hppa2.0w" ;; |
2044 | 606 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | 609 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
2047 | 607 | esac ;; | 610 | esac ;; |
2048 | 608 | esac | 611 | esac |
2049 | 609 | fi | 612 | fi |
2050 | 610 | if [ "${HP_ARCH}" = "" ]; then | 613 | if [ "${HP_ARCH}" = "" ]; then |
2051 | 611 | eval $set_cc_for_build | 614 | eval $set_cc_for_build |
2084 | 612 | sed 's/^ //' << EOF >$dummy.c | 615 | sed 's/^ //' << EOF >$dummy.c |
2085 | 613 | 616 | ||
2086 | 614 | #define _HPUX_SOURCE | 617 | #define _HPUX_SOURCE |
2087 | 615 | #include <stdlib.h> | 618 | #include <stdlib.h> |
2088 | 616 | #include <unistd.h> | 619 | #include <unistd.h> |
2089 | 617 | 620 | ||
2090 | 618 | int main () | 621 | int main () |
2091 | 619 | { | 622 | { |
2092 | 620 | #if defined(_SC_KERNEL_BITS) | 623 | #if defined(_SC_KERNEL_BITS) |
2093 | 621 | long bits = sysconf(_SC_KERNEL_BITS); | 624 | long bits = sysconf(_SC_KERNEL_BITS); |
2094 | 622 | #endif | 625 | #endif |
2095 | 623 | long cpu = sysconf (_SC_CPU_VERSION); | 626 | long cpu = sysconf (_SC_CPU_VERSION); |
2096 | 624 | 627 | ||
2097 | 625 | switch (cpu) | 628 | switch (cpu) |
2098 | 626 | { | 629 | { |
2099 | 627 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | 630 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
2100 | 628 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | 631 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
2101 | 629 | case CPU_PA_RISC2_0: | 632 | case CPU_PA_RISC2_0: |
2102 | 630 | #if defined(_SC_KERNEL_BITS) | 633 | #if defined(_SC_KERNEL_BITS) |
2103 | 631 | switch (bits) | 634 | switch (bits) |
2104 | 632 | { | 635 | { |
2105 | 633 | case 64: puts ("hppa2.0w"); break; | 636 | case 64: puts ("hppa2.0w"); break; |
2106 | 634 | case 32: puts ("hppa2.0n"); break; | 637 | case 32: puts ("hppa2.0n"); break; |
2107 | 635 | default: puts ("hppa2.0"); break; | 638 | default: puts ("hppa2.0"); break; |
2108 | 636 | } break; | 639 | } break; |
2109 | 637 | #else /* !defined(_SC_KERNEL_BITS) */ | 640 | #else /* !defined(_SC_KERNEL_BITS) */ |
2110 | 638 | puts ("hppa2.0"); break; | 641 | puts ("hppa2.0"); break; |
2111 | 639 | #endif | 642 | #endif |
2112 | 640 | default: puts ("hppa1.0"); break; | 643 | default: puts ("hppa1.0"); break; |
2113 | 641 | } | 644 | } |
2114 | 642 | exit (0); | 645 | exit (0); |
2115 | 643 | } | 646 | } |
2116 | 644 | EOF | 647 | EOF |
2117 | 645 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | 648 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
2118 | 646 | test -z "$HP_ARCH" && HP_ARCH=hppa | 649 | test -z "$HP_ARCH" && HP_ARCH=hppa |
2119 | @@ -731,22 +734,22 @@ | |||
2120 | 731 | exit ;; | 734 | exit ;; |
2121 | 732 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | 735 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
2122 | 733 | echo c1-convex-bsd | 736 | echo c1-convex-bsd |
2124 | 734 | exit ;; | 737 | exit ;; |
2125 | 735 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | 738 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
2126 | 736 | if getsysinfo -f scalar_acc | 739 | if getsysinfo -f scalar_acc |
2127 | 737 | then echo c32-convex-bsd | 740 | then echo c32-convex-bsd |
2128 | 738 | else echo c2-convex-bsd | 741 | else echo c2-convex-bsd |
2129 | 739 | fi | 742 | fi |
2131 | 740 | exit ;; | 743 | exit ;; |
2132 | 741 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | 744 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
2133 | 742 | echo c34-convex-bsd | 745 | echo c34-convex-bsd |
2135 | 743 | exit ;; | 746 | exit ;; |
2136 | 744 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | 747 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
2137 | 745 | echo c38-convex-bsd | 748 | echo c38-convex-bsd |
2139 | 746 | exit ;; | 749 | exit ;; |
2140 | 747 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | 750 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
2141 | 748 | echo c4-convex-bsd | 751 | echo c4-convex-bsd |
2143 | 749 | exit ;; | 752 | exit ;; |
2144 | 750 | CRAY*Y-MP:*:*:*) | 753 | CRAY*Y-MP:*:*:*) |
2145 | 751 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | 754 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
2146 | 752 | exit ;; | 755 | exit ;; |
2147 | @@ -770,14 +773,14 @@ | |||
2148 | 770 | exit ;; | 773 | exit ;; |
2149 | 771 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | 774 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
2150 | 772 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | 775 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
2155 | 773 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | 776 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
2156 | 774 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | 777 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
2157 | 775 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 778 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
2158 | 776 | exit ;; | 779 | exit ;; |
2159 | 777 | 5000:UNIX_System_V:4.*:*) | 780 | 5000:UNIX_System_V:4.*:*) |
2163 | 778 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | 781 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
2164 | 779 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | 782 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` |
2165 | 780 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | 783 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
2166 | 781 | exit ;; | 784 | exit ;; |
2167 | 782 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | 785 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
2168 | 783 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | 786 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
2169 | @@ -805,14 +808,14 @@ | |||
2170 | 805 | echo ${UNAME_MACHINE}-pc-mingw32 | 808 | echo ${UNAME_MACHINE}-pc-mingw32 |
2171 | 806 | exit ;; | 809 | exit ;; |
2172 | 807 | i*:windows32*:*) | 810 | i*:windows32*:*) |
2175 | 808 | # uname -m includes "-pc" on this system. | 811 | # uname -m includes "-pc" on this system. |
2176 | 809 | echo ${UNAME_MACHINE}-mingw32 | 812 | echo ${UNAME_MACHINE}-mingw32 |
2177 | 810 | exit ;; | 813 | exit ;; |
2178 | 811 | i*:PW*:*) | 814 | i*:PW*:*) |
2179 | 812 | echo ${UNAME_MACHINE}-pc-pw32 | 815 | echo ${UNAME_MACHINE}-pc-pw32 |
2180 | 813 | exit ;; | 816 | exit ;; |
2181 | 814 | *:Interix*:*) | 817 | *:Interix*:*) |
2183 | 815 | case ${UNAME_MACHINE} in | 818 | case ${UNAME_MACHINE} in |
2184 | 816 | x86) | 819 | x86) |
2185 | 817 | echo i586-pc-interix${UNAME_RELEASE} | 820 | echo i586-pc-interix${UNAME_RELEASE} |
2186 | 818 | exit ;; | 821 | exit ;; |
2187 | @@ -867,7 +870,7 @@ | |||
2188 | 867 | EV6) UNAME_MACHINE=alphaev6 ;; | 870 | EV6) UNAME_MACHINE=alphaev6 ;; |
2189 | 868 | EV67) UNAME_MACHINE=alphaev67 ;; | 871 | EV67) UNAME_MACHINE=alphaev67 ;; |
2190 | 869 | EV68*) UNAME_MACHINE=alphaev68 ;; | 872 | EV68*) UNAME_MACHINE=alphaev68 ;; |
2192 | 870 | esac | 873 | esac |
2193 | 871 | objdump --private-headers /bin/sh | grep -q ld.so.1 | 874 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
2194 | 872 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 875 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
2195 | 873 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 876 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
2196 | @@ -879,7 +882,13 @@ | |||
2197 | 879 | then | 882 | then |
2198 | 880 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 883 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
2199 | 881 | else | 884 | else |
2201 | 882 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | 885 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
2202 | 886 | | grep -q __ARM_PCS_VFP | ||
2203 | 887 | then | ||
2204 | 888 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | ||
2205 | 889 | else | ||
2206 | 890 | echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | ||
2207 | 891 | fi | ||
2208 | 883 | fi | 892 | fi |
2209 | 884 | exit ;; | 893 | exit ;; |
2210 | 885 | avr32*:Linux:*:*) | 894 | avr32*:Linux:*:*) |
2211 | @@ -892,7 +901,7 @@ | |||
2212 | 892 | echo crisv32-axis-linux-gnu | 901 | echo crisv32-axis-linux-gnu |
2213 | 893 | exit ;; | 902 | exit ;; |
2214 | 894 | frv:Linux:*:*) | 903 | frv:Linux:*:*) |
2216 | 895 | echo frv-unknown-linux-gnu | 904 | echo frv-unknown-linux-gnu |
2217 | 896 | exit ;; | 905 | exit ;; |
2218 | 897 | i*86:Linux:*:*) | 906 | i*86:Linux:*:*) |
2219 | 898 | LIBC=gnu | 907 | LIBC=gnu |
2220 | @@ -960,7 +969,7 @@ | |||
2221 | 960 | echo ${UNAME_MACHINE}-ibm-linux | 969 | echo ${UNAME_MACHINE}-ibm-linux |
2222 | 961 | exit ;; | 970 | exit ;; |
2223 | 962 | sh64*:Linux:*:*) | 971 | sh64*:Linux:*:*) |
2225 | 963 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 972 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
2226 | 964 | exit ;; | 973 | exit ;; |
2227 | 965 | sh*:Linux:*:*) | 974 | sh*:Linux:*:*) |
2228 | 966 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 975 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
2229 | @@ -968,6 +977,9 @@ | |||
2230 | 968 | sparc:Linux:*:* | sparc64:Linux:*:*) | 977 | sparc:Linux:*:* | sparc64:Linux:*:*) |
2231 | 969 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 978 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
2232 | 970 | exit ;; | 979 | exit ;; |
2233 | 980 | tile*:Linux:*:*) | ||
2234 | 981 | echo ${UNAME_MACHINE}-tilera-linux-gnu | ||
2235 | 982 | exit ;; | ||
2236 | 971 | vax:Linux:*:*) | 983 | vax:Linux:*:*) |
2237 | 972 | echo ${UNAME_MACHINE}-dec-linux-gnu | 984 | echo ${UNAME_MACHINE}-dec-linux-gnu |
2238 | 973 | exit ;; | 985 | exit ;; |
2239 | @@ -975,7 +987,7 @@ | |||
2240 | 975 | echo x86_64-unknown-linux-gnu | 987 | echo x86_64-unknown-linux-gnu |
2241 | 976 | exit ;; | 988 | exit ;; |
2242 | 977 | xtensa*:Linux:*:*) | 989 | xtensa*:Linux:*:*) |
2244 | 978 | echo ${UNAME_MACHINE}-unknown-linux-gnu | 990 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
2245 | 979 | exit ;; | 991 | exit ;; |
2246 | 980 | i*86:DYNIX/ptx:4*:*) | 992 | i*86:DYNIX/ptx:4*:*) |
2247 | 981 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 993 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
2248 | @@ -984,11 +996,11 @@ | |||
2249 | 984 | echo i386-sequent-sysv4 | 996 | echo i386-sequent-sysv4 |
2250 | 985 | exit ;; | 997 | exit ;; |
2251 | 986 | i*86:UNIX_SV:4.2MP:2.*) | 998 | i*86:UNIX_SV:4.2MP:2.*) |
2255 | 987 | # Unixware is an offshoot of SVR4, but it has its own version | 999 | # Unixware is an offshoot of SVR4, but it has its own version |
2256 | 988 | # number series starting with 2... | 1000 | # number series starting with 2... |
2257 | 989 | # I am not positive that other SVR4 systems won't match this, | 1001 | # I am not positive that other SVR4 systems won't match this, |
2258 | 990 | # I just have to hope. -- rms. | 1002 | # I just have to hope. -- rms. |
2260 | 991 | # Use sysv4.2uw... so that sysv4* matches it. | 1003 | # Use sysv4.2uw... so that sysv4* matches it. |
2261 | 992 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | 1004 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
2262 | 993 | exit ;; | 1005 | exit ;; |
2263 | 994 | i*86:OS/2:*:*) | 1006 | i*86:OS/2:*:*) |
2264 | @@ -1020,7 +1032,7 @@ | |||
2265 | 1020 | fi | 1032 | fi |
2266 | 1021 | exit ;; | 1033 | exit ;; |
2267 | 1022 | i*86:*:5:[678]*) | 1034 | i*86:*:5:[678]*) |
2269 | 1023 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | 1035 | # UnixWare 7.x, OpenUNIX and OpenServer 6. |
2270 | 1024 | case `/bin/uname -X | grep "^Machine"` in | 1036 | case `/bin/uname -X | grep "^Machine"` in |
2271 | 1025 | *486*) UNAME_MACHINE=i486 ;; | 1037 | *486*) UNAME_MACHINE=i486 ;; |
2272 | 1026 | *Pentium) UNAME_MACHINE=i586 ;; | 1038 | *Pentium) UNAME_MACHINE=i586 ;; |
2273 | @@ -1048,13 +1060,13 @@ | |||
2274 | 1048 | exit ;; | 1060 | exit ;; |
2275 | 1049 | pc:*:*:*) | 1061 | pc:*:*:*) |
2276 | 1050 | # Left here for compatibility: | 1062 | # Left here for compatibility: |
2279 | 1051 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | 1063 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
2280 | 1052 | # the processor, so we play safe by assuming i586. | 1064 | # the processor, so we play safe by assuming i586. |
2281 | 1053 | # Note: whatever this is, it MUST be the same as what config.sub | 1065 | # Note: whatever this is, it MUST be the same as what config.sub |
2282 | 1054 | # prints for the "djgpp" host, or else GDB configury will decide that | 1066 | # prints for the "djgpp" host, or else GDB configury will decide that |
2283 | 1055 | # this is a cross-build. | 1067 | # this is a cross-build. |
2284 | 1056 | echo i586-pc-msdosdjgpp | 1068 | echo i586-pc-msdosdjgpp |
2286 | 1057 | exit ;; | 1069 | exit ;; |
2287 | 1058 | Intel:Mach:3*:*) | 1070 | Intel:Mach:3*:*) |
2288 | 1059 | echo i386-pc-mach3 | 1071 | echo i386-pc-mach3 |
2289 | 1060 | exit ;; | 1072 | exit ;; |
2290 | @@ -1089,8 +1101,8 @@ | |||
2291 | 1089 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | 1101 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
2292 | 1090 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | 1102 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
2293 | 1091 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 1103 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
2296 | 1092 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | 1104 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
2297 | 1093 | && { echo i486-ncr-sysv4; exit; } ;; | 1105 | && { echo i486-ncr-sysv4; exit; } ;; |
2298 | 1094 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) | 1106 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
2299 | 1095 | OS_REL='.3' | 1107 | OS_REL='.3' |
2300 | 1096 | test -r /etc/.relid \ | 1108 | test -r /etc/.relid \ |
2301 | @@ -1133,10 +1145,10 @@ | |||
2302 | 1133 | echo ns32k-sni-sysv | 1145 | echo ns32k-sni-sysv |
2303 | 1134 | fi | 1146 | fi |
2304 | 1135 | exit ;; | 1147 | exit ;; |
2309 | 1136 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | 1148 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
2310 | 1137 | # says <Richard.M.Bartel@ccMail.Census.GOV> | 1149 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
2311 | 1138 | echo i586-unisys-sysv4 | 1150 | echo i586-unisys-sysv4 |
2312 | 1139 | exit ;; | 1151 | exit ;; |
2313 | 1140 | *:UNIX_System_V:4*:FTX*) | 1152 | *:UNIX_System_V:4*:FTX*) |
2314 | 1141 | # From Gerald Hewes <hewes@openmarket.com>. | 1153 | # From Gerald Hewes <hewes@openmarket.com>. |
2315 | 1142 | # How about differentiating between stratus architectures? -djm | 1154 | # How about differentiating between stratus architectures? -djm |
2316 | @@ -1162,11 +1174,11 @@ | |||
2317 | 1162 | exit ;; | 1174 | exit ;; |
2318 | 1163 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | 1175 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
2319 | 1164 | if [ -d /usr/nec ]; then | 1176 | if [ -d /usr/nec ]; then |
2321 | 1165 | echo mips-nec-sysv${UNAME_RELEASE} | 1177 | echo mips-nec-sysv${UNAME_RELEASE} |
2322 | 1166 | else | 1178 | else |
2324 | 1167 | echo mips-unknown-sysv${UNAME_RELEASE} | 1179 | echo mips-unknown-sysv${UNAME_RELEASE} |
2325 | 1168 | fi | 1180 | fi |
2327 | 1169 | exit ;; | 1181 | exit ;; |
2328 | 1170 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | 1182 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
2329 | 1171 | echo powerpc-be-beos | 1183 | echo powerpc-be-beos |
2330 | 1172 | exit ;; | 1184 | exit ;; |
2331 | @@ -1231,6 +1243,9 @@ | |||
2332 | 1231 | *:QNX:*:4*) | 1243 | *:QNX:*:4*) |
2333 | 1232 | echo i386-pc-qnx | 1244 | echo i386-pc-qnx |
2334 | 1233 | exit ;; | 1245 | exit ;; |
2335 | 1246 | NEO-?:NONSTOP_KERNEL:*:*) | ||
2336 | 1247 | echo neo-tandem-nsk${UNAME_RELEASE} | ||
2337 | 1248 | exit ;; | ||
2338 | 1234 | NSE-?:NONSTOP_KERNEL:*:*) | 1249 | NSE-?:NONSTOP_KERNEL:*:*) |
2339 | 1235 | echo nse-tandem-nsk${UNAME_RELEASE} | 1250 | echo nse-tandem-nsk${UNAME_RELEASE} |
2340 | 1236 | exit ;; | 1251 | exit ;; |
2341 | @@ -1276,13 +1291,13 @@ | |||
2342 | 1276 | echo pdp10-unknown-its | 1291 | echo pdp10-unknown-its |
2343 | 1277 | exit ;; | 1292 | exit ;; |
2344 | 1278 | SEI:*:*:SEIUX) | 1293 | SEI:*:*:SEIUX) |
2346 | 1279 | echo mips-sei-seiux${UNAME_RELEASE} | 1294 | echo mips-sei-seiux${UNAME_RELEASE} |
2347 | 1280 | exit ;; | 1295 | exit ;; |
2348 | 1281 | *:DragonFly:*:*) | 1296 | *:DragonFly:*:*) |
2349 | 1282 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 1297 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
2350 | 1283 | exit ;; | 1298 | exit ;; |
2351 | 1284 | *:*VMS:*:*) | 1299 | *:*VMS:*:*) |
2353 | 1285 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | 1300 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
2354 | 1286 | case "${UNAME_MACHINE}" in | 1301 | case "${UNAME_MACHINE}" in |
2355 | 1287 | A*) echo alpha-dec-vms ; exit ;; | 1302 | A*) echo alpha-dec-vms ; exit ;; |
2356 | 1288 | I*) echo ia64-dec-vms ; exit ;; | 1303 | I*) echo ia64-dec-vms ; exit ;; |
2357 | @@ -1322,11 +1337,11 @@ | |||
2358 | 1322 | #include <sys/param.h> | 1337 | #include <sys/param.h> |
2359 | 1323 | printf ("m68k-sony-newsos%s\n", | 1338 | printf ("m68k-sony-newsos%s\n", |
2360 | 1324 | #ifdef NEWSOS4 | 1339 | #ifdef NEWSOS4 |
2362 | 1325 | "4" | 1340 | "4" |
2363 | 1326 | #else | 1341 | #else |
2365 | 1327 | "" | 1342 | "" |
2366 | 1328 | #endif | 1343 | #endif |
2368 | 1329 | ); exit (0); | 1344 | ); exit (0); |
2369 | 1330 | #endif | 1345 | #endif |
2370 | 1331 | #endif | 1346 | #endif |
2371 | 1332 | 1347 | ||
2372 | 1333 | 1348 | ||
2373 | === modified file 'config.aux/config.sub' | |||
2374 | --- config.aux/config.sub 2010-08-11 16:07:43 +0000 | |||
2375 | +++ config.aux/config.sub 2012-08-23 18:45:02 +0000 | |||
2376 | @@ -1,10 +1,10 @@ | |||
2377 | 1 | #! /bin/sh | 1 | #! /bin/sh |
2378 | 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
2379 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
2382 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
2383 | 5 | # Free Software Foundation, Inc. | 5 | # 2011 Free Software Foundation, Inc. |
2384 | 6 | 6 | ||
2386 | 7 | timestamp='2010-01-22' | 7 | timestamp='2011-03-23' |
2387 | 8 | 8 | ||
2388 | 9 | # This file is (in principle) common to ALL GNU software. | 9 | # This file is (in principle) common to ALL GNU software. |
2389 | 10 | # The presence of a machine in this file suggests that SOME GNU software | 10 | # The presence of a machine in this file suggests that SOME GNU software |
2390 | @@ -76,7 +76,7 @@ | |||
2391 | 76 | GNU config.sub ($timestamp) | 76 | GNU config.sub ($timestamp) |
2392 | 77 | 77 | ||
2393 | 78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
2395 | 79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | 79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free |
2396 | 80 | Software Foundation, Inc. | 80 | Software Foundation, Inc. |
2397 | 81 | 81 | ||
2398 | 82 | This is free software; see the source for copying conditions. There is NO | 82 | This is free software; see the source for copying conditions. There is NO |
2399 | @@ -124,8 +124,9 @@ | |||
2400 | 124 | # Here we must recognize all the valid KERNEL-OS combinations. | 124 | # Here we must recognize all the valid KERNEL-OS combinations. |
2401 | 125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
2402 | 126 | case $maybe_os in | 126 | case $maybe_os in |
2405 | 127 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | 127 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
2406 | 128 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ | 128 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
2407 | 129 | knetbsd*-gnu* | netbsd*-gnu* | \ | ||
2408 | 129 | kopensolaris*-gnu* | \ | 130 | kopensolaris*-gnu* | \ |
2409 | 130 | storm-chaos* | os2-emx* | rtmk-nova*) | 131 | storm-chaos* | os2-emx* | rtmk-nova*) |
2410 | 131 | os=-$maybe_os | 132 | os=-$maybe_os |
2411 | @@ -157,8 +158,8 @@ | |||
2412 | 157 | os= | 158 | os= |
2413 | 158 | basic_machine=$1 | 159 | basic_machine=$1 |
2414 | 159 | ;; | 160 | ;; |
2417 | 160 | -bluegene*) | 161 | -bluegene*) |
2418 | 161 | os=-cnk | 162 | os=-cnk |
2419 | 162 | ;; | 163 | ;; |
2420 | 163 | -sim | -cisco | -oki | -wec | -winbond) | 164 | -sim | -cisco | -oki | -wec | -winbond) |
2421 | 164 | os= | 165 | os= |
2422 | @@ -174,10 +175,10 @@ | |||
2423 | 174 | os=-chorusos | 175 | os=-chorusos |
2424 | 175 | basic_machine=$1 | 176 | basic_machine=$1 |
2425 | 176 | ;; | 177 | ;; |
2428 | 177 | -chorusrdb) | 178 | -chorusrdb) |
2429 | 178 | os=-chorusrdb | 179 | os=-chorusrdb |
2430 | 179 | basic_machine=$1 | 180 | basic_machine=$1 |
2432 | 180 | ;; | 181 | ;; |
2433 | 181 | -hiux*) | 182 | -hiux*) |
2434 | 182 | os=-hiuxwe2 | 183 | os=-hiuxwe2 |
2435 | 183 | ;; | 184 | ;; |
2436 | @@ -282,11 +283,13 @@ | |||
2437 | 282 | | moxie \ | 283 | | moxie \ |
2438 | 283 | | mt \ | 284 | | mt \ |
2439 | 284 | | msp430 \ | 285 | | msp430 \ |
2440 | 286 | | nds32 | nds32le | nds32be \ | ||
2441 | 285 | | nios | nios2 \ | 287 | | nios | nios2 \ |
2442 | 286 | | ns16k | ns32k \ | 288 | | ns16k | ns32k \ |
2443 | 289 | | open8 \ | ||
2444 | 287 | | or32 \ | 290 | | or32 \ |
2445 | 288 | | pdp10 | pdp11 | pj | pjl \ | 291 | | pdp10 | pdp11 | pj | pjl \ |
2447 | 289 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | 292 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
2448 | 290 | | pyramid \ | 293 | | pyramid \ |
2449 | 291 | | rx \ | 294 | | rx \ |
2450 | 292 | | score \ | 295 | | score \ |
2451 | @@ -294,15 +297,24 @@ | |||
2452 | 294 | | sh64 | sh64le \ | 297 | | sh64 | sh64le \ |
2453 | 295 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | 298 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
2454 | 296 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | 299 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
2457 | 297 | | spu | strongarm \ | 300 | | spu \ |
2458 | 298 | | tahoe | thumb | tic4x | tic80 | tron \ | 301 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
2459 | 299 | | ubicom32 \ | 302 | | ubicom32 \ |
2460 | 300 | | v850 | v850e \ | 303 | | v850 | v850e \ |
2461 | 301 | | we32k \ | 304 | | we32k \ |
2463 | 302 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | 305 | | x86 | xc16x | xstormy16 | xtensa \ |
2464 | 303 | | z8k | z80) | 306 | | z8k | z80) |
2465 | 304 | basic_machine=$basic_machine-unknown | 307 | basic_machine=$basic_machine-unknown |
2466 | 305 | ;; | 308 | ;; |
2467 | 309 | c54x) | ||
2468 | 310 | basic_machine=tic54x-unknown | ||
2469 | 311 | ;; | ||
2470 | 312 | c55x) | ||
2471 | 313 | basic_machine=tic55x-unknown | ||
2472 | 314 | ;; | ||
2473 | 315 | c6x) | ||
2474 | 316 | basic_machine=tic6x-unknown | ||
2475 | 317 | ;; | ||
2476 | 306 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) | 318 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
2477 | 307 | # Motorola 68HC11/12. | 319 | # Motorola 68HC11/12. |
2478 | 308 | basic_machine=$basic_machine-unknown | 320 | basic_machine=$basic_machine-unknown |
2479 | @@ -314,6 +326,18 @@ | |||
2480 | 314 | basic_machine=mt-unknown | 326 | basic_machine=mt-unknown |
2481 | 315 | ;; | 327 | ;; |
2482 | 316 | 328 | ||
2483 | 329 | strongarm | thumb | xscale) | ||
2484 | 330 | basic_machine=arm-unknown | ||
2485 | 331 | ;; | ||
2486 | 332 | |||
2487 | 333 | xscaleeb) | ||
2488 | 334 | basic_machine=armeb-unknown | ||
2489 | 335 | ;; | ||
2490 | 336 | |||
2491 | 337 | xscaleel) | ||
2492 | 338 | basic_machine=armel-unknown | ||
2493 | 339 | ;; | ||
2494 | 340 | |||
2495 | 317 | # We use `pc' rather than `unknown' | 341 | # We use `pc' rather than `unknown' |
2496 | 318 | # because (1) that's what they normally are, and | 342 | # because (1) that's what they normally are, and |
2497 | 319 | # (2) the word "unknown" tends to confuse beginning users. | 343 | # (2) the word "unknown" tends to confuse beginning users. |
2498 | @@ -334,7 +358,7 @@ | |||
2499 | 334 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | 358 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
2500 | 335 | | avr-* | avr32-* \ | 359 | | avr-* | avr32-* \ |
2501 | 336 | | bfin-* | bs2000-* \ | 360 | | bfin-* | bs2000-* \ |
2503 | 337 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | 361 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
2504 | 338 | | clipper-* | craynv-* | cydra-* \ | 362 | | clipper-* | craynv-* | cydra-* \ |
2505 | 339 | | d10v-* | d30v-* | dlx-* \ | 363 | | d10v-* | d30v-* | dlx-* \ |
2506 | 340 | | elxsi-* \ | 364 | | elxsi-* \ |
2507 | @@ -368,26 +392,28 @@ | |||
2508 | 368 | | mmix-* \ | 392 | | mmix-* \ |
2509 | 369 | | mt-* \ | 393 | | mt-* \ |
2510 | 370 | | msp430-* \ | 394 | | msp430-* \ |
2511 | 395 | | nds32-* | nds32le-* | nds32be-* \ | ||
2512 | 371 | | nios-* | nios2-* \ | 396 | | nios-* | nios2-* \ |
2513 | 372 | | none-* | np1-* | ns16k-* | ns32k-* \ | 397 | | none-* | np1-* | ns16k-* | ns32k-* \ |
2514 | 398 | | open8-* \ | ||
2515 | 373 | | orion-* \ | 399 | | orion-* \ |
2516 | 374 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 400 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
2518 | 375 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | 401 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
2519 | 376 | | pyramid-* \ | 402 | | pyramid-* \ |
2520 | 377 | | romp-* | rs6000-* | rx-* \ | 403 | | romp-* | rs6000-* | rx-* \ |
2521 | 378 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | 404 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
2522 | 379 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | 405 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
2523 | 380 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | 406 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
2524 | 381 | | sparclite-* \ | 407 | | sparclite-* \ |
2527 | 382 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | 408 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ |
2528 | 383 | | tahoe-* | thumb-* \ | 409 | | tahoe-* \ |
2529 | 384 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | 410 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
2530 | 385 | | tile-* | tilegx-* \ | 411 | | tile-* | tilegx-* \ |
2531 | 386 | | tron-* \ | 412 | | tron-* \ |
2532 | 387 | | ubicom32-* \ | 413 | | ubicom32-* \ |
2533 | 388 | | v850-* | v850e-* | vax-* \ | 414 | | v850-* | v850e-* | vax-* \ |
2534 | 389 | | we32k-* \ | 415 | | we32k-* \ |
2536 | 390 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | 416 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
2537 | 391 | | xstormy16-* | xtensa*-* \ | 417 | | xstormy16-* | xtensa*-* \ |
2538 | 392 | | ymp-* \ | 418 | | ymp-* \ |
2539 | 393 | | z8k-* | z80-*) | 419 | | z8k-* | z80-*) |
2540 | @@ -412,7 +438,7 @@ | |||
2541 | 412 | basic_machine=a29k-amd | 438 | basic_machine=a29k-amd |
2542 | 413 | os=-udi | 439 | os=-udi |
2543 | 414 | ;; | 440 | ;; |
2545 | 415 | abacus) | 441 | abacus) |
2546 | 416 | basic_machine=abacus-unknown | 442 | basic_machine=abacus-unknown |
2547 | 417 | ;; | 443 | ;; |
2548 | 418 | adobe68k) | 444 | adobe68k) |
2549 | @@ -482,11 +508,20 @@ | |||
2550 | 482 | basic_machine=powerpc-ibm | 508 | basic_machine=powerpc-ibm |
2551 | 483 | os=-cnk | 509 | os=-cnk |
2552 | 484 | ;; | 510 | ;; |
2553 | 511 | c54x-*) | ||
2554 | 512 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2555 | 513 | ;; | ||
2556 | 514 | c55x-*) | ||
2557 | 515 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2558 | 516 | ;; | ||
2559 | 517 | c6x-*) | ||
2560 | 518 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2561 | 519 | ;; | ||
2562 | 485 | c90) | 520 | c90) |
2563 | 486 | basic_machine=c90-cray | 521 | basic_machine=c90-cray |
2564 | 487 | os=-unicos | 522 | os=-unicos |
2565 | 488 | ;; | 523 | ;; |
2567 | 489 | cegcc) | 524 | cegcc) |
2568 | 490 | basic_machine=arm-unknown | 525 | basic_machine=arm-unknown |
2569 | 491 | os=-cegcc | 526 | os=-cegcc |
2570 | 492 | ;; | 527 | ;; |
2571 | @@ -518,7 +553,7 @@ | |||
2572 | 518 | basic_machine=craynv-cray | 553 | basic_machine=craynv-cray |
2573 | 519 | os=-unicosmp | 554 | os=-unicosmp |
2574 | 520 | ;; | 555 | ;; |
2576 | 521 | cr16) | 556 | cr16 | cr16-*) |
2577 | 522 | basic_machine=cr16-unknown | 557 | basic_machine=cr16-unknown |
2578 | 523 | os=-elf | 558 | os=-elf |
2579 | 524 | ;; | 559 | ;; |
2580 | @@ -734,7 +769,7 @@ | |||
2581 | 734 | basic_machine=ns32k-utek | 769 | basic_machine=ns32k-utek |
2582 | 735 | os=-sysv | 770 | os=-sysv |
2583 | 736 | ;; | 771 | ;; |
2585 | 737 | microblaze) | 772 | microblaze) |
2586 | 738 | basic_machine=microblaze-xilinx | 773 | basic_machine=microblaze-xilinx |
2587 | 739 | ;; | 774 | ;; |
2588 | 740 | mingw32) | 775 | mingw32) |
2589 | @@ -841,6 +876,12 @@ | |||
2590 | 841 | np1) | 876 | np1) |
2591 | 842 | basic_machine=np1-gould | 877 | basic_machine=np1-gould |
2592 | 843 | ;; | 878 | ;; |
2593 | 879 | neo-tandem) | ||
2594 | 880 | basic_machine=neo-tandem | ||
2595 | 881 | ;; | ||
2596 | 882 | nse-tandem) | ||
2597 | 883 | basic_machine=nse-tandem | ||
2598 | 884 | ;; | ||
2599 | 844 | nsr-tandem) | 885 | nsr-tandem) |
2600 | 845 | basic_machine=nsr-tandem | 886 | basic_machine=nsr-tandem |
2601 | 846 | ;; | 887 | ;; |
2602 | @@ -923,9 +964,10 @@ | |||
2603 | 923 | ;; | 964 | ;; |
2604 | 924 | power) basic_machine=power-ibm | 965 | power) basic_machine=power-ibm |
2605 | 925 | ;; | 966 | ;; |
2607 | 926 | ppc) basic_machine=powerpc-unknown | 967 | ppc | ppcbe) basic_machine=powerpc-unknown |
2608 | 927 | ;; | 968 | ;; |
2610 | 928 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | 969 | ppc-* | ppcbe-*) |
2611 | 970 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2612 | 929 | ;; | 971 | ;; |
2613 | 930 | ppcle | powerpclittle | ppc-le | powerpc-little) | 972 | ppcle | powerpclittle | ppc-le | powerpc-little) |
2614 | 931 | basic_machine=powerpcle-unknown | 973 | basic_machine=powerpcle-unknown |
2615 | @@ -1019,6 +1061,9 @@ | |||
2616 | 1019 | basic_machine=i860-stratus | 1061 | basic_machine=i860-stratus |
2617 | 1020 | os=-sysv4 | 1062 | os=-sysv4 |
2618 | 1021 | ;; | 1063 | ;; |
2619 | 1064 | strongarm-* | thumb-*) | ||
2620 | 1065 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2621 | 1066 | ;; | ||
2622 | 1022 | sun2) | 1067 | sun2) |
2623 | 1023 | basic_machine=m68000-sun | 1068 | basic_machine=m68000-sun |
2624 | 1024 | ;; | 1069 | ;; |
2625 | @@ -1075,20 +1120,8 @@ | |||
2626 | 1075 | basic_machine=t90-cray | 1120 | basic_machine=t90-cray |
2627 | 1076 | os=-unicos | 1121 | os=-unicos |
2628 | 1077 | ;; | 1122 | ;; |
2643 | 1078 | tic54x | c54x*) | 1123 | # This must be matched before tile*. |
2644 | 1079 | basic_machine=tic54x-unknown | 1124 | tilegx*) |
2631 | 1080 | os=-coff | ||
2632 | 1081 | ;; | ||
2633 | 1082 | tic55x | c55x*) | ||
2634 | 1083 | basic_machine=tic55x-unknown | ||
2635 | 1084 | os=-coff | ||
2636 | 1085 | ;; | ||
2637 | 1086 | tic6x | c6x*) | ||
2638 | 1087 | basic_machine=tic6x-unknown | ||
2639 | 1088 | os=-coff | ||
2640 | 1089 | ;; | ||
2641 | 1090 | # This must be matched before tile*. | ||
2642 | 1091 | tilegx*) | ||
2645 | 1092 | basic_machine=tilegx-unknown | 1125 | basic_machine=tilegx-unknown |
2646 | 1093 | os=-linux-gnu | 1126 | os=-linux-gnu |
2647 | 1094 | ;; | 1127 | ;; |
2648 | @@ -1163,6 +1196,9 @@ | |||
2649 | 1163 | xps | xps100) | 1196 | xps | xps100) |
2650 | 1164 | basic_machine=xps100-honeywell | 1197 | basic_machine=xps100-honeywell |
2651 | 1165 | ;; | 1198 | ;; |
2652 | 1199 | xscale-* | xscalee[bl]-*) | ||
2653 | 1200 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | ||
2654 | 1201 | ;; | ||
2655 | 1166 | ymp) | 1202 | ymp) |
2656 | 1167 | basic_machine=ymp-cray | 1203 | basic_machine=ymp-cray |
2657 | 1168 | os=-unicos | 1204 | os=-unicos |
2658 | @@ -1260,11 +1296,11 @@ | |||
2659 | 1260 | if [ x"$os" != x"" ] | 1296 | if [ x"$os" != x"" ] |
2660 | 1261 | then | 1297 | then |
2661 | 1262 | case $os in | 1298 | case $os in |
2664 | 1263 | # First match some system type aliases | 1299 | # First match some system type aliases |
2665 | 1264 | # that might get confused with valid system types. | 1300 | # that might get confused with valid system types. |
2666 | 1265 | # -solaris* is a basic system type, with this one exception. | 1301 | # -solaris* is a basic system type, with this one exception. |
2669 | 1266 | -auroraux) | 1302 | -auroraux) |
2670 | 1267 | os=-auroraux | 1303 | os=-auroraux |
2671 | 1268 | ;; | 1304 | ;; |
2672 | 1269 | -solaris1 | -solaris1.*) | 1305 | -solaris1 | -solaris1.*) |
2673 | 1270 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | 1306 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
2674 | @@ -1301,7 +1337,8 @@ | |||
2675 | 1301 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 1337 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
2676 | 1302 | | -chorusos* | -chorusrdb* | -cegcc* \ | 1338 | | -chorusos* | -chorusrdb* | -cegcc* \ |
2677 | 1303 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1339 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
2679 | 1304 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | 1340 | | -mingw32* | -linux-gnu* | -linux-android* \ |
2680 | 1341 | | -linux-newlib* | -linux-uclibc* \ | ||
2681 | 1305 | | -uxpv* | -beos* | -mpeix* | -udk* \ | 1342 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
2682 | 1306 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1343 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
2683 | 1307 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1344 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
2684 | @@ -1348,7 +1385,7 @@ | |||
2685 | 1348 | -opened*) | 1385 | -opened*) |
2686 | 1349 | os=-openedition | 1386 | os=-openedition |
2687 | 1350 | ;; | 1387 | ;; |
2689 | 1351 | -os400*) | 1388 | -os400*) |
2690 | 1352 | os=-os400 | 1389 | os=-os400 |
2691 | 1353 | ;; | 1390 | ;; |
2692 | 1354 | -wince*) | 1391 | -wince*) |
2693 | @@ -1397,7 +1434,7 @@ | |||
2694 | 1397 | -sinix*) | 1434 | -sinix*) |
2695 | 1398 | os=-sysv4 | 1435 | os=-sysv4 |
2696 | 1399 | ;; | 1436 | ;; |
2698 | 1400 | -tpf*) | 1437 | -tpf*) |
2699 | 1401 | os=-tpf | 1438 | os=-tpf |
2700 | 1402 | ;; | 1439 | ;; |
2701 | 1403 | -triton*) | 1440 | -triton*) |
2702 | @@ -1442,8 +1479,8 @@ | |||
2703 | 1442 | -dicos*) | 1479 | -dicos*) |
2704 | 1443 | os=-dicos | 1480 | os=-dicos |
2705 | 1444 | ;; | 1481 | ;; |
2708 | 1445 | -nacl*) | 1482 | -nacl*) |
2709 | 1446 | ;; | 1483 | ;; |
2710 | 1447 | -none) | 1484 | -none) |
2711 | 1448 | ;; | 1485 | ;; |
2712 | 1449 | *) | 1486 | *) |
2713 | @@ -1466,10 +1503,10 @@ | |||
2714 | 1466 | # system, and we'll never get to this point. | 1503 | # system, and we'll never get to this point. |
2715 | 1467 | 1504 | ||
2716 | 1468 | case $basic_machine in | 1505 | case $basic_machine in |
2718 | 1469 | score-*) | 1506 | score-*) |
2719 | 1470 | os=-elf | 1507 | os=-elf |
2720 | 1471 | ;; | 1508 | ;; |
2722 | 1472 | spu-*) | 1509 | spu-*) |
2723 | 1473 | os=-elf | 1510 | os=-elf |
2724 | 1474 | ;; | 1511 | ;; |
2725 | 1475 | *-acorn) | 1512 | *-acorn) |
2726 | @@ -1481,8 +1518,17 @@ | |||
2727 | 1481 | arm*-semi) | 1518 | arm*-semi) |
2728 | 1482 | os=-aout | 1519 | os=-aout |
2729 | 1483 | ;; | 1520 | ;; |
2732 | 1484 | c4x-* | tic4x-*) | 1521 | c4x-* | tic4x-*) |
2733 | 1485 | os=-coff | 1522 | os=-coff |
2734 | 1523 | ;; | ||
2735 | 1524 | tic54x-*) | ||
2736 | 1525 | os=-coff | ||
2737 | 1526 | ;; | ||
2738 | 1527 | tic55x-*) | ||
2739 | 1528 | os=-coff | ||
2740 | 1529 | ;; | ||
2741 | 1530 | tic6x-*) | ||
2742 | 1531 | os=-coff | ||
2743 | 1486 | ;; | 1532 | ;; |
2744 | 1487 | # This must come before the *-dec entry. | 1533 | # This must come before the *-dec entry. |
2745 | 1488 | pdp10-*) | 1534 | pdp10-*) |
2746 | @@ -1509,7 +1555,7 @@ | |||
2747 | 1509 | m68*-cisco) | 1555 | m68*-cisco) |
2748 | 1510 | os=-aout | 1556 | os=-aout |
2749 | 1511 | ;; | 1557 | ;; |
2751 | 1512 | mep-*) | 1558 | mep-*) |
2752 | 1513 | os=-elf | 1559 | os=-elf |
2753 | 1514 | ;; | 1560 | ;; |
2754 | 1515 | mips*-cisco) | 1561 | mips*-cisco) |
2755 | @@ -1536,7 +1582,7 @@ | |||
2756 | 1536 | *-ibm) | 1582 | *-ibm) |
2757 | 1537 | os=-aix | 1583 | os=-aix |
2758 | 1538 | ;; | 1584 | ;; |
2760 | 1539 | *-knuth) | 1585 | *-knuth) |
2761 | 1540 | os=-mmixware | 1586 | os=-mmixware |
2762 | 1541 | ;; | 1587 | ;; |
2763 | 1542 | *-wec) | 1588 | *-wec) |
2764 | 1543 | 1589 | ||
2765 | === modified file 'config.aux/ltmain.sh' | |||
2766 | --- config.aux/ltmain.sh 2011-03-23 18:16:08 +0000 | |||
2767 | +++ config.aux/ltmain.sh 2012-08-23 18:45:02 +0000 | |||
2768 | @@ -1,9 +1,9 @@ | |||
2769 | 1 | # Generated from ltmain.m4sh. | ||
2770 | 2 | 1 | ||
2772 | 3 | # ltmain.sh (GNU libtool) 2.2.6b | 2 | # libtool (GNU libtool) 2.4 |
2773 | 4 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 3 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
2774 | 5 | 4 | ||
2776 | 6 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. | 5 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, |
2777 | 6 | # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
2778 | 7 | # This is free software; see the source for copying conditions. There is NO | 7 | # This is free software; see the source for copying conditions. There is NO |
2779 | 8 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 8 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
2780 | 9 | 9 | ||
2781 | @@ -32,50 +32,56 @@ | |||
2782 | 32 | # | 32 | # |
2783 | 33 | # Provide generalized library-building support services. | 33 | # Provide generalized library-building support services. |
2784 | 34 | # | 34 | # |
2796 | 35 | # --config show all configuration variables | 35 | # --config show all configuration variables |
2797 | 36 | # --debug enable verbose shell tracing | 36 | # --debug enable verbose shell tracing |
2798 | 37 | # -n, --dry-run display commands without modifying any files | 37 | # -n, --dry-run display commands without modifying any files |
2799 | 38 | # --features display basic configuration information and exit | 38 | # --features display basic configuration information and exit |
2800 | 39 | # --mode=MODE use operation mode MODE | 39 | # --mode=MODE use operation mode MODE |
2801 | 40 | # --preserve-dup-deps don't remove duplicate dependency libraries | 40 | # --preserve-dup-deps don't remove duplicate dependency libraries |
2802 | 41 | # --quiet, --silent don't print informational messages | 41 | # --quiet, --silent don't print informational messages |
2803 | 42 | # --tag=TAG use configuration variables from tag TAG | 42 | # --no-quiet, --no-silent |
2804 | 43 | # -v, --verbose print informational messages (default) | 43 | # print informational messages (default) |
2805 | 44 | # --version print version information | 44 | # --tag=TAG use configuration variables from tag TAG |
2806 | 45 | # -h, --help print short or long help message | 45 | # -v, --verbose print more informational messages than default |
2807 | 46 | # --no-verbose don't print the extra informational messages | ||
2808 | 47 | # --version print version information | ||
2809 | 48 | # -h, --help, --help-all print short, long, or detailed help message | ||
2810 | 46 | # | 49 | # |
2811 | 47 | # MODE must be one of the following: | 50 | # MODE must be one of the following: |
2812 | 48 | # | 51 | # |
2820 | 49 | # clean remove files from the build directory | 52 | # clean remove files from the build directory |
2821 | 50 | # compile compile a source file into a libtool object | 53 | # compile compile a source file into a libtool object |
2822 | 51 | # execute automatically set library path, then run a program | 54 | # execute automatically set library path, then run a program |
2823 | 52 | # finish complete the installation of libtool libraries | 55 | # finish complete the installation of libtool libraries |
2824 | 53 | # install install libraries or executables | 56 | # install install libraries or executables |
2825 | 54 | # link create a library or an executable | 57 | # link create a library or an executable |
2826 | 55 | # uninstall remove libraries from an installed directory | 58 | # uninstall remove libraries from an installed directory |
2827 | 56 | # | 59 | # |
2829 | 57 | # MODE-ARGS vary depending on the MODE. | 60 | # MODE-ARGS vary depending on the MODE. When passed as first option, |
2830 | 61 | # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. | ||
2831 | 58 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. | 62 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. |
2832 | 59 | # | 63 | # |
2833 | 60 | # When reporting a bug, please describe a test case to reproduce it and | 64 | # When reporting a bug, please describe a test case to reproduce it and |
2834 | 61 | # include the following information: | 65 | # include the following information: |
2835 | 62 | # | 66 | # |
2844 | 63 | # host-triplet: $host | 67 | # host-triplet: $host |
2845 | 64 | # shell: $SHELL | 68 | # shell: $SHELL |
2846 | 65 | # compiler: $LTCC | 69 | # compiler: $LTCC |
2847 | 66 | # compiler flags: $LTCFLAGS | 70 | # compiler flags: $LTCFLAGS |
2848 | 67 | # linker: $LD (gnu? $with_gnu_ld) | 71 | # linker: $LD (gnu? $with_gnu_ld) |
2849 | 68 | # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu3 | 72 | # $progname: (GNU libtool) 2.4 Debian-2.4-2ubuntu1 |
2850 | 69 | # automake: $automake_version | 73 | # automake: $automake_version |
2851 | 70 | # autoconf: $autoconf_version | 74 | # autoconf: $autoconf_version |
2852 | 71 | # | 75 | # |
2853 | 72 | # Report bugs to <bug-libtool@gnu.org>. | 76 | # Report bugs to <bug-libtool@gnu.org>. |
2854 | 77 | # GNU libtool home page: <http://www.gnu.org/software/libtool/>. | ||
2855 | 78 | # General help using GNU software: <http://www.gnu.org/gethelp/>. | ||
2856 | 73 | 79 | ||
2858 | 74 | PROGRAM=ltmain.sh | 80 | PROGRAM=libtool |
2859 | 75 | PACKAGE=libtool | 81 | PACKAGE=libtool |
2861 | 76 | VERSION="2.2.6b Debian-2.2.6b-2ubuntu3" | 82 | VERSION="2.4 Debian-2.4-2ubuntu1" |
2862 | 77 | TIMESTAMP="" | 83 | TIMESTAMP="" |
2864 | 78 | package_revision=1.3017 | 84 | package_revision=1.3293 |
2865 | 79 | 85 | ||
2866 | 80 | # Be Bourne compatible | 86 | # Be Bourne compatible |
2867 | 81 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 87 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
2868 | @@ -91,10 +97,15 @@ | |||
2869 | 91 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 97 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
2870 | 92 | DUALCASE=1; export DUALCASE # for MKS sh | 98 | DUALCASE=1; export DUALCASE # for MKS sh |
2871 | 93 | 99 | ||
2872 | 100 | # A function that is used when there is no print builtin or printf. | ||
2873 | 101 | func_fallback_echo () | ||
2874 | 102 | { | ||
2875 | 103 | eval 'cat <<_LTECHO_EOF | ||
2876 | 104 | $1 | ||
2877 | 105 | _LTECHO_EOF' | ||
2878 | 106 | } | ||
2879 | 107 | |||
2880 | 94 | # NLS nuisances: We save the old values to restore during execute mode. | 108 | # NLS nuisances: We save the old values to restore during execute mode. |
2881 | 95 | # Only set LANG and LC_ALL to C if already set. | ||
2882 | 96 | # These must not be set unconditionally because not all systems understand | ||
2883 | 97 | # e.g. LANG=C (notably SCO). | ||
2884 | 98 | lt_user_locale= | 109 | lt_user_locale= |
2885 | 99 | lt_safe_locale= | 110 | lt_safe_locale= |
2886 | 100 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | 111 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES |
2887 | @@ -107,15 +118,24 @@ | |||
2888 | 107 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" | 118 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" |
2889 | 108 | fi" | 119 | fi" |
2890 | 109 | done | 120 | done |
2891 | 121 | LC_ALL=C | ||
2892 | 122 | LANGUAGE=C | ||
2893 | 123 | export LANGUAGE LC_ALL | ||
2894 | 110 | 124 | ||
2895 | 111 | $lt_unset CDPATH | 125 | $lt_unset CDPATH |
2896 | 112 | 126 | ||
2897 | 113 | 127 | ||
2898 | 128 | # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | ||
2899 | 129 | # is ksh but when the shell is invoked as "sh" and the current value of | ||
2900 | 130 | # the _XPG environment variable is not equal to 1 (one), the special | ||
2901 | 131 | # positional parameter $0, within a function call, is the name of the | ||
2902 | 132 | # function. | ||
2903 | 133 | progpath="$0" | ||
2904 | 114 | 134 | ||
2905 | 115 | 135 | ||
2906 | 116 | 136 | ||
2907 | 117 | : ${CP="cp -f"} | 137 | : ${CP="cp -f"} |
2909 | 118 | : ${ECHO="echo"} | 138 | test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} |
2910 | 119 | : ${EGREP="/bin/grep -E"} | 139 | : ${EGREP="/bin/grep -E"} |
2911 | 120 | : ${FGREP="/bin/grep -F"} | 140 | : ${FGREP="/bin/grep -F"} |
2912 | 121 | : ${GREP="/bin/grep"} | 141 | : ${GREP="/bin/grep"} |
2913 | @@ -144,6 +164,27 @@ | |||
2914 | 144 | dirname="s,/[^/]*$,," | 164 | dirname="s,/[^/]*$,," |
2915 | 145 | basename="s,^.*/,," | 165 | basename="s,^.*/,," |
2916 | 146 | 166 | ||
2917 | 167 | # func_dirname file append nondir_replacement | ||
2918 | 168 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | ||
2919 | 169 | # otherwise set result to NONDIR_REPLACEMENT. | ||
2920 | 170 | func_dirname () | ||
2921 | 171 | { | ||
2922 | 172 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | ||
2923 | 173 | if test "X$func_dirname_result" = "X${1}"; then | ||
2924 | 174 | func_dirname_result="${3}" | ||
2925 | 175 | else | ||
2926 | 176 | func_dirname_result="$func_dirname_result${2}" | ||
2927 | 177 | fi | ||
2928 | 178 | } # func_dirname may be replaced by extended shell implementation | ||
2929 | 179 | |||
2930 | 180 | |||
2931 | 181 | # func_basename file | ||
2932 | 182 | func_basename () | ||
2933 | 183 | { | ||
2934 | 184 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | ||
2935 | 185 | } # func_basename may be replaced by extended shell implementation | ||
2936 | 186 | |||
2937 | 187 | |||
2938 | 147 | # func_dirname_and_basename file append nondir_replacement | 188 | # func_dirname_and_basename file append nondir_replacement |
2939 | 148 | # perform func_basename and func_dirname in a single function | 189 | # perform func_basename and func_dirname in a single function |
2940 | 149 | # call: | 190 | # call: |
2941 | @@ -158,33 +199,183 @@ | |||
2942 | 158 | # those functions but instead duplicate the functionality here. | 199 | # those functions but instead duplicate the functionality here. |
2943 | 159 | func_dirname_and_basename () | 200 | func_dirname_and_basename () |
2944 | 160 | { | 201 | { |
2963 | 161 | # Extract subdirectory from the argument. | 202 | # Extract subdirectory from the argument. |
2964 | 162 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | 203 | func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` |
2965 | 163 | if test "X$func_dirname_result" = "X${1}"; then | 204 | if test "X$func_dirname_result" = "X${1}"; then |
2966 | 164 | func_dirname_result="${3}" | 205 | func_dirname_result="${3}" |
2967 | 165 | else | 206 | else |
2968 | 166 | func_dirname_result="$func_dirname_result${2}" | 207 | func_dirname_result="$func_dirname_result${2}" |
2969 | 167 | fi | 208 | fi |
2970 | 168 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | 209 | func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` |
2971 | 169 | } | 210 | } # func_dirname_and_basename may be replaced by extended shell implementation |
2972 | 170 | 211 | ||
2973 | 171 | # Generated shell functions inserted here. | 212 | |
2974 | 172 | 213 | # func_stripname prefix suffix name | |
2975 | 173 | # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | 214 | # strip PREFIX and SUFFIX off of NAME. |
2976 | 174 | # is ksh but when the shell is invoked as "sh" and the current value of | 215 | # PREFIX and SUFFIX must not contain globbing or regex special |
2977 | 175 | # the _XPG environment variable is not equal to 1 (one), the special | 216 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
2978 | 176 | # positional parameter $0, within a function call, is the name of the | 217 | # dot (in which case that matches only a dot). |
2979 | 177 | # function. | 218 | # func_strip_suffix prefix name |
2980 | 178 | progpath="$0" | 219 | func_stripname () |
2981 | 220 | { | ||
2982 | 221 | case ${2} in | ||
2983 | 222 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | ||
2984 | 223 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | ||
2985 | 224 | esac | ||
2986 | 225 | } # func_stripname may be replaced by extended shell implementation | ||
2987 | 226 | |||
2988 | 227 | |||
2989 | 228 | # These SED scripts presuppose an absolute path with a trailing slash. | ||
2990 | 229 | pathcar='s,^/\([^/]*\).*$,\1,' | ||
2991 | 230 | pathcdr='s,^/[^/]*,,' | ||
2992 | 231 | removedotparts=':dotsl | ||
2993 | 232 | s@/\./@/@g | ||
2994 | 233 | t dotsl | ||
2995 | 234 | s,/\.$,/,' | ||
2996 | 235 | collapseslashes='s@/\{1,\}@/@g' | ||
2997 | 236 | finalslash='s,/*$,/,' | ||
2998 | 237 | |||
2999 | 238 | # func_normal_abspath PATH | ||
3000 | 239 | # Remove doubled-up and trailing slashes, "." path components, | ||
3001 | 240 | # and cancel out any ".." path components in PATH after making | ||
3002 | 241 | # it an absolute path. | ||
3003 | 242 | # value returned in "$func_normal_abspath_result" | ||
3004 | 243 | func_normal_abspath () | ||
3005 | 244 | { | ||
3006 | 245 | # Start from root dir and reassemble the path. | ||
3007 | 246 | func_normal_abspath_result= | ||
3008 | 247 | func_normal_abspath_tpath=$1 | ||
3009 | 248 | func_normal_abspath_altnamespace= | ||
3010 | 249 | case $func_normal_abspath_tpath in | ||
3011 | 250 | "") | ||
3012 | 251 | # Empty path, that just means $cwd. | ||
3013 | 252 | func_stripname '' '/' "`pwd`" | ||
3014 | 253 | func_normal_abspath_result=$func_stripname_result | ||
3015 | 254 | return | ||
3016 | 255 | ;; | ||
3017 | 256 | # The next three entries are used to spot a run of precisely | ||
3018 | 257 | # two leading slashes without using negated character classes; | ||
3019 | 258 | # we take advantage of case's first-match behaviour. | ||
3020 | 259 | ///*) | ||
3021 | 260 | # Unusual form of absolute path, do nothing. | ||
3022 | 261 | ;; | ||
3023 | 262 | //*) | ||
3024 | 263 | # Not necessarily an ordinary path; POSIX reserves leading '//' | ||
3025 | 264 | # and for example Cygwin uses it to access remote file shares | ||
3026 | 265 | # over CIFS/SMB, so we conserve a leading double slash if found. | ||
3027 | 266 | func_normal_abspath_altnamespace=/ | ||
3028 | 267 | ;; | ||
3029 | 268 | /*) | ||
3030 | 269 | # Absolute path, do nothing. | ||
3031 | 270 | ;; | ||
3032 | 271 | *) | ||
3033 | 272 | # Relative path, prepend $cwd. | ||
3034 | 273 | func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath | ||
3035 | 274 | ;; | ||
3036 | 275 | esac | ||
3037 | 276 | # Cancel out all the simple stuff to save iterations. We also want | ||
3038 | 277 | # the path to end with a slash for ease of parsing, so make sure | ||
3039 | 278 | # there is one (and only one) here. | ||
3040 | 279 | func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ | ||
3041 | 280 | -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` | ||
3042 | 281 | while :; do | ||
3043 | 282 | # Processed it all yet? | ||
3044 | 283 | if test "$func_normal_abspath_tpath" = / ; then | ||
3045 | 284 | # If we ascended to the root using ".." the result may be empty now. | ||
3046 | 285 | if test -z "$func_normal_abspath_result" ; then | ||
3047 | 286 | func_normal_abspath_result=/ | ||
3048 | 287 | fi | ||
3049 | 288 | break | ||
3050 | 289 | fi | ||
3051 | 290 | func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ | ||
3052 | 291 | -e "$pathcar"` | ||
3053 | 292 | func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ | ||
3054 | 293 | -e "$pathcdr"` | ||
3055 | 294 | # Figure out what to do with it | ||
3056 | 295 | case $func_normal_abspath_tcomponent in | ||
3057 | 296 | "") | ||
3058 | 297 | # Trailing empty path component, ignore it. | ||
3059 | 298 | ;; | ||
3060 | 299 | ..) | ||
3061 | 300 | # Parent dir; strip last assembled component from result. | ||
3062 | 301 | func_dirname "$func_normal_abspath_result" | ||
3063 | 302 | func_normal_abspath_result=$func_dirname_result | ||
3064 | 303 | ;; | ||
3065 | 304 | *) | ||
3066 | 305 | # Actual path component, append it. | ||
3067 | 306 | func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent | ||
3068 | 307 | ;; | ||
3069 | 308 | esac | ||
3070 | 309 | done | ||
3071 | 310 | # Restore leading double-slash if one was found on entry. | ||
3072 | 311 | func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result | ||
3073 | 312 | } | ||
3074 | 313 | |||
3075 | 314 | # func_relative_path SRCDIR DSTDIR | ||
3076 | 315 | # generates a relative path from SRCDIR to DSTDIR, with a trailing | ||
3077 | 316 | # slash if non-empty, suitable for immediately appending a filename | ||
3078 | 317 | # without needing to append a separator. | ||
3079 | 318 | # value returned in "$func_relative_path_result" | ||
3080 | 319 | func_relative_path () | ||
3081 | 320 | { | ||
3082 | 321 | func_relative_path_result= | ||
3083 | 322 | func_normal_abspath "$1" | ||
3084 | 323 | func_relative_path_tlibdir=$func_normal_abspath_result | ||
3085 | 324 | func_normal_abspath "$2" | ||
3086 | 325 | func_relative_path_tbindir=$func_normal_abspath_result | ||
3087 | 326 | |||
3088 | 327 | # Ascend the tree starting from libdir | ||
3089 | 328 | while :; do | ||
3090 | 329 | # check if we have found a prefix of bindir | ||
3091 | 330 | case $func_relative_path_tbindir in | ||
3092 | 331 | $func_relative_path_tlibdir) | ||
3093 | 332 | # found an exact match | ||
3094 | 333 | func_relative_path_tcancelled= | ||
3095 | 334 | break | ||
3096 | 335 | ;; | ||
3097 | 336 | $func_relative_path_tlibdir*) | ||
3098 | 337 | # found a matching prefix | ||
3099 | 338 | func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" | ||
3100 | 339 | func_relative_path_tcancelled=$func_stripname_result | ||
3101 | 340 | if test -z "$func_relative_path_result"; then | ||
3102 | 341 | func_relative_path_result=. | ||
3103 | 342 | fi | ||
3104 | 343 | break | ||
3105 | 344 | ;; | ||
3106 | 345 | *) | ||
3107 | 346 | func_dirname $func_relative_path_tlibdir | ||
3108 | 347 | func_relative_path_tlibdir=${func_dirname_result} | ||
3109 | 348 | if test "x$func_relative_path_tlibdir" = x ; then | ||
3110 | 349 | # Have to descend all the way to the root! | ||
3111 | 350 | func_relative_path_result=../$func_relative_path_result | ||
3112 | 351 | func_relative_path_tcancelled=$func_relative_path_tbindir | ||
3113 | 352 | break | ||
3114 | 353 | fi | ||
3115 | 354 | func_relative_path_result=../$func_relative_path_result | ||
3116 | 355 | ;; | ||
3117 | 356 | esac | ||
3118 | 357 | done | ||
3119 | 358 | |||
3120 | 359 | # Now calculate path; take care to avoid doubling-up slashes. | ||
3121 | 360 | func_stripname '' '/' "$func_relative_path_result" | ||
3122 | 361 | func_relative_path_result=$func_stripname_result | ||
3123 | 362 | func_stripname '/' '/' "$func_relative_path_tcancelled" | ||
3124 | 363 | if test "x$func_stripname_result" != x ; then | ||
3125 | 364 | func_relative_path_result=${func_relative_path_result}/${func_stripname_result} | ||
3126 | 365 | fi | ||
3127 | 366 | |||
3128 | 367 | # Normalisation. If bindir is libdir, return empty string, | ||
3129 | 368 | # else relative path ending with a slash; either way, target | ||
3130 | 369 | # file name can be directly appended. | ||
3131 | 370 | if test ! -z "$func_relative_path_result"; then | ||
3132 | 371 | func_stripname './' '' "$func_relative_path_result/" | ||
3133 | 372 | func_relative_path_result=$func_stripname_result | ||
3134 | 373 | fi | ||
3135 | 374 | } | ||
3136 | 179 | 375 | ||
3137 | 180 | # The name of this program: | 376 | # The name of this program: |
3138 | 181 | # In the unlikely event $progname began with a '-', it would play havoc with | ||
3139 | 182 | # func_echo (imagine progname=-n), so we prepend ./ in that case: | ||
3140 | 183 | func_dirname_and_basename "$progpath" | 377 | func_dirname_and_basename "$progpath" |
3141 | 184 | progname=$func_basename_result | 378 | progname=$func_basename_result |
3142 | 185 | case $progname in | ||
3143 | 186 | -*) progname=./$progname ;; | ||
3144 | 187 | esac | ||
3145 | 188 | 379 | ||
3146 | 189 | # Make sure we have an absolute path for reexecution: | 380 | # Make sure we have an absolute path for reexecution: |
3147 | 190 | case $progpath in | 381 | case $progpath in |
3148 | @@ -215,6 +406,15 @@ | |||
3149 | 215 | # Same as above, but do not quote variable references. | 406 | # Same as above, but do not quote variable references. |
3150 | 216 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | 407 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
3151 | 217 | 408 | ||
3152 | 409 | # Sed substitution that turns a string into a regex matching for the | ||
3153 | 410 | # string literally. | ||
3154 | 411 | sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' | ||
3155 | 412 | |||
3156 | 413 | # Sed substitution that converts a w32 file name or path | ||
3157 | 414 | # which contains forward slashes, into one that contains | ||
3158 | 415 | # (escaped) backslashes. A very naive implementation. | ||
3159 | 416 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | ||
3160 | 417 | |||
3161 | 218 | # Re-`\' parameter expansions in output of double_quote_subst that were | 418 | # Re-`\' parameter expansions in output of double_quote_subst that were |
3162 | 219 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' | 419 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' |
3163 | 220 | # in input to double_quote_subst, that '$' was protected from expansion. | 420 | # in input to double_quote_subst, that '$' was protected from expansion. |
3164 | @@ -243,7 +443,7 @@ | |||
3165 | 243 | # name if it has been set yet. | 443 | # name if it has been set yet. |
3166 | 244 | func_echo () | 444 | func_echo () |
3167 | 245 | { | 445 | { |
3169 | 246 | $ECHO "$progname${mode+: }$mode: $*" | 446 | $ECHO "$progname: ${opt_mode+$opt_mode: }$*" |
3170 | 247 | } | 447 | } |
3171 | 248 | 448 | ||
3172 | 249 | # func_verbose arg... | 449 | # func_verbose arg... |
3173 | @@ -258,18 +458,25 @@ | |||
3174 | 258 | : | 458 | : |
3175 | 259 | } | 459 | } |
3176 | 260 | 460 | ||
3177 | 461 | # func_echo_all arg... | ||
3178 | 462 | # Invoke $ECHO with all args, space-separated. | ||
3179 | 463 | func_echo_all () | ||
3180 | 464 | { | ||
3181 | 465 | $ECHO "$*" | ||
3182 | 466 | } | ||
3183 | 467 | |||
3184 | 261 | # func_error arg... | 468 | # func_error arg... |
3185 | 262 | # Echo program name prefixed message to standard error. | 469 | # Echo program name prefixed message to standard error. |
3186 | 263 | func_error () | 470 | func_error () |
3187 | 264 | { | 471 | { |
3189 | 265 | $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 | 472 | $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 |
3190 | 266 | } | 473 | } |
3191 | 267 | 474 | ||
3192 | 268 | # func_warning arg... | 475 | # func_warning arg... |
3193 | 269 | # Echo program name prefixed warning message to standard error. | 476 | # Echo program name prefixed warning message to standard error. |
3194 | 270 | func_warning () | 477 | func_warning () |
3195 | 271 | { | 478 | { |
3197 | 272 | $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 | 479 | $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 |
3198 | 273 | 480 | ||
3199 | 274 | # bash bug again: | 481 | # bash bug again: |
3200 | 275 | : | 482 | : |
3201 | @@ -326,9 +533,9 @@ | |||
3202 | 326 | case $my_directory_path in */*) ;; *) break ;; esac | 533 | case $my_directory_path in */*) ;; *) break ;; esac |
3203 | 327 | 534 | ||
3204 | 328 | # ...otherwise throw away the child directory and loop | 535 | # ...otherwise throw away the child directory and loop |
3206 | 329 | my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` | 536 | my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` |
3207 | 330 | done | 537 | done |
3209 | 331 | my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` | 538 | my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` |
3210 | 332 | 539 | ||
3211 | 333 | save_mkdir_p_IFS="$IFS"; IFS=':' | 540 | save_mkdir_p_IFS="$IFS"; IFS=':' |
3212 | 334 | for my_dir in $my_dir_list; do | 541 | for my_dir in $my_dir_list; do |
3213 | @@ -378,7 +585,7 @@ | |||
3214 | 378 | func_fatal_error "cannot create temporary directory \`$my_tmpdir'" | 585 | func_fatal_error "cannot create temporary directory \`$my_tmpdir'" |
3215 | 379 | fi | 586 | fi |
3216 | 380 | 587 | ||
3218 | 381 | $ECHO "X$my_tmpdir" | $Xsed | 588 | $ECHO "$my_tmpdir" |
3219 | 382 | } | 589 | } |
3220 | 383 | 590 | ||
3221 | 384 | 591 | ||
3222 | @@ -392,7 +599,7 @@ | |||
3223 | 392 | { | 599 | { |
3224 | 393 | case $1 in | 600 | case $1 in |
3225 | 394 | *[\\\`\"\$]*) | 601 | *[\\\`\"\$]*) |
3227 | 395 | func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; | 602 | func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; |
3228 | 396 | *) | 603 | *) |
3229 | 397 | func_quote_for_eval_unquoted_result="$1" ;; | 604 | func_quote_for_eval_unquoted_result="$1" ;; |
3230 | 398 | esac | 605 | esac |
3231 | @@ -419,7 +626,7 @@ | |||
3232 | 419 | { | 626 | { |
3233 | 420 | case $1 in | 627 | case $1 in |
3234 | 421 | *[\\\`\"]*) | 628 | *[\\\`\"]*) |
3236 | 422 | my_arg=`$ECHO "X$1" | $Xsed \ | 629 | my_arg=`$ECHO "$1" | $SED \ |
3237 | 423 | -e "$double_quote_subst" -e "$sed_double_backslash"` ;; | 630 | -e "$double_quote_subst" -e "$sed_double_backslash"` ;; |
3238 | 424 | *) | 631 | *) |
3239 | 425 | my_arg="$1" ;; | 632 | my_arg="$1" ;; |
3240 | @@ -488,15 +695,39 @@ | |||
3241 | 488 | fi | 695 | fi |
3242 | 489 | } | 696 | } |
3243 | 490 | 697 | ||
3246 | 491 | 698 | # func_tr_sh | |
3247 | 492 | 699 | # Turn $1 into a string suitable for a shell variable name. | |
3248 | 700 | # Result is stored in $func_tr_sh_result. All characters | ||
3249 | 701 | # not in the set a-zA-Z0-9_ are replaced with '_'. Further, | ||
3250 | 702 | # if $1 begins with a digit, a '_' is prepended as well. | ||
3251 | 703 | func_tr_sh () | ||
3252 | 704 | { | ||
3253 | 705 | case $1 in | ||
3254 | 706 | [0-9]* | *[!a-zA-Z0-9_]*) | ||
3255 | 707 | func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` | ||
3256 | 708 | ;; | ||
3257 | 709 | * ) | ||
3258 | 710 | func_tr_sh_result=$1 | ||
3259 | 711 | ;; | ||
3260 | 712 | esac | ||
3261 | 713 | } | ||
3262 | 493 | 714 | ||
3263 | 494 | 715 | ||
3264 | 495 | # func_version | 716 | # func_version |
3265 | 496 | # Echo version message to standard output and exit. | 717 | # Echo version message to standard output and exit. |
3266 | 497 | func_version () | 718 | func_version () |
3267 | 498 | { | 719 | { |
3269 | 499 | $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { | 720 | $opt_debug |
3270 | 721 | |||
3271 | 722 | $SED -n '/(C)/!b go | ||
3272 | 723 | :more | ||
3273 | 724 | /\./!{ | ||
3274 | 725 | N | ||
3275 | 726 | s/\n# / / | ||
3276 | 727 | b more | ||
3277 | 728 | } | ||
3278 | 729 | :go | ||
3279 | 730 | /^# '$PROGRAM' (GNU /,/# warranty; / { | ||
3280 | 500 | s/^# // | 731 | s/^# // |
3281 | 501 | s/^# *$// | 732 | s/^# *$// |
3282 | 502 | s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ | 733 | s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ |
3283 | @@ -509,22 +740,28 @@ | |||
3284 | 509 | # Echo short help message to standard output and exit. | 740 | # Echo short help message to standard output and exit. |
3285 | 510 | func_usage () | 741 | func_usage () |
3286 | 511 | { | 742 | { |
3288 | 512 | $SED -n '/^# Usage:/,/# -h/ { | 743 | $opt_debug |
3289 | 744 | |||
3290 | 745 | $SED -n '/^# Usage:/,/^# *.*--help/ { | ||
3291 | 513 | s/^# // | 746 | s/^# // |
3292 | 514 | s/^# *$// | 747 | s/^# *$// |
3293 | 515 | s/\$progname/'$progname'/ | 748 | s/\$progname/'$progname'/ |
3294 | 516 | p | 749 | p |
3295 | 517 | }' < "$progpath" | 750 | }' < "$progpath" |
3297 | 518 | $ECHO | 751 | echo |
3298 | 519 | $ECHO "run \`$progname --help | more' for full usage" | 752 | $ECHO "run \`$progname --help | more' for full usage" |
3299 | 520 | exit $? | 753 | exit $? |
3300 | 521 | } | 754 | } |
3301 | 522 | 755 | ||
3304 | 523 | # func_help | 756 | # func_help [NOEXIT] |
3305 | 524 | # Echo long help message to standard output and exit. | 757 | # Echo long help message to standard output and exit, |
3306 | 758 | # unless 'noexit' is passed as argument. | ||
3307 | 525 | func_help () | 759 | func_help () |
3308 | 526 | { | 760 | { |
3309 | 761 | $opt_debug | ||
3310 | 762 | |||
3311 | 527 | $SED -n '/^# Usage:/,/# Report bugs to/ { | 763 | $SED -n '/^# Usage:/,/# Report bugs to/ { |
3312 | 764 | |||
3313 | 528 | s/^# // | 765 | s/^# // |
3314 | 529 | s/^# *$// | 766 | s/^# *$// |
3315 | 530 | s*\$progname*'$progname'* | 767 | s*\$progname*'$progname'* |
3316 | @@ -537,8 +774,15 @@ | |||
3317 | 537 | s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ | 774 | s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ |
3318 | 538 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ | 775 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ |
3319 | 539 | p | 776 | p |
3322 | 540 | }' < "$progpath" | 777 | d |
3323 | 541 | exit $? | 778 | } |
3324 | 779 | /^# .* home page:/b print | ||
3325 | 780 | /^# General help using/b print | ||
3326 | 781 | ' < "$progpath" | ||
3327 | 782 | ret=$? | ||
3328 | 783 | if test -z "$1"; then | ||
3329 | 784 | exit $ret | ||
3330 | 785 | fi | ||
3331 | 542 | } | 786 | } |
3332 | 543 | 787 | ||
3333 | 544 | # func_missing_arg argname | 788 | # func_missing_arg argname |
3334 | @@ -546,63 +790,106 @@ | |||
3335 | 546 | # exit_cmd. | 790 | # exit_cmd. |
3336 | 547 | func_missing_arg () | 791 | func_missing_arg () |
3337 | 548 | { | 792 | { |
3339 | 549 | func_error "missing argument for $1" | 793 | $opt_debug |
3340 | 794 | |||
3341 | 795 | func_error "missing argument for $1." | ||
3342 | 550 | exit_cmd=exit | 796 | exit_cmd=exit |
3343 | 551 | } | 797 | } |
3344 | 552 | 798 | ||
3345 | 799 | |||
3346 | 800 | # func_split_short_opt shortopt | ||
3347 | 801 | # Set func_split_short_opt_name and func_split_short_opt_arg shell | ||
3348 | 802 | # variables after splitting SHORTOPT after the 2nd character. | ||
3349 | 803 | func_split_short_opt () | ||
3350 | 804 | { | ||
3351 | 805 | my_sed_short_opt='1s/^\(..\).*$/\1/;q' | ||
3352 | 806 | my_sed_short_rest='1s/^..\(.*\)$/\1/;q' | ||
3353 | 807 | |||
3354 | 808 | func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` | ||
3355 | 809 | func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` | ||
3356 | 810 | } # func_split_short_opt may be replaced by extended shell implementation | ||
3357 | 811 | |||
3358 | 812 | |||
3359 | 813 | # func_split_long_opt longopt | ||
3360 | 814 | # Set func_split_long_opt_name and func_split_long_opt_arg shell | ||
3361 | 815 | # variables after splitting LONGOPT at the `=' sign. | ||
3362 | 816 | func_split_long_opt () | ||
3363 | 817 | { | ||
3364 | 818 | my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' | ||
3365 | 819 | my_sed_long_arg='1s/^--[^=]*=//' | ||
3366 | 820 | |||
3367 | 821 | func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` | ||
3368 | 822 | func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` | ||
3369 | 823 | } # func_split_long_opt may be replaced by extended shell implementation | ||
3370 | 824 | |||
3371 | 553 | exit_cmd=: | 825 | exit_cmd=: |
3372 | 554 | 826 | ||
3373 | 555 | 827 | ||
3374 | 556 | 828 | ||
3375 | 557 | 829 | ||
3376 | 558 | 830 | ||
3377 | 559 | # Check that we have a working $ECHO. | ||
3378 | 560 | if test "X$1" = X--no-reexec; then | ||
3379 | 561 | # Discard the --no-reexec flag, and continue. | ||
3380 | 562 | shift | ||
3381 | 563 | elif test "X$1" = X--fallback-echo; then | ||
3382 | 564 | # Avoid inline document here, it may be left over | ||
3383 | 565 | : | ||
3384 | 566 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then | ||
3385 | 567 | # Yippee, $ECHO works! | ||
3386 | 568 | : | ||
3387 | 569 | else | ||
3388 | 570 | # Restart under the correct shell, and then maybe $ECHO will work. | ||
3389 | 571 | exec $SHELL "$progpath" --no-reexec ${1+"$@"} | ||
3390 | 572 | fi | ||
3391 | 573 | |||
3392 | 574 | if test "X$1" = X--fallback-echo; then | ||
3393 | 575 | # used as fallback echo | ||
3394 | 576 | shift | ||
3395 | 577 | cat <<EOF | ||
3396 | 578 | $* | ||
3397 | 579 | EOF | ||
3398 | 580 | exit $EXIT_SUCCESS | ||
3399 | 581 | fi | ||
3400 | 582 | |||
3401 | 583 | magic="%%%MAGIC variable%%%" | 831 | magic="%%%MAGIC variable%%%" |
3402 | 584 | magic_exe="%%%MAGIC EXE variable%%%" | 832 | magic_exe="%%%MAGIC EXE variable%%%" |
3403 | 585 | 833 | ||
3404 | 586 | # Global variables. | 834 | # Global variables. |
3405 | 587 | # $mode is unset | ||
3406 | 588 | nonopt= | 835 | nonopt= |
3407 | 589 | execute_dlfiles= | ||
3408 | 590 | preserve_args= | 836 | preserve_args= |
3409 | 591 | lo2o="s/\\.lo\$/.${objext}/" | 837 | lo2o="s/\\.lo\$/.${objext}/" |
3410 | 592 | o2lo="s/\\.${objext}\$/.lo/" | 838 | o2lo="s/\\.${objext}\$/.lo/" |
3411 | 593 | extracted_archives= | 839 | extracted_archives= |
3412 | 594 | extracted_serial=0 | 840 | extracted_serial=0 |
3413 | 595 | 841 | ||
3414 | 596 | opt_dry_run=false | ||
3415 | 597 | opt_duplicate_deps=false | ||
3416 | 598 | opt_silent=false | ||
3417 | 599 | opt_debug=: | ||
3418 | 600 | |||
3419 | 601 | # If this variable is set in any of the actions, the command in it | 842 | # If this variable is set in any of the actions, the command in it |
3420 | 602 | # will be execed at the end. This prevents here-documents from being | 843 | # will be execed at the end. This prevents here-documents from being |
3421 | 603 | # left over by shells. | 844 | # left over by shells. |
3422 | 604 | exec_cmd= | 845 | exec_cmd= |
3423 | 605 | 846 | ||
3424 | 847 | # func_append var value | ||
3425 | 848 | # Append VALUE to the end of shell variable VAR. | ||
3426 | 849 | func_append () | ||
3427 | 850 | { | ||
3428 | 851 | eval "${1}=\$${1}\${2}" | ||
3429 | 852 | } # func_append may be replaced by extended shell implementation | ||
3430 | 853 | |||
3431 | 854 | # func_append_quoted var value | ||
3432 | 855 | # Quote VALUE and append to the end of shell variable VAR, separated | ||
3433 | 856 | # by a space. | ||
3434 | 857 | func_append_quoted () | ||
3435 | 858 | { | ||
3436 | 859 | func_quote_for_eval "${2}" | ||
3437 | 860 | eval "${1}=\$${1}\\ \$func_quote_for_eval_result" | ||
3438 | 861 | } # func_append_quoted may be replaced by extended shell implementation | ||
3439 | 862 | |||
3440 | 863 | |||
3441 | 864 | # func_arith arithmetic-term... | ||
3442 | 865 | func_arith () | ||
3443 | 866 | { | ||
3444 | 867 | func_arith_result=`expr "${@}"` | ||
3445 | 868 | } # func_arith may be replaced by extended shell implementation | ||
3446 | 869 | |||
3447 | 870 | |||
3448 | 871 | # func_len string | ||
3449 | 872 | # STRING may not start with a hyphen. | ||
3450 | 873 | func_len () | ||
3451 | 874 | { | ||
3452 | 875 | func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` | ||
3453 | 876 | } # func_len may be replaced by extended shell implementation | ||
3454 | 877 | |||
3455 | 878 | |||
3456 | 879 | # func_lo2o object | ||
3457 | 880 | func_lo2o () | ||
3458 | 881 | { | ||
3459 | 882 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | ||
3460 | 883 | } # func_lo2o may be replaced by extended shell implementation | ||
3461 | 884 | |||
3462 | 885 | |||
3463 | 886 | # func_xform libobj-or-source | ||
3464 | 887 | func_xform () | ||
3465 | 888 | { | ||
3466 | 889 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | ||
3467 | 890 | } # func_xform may be replaced by extended shell implementation | ||
3468 | 891 | |||
3469 | 892 | |||
3470 | 606 | # func_fatal_configuration arg... | 893 | # func_fatal_configuration arg... |
3471 | 607 | # Echo program name prefixed message to standard error, followed by | 894 | # Echo program name prefixed message to standard error, followed by |
3472 | 608 | # a configuration failure hint, and exit. | 895 | # a configuration failure hint, and exit. |
3473 | @@ -636,16 +923,16 @@ | |||
3474 | 636 | # Display the features supported by this script. | 923 | # Display the features supported by this script. |
3475 | 637 | func_features () | 924 | func_features () |
3476 | 638 | { | 925 | { |
3478 | 639 | $ECHO "host: $host" | 926 | echo "host: $host" |
3479 | 640 | if test "$build_libtool_libs" = yes; then | 927 | if test "$build_libtool_libs" = yes; then |
3481 | 641 | $ECHO "enable shared libraries" | 928 | echo "enable shared libraries" |
3482 | 642 | else | 929 | else |
3484 | 643 | $ECHO "disable shared libraries" | 930 | echo "disable shared libraries" |
3485 | 644 | fi | 931 | fi |
3486 | 645 | if test "$build_old_libs" = yes; then | 932 | if test "$build_old_libs" = yes; then |
3488 | 646 | $ECHO "enable static libraries" | 933 | echo "enable static libraries" |
3489 | 647 | else | 934 | else |
3491 | 648 | $ECHO "disable static libraries" | 935 | echo "disable static libraries" |
3492 | 649 | fi | 936 | fi |
3493 | 650 | 937 | ||
3494 | 651 | exit $? | 938 | exit $? |
3495 | @@ -692,133 +979,6 @@ | |||
3496 | 692 | esac | 979 | esac |
3497 | 693 | } | 980 | } |
3498 | 694 | 981 | ||
3499 | 695 | # Parse options once, thoroughly. This comes as soon as possible in | ||
3500 | 696 | # the script to make things like `libtool --version' happen quickly. | ||
3501 | 697 | { | ||
3502 | 698 | |||
3503 | 699 | # Shorthand for --mode=foo, only valid as the first argument | ||
3504 | 700 | case $1 in | ||
3505 | 701 | clean|clea|cle|cl) | ||
3506 | 702 | shift; set dummy --mode clean ${1+"$@"}; shift | ||
3507 | 703 | ;; | ||
3508 | 704 | compile|compil|compi|comp|com|co|c) | ||
3509 | 705 | shift; set dummy --mode compile ${1+"$@"}; shift | ||
3510 | 706 | ;; | ||
3511 | 707 | execute|execut|execu|exec|exe|ex|e) | ||
3512 | 708 | shift; set dummy --mode execute ${1+"$@"}; shift | ||
3513 | 709 | ;; | ||
3514 | 710 | finish|finis|fini|fin|fi|f) | ||
3515 | 711 | shift; set dummy --mode finish ${1+"$@"}; shift | ||
3516 | 712 | ;; | ||
3517 | 713 | install|instal|insta|inst|ins|in|i) | ||
3518 | 714 | shift; set dummy --mode install ${1+"$@"}; shift | ||
3519 | 715 | ;; | ||
3520 | 716 | link|lin|li|l) | ||
3521 | 717 | shift; set dummy --mode link ${1+"$@"}; shift | ||
3522 | 718 | ;; | ||
3523 | 719 | uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | ||
3524 | 720 | shift; set dummy --mode uninstall ${1+"$@"}; shift | ||
3525 | 721 | ;; | ||
3526 | 722 | esac | ||
3527 | 723 | |||
3528 | 724 | # Parse non-mode specific arguments: | ||
3529 | 725 | while test "$#" -gt 0; do | ||
3530 | 726 | opt="$1" | ||
3531 | 727 | shift | ||
3532 | 728 | |||
3533 | 729 | case $opt in | ||
3534 | 730 | --config) func_config ;; | ||
3535 | 731 | |||
3536 | 732 | --debug) preserve_args="$preserve_args $opt" | ||
3537 | 733 | func_echo "enabling shell trace mode" | ||
3538 | 734 | opt_debug='set -x' | ||
3539 | 735 | $opt_debug | ||
3540 | 736 | ;; | ||
3541 | 737 | |||
3542 | 738 | -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
3543 | 739 | execute_dlfiles="$execute_dlfiles $1" | ||
3544 | 740 | shift | ||
3545 | 741 | ;; | ||
3546 | 742 | |||
3547 | 743 | --dry-run | -n) opt_dry_run=: ;; | ||
3548 | 744 | --features) func_features ;; | ||
3549 | 745 | --finish) mode="finish" ;; | ||
3550 | 746 | |||
3551 | 747 | --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
3552 | 748 | case $1 in | ||
3553 | 749 | # Valid mode arguments: | ||
3554 | 750 | clean) ;; | ||
3555 | 751 | compile) ;; | ||
3556 | 752 | execute) ;; | ||
3557 | 753 | finish) ;; | ||
3558 | 754 | install) ;; | ||
3559 | 755 | link) ;; | ||
3560 | 756 | relink) ;; | ||
3561 | 757 | uninstall) ;; | ||
3562 | 758 | |||
3563 | 759 | # Catch anything else as an error | ||
3564 | 760 | *) func_error "invalid argument for $opt" | ||
3565 | 761 | exit_cmd=exit | ||
3566 | 762 | break | ||
3567 | 763 | ;; | ||
3568 | 764 | esac | ||
3569 | 765 | |||
3570 | 766 | mode="$1" | ||
3571 | 767 | shift | ||
3572 | 768 | ;; | ||
3573 | 769 | |||
3574 | 770 | --preserve-dup-deps) | ||
3575 | 771 | opt_duplicate_deps=: ;; | ||
3576 | 772 | |||
3577 | 773 | --quiet|--silent) preserve_args="$preserve_args $opt" | ||
3578 | 774 | opt_silent=: | ||
3579 | 775 | ;; | ||
3580 | 776 | |||
3581 | 777 | --verbose| -v) preserve_args="$preserve_args $opt" | ||
3582 | 778 | opt_silent=false | ||
3583 | 779 | ;; | ||
3584 | 780 | |||
3585 | 781 | --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break | ||
3586 | 782 | preserve_args="$preserve_args $opt $1" | ||
3587 | 783 | func_enable_tag "$1" # tagname is set here | ||
3588 | 784 | shift | ||
3589 | 785 | ;; | ||
3590 | 786 | |||
3591 | 787 | # Separate optargs to long options: | ||
3592 | 788 | -dlopen=*|--mode=*|--tag=*) | ||
3593 | 789 | func_opt_split "$opt" | ||
3594 | 790 | set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} | ||
3595 | 791 | shift | ||
3596 | 792 | ;; | ||
3597 | 793 | |||
3598 | 794 | -\?|-h) func_usage ;; | ||
3599 | 795 | --help) opt_help=: ;; | ||
3600 | 796 | --version) func_version ;; | ||
3601 | 797 | |||
3602 | 798 | -*) func_fatal_help "unrecognized option \`$opt'" ;; | ||
3603 | 799 | |||
3604 | 800 | *) nonopt="$opt" | ||
3605 | 801 | break | ||
3606 | 802 | ;; | ||
3607 | 803 | esac | ||
3608 | 804 | done | ||
3609 | 805 | |||
3610 | 806 | |||
3611 | 807 | case $host in | ||
3612 | 808 | *cygwin* | *mingw* | *pw32* | *cegcc*) | ||
3613 | 809 | # don't eliminate duplications in $postdeps and $predeps | ||
3614 | 810 | opt_duplicate_compiler_generated_deps=: | ||
3615 | 811 | ;; | ||
3616 | 812 | *) | ||
3617 | 813 | opt_duplicate_compiler_generated_deps=$opt_duplicate_deps | ||
3618 | 814 | ;; | ||
3619 | 815 | esac | ||
3620 | 816 | |||
3621 | 817 | # Having warned about all mis-specified options, bail out if | ||
3622 | 818 | # anything was wrong. | ||
3623 | 819 | $exit_cmd $EXIT_FAILURE | ||
3624 | 820 | } | ||
3625 | 821 | |||
3626 | 822 | # func_check_version_match | 982 | # func_check_version_match |
3627 | 823 | # Ensure that we are using m4 macros, and libtool script from the same | 983 | # Ensure that we are using m4 macros, and libtool script from the same |
3628 | 824 | # release of libtool. | 984 | # release of libtool. |
3629 | @@ -855,38 +1015,214 @@ | |||
3630 | 855 | } | 1015 | } |
3631 | 856 | 1016 | ||
3632 | 857 | 1017 | ||
3633 | 1018 | # Shorthand for --mode=foo, only valid as the first argument | ||
3634 | 1019 | case $1 in | ||
3635 | 1020 | clean|clea|cle|cl) | ||
3636 | 1021 | shift; set dummy --mode clean ${1+"$@"}; shift | ||
3637 | 1022 | ;; | ||
3638 | 1023 | compile|compil|compi|comp|com|co|c) | ||
3639 | 1024 | shift; set dummy --mode compile ${1+"$@"}; shift | ||
3640 | 1025 | ;; | ||
3641 | 1026 | execute|execut|execu|exec|exe|ex|e) | ||
3642 | 1027 | shift; set dummy --mode execute ${1+"$@"}; shift | ||
3643 | 1028 | ;; | ||
3644 | 1029 | finish|finis|fini|fin|fi|f) | ||
3645 | 1030 | shift; set dummy --mode finish ${1+"$@"}; shift | ||
3646 | 1031 | ;; | ||
3647 | 1032 | install|instal|insta|inst|ins|in|i) | ||
3648 | 1033 | shift; set dummy --mode install ${1+"$@"}; shift | ||
3649 | 1034 | ;; | ||
3650 | 1035 | link|lin|li|l) | ||
3651 | 1036 | shift; set dummy --mode link ${1+"$@"}; shift | ||
3652 | 1037 | ;; | ||
3653 | 1038 | uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | ||
3654 | 1039 | shift; set dummy --mode uninstall ${1+"$@"}; shift | ||
3655 | 1040 | ;; | ||
3656 | 1041 | esac | ||
3657 | 1042 | |||
3658 | 1043 | |||
3659 | 1044 | |||
3660 | 1045 | # Option defaults: | ||
3661 | 1046 | opt_debug=: | ||
3662 | 1047 | opt_dry_run=false | ||
3663 | 1048 | opt_config=false | ||
3664 | 1049 | opt_preserve_dup_deps=false | ||
3665 | 1050 | opt_features=false | ||
3666 | 1051 | opt_finish=false | ||
3667 | 1052 | opt_help=false | ||
3668 | 1053 | opt_help_all=false | ||
3669 | 1054 | opt_silent=: | ||
3670 | 1055 | opt_verbose=: | ||
3671 | 1056 | opt_silent=false | ||
3672 | 1057 | opt_verbose=false | ||
3673 | 1058 | |||
3674 | 1059 | |||
3675 | 1060 | # Parse options once, thoroughly. This comes as soon as possible in the | ||
3676 | 1061 | # script to make things like `--version' happen as quickly as we can. | ||
3677 | 1062 | { | ||
3678 | 1063 | # this just eases exit handling | ||
3679 | 1064 | while test $# -gt 0; do | ||
3680 | 1065 | opt="$1" | ||
3681 | 1066 | shift | ||
3682 | 1067 | case $opt in | ||
3683 | 1068 | --debug|-x) opt_debug='set -x' | ||
3684 | 1069 | func_echo "enabling shell trace mode" | ||
3685 | 1070 | $opt_debug | ||
3686 | 1071 | ;; | ||
3687 | 1072 | --dry-run|--dryrun|-n) | ||
3688 | 1073 | opt_dry_run=: | ||
3689 | 1074 | ;; | ||
3690 | 1075 | --config) | ||
3691 | 1076 | opt_config=: | ||
3692 | 1077 | func_config | ||
3693 | 1078 | ;; | ||
3694 | 1079 | --dlopen|-dlopen) | ||
3695 | 1080 | optarg="$1" | ||
3696 | 1081 | opt_dlopen="${opt_dlopen+$opt_dlopen | ||
3697 | 1082 | }$optarg" | ||
3698 | 1083 | shift | ||
3699 | 1084 | ;; | ||
3700 | 1085 | --preserve-dup-deps) | ||
3701 | 1086 | opt_preserve_dup_deps=: | ||
3702 | 1087 | ;; | ||
3703 | 1088 | --features) | ||
3704 | 1089 | opt_features=: | ||
3705 | 1090 | func_features | ||
3706 | 1091 | ;; | ||
3707 | 1092 | --finish) | ||
3708 | 1093 | opt_finish=: | ||
3709 | 1094 | set dummy --mode finish ${1+"$@"}; shift | ||
3710 | 1095 | ;; | ||
3711 | 1096 | --help) | ||
3712 | 1097 | opt_help=: | ||
3713 | 1098 | ;; | ||
3714 | 1099 | --help-all) | ||
3715 | 1100 | opt_help_all=: | ||
3716 | 1101 | opt_help=': help-all' | ||
3717 | 1102 | ;; | ||
3718 | 1103 | --mode) | ||
3719 | 1104 | test $# = 0 && func_missing_arg $opt && break | ||
3720 | 1105 | optarg="$1" | ||
3721 | 1106 | opt_mode="$optarg" | ||
3722 | 1107 | case $optarg in | ||
3723 | 1108 | # Valid mode arguments: | ||
3724 | 1109 | clean|compile|execute|finish|install|link|relink|uninstall) ;; | ||
3725 | 1110 | |||
3726 | 1111 | # Catch anything else as an error | ||
3727 | 1112 | *) func_error "invalid argument for $opt" | ||
3728 | 1113 | exit_cmd=exit | ||
3729 | 1114 | break | ||
3730 | 1115 | ;; | ||
3731 | 1116 | esac | ||
3732 | 1117 | shift | ||
3733 | 1118 | ;; | ||
3734 | 1119 | --no-silent|--no-quiet) | ||
3735 | 1120 | opt_silent=false | ||
3736 | 1121 | func_append preserve_args " $opt" | ||
3737 | 1122 | ;; | ||
3738 | 1123 | --no-verbose) | ||
3739 | 1124 | opt_verbose=false | ||
3740 | 1125 | func_append preserve_args " $opt" | ||
3741 | 1126 | ;; | ||
3742 | 1127 | --silent|--quiet) | ||
3743 | 1128 | opt_silent=: | ||
3744 | 1129 | func_append preserve_args " $opt" | ||
3745 | 1130 | opt_verbose=false | ||
3746 | 1131 | ;; | ||
3747 | 1132 | --verbose|-v) | ||
3748 | 1133 | opt_verbose=: | ||
3749 | 1134 | func_append preserve_args " $opt" | ||
3750 | 1135 | opt_silent=false | ||
3751 | 1136 | ;; | ||
3752 | 1137 | --tag) | ||
3753 | 1138 | test $# = 0 && func_missing_arg $opt && break | ||
3754 | 1139 | optarg="$1" | ||
3755 | 1140 | opt_tag="$optarg" | ||
3756 | 1141 | func_append preserve_args " $opt $optarg" | ||
3757 | 1142 | func_enable_tag "$optarg" | ||
3758 | 1143 | shift | ||
3759 | 1144 | ;; | ||
3760 | 1145 | |||
3761 | 1146 | -\?|-h) func_usage ;; | ||
3762 | 1147 | --help) func_help ;; | ||
3763 | 1148 | --version) func_version ;; | ||
3764 | 1149 | |||
3765 | 1150 | # Separate optargs to long options: | ||
3766 | 1151 | --*=*) | ||
3767 | 1152 | func_split_long_opt "$opt" | ||
3768 | 1153 | set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} | ||
3769 | 1154 | shift | ||
3770 | 1155 | ;; | ||
3771 | 1156 | |||
3772 | 1157 | # Separate non-argument short options: | ||
3773 | 1158 | -\?*|-h*|-n*|-v*) | ||
3774 | 1159 | func_split_short_opt "$opt" | ||
3775 | 1160 | set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} | ||
3776 | 1161 | shift | ||
3777 | 1162 | ;; | ||
3778 | 1163 | |||
3779 | 1164 | --) break ;; | ||
3780 | 1165 | -*) func_fatal_help "unrecognized option \`$opt'" ;; | ||
3781 | 1166 | *) set dummy "$opt" ${1+"$@"}; shift; break ;; | ||
3782 | 1167 | esac | ||
3783 | 1168 | done | ||
3784 | 1169 | |||
3785 | 1170 | # Validate options: | ||
3786 | 1171 | |||
3787 | 1172 | # save first non-option argument | ||
3788 | 1173 | if test "$#" -gt 0; then | ||
3789 | 1174 | nonopt="$opt" | ||
3790 | 1175 | shift | ||
3791 | 1176 | fi | ||
3792 | 1177 | |||
3793 | 1178 | # preserve --debug | ||
3794 | 1179 | test "$opt_debug" = : || func_append preserve_args " --debug" | ||
3795 | 1180 | |||
3796 | 1181 | case $host in | ||
3797 | 1182 | *cygwin* | *mingw* | *pw32* | *cegcc*) | ||
3798 | 1183 | # don't eliminate duplications in $postdeps and $predeps | ||
3799 | 1184 | opt_duplicate_compiler_generated_deps=: | ||
3800 | 1185 | ;; | ||
3801 | 1186 | *) | ||
3802 | 1187 | opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps | ||
3803 | 1188 | ;; | ||
3804 | 1189 | esac | ||
3805 | 1190 | |||
3806 | 1191 | $opt_help || { | ||
3807 | 1192 | # Sanity checks first: | ||
3808 | 1193 | func_check_version_match | ||
3809 | 1194 | |||
3810 | 1195 | if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | ||
3811 | 1196 | func_fatal_configuration "not configured to build any kind of library" | ||
3812 | 1197 | fi | ||
3813 | 1198 | |||
3814 | 1199 | # Darwin sucks | ||
3815 | 1200 | eval std_shrext=\"$shrext_cmds\" | ||
3816 | 1201 | |||
3817 | 1202 | # Only execute mode is allowed to have -dlopen flags. | ||
3818 | 1203 | if test -n "$opt_dlopen" && test "$opt_mode" != execute; then | ||
3819 | 1204 | func_error "unrecognized option \`-dlopen'" | ||
3820 | 1205 | $ECHO "$help" 1>&2 | ||
3821 | 1206 | exit $EXIT_FAILURE | ||
3822 | 1207 | fi | ||
3823 | 1208 | |||
3824 | 1209 | # Change the help message to a mode-specific one. | ||
3825 | 1210 | generic_help="$help" | ||
3826 | 1211 | help="Try \`$progname --help --mode=$opt_mode' for more information." | ||
3827 | 1212 | } | ||
3828 | 1213 | |||
3829 | 1214 | |||
3830 | 1215 | # Bail if the options were screwed | ||
3831 | 1216 | $exit_cmd $EXIT_FAILURE | ||
3832 | 1217 | } | ||
3833 | 1218 | |||
3834 | 1219 | |||
3835 | 1220 | |||
3836 | 1221 | |||
3837 | 858 | ## ----------- ## | 1222 | ## ----------- ## |
3838 | 859 | ## Main. ## | 1223 | ## Main. ## |
3839 | 860 | ## ----------- ## | 1224 | ## ----------- ## |
3840 | 861 | 1225 | ||
3841 | 862 | $opt_help || { | ||
3842 | 863 | # Sanity checks first: | ||
3843 | 864 | func_check_version_match | ||
3844 | 865 | |||
3845 | 866 | if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | ||
3846 | 867 | func_fatal_configuration "not configured to build any kind of library" | ||
3847 | 868 | fi | ||
3848 | 869 | |||
3849 | 870 | test -z "$mode" && func_fatal_error "error: you must specify a MODE." | ||
3850 | 871 | |||
3851 | 872 | |||
3852 | 873 | # Darwin sucks | ||
3853 | 874 | eval std_shrext=\"$shrext_cmds\" | ||
3854 | 875 | |||
3855 | 876 | |||
3856 | 877 | # Only execute mode is allowed to have -dlopen flags. | ||
3857 | 878 | if test -n "$execute_dlfiles" && test "$mode" != execute; then | ||
3858 | 879 | func_error "unrecognized option \`-dlopen'" | ||
3859 | 880 | $ECHO "$help" 1>&2 | ||
3860 | 881 | exit $EXIT_FAILURE | ||
3861 | 882 | fi | ||
3862 | 883 | |||
3863 | 884 | # Change the help message to a mode-specific one. | ||
3864 | 885 | generic_help="$help" | ||
3865 | 886 | help="Try \`$progname --help --mode=$mode' for more information." | ||
3866 | 887 | } | ||
3867 | 888 | |||
3868 | 889 | |||
3869 | 890 | # func_lalib_p file | 1226 | # func_lalib_p file |
3870 | 891 | # True iff FILE is a libtool `.la' library or `.lo' object file. | 1227 | # True iff FILE is a libtool `.la' library or `.lo' object file. |
3871 | 892 | # This function is only a basic sanity check; it will hardly flush out | 1228 | # This function is only a basic sanity check; it will hardly flush out |
3872 | @@ -950,12 +1286,9 @@ | |||
3873 | 950 | # temporary ltwrapper_script. | 1286 | # temporary ltwrapper_script. |
3874 | 951 | func_ltwrapper_scriptname () | 1287 | func_ltwrapper_scriptname () |
3875 | 952 | { | 1288 | { |
3882 | 953 | func_ltwrapper_scriptname_result="" | 1289 | func_dirname_and_basename "$1" "" "." |
3883 | 954 | if func_ltwrapper_executable_p "$1"; then | 1290 | func_stripname '' '.exe' "$func_basename_result" |
3884 | 955 | func_dirname_and_basename "$1" "" "." | 1291 | func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" |
3879 | 956 | func_stripname '' '.exe' "$func_basename_result" | ||
3880 | 957 | func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | ||
3881 | 958 | fi | ||
3885 | 959 | } | 1292 | } |
3886 | 960 | 1293 | ||
3887 | 961 | # func_ltwrapper_p file | 1294 | # func_ltwrapper_p file |
3888 | @@ -1001,6 +1334,37 @@ | |||
3889 | 1001 | } | 1334 | } |
3890 | 1002 | 1335 | ||
3891 | 1003 | 1336 | ||
3892 | 1337 | # func_resolve_sysroot PATH | ||
3893 | 1338 | # Replace a leading = in PATH with a sysroot. Store the result into | ||
3894 | 1339 | # func_resolve_sysroot_result | ||
3895 | 1340 | func_resolve_sysroot () | ||
3896 | 1341 | { | ||
3897 | 1342 | func_resolve_sysroot_result=$1 | ||
3898 | 1343 | case $func_resolve_sysroot_result in | ||
3899 | 1344 | =*) | ||
3900 | 1345 | func_stripname '=' '' "$func_resolve_sysroot_result" | ||
3901 | 1346 | func_resolve_sysroot_result=$lt_sysroot$func_stripname_result | ||
3902 | 1347 | ;; | ||
3903 | 1348 | esac | ||
3904 | 1349 | } | ||
3905 | 1350 | |||
3906 | 1351 | # func_replace_sysroot PATH | ||
3907 | 1352 | # If PATH begins with the sysroot, replace it with = and | ||
3908 | 1353 | # store the result into func_replace_sysroot_result. | ||
3909 | 1354 | func_replace_sysroot () | ||
3910 | 1355 | { | ||
3911 | 1356 | case "$lt_sysroot:$1" in | ||
3912 | 1357 | ?*:"$lt_sysroot"*) | ||
3913 | 1358 | func_stripname "$lt_sysroot" '' "$1" | ||
3914 | 1359 | func_replace_sysroot_result="=$func_stripname_result" | ||
3915 | 1360 | ;; | ||
3916 | 1361 | *) | ||
3917 | 1362 | # Including no sysroot. | ||
3918 | 1363 | func_replace_sysroot_result=$1 | ||
3919 | 1364 | ;; | ||
3920 | 1365 | esac | ||
3921 | 1366 | } | ||
3922 | 1367 | |||
3923 | 1004 | # func_infer_tag arg | 1368 | # func_infer_tag arg |
3924 | 1005 | # Infer tagged configuration to use if any are available and | 1369 | # Infer tagged configuration to use if any are available and |
3925 | 1006 | # if one wasn't chosen via the "--tag" command line option. | 1370 | # if one wasn't chosen via the "--tag" command line option. |
3926 | @@ -1013,13 +1377,15 @@ | |||
3927 | 1013 | if test -n "$available_tags" && test -z "$tagname"; then | 1377 | if test -n "$available_tags" && test -z "$tagname"; then |
3928 | 1014 | CC_quoted= | 1378 | CC_quoted= |
3929 | 1015 | for arg in $CC; do | 1379 | for arg in $CC; do |
3932 | 1016 | func_quote_for_eval "$arg" | 1380 | func_append_quoted CC_quoted "$arg" |
3931 | 1017 | CC_quoted="$CC_quoted $func_quote_for_eval_result" | ||
3933 | 1018 | done | 1381 | done |
3934 | 1382 | CC_expanded=`func_echo_all $CC` | ||
3935 | 1383 | CC_quoted_expanded=`func_echo_all $CC_quoted` | ||
3936 | 1019 | case $@ in | 1384 | case $@ in |
3937 | 1020 | # Blanks in the command may have been stripped by the calling shell, | 1385 | # Blanks in the command may have been stripped by the calling shell, |
3938 | 1021 | # but not from the CC environment variable when configure was run. | 1386 | # but not from the CC environment variable when configure was run. |
3940 | 1022 | " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; | 1387 | " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ |
3941 | 1388 | " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; | ||
3942 | 1023 | # Blanks at the start of $base_compile will cause this to fail | 1389 | # Blanks at the start of $base_compile will cause this to fail |
3943 | 1024 | # if we don't check for them as well. | 1390 | # if we don't check for them as well. |
3944 | 1025 | *) | 1391 | *) |
3945 | @@ -1030,11 +1396,13 @@ | |||
3946 | 1030 | CC_quoted= | 1396 | CC_quoted= |
3947 | 1031 | for arg in $CC; do | 1397 | for arg in $CC; do |
3948 | 1032 | # Double-quote args containing other shell metacharacters. | 1398 | # Double-quote args containing other shell metacharacters. |
3951 | 1033 | func_quote_for_eval "$arg" | 1399 | func_append_quoted CC_quoted "$arg" |
3950 | 1034 | CC_quoted="$CC_quoted $func_quote_for_eval_result" | ||
3952 | 1035 | done | 1400 | done |
3953 | 1401 | CC_expanded=`func_echo_all $CC` | ||
3954 | 1402 | CC_quoted_expanded=`func_echo_all $CC_quoted` | ||
3955 | 1036 | case "$@ " in | 1403 | case "$@ " in |
3957 | 1037 | " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) | 1404 | " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ |
3958 | 1405 | " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) | ||
3959 | 1038 | # The compiler in the base compile command matches | 1406 | # The compiler in the base compile command matches |
3960 | 1039 | # the one in the tagged configuration. | 1407 | # the one in the tagged configuration. |
3961 | 1040 | # Assume this is the tagged configuration we want. | 1408 | # Assume this is the tagged configuration we want. |
3962 | @@ -1097,6 +1465,486 @@ | |||
3963 | 1097 | } | 1465 | } |
3964 | 1098 | } | 1466 | } |
3965 | 1099 | 1467 | ||
3966 | 1468 | |||
3967 | 1469 | ################################################## | ||
3968 | 1470 | # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # | ||
3969 | 1471 | ################################################## | ||
3970 | 1472 | |||
3971 | 1473 | # func_convert_core_file_wine_to_w32 ARG | ||
3972 | 1474 | # Helper function used by file name conversion functions when $build is *nix, | ||
3973 | 1475 | # and $host is mingw, cygwin, or some other w32 environment. Relies on a | ||
3974 | 1476 | # correctly configured wine environment available, with the winepath program | ||
3975 | 1477 | # in $build's $PATH. | ||
3976 | 1478 | # | ||
3977 | 1479 | # ARG is the $build file name to be converted to w32 format. | ||
3978 | 1480 | # Result is available in $func_convert_core_file_wine_to_w32_result, and will | ||
3979 | 1481 | # be empty on error (or when ARG is empty) | ||
3980 | 1482 | func_convert_core_file_wine_to_w32 () | ||
3981 | 1483 | { | ||
3982 | 1484 | $opt_debug | ||
3983 | 1485 | func_convert_core_file_wine_to_w32_result="$1" | ||
3984 | 1486 | if test -n "$1"; then | ||
3985 | 1487 | # Unfortunately, winepath does not exit with a non-zero error code, so we | ||
3986 | 1488 | # are forced to check the contents of stdout. On the other hand, if the | ||
3987 | 1489 | # command is not found, the shell will set an exit code of 127 and print | ||
3988 | 1490 | # *an error message* to stdout. So we must check for both error code of | ||
3989 | 1491 | # zero AND non-empty stdout, which explains the odd construction: | ||
3990 | 1492 | func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` | ||
3991 | 1493 | if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then | ||
3992 | 1494 | func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | | ||
3993 | 1495 | $SED -e "$lt_sed_naive_backslashify"` | ||
3994 | 1496 | else | ||
3995 | 1497 | func_convert_core_file_wine_to_w32_result= | ||
3996 | 1498 | fi | ||
3997 | 1499 | fi | ||
3998 | 1500 | } | ||
3999 | 1501 | # end: func_convert_core_file_wine_to_w32 | ||
4000 | 1502 | |||
4001 | 1503 | |||
4002 | 1504 | # func_convert_core_path_wine_to_w32 ARG | ||
4003 | 1505 | # Helper function used by path conversion functions when $build is *nix, and | ||
4004 | 1506 | # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly | ||
4005 | 1507 | # configured wine environment available, with the winepath program in $build's | ||
4006 | 1508 | # $PATH. Assumes ARG has no leading or trailing path separator characters. | ||
4007 | 1509 | # | ||
4008 | 1510 | # ARG is path to be converted from $build format to win32. | ||
4009 | 1511 | # Result is available in $func_convert_core_path_wine_to_w32_result. | ||
4010 | 1512 | # Unconvertible file (directory) names in ARG are skipped; if no directory names | ||
4011 | 1513 | # are convertible, then the result may be empty. | ||
4012 | 1514 | func_convert_core_path_wine_to_w32 () | ||
4013 | 1515 | { | ||
4014 | 1516 | $opt_debug | ||
4015 | 1517 | # unfortunately, winepath doesn't convert paths, only file names | ||
4016 | 1518 | func_convert_core_path_wine_to_w32_result="" | ||
4017 | 1519 | if test -n "$1"; then | ||
4018 | 1520 | oldIFS=$IFS | ||
4019 | 1521 | IFS=: | ||
4020 | 1522 | for func_convert_core_path_wine_to_w32_f in $1; do | ||
4021 | 1523 | IFS=$oldIFS | ||
4022 | 1524 | func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" | ||
4023 | 1525 | if test -n "$func_convert_core_file_wine_to_w32_result" ; then | ||
4024 | 1526 | if test -z "$func_convert_core_path_wine_to_w32_result"; then | ||
4025 | 1527 | func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" | ||
4026 | 1528 | else | ||
4027 | 1529 | func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" | ||
4028 | 1530 | fi | ||
4029 | 1531 | fi | ||
4030 | 1532 | done | ||
4031 | 1533 | IFS=$oldIFS | ||
4032 | 1534 | fi | ||
4033 | 1535 | } | ||
4034 | 1536 | # end: func_convert_core_path_wine_to_w32 | ||
4035 | 1537 | |||
4036 | 1538 | |||
4037 | 1539 | # func_cygpath ARGS... | ||
4038 | 1540 | # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when | ||
4039 | 1541 | # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) | ||
4040 | 1542 | # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or | ||
4041 | 1543 | # (2), returns the Cygwin file name or path in func_cygpath_result (input | ||
4042 | 1544 | # file name or path is assumed to be in w32 format, as previously converted | ||
4043 | 1545 | # from $build's *nix or MSYS format). In case (3), returns the w32 file name | ||
4044 | 1546 | # or path in func_cygpath_result (input file name or path is assumed to be in | ||
4045 | 1547 | # Cygwin format). Returns an empty string on error. | ||
4046 | 1548 | # | ||
4047 | 1549 | # ARGS are passed to cygpath, with the last one being the file name or path to | ||
4048 | 1550 | # be converted. | ||
4049 | 1551 | # | ||
4050 | 1552 | # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH | ||
4051 | 1553 | # environment variable; do not put it in $PATH. | ||
4052 | 1554 | func_cygpath () | ||
4053 | 1555 | { | ||
4054 | 1556 | $opt_debug | ||
4055 | 1557 | if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then | ||
4056 | 1558 | func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` | ||
4057 | 1559 | if test "$?" -ne 0; then | ||
4058 | 1560 | # on failure, ensure result is empty | ||
4059 | 1561 | func_cygpath_result= | ||
4060 | 1562 | fi | ||
4061 | 1563 | else | ||
4062 | 1564 | func_cygpath_result= | ||
4063 | 1565 | func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" | ||
4064 | 1566 | fi | ||
4065 | 1567 | } | ||
4066 | 1568 | #end: func_cygpath | ||
4067 | 1569 | |||
4068 | 1570 | |||
4069 | 1571 | # func_convert_core_msys_to_w32 ARG | ||
4070 | 1572 | # Convert file name or path ARG from MSYS format to w32 format. Return | ||
4071 | 1573 | # result in func_convert_core_msys_to_w32_result. | ||
4072 | 1574 | func_convert_core_msys_to_w32 () | ||
4073 | 1575 | { | ||
4074 | 1576 | $opt_debug | ||
4075 | 1577 | # awkward: cmd appends spaces to result | ||
4076 | 1578 | func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | | ||
4077 | 1579 | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | ||
4078 | 1580 | } | ||
4079 | 1581 | #end: func_convert_core_msys_to_w32 | ||
4080 | 1582 | |||
4081 | 1583 | |||
4082 | 1584 | # func_convert_file_check ARG1 ARG2 | ||
4083 | 1585 | # Verify that ARG1 (a file name in $build format) was converted to $host | ||
4084 | 1586 | # format in ARG2. Otherwise, emit an error message, but continue (resetting | ||
4085 | 1587 | # func_to_host_file_result to ARG1). | ||
4086 | 1588 | func_convert_file_check () | ||
4087 | 1589 | { | ||
4088 | 1590 | $opt_debug | ||
4089 | 1591 | if test -z "$2" && test -n "$1" ; then | ||
4090 | 1592 | func_error "Could not determine host file name corresponding to" | ||
4091 | 1593 | func_error " \`$1'" | ||
4092 | 1594 | func_error "Continuing, but uninstalled executables may not work." | ||
4093 | 1595 | # Fallback: | ||
4094 | 1596 | func_to_host_file_result="$1" | ||
4095 | 1597 | fi | ||
4096 | 1598 | } | ||
4097 | 1599 | # end func_convert_file_check | ||
4098 | 1600 | |||
4099 | 1601 | |||
4100 | 1602 | # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH | ||
4101 | 1603 | # Verify that FROM_PATH (a path in $build format) was converted to $host | ||
4102 | 1604 | # format in TO_PATH. Otherwise, emit an error message, but continue, resetting | ||
4103 | 1605 | # func_to_host_file_result to a simplistic fallback value (see below). | ||
4104 | 1606 | func_convert_path_check () | ||
4105 | 1607 | { | ||
4106 | 1608 | $opt_debug | ||
4107 | 1609 | if test -z "$4" && test -n "$3"; then | ||
4108 | 1610 | func_error "Could not determine the host path corresponding to" | ||
4109 | 1611 | func_error " \`$3'" | ||
4110 | 1612 | func_error "Continuing, but uninstalled executables may not work." | ||
4111 | 1613 | # Fallback. This is a deliberately simplistic "conversion" and | ||
4112 | 1614 | # should not be "improved". See libtool.info. | ||
4113 | 1615 | if test "x$1" != "x$2"; then | ||
4114 | 1616 | lt_replace_pathsep_chars="s|$1|$2|g" | ||
4115 | 1617 | func_to_host_path_result=`echo "$3" | | ||
4116 | 1618 | $SED -e "$lt_replace_pathsep_chars"` | ||
4117 | 1619 | else | ||
4118 | 1620 | func_to_host_path_result="$3" | ||
4119 | 1621 | fi | ||
4120 | 1622 | fi | ||
4121 | 1623 | } | ||
4122 | 1624 | # end func_convert_path_check | ||
4123 | 1625 | |||
4124 | 1626 | |||
4125 | 1627 | # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG | ||
4126 | 1628 | # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT | ||
4127 | 1629 | # and appending REPL if ORIG matches BACKPAT. | ||
4128 | 1630 | func_convert_path_front_back_pathsep () | ||
4129 | 1631 | { | ||
4130 | 1632 | $opt_debug | ||
4131 | 1633 | case $4 in | ||
4132 | 1634 | $1 ) func_to_host_path_result="$3$func_to_host_path_result" | ||
4133 | 1635 | ;; | ||
4134 | 1636 | esac | ||
4135 | 1637 | case $4 in | ||
4136 | 1638 | $2 ) func_append func_to_host_path_result "$3" | ||
4137 | 1639 | ;; | ||
4138 | 1640 | esac | ||
4139 | 1641 | } | ||
4140 | 1642 | # end func_convert_path_front_back_pathsep | ||
4141 | 1643 | |||
4142 | 1644 | |||
4143 | 1645 | ################################################## | ||
4144 | 1646 | # $build to $host FILE NAME CONVERSION FUNCTIONS # | ||
4145 | 1647 | ################################################## | ||
4146 | 1648 | # invoked via `$to_host_file_cmd ARG' | ||
4147 | 1649 | # | ||
4148 | 1650 | # In each case, ARG is the path to be converted from $build to $host format. | ||
4149 | 1651 | # Result will be available in $func_to_host_file_result. | ||
4150 | 1652 | |||
4151 | 1653 | |||
4152 | 1654 | # func_to_host_file ARG | ||
4153 | 1655 | # Converts the file name ARG from $build format to $host format. Return result | ||
4154 | 1656 | # in func_to_host_file_result. | ||
4155 | 1657 | func_to_host_file () | ||
4156 | 1658 | { | ||
4157 | 1659 | $opt_debug | ||
4158 | 1660 | $to_host_file_cmd "$1" | ||
4159 | 1661 | } | ||
4160 | 1662 | # end func_to_host_file | ||
4161 | 1663 | |||
4162 | 1664 | |||
4163 | 1665 | # func_to_tool_file ARG LAZY | ||
4164 | 1666 | # converts the file name ARG from $build format to toolchain format. Return | ||
4165 | 1667 | # result in func_to_tool_file_result. If the conversion in use is listed | ||
4166 | 1668 | # in (the comma separated) LAZY, no conversion takes place. | ||
4167 | 1669 | func_to_tool_file () | ||
4168 | 1670 | { | ||
4169 | 1671 | $opt_debug | ||
4170 | 1672 | case ,$2, in | ||
4171 | 1673 | *,"$to_tool_file_cmd",*) | ||
4172 | 1674 | func_to_tool_file_result=$1 | ||
4173 | 1675 | ;; | ||
4174 | 1676 | *) | ||
4175 | 1677 | $to_tool_file_cmd "$1" | ||
4176 | 1678 | func_to_tool_file_result=$func_to_host_file_result | ||
4177 | 1679 | ;; | ||
4178 | 1680 | esac | ||
4179 | 1681 | } | ||
4180 | 1682 | # end func_to_tool_file | ||
4181 | 1683 | |||
4182 | 1684 | |||
4183 | 1685 | # func_convert_file_noop ARG | ||
4184 | 1686 | # Copy ARG to func_to_host_file_result. | ||
4185 | 1687 | func_convert_file_noop () | ||
4186 | 1688 | { | ||
4187 | 1689 | func_to_host_file_result="$1" | ||
4188 | 1690 | } | ||
4189 | 1691 | # end func_convert_file_noop | ||
4190 | 1692 | |||
4191 | 1693 | |||
4192 | 1694 | # func_convert_file_msys_to_w32 ARG | ||
4193 | 1695 | # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic | ||
4194 | 1696 | # conversion to w32 is not available inside the cwrapper. Returns result in | ||
4195 | 1697 | # func_to_host_file_result. | ||
4196 | 1698 | func_convert_file_msys_to_w32 () | ||
4197 | 1699 | { | ||
4198 | 1700 | $opt_debug | ||
4199 | 1701 | func_to_host_file_result="$1" | ||
4200 | 1702 | if test -n "$1"; then | ||
4201 | 1703 | func_convert_core_msys_to_w32 "$1" | ||
4202 | 1704 | func_to_host_file_result="$func_convert_core_msys_to_w32_result" | ||
4203 | 1705 | fi | ||
4204 | 1706 | func_convert_file_check "$1" "$func_to_host_file_result" | ||
4205 | 1707 | } | ||
4206 | 1708 | # end func_convert_file_msys_to_w32 | ||
4207 | 1709 | |||
4208 | 1710 | |||
4209 | 1711 | # func_convert_file_cygwin_to_w32 ARG | ||
4210 | 1712 | # Convert file name ARG from Cygwin to w32 format. Returns result in | ||
4211 | 1713 | # func_to_host_file_result. | ||
4212 | 1714 | func_convert_file_cygwin_to_w32 () | ||
4213 | 1715 | { | ||
4214 | 1716 | $opt_debug | ||
4215 | 1717 | func_to_host_file_result="$1" | ||
4216 | 1718 | if test -n "$1"; then | ||
4217 | 1719 | # because $build is cygwin, we call "the" cygpath in $PATH; no need to use | ||
4218 | 1720 | # LT_CYGPATH in this case. | ||
4219 | 1721 | func_to_host_file_result=`cygpath -m "$1"` | ||
4220 | 1722 | fi | ||
4221 | 1723 | func_convert_file_check "$1" "$func_to_host_file_result" | ||
4222 | 1724 | } | ||
4223 | 1725 | # end func_convert_file_cygwin_to_w32 | ||
4224 | 1726 | |||
4225 | 1727 | |||
4226 | 1728 | # func_convert_file_nix_to_w32 ARG | ||
4227 | 1729 | # Convert file name ARG from *nix to w32 format. Requires a wine environment | ||
4228 | 1730 | # and a working winepath. Returns result in func_to_host_file_result. | ||
4229 | 1731 | func_convert_file_nix_to_w32 () | ||
4230 | 1732 | { | ||
4231 | 1733 | $opt_debug | ||
4232 | 1734 | func_to_host_file_result="$1" | ||
4233 | 1735 | if test -n "$1"; then | ||
4234 | 1736 | func_convert_core_file_wine_to_w32 "$1" | ||
4235 | 1737 | func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" | ||
4236 | 1738 | fi | ||
4237 | 1739 | func_convert_file_check "$1" "$func_to_host_file_result" | ||
4238 | 1740 | } | ||
4239 | 1741 | # end func_convert_file_nix_to_w32 | ||
4240 | 1742 | |||
4241 | 1743 | |||
4242 | 1744 | # func_convert_file_msys_to_cygwin ARG | ||
4243 | 1745 | # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | ||
4244 | 1746 | # Returns result in func_to_host_file_result. | ||
4245 | 1747 | func_convert_file_msys_to_cygwin () | ||
4246 | 1748 | { | ||
4247 | 1749 | $opt_debug | ||
4248 | 1750 | func_to_host_file_result="$1" | ||
4249 | 1751 | if test -n "$1"; then | ||
4250 | 1752 | func_convert_core_msys_to_w32 "$1" | ||
4251 | 1753 | func_cygpath -u "$func_convert_core_msys_to_w32_result" | ||
4252 | 1754 | func_to_host_file_result="$func_cygpath_result" | ||
4253 | 1755 | fi | ||
4254 | 1756 | func_convert_file_check "$1" "$func_to_host_file_result" | ||
4255 | 1757 | } | ||
4256 | 1758 | # end func_convert_file_msys_to_cygwin | ||
4257 | 1759 | |||
4258 | 1760 | |||
4259 | 1761 | # func_convert_file_nix_to_cygwin ARG | ||
4260 | 1762 | # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed | ||
4261 | 1763 | # in a wine environment, working winepath, and LT_CYGPATH set. Returns result | ||
4262 | 1764 | # in func_to_host_file_result. | ||
4263 | 1765 | func_convert_file_nix_to_cygwin () | ||
4264 | 1766 | { | ||
4265 | 1767 | $opt_debug | ||
4266 | 1768 | func_to_host_file_result="$1" | ||
4267 | 1769 | if test -n "$1"; then | ||
4268 | 1770 | # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. | ||
4269 | 1771 | func_convert_core_file_wine_to_w32 "$1" | ||
4270 | 1772 | func_cygpath -u "$func_convert_core_file_wine_to_w32_result" | ||
4271 | 1773 | func_to_host_file_result="$func_cygpath_result" | ||
4272 | 1774 | fi | ||
4273 | 1775 | func_convert_file_check "$1" "$func_to_host_file_result" | ||
4274 | 1776 | } | ||
4275 | 1777 | # end func_convert_file_nix_to_cygwin | ||
4276 | 1778 | |||
4277 | 1779 | |||
4278 | 1780 | ############################################# | ||
4279 | 1781 | # $build to $host PATH CONVERSION FUNCTIONS # | ||
4280 | 1782 | ############################################# | ||
4281 | 1783 | # invoked via `$to_host_path_cmd ARG' | ||
4282 | 1784 | # | ||
4283 | 1785 | # In each case, ARG is the path to be converted from $build to $host format. | ||
4284 | 1786 | # The result will be available in $func_to_host_path_result. | ||
4285 | 1787 | # | ||
4286 | 1788 | # Path separators are also converted from $build format to $host format. If | ||
4287 | 1789 | # ARG begins or ends with a path separator character, it is preserved (but | ||
4288 | 1790 | # converted to $host format) on output. | ||
4289 | 1791 | # | ||
4290 | 1792 | # All path conversion functions are named using the following convention: | ||
4291 | 1793 | # file name conversion function : func_convert_file_X_to_Y () | ||
4292 | 1794 | # path conversion function : func_convert_path_X_to_Y () | ||
4293 | 1795 | # where, for any given $build/$host combination the 'X_to_Y' value is the | ||
4294 | 1796 | # same. If conversion functions are added for new $build/$host combinations, | ||
4295 | 1797 | # the two new functions must follow this pattern, or func_init_to_host_path_cmd | ||
4296 | 1798 | # will break. | ||
4297 | 1799 | |||
4298 | 1800 | |||
4299 | 1801 | # func_init_to_host_path_cmd | ||
4300 | 1802 | # Ensures that function "pointer" variable $to_host_path_cmd is set to the | ||
4301 | 1803 | # appropriate value, based on the value of $to_host_file_cmd. | ||
4302 | 1804 | to_host_path_cmd= | ||
4303 | 1805 | func_init_to_host_path_cmd () | ||
4304 | 1806 | { | ||
4305 | 1807 | $opt_debug | ||
4306 | 1808 | if test -z "$to_host_path_cmd"; then | ||
4307 | 1809 | func_stripname 'func_convert_file_' '' "$to_host_file_cmd" | ||
4308 | 1810 | to_host_path_cmd="func_convert_path_${func_stripname_result}" | ||
4309 | 1811 | fi | ||
4310 | 1812 | } | ||
4311 | 1813 | |||
4312 | 1814 | |||
4313 | 1815 | # func_to_host_path ARG | ||
4314 | 1816 | # Converts the path ARG from $build format to $host format. Return result | ||
4315 | 1817 | # in func_to_host_path_result. | ||
4316 | 1818 | func_to_host_path () | ||
4317 | 1819 | { | ||
4318 | 1820 | $opt_debug | ||
4319 | 1821 | func_init_to_host_path_cmd | ||
4320 | 1822 | $to_host_path_cmd "$1" | ||
4321 | 1823 | } | ||
4322 | 1824 | # end func_to_host_path | ||
4323 | 1825 | |||
4324 | 1826 | |||
4325 | 1827 | # func_convert_path_noop ARG | ||
4326 | 1828 | # Copy ARG to func_to_host_path_result. | ||
4327 | 1829 | func_convert_path_noop () | ||
4328 | 1830 | { | ||
4329 | 1831 | func_to_host_path_result="$1" | ||
4330 | 1832 | } | ||
4331 | 1833 | # end func_convert_path_noop | ||
4332 | 1834 | |||
4333 | 1835 | |||
4334 | 1836 | # func_convert_path_msys_to_w32 ARG | ||
4335 | 1837 | # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic | ||
4336 | 1838 | # conversion to w32 is not available inside the cwrapper. Returns result in | ||
4337 | 1839 | # func_to_host_path_result. | ||
4338 | 1840 | func_convert_path_msys_to_w32 () | ||
4339 | 1841 | { | ||
4340 | 1842 | $opt_debug | ||
4341 | 1843 | func_to_host_path_result="$1" | ||
4342 | 1844 | if test -n "$1"; then | ||
4343 | 1845 | # Remove leading and trailing path separator characters from ARG. MSYS | ||
4344 | 1846 | # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; | ||
4345 | 1847 | # and winepath ignores them completely. | ||
4346 | 1848 | func_stripname : : "$1" | ||
4347 | 1849 | func_to_host_path_tmp1=$func_stripname_result | ||
4348 | 1850 | func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | ||
4349 | 1851 | func_to_host_path_result="$func_convert_core_msys_to_w32_result" | ||
4350 | 1852 | func_convert_path_check : ";" \ | ||
4351 | 1853 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
4352 | 1854 | func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
4353 | 1855 | fi | ||
4354 | 1856 | } | ||
4355 | 1857 | # end func_convert_path_msys_to_w32 | ||
4356 | 1858 | |||
4357 | 1859 | |||
4358 | 1860 | # func_convert_path_cygwin_to_w32 ARG | ||
4359 | 1861 | # Convert path ARG from Cygwin to w32 format. Returns result in | ||
4360 | 1862 | # func_to_host_file_result. | ||
4361 | 1863 | func_convert_path_cygwin_to_w32 () | ||
4362 | 1864 | { | ||
4363 | 1865 | $opt_debug | ||
4364 | 1866 | func_to_host_path_result="$1" | ||
4365 | 1867 | if test -n "$1"; then | ||
4366 | 1868 | # See func_convert_path_msys_to_w32: | ||
4367 | 1869 | func_stripname : : "$1" | ||
4368 | 1870 | func_to_host_path_tmp1=$func_stripname_result | ||
4369 | 1871 | func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` | ||
4370 | 1872 | func_convert_path_check : ";" \ | ||
4371 | 1873 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
4372 | 1874 | func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
4373 | 1875 | fi | ||
4374 | 1876 | } | ||
4375 | 1877 | # end func_convert_path_cygwin_to_w32 | ||
4376 | 1878 | |||
4377 | 1879 | |||
4378 | 1880 | # func_convert_path_nix_to_w32 ARG | ||
4379 | 1881 | # Convert path ARG from *nix to w32 format. Requires a wine environment and | ||
4380 | 1882 | # a working winepath. Returns result in func_to_host_file_result. | ||
4381 | 1883 | func_convert_path_nix_to_w32 () | ||
4382 | 1884 | { | ||
4383 | 1885 | $opt_debug | ||
4384 | 1886 | func_to_host_path_result="$1" | ||
4385 | 1887 | if test -n "$1"; then | ||
4386 | 1888 | # See func_convert_path_msys_to_w32: | ||
4387 | 1889 | func_stripname : : "$1" | ||
4388 | 1890 | func_to_host_path_tmp1=$func_stripname_result | ||
4389 | 1891 | func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | ||
4390 | 1892 | func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" | ||
4391 | 1893 | func_convert_path_check : ";" \ | ||
4392 | 1894 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
4393 | 1895 | func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | ||
4394 | 1896 | fi | ||
4395 | 1897 | } | ||
4396 | 1898 | # end func_convert_path_nix_to_w32 | ||
4397 | 1899 | |||
4398 | 1900 | |||
4399 | 1901 | # func_convert_path_msys_to_cygwin ARG | ||
4400 | 1902 | # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | ||
4401 | 1903 | # Returns result in func_to_host_file_result. | ||
4402 | 1904 | func_convert_path_msys_to_cygwin () | ||
4403 | 1905 | { | ||
4404 | 1906 | $opt_debug | ||
4405 | 1907 | func_to_host_path_result="$1" | ||
4406 | 1908 | if test -n "$1"; then | ||
4407 | 1909 | # See func_convert_path_msys_to_w32: | ||
4408 | 1910 | func_stripname : : "$1" | ||
4409 | 1911 | func_to_host_path_tmp1=$func_stripname_result | ||
4410 | 1912 | func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | ||
4411 | 1913 | func_cygpath -u -p "$func_convert_core_msys_to_w32_result" | ||
4412 | 1914 | func_to_host_path_result="$func_cygpath_result" | ||
4413 | 1915 | func_convert_path_check : : \ | ||
4414 | 1916 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
4415 | 1917 | func_convert_path_front_back_pathsep ":*" "*:" : "$1" | ||
4416 | 1918 | fi | ||
4417 | 1919 | } | ||
4418 | 1920 | # end func_convert_path_msys_to_cygwin | ||
4419 | 1921 | |||
4420 | 1922 | |||
4421 | 1923 | # func_convert_path_nix_to_cygwin ARG | ||
4422 | 1924 | # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a | ||
4423 | 1925 | # a wine environment, working winepath, and LT_CYGPATH set. Returns result in | ||
4424 | 1926 | # func_to_host_file_result. | ||
4425 | 1927 | func_convert_path_nix_to_cygwin () | ||
4426 | 1928 | { | ||
4427 | 1929 | $opt_debug | ||
4428 | 1930 | func_to_host_path_result="$1" | ||
4429 | 1931 | if test -n "$1"; then | ||
4430 | 1932 | # Remove leading and trailing path separator characters from | ||
4431 | 1933 | # ARG. msys behavior is inconsistent here, cygpath turns them | ||
4432 | 1934 | # into '.;' and ';.', and winepath ignores them completely. | ||
4433 | 1935 | func_stripname : : "$1" | ||
4434 | 1936 | func_to_host_path_tmp1=$func_stripname_result | ||
4435 | 1937 | func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | ||
4436 | 1938 | func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" | ||
4437 | 1939 | func_to_host_path_result="$func_cygpath_result" | ||
4438 | 1940 | func_convert_path_check : : \ | ||
4439 | 1941 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | ||
4440 | 1942 | func_convert_path_front_back_pathsep ":*" "*:" : "$1" | ||
4441 | 1943 | fi | ||
4442 | 1944 | } | ||
4443 | 1945 | # end func_convert_path_nix_to_cygwin | ||
4444 | 1946 | |||
4445 | 1947 | |||
4446 | 1100 | # func_mode_compile arg... | 1948 | # func_mode_compile arg... |
4447 | 1101 | func_mode_compile () | 1949 | func_mode_compile () |
4448 | 1102 | { | 1950 | { |
4449 | @@ -1137,12 +1985,12 @@ | |||
4450 | 1137 | ;; | 1985 | ;; |
4451 | 1138 | 1986 | ||
4452 | 1139 | -pie | -fpie | -fPIE) | 1987 | -pie | -fpie | -fPIE) |
4454 | 1140 | pie_flag="$pie_flag $arg" | 1988 | func_append pie_flag " $arg" |
4455 | 1141 | continue | 1989 | continue |
4456 | 1142 | ;; | 1990 | ;; |
4457 | 1143 | 1991 | ||
4458 | 1144 | -shared | -static | -prefer-pic | -prefer-non-pic) | 1992 | -shared | -static | -prefer-pic | -prefer-non-pic) |
4460 | 1145 | later="$later $arg" | 1993 | func_append later " $arg" |
4461 | 1146 | continue | 1994 | continue |
4462 | 1147 | ;; | 1995 | ;; |
4463 | 1148 | 1996 | ||
4464 | @@ -1163,15 +2011,14 @@ | |||
4465 | 1163 | save_ifs="$IFS"; IFS=',' | 2011 | save_ifs="$IFS"; IFS=',' |
4466 | 1164 | for arg in $args; do | 2012 | for arg in $args; do |
4467 | 1165 | IFS="$save_ifs" | 2013 | IFS="$save_ifs" |
4470 | 1166 | func_quote_for_eval "$arg" | 2014 | func_append_quoted lastarg "$arg" |
4469 | 1167 | lastarg="$lastarg $func_quote_for_eval_result" | ||
4471 | 1168 | done | 2015 | done |
4472 | 1169 | IFS="$save_ifs" | 2016 | IFS="$save_ifs" |
4473 | 1170 | func_stripname ' ' '' "$lastarg" | 2017 | func_stripname ' ' '' "$lastarg" |
4474 | 1171 | lastarg=$func_stripname_result | 2018 | lastarg=$func_stripname_result |
4475 | 1172 | 2019 | ||
4476 | 1173 | # Add the arguments to base_compile. | 2020 | # Add the arguments to base_compile. |
4478 | 1174 | base_compile="$base_compile $lastarg" | 2021 | func_append base_compile " $lastarg" |
4479 | 1175 | continue | 2022 | continue |
4480 | 1176 | ;; | 2023 | ;; |
4481 | 1177 | 2024 | ||
4482 | @@ -1187,8 +2034,7 @@ | |||
4483 | 1187 | esac # case $arg_mode | 2034 | esac # case $arg_mode |
4484 | 1188 | 2035 | ||
4485 | 1189 | # Aesthetically quote the previous argument. | 2036 | # Aesthetically quote the previous argument. |
4488 | 1190 | func_quote_for_eval "$lastarg" | 2037 | func_append_quoted base_compile "$lastarg" |
4487 | 1191 | base_compile="$base_compile $func_quote_for_eval_result" | ||
4489 | 1192 | done # for arg | 2038 | done # for arg |
4490 | 1193 | 2039 | ||
4491 | 1194 | case $arg_mode in | 2040 | case $arg_mode in |
4492 | @@ -1213,7 +2059,7 @@ | |||
4493 | 1213 | *.[cCFSifmso] | \ | 2059 | *.[cCFSifmso] | \ |
4494 | 1214 | *.ada | *.adb | *.ads | *.asm | \ | 2060 | *.ada | *.adb | *.ads | *.asm | \ |
4495 | 1215 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ | 2061 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ |
4497 | 1216 | *.[fF][09]? | *.for | *.java | *.obj | *.sx) | 2062 | *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) |
4498 | 1217 | func_xform "$libobj" | 2063 | func_xform "$libobj" |
4499 | 1218 | libobj=$func_xform_result | 2064 | libobj=$func_xform_result |
4500 | 1219 | ;; | 2065 | ;; |
4501 | @@ -1288,7 +2134,7 @@ | |||
4502 | 1288 | # Calculate the filename of the output object if compiler does | 2134 | # Calculate the filename of the output object if compiler does |
4503 | 1289 | # not support -o with -c | 2135 | # not support -o with -c |
4504 | 1290 | if test "$compiler_c_o" = no; then | 2136 | if test "$compiler_c_o" = no; then |
4506 | 1291 | output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} | 2137 | output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} |
4507 | 1292 | lockfile="$output_obj.lock" | 2138 | lockfile="$output_obj.lock" |
4508 | 1293 | else | 2139 | else |
4509 | 1294 | output_obj= | 2140 | output_obj= |
4510 | @@ -1319,17 +2165,16 @@ | |||
4511 | 1319 | $opt_dry_run || $RM $removelist | 2165 | $opt_dry_run || $RM $removelist |
4512 | 1320 | exit $EXIT_FAILURE | 2166 | exit $EXIT_FAILURE |
4513 | 1321 | fi | 2167 | fi |
4515 | 1322 | removelist="$removelist $output_obj" | 2168 | func_append removelist " $output_obj" |
4516 | 1323 | $ECHO "$srcfile" > "$lockfile" | 2169 | $ECHO "$srcfile" > "$lockfile" |
4517 | 1324 | fi | 2170 | fi |
4518 | 1325 | 2171 | ||
4519 | 1326 | $opt_dry_run || $RM $removelist | 2172 | $opt_dry_run || $RM $removelist |
4521 | 1327 | removelist="$removelist $lockfile" | 2173 | func_append removelist " $lockfile" |
4522 | 1328 | trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 | 2174 | trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 |
4523 | 1329 | 2175 | ||
4527 | 1330 | if test -n "$fix_srcfile_path"; then | 2176 | func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 |
4528 | 1331 | eval srcfile=\"$fix_srcfile_path\" | 2177 | srcfile=$func_to_tool_file_result |
4526 | 1332 | fi | ||
4529 | 1333 | func_quote_for_eval "$srcfile" | 2178 | func_quote_for_eval "$srcfile" |
4530 | 1334 | qsrcfile=$func_quote_for_eval_result | 2179 | qsrcfile=$func_quote_for_eval_result |
4531 | 1335 | 2180 | ||
4532 | @@ -1349,7 +2194,7 @@ | |||
4533 | 1349 | 2194 | ||
4534 | 1350 | if test -z "$output_obj"; then | 2195 | if test -z "$output_obj"; then |
4535 | 1351 | # Place PIC objects in $objdir | 2196 | # Place PIC objects in $objdir |
4537 | 1352 | command="$command -o $lobj" | 2197 | func_append command " -o $lobj" |
4538 | 1353 | fi | 2198 | fi |
4539 | 1354 | 2199 | ||
4540 | 1355 | func_show_eval_locale "$command" \ | 2200 | func_show_eval_locale "$command" \ |
4541 | @@ -1396,11 +2241,11 @@ | |||
4542 | 1396 | command="$base_compile $qsrcfile $pic_flag" | 2241 | command="$base_compile $qsrcfile $pic_flag" |
4543 | 1397 | fi | 2242 | fi |
4544 | 1398 | if test "$compiler_c_o" = yes; then | 2243 | if test "$compiler_c_o" = yes; then |
4546 | 1399 | command="$command -o $obj" | 2244 | func_append command " -o $obj" |
4547 | 1400 | fi | 2245 | fi |
4548 | 1401 | 2246 | ||
4549 | 1402 | # Suppress compiler output if we already did a PIC compilation. | 2247 | # Suppress compiler output if we already did a PIC compilation. |
4551 | 1403 | command="$command$suppress_output" | 2248 | func_append command "$suppress_output" |
4552 | 1404 | func_show_eval_locale "$command" \ | 2249 | func_show_eval_locale "$command" \ |
4553 | 1405 | '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' | 2250 | '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' |
4554 | 1406 | 2251 | ||
4555 | @@ -1445,13 +2290,13 @@ | |||
4556 | 1445 | } | 2290 | } |
4557 | 1446 | 2291 | ||
4558 | 1447 | $opt_help || { | 2292 | $opt_help || { |
4560 | 1448 | test "$mode" = compile && func_mode_compile ${1+"$@"} | 2293 | test "$opt_mode" = compile && func_mode_compile ${1+"$@"} |
4561 | 1449 | } | 2294 | } |
4562 | 1450 | 2295 | ||
4563 | 1451 | func_mode_help () | 2296 | func_mode_help () |
4564 | 1452 | { | 2297 | { |
4565 | 1453 | # We need to display help for each of the modes. | 2298 | # We need to display help for each of the modes. |
4567 | 1454 | case $mode in | 2299 | case $opt_mode in |
4568 | 1455 | "") | 2300 | "") |
4569 | 1456 | # Generic help is extracted from the usage comments | 2301 | # Generic help is extracted from the usage comments |
4570 | 1457 | # at the start of this file. | 2302 | # at the start of this file. |
4571 | @@ -1482,10 +2327,11 @@ | |||
4572 | 1482 | 2327 | ||
4573 | 1483 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE | 2328 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE |
4574 | 1484 | -no-suppress do not suppress compiler output for multiple passes | 2329 | -no-suppress do not suppress compiler output for multiple passes |
4577 | 1485 | -prefer-pic try to building PIC objects only | 2330 | -prefer-pic try to build PIC objects only |
4578 | 1486 | -prefer-non-pic try to building non-PIC objects only | 2331 | -prefer-non-pic try to build non-PIC objects only |
4579 | 1487 | -shared do not build a \`.o' file suitable for static linking | 2332 | -shared do not build a \`.o' file suitable for static linking |
4580 | 1488 | -static only build a \`.o' file suitable for static linking | 2333 | -static only build a \`.o' file suitable for static linking |
4581 | 2334 | -Wc,FLAG pass FLAG directly to the compiler | ||
4582 | 1489 | 2335 | ||
4583 | 1490 | COMPILE-COMMAND is a command to be used in creating a \`standard' object file | 2336 | COMPILE-COMMAND is a command to be used in creating a \`standard' object file |
4584 | 1491 | from the given SOURCEFILE. | 2337 | from the given SOURCEFILE. |
4585 | @@ -1538,7 +2384,7 @@ | |||
4586 | 1538 | 2384 | ||
4587 | 1539 | The following components of INSTALL-COMMAND are treated specially: | 2385 | The following components of INSTALL-COMMAND are treated specially: |
4588 | 1540 | 2386 | ||
4590 | 1541 | -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation | 2387 | -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation |
4591 | 1542 | 2388 | ||
4592 | 1543 | The rest of the components are interpreted as arguments to that command (only | 2389 | The rest of the components are interpreted as arguments to that command (only |
4593 | 1544 | BSD-compatible install options are recognized)." | 2390 | BSD-compatible install options are recognized)." |
4594 | @@ -1558,6 +2404,8 @@ | |||
4595 | 1558 | 2404 | ||
4596 | 1559 | -all-static do not do any dynamic linking at all | 2405 | -all-static do not do any dynamic linking at all |
4597 | 1560 | -avoid-version do not add a version suffix if possible | 2406 | -avoid-version do not add a version suffix if possible |
4598 | 2407 | -bindir BINDIR specify path to binaries directory (for systems where | ||
4599 | 2408 | libraries must be found in the PATH setting at runtime) | ||
4600 | 1561 | -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime | 2409 | -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime |
4601 | 1562 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols | 2410 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols |
4602 | 1563 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) | 2411 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) |
4603 | @@ -1586,6 +2434,11 @@ | |||
4604 | 1586 | -version-info CURRENT[:REVISION[:AGE]] | 2434 | -version-info CURRENT[:REVISION[:AGE]] |
4605 | 1587 | specify library version info [each variable defaults to 0] | 2435 | specify library version info [each variable defaults to 0] |
4606 | 1588 | -weak LIBNAME declare that the target provides the LIBNAME interface | 2436 | -weak LIBNAME declare that the target provides the LIBNAME interface |
4607 | 2437 | -Wc,FLAG | ||
4608 | 2438 | -Xcompiler FLAG pass linker-specific FLAG directly to the compiler | ||
4609 | 2439 | -Wl,FLAG | ||
4610 | 2440 | -Xlinker FLAG pass linker-specific FLAG directly to the linker | ||
4611 | 2441 | -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) | ||
4612 | 1589 | 2442 | ||
4613 | 1590 | All other options (arguments beginning with \`-') are ignored. | 2443 | All other options (arguments beginning with \`-') are ignored. |
4614 | 1591 | 2444 | ||
4615 | @@ -1619,18 +2472,44 @@ | |||
4616 | 1619 | ;; | 2472 | ;; |
4617 | 1620 | 2473 | ||
4618 | 1621 | *) | 2474 | *) |
4620 | 1622 | func_fatal_help "invalid operation mode \`$mode'" | 2475 | func_fatal_help "invalid operation mode \`$opt_mode'" |
4621 | 1623 | ;; | 2476 | ;; |
4622 | 1624 | esac | 2477 | esac |
4623 | 1625 | 2478 | ||
4625 | 1626 | $ECHO | 2479 | echo |
4626 | 1627 | $ECHO "Try \`$progname --help' for more information about other modes." | 2480 | $ECHO "Try \`$progname --help' for more information about other modes." |
4627 | 1628 | |||
4628 | 1629 | exit $? | ||
4629 | 1630 | } | 2481 | } |
4630 | 1631 | 2482 | ||
4633 | 1632 | # Now that we've collected a possible --mode arg, show help if necessary | 2483 | # Now that we've collected a possible --mode arg, show help if necessary |
4634 | 1633 | $opt_help && func_mode_help | 2484 | if $opt_help; then |
4635 | 2485 | if test "$opt_help" = :; then | ||
4636 | 2486 | func_mode_help | ||
4637 | 2487 | else | ||
4638 | 2488 | { | ||
4639 | 2489 | func_help noexit | ||
4640 | 2490 | for opt_mode in compile link execute install finish uninstall clean; do | ||
4641 | 2491 | func_mode_help | ||
4642 | 2492 | done | ||
4643 | 2493 | } | sed -n '1p; 2,$s/^Usage:/ or: /p' | ||
4644 | 2494 | { | ||
4645 | 2495 | func_help noexit | ||
4646 | 2496 | for opt_mode in compile link execute install finish uninstall clean; do | ||
4647 | 2497 | echo | ||
4648 | 2498 | func_mode_help | ||
4649 | 2499 | done | ||
4650 | 2500 | } | | ||
4651 | 2501 | sed '1d | ||
4652 | 2502 | /^When reporting/,/^Report/{ | ||
4653 | 2503 | H | ||
4654 | 2504 | d | ||
4655 | 2505 | } | ||
4656 | 2506 | $x | ||
4657 | 2507 | /information about other modes/d | ||
4658 | 2508 | /more detailed .*MODE/d | ||
4659 | 2509 | s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' | ||
4660 | 2510 | fi | ||
4661 | 2511 | exit $? | ||
4662 | 2512 | fi | ||
4663 | 1634 | 2513 | ||
4664 | 1635 | 2514 | ||
4665 | 1636 | # func_mode_execute arg... | 2515 | # func_mode_execute arg... |
4666 | @@ -1643,13 +2522,16 @@ | |||
4667 | 1643 | func_fatal_help "you must specify a COMMAND" | 2522 | func_fatal_help "you must specify a COMMAND" |
4668 | 1644 | 2523 | ||
4669 | 1645 | # Handle -dlopen flags immediately. | 2524 | # Handle -dlopen flags immediately. |
4671 | 1646 | for file in $execute_dlfiles; do | 2525 | for file in $opt_dlopen; do |
4672 | 1647 | test -f "$file" \ | 2526 | test -f "$file" \ |
4673 | 1648 | || func_fatal_help "\`$file' is not a file" | 2527 | || func_fatal_help "\`$file' is not a file" |
4674 | 1649 | 2528 | ||
4675 | 1650 | dir= | 2529 | dir= |
4676 | 1651 | case $file in | 2530 | case $file in |
4677 | 1652 | *.la) | 2531 | *.la) |
4678 | 2532 | func_resolve_sysroot "$file" | ||
4679 | 2533 | file=$func_resolve_sysroot_result | ||
4680 | 2534 | |||
4681 | 1653 | # Check to see that this really is a libtool archive. | 2535 | # Check to see that this really is a libtool archive. |
4682 | 1654 | func_lalib_unsafe_p "$file" \ | 2536 | func_lalib_unsafe_p "$file" \ |
4683 | 1655 | || func_fatal_help "\`$lib' is not a valid libtool archive" | 2537 | || func_fatal_help "\`$lib' is not a valid libtool archive" |
4684 | @@ -1671,7 +2553,7 @@ | |||
4685 | 1671 | dir="$func_dirname_result" | 2553 | dir="$func_dirname_result" |
4686 | 1672 | 2554 | ||
4687 | 1673 | if test -f "$dir/$objdir/$dlname"; then | 2555 | if test -f "$dir/$objdir/$dlname"; then |
4689 | 1674 | dir="$dir/$objdir" | 2556 | func_append dir "/$objdir" |
4690 | 1675 | else | 2557 | else |
4691 | 1676 | if test ! -f "$dir/$dlname"; then | 2558 | if test ! -f "$dir/$dlname"; then |
4692 | 1677 | func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" | 2559 | func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" |
4693 | @@ -1712,7 +2594,7 @@ | |||
4694 | 1712 | for file | 2594 | for file |
4695 | 1713 | do | 2595 | do |
4696 | 1714 | case $file in | 2596 | case $file in |
4698 | 1715 | -*) ;; | 2597 | -* | *.la | *.lo ) ;; |
4699 | 1716 | *) | 2598 | *) |
4700 | 1717 | # Do a test to see if this is really a libtool program. | 2599 | # Do a test to see if this is really a libtool program. |
4701 | 1718 | if func_ltwrapper_script_p "$file"; then | 2600 | if func_ltwrapper_script_p "$file"; then |
4702 | @@ -1728,8 +2610,7 @@ | |||
4703 | 1728 | ;; | 2610 | ;; |
4704 | 1729 | esac | 2611 | esac |
4705 | 1730 | # Quote arguments (to preserve shell metacharacters). | 2612 | # Quote arguments (to preserve shell metacharacters). |
4708 | 1731 | func_quote_for_eval "$file" | 2613 | func_append_quoted args "$file" |
4707 | 1732 | args="$args $func_quote_for_eval_result" | ||
4709 | 1733 | done | 2614 | done |
4710 | 1734 | 2615 | ||
4711 | 1735 | if test "X$opt_dry_run" = Xfalse; then | 2616 | if test "X$opt_dry_run" = Xfalse; then |
4712 | @@ -1754,29 +2635,66 @@ | |||
4713 | 1754 | # Display what would be done. | 2635 | # Display what would be done. |
4714 | 1755 | if test -n "$shlibpath_var"; then | 2636 | if test -n "$shlibpath_var"; then |
4715 | 1756 | eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" | 2637 | eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" |
4717 | 1757 | $ECHO "export $shlibpath_var" | 2638 | echo "export $shlibpath_var" |
4718 | 1758 | fi | 2639 | fi |
4719 | 1759 | $ECHO "$cmd$args" | 2640 | $ECHO "$cmd$args" |
4720 | 1760 | exit $EXIT_SUCCESS | 2641 | exit $EXIT_SUCCESS |
4721 | 1761 | fi | 2642 | fi |
4722 | 1762 | } | 2643 | } |
4723 | 1763 | 2644 | ||
4725 | 1764 | test "$mode" = execute && func_mode_execute ${1+"$@"} | 2645 | test "$opt_mode" = execute && func_mode_execute ${1+"$@"} |
4726 | 1765 | 2646 | ||
4727 | 1766 | 2647 | ||
4728 | 1767 | # func_mode_finish arg... | 2648 | # func_mode_finish arg... |
4729 | 1768 | func_mode_finish () | 2649 | func_mode_finish () |
4730 | 1769 | { | 2650 | { |
4731 | 1770 | $opt_debug | 2651 | $opt_debug |
4733 | 1771 | libdirs="$nonopt" | 2652 | libs= |
4734 | 2653 | libdirs= | ||
4735 | 1772 | admincmds= | 2654 | admincmds= |
4736 | 1773 | 2655 | ||
4737 | 2656 | for opt in "$nonopt" ${1+"$@"} | ||
4738 | 2657 | do | ||
4739 | 2658 | if test -d "$opt"; then | ||
4740 | 2659 | func_append libdirs " $opt" | ||
4741 | 2660 | |||
4742 | 2661 | elif test -f "$opt"; then | ||
4743 | 2662 | if func_lalib_unsafe_p "$opt"; then | ||
4744 | 2663 | func_append libs " $opt" | ||
4745 | 2664 | else | ||
4746 | 2665 | func_warning "\`$opt' is not a valid libtool archive" | ||
4747 | 2666 | fi | ||
4748 | 2667 | |||
4749 | 2668 | else | ||
4750 | 2669 | func_fatal_error "invalid argument \`$opt'" | ||
4751 | 2670 | fi | ||
4752 | 2671 | done | ||
4753 | 2672 | |||
4754 | 2673 | if test -n "$libs"; then | ||
4755 | 2674 | if test -n "$lt_sysroot"; then | ||
4756 | 2675 | sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` | ||
4757 | 2676 | sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" | ||
4758 | 2677 | else | ||
4759 | 2678 | sysroot_cmd= | ||
4760 | 2679 | fi | ||
4761 | 2680 | |||
4762 | 2681 | # Remove sysroot references | ||
4763 | 2682 | if $opt_dry_run; then | ||
4764 | 2683 | for lib in $libs; do | ||
4765 | 2684 | echo "removing references to $lt_sysroot and \`=' prefixes from $lib" | ||
4766 | 2685 | done | ||
4767 | 2686 | else | ||
4768 | 2687 | tmpdir=`func_mktempdir` | ||
4769 | 2688 | for lib in $libs; do | ||
4770 | 2689 | sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ | ||
4771 | 2690 | > $tmpdir/tmp-la | ||
4772 | 2691 | mv -f $tmpdir/tmp-la $lib | ||
4773 | 2692 | done | ||
4774 | 2693 | ${RM}r "$tmpdir" | ||
4775 | 2694 | fi | ||
4776 | 2695 | fi | ||
4777 | 2696 | |||
4778 | 1774 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | 2697 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then |
4779 | 1775 | for dir | ||
4780 | 1776 | do | ||
4781 | 1777 | libdirs="$libdirs $dir" | ||
4782 | 1778 | done | ||
4783 | 1779 | |||
4784 | 1780 | for libdir in $libdirs; do | 2698 | for libdir in $libdirs; do |
4785 | 1781 | if test -n "$finish_cmds"; then | 2699 | if test -n "$finish_cmds"; then |
4786 | 1782 | # Do each command in the finish commands. | 2700 | # Do each command in the finish commands. |
4787 | @@ -1786,7 +2704,7 @@ | |||
4788 | 1786 | if test -n "$finish_eval"; then | 2704 | if test -n "$finish_eval"; then |
4789 | 1787 | # Do the single finish_eval. | 2705 | # Do the single finish_eval. |
4790 | 1788 | eval cmds=\"$finish_eval\" | 2706 | eval cmds=\"$finish_eval\" |
4792 | 1789 | $opt_dry_run || eval "$cmds" || admincmds="$admincmds | 2707 | $opt_dry_run || eval "$cmds" || func_append admincmds " |
4793 | 1790 | $cmds" | 2708 | $cmds" |
4794 | 1791 | fi | 2709 | fi |
4795 | 1792 | done | 2710 | done |
4796 | @@ -1795,53 +2713,55 @@ | |||
4797 | 1795 | # Exit here if they wanted silent mode. | 2713 | # Exit here if they wanted silent mode. |
4798 | 1796 | $opt_silent && exit $EXIT_SUCCESS | 2714 | $opt_silent && exit $EXIT_SUCCESS |
4799 | 1797 | 2715 | ||
4843 | 1798 | $ECHO "X----------------------------------------------------------------------" | $Xsed | 2716 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then |
4844 | 1799 | $ECHO "Libraries have been installed in:" | 2717 | echo "----------------------------------------------------------------------" |
4845 | 1800 | for libdir in $libdirs; do | 2718 | echo "Libraries have been installed in:" |
4846 | 1801 | $ECHO " $libdir" | 2719 | for libdir in $libdirs; do |
4847 | 1802 | done | 2720 | $ECHO " $libdir" |
4848 | 1803 | $ECHO | 2721 | done |
4849 | 1804 | $ECHO "If you ever happen to want to link against installed libraries" | 2722 | echo |
4850 | 1805 | $ECHO "in a given directory, LIBDIR, you must either use libtool, and" | 2723 | echo "If you ever happen to want to link against installed libraries" |
4851 | 1806 | $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" | 2724 | echo "in a given directory, LIBDIR, you must either use libtool, and" |
4852 | 1807 | $ECHO "flag during linking and do at least one of the following:" | 2725 | echo "specify the full pathname of the library, or use the \`-LLIBDIR'" |
4853 | 1808 | if test -n "$shlibpath_var"; then | 2726 | echo "flag during linking and do at least one of the following:" |
4854 | 1809 | $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" | 2727 | if test -n "$shlibpath_var"; then |
4855 | 1810 | $ECHO " during execution" | 2728 | echo " - add LIBDIR to the \`$shlibpath_var' environment variable" |
4856 | 1811 | fi | 2729 | echo " during execution" |
4857 | 1812 | if test -n "$runpath_var"; then | 2730 | fi |
4858 | 1813 | $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" | 2731 | if test -n "$runpath_var"; then |
4859 | 1814 | $ECHO " during linking" | 2732 | echo " - add LIBDIR to the \`$runpath_var' environment variable" |
4860 | 1815 | fi | 2733 | echo " during linking" |
4861 | 1816 | if test -n "$hardcode_libdir_flag_spec"; then | 2734 | fi |
4862 | 1817 | libdir=LIBDIR | 2735 | if test -n "$hardcode_libdir_flag_spec"; then |
4863 | 1818 | eval flag=\"$hardcode_libdir_flag_spec\" | 2736 | libdir=LIBDIR |
4864 | 1819 | 2737 | eval flag=\"$hardcode_libdir_flag_spec\" | |
4865 | 1820 | $ECHO " - use the \`$flag' linker flag" | 2738 | |
4866 | 1821 | fi | 2739 | $ECHO " - use the \`$flag' linker flag" |
4867 | 1822 | if test -n "$admincmds"; then | 2740 | fi |
4868 | 1823 | $ECHO " - have your system administrator run these commands:$admincmds" | 2741 | if test -n "$admincmds"; then |
4869 | 1824 | fi | 2742 | $ECHO " - have your system administrator run these commands:$admincmds" |
4870 | 1825 | if test -f /etc/ld.so.conf; then | 2743 | fi |
4871 | 1826 | $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | 2744 | if test -f /etc/ld.so.conf; then |
4872 | 1827 | fi | 2745 | echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" |
4873 | 1828 | $ECHO | 2746 | fi |
4874 | 1829 | 2747 | echo | |
4875 | 1830 | $ECHO "See any operating system documentation about shared libraries for" | 2748 | |
4876 | 1831 | case $host in | 2749 | echo "See any operating system documentation about shared libraries for" |
4877 | 1832 | solaris2.[6789]|solaris2.1[0-9]) | 2750 | case $host in |
4878 | 1833 | $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" | 2751 | solaris2.[6789]|solaris2.1[0-9]) |
4879 | 1834 | $ECHO "pages." | 2752 | echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" |
4880 | 1835 | ;; | 2753 | echo "pages." |
4881 | 1836 | *) | 2754 | ;; |
4882 | 1837 | $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." | 2755 | *) |
4883 | 1838 | ;; | 2756 | echo "more information, such as the ld(1) and ld.so(8) manual pages." |
4884 | 1839 | esac | 2757 | ;; |
4885 | 1840 | $ECHO "X----------------------------------------------------------------------" | $Xsed | 2758 | esac |
4886 | 2759 | echo "----------------------------------------------------------------------" | ||
4887 | 2760 | fi | ||
4888 | 1841 | exit $EXIT_SUCCESS | 2761 | exit $EXIT_SUCCESS |
4889 | 1842 | } | 2762 | } |
4890 | 1843 | 2763 | ||
4892 | 1844 | test "$mode" = finish && func_mode_finish ${1+"$@"} | 2764 | test "$opt_mode" = finish && func_mode_finish ${1+"$@"} |
4893 | 1845 | 2765 | ||
4894 | 1846 | 2766 | ||
4895 | 1847 | # func_mode_install arg... | 2767 | # func_mode_install arg... |
4896 | @@ -1852,7 +2772,7 @@ | |||
4897 | 1852 | # install_prog (especially on Windows NT). | 2772 | # install_prog (especially on Windows NT). |
4898 | 1853 | if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || | 2773 | if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || |
4899 | 1854 | # Allow the use of GNU shtool's install command. | 2774 | # Allow the use of GNU shtool's install command. |
4901 | 1855 | $ECHO "X$nonopt" | $GREP shtool >/dev/null; then | 2775 | case $nonopt in *shtool*) :;; *) false;; esac; then |
4902 | 1856 | # Aesthetically quote it. | 2776 | # Aesthetically quote it. |
4903 | 1857 | func_quote_for_eval "$nonopt" | 2777 | func_quote_for_eval "$nonopt" |
4904 | 1858 | install_prog="$func_quote_for_eval_result " | 2778 | install_prog="$func_quote_for_eval_result " |
4905 | @@ -1866,7 +2786,12 @@ | |||
4906 | 1866 | # The real first argument should be the name of the installation program. | 2786 | # The real first argument should be the name of the installation program. |
4907 | 1867 | # Aesthetically quote it. | 2787 | # Aesthetically quote it. |
4908 | 1868 | func_quote_for_eval "$arg" | 2788 | func_quote_for_eval "$arg" |
4910 | 1869 | install_prog="$install_prog$func_quote_for_eval_result" | 2789 | func_append install_prog "$func_quote_for_eval_result" |
4911 | 2790 | install_shared_prog=$install_prog | ||
4912 | 2791 | case " $install_prog " in | ||
4913 | 2792 | *[\\\ /]cp\ *) install_cp=: ;; | ||
4914 | 2793 | *) install_cp=false ;; | ||
4915 | 2794 | esac | ||
4916 | 1870 | 2795 | ||
4917 | 1871 | # We need to accept at least all the BSD install flags. | 2796 | # We need to accept at least all the BSD install flags. |
4918 | 1872 | dest= | 2797 | dest= |
4919 | @@ -1876,10 +2801,12 @@ | |||
4920 | 1876 | install_type= | 2801 | install_type= |
4921 | 1877 | isdir=no | 2802 | isdir=no |
4922 | 1878 | stripme= | 2803 | stripme= |
4923 | 2804 | no_mode=: | ||
4924 | 1879 | for arg | 2805 | for arg |
4925 | 1880 | do | 2806 | do |
4926 | 2807 | arg2= | ||
4927 | 1881 | if test -n "$dest"; then | 2808 | if test -n "$dest"; then |
4929 | 1882 | files="$files $dest" | 2809 | func_append files " $dest" |
4930 | 1883 | dest=$arg | 2810 | dest=$arg |
4931 | 1884 | continue | 2811 | continue |
4932 | 1885 | fi | 2812 | fi |
4933 | @@ -1887,10 +2814,9 @@ | |||
4934 | 1887 | case $arg in | 2814 | case $arg in |
4935 | 1888 | -d) isdir=yes ;; | 2815 | -d) isdir=yes ;; |
4936 | 1889 | -f) | 2816 | -f) |
4941 | 1890 | case " $install_prog " in | 2817 | if $install_cp; then :; else |
4942 | 1891 | *[\\\ /]cp\ *) ;; | 2818 | prev=$arg |
4943 | 1892 | *) prev=$arg ;; | 2819 | fi |
4940 | 1893 | esac | ||
4944 | 1894 | ;; | 2820 | ;; |
4945 | 1895 | -g | -m | -o) | 2821 | -g | -m | -o) |
4946 | 1896 | prev=$arg | 2822 | prev=$arg |
4947 | @@ -1904,6 +2830,10 @@ | |||
4948 | 1904 | *) | 2830 | *) |
4949 | 1905 | # If the previous option needed an argument, then skip it. | 2831 | # If the previous option needed an argument, then skip it. |
4950 | 1906 | if test -n "$prev"; then | 2832 | if test -n "$prev"; then |
4951 | 2833 | if test "x$prev" = x-m && test -n "$install_override_mode"; then | ||
4952 | 2834 | arg2=$install_override_mode | ||
4953 | 2835 | no_mode=false | ||
4954 | 2836 | fi | ||
4955 | 1907 | prev= | 2837 | prev= |
4956 | 1908 | else | 2838 | else |
4957 | 1909 | dest=$arg | 2839 | dest=$arg |
4958 | @@ -1914,7 +2844,11 @@ | |||
4959 | 1914 | 2844 | ||
4960 | 1915 | # Aesthetically quote the argument. | 2845 | # Aesthetically quote the argument. |
4961 | 1916 | func_quote_for_eval "$arg" | 2846 | func_quote_for_eval "$arg" |
4963 | 1917 | install_prog="$install_prog $func_quote_for_eval_result" | 2847 | func_append install_prog " $func_quote_for_eval_result" |
4964 | 2848 | if test -n "$arg2"; then | ||
4965 | 2849 | func_quote_for_eval "$arg2" | ||
4966 | 2850 | fi | ||
4967 | 2851 | func_append install_shared_prog " $func_quote_for_eval_result" | ||
4968 | 1918 | done | 2852 | done |
4969 | 1919 | 2853 | ||
4970 | 1920 | test -z "$install_prog" && \ | 2854 | test -z "$install_prog" && \ |
4971 | @@ -1923,6 +2857,13 @@ | |||
4972 | 1923 | test -n "$prev" && \ | 2857 | test -n "$prev" && \ |
4973 | 1924 | func_fatal_help "the \`$prev' option requires an argument" | 2858 | func_fatal_help "the \`$prev' option requires an argument" |
4974 | 1925 | 2859 | ||
4975 | 2860 | if test -n "$install_override_mode" && $no_mode; then | ||
4976 | 2861 | if $install_cp; then :; else | ||
4977 | 2862 | func_quote_for_eval "$install_override_mode" | ||
4978 | 2863 | func_append install_shared_prog " -m $func_quote_for_eval_result" | ||
4979 | 2864 | fi | ||
4980 | 2865 | fi | ||
4981 | 2866 | |||
4982 | 1926 | if test -z "$files"; then | 2867 | if test -z "$files"; then |
4983 | 1927 | if test -z "$dest"; then | 2868 | if test -z "$dest"; then |
4984 | 1928 | func_fatal_help "no file or destination specified" | 2869 | func_fatal_help "no file or destination specified" |
4985 | @@ -1977,10 +2918,13 @@ | |||
4986 | 1977 | case $file in | 2918 | case $file in |
4987 | 1978 | *.$libext) | 2919 | *.$libext) |
4988 | 1979 | # Do the static libraries later. | 2920 | # Do the static libraries later. |
4990 | 1980 | staticlibs="$staticlibs $file" | 2921 | func_append staticlibs " $file" |
4991 | 1981 | ;; | 2922 | ;; |
4992 | 1982 | 2923 | ||
4993 | 1983 | *.la) | 2924 | *.la) |
4994 | 2925 | func_resolve_sysroot "$file" | ||
4995 | 2926 | file=$func_resolve_sysroot_result | ||
4996 | 2927 | |||
4997 | 1984 | # Check to see that this really is a libtool archive. | 2928 | # Check to see that this really is a libtool archive. |
4998 | 1985 | func_lalib_unsafe_p "$file" \ | 2929 | func_lalib_unsafe_p "$file" \ |
4999 | 1986 | || func_fatal_help "\`$file' is not a valid libtool archive" | 2930 | || func_fatal_help "\`$file' is not a valid libtool archive" |
5000 | @@ -1994,23 +2938,23 @@ |
The diff has been truncated for viewing.
Looks ok. Builds fine.