Merge lp:~jmccrohan/lcd4linux/debian into lp:~siretart/lcd4linux/debian
- debian
- Merge into debian
Proposed by
Jonathan McCrohan
Status: | Merged |
---|---|
Merged at revision: | 764 |
Proposed branch: | lp:~jmccrohan/lcd4linux/debian |
Merge into: | lp:~siretart/lcd4linux/debian |
Diff against target: |
2671 lines (+842/-335) 25 files modified
aclocal.m4 (+223/-64) configure (+165/-64) configure.in (+8/-4) debian/NEWS (+10/-0) debian/changelog (+13/-0) debian/control (+1/-1) debian/rules (+2/-0) drivers.m4 (+1/-4) drv_D4D.c (+295/-153) drv_EFN.c (+1/-1) drv_generic_parport.c (+56/-25) drv_generic_text.h (+2/-1) lcd4linux_i2c.h (+2/-1) plugin_huawei.c (+1/-1) plugin_pop3.c (+2/-2) plugins.m4 (+42/-5) svn_version.h (+1/-1) timer.h (+2/-1) widget_bar.h (+3/-1) widget_gpo.h (+2/-1) widget_icon.h (+2/-1) widget_image.h (+2/-1) widget_keypad.h (+2/-1) widget_text.h (+2/-1) widget_timer.h (+2/-1) |
To merge this branch: | bzr merge lp:~jmccrohan/lcd4linux/debian |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Reinhard Tartler | Approve | ||
Review via email: mp+86868@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
lp:~jmccrohan/lcd4linux/debian
updated
- 767. By Jonathan McCrohan
-
- raw port I/O in generic_parport driver disabled. Fixes FTBFS
issues on mipsel, powerpc, s390x and sparc.
* debian/NEWS added to announce change in generic_parport driver
Revision history for this message
Reinhard Tartler (siretart) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'aclocal.m4' | |||
2 | --- aclocal.m4 2011-08-26 07:26:25 +0000 | |||
3 | +++ aclocal.m4 2011-12-27 00:36:23 +0000 | |||
4 | @@ -1348,8 +1348,8 @@ | |||
5 | 1348 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 1348 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
6 | 1349 | # | 1349 | # |
7 | 1350 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 1350 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
10 | 1351 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | 1351 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
11 | 1352 | # Inc. | 1352 | # Foundation, Inc. |
12 | 1353 | # Written by Gordon Matzigkeit, 1996 | 1353 | # Written by Gordon Matzigkeit, 1996 |
13 | 1354 | # | 1354 | # |
14 | 1355 | # This file is free software; the Free Software Foundation gives | 1355 | # This file is free software; the Free Software Foundation gives |
15 | @@ -1358,8 +1358,8 @@ | |||
16 | 1358 | 1358 | ||
17 | 1359 | m4_define([_LT_COPYING], [dnl | 1359 | m4_define([_LT_COPYING], [dnl |
18 | 1360 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 1360 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
21 | 1361 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | 1361 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
22 | 1362 | # Inc. | 1362 | # Foundation, Inc. |
23 | 1363 | # Written by Gordon Matzigkeit, 1996 | 1363 | # Written by Gordon Matzigkeit, 1996 |
24 | 1364 | # | 1364 | # |
25 | 1365 | # This file is part of GNU Libtool. | 1365 | # This file is part of GNU Libtool. |
26 | @@ -1493,6 +1493,8 @@ | |||
27 | 1493 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | 1493 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
28 | 1494 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | 1494 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
29 | 1495 | 1495 | ||
30 | 1496 | _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl | ||
31 | 1497 | dnl | ||
32 | 1496 | _LT_DECL([], [host_alias], [0], [The host system])dnl | 1498 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
33 | 1497 | _LT_DECL([], [host], [0])dnl | 1499 | _LT_DECL([], [host], [0])dnl |
34 | 1498 | _LT_DECL([], [host_os], [0])dnl | 1500 | _LT_DECL([], [host_os], [0])dnl |
35 | @@ -1978,7 +1980,7 @@ | |||
36 | 1978 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | 1980 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
37 | 1979 | configured by $[0], generated by m4_PACKAGE_STRING. | 1981 | configured by $[0], generated by m4_PACKAGE_STRING. |
38 | 1980 | 1982 | ||
40 | 1981 | Copyright (C) 2010 Free Software Foundation, Inc. | 1983 | Copyright (C) 2011 Free Software Foundation, Inc. |
41 | 1982 | This config.lt script is free software; the Free Software Foundation | 1984 | This config.lt script is free software; the Free Software Foundation |
42 | 1983 | gives unlimited permision to copy, distribute and modify it." | 1985 | gives unlimited permision to copy, distribute and modify it." |
43 | 1984 | 1986 | ||
44 | @@ -2142,6 +2144,7 @@ | |||
45 | 2142 | m4_case([$1], | 2144 | m4_case([$1], |
46 | 2143 | [C], [_LT_LANG(C)], | 2145 | [C], [_LT_LANG(C)], |
47 | 2144 | [C++], [_LT_LANG(CXX)], | 2146 | [C++], [_LT_LANG(CXX)], |
48 | 2147 | [Go], [_LT_LANG(GO)], | ||
49 | 2145 | [Java], [_LT_LANG(GCJ)], | 2148 | [Java], [_LT_LANG(GCJ)], |
50 | 2146 | [Fortran 77], [_LT_LANG(F77)], | 2149 | [Fortran 77], [_LT_LANG(F77)], |
51 | 2147 | [Fortran], [_LT_LANG(FC)], | 2150 | [Fortran], [_LT_LANG(FC)], |
52 | @@ -2163,6 +2166,29 @@ | |||
53 | 2163 | ])# _LT_LANG | 2166 | ])# _LT_LANG |
54 | 2164 | 2167 | ||
55 | 2165 | 2168 | ||
56 | 2169 | m4_ifndef([AC_PROG_GO], [ | ||
57 | 2170 | # NOTE: This macro has been submitted for inclusion into # | ||
58 | 2171 | # GNU Autoconf as AC_PROG_GO. When it is available in # | ||
59 | 2172 | # a released version of Autoconf we should remove this # | ||
60 | 2173 | # macro and use it instead. # | ||
61 | 2174 | m4_defun([AC_PROG_GO], | ||
62 | 2175 | [AC_LANG_PUSH(Go)dnl | ||
63 | 2176 | AC_ARG_VAR([GOC], [Go compiler command])dnl | ||
64 | 2177 | AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl | ||
65 | 2178 | _AC_ARG_VAR_LDFLAGS()dnl | ||
66 | 2179 | AC_CHECK_TOOL(GOC, gccgo) | ||
67 | 2180 | if test -z "$GOC"; then | ||
68 | 2181 | if test -n "$ac_tool_prefix"; then | ||
69 | 2182 | AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) | ||
70 | 2183 | fi | ||
71 | 2184 | fi | ||
72 | 2185 | if test -z "$GOC"; then | ||
73 | 2186 | AC_CHECK_PROG(GOC, gccgo, gccgo, false) | ||
74 | 2187 | fi | ||
75 | 2188 | ])#m4_defun | ||
76 | 2189 | ])#m4_ifndef | ||
77 | 2190 | |||
78 | 2191 | |||
79 | 2166 | # _LT_LANG_DEFAULT_CONFIG | 2192 | # _LT_LANG_DEFAULT_CONFIG |
80 | 2167 | # ----------------------- | 2193 | # ----------------------- |
81 | 2168 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | 2194 | m4_defun([_LT_LANG_DEFAULT_CONFIG], |
82 | @@ -2193,6 +2219,10 @@ | |||
83 | 2193 | m4_ifdef([LT_PROG_GCJ], | 2219 | m4_ifdef([LT_PROG_GCJ], |
84 | 2194 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | 2220 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
85 | 2195 | 2221 | ||
86 | 2222 | AC_PROVIDE_IFELSE([AC_PROG_GO], | ||
87 | 2223 | [LT_LANG(GO)], | ||
88 | 2224 | [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) | ||
89 | 2225 | |||
90 | 2196 | AC_PROVIDE_IFELSE([LT_PROG_RC], | 2226 | AC_PROVIDE_IFELSE([LT_PROG_RC], |
91 | 2197 | [LT_LANG(RC)], | 2227 | [LT_LANG(RC)], |
92 | 2198 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | 2228 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
93 | @@ -2295,7 +2325,13 @@ | |||
94 | 2295 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 2325 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
95 | 2296 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 2326 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
96 | 2297 | _lt_result=$? | 2327 | _lt_result=$? |
98 | 2298 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | 2328 | # If there is a non-empty error log, and "single_module" |
99 | 2329 | # appears in it, assume the flag caused a linker warning | ||
100 | 2330 | if test -s conftest.err && $GREP single_module conftest.err; then | ||
101 | 2331 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
102 | 2332 | # Otherwise, if the output was created with a 0 exit code from | ||
103 | 2333 | # the compiler, it worked. | ||
104 | 2334 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | ||
105 | 2299 | lt_cv_apple_cc_single_mod=yes | 2335 | lt_cv_apple_cc_single_mod=yes |
106 | 2300 | else | 2336 | else |
107 | 2301 | cat conftest.err >&AS_MESSAGE_LOG_FD | 2337 | cat conftest.err >&AS_MESSAGE_LOG_FD |
108 | @@ -2303,6 +2339,7 @@ | |||
109 | 2303 | rm -rf libconftest.dylib* | 2339 | rm -rf libconftest.dylib* |
110 | 2304 | rm -f conftest.* | 2340 | rm -f conftest.* |
111 | 2305 | fi]) | 2341 | fi]) |
112 | 2342 | |||
113 | 2306 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | 2343 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
114 | 2307 | [lt_cv_ld_exported_symbols_list], | 2344 | [lt_cv_ld_exported_symbols_list], |
115 | 2308 | [lt_cv_ld_exported_symbols_list=no | 2345 | [lt_cv_ld_exported_symbols_list=no |
116 | @@ -2314,6 +2351,7 @@ | |||
117 | 2314 | [lt_cv_ld_exported_symbols_list=no]) | 2351 | [lt_cv_ld_exported_symbols_list=no]) |
118 | 2315 | LDFLAGS="$save_LDFLAGS" | 2352 | LDFLAGS="$save_LDFLAGS" |
119 | 2316 | ]) | 2353 | ]) |
120 | 2354 | |||
121 | 2317 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | 2355 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
122 | 2318 | [lt_cv_ld_force_load=no | 2356 | [lt_cv_ld_force_load=no |
123 | 2319 | cat > conftest.c << _LT_EOF | 2357 | cat > conftest.c << _LT_EOF |
124 | @@ -2331,7 +2369,9 @@ | |||
125 | 2331 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | 2369 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
126 | 2332 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | 2370 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
127 | 2333 | _lt_result=$? | 2371 | _lt_result=$? |
129 | 2334 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | 2372 | if test -s conftest.err && $GREP force_load conftest.err; then |
130 | 2373 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
131 | 2374 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | ||
132 | 2335 | lt_cv_ld_force_load=yes | 2375 | lt_cv_ld_force_load=yes |
133 | 2336 | else | 2376 | else |
134 | 2337 | cat conftest.err >&AS_MESSAGE_LOG_FD | 2377 | cat conftest.err >&AS_MESSAGE_LOG_FD |
135 | @@ -2376,8 +2416,8 @@ | |||
136 | 2376 | ]) | 2416 | ]) |
137 | 2377 | 2417 | ||
138 | 2378 | 2418 | ||
141 | 2379 | # _LT_DARWIN_LINKER_FEATURES | 2419 | # _LT_DARWIN_LINKER_FEATURES([TAG]) |
142 | 2380 | # -------------------------- | 2420 | # --------------------------------- |
143 | 2381 | # Checks for linker and compiler features on darwin | 2421 | # Checks for linker and compiler features on darwin |
144 | 2382 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | 2422 | m4_defun([_LT_DARWIN_LINKER_FEATURES], |
145 | 2383 | [ | 2423 | [ |
146 | @@ -2388,6 +2428,8 @@ | |||
147 | 2388 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 2428 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
148 | 2389 | if test "$lt_cv_ld_force_load" = "yes"; then | 2429 | if test "$lt_cv_ld_force_load" = "yes"; then |
149 | 2390 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | 2430 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
150 | 2431 | m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], | ||
151 | 2432 | [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) | ||
152 | 2391 | else | 2433 | else |
153 | 2392 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | 2434 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
154 | 2393 | fi | 2435 | fi |
155 | @@ -2671,14 +2713,27 @@ | |||
156 | 2671 | CFLAGS="$SAVE_CFLAGS" | 2713 | CFLAGS="$SAVE_CFLAGS" |
157 | 2672 | fi | 2714 | fi |
158 | 2673 | ;; | 2715 | ;; |
160 | 2674 | sparc*-*solaris*) | 2716 | *-*solaris*) |
161 | 2675 | # Find out which ABI we are using. | 2717 | # Find out which ABI we are using. |
162 | 2676 | echo 'int i;' > conftest.$ac_ext | 2718 | echo 'int i;' > conftest.$ac_ext |
163 | 2677 | if AC_TRY_EVAL(ac_compile); then | 2719 | if AC_TRY_EVAL(ac_compile); then |
164 | 2678 | case `/usr/bin/file conftest.o` in | 2720 | case `/usr/bin/file conftest.o` in |
165 | 2679 | *64-bit*) | 2721 | *64-bit*) |
166 | 2680 | case $lt_cv_prog_gnu_ld in | 2722 | case $lt_cv_prog_gnu_ld in |
168 | 2681 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | 2723 | yes*) |
169 | 2724 | case $host in | ||
170 | 2725 | i?86-*-solaris*) | ||
171 | 2726 | LD="${LD-ld} -m elf_x86_64" | ||
172 | 2727 | ;; | ||
173 | 2728 | sparc*-*-solaris*) | ||
174 | 2729 | LD="${LD-ld} -m elf64_sparc" | ||
175 | 2730 | ;; | ||
176 | 2731 | esac | ||
177 | 2732 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | ||
178 | 2733 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | ||
179 | 2734 | LD="${LD-ld}_sol2" | ||
180 | 2735 | fi | ||
181 | 2736 | ;; | ||
182 | 2682 | *) | 2737 | *) |
183 | 2683 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 2738 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
184 | 2684 | LD="${LD-ld} -64" | 2739 | LD="${LD-ld} -64" |
185 | @@ -2755,13 +2810,13 @@ | |||
186 | 2755 | if test -n "$RANLIB"; then | 2810 | if test -n "$RANLIB"; then |
187 | 2756 | case $host_os in | 2811 | case $host_os in |
188 | 2757 | openbsd*) | 2812 | openbsd*) |
190 | 2758 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 2813 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
191 | 2759 | ;; | 2814 | ;; |
192 | 2760 | *) | 2815 | *) |
194 | 2761 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 2816 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
195 | 2762 | ;; | 2817 | ;; |
196 | 2763 | esac | 2818 | esac |
198 | 2764 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 2819 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
199 | 2765 | fi | 2820 | fi |
200 | 2766 | 2821 | ||
201 | 2767 | case $host_os in | 2822 | case $host_os in |
202 | @@ -2941,6 +2996,11 @@ | |||
203 | 2941 | lt_cv_sys_max_cmd_len=196608 | 2996 | lt_cv_sys_max_cmd_len=196608 |
204 | 2942 | ;; | 2997 | ;; |
205 | 2943 | 2998 | ||
206 | 2999 | os2*) | ||
207 | 3000 | # The test takes a long time on OS/2. | ||
208 | 3001 | lt_cv_sys_max_cmd_len=8192 | ||
209 | 3002 | ;; | ||
210 | 3003 | |||
211 | 2944 | osf*) | 3004 | osf*) |
212 | 2945 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 3005 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
213 | 2946 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 3006 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
214 | @@ -2980,7 +3040,7 @@ | |||
215 | 2980 | # If test is not a shell built-in, we'll probably end up computing a | 3040 | # If test is not a shell built-in, we'll probably end up computing a |
216 | 2981 | # maximum length that is only half of the actual maximum length, but | 3041 | # maximum length that is only half of the actual maximum length, but |
217 | 2982 | # we can't tell. | 3042 | # we can't tell. |
219 | 2983 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | 3043 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
220 | 2984 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | 3044 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
221 | 2985 | test $i != 17 # 1/2 MB should be enough | 3045 | test $i != 17 # 1/2 MB should be enough |
222 | 2986 | do | 3046 | do |
223 | @@ -3526,7 +3586,7 @@ | |||
224 | 3526 | 3586 | ||
225 | 3527 | case $host_os in | 3587 | case $host_os in |
226 | 3528 | aix3*) | 3588 | aix3*) |
228 | 3529 | version_type=linux | 3589 | version_type=linux # correct to gnu/linux during the next big refactor |
229 | 3530 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 3590 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
230 | 3531 | shlibpath_var=LIBPATH | 3591 | shlibpath_var=LIBPATH |
231 | 3532 | 3592 | ||
232 | @@ -3535,7 +3595,7 @@ | |||
233 | 3535 | ;; | 3595 | ;; |
234 | 3536 | 3596 | ||
235 | 3537 | aix[[4-9]]*) | 3597 | aix[[4-9]]*) |
237 | 3538 | version_type=linux | 3598 | version_type=linux # correct to gnu/linux during the next big refactor |
238 | 3539 | need_lib_prefix=no | 3599 | need_lib_prefix=no |
239 | 3540 | need_version=no | 3600 | need_version=no |
240 | 3541 | hardcode_into_libs=yes | 3601 | hardcode_into_libs=yes |
241 | @@ -3600,7 +3660,7 @@ | |||
242 | 3600 | ;; | 3660 | ;; |
243 | 3601 | 3661 | ||
244 | 3602 | bsdi[[45]]*) | 3662 | bsdi[[45]]*) |
246 | 3603 | version_type=linux | 3663 | version_type=linux # correct to gnu/linux during the next big refactor |
247 | 3604 | need_version=no | 3664 | need_version=no |
248 | 3605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 3665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
249 | 3606 | soname_spec='${libname}${release}${shared_ext}$major' | 3666 | soname_spec='${libname}${release}${shared_ext}$major' |
250 | @@ -3739,7 +3799,7 @@ | |||
251 | 3739 | ;; | 3799 | ;; |
252 | 3740 | 3800 | ||
253 | 3741 | dgux*) | 3801 | dgux*) |
255 | 3742 | version_type=linux | 3802 | version_type=linux # correct to gnu/linux during the next big refactor |
256 | 3743 | need_lib_prefix=no | 3803 | need_lib_prefix=no |
257 | 3744 | need_version=no | 3804 | need_version=no |
258 | 3745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 3805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
259 | @@ -3747,10 +3807,6 @@ | |||
260 | 3747 | shlibpath_var=LD_LIBRARY_PATH | 3807 | shlibpath_var=LD_LIBRARY_PATH |
261 | 3748 | ;; | 3808 | ;; |
262 | 3749 | 3809 | ||
263 | 3750 | freebsd1*) | ||
264 | 3751 | dynamic_linker=no | ||
265 | 3752 | ;; | ||
266 | 3753 | |||
267 | 3754 | freebsd* | dragonfly*) | 3810 | freebsd* | dragonfly*) |
268 | 3755 | # DragonFly does not have aout. When/if they implement a new | 3811 | # DragonFly does not have aout. When/if they implement a new |
269 | 3756 | # versioning mechanism, adjust this. | 3812 | # versioning mechanism, adjust this. |
270 | @@ -3758,7 +3814,7 @@ | |||
271 | 3758 | objformat=`/usr/bin/objformat` | 3814 | objformat=`/usr/bin/objformat` |
272 | 3759 | else | 3815 | else |
273 | 3760 | case $host_os in | 3816 | case $host_os in |
275 | 3761 | freebsd[[123]]*) objformat=aout ;; | 3817 | freebsd[[23]].*) objformat=aout ;; |
276 | 3762 | *) objformat=elf ;; | 3818 | *) objformat=elf ;; |
277 | 3763 | esac | 3819 | esac |
278 | 3764 | fi | 3820 | fi |
279 | @@ -3776,7 +3832,7 @@ | |||
280 | 3776 | esac | 3832 | esac |
281 | 3777 | shlibpath_var=LD_LIBRARY_PATH | 3833 | shlibpath_var=LD_LIBRARY_PATH |
282 | 3778 | case $host_os in | 3834 | case $host_os in |
284 | 3779 | freebsd2*) | 3835 | freebsd2.*) |
285 | 3780 | shlibpath_overrides_runpath=yes | 3836 | shlibpath_overrides_runpath=yes |
286 | 3781 | ;; | 3837 | ;; |
287 | 3782 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | 3838 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
288 | @@ -3796,7 +3852,7 @@ | |||
289 | 3796 | ;; | 3852 | ;; |
290 | 3797 | 3853 | ||
291 | 3798 | gnu*) | 3854 | gnu*) |
293 | 3799 | version_type=linux | 3855 | version_type=linux # correct to gnu/linux during the next big refactor |
294 | 3800 | need_lib_prefix=no | 3856 | need_lib_prefix=no |
295 | 3801 | need_version=no | 3857 | need_version=no |
296 | 3802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 3858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
297 | @@ -3807,7 +3863,7 @@ | |||
298 | 3807 | ;; | 3863 | ;; |
299 | 3808 | 3864 | ||
300 | 3809 | haiku*) | 3865 | haiku*) |
302 | 3810 | version_type=linux | 3866 | version_type=linux # correct to gnu/linux during the next big refactor |
303 | 3811 | need_lib_prefix=no | 3867 | need_lib_prefix=no |
304 | 3812 | need_version=no | 3868 | need_version=no |
305 | 3813 | dynamic_linker="$host_os runtime_loader" | 3869 | dynamic_linker="$host_os runtime_loader" |
306 | @@ -3868,7 +3924,7 @@ | |||
307 | 3868 | ;; | 3924 | ;; |
308 | 3869 | 3925 | ||
309 | 3870 | interix[[3-9]]*) | 3926 | interix[[3-9]]*) |
311 | 3871 | version_type=linux | 3927 | version_type=linux # correct to gnu/linux during the next big refactor |
312 | 3872 | need_lib_prefix=no | 3928 | need_lib_prefix=no |
313 | 3873 | need_version=no | 3929 | need_version=no |
314 | 3874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 3930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
315 | @@ -3884,7 +3940,7 @@ | |||
316 | 3884 | nonstopux*) version_type=nonstopux ;; | 3940 | nonstopux*) version_type=nonstopux ;; |
317 | 3885 | *) | 3941 | *) |
318 | 3886 | if test "$lt_cv_prog_gnu_ld" = yes; then | 3942 | if test "$lt_cv_prog_gnu_ld" = yes; then |
320 | 3887 | version_type=linux | 3943 | version_type=linux # correct to gnu/linux during the next big refactor |
321 | 3888 | else | 3944 | else |
322 | 3889 | version_type=irix | 3945 | version_type=irix |
323 | 3890 | fi ;; | 3946 | fi ;; |
324 | @@ -3921,9 +3977,9 @@ | |||
325 | 3921 | dynamic_linker=no | 3977 | dynamic_linker=no |
326 | 3922 | ;; | 3978 | ;; |
327 | 3923 | 3979 | ||
329 | 3924 | # This must be Linux ELF. | 3980 | # This must be glibc/ELF. |
330 | 3925 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 3981 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
332 | 3926 | version_type=linux | 3982 | version_type=linux # correct to gnu/linux during the next big refactor |
333 | 3927 | need_lib_prefix=no | 3983 | need_lib_prefix=no |
334 | 3928 | need_version=no | 3984 | need_version=no |
335 | 3929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 3985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
336 | @@ -3998,7 +4054,7 @@ | |||
337 | 3998 | ;; | 4054 | ;; |
338 | 3999 | 4055 | ||
339 | 4000 | newsos6) | 4056 | newsos6) |
341 | 4001 | version_type=linux | 4057 | version_type=linux # correct to gnu/linux during the next big refactor |
342 | 4002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
343 | 4003 | shlibpath_var=LD_LIBRARY_PATH | 4059 | shlibpath_var=LD_LIBRARY_PATH |
344 | 4004 | shlibpath_overrides_runpath=yes | 4060 | shlibpath_overrides_runpath=yes |
345 | @@ -4067,7 +4123,7 @@ | |||
346 | 4067 | ;; | 4123 | ;; |
347 | 4068 | 4124 | ||
348 | 4069 | solaris*) | 4125 | solaris*) |
350 | 4070 | version_type=linux | 4126 | version_type=linux # correct to gnu/linux during the next big refactor |
351 | 4071 | need_lib_prefix=no | 4127 | need_lib_prefix=no |
352 | 4072 | need_version=no | 4128 | need_version=no |
353 | 4073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
354 | @@ -4092,7 +4148,7 @@ | |||
355 | 4092 | ;; | 4148 | ;; |
356 | 4093 | 4149 | ||
357 | 4094 | sysv4 | sysv4.3*) | 4150 | sysv4 | sysv4.3*) |
359 | 4095 | version_type=linux | 4151 | version_type=linux # correct to gnu/linux during the next big refactor |
360 | 4096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
361 | 4097 | soname_spec='${libname}${release}${shared_ext}$major' | 4153 | soname_spec='${libname}${release}${shared_ext}$major' |
362 | 4098 | shlibpath_var=LD_LIBRARY_PATH | 4154 | shlibpath_var=LD_LIBRARY_PATH |
363 | @@ -4116,7 +4172,7 @@ | |||
364 | 4116 | 4172 | ||
365 | 4117 | sysv4*MP*) | 4173 | sysv4*MP*) |
366 | 4118 | if test -d /usr/nec ;then | 4174 | if test -d /usr/nec ;then |
368 | 4119 | version_type=linux | 4175 | version_type=linux # correct to gnu/linux during the next big refactor |
369 | 4120 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 4176 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
370 | 4121 | soname_spec='$libname${shared_ext}.$major' | 4177 | soname_spec='$libname${shared_ext}.$major' |
371 | 4122 | shlibpath_var=LD_LIBRARY_PATH | 4178 | shlibpath_var=LD_LIBRARY_PATH |
372 | @@ -4147,7 +4203,7 @@ | |||
373 | 4147 | 4203 | ||
374 | 4148 | tpf*) | 4204 | tpf*) |
375 | 4149 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | 4205 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
377 | 4150 | version_type=linux | 4206 | version_type=linux # correct to gnu/linux during the next big refactor |
378 | 4151 | need_lib_prefix=no | 4207 | need_lib_prefix=no |
379 | 4152 | need_version=no | 4208 | need_version=no |
380 | 4153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
381 | @@ -4157,7 +4213,7 @@ | |||
382 | 4157 | ;; | 4213 | ;; |
383 | 4158 | 4214 | ||
384 | 4159 | uts4*) | 4215 | uts4*) |
386 | 4160 | version_type=linux | 4216 | version_type=linux # correct to gnu/linux during the next big refactor |
387 | 4161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 4217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
388 | 4162 | soname_spec='${libname}${release}${shared_ext}$major' | 4218 | soname_spec='${libname}${release}${shared_ext}$major' |
389 | 4163 | shlibpath_var=LD_LIBRARY_PATH | 4219 | shlibpath_var=LD_LIBRARY_PATH |
390 | @@ -4579,7 +4635,7 @@ | |||
391 | 4579 | lt_cv_deplibs_check_method=pass_all | 4635 | lt_cv_deplibs_check_method=pass_all |
392 | 4580 | ;; | 4636 | ;; |
393 | 4581 | 4637 | ||
395 | 4582 | # This must be Linux ELF. | 4638 | # This must be glibc/ELF. |
396 | 4583 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 4639 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
397 | 4584 | lt_cv_deplibs_check_method=pass_all | 4640 | lt_cv_deplibs_check_method=pass_all |
398 | 4585 | ;; | 4641 | ;; |
399 | @@ -4999,6 +5055,7 @@ | |||
400 | 4999 | # which start with @ or ?. | 5055 | # which start with @ or ?. |
401 | 5000 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | 5056 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
402 | 5001 | " {last_section=section; section=\$ 3};"\ | 5057 | " {last_section=section; section=\$ 3};"\ |
403 | 5058 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | ||
404 | 5002 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 5059 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
405 | 5003 | " \$ 0!~/External *\|/{next};"\ | 5060 | " \$ 0!~/External *\|/{next};"\ |
406 | 5004 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 5061 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
407 | @@ -5583,7 +5640,9 @@ | |||
408 | 5583 | case $cc_basename in | 5640 | case $cc_basename in |
409 | 5584 | nvcc*) # Cuda Compiler Driver 2.2 | 5641 | nvcc*) # Cuda Compiler Driver 2.2 |
410 | 5585 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | 5642 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
412 | 5586 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | 5643 | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
413 | 5644 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" | ||
414 | 5645 | fi | ||
415 | 5587 | ;; | 5646 | ;; |
416 | 5588 | esac | 5647 | esac |
417 | 5589 | else | 5648 | else |
418 | @@ -5675,18 +5734,33 @@ | |||
419 | 5675 | ;; | 5734 | ;; |
420 | 5676 | *) | 5735 | *) |
421 | 5677 | case `$CC -V 2>&1 | sed 5q` in | 5736 | case `$CC -V 2>&1 | sed 5q` in |
423 | 5678 | *Sun\ F* | *Sun*Fortran*) | 5737 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
424 | 5679 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | 5738 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
425 | 5680 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5739 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
426 | 5681 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5740 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
427 | 5682 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | 5741 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
428 | 5683 | ;; | 5742 | ;; |
429 | 5743 | *Sun\ F* | *Sun*Fortran*) | ||
430 | 5744 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
431 | 5745 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
432 | 5746 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
433 | 5747 | ;; | ||
434 | 5684 | *Sun\ C*) | 5748 | *Sun\ C*) |
435 | 5685 | # Sun C 5.9 | 5749 | # Sun C 5.9 |
436 | 5686 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5750 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
437 | 5687 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5751 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
438 | 5688 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5752 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
439 | 5689 | ;; | 5753 | ;; |
440 | 5754 | *Intel*\ [[CF]]*Compiler*) | ||
441 | 5755 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
442 | 5756 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
443 | 5757 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
444 | 5758 | ;; | ||
445 | 5759 | *Portland\ Group*) | ||
446 | 5760 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
447 | 5761 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
448 | 5762 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
449 | 5763 | ;; | ||
450 | 5690 | esac | 5764 | esac |
451 | 5691 | ;; | 5765 | ;; |
452 | 5692 | esac | 5766 | esac |
453 | @@ -5846,7 +5920,9 @@ | |||
454 | 5846 | ;; | 5920 | ;; |
455 | 5847 | cygwin* | mingw* | cegcc*) | 5921 | cygwin* | mingw* | cegcc*) |
456 | 5848 | case $cc_basename in | 5922 | case $cc_basename in |
458 | 5849 | cl*) ;; | 5923 | cl*) |
459 | 5924 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | ||
460 | 5925 | ;; | ||
461 | 5850 | *) | 5926 | *) |
462 | 5851 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' | 5927 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' |
463 | 5852 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | 5928 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
464 | @@ -5874,7 +5950,6 @@ | |||
465 | 5874 | _LT_TAGVAR(hardcode_direct, $1)=no | 5950 | _LT_TAGVAR(hardcode_direct, $1)=no |
466 | 5875 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 5951 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
467 | 5876 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5952 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
468 | 5877 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
469 | 5878 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 5953 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
470 | 5879 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 5954 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
471 | 5880 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 5955 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
472 | @@ -6128,8 +6203,7 @@ | |||
473 | 6128 | xlf* | bgf* | bgxlf* | mpixlf*) | 6203 | xlf* | bgf* | bgxlf* | mpixlf*) |
474 | 6129 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 6204 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
475 | 6130 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | 6205 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
478 | 6131 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 6206 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
477 | 6132 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
479 | 6133 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 6207 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
480 | 6134 | if test "x$supports_anon_versioning" = xyes; then | 6208 | if test "x$supports_anon_versioning" = xyes; then |
481 | 6135 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | 6209 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
482 | @@ -6425,6 +6499,7 @@ | |||
483 | 6425 | # The linker will not automatically build a static lib if we build a DLL. | 6499 | # The linker will not automatically build a static lib if we build a DLL. |
484 | 6426 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | 6500 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
485 | 6427 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 6501 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
486 | 6502 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | ||
487 | 6428 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' | 6503 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' |
488 | 6429 | # Don't use ranlib | 6504 | # Don't use ranlib |
489 | 6430 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | 6505 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
490 | @@ -6471,10 +6546,6 @@ | |||
491 | 6471 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6546 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
492 | 6472 | ;; | 6547 | ;; |
493 | 6473 | 6548 | ||
494 | 6474 | freebsd1*) | ||
495 | 6475 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
496 | 6476 | ;; | ||
497 | 6477 | |||
498 | 6478 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 6549 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
499 | 6479 | # support. Future versions do this automatically, but an explicit c++rt0.o | 6550 | # support. Future versions do this automatically, but an explicit c++rt0.o |
500 | 6480 | # does not break anything, and helps significantly (at the cost of a little | 6551 | # does not break anything, and helps significantly (at the cost of a little |
501 | @@ -6487,7 +6558,7 @@ | |||
502 | 6487 | ;; | 6558 | ;; |
503 | 6488 | 6559 | ||
504 | 6489 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 6560 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
506 | 6490 | freebsd2*) | 6561 | freebsd2.*) |
507 | 6491 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 6562 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
508 | 6492 | _LT_TAGVAR(hardcode_direct, $1)=yes | 6563 | _LT_TAGVAR(hardcode_direct, $1)=yes |
509 | 6493 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | 6564 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
510 | @@ -6526,7 +6597,6 @@ | |||
511 | 6526 | fi | 6597 | fi |
512 | 6527 | if test "$with_gnu_ld" = no; then | 6598 | if test "$with_gnu_ld" = no; then |
513 | 6528 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6599 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
514 | 6529 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
515 | 6530 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6600 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
516 | 6531 | _LT_TAGVAR(hardcode_direct, $1)=yes | 6601 | _LT_TAGVAR(hardcode_direct, $1)=yes |
517 | 6532 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 6602 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
518 | @@ -6968,9 +7038,6 @@ | |||
519 | 6968 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | 7038 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
520 | 6969 | [Flag to hardcode $libdir into a binary during linking. | 7039 | [Flag to hardcode $libdir into a binary during linking. |
521 | 6970 | This must work even if $libdir does not exist]) | 7040 | This must work even if $libdir does not exist]) |
522 | 6971 | _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], | ||
523 | 6972 | [[If ld is used when linking, flag to hardcode $libdir into a binary | ||
524 | 6973 | during linking. This must work even if $libdir does not exist]]) | ||
525 | 6974 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], | 7041 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
526 | 6975 | [Whether we need a single "-rpath" flag with a separated argument]) | 7042 | [Whether we need a single "-rpath" flag with a separated argument]) |
527 | 6976 | _LT_TAGDECL([], [hardcode_direct], [0], | 7043 | _LT_TAGDECL([], [hardcode_direct], [0], |
528 | @@ -7124,7 +7191,6 @@ | |||
529 | 7124 | _LT_TAGVAR(hardcode_direct, $1)=no | 7191 | _LT_TAGVAR(hardcode_direct, $1)=no |
530 | 7125 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7192 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
531 | 7126 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7193 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
532 | 7127 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
533 | 7128 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7194 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
534 | 7129 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 7195 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
535 | 7130 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 7196 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
536 | @@ -7494,7 +7560,7 @@ | |||
537 | 7494 | esac | 7560 | esac |
538 | 7495 | ;; | 7561 | ;; |
539 | 7496 | 7562 | ||
541 | 7497 | freebsd[[12]]*) | 7563 | freebsd2.*) |
542 | 7498 | # C++ shared libraries reported to be fairly broken before | 7564 | # C++ shared libraries reported to be fairly broken before |
543 | 7499 | # switch to ELF | 7565 | # switch to ELF |
544 | 7500 | _LT_TAGVAR(ld_shlibs, $1)=no | 7566 | _LT_TAGVAR(ld_shlibs, $1)=no |
545 | @@ -8255,12 +8321,18 @@ | |||
546 | 8255 | } | 8321 | } |
547 | 8256 | }; | 8322 | }; |
548 | 8257 | _LT_EOF | 8323 | _LT_EOF |
549 | 8324 | ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF | ||
550 | 8325 | package foo | ||
551 | 8326 | func foo() { | ||
552 | 8327 | } | ||
553 | 8328 | _LT_EOF | ||
554 | 8258 | ]) | 8329 | ]) |
555 | 8259 | 8330 | ||
556 | 8260 | _lt_libdeps_save_CFLAGS=$CFLAGS | 8331 | _lt_libdeps_save_CFLAGS=$CFLAGS |
557 | 8261 | case "$CC $CFLAGS " in #( | 8332 | case "$CC $CFLAGS " in #( |
558 | 8262 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | 8333 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
559 | 8263 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | 8334 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
560 | 8335 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | ||
561 | 8264 | esac | 8336 | esac |
562 | 8265 | 8337 | ||
563 | 8266 | dnl Parse the compiler output and extract the necessary | 8338 | dnl Parse the compiler output and extract the necessary |
564 | @@ -8457,7 +8529,6 @@ | |||
565 | 8457 | _LT_TAGVAR(hardcode_direct, $1)=no | 8529 | _LT_TAGVAR(hardcode_direct, $1)=no |
566 | 8458 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 8530 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
567 | 8459 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 8531 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
568 | 8460 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
569 | 8461 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 8532 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
570 | 8462 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 8533 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
571 | 8463 | _LT_TAGVAR(hardcode_automatic, $1)=no | 8534 | _LT_TAGVAR(hardcode_automatic, $1)=no |
572 | @@ -8590,7 +8661,6 @@ | |||
573 | 8590 | _LT_TAGVAR(hardcode_direct, $1)=no | 8661 | _LT_TAGVAR(hardcode_direct, $1)=no |
574 | 8591 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 8662 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
575 | 8592 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 8663 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
576 | 8593 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
577 | 8594 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | 8664 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
578 | 8595 | _LT_TAGVAR(hardcode_minus_L, $1)=no | 8665 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
579 | 8596 | _LT_TAGVAR(hardcode_automatic, $1)=no | 8666 | _LT_TAGVAR(hardcode_automatic, $1)=no |
580 | @@ -8773,6 +8843,73 @@ | |||
581 | 8773 | ])# _LT_LANG_GCJ_CONFIG | 8843 | ])# _LT_LANG_GCJ_CONFIG |
582 | 8774 | 8844 | ||
583 | 8775 | 8845 | ||
584 | 8846 | # _LT_LANG_GO_CONFIG([TAG]) | ||
585 | 8847 | # -------------------------- | ||
586 | 8848 | # Ensure that the configuration variables for the GNU Go compiler | ||
587 | 8849 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | ||
588 | 8850 | # to write the compiler configuration to `libtool'. | ||
589 | 8851 | m4_defun([_LT_LANG_GO_CONFIG], | ||
590 | 8852 | [AC_REQUIRE([LT_PROG_GO])dnl | ||
591 | 8853 | AC_LANG_SAVE | ||
592 | 8854 | |||
593 | 8855 | # Source file extension for Go test sources. | ||
594 | 8856 | ac_ext=go | ||
595 | 8857 | |||
596 | 8858 | # Object file extension for compiled Go test sources. | ||
597 | 8859 | objext=o | ||
598 | 8860 | _LT_TAGVAR(objext, $1)=$objext | ||
599 | 8861 | |||
600 | 8862 | # Code to be used in simple compile tests | ||
601 | 8863 | lt_simple_compile_test_code="package main; func main() { }" | ||
602 | 8864 | |||
603 | 8865 | # Code to be used in simple link tests | ||
604 | 8866 | lt_simple_link_test_code='package main; func main() { }' | ||
605 | 8867 | |||
606 | 8868 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
607 | 8869 | _LT_TAG_COMPILER | ||
608 | 8870 | |||
609 | 8871 | # save warnings/boilerplate of simple test code | ||
610 | 8872 | _LT_COMPILER_BOILERPLATE | ||
611 | 8873 | _LT_LINKER_BOILERPLATE | ||
612 | 8874 | |||
613 | 8875 | # Allow CC to be a program name with arguments. | ||
614 | 8876 | lt_save_CC=$CC | ||
615 | 8877 | lt_save_CFLAGS=$CFLAGS | ||
616 | 8878 | lt_save_GCC=$GCC | ||
617 | 8879 | GCC=yes | ||
618 | 8880 | CC=${GOC-"gccgo"} | ||
619 | 8881 | CFLAGS=$GOFLAGS | ||
620 | 8882 | compiler=$CC | ||
621 | 8883 | _LT_TAGVAR(compiler, $1)=$CC | ||
622 | 8884 | _LT_TAGVAR(LD, $1)="$LD" | ||
623 | 8885 | _LT_CC_BASENAME([$compiler]) | ||
624 | 8886 | |||
625 | 8887 | # Go did not exist at the time GCC didn't implicitly link libc in. | ||
626 | 8888 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
627 | 8889 | |||
628 | 8890 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
629 | 8891 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | ||
630 | 8892 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | ||
631 | 8893 | |||
632 | 8894 | if test -n "$compiler"; then | ||
633 | 8895 | _LT_COMPILER_NO_RTTI($1) | ||
634 | 8896 | _LT_COMPILER_PIC($1) | ||
635 | 8897 | _LT_COMPILER_C_O($1) | ||
636 | 8898 | _LT_COMPILER_FILE_LOCKS($1) | ||
637 | 8899 | _LT_LINKER_SHLIBS($1) | ||
638 | 8900 | _LT_LINKER_HARDCODE_LIBPATH($1) | ||
639 | 8901 | |||
640 | 8902 | _LT_CONFIG($1) | ||
641 | 8903 | fi | ||
642 | 8904 | |||
643 | 8905 | AC_LANG_RESTORE | ||
644 | 8906 | |||
645 | 8907 | GCC=$lt_save_GCC | ||
646 | 8908 | CC=$lt_save_CC | ||
647 | 8909 | CFLAGS=$lt_save_CFLAGS | ||
648 | 8910 | ])# _LT_LANG_GO_CONFIG | ||
649 | 8911 | |||
650 | 8912 | |||
651 | 8776 | # _LT_LANG_RC_CONFIG([TAG]) | 8913 | # _LT_LANG_RC_CONFIG([TAG]) |
652 | 8777 | # ------------------------- | 8914 | # ------------------------- |
653 | 8778 | # Ensure that the configuration variables for the Windows resource compiler | 8915 | # Ensure that the configuration variables for the Windows resource compiler |
654 | @@ -8842,6 +8979,13 @@ | |||
655 | 8842 | dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | 8979 | dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
656 | 8843 | 8980 | ||
657 | 8844 | 8981 | ||
658 | 8982 | # LT_PROG_GO | ||
659 | 8983 | # ---------- | ||
660 | 8984 | AC_DEFUN([LT_PROG_GO], | ||
661 | 8985 | [AC_CHECK_TOOL(GOC, gccgo,) | ||
662 | 8986 | ]) | ||
663 | 8987 | |||
664 | 8988 | |||
665 | 8845 | # LT_PROG_RC | 8989 | # LT_PROG_RC |
666 | 8846 | # ---------- | 8990 | # ---------- |
667 | 8847 | AC_DEFUN([LT_PROG_RC], | 8991 | AC_DEFUN([LT_PROG_RC], |
668 | @@ -9506,9 +9650,24 @@ | |||
669 | 9506 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | 9650 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
670 | 9507 | m4_define([_LT_WITH_PIC], | 9651 | m4_define([_LT_WITH_PIC], |
671 | 9508 | [AC_ARG_WITH([pic], | 9652 | [AC_ARG_WITH([pic], |
673 | 9509 | [AS_HELP_STRING([--with-pic], | 9653 | [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], |
674 | 9510 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | 9654 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
676 | 9511 | [pic_mode="$withval"], | 9655 | [lt_p=${PACKAGE-default} |
677 | 9656 | case $withval in | ||
678 | 9657 | yes|no) pic_mode=$withval ;; | ||
679 | 9658 | *) | ||
680 | 9659 | pic_mode=default | ||
681 | 9660 | # Look at the argument we got. We use all the common list separators. | ||
682 | 9661 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
683 | 9662 | for lt_pkg in $withval; do | ||
684 | 9663 | IFS="$lt_save_ifs" | ||
685 | 9664 | if test "X$lt_pkg" = "X$lt_p"; then | ||
686 | 9665 | pic_mode=yes | ||
687 | 9666 | fi | ||
688 | 9667 | done | ||
689 | 9668 | IFS="$lt_save_ifs" | ||
690 | 9669 | ;; | ||
691 | 9670 | esac], | ||
692 | 9512 | [pic_mode=default]) | 9671 | [pic_mode=default]) |
693 | 9513 | 9672 | ||
694 | 9514 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | 9673 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
695 | @@ -9680,15 +9839,15 @@ | |||
696 | 9680 | 9839 | ||
697 | 9681 | # @configure_input@ | 9840 | # @configure_input@ |
698 | 9682 | 9841 | ||
700 | 9683 | # serial 3293 ltversion.m4 | 9842 | # serial 3337 ltversion.m4 |
701 | 9684 | # This file is part of GNU Libtool | 9843 | # This file is part of GNU Libtool |
702 | 9685 | 9844 | ||
705 | 9686 | m4_define([LT_PACKAGE_VERSION], [2.4]) | 9845 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) |
706 | 9687 | m4_define([LT_PACKAGE_REVISION], [1.3293]) | 9846 | m4_define([LT_PACKAGE_REVISION], [1.3337]) |
707 | 9688 | 9847 | ||
708 | 9689 | AC_DEFUN([LTVERSION_VERSION], | 9848 | AC_DEFUN([LTVERSION_VERSION], |
711 | 9690 | [macro_version='2.4' | 9849 | [macro_version='2.4.2' |
712 | 9691 | macro_revision='1.3293' | 9850 | macro_revision='1.3337' |
713 | 9692 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | 9851 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
714 | 9693 | _LT_DECL(, macro_revision, 0) | 9852 | _LT_DECL(, macro_revision, 0) |
715 | 9694 | ]) | 9853 | ]) |
716 | 9695 | 9854 | ||
717 | === modified file 'configure' | |||
718 | --- configure 2011-08-26 07:26:25 +0000 | |||
719 | +++ configure 2011-12-27 00:36:23 +0000 | |||
720 | @@ -761,6 +761,7 @@ | |||
721 | 761 | with_ncurses | 761 | with_ncurses |
722 | 762 | with_x | 762 | with_x |
723 | 763 | with_python | 763 | with_python |
724 | 764 | with_outb | ||
725 | 764 | with_drivers | 765 | with_drivers |
726 | 765 | with_plugins | 766 | with_plugins |
727 | 766 | with_gnu_ld | 767 | with_gnu_ld |
728 | @@ -1434,6 +1435,7 @@ | |||
729 | 1434 | --with-ncurses=dir Compile with ncurses/locate base dir | 1435 | --with-ncurses=dir Compile with ncurses/locate base dir |
730 | 1435 | --with-x use the X Window System | 1436 | --with-x use the X Window System |
731 | 1436 | --with-python enable python support [default=no] | 1437 | --with-python enable python support [default=no] |
732 | 1438 | --with-outb enable raw port I/O support [default=no] | ||
733 | 1437 | --with-drivers=<list> compile driver for displays in <list>, | 1439 | --with-drivers=<list> compile driver for displays in <list>, |
734 | 1438 | drivers may be separated with commas, | 1440 | drivers may be separated with commas, |
735 | 1439 | 'all' (default) compiles all available drivers, | 1441 | 'all' (default) compiles all available drivers, |
736 | @@ -1456,7 +1458,7 @@ | |||
737 | 1456 | --with-gnu-ld assume the C compiler uses GNU ld default=no | 1458 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
738 | 1457 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | 1459 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
739 | 1458 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | 1460 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
741 | 1459 | --with-pic try to use only PIC/non-PIC objects [default=use | 1461 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
742 | 1460 | both] | 1462 | both] |
743 | 1461 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | 1463 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
744 | 1462 | --with-sysroot=DIR Search for dependent libraries within DIR | 1464 | --with-sysroot=DIR Search for dependent libraries within DIR |
745 | @@ -4696,7 +4698,7 @@ | |||
746 | 4696 | $as_echo_n "checking for ncurses version... " >&6; } | 4698 | $as_echo_n "checking for ncurses version... " >&6; } |
747 | 4697 | ncurses_version=unknown | 4699 | ncurses_version=unknown |
748 | 4698 | cat > conftest.$ac_ext <<EOF | 4700 | cat > conftest.$ac_ext <<EOF |
750 | 4699 | #line 4699 "configure" | 4701 | #line 4701 "configure" |
751 | 4700 | #include "confdefs.h" | 4702 | #include "confdefs.h" |
752 | 4701 | #ifdef RENAMED_NCURSES | 4703 | #ifdef RENAMED_NCURSES |
753 | 4702 | #include <curses.h> | 4704 | #include <curses.h> |
754 | @@ -6191,7 +6193,19 @@ | |||
755 | 6191 | fi | 6193 | fi |
756 | 6192 | 6194 | ||
757 | 6193 | # check for parport | 6195 | # check for parport |
759 | 6194 | #AC_CHECK_HEADERS(asm/io.h) | 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if raw port I/O is wanted" >&5 |
760 | 6197 | $as_echo_n "checking if raw port I/O is wanted... " >&6; } | ||
761 | 6198 | |||
762 | 6199 | # Check whether --with-outb was given. | ||
763 | 6200 | if test "${with_outb+set}" = set; then : | ||
764 | 6201 | withval=$with_outb; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | ||
765 | 6202 | $as_echo "$withval" >&6; } | ||
766 | 6203 | else | ||
767 | 6204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
768 | 6205 | $as_echo "no" >&6; } | ||
769 | 6206 | fi | ||
770 | 6207 | |||
771 | 6208 | |||
772 | 6195 | for ac_header in asm/io.h linux/parport.h linux/ppdev.h | 6209 | for ac_header in asm/io.h linux/parport.h linux/ppdev.h |
773 | 6196 | do : | 6210 | do : |
774 | 6197 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6211 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
775 | @@ -6815,7 +6829,6 @@ | |||
776 | 6815 | 6829 | ||
777 | 6816 | if test "$NEWHAVEN" = "yes"; then | 6830 | if test "$NEWHAVEN" = "yes"; then |
778 | 6817 | TEXT="yes" | 6831 | TEXT="yes" |
779 | 6818 | #SERIAL="yes" | ||
780 | 6819 | I2C="yes" | 6832 | I2C="yes" |
781 | 6820 | DRIVERS="$DRIVERS drv_Newhaven.o" | 6833 | DRIVERS="$DRIVERS drv_Newhaven.o" |
782 | 6821 | 6834 | ||
783 | @@ -6847,9 +6860,7 @@ | |||
784 | 6847 | fi | 6860 | fi |
785 | 6848 | 6861 | ||
786 | 6849 | if test "$PERTELIAN" = "yes"; then | 6862 | if test "$PERTELIAN" = "yes"; then |
787 | 6850 | # select either text or graphics mode | ||
788 | 6851 | TEXT="yes" | 6863 | TEXT="yes" |
789 | 6852 | # select bus: serial (including USB), parallel or i2c | ||
790 | 6853 | SERIAL="yes" | 6864 | SERIAL="yes" |
791 | 6854 | DRIVERS="$DRIVERS drv_Pertelian.o" | 6865 | DRIVERS="$DRIVERS drv_Pertelian.o" |
792 | 6855 | 6866 | ||
793 | @@ -7307,6 +7318,47 @@ | |||
794 | 7307 | PLUGIN_WIRELESS="yes" | 7318 | PLUGIN_WIRELESS="yes" |
795 | 7308 | PLUGIN_XMMS="yes" | 7319 | PLUGIN_XMMS="yes" |
796 | 7309 | ;; | 7320 | ;; |
797 | 7321 | none) | ||
798 | 7322 | PLUGIN_APM="no" | ||
799 | 7323 | PLUGIN_ASTERISK="no" | ||
800 | 7324 | PLUGIN_BUTTON_EXEC="no" | ||
801 | 7325 | PLUGIN_CPUINFO="no" | ||
802 | 7326 | PLUGIN_DBUS="no" | ||
803 | 7327 | PLUGIN_DISKSTATS="no" | ||
804 | 7328 | PLUGIN_DVB="no" | ||
805 | 7329 | PLUGIN_EXEC="no" | ||
806 | 7330 | PLUGIN_EVENT="no" | ||
807 | 7331 | PLUGIN_FIFO="no" | ||
808 | 7332 | PLUGIN_FILE="no" | ||
809 | 7333 | PLUGIN_GPS="no" | ||
810 | 7334 | PLUGIN_HDDTEMP="no" | ||
811 | 7335 | PLUGIN_HUAWEI="no" | ||
812 | 7336 | PLUGIN_I2C_SENSORS="no" | ||
813 | 7337 | PLUGIN_ICONV="no" | ||
814 | 7338 | PLUGIN_IMON="no" | ||
815 | 7339 | PLUGIN_ISDN="no" | ||
816 | 7340 | PLUGIN_KVV="no" | ||
817 | 7341 | PLUGIN_LOADAVG="no" | ||
818 | 7342 | PLUGIN_MEMINFO="no" | ||
819 | 7343 | PLUGIN_MPD="no" | ||
820 | 7344 | PLUGIN_MPRIS_DBUS="no" | ||
821 | 7345 | PLUGIN_MYSQL="no" | ||
822 | 7346 | PLUGIN_NETDEV="no" | ||
823 | 7347 | PLUGIN_NETINFO="no" | ||
824 | 7348 | PLUGIN_POP3="no" | ||
825 | 7349 | PLUGIN_PPP="no" | ||
826 | 7350 | PLUGIN_PROC_STAT="no" | ||
827 | 7351 | PLUGIN_PYTHON="no" | ||
828 | 7352 | PLUGIN_QNAPLOG="no" | ||
829 | 7353 | PLUGIN_SAMPLE="no" | ||
830 | 7354 | PLUGIN_SETI="no" | ||
831 | 7355 | PLUGIN_STATFS="no" | ||
832 | 7356 | PLUGIN_UNAME="no" | ||
833 | 7357 | PLUGIN_UPTIME="no" | ||
834 | 7358 | PLUGIN_W1RETAP="no" | ||
835 | 7359 | PLUGIN_WIRELESS="no" | ||
836 | 7360 | PLUGIN_XMMS="no" | ||
837 | 7361 | ;; | ||
838 | 7310 | apm) | 7362 | apm) |
839 | 7311 | PLUGIN_APM=$val | 7363 | PLUGIN_APM=$val |
840 | 7312 | ;; | 7364 | ;; |
841 | @@ -9369,10 +9421,6 @@ | |||
842 | 9369 | 9421 | ||
843 | 9370 | fi | 9422 | fi |
844 | 9371 | 9423 | ||
845 | 9372 | if test "$PLUGINS" = ""; then | ||
846 | 9373 | as_fn_error $? "You should include at least one plugin..." "$LINENO" 5 | ||
847 | 9374 | fi | ||
848 | 9375 | |||
849 | 9376 | 9424 | ||
850 | 9377 | 9425 | ||
851 | 9378 | 9426 | ||
852 | @@ -12100,18 +12148,18 @@ | |||
853 | 12100 | 12148 | ||
854 | 12101 | 12149 | ||
855 | 12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------------------------------------- | 12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------------------------------------- |
857 | 12103 | including drivers: | 12151 | included drivers: |
858 | 12104 | $DRIVERS | 12152 | $DRIVERS |
859 | 12105 | ----------------------------------------- | 12153 | ----------------------------------------- |
861 | 12106 | including plugins: | 12154 | included plugins: |
862 | 12107 | $PLUGINS | 12155 | $PLUGINS |
863 | 12108 | ----------------------------------------- | 12156 | ----------------------------------------- |
864 | 12109 | " >&5 | 12157 | " >&5 |
865 | 12110 | $as_echo "----------------------------------------- | 12158 | $as_echo "----------------------------------------- |
867 | 12111 | including drivers: | 12159 | included drivers: |
868 | 12112 | $DRIVERS | 12160 | $DRIVERS |
869 | 12113 | ----------------------------------------- | 12161 | ----------------------------------------- |
871 | 12114 | including plugins: | 12162 | included plugins: |
872 | 12115 | $PLUGINS | 12163 | $PLUGINS |
873 | 12116 | ----------------------------------------- | 12164 | ----------------------------------------- |
874 | 12117 | " >&6; } | 12165 | " >&6; } |
875 | @@ -12125,8 +12173,8 @@ | |||
876 | 12125 | 12173 | ||
877 | 12126 | 12174 | ||
878 | 12127 | 12175 | ||
881 | 12128 | macro_version='2.4' | 12176 | macro_version='2.4.2' |
882 | 12129 | macro_revision='1.3293' | 12177 | macro_revision='1.3337' |
883 | 12130 | 12178 | ||
884 | 12131 | 12179 | ||
885 | 12132 | 12180 | ||
886 | @@ -12759,6 +12807,11 @@ | |||
887 | 12759 | lt_cv_sys_max_cmd_len=196608 | 12807 | lt_cv_sys_max_cmd_len=196608 |
888 | 12760 | ;; | 12808 | ;; |
889 | 12761 | 12809 | ||
890 | 12810 | os2*) | ||
891 | 12811 | # The test takes a long time on OS/2. | ||
892 | 12812 | lt_cv_sys_max_cmd_len=8192 | ||
893 | 12813 | ;; | ||
894 | 12814 | |||
895 | 12762 | osf*) | 12815 | osf*) |
896 | 12763 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 12816 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
897 | 12764 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 12817 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
898 | @@ -12798,7 +12851,7 @@ | |||
899 | 12798 | # If test is not a shell built-in, we'll probably end up computing a | 12851 | # If test is not a shell built-in, we'll probably end up computing a |
900 | 12799 | # maximum length that is only half of the actual maximum length, but | 12852 | # maximum length that is only half of the actual maximum length, but |
901 | 12800 | # we can't tell. | 12853 | # we can't tell. |
903 | 12801 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | 12854 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
904 | 12802 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | 12855 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
905 | 12803 | test $i != 17 # 1/2 MB should be enough | 12856 | test $i != 17 # 1/2 MB should be enough |
906 | 12804 | do | 12857 | do |
907 | @@ -13227,7 +13280,7 @@ | |||
908 | 13227 | lt_cv_deplibs_check_method=pass_all | 13280 | lt_cv_deplibs_check_method=pass_all |
909 | 13228 | ;; | 13281 | ;; |
910 | 13229 | 13282 | ||
912 | 13230 | # This must be Linux ELF. | 13283 | # This must be glibc/ELF. |
913 | 13231 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 13284 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
914 | 13232 | lt_cv_deplibs_check_method=pass_all | 13285 | lt_cv_deplibs_check_method=pass_all |
915 | 13233 | ;; | 13286 | ;; |
916 | @@ -13867,13 +13920,13 @@ | |||
917 | 13867 | if test -n "$RANLIB"; then | 13920 | if test -n "$RANLIB"; then |
918 | 13868 | case $host_os in | 13921 | case $host_os in |
919 | 13869 | openbsd*) | 13922 | openbsd*) |
921 | 13870 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 13923 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
922 | 13871 | ;; | 13924 | ;; |
923 | 13872 | *) | 13925 | *) |
925 | 13873 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 13926 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
926 | 13874 | ;; | 13927 | ;; |
927 | 13875 | esac | 13928 | esac |
929 | 13876 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 13929 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
930 | 13877 | fi | 13930 | fi |
931 | 13878 | 13931 | ||
932 | 13879 | case $host_os in | 13932 | case $host_os in |
933 | @@ -14020,6 +14073,7 @@ | |||
934 | 14020 | # which start with @ or ?. | 14073 | # which start with @ or ?. |
935 | 14021 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | 14074 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
936 | 14022 | " {last_section=section; section=\$ 3};"\ | 14075 | " {last_section=section; section=\$ 3};"\ |
937 | 14076 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | ||
938 | 14023 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 14077 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
939 | 14024 | " \$ 0!~/External *\|/{next};"\ | 14078 | " \$ 0!~/External *\|/{next};"\ |
940 | 14025 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 14079 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
941 | @@ -14408,7 +14462,7 @@ | |||
942 | 14408 | CFLAGS="$SAVE_CFLAGS" | 14462 | CFLAGS="$SAVE_CFLAGS" |
943 | 14409 | fi | 14463 | fi |
944 | 14410 | ;; | 14464 | ;; |
946 | 14411 | sparc*-*solaris*) | 14465 | *-*solaris*) |
947 | 14412 | # Find out which ABI we are using. | 14466 | # Find out which ABI we are using. |
948 | 14413 | echo 'int i;' > conftest.$ac_ext | 14467 | echo 'int i;' > conftest.$ac_ext |
949 | 14414 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 14468 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
950 | @@ -14419,7 +14473,20 @@ | |||
951 | 14419 | case `/usr/bin/file conftest.o` in | 14473 | case `/usr/bin/file conftest.o` in |
952 | 14420 | *64-bit*) | 14474 | *64-bit*) |
953 | 14421 | case $lt_cv_prog_gnu_ld in | 14475 | case $lt_cv_prog_gnu_ld in |
955 | 14422 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | 14476 | yes*) |
956 | 14477 | case $host in | ||
957 | 14478 | i?86-*-solaris*) | ||
958 | 14479 | LD="${LD-ld} -m elf_x86_64" | ||
959 | 14480 | ;; | ||
960 | 14481 | sparc*-*-solaris*) | ||
961 | 14482 | LD="${LD-ld} -m elf64_sparc" | ||
962 | 14483 | ;; | ||
963 | 14484 | esac | ||
964 | 14485 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | ||
965 | 14486 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | ||
966 | 14487 | LD="${LD-ld}_sol2" | ||
967 | 14488 | fi | ||
968 | 14489 | ;; | ||
969 | 14423 | *) | 14490 | *) |
970 | 14424 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 14491 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
971 | 14425 | LD="${LD-ld} -64" | 14492 | LD="${LD-ld} -64" |
972 | @@ -15059,7 +15126,13 @@ | |||
973 | 15059 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 15126 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
974 | 15060 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 15127 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
975 | 15061 | _lt_result=$? | 15128 | _lt_result=$? |
977 | 15062 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | 15129 | # If there is a non-empty error log, and "single_module" |
978 | 15130 | # appears in it, assume the flag caused a linker warning | ||
979 | 15131 | if test -s conftest.err && $GREP single_module conftest.err; then | ||
980 | 15132 | cat conftest.err >&5 | ||
981 | 15133 | # Otherwise, if the output was created with a 0 exit code from | ||
982 | 15134 | # the compiler, it worked. | ||
983 | 15135 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | ||
984 | 15063 | lt_cv_apple_cc_single_mod=yes | 15136 | lt_cv_apple_cc_single_mod=yes |
985 | 15064 | else | 15137 | else |
986 | 15065 | cat conftest.err >&5 | 15138 | cat conftest.err >&5 |
987 | @@ -15070,6 +15143,7 @@ | |||
988 | 15070 | fi | 15143 | fi |
989 | 15071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | 15144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
990 | 15072 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | 15145 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
991 | 15146 | |||
992 | 15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | 15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
993 | 15074 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | 15148 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
994 | 15075 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | 15149 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
995 | @@ -15102,6 +15176,7 @@ | |||
996 | 15102 | fi | 15176 | fi |
997 | 15103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | 15177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
998 | 15104 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | 15178 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
999 | 15179 | |||
1000 | 15105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | 15180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
1001 | 15106 | $as_echo_n "checking for -force_load linker flag... " >&6; } | 15181 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
1002 | 15107 | if ${lt_cv_ld_force_load+:} false; then : | 15182 | if ${lt_cv_ld_force_load+:} false; then : |
1003 | @@ -15123,7 +15198,9 @@ | |||
1004 | 15123 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | 15198 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
1005 | 15124 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | 15199 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
1006 | 15125 | _lt_result=$? | 15200 | _lt_result=$? |
1008 | 15126 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | 15201 | if test -s conftest.err && $GREP force_load conftest.err; then |
1009 | 15202 | cat conftest.err >&5 | ||
1010 | 15203 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | ||
1011 | 15127 | lt_cv_ld_force_load=yes | 15204 | lt_cv_ld_force_load=yes |
1012 | 15128 | else | 15205 | else |
1013 | 15129 | cat conftest.err >&5 | 15206 | cat conftest.err >&5 |
1014 | @@ -15261,7 +15338,22 @@ | |||
1015 | 15261 | 15338 | ||
1016 | 15262 | # Check whether --with-pic was given. | 15339 | # Check whether --with-pic was given. |
1017 | 15263 | if test "${with_pic+set}" = set; then : | 15340 | if test "${with_pic+set}" = set; then : |
1019 | 15264 | withval=$with_pic; pic_mode="$withval" | 15341 | withval=$with_pic; lt_p=${PACKAGE-default} |
1020 | 15342 | case $withval in | ||
1021 | 15343 | yes|no) pic_mode=$withval ;; | ||
1022 | 15344 | *) | ||
1023 | 15345 | pic_mode=default | ||
1024 | 15346 | # Look at the argument we got. We use all the common list separators. | ||
1025 | 15347 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
1026 | 15348 | for lt_pkg in $withval; do | ||
1027 | 15349 | IFS="$lt_save_ifs" | ||
1028 | 15350 | if test "X$lt_pkg" = "X$lt_p"; then | ||
1029 | 15351 | pic_mode=yes | ||
1030 | 15352 | fi | ||
1031 | 15353 | done | ||
1032 | 15354 | IFS="$lt_save_ifs" | ||
1033 | 15355 | ;; | ||
1034 | 15356 | esac | ||
1035 | 15265 | else | 15357 | else |
1036 | 15266 | pic_mode=default | 15358 | pic_mode=default |
1037 | 15267 | fi | 15359 | fi |
1038 | @@ -15339,6 +15431,10 @@ | |||
1039 | 15339 | 15431 | ||
1040 | 15340 | 15432 | ||
1041 | 15341 | 15433 | ||
1042 | 15434 | |||
1043 | 15435 | |||
1044 | 15436 | |||
1045 | 15437 | |||
1046 | 15342 | test -z "$LN_S" && LN_S="ln -s" | 15438 | test -z "$LN_S" && LN_S="ln -s" |
1047 | 15343 | 15439 | ||
1048 | 15344 | 15440 | ||
1049 | @@ -15794,7 +15890,9 @@ | |||
1050 | 15794 | case $cc_basename in | 15890 | case $cc_basename in |
1051 | 15795 | nvcc*) # Cuda Compiler Driver 2.2 | 15891 | nvcc*) # Cuda Compiler Driver 2.2 |
1052 | 15796 | lt_prog_compiler_wl='-Xlinker ' | 15892 | lt_prog_compiler_wl='-Xlinker ' |
1054 | 15797 | lt_prog_compiler_pic='-Xcompiler -fPIC' | 15893 | if test -n "$lt_prog_compiler_pic"; then |
1055 | 15894 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | ||
1056 | 15895 | fi | ||
1057 | 15798 | ;; | 15896 | ;; |
1058 | 15799 | esac | 15897 | esac |
1059 | 15800 | else | 15898 | else |
1060 | @@ -15885,18 +15983,33 @@ | |||
1061 | 15885 | ;; | 15983 | ;; |
1062 | 15886 | *) | 15984 | *) |
1063 | 15887 | case `$CC -V 2>&1 | sed 5q` in | 15985 | case `$CC -V 2>&1 | sed 5q` in |
1065 | 15888 | *Sun\ F* | *Sun*Fortran*) | 15986 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
1066 | 15889 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | 15987 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
1067 | 15890 | lt_prog_compiler_pic='-KPIC' | 15988 | lt_prog_compiler_pic='-KPIC' |
1068 | 15891 | lt_prog_compiler_static='-Bstatic' | 15989 | lt_prog_compiler_static='-Bstatic' |
1069 | 15892 | lt_prog_compiler_wl='' | 15990 | lt_prog_compiler_wl='' |
1070 | 15893 | ;; | 15991 | ;; |
1071 | 15992 | *Sun\ F* | *Sun*Fortran*) | ||
1072 | 15993 | lt_prog_compiler_pic='-KPIC' | ||
1073 | 15994 | lt_prog_compiler_static='-Bstatic' | ||
1074 | 15995 | lt_prog_compiler_wl='-Qoption ld ' | ||
1075 | 15996 | ;; | ||
1076 | 15894 | *Sun\ C*) | 15997 | *Sun\ C*) |
1077 | 15895 | # Sun C 5.9 | 15998 | # Sun C 5.9 |
1078 | 15896 | lt_prog_compiler_pic='-KPIC' | 15999 | lt_prog_compiler_pic='-KPIC' |
1079 | 15897 | lt_prog_compiler_static='-Bstatic' | 16000 | lt_prog_compiler_static='-Bstatic' |
1080 | 15898 | lt_prog_compiler_wl='-Wl,' | 16001 | lt_prog_compiler_wl='-Wl,' |
1081 | 15899 | ;; | 16002 | ;; |
1082 | 16003 | *Intel*\ [CF]*Compiler*) | ||
1083 | 16004 | lt_prog_compiler_wl='-Wl,' | ||
1084 | 16005 | lt_prog_compiler_pic='-fPIC' | ||
1085 | 16006 | lt_prog_compiler_static='-static' | ||
1086 | 16007 | ;; | ||
1087 | 16008 | *Portland\ Group*) | ||
1088 | 16009 | lt_prog_compiler_wl='-Wl,' | ||
1089 | 16010 | lt_prog_compiler_pic='-fpic' | ||
1090 | 16011 | lt_prog_compiler_static='-Bstatic' | ||
1091 | 16012 | ;; | ||
1092 | 15900 | esac | 16013 | esac |
1093 | 15901 | ;; | 16014 | ;; |
1094 | 15902 | esac | 16015 | esac |
1095 | @@ -16258,7 +16371,6 @@ | |||
1096 | 16258 | hardcode_direct=no | 16371 | hardcode_direct=no |
1097 | 16259 | hardcode_direct_absolute=no | 16372 | hardcode_direct_absolute=no |
1098 | 16260 | hardcode_libdir_flag_spec= | 16373 | hardcode_libdir_flag_spec= |
1099 | 16261 | hardcode_libdir_flag_spec_ld= | ||
1100 | 16262 | hardcode_libdir_separator= | 16374 | hardcode_libdir_separator= |
1101 | 16263 | hardcode_minus_L=no | 16375 | hardcode_minus_L=no |
1102 | 16264 | hardcode_shlibpath_var=unsupported | 16376 | hardcode_shlibpath_var=unsupported |
1103 | @@ -16511,8 +16623,7 @@ | |||
1104 | 16511 | xlf* | bgf* | bgxlf* | mpixlf*) | 16623 | xlf* | bgf* | bgxlf* | mpixlf*) |
1105 | 16512 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 16624 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
1106 | 16513 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | 16625 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
1109 | 16514 | hardcode_libdir_flag_spec= | 16626 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
1108 | 16515 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
1110 | 16516 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 16627 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
1111 | 16517 | if test "x$supports_anon_versioning" = xyes; then | 16628 | if test "x$supports_anon_versioning" = xyes; then |
1112 | 16518 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 16629 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
1113 | @@ -16892,6 +17003,7 @@ | |||
1114 | 16892 | # The linker will not automatically build a static lib if we build a DLL. | 17003 | # The linker will not automatically build a static lib if we build a DLL. |
1115 | 16893 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | 17004 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
1116 | 16894 | enable_shared_with_static_runtimes=yes | 17005 | enable_shared_with_static_runtimes=yes |
1117 | 17006 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | ||
1118 | 16895 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | 17007 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
1119 | 16896 | # Don't use ranlib | 17008 | # Don't use ranlib |
1120 | 16897 | old_postinstall_cmds='chmod 644 $oldlib' | 17009 | old_postinstall_cmds='chmod 644 $oldlib' |
1121 | @@ -16937,6 +17049,7 @@ | |||
1122 | 16937 | hardcode_shlibpath_var=unsupported | 17049 | hardcode_shlibpath_var=unsupported |
1123 | 16938 | if test "$lt_cv_ld_force_load" = "yes"; then | 17050 | if test "$lt_cv_ld_force_load" = "yes"; then |
1124 | 16939 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | 17051 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
1125 | 17052 | |||
1126 | 16940 | else | 17053 | else |
1127 | 16941 | whole_archive_flag_spec='' | 17054 | whole_archive_flag_spec='' |
1128 | 16942 | fi | 17055 | fi |
1129 | @@ -16965,10 +17078,6 @@ | |||
1130 | 16965 | hardcode_shlibpath_var=no | 17078 | hardcode_shlibpath_var=no |
1131 | 16966 | ;; | 17079 | ;; |
1132 | 16967 | 17080 | ||
1133 | 16968 | freebsd1*) | ||
1134 | 16969 | ld_shlibs=no | ||
1135 | 16970 | ;; | ||
1136 | 16971 | |||
1137 | 16972 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 17081 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
1138 | 16973 | # support. Future versions do this automatically, but an explicit c++rt0.o | 17082 | # support. Future versions do this automatically, but an explicit c++rt0.o |
1139 | 16974 | # does not break anything, and helps significantly (at the cost of a little | 17083 | # does not break anything, and helps significantly (at the cost of a little |
1140 | @@ -16981,7 +17090,7 @@ | |||
1141 | 16981 | ;; | 17090 | ;; |
1142 | 16982 | 17091 | ||
1143 | 16983 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 17092 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
1145 | 16984 | freebsd2*) | 17093 | freebsd2.*) |
1146 | 16985 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 17094 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
1147 | 16986 | hardcode_direct=yes | 17095 | hardcode_direct=yes |
1148 | 16987 | hardcode_minus_L=yes | 17096 | hardcode_minus_L=yes |
1149 | @@ -17020,7 +17129,6 @@ | |||
1150 | 17020 | fi | 17129 | fi |
1151 | 17021 | if test "$with_gnu_ld" = no; then | 17130 | if test "$with_gnu_ld" = no; then |
1152 | 17022 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 17131 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
1153 | 17023 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
1154 | 17024 | hardcode_libdir_separator=: | 17132 | hardcode_libdir_separator=: |
1155 | 17025 | hardcode_direct=yes | 17133 | hardcode_direct=yes |
1156 | 17026 | hardcode_direct_absolute=yes | 17134 | hardcode_direct_absolute=yes |
1157 | @@ -17644,11 +17752,6 @@ | |||
1158 | 17644 | 17752 | ||
1159 | 17645 | 17753 | ||
1160 | 17646 | 17754 | ||
1161 | 17647 | |||
1162 | 17648 | |||
1163 | 17649 | |||
1164 | 17650 | |||
1165 | 17651 | |||
1166 | 17652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
1167 | 17653 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 17756 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
1168 | 17654 | 17757 | ||
1169 | @@ -17738,7 +17841,7 @@ | |||
1170 | 17738 | 17841 | ||
1171 | 17739 | case $host_os in | 17842 | case $host_os in |
1172 | 17740 | aix3*) | 17843 | aix3*) |
1174 | 17741 | version_type=linux | 17844 | version_type=linux # correct to gnu/linux during the next big refactor |
1175 | 17742 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 17845 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
1176 | 17743 | shlibpath_var=LIBPATH | 17846 | shlibpath_var=LIBPATH |
1177 | 17744 | 17847 | ||
1178 | @@ -17747,7 +17850,7 @@ | |||
1179 | 17747 | ;; | 17850 | ;; |
1180 | 17748 | 17851 | ||
1181 | 17749 | aix[4-9]*) | 17852 | aix[4-9]*) |
1183 | 17750 | version_type=linux | 17853 | version_type=linux # correct to gnu/linux during the next big refactor |
1184 | 17751 | need_lib_prefix=no | 17854 | need_lib_prefix=no |
1185 | 17752 | need_version=no | 17855 | need_version=no |
1186 | 17753 | hardcode_into_libs=yes | 17856 | hardcode_into_libs=yes |
1187 | @@ -17812,7 +17915,7 @@ | |||
1188 | 17812 | ;; | 17915 | ;; |
1189 | 17813 | 17916 | ||
1190 | 17814 | bsdi[45]*) | 17917 | bsdi[45]*) |
1192 | 17815 | version_type=linux | 17918 | version_type=linux # correct to gnu/linux during the next big refactor |
1193 | 17816 | need_version=no | 17919 | need_version=no |
1194 | 17817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 17920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1195 | 17818 | soname_spec='${libname}${release}${shared_ext}$major' | 17921 | soname_spec='${libname}${release}${shared_ext}$major' |
1196 | @@ -17951,7 +18054,7 @@ | |||
1197 | 17951 | ;; | 18054 | ;; |
1198 | 17952 | 18055 | ||
1199 | 17953 | dgux*) | 18056 | dgux*) |
1201 | 17954 | version_type=linux | 18057 | version_type=linux # correct to gnu/linux during the next big refactor |
1202 | 17955 | need_lib_prefix=no | 18058 | need_lib_prefix=no |
1203 | 17956 | need_version=no | 18059 | need_version=no |
1204 | 17957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 18060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
1205 | @@ -17959,10 +18062,6 @@ | |||
1206 | 17959 | shlibpath_var=LD_LIBRARY_PATH | 18062 | shlibpath_var=LD_LIBRARY_PATH |
1207 | 17960 | ;; | 18063 | ;; |
1208 | 17961 | 18064 | ||
1209 | 17962 | freebsd1*) | ||
1210 | 17963 | dynamic_linker=no | ||
1211 | 17964 | ;; | ||
1212 | 17965 | |||
1213 | 17966 | freebsd* | dragonfly*) | 18065 | freebsd* | dragonfly*) |
1214 | 17967 | # DragonFly does not have aout. When/if they implement a new | 18066 | # DragonFly does not have aout. When/if they implement a new |
1215 | 17968 | # versioning mechanism, adjust this. | 18067 | # versioning mechanism, adjust this. |
1216 | @@ -17970,7 +18069,7 @@ | |||
1217 | 17970 | objformat=`/usr/bin/objformat` | 18069 | objformat=`/usr/bin/objformat` |
1218 | 17971 | else | 18070 | else |
1219 | 17972 | case $host_os in | 18071 | case $host_os in |
1221 | 17973 | freebsd[123]*) objformat=aout ;; | 18072 | freebsd[23].*) objformat=aout ;; |
1222 | 17974 | *) objformat=elf ;; | 18073 | *) objformat=elf ;; |
1223 | 17975 | esac | 18074 | esac |
1224 | 17976 | fi | 18075 | fi |
1225 | @@ -17988,7 +18087,7 @@ | |||
1226 | 17988 | esac | 18087 | esac |
1227 | 17989 | shlibpath_var=LD_LIBRARY_PATH | 18088 | shlibpath_var=LD_LIBRARY_PATH |
1228 | 17990 | case $host_os in | 18089 | case $host_os in |
1230 | 17991 | freebsd2*) | 18090 | freebsd2.*) |
1231 | 17992 | shlibpath_overrides_runpath=yes | 18091 | shlibpath_overrides_runpath=yes |
1232 | 17993 | ;; | 18092 | ;; |
1233 | 17994 | freebsd3.[01]* | freebsdelf3.[01]*) | 18093 | freebsd3.[01]* | freebsdelf3.[01]*) |
1234 | @@ -18008,7 +18107,7 @@ | |||
1235 | 18008 | ;; | 18107 | ;; |
1236 | 18009 | 18108 | ||
1237 | 18010 | gnu*) | 18109 | gnu*) |
1239 | 18011 | version_type=linux | 18110 | version_type=linux # correct to gnu/linux during the next big refactor |
1240 | 18012 | need_lib_prefix=no | 18111 | need_lib_prefix=no |
1241 | 18013 | need_version=no | 18112 | need_version=no |
1242 | 18014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 18113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
1243 | @@ -18019,7 +18118,7 @@ | |||
1244 | 18019 | ;; | 18118 | ;; |
1245 | 18020 | 18119 | ||
1246 | 18021 | haiku*) | 18120 | haiku*) |
1248 | 18022 | version_type=linux | 18121 | version_type=linux # correct to gnu/linux during the next big refactor |
1249 | 18023 | need_lib_prefix=no | 18122 | need_lib_prefix=no |
1250 | 18024 | need_version=no | 18123 | need_version=no |
1251 | 18025 | dynamic_linker="$host_os runtime_loader" | 18124 | dynamic_linker="$host_os runtime_loader" |
1252 | @@ -18080,7 +18179,7 @@ | |||
1253 | 18080 | ;; | 18179 | ;; |
1254 | 18081 | 18180 | ||
1255 | 18082 | interix[3-9]*) | 18181 | interix[3-9]*) |
1257 | 18083 | version_type=linux | 18182 | version_type=linux # correct to gnu/linux during the next big refactor |
1258 | 18084 | need_lib_prefix=no | 18183 | need_lib_prefix=no |
1259 | 18085 | need_version=no | 18184 | need_version=no |
1260 | 18086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 18185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
1261 | @@ -18096,7 +18195,7 @@ | |||
1262 | 18096 | nonstopux*) version_type=nonstopux ;; | 18195 | nonstopux*) version_type=nonstopux ;; |
1263 | 18097 | *) | 18196 | *) |
1264 | 18098 | if test "$lt_cv_prog_gnu_ld" = yes; then | 18197 | if test "$lt_cv_prog_gnu_ld" = yes; then |
1266 | 18099 | version_type=linux | 18198 | version_type=linux # correct to gnu/linux during the next big refactor |
1267 | 18100 | else | 18199 | else |
1268 | 18101 | version_type=irix | 18200 | version_type=irix |
1269 | 18102 | fi ;; | 18201 | fi ;; |
1270 | @@ -18133,9 +18232,9 @@ | |||
1271 | 18133 | dynamic_linker=no | 18232 | dynamic_linker=no |
1272 | 18134 | ;; | 18233 | ;; |
1273 | 18135 | 18234 | ||
1275 | 18136 | # This must be Linux ELF. | 18235 | # This must be glibc/ELF. |
1276 | 18137 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 18236 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1278 | 18138 | version_type=linux | 18237 | version_type=linux # correct to gnu/linux during the next big refactor |
1279 | 18139 | need_lib_prefix=no | 18238 | need_lib_prefix=no |
1280 | 18140 | need_version=no | 18239 | need_version=no |
1281 | 18141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1282 | @@ -18229,7 +18328,7 @@ | |||
1283 | 18229 | ;; | 18328 | ;; |
1284 | 18230 | 18329 | ||
1285 | 18231 | newsos6) | 18330 | newsos6) |
1287 | 18232 | version_type=linux | 18331 | version_type=linux # correct to gnu/linux during the next big refactor |
1288 | 18233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1289 | 18234 | shlibpath_var=LD_LIBRARY_PATH | 18333 | shlibpath_var=LD_LIBRARY_PATH |
1290 | 18235 | shlibpath_overrides_runpath=yes | 18334 | shlibpath_overrides_runpath=yes |
1291 | @@ -18298,7 +18397,7 @@ | |||
1292 | 18298 | ;; | 18397 | ;; |
1293 | 18299 | 18398 | ||
1294 | 18300 | solaris*) | 18399 | solaris*) |
1296 | 18301 | version_type=linux | 18400 | version_type=linux # correct to gnu/linux during the next big refactor |
1297 | 18302 | need_lib_prefix=no | 18401 | need_lib_prefix=no |
1298 | 18303 | need_version=no | 18402 | need_version=no |
1299 | 18304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1300 | @@ -18323,7 +18422,7 @@ | |||
1301 | 18323 | ;; | 18422 | ;; |
1302 | 18324 | 18423 | ||
1303 | 18325 | sysv4 | sysv4.3*) | 18424 | sysv4 | sysv4.3*) |
1305 | 18326 | version_type=linux | 18425 | version_type=linux # correct to gnu/linux during the next big refactor |
1306 | 18327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1307 | 18328 | soname_spec='${libname}${release}${shared_ext}$major' | 18427 | soname_spec='${libname}${release}${shared_ext}$major' |
1308 | 18329 | shlibpath_var=LD_LIBRARY_PATH | 18428 | shlibpath_var=LD_LIBRARY_PATH |
1309 | @@ -18347,7 +18446,7 @@ | |||
1310 | 18347 | 18446 | ||
1311 | 18348 | sysv4*MP*) | 18447 | sysv4*MP*) |
1312 | 18349 | if test -d /usr/nec ;then | 18448 | if test -d /usr/nec ;then |
1314 | 18350 | version_type=linux | 18449 | version_type=linux # correct to gnu/linux during the next big refactor |
1315 | 18351 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 18450 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
1316 | 18352 | soname_spec='$libname${shared_ext}.$major' | 18451 | soname_spec='$libname${shared_ext}.$major' |
1317 | 18353 | shlibpath_var=LD_LIBRARY_PATH | 18452 | shlibpath_var=LD_LIBRARY_PATH |
1318 | @@ -18378,7 +18477,7 @@ | |||
1319 | 18378 | 18477 | ||
1320 | 18379 | tpf*) | 18478 | tpf*) |
1321 | 18380 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | 18479 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
1323 | 18381 | version_type=linux | 18480 | version_type=linux # correct to gnu/linux during the next big refactor |
1324 | 18382 | need_lib_prefix=no | 18481 | need_lib_prefix=no |
1325 | 18383 | need_version=no | 18482 | need_version=no |
1326 | 18384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1327 | @@ -18388,7 +18487,7 @@ | |||
1328 | 18388 | ;; | 18487 | ;; |
1329 | 18389 | 18488 | ||
1330 | 18390 | uts4*) | 18489 | uts4*) |
1332 | 18391 | version_type=linux | 18490 | version_type=linux # correct to gnu/linux during the next big refactor |
1333 | 18392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1334 | 18393 | soname_spec='${libname}${release}${shared_ext}$major' | 18492 | soname_spec='${libname}${release}${shared_ext}$major' |
1335 | 18394 | shlibpath_var=LD_LIBRARY_PATH | 18493 | shlibpath_var=LD_LIBRARY_PATH |
1336 | @@ -19170,6 +19269,8 @@ | |||
1337 | 19170 | 19269 | ||
1338 | 19171 | 19270 | ||
1339 | 19172 | 19271 | ||
1340 | 19272 | |||
1341 | 19273 | |||
1342 | 19173 | ac_config_commands="$ac_config_commands libtool" | 19274 | ac_config_commands="$ac_config_commands libtool" |
1343 | 19174 | 19275 | ||
1344 | 19175 | 19276 | ||
1345 | 19176 | 19277 | ||
1346 | === modified file 'configure.in' | |||
1347 | --- configure.in 2011-08-26 07:26:25 +0000 | |||
1348 | +++ configure.in 2011-12-27 00:36:23 +0000 | |||
1349 | @@ -2,7 +2,7 @@ | |||
1350 | 2 | # Process this file with autoconf to produce a configure script. | 2 | # Process this file with autoconf to produce a configure script. |
1351 | 3 | 3 | ||
1352 | 4 | 4 | ||
1354 | 5 | # $Id: configure.in 1158 2011-07-28 02:09:16Z michael $ | 5 | # $Id: configure.in 1165 2011-12-26 06:28:05Z michael $ |
1355 | 6 | # $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/configure.in $ | 6 | # $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/configure.in $ |
1356 | 7 | 7 | ||
1357 | 8 | 8 | ||
1358 | @@ -105,7 +105,11 @@ | |||
1359 | 105 | fi | 105 | fi |
1360 | 106 | 106 | ||
1361 | 107 | # check for parport | 107 | # check for parport |
1363 | 108 | #AC_CHECK_HEADERS(asm/io.h) | 108 | AC_MSG_CHECKING(if raw port I/O is wanted) |
1364 | 109 | AC_ARG_WITH(outb, | ||
1365 | 110 | [ --with-outb enable raw port I/O support [[default=no]]], | ||
1366 | 111 | [AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)]) | ||
1367 | 112 | |||
1368 | 109 | AC_CHECK_HEADERS([asm/io.h] [linux/parport.h linux/ppdev.h], [has_parport="true"], [has_parport="false"]) | 113 | AC_CHECK_HEADERS([asm/io.h] [linux/parport.h linux/ppdev.h], [has_parport="true"], [has_parport="false"]) |
1369 | 110 | 114 | ||
1370 | 111 | # drivers | 115 | # drivers |
1371 | @@ -157,10 +161,10 @@ | |||
1372 | 157 | 161 | ||
1373 | 158 | AC_MSG_RESULT( | 162 | AC_MSG_RESULT( |
1374 | 159 | [-----------------------------------------] | 163 | [-----------------------------------------] |
1376 | 160 | [including drivers:] | 164 | [included drivers:] |
1377 | 161 | [ $DRIVERS] | 165 | [ $DRIVERS] |
1378 | 162 | [-----------------------------------------] | 166 | [-----------------------------------------] |
1380 | 163 | [including plugins:] | 167 | [included plugins:] |
1381 | 164 | [ $PLUGINS] | 168 | [ $PLUGINS] |
1382 | 165 | [-----------------------------------------] | 169 | [-----------------------------------------] |
1383 | 166 | ) | 170 | ) |
1384 | 167 | 171 | ||
1385 | === added file 'debian/NEWS' | |||
1386 | --- debian/NEWS 1970-01-01 00:00:00 +0000 | |||
1387 | +++ debian/NEWS 2011-12-27 00:36:23 +0000 | |||
1388 | @@ -0,0 +1,10 @@ | |||
1389 | 1 | lcd4linux (0.11.0~svn1165-1) unstable; urgency=low | ||
1390 | 2 | |||
1391 | 3 | As of 0.11.0~svn1165-1, direct raw parallel port access has been disabled | ||
1392 | 4 | by default. The generic_parport driver depended on sys/io.h which is not | ||
1393 | 5 | available on all architectures. This change means that lcd4linux is now | ||
1394 | 6 | available on the mipsel, powerpc, s390x and sparc architectures. If you | ||
1395 | 7 | still require raw I/O, you can uncomment the --with-outb argument in | ||
1396 | 8 | debian/rules and rebuild the package. | ||
1397 | 9 | |||
1398 | 10 | -- Jonathan McCrohan <jmccrohan@gmail.com> Tue, 27 Dec 2011 00:27:15 +0000 | ||
1399 | 0 | 11 | ||
1400 | === modified file 'debian/changelog' | |||
1401 | --- debian/changelog 2011-08-30 13:18:14 +0000 | |||
1402 | +++ debian/changelog 2011-12-27 00:36:23 +0000 | |||
1403 | @@ -1,3 +1,16 @@ | |||
1404 | 1 | lcd4linux (0.11.0~svn1165-1) unstable; urgency=low | ||
1405 | 2 | |||
1406 | 3 | * New upstream snapshot | ||
1407 | 4 | - raw port I/O in generic_parport driver disabled. Fixes FTBFS | ||
1408 | 5 | issues on mipsel, powerpc, s390x and sparc. | ||
1409 | 6 | - includes updates for D4D driver. | ||
1410 | 7 | - fixes compilation warnings. | ||
1411 | 8 | * debian/NEWS added to announce change in generic_parport driver | ||
1412 | 9 | * Update libmysqlclient-dev virtual package in build-depends, | ||
1413 | 10 | thanks to Clint Byrum (Closes: #652132) | ||
1414 | 11 | |||
1415 | 12 | -- Jonathan McCrohan <jmccrohan@gmail.com> Tue, 27 Dec 2011 00:27:15 +0000 | ||
1416 | 13 | |||
1417 | 1 | lcd4linux (0.11.0~svn1158-1) unstable; urgency=low | 14 | lcd4linux (0.11.0~svn1158-1) unstable; urgency=low |
1418 | 2 | 15 | ||
1419 | 3 | * New upstream snapshot | 16 | * New upstream snapshot |
1420 | 4 | 17 | ||
1421 | === modified file 'debian/control' | |||
1422 | --- debian/control 2011-08-20 19:52:48 +0000 | |||
1423 | +++ debian/control 2011-12-27 00:36:23 +0000 | |||
1424 | @@ -9,7 +9,7 @@ | |||
1425 | 9 | dh-autoreconf, | 9 | dh-autoreconf, |
1426 | 10 | libdbus-1-dev, | 10 | libdbus-1-dev, |
1427 | 11 | libgd2-noxpm-dev, | 11 | libgd2-noxpm-dev, |
1429 | 12 | libmysqlclient15-dev, | 12 | libmysqlclient-dev, |
1430 | 13 | libncurses5-dev, | 13 | libncurses5-dev, |
1431 | 14 | libsqlite3-dev, | 14 | libsqlite3-dev, |
1432 | 15 | libusb-dev, | 15 | libusb-dev, |
1433 | 16 | 16 | ||
1434 | === modified file 'debian/rules' | |||
1435 | --- debian/rules 2011-08-28 13:31:13 +0000 | |||
1436 | +++ debian/rules 2011-12-27 00:36:23 +0000 | |||
1437 | @@ -34,6 +34,8 @@ | |||
1438 | 34 | --infodir=\$${prefix}/share/info \ | 34 | --infodir=\$${prefix}/share/info \ |
1439 | 35 | --bindir=/usr/sbin \ | 35 | --bindir=/usr/sbin \ |
1440 | 36 | --disable-rpath | 36 | --disable-rpath |
1441 | 37 | # Enable raw parallel port I/O | ||
1442 | 38 | # --with-outb | ||
1443 | 37 | 39 | ||
1444 | 38 | # call this target to update config.sub and config.guess | 40 | # call this target to update config.sub and config.guess |
1445 | 39 | # need autotools-dev installed | 41 | # need autotools-dev installed |
1446 | 40 | 42 | ||
1447 | === modified file 'drivers.m4' | |||
1448 | --- drivers.m4 2011-08-26 07:26:25 +0000 | |||
1449 | +++ drivers.m4 2011-12-27 00:36:23 +0000 | |||
1450 | @@ -1,4 +1,4 @@ | |||
1452 | 1 | dnl $Id: drivers.m4 1158 2011-07-28 02:09:16Z michael $ | 1 | dnl $Id: drivers.m4 1165 2011-12-26 06:28:05Z michael $ |
1453 | 2 | dnl $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drivers.m4 $ | 2 | dnl $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drivers.m4 $ |
1454 | 3 | 3 | ||
1455 | 4 | 4 | ||
1456 | @@ -565,7 +565,6 @@ | |||
1457 | 565 | 565 | ||
1458 | 566 | if test "$NEWHAVEN" = "yes"; then | 566 | if test "$NEWHAVEN" = "yes"; then |
1459 | 567 | TEXT="yes" | 567 | TEXT="yes" |
1460 | 568 | #SERIAL="yes" | ||
1461 | 569 | I2C="yes" | 568 | I2C="yes" |
1462 | 570 | DRIVERS="$DRIVERS drv_Newhaven.o" | 569 | DRIVERS="$DRIVERS drv_Newhaven.o" |
1463 | 571 | AC_DEFINE(WITH_NEWHAVEN,1,[Newhaven driver]) | 570 | AC_DEFINE(WITH_NEWHAVEN,1,[Newhaven driver]) |
1464 | @@ -590,9 +589,7 @@ | |||
1465 | 590 | fi | 589 | fi |
1466 | 591 | 590 | ||
1467 | 592 | if test "$PERTELIAN" = "yes"; then | 591 | if test "$PERTELIAN" = "yes"; then |
1468 | 593 | # select either text or graphics mode | ||
1469 | 594 | TEXT="yes" | 592 | TEXT="yes" |
1470 | 595 | # select bus: serial (including USB), parallel or i2c | ||
1471 | 596 | SERIAL="yes" | 593 | SERIAL="yes" |
1472 | 597 | DRIVERS="$DRIVERS drv_Pertelian.o" | 594 | DRIVERS="$DRIVERS drv_Pertelian.o" |
1473 | 598 | AC_DEFINE(WITH_PERTELIAN,1,[Pertelian driver]) | 595 | AC_DEFINE(WITH_PERTELIAN,1,[Pertelian driver]) |
1474 | 599 | 596 | ||
1475 | === modified file 'drv_D4D.c' | |||
1476 | --- drv_D4D.c 2011-08-26 07:24:25 +0000 | |||
1477 | +++ drv_D4D.c 2011-12-27 00:36:23 +0000 | |||
1478 | @@ -1,9 +1,9 @@ | |||
1480 | 1 | /* $Id: drv_D4D.c 1153 2011-07-27 05:12:30Z michael $ | 1 | /* $Id: drv_D4D.c 1163 2011-12-09 03:16:17Z sonic74 $ |
1481 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_D4D.c $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_D4D.c $ |
1482 | 3 | * | 3 | * |
1483 | 4 | * LCD4Linux driver for 4D Systems Display Graphics Modules | 4 | * LCD4Linux driver for 4D Systems Display Graphics Modules |
1484 | 5 | * | 5 | * |
1486 | 6 | * Copyright (C) 2008 Sven Killig <sven@killig.de> | 6 | * Copyright (C) 2008, 2011 Sven Killig <sven@killig.de> |
1487 | 7 | * Modified from sample code by: | 7 | * Modified from sample code by: |
1488 | 8 | * Copyright (C) 2005 Michael Reinelt <michael@reinelt.co.at> | 8 | * Copyright (C) 2005 Michael Reinelt <michael@reinelt.co.at> |
1489 | 9 | * Copyright (C) 2005, 2006, 2007 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net> | 9 | * Copyright (C) 2005, 2006, 2007 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net> |
1490 | @@ -61,9 +61,12 @@ | |||
1491 | 61 | #include "drv_generic_graphic.h" | 61 | #include "drv_generic_graphic.h" |
1492 | 62 | #include "drv_generic_serial.h" | 62 | #include "drv_generic_serial.h" |
1493 | 63 | 63 | ||
1494 | 64 | #include <sys/ioctl.h> | ||
1495 | 65 | #include <linux/serial.h> | ||
1496 | 66 | |||
1497 | 64 | static char Name[] = "D4D"; | 67 | static char Name[] = "D4D"; |
1498 | 65 | char NAME_[20]; | 68 | char NAME_[20]; |
1500 | 66 | int FONT = 1, MODE = 0, EXTRA = 0, SECTOR = 0, SECTOR_SIZE, NOPOWERCYCLE = 0; | 69 | int FONT = 1, MODE = 0, EXTRA = 0, SECTOR = 0, SECTOR_SIZE, POWERCYCLE = 0; |
1501 | 67 | /* int CONTRAST_; */ | 70 | /* int CONTRAST_; */ |
1502 | 68 | 71 | ||
1503 | 69 | #define address_mmsb(variable) ((variable >> 24) & 0xFF) | 72 | #define address_mmsb(variable) ((variable >> 24) & 0xFF) |
1504 | @@ -98,24 +101,6 @@ | |||
1505 | 98 | /****************************************/ | 101 | /****************************************/ |
1506 | 99 | 102 | ||
1507 | 100 | 103 | ||
1508 | 101 | static int drv_D4D_open(const char *section) | ||
1509 | 102 | { | ||
1510 | 103 | int fd; | ||
1511 | 104 | fd = drv_generic_serial_open(section, Name, 0); | ||
1512 | 105 | if (fd < 0) | ||
1513 | 106 | return -1; | ||
1514 | 107 | fcntl(fd, F_SETFL, 0); /* blocking read */ | ||
1515 | 108 | return 0; | ||
1516 | 109 | } | ||
1517 | 110 | |||
1518 | 111 | |||
1519 | 112 | static int drv_D4D_close(void) | ||
1520 | 113 | { | ||
1521 | 114 | drv_generic_serial_close(); | ||
1522 | 115 | return 0; | ||
1523 | 116 | } | ||
1524 | 117 | |||
1525 | 118 | |||
1526 | 119 | static void drv_D4D_receive_ACK() | 104 | static void drv_D4D_receive_ACK() |
1527 | 120 | { | 105 | { |
1528 | 121 | char ret[1]; | 106 | char ret[1]; |
1529 | @@ -128,8 +113,11 @@ | |||
1530 | 128 | } | 113 | } |
1531 | 129 | } | 114 | } |
1532 | 130 | 115 | ||
1533 | 116 | |||
1534 | 131 | static void drv_D4D_send_nowait(const char *data, const unsigned int len) | 117 | static void drv_D4D_send_nowait(const char *data, const unsigned int len) |
1535 | 132 | { | 118 | { |
1536 | 119 | if (len > 1 && data[0] >= 32 && data[0] < 127) | ||
1537 | 120 | debug("drv_D4D_send_nowait('%c'", data[0]); | ||
1538 | 133 | drv_generic_serial_write(data, len); | 121 | drv_generic_serial_write(data, len); |
1539 | 134 | } | 122 | } |
1540 | 135 | 123 | ||
1541 | @@ -139,32 +127,156 @@ | |||
1542 | 139 | drv_D4D_receive_ACK(); | 127 | drv_D4D_receive_ACK(); |
1543 | 140 | } | 128 | } |
1544 | 141 | 129 | ||
1546 | 142 | static void drv_D4D_send_nowait_extra(const char *data, const unsigned int len, unsigned char pos1, unsigned char pos2) | 130 | static void drv_D4D_send_extra_nowait(const char *data, const unsigned int len, unsigned char pos1, unsigned char pos2, |
1547 | 131 | unsigned char pos3, unsigned char pos4) | ||
1548 | 143 | { | 132 | { |
1550 | 144 | /* possibly leave out bytes at pos1 and pos2 for older protocol format */ | 133 | /* possibly leave out bytes at posn for GOLDELOX protocol format */ |
1551 | 145 | if (EXTRA) { | 134 | if (EXTRA) { |
1552 | 146 | drv_D4D_send_nowait(data, len); | 135 | drv_D4D_send_nowait(data, len); |
1553 | 147 | } else { | 136 | } else { |
1556 | 148 | unsigned int i; | 137 | unsigned int i, j = 0, lenNew = len; |
1557 | 149 | char send[1]; | 138 | char send[len]; |
1558 | 150 | for (i = 0; i < len; i++) { | 139 | for (i = 0; i < len; i++) { |
1564 | 151 | if (!pos1 || i != pos1) { | 140 | if (i != pos1 && i != pos2 && i != pos3 && i != pos4) { |
1565 | 152 | if (!pos2 || i != pos2) { | 141 | send[j++] = data[i]; |
1566 | 153 | send[0] = data[i]; | 142 | } else { |
1567 | 154 | drv_generic_serial_write(send, 1); | 143 | lenNew--; |
1563 | 155 | } | ||
1568 | 156 | } | 144 | } |
1569 | 157 | } | 145 | } |
1570 | 146 | drv_D4D_send_nowait(send, lenNew); | ||
1571 | 158 | } | 147 | } |
1572 | 159 | } | 148 | } |
1573 | 160 | 149 | ||
1575 | 161 | static void drv_D4D_send_extra(const char *data, const unsigned int len, char pos1, char pos2) | 150 | static void drv_D4D_send_extra(const char *data, const unsigned int len, unsigned char pos1, unsigned char pos2, |
1576 | 151 | unsigned char pos3, unsigned char pos4) | ||
1577 | 162 | { | 152 | { |
1579 | 163 | drv_D4D_send_nowait_extra(data, len, pos1, pos2); | 153 | drv_D4D_send_extra_nowait(data, len, pos1, pos2, pos3, pos4); |
1580 | 164 | drv_D4D_receive_ACK(); | 154 | drv_D4D_receive_ACK(); |
1581 | 165 | } | 155 | } |
1582 | 166 | 156 | ||
1583 | 167 | 157 | ||
1584 | 158 | static int drv_D4D_open(const char *section) | ||
1585 | 159 | { | ||
1586 | 160 | info("drv_D4D_open()"); | ||
1587 | 161 | int fd, picaso = 0; | ||
1588 | 162 | struct termios portset; | ||
1589 | 163 | static speed_t Speed = 0; | ||
1590 | 164 | fd = drv_generic_serial_open(section, Name, 0); | ||
1591 | 165 | if (fd < 0) | ||
1592 | 166 | return -1; | ||
1593 | 167 | int flags; | ||
1594 | 168 | flags = fcntl(fd, F_GETFL); | ||
1595 | 169 | flags &= ~FNDELAY; | ||
1596 | 170 | fcntl(fd, F_SETFL, flags); | ||
1597 | 171 | |||
1598 | 172 | cfg_number(section, "PICASO", 0, 1200, 4000000, &picaso); | ||
1599 | 173 | if (picaso) { | ||
1600 | 174 | info("switching to 9600 baud"); | ||
1601 | 175 | if (tcgetattr(fd, &portset) == -1) { | ||
1602 | 176 | error("%s: tcgetattr failed: %s", Name, strerror(errno)); | ||
1603 | 177 | return -1; | ||
1604 | 178 | } | ||
1605 | 179 | cfsetispeed(&portset, B9600); | ||
1606 | 180 | cfsetospeed(&portset, B9600); | ||
1607 | 181 | if (tcsetattr(fd, TCSANOW, &portset) == -1) { | ||
1608 | 182 | error("%s: tcsetattr failed: %s", Name, strerror(errno)); | ||
1609 | 183 | return -1; | ||
1610 | 184 | } | ||
1611 | 185 | } | ||
1612 | 186 | |||
1613 | 187 | char cmd[] = { 'U' }; | ||
1614 | 188 | drv_D4D_send(cmd, sizeof(cmd)); | ||
1615 | 189 | debug("2"); | ||
1616 | 190 | |||
1617 | 191 | if (picaso) { | ||
1618 | 192 | char baud[] = { 'Q', 0 }; | ||
1619 | 193 | switch (picaso) { | ||
1620 | 194 | case 1200: | ||
1621 | 195 | Speed = B1200; | ||
1622 | 196 | baud[1] = 0x03; | ||
1623 | 197 | break; | ||
1624 | 198 | case 2400: | ||
1625 | 199 | Speed = B2400; | ||
1626 | 200 | baud[1] = 0x04; | ||
1627 | 201 | break; | ||
1628 | 202 | case 4800: | ||
1629 | 203 | Speed = B4800; | ||
1630 | 204 | baud[1] = 0x05; | ||
1631 | 205 | break; | ||
1632 | 206 | case 9600: | ||
1633 | 207 | Speed = B9600; | ||
1634 | 208 | baud[1] = 0x06; | ||
1635 | 209 | break; | ||
1636 | 210 | case 19200: | ||
1637 | 211 | Speed = B19200; | ||
1638 | 212 | baud[1] = 0x08; | ||
1639 | 213 | break; | ||
1640 | 214 | case 38400: | ||
1641 | 215 | Speed = B38400; | ||
1642 | 216 | baud[1] = 0x0A; | ||
1643 | 217 | break; | ||
1644 | 218 | case 57600: | ||
1645 | 219 | Speed = B57600; | ||
1646 | 220 | baud[1] = 0x0B; | ||
1647 | 221 | break; | ||
1648 | 222 | case 115200: | ||
1649 | 223 | Speed = B115200; | ||
1650 | 224 | baud[1] = 0x0D; | ||
1651 | 225 | break; | ||
1652 | 226 | default: | ||
1653 | 227 | if (picaso >= 128000 && picaso < 256000) { /* FTDI: 129032 */ | ||
1654 | 228 | Speed = B38400; | ||
1655 | 229 | baud[1] = 0x0E; | ||
1656 | 230 | break; | ||
1657 | 231 | } else if (picaso >= 256000) { /* FTDI: 282353 */ | ||
1658 | 232 | Speed = B38400; | ||
1659 | 233 | baud[1] = 0x0F; | ||
1660 | 234 | break; | ||
1661 | 235 | } | ||
1662 | 236 | error("%s: unsupported speed '%d' from %s", Name, picaso, cfg_source()); | ||
1663 | 237 | return -1; | ||
1664 | 238 | } | ||
1665 | 239 | drv_D4D_send_nowait(baud, sizeof(baud)); | ||
1666 | 240 | sleep(1); | ||
1667 | 241 | debug("3"); | ||
1668 | 242 | cfsetispeed(&portset, Speed); | ||
1669 | 243 | cfsetospeed(&portset, Speed); | ||
1670 | 244 | if (picaso >= 128000) { | ||
1671 | 245 | struct serial_struct sstruct; | ||
1672 | 246 | if (ioctl(fd, TIOCGSERIAL, &sstruct) < 0) { | ||
1673 | 247 | error("Error: could not get comm ioctl\n"); | ||
1674 | 248 | return -1; | ||
1675 | 249 | } | ||
1676 | 250 | sstruct.custom_divisor = sstruct.baud_base / picaso; | ||
1677 | 251 | info("baud_base=%d; custom_divisor=%d -> effective baud:%d", sstruct.baud_base, sstruct.custom_divisor, | ||
1678 | 252 | sstruct.baud_base / sstruct.custom_divisor); | ||
1679 | 253 | sstruct.flags |= ASYNC_SPD_CUST; | ||
1680 | 254 | if (ioctl(fd, TIOCSSERIAL, &sstruct) < 0) { | ||
1681 | 255 | error("Error: could not set custom comm baud divisor\n"); | ||
1682 | 256 | return -1; | ||
1683 | 257 | } | ||
1684 | 258 | } | ||
1685 | 259 | debug("4"); | ||
1686 | 260 | info("switching to %d baud", picaso); | ||
1687 | 261 | if (tcsetattr(fd, /*TCSANOW*/ TCSAFLUSH /*TCSADRAIN*/, &portset) == -1) { | ||
1688 | 262 | error("%s: tcsetattr failed: %s", Name, strerror(errno)); | ||
1689 | 263 | return -1; | ||
1690 | 264 | } | ||
1691 | 265 | debug("5"); | ||
1692 | 266 | |||
1693 | 267 | } | ||
1694 | 268 | |||
1695 | 269 | return 0; | ||
1696 | 270 | } | ||
1697 | 271 | |||
1698 | 272 | |||
1699 | 273 | static int drv_D4D_close(void) | ||
1700 | 274 | { | ||
1701 | 275 | drv_generic_serial_close(); | ||
1702 | 276 | return 0; | ||
1703 | 277 | } | ||
1704 | 278 | |||
1705 | 279 | |||
1706 | 168 | static void drv_D4D_clear(void) | 280 | static void drv_D4D_clear(void) |
1707 | 169 | { | 281 | { |
1708 | 170 | char cmd[] = { 'E' }; | 282 | char cmd[] = { 'E' }; |
1709 | @@ -213,24 +325,33 @@ | |||
1710 | 213 | cmdNull[0] = 0; | 325 | cmdNull[0] = 0; |
1711 | 214 | drv_D4D_send(cmdNull, 1); | 326 | drv_D4D_send(cmdNull, 1); |
1712 | 215 | 327 | ||
1714 | 216 | char cmd_user[] = { 'D', 0, 0, 0, 0, 0, msb(FG_COLOR), lsb(FG_COLOR) }; /* user defined symbols */ | 328 | /* 1, 2, 3, 4, 5, 6 |
1715 | 329 | g, c,mx,lx,my,ly */ | ||
1716 | 330 | char cmd_user[] = { 'D', 0, 0, 0, 0, 0, 0, msb(FG_COLOR), lsb(FG_COLOR) }; /* user defined symbols */ | ||
1717 | 217 | for (i = 0; i < k; i++) { | 331 | for (i = 0; i < k; i++) { |
1718 | 218 | cmd_user[2] = user_char[i]; | 332 | cmd_user[2] = user_char[i]; |
1723 | 219 | cmd_user[3] = user_x[i]; | 333 | cmd_user[3] = msb(user_x[i]); |
1724 | 220 | cmd_user[4] = msb(user_y[i]); | 334 | cmd_user[4] = lsb(user_x[i]); |
1725 | 221 | cmd_user[5] = lsb(user_y[i]); | 335 | cmd_user[5] = msb(user_y[i]); |
1726 | 222 | drv_D4D_send_extra(cmd_user, sizeof(cmd_user), 1, 4); | 336 | cmd_user[6] = lsb(user_y[i]); |
1727 | 337 | drv_D4D_send_extra(cmd_user, sizeof(cmd_user), 1, 3, 5, -1); | ||
1728 | 223 | } | 338 | } |
1729 | 224 | } else { /* font on SD card */ | 339 | } else { /* font on SD card */ |
1730 | 225 | int sec; | 340 | int sec; |
1732 | 226 | char cmd_sd[] = { '@', 'I', 0, msb(row * YRES), lsb(row * YRES), XRES, msb(YRES), lsb(YRES), 16, 0, 0, 0 }; | 341 | /* 2, 3, 4 , 5 , 6 , 7 , 8 , 9 , 10,11,12,13 |
1733 | 342 | mx,lx, my , ly , mw , lw , mh , lh , cm,hs,ms,ls */ | ||
1734 | 343 | char cmd_sd[] = | ||
1735 | 344 | { '@', 'I', 0, 0, msb(row * YRES), lsb(row * YRES), msb(XRES), lsb(XRES), msb(YRES), lsb(YRES), 16, 0, 0, | ||
1736 | 345 | 0 | ||
1737 | 346 | }; | ||
1738 | 227 | for (i = 0; i < len; i++) { | 347 | for (i = 0; i < len; i++) { |
1740 | 228 | cmd_sd[2] = (col + i) * XRES; | 348 | cmd_sd[2] = msb((col + i) * XRES); |
1741 | 349 | cmd_sd[3] = lsb((col + i) * XRES); | ||
1742 | 229 | sec = SECTOR + (unsigned char) data[i] * SECTOR_SIZE; | 350 | sec = SECTOR + (unsigned char) data[i] * SECTOR_SIZE; |
1747 | 230 | cmd_sd[9] = address_hi(sec); | 351 | cmd_sd[11] = address_hi(sec); |
1748 | 231 | cmd_sd[10] = address_mid(sec); | 352 | cmd_sd[12] = address_mid(sec); |
1749 | 232 | cmd_sd[11] = address_lo(sec); | 353 | cmd_sd[13] = address_lo(sec); |
1750 | 233 | drv_D4D_send_extra(cmd_sd, sizeof(cmd_sd), 3, 6); | 354 | drv_D4D_send_extra(cmd_sd, sizeof(cmd_sd), 2, 4, 6, 8); |
1751 | 234 | } | 355 | } |
1752 | 235 | } | 356 | } |
1753 | 236 | } | 357 | } |
1754 | @@ -238,7 +359,7 @@ | |||
1755 | 238 | 359 | ||
1756 | 239 | static void drv_D4D_defchar(const int ascii, const unsigned char *matrix) | 360 | static void drv_D4D_defchar(const int ascii, const unsigned char *matrix) |
1757 | 240 | { | 361 | { |
1759 | 241 | /* error("drv_D4D_defchar"); */ | 362 | info("drv_D4D_defchar"); |
1760 | 242 | char cmd[11]; | 363 | char cmd[11]; |
1761 | 243 | int i; | 364 | int i; |
1762 | 244 | 365 | ||
1763 | @@ -249,62 +370,61 @@ | |||
1764 | 249 | for (i = 0; i < 8; i++) { | 370 | for (i = 0; i < 8; i++) { |
1765 | 250 | cmd[i + 3] = *matrix++; | 371 | cmd[i + 3] = *matrix++; |
1766 | 251 | } | 372 | } |
1768 | 252 | drv_D4D_send_extra(cmd, sizeof(cmd), 1, 0); | 373 | drv_D4D_send_extra(cmd, sizeof(cmd), 1, -1, -1, -1); |
1769 | 253 | } | 374 | } |
1770 | 254 | 375 | ||
1771 | 255 | 376 | ||
1772 | 256 | static void drv_D4D_blit(const int row, const int col, const int height, const int width) | 377 | static void drv_D4D_blit(const int row, const int col, const int height, const int width) |
1773 | 257 | { | 378 | { |
1775 | 258 | /* error("drv_D4D_blit(%i, %i, %i, %i)",row, col, height, width); */ | 379 | debug("drv_D4D_blit(%i, %i, %i, %i)", row, col, height, width); |
1776 | 259 | int r, c; | 380 | int r, c; |
1778 | 260 | RGBA rgb, pixel0_0, pixel; | 381 | RGBA rgb; |
1779 | 261 | short int color; | 382 | short int color; |
1782 | 262 | char colorArray[2]; | 383 | char colorArray[width * height * MODE / 8]; |
1781 | 263 | |||
1783 | 264 | 384 | ||
1784 | 265 | /* optimization: single colour rectangle? */ | 385 | /* optimization: single colour rectangle? */ |
1787 | 266 | pixel0_0 = drv_generic_graphic_rgb(0, 0); | 386 | /* commented out because obviously seldom used and expensive */ |
1788 | 267 | char unicolor = 1; | 387 | /*RGBA pixel0_0, pixel; |
1789 | 388 | pixel0_0 = drv_generic_graphic_rgb(row, col); | ||
1790 | 389 | char unicolor = 1; | ||
1791 | 390 | for (r = row; (r < row + height) && unicolor; r++) { | ||
1792 | 391 | for (c = col; (c < col + width) && unicolor; c++) { | ||
1793 | 392 | pixel = drv_generic_graphic_rgb(r, c); | ||
1794 | 393 | if (pixel0_0.R != pixel.R || pixel0_0.G != pixel.G || pixel0_0.B != pixel.B || pixel0_0.A != pixel.A) | ||
1795 | 394 | unicolor = 0; | ||
1796 | 395 | } | ||
1797 | 396 | } | ||
1798 | 397 | |||
1799 | 398 | if (unicolor) { | ||
1800 | 399 | color = RGB_24to16(pixel0_0.R, pixel0_0.G, pixel0_0.B); | ||
1801 | 400 | unsigned char col2 = col + width - 1; | ||
1802 | 401 | unsigned char row2 = row + height - 1; | ||
1803 | 402 | char cmdRect[] = | ||
1804 | 403 | { 'r', msb(col), lsb(col), msb(row), lsb(row), msb(col2), lsb(col2), msb(row2), lsb(row2), msb(color), | ||
1805 | 404 | lsb(color) | ||
1806 | 405 | }; | ||
1807 | 406 | debug("Rectangle(%i, %i, %i, %i, %i", col, row, col2, row2, color); | ||
1808 | 407 | drv_D4D_send_extra(cmdRect, sizeof(cmdRect), 1, 3, 5, 7); | ||
1809 | 408 | } else { */ | ||
1810 | 409 | char cmd[] = | ||
1811 | 410 | { 'I', msb(col), lsb(col), msb(row), lsb(row), msb(width), lsb(width), msb(height), lsb(height), MODE }; | ||
1812 | 411 | int p = 0; | ||
1813 | 412 | drv_D4D_send_extra_nowait(cmd, sizeof(cmd), 1, 3, 5, 7); | ||
1814 | 268 | for (r = row; r < row + height; r++) { | 413 | for (r = row; r < row + height; r++) { |
1815 | 269 | if (!unicolor) | ||
1816 | 270 | break; | ||
1817 | 271 | for (c = col; c < col + width; c++) { | 414 | for (c = col; c < col + width; c++) { |
1850 | 272 | if (!unicolor) | 415 | rgb = drv_generic_graphic_rgb(r, c); |
1851 | 273 | break; | 416 | if (MODE == 8) { |
1852 | 274 | pixel = drv_generic_graphic_rgb(r, c); | 417 | colorArray[p++] = RGB_24to8(rgb.R, rgb.G, rgb.B); |
1853 | 275 | if (pixel0_0.R != pixel.R || pixel0_0.G != pixel.G || pixel0_0.B != pixel.B || pixel0_0.A != pixel.A) | 418 | } else { |
1854 | 276 | unicolor = 0; | 419 | color = RGB_24to16(rgb.R, rgb.G, rgb.B); |
1855 | 277 | } | 420 | colorArray[p++] = msb(color); |
1856 | 278 | } | 421 | colorArray[p++] = lsb(color); |
1825 | 279 | |||
1826 | 280 | if (unicolor) { | ||
1827 | 281 | color = RGB_24to16(pixel0_0.R, pixel0_0.G, pixel0_0.B); | ||
1828 | 282 | char row2 = row + height - 1; | ||
1829 | 283 | char cmdRect[] = | ||
1830 | 284 | { 'r', col, msb(row), lsb(row), col + width - 1, msb(row2), lsb(row2), msb(color), lsb(color) }; | ||
1831 | 285 | drv_D4D_send_extra(cmdRect, sizeof(cmdRect), 2, 5); | ||
1832 | 286 | } else { | ||
1833 | 287 | char cmd[] = { 'I', col, msb(row), lsb(row), width, msb(height), lsb(height), MODE }; | ||
1834 | 288 | drv_D4D_send_nowait_extra(cmd, sizeof(cmd), 2, 5); | ||
1835 | 289 | for (r = row; r < row + height; r++) { | ||
1836 | 290 | for (c = col; c < col + width; c++) { | ||
1837 | 291 | rgb = drv_generic_graphic_rgb(r, c); | ||
1838 | 292 | if (MODE == 8) { | ||
1839 | 293 | colorArray[0] = RGB_24to8(rgb.R, rgb.G, rgb.B); | ||
1840 | 294 | drv_D4D_send_nowait(colorArray, 1); | ||
1841 | 295 | } else { | ||
1842 | 296 | color = RGB_24to16(rgb.R, rgb.G, rgb.B); | ||
1843 | 297 | colorArray[0] = msb(color); | ||
1844 | 298 | drv_D4D_send_nowait(colorArray, 1); /* doesn't werk if sent together (error: "partial write(/dev/tts/1): len=2 ret=1") */ | ||
1845 | 299 | /* colorArray[1]=lsb(color); */ | ||
1846 | 300 | colorArray[0] = lsb(color); | ||
1847 | 301 | drv_D4D_send_nowait(colorArray, 1); | ||
1848 | 302 | } | ||
1849 | 303 | /* drv_D4D_send_nowait(colorArray, MODE/8); */ | ||
1857 | 304 | } | 422 | } |
1858 | 305 | } | 423 | } |
1859 | 306 | drv_D4D_receive_ACK(); | ||
1860 | 307 | } | 424 | } |
1861 | 425 | drv_D4D_send_nowait(colorArray, width * height * MODE / 8); /* doesn't werk if sent together (error: "partial write(/dev/tts/1): len=2 ret=1") */ | ||
1862 | 426 | drv_D4D_receive_ACK(); | ||
1863 | 427 | /*} */ | ||
1864 | 308 | } | 428 | } |
1865 | 309 | 429 | ||
1866 | 310 | 430 | ||
1867 | @@ -325,7 +445,7 @@ | |||
1868 | 325 | 445 | ||
1869 | 326 | static int drv_D4D_start(const char *section) | 446 | static int drv_D4D_start(const char *section) |
1870 | 327 | { | 447 | { |
1872 | 328 | /* error("drv_D4D_start()"); */ | 448 | info("drv_D4D_start()"); |
1873 | 329 | int contrast; | 449 | int contrast; |
1874 | 330 | int xres_cfg = -1, yres_cfg = -1; | 450 | int xres_cfg = -1, yres_cfg = -1; |
1875 | 331 | char *s; | 451 | char *s; |
1876 | @@ -335,14 +455,19 @@ | |||
1877 | 335 | return -1; | 455 | return -1; |
1878 | 336 | } | 456 | } |
1879 | 337 | 457 | ||
1885 | 338 | char cmd[] = { 'U' }; | 458 | char getVersion[] = { 'V', 0 /*1 */ }; |
1881 | 339 | drv_D4D_send(cmd, sizeof(cmd)); | ||
1882 | 340 | |||
1883 | 341 | |||
1884 | 342 | char getVersion[] = { 'V', 0 }; | ||
1886 | 343 | drv_D4D_send_nowait(getVersion, sizeof(getVersion)); | 459 | drv_D4D_send_nowait(getVersion, sizeof(getVersion)); |
1887 | 344 | char answer[5]; | 460 | char answer[5]; |
1889 | 345 | drv_generic_serial_read(answer, sizeof(answer)); | 461 | debug("reading answer[0]"); |
1890 | 462 | drv_generic_serial_read(answer + 0, 1); /* ,5: PICASO 0/1, Speed 9600: error: "partial read(/dev/ttyUSB0): len=5 ret=1" */ | ||
1891 | 463 | debug("reading answer[1]"); | ||
1892 | 464 | drv_generic_serial_read(answer + 1, 1); | ||
1893 | 465 | debug("reading answer[2]"); | ||
1894 | 466 | drv_generic_serial_read(answer + 2, 1); | ||
1895 | 467 | debug("reading answer[3]"); | ||
1896 | 468 | drv_generic_serial_read(answer + 3, 1); | ||
1897 | 469 | debug("reading answer[4]"); | ||
1898 | 470 | drv_generic_serial_read(answer + 4, 1); | ||
1899 | 346 | char *ids[] = { "uOLED", "uLCD", "uVGA" }; | 471 | char *ids[] = { "uOLED", "uLCD", "uVGA" }; |
1900 | 347 | char *id; | 472 | char *id; |
1901 | 348 | if (answer[0] <= 2) | 473 | if (answer[0] <= 2) |
1902 | @@ -380,7 +505,8 @@ | |||
1903 | 380 | res[i] = 240; | 505 | res[i] = 240; |
1904 | 381 | break; | 506 | break; |
1905 | 382 | default: | 507 | default: |
1907 | 383 | error("Can't detect display dimensions!"); | 508 | error("Can't detect display dimensions! answer: {%d, %d, %d, %d, %d}", answer[0], answer[1], answer[2], |
1908 | 509 | answer[3], answer[4]); | ||
1909 | 384 | return -1; | 510 | return -1; |
1910 | 385 | } | 511 | } |
1911 | 386 | } | 512 | } |
1912 | @@ -390,38 +516,38 @@ | |||
1913 | 390 | 516 | ||
1914 | 391 | cfg_number(section, "Mode", 0, 0, 16, &MODE); | 517 | cfg_number(section, "Mode", 0, 0, 16, &MODE); |
1915 | 392 | 518 | ||
1916 | 393 | s = cfg_get(section, "Font", NULL); | ||
1917 | 394 | if (s == NULL || *s == '\0') { | ||
1918 | 395 | error("%s: no '%s.Font' entry from %s", Name, section, cfg_source()); | ||
1919 | 396 | return -1; | ||
1920 | 397 | } | ||
1921 | 398 | if (sscanf(s, "%dx%d", &xres_cfg, &yres_cfg) < 1 || xres_cfg < 0) { | ||
1922 | 399 | error("%s: bad %s.Font '%s' from %s", Name, section, s, cfg_source()); | ||
1923 | 400 | free(s); | ||
1924 | 401 | return -1; | ||
1925 | 402 | } | ||
1926 | 403 | |||
1927 | 404 | if (yres_cfg == -1) { /* font on SD card */ | ||
1928 | 405 | SECTOR = xres_cfg * 512; | ||
1929 | 406 | char setAddress[] = | ||
1930 | 407 | { '@', 'A', address_mmsb(SECTOR), address_mlsb(SECTOR), address_lmsb(SECTOR), address_llsb(SECTOR) }; | ||
1931 | 408 | drv_D4D_send(setAddress, sizeof(setAddress)); | ||
1932 | 409 | char answer1[1]; | ||
1933 | 410 | char readByte[] = { '@', 'r' }; | ||
1934 | 411 | drv_D4D_send_nowait(readByte, sizeof(readByte)); | ||
1935 | 412 | drv_generic_serial_read(answer1, sizeof(answer1)); | ||
1936 | 413 | XRES = answer1[0]; | ||
1937 | 414 | drv_D4D_send_nowait(readByte, sizeof(readByte)); | ||
1938 | 415 | drv_generic_serial_read(answer1, sizeof(answer1)); | ||
1939 | 416 | YRES = answer1[0]; | ||
1940 | 417 | SECTOR = xres_cfg + 1; | ||
1941 | 418 | SECTOR_SIZE = ceil((double) XRES * (double) YRES * 2.0 / 512.0); | ||
1942 | 419 | } else { | ||
1943 | 420 | XRES = xres_cfg; | ||
1944 | 421 | YRES = yres_cfg; | ||
1945 | 422 | } | ||
1946 | 423 | |||
1947 | 424 | if (MODE == 0) { | 519 | if (MODE == 0) { |
1948 | 520 | s = cfg_get(section, "Font", NULL); | ||
1949 | 521 | if (s == NULL || *s == '\0') { | ||
1950 | 522 | error("%s: no '%s.Font' entry from %s", Name, section, cfg_source()); | ||
1951 | 523 | return -1; | ||
1952 | 524 | } | ||
1953 | 525 | if (sscanf(s, "%dx%d", &xres_cfg, &yres_cfg) < 1 || xres_cfg < 0) { | ||
1954 | 526 | error("%s: bad %s.Font '%s' from %s", Name, section, s, cfg_source()); | ||
1955 | 527 | free(s); | ||
1956 | 528 | return -1; | ||
1957 | 529 | } | ||
1958 | 530 | |||
1959 | 531 | if (yres_cfg == -1) { /* font on SD card */ | ||
1960 | 532 | SECTOR = xres_cfg * 512; | ||
1961 | 533 | char setAddress[] = | ||
1962 | 534 | { '@', 'A', address_mmsb(SECTOR), address_mlsb(SECTOR), address_lmsb(SECTOR), address_llsb(SECTOR) }; | ||
1963 | 535 | drv_D4D_send(setAddress, sizeof(setAddress)); | ||
1964 | 536 | char answer1[1]; | ||
1965 | 537 | char readByte[] = { '@', 'r' }; | ||
1966 | 538 | drv_D4D_send_nowait(readByte, sizeof(readByte)); | ||
1967 | 539 | drv_generic_serial_read(answer1, sizeof(answer1)); | ||
1968 | 540 | XRES = answer1[0]; | ||
1969 | 541 | drv_D4D_send_nowait(readByte, sizeof(readByte)); | ||
1970 | 542 | drv_generic_serial_read(answer1, sizeof(answer1)); | ||
1971 | 543 | YRES = answer1[0]; | ||
1972 | 544 | SECTOR = xres_cfg + 1; | ||
1973 | 545 | SECTOR_SIZE = ceil((double) XRES * (double) YRES * 2.0 / 512.0); | ||
1974 | 546 | } else { | ||
1975 | 547 | XRES = xres_cfg; | ||
1976 | 548 | YRES = yres_cfg; | ||
1977 | 549 | } | ||
1978 | 550 | |||
1979 | 425 | 551 | ||
1980 | 426 | color = cfg_get(section, "foreground", "ffffff"); | 552 | color = cfg_get(section, "foreground", "ffffff"); |
1981 | 427 | if (color2RGBA(color, &FG_COL_) < 0) { | 553 | if (color2RGBA(color, &FG_COL_) < 0) { |
1982 | @@ -474,8 +600,8 @@ | |||
1983 | 474 | 600 | ||
1984 | 475 | 601 | ||
1985 | 476 | 602 | ||
1988 | 477 | cfg_number(section, "NoPowerCycle", 0, 1, 65536, &NOPOWERCYCLE); | 603 | cfg_number(section, "PowerCycle", 0, 0, 1, &POWERCYCLE); |
1989 | 478 | if (!NOPOWERCYCLE) { | 604 | if (POWERCYCLE) { |
1990 | 479 | char powerOn[] = { 'Y', 3, 1 }; | 605 | char powerOn[] = { 'Y', 3, 1 }; |
1991 | 480 | drv_D4D_send(powerOn, sizeof(powerOn)); | 606 | drv_D4D_send(powerOn, sizeof(powerOn)); |
1992 | 481 | 607 | ||
1993 | @@ -523,7 +649,7 @@ | |||
1994 | 523 | } | 649 | } |
1995 | 524 | 650 | ||
1996 | 525 | 651 | ||
1998 | 526 | int lastVal[40 * 40 * 2]; /* ToDo: MAX_WIDGETS*2 */ | 652 | int lastVal[40 * 40 * 2]; /* Fixme: MAX_WIDGETS*2 */ |
1999 | 527 | int drv_D4D_bar_draw(WIDGET * W) | 653 | int drv_D4D_bar_draw(WIDGET * W) |
2000 | 528 | { | 654 | { |
2001 | 529 | /* optimizations: | 655 | /* optimizations: |
2002 | @@ -534,14 +660,14 @@ | |||
2003 | 534 | int row, col, len, res, max, val1, val2; | 660 | int row, col, len, res, max, val1, val2; |
2004 | 535 | DIRECTION dir; | 661 | DIRECTION dir; |
2005 | 536 | #if 0 | 662 | #if 0 |
2007 | 537 | STYLE style; /* Fixme: unused variable */ | 663 | STYLE style; /* Fixme: missing style support */ |
2008 | 538 | #endif | 664 | #endif |
2009 | 539 | 665 | ||
2010 | 540 | row = W->row; | 666 | row = W->row; |
2011 | 541 | col = W->col; | 667 | col = W->col; |
2012 | 542 | dir = Bar->direction; | 668 | dir = Bar->direction; |
2013 | 543 | #if 0 | 669 | #if 0 |
2015 | 544 | style = Bar->style; /* Fixme: unused variable */ | 670 | style = Bar->style; /* Fixme: missing style support */ |
2016 | 545 | #endif | 671 | #endif |
2017 | 546 | len = Bar->length; | 672 | len = Bar->length; |
2018 | 547 | 673 | ||
2019 | @@ -567,12 +693,12 @@ | |||
2020 | 567 | FG_COLOR = RGB_24to16(fg.R, fg.G, fg.B); | 693 | FG_COLOR = RGB_24to16(fg.R, fg.G, fg.B); |
2021 | 568 | BG_COLOR = RGB_24to16(bg.R, bg.G, bg.B); | 694 | BG_COLOR = RGB_24to16(bg.R, bg.G, bg.B); |
2022 | 569 | 695 | ||
2024 | 570 | char cmd[9]; | 696 | char cmd[11]; |
2025 | 571 | cmd[0] = 'r'; | 697 | cmd[0] = 'r'; |
2026 | 572 | int val[2]; | 698 | int val[2]; |
2027 | 573 | val[0] = val1; | 699 | val[0] = val1; |
2028 | 574 | val[1] = val2; | 700 | val[1] = val2; |
2030 | 575 | int i, vals; | 701 | int i, vals, x1, x2; |
2031 | 576 | int lastValIndex0 = row * DCOLS + col; | 702 | int lastValIndex0 = row * DCOLS + col; |
2032 | 577 | int cells = DROWS * DCOLS; | 703 | int cells = DROWS * DCOLS; |
2033 | 578 | if (val1 == val2 && lastVal[lastValIndex0] == lastVal[lastValIndex0 + cells]) | 704 | if (val1 == val2 && lastVal[lastValIndex0] == lastVal[lastValIndex0 + cells]) |
2034 | @@ -582,23 +708,33 @@ | |||
2035 | 582 | for (i = 0; i < vals; i++) { | 708 | for (i = 0; i < vals; i++) { |
2036 | 583 | int lastValIndex = lastValIndex0 + cells * (i /*+1 */ ); | 709 | int lastValIndex = lastValIndex0 + cells * (i /*+1 */ ); |
2037 | 584 | int y1 = row * YRES + (YRES / 2) * i; | 710 | int y1 = row * YRES + (YRES / 2) * i; |
2043 | 585 | cmd[2] = msb(y1); | 711 | cmd[3] = msb(y1); |
2044 | 586 | cmd[3] = lsb(y1); | 712 | cmd[4] = lsb(y1); |
2045 | 587 | int y2 = y1 + (YRES) / vals - 1; | 713 | int y2 = y1 + YRES / vals - 1; |
2046 | 588 | cmd[5] = msb(y2); | 714 | cmd[7] = msb(y2); |
2047 | 589 | cmd[6] = lsb(y2); | 715 | cmd[8] = lsb(y2); |
2048 | 590 | if (val[i] > lastVal[lastValIndex]) { | 716 | if (val[i] > lastVal[lastValIndex]) { |
2054 | 591 | cmd[1] = col * XRES + lastVal[lastValIndex]; | 717 | x1 = col * XRES + lastVal[lastValIndex]; |
2055 | 592 | cmd[4] = cmd[1] + val[i] - lastVal[lastValIndex] - 1; | 718 | cmd[1] = msb(x1); |
2056 | 593 | cmd[7] = msb(FG_COLOR); | 719 | cmd[2] = lsb(x1); |
2057 | 594 | cmd[8] = lsb(FG_COLOR); | 720 | x2 = x1 + val[i] - lastVal[lastValIndex] - 1; |
2058 | 595 | drv_D4D_send_extra(cmd, sizeof(cmd), 2, 5); | 721 | cmd[5] = msb(x2); |
2059 | 722 | cmd[6] = lsb(x2); | ||
2060 | 723 | cmd[9] = msb(FG_COLOR); | ||
2061 | 724 | cmd[10] = lsb(FG_COLOR); | ||
2062 | 725 | drv_D4D_send_extra(cmd, sizeof(cmd), 1, 3, 5, 7); | ||
2063 | 596 | } else if (val[i] < lastVal[lastValIndex]) { | 726 | } else if (val[i] < lastVal[lastValIndex]) { |
2069 | 597 | cmd[1] = col * XRES + val[i] - 1 + 1; | 727 | x1 = col * XRES + val[i] - 1 + 1; |
2070 | 598 | cmd[4] = cmd[1] + lastVal[lastValIndex] - val[i]; | 728 | cmd[1] = msb(x1); |
2071 | 599 | cmd[7] = msb(BG_COLOR); | 729 | cmd[2] = lsb(x1); |
2072 | 600 | cmd[8] = lsb(BG_COLOR); | 730 | x2 = x1 + lastVal[lastValIndex] - val[i]; |
2073 | 601 | drv_D4D_send_extra(cmd, sizeof(cmd), 2, 5); | 731 | cmd[5] = msb(x2); |
2074 | 732 | cmd[6] = lsb(x2); | ||
2075 | 733 | cmd[9] = msb(BG_COLOR); | ||
2076 | 734 | cmd[10] = lsb(BG_COLOR); | ||
2077 | 735 | drv_D4D_send_extra(cmd, sizeof(cmd), 1, 3, 5, 7); | ||
2078 | 736 | } else { | ||
2079 | 737 | /* do nothing */ | ||
2080 | 602 | } | 738 | } |
2081 | 603 | lastVal[lastValIndex] = val[i]; | 739 | lastVal[lastValIndex] = val[i]; |
2082 | 604 | } | 740 | } |
2083 | @@ -650,11 +786,11 @@ | |||
2084 | 650 | 786 | ||
2085 | 651 | int drv_D4D_init(const char *section, const int quiet) | 787 | int drv_D4D_init(const char *section, const int quiet) |
2086 | 652 | { | 788 | { |
2088 | 653 | /* error("drv_D4D_init()"); */ | 789 | info("drv_D4D_init()"); |
2089 | 654 | WIDGET_CLASS wc; | 790 | WIDGET_CLASS wc; |
2090 | 655 | int ret; | 791 | int ret; |
2091 | 656 | 792 | ||
2093 | 657 | info("%s: %s", Name, "$Rev: 1153 $"); | 793 | info("%s: %s", Name, "$Rev: 1163 $"); |
2094 | 658 | 794 | ||
2095 | 659 | if ((ret = drv_D4D_start(section)) != 0) | 795 | if ((ret = drv_D4D_start(section)) != 0) |
2096 | 660 | return ret; | 796 | return ret; |
2097 | @@ -732,7 +868,7 @@ | |||
2098 | 732 | 868 | ||
2099 | 733 | int drv_D4D_quit(const int quiet) | 869 | int drv_D4D_quit(const int quiet) |
2100 | 734 | { | 870 | { |
2102 | 735 | /* error("drv_D4D_quit()"); */ | 871 | info("drv_D4D_quit()"); |
2103 | 736 | 872 | ||
2104 | 737 | info("%s: shutting down.", Name); | 873 | info("%s: shutting down.", Name); |
2105 | 738 | 874 | ||
2106 | @@ -740,7 +876,7 @@ | |||
2107 | 740 | drv_generic_text_quit(); | 876 | drv_generic_text_quit(); |
2108 | 741 | 877 | ||
2109 | 742 | 878 | ||
2111 | 743 | if (!NOPOWERCYCLE) { | 879 | if (POWERCYCLE) { |
2112 | 744 | drv_D4D_clear(); | 880 | drv_D4D_clear(); |
2113 | 745 | } | 881 | } |
2114 | 746 | 882 | ||
2115 | @@ -761,12 +897,18 @@ | |||
2116 | 761 | if (MODE) | 897 | if (MODE) |
2117 | 762 | drv_generic_graphic_quit(); | 898 | drv_generic_graphic_quit(); |
2118 | 763 | 899 | ||
2120 | 764 | if (!NOPOWERCYCLE) { | 900 | if (POWERCYCLE) { |
2121 | 765 | char powerDown[] = { 'Y', 3, 0 }; | 901 | char powerDown[] = { 'Y', 3, 0 }; |
2122 | 766 | drv_D4D_send(powerDown, sizeof(powerDown)); | 902 | drv_D4D_send(powerDown, sizeof(powerDown)); |
2123 | 767 | } | 903 | } |
2124 | 768 | 904 | ||
2126 | 769 | debug("closing connection"); | 905 | if (EXTRA) { |
2127 | 906 | info("switching to 9600 baud"); | ||
2128 | 907 | char baud[] = { 'Q', 0x06 }; | ||
2129 | 908 | drv_D4D_send_nowait(baud, sizeof(baud)); | ||
2130 | 909 | } | ||
2131 | 910 | |||
2132 | 911 | info("closing connection"); | ||
2133 | 770 | drv_D4D_close(); | 912 | drv_D4D_close(); |
2134 | 771 | 913 | ||
2135 | 772 | return (0); | 914 | return (0); |
2136 | 773 | 915 | ||
2137 | === modified file 'drv_EFN.c' | |||
2138 | --- drv_EFN.c 2011-08-26 07:24:25 +0000 | |||
2139 | +++ drv_EFN.c 2011-12-27 00:36:23 +0000 | |||
2140 | @@ -318,7 +318,7 @@ | |||
2141 | 318 | /* list models */ | 318 | /* list models */ |
2142 | 319 | int drv_EFN_list(void) | 319 | int drv_EFN_list(void) |
2143 | 320 | { | 320 | { |
2145 | 321 | printf("EFN LED modules + EUG100 Ethernet to serial convertor"); | 321 | printf("EFN LED modules + EUG100 Ethernet to serial converter"); |
2146 | 322 | return 0; | 322 | return 0; |
2147 | 323 | } | 323 | } |
2148 | 324 | 324 | ||
2149 | 325 | 325 | ||
2150 | === modified file 'drv_generic_parport.c' | |||
2151 | --- drv_generic_parport.c 2011-04-27 17:28:49 +0000 | |||
2152 | +++ drv_generic_parport.c 2011-12-27 00:36:23 +0000 | |||
2153 | @@ -1,4 +1,4 @@ | |||
2155 | 1 | /* $Id: drv_generic_parport.c 905 2008-12-23 13:37:07Z michael $ | 1 | /* $Id: drv_generic_parport.c 1165 2011-12-26 06:28:05Z michael $ |
2156 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_generic_parport.c $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_generic_parport.c $ |
2157 | 3 | * | 3 | * |
2158 | 4 | * generic driver helper for serial and parport access | 4 | * generic driver helper for serial and parport access |
2159 | @@ -39,13 +39,17 @@ | |||
2160 | 39 | #include <sys/stat.h> | 39 | #include <sys/stat.h> |
2161 | 40 | #include <sys/ioctl.h> | 40 | #include <sys/ioctl.h> |
2162 | 41 | 41 | ||
2163 | 42 | #ifdef WITH_OUTB | ||
2164 | 42 | #ifdef HAVE_SYS_IO_H | 43 | #ifdef HAVE_SYS_IO_H |
2165 | 43 | #include <sys/io.h> | 44 | #include <sys/io.h> |
2166 | 44 | #define WITH_OUTB | ||
2167 | 45 | #else | 45 | #else |
2168 | 46 | #ifdef HAVE_ASM_IO_H | 46 | #ifdef HAVE_ASM_IO_H |
2169 | 47 | #include <asm/io.h> | 47 | #include <asm/io.h> |
2171 | 48 | #define WITH_OUTB | 48 | #else |
2172 | 49 | #warning neither sys/io.h nor asm/io.h exists. | ||
2173 | 50 | #warning raw port I/O will be disabled. | ||
2174 | 51 | #undef WITH_OUTB | ||
2175 | 52 | #endif | ||
2176 | 49 | #endif | 53 | #endif |
2177 | 50 | #endif | 54 | #endif |
2178 | 51 | 55 | ||
2179 | @@ -88,8 +92,10 @@ | |||
2180 | 88 | /* Any bits set here will have their logic inverted at the parallel port */ | 92 | /* Any bits set here will have their logic inverted at the parallel port */ |
2181 | 89 | static unsigned char inverted_control_bits = 0; | 93 | static unsigned char inverted_control_bits = 0; |
2182 | 90 | 94 | ||
2183 | 95 | #ifdef WITH_OUTB | ||
2184 | 91 | /* initial value taken from linux/parport_pc.c */ | 96 | /* initial value taken from linux/parport_pc.c */ |
2185 | 92 | static unsigned char ctr = 0xc; | 97 | static unsigned char ctr = 0xc; |
2186 | 98 | #endif | ||
2187 | 93 | 99 | ||
2188 | 94 | #ifdef WITH_PPDEV | 100 | #ifdef WITH_PPDEV |
2189 | 95 | static int PPfd = -1; | 101 | static int PPfd = -1; |
2190 | @@ -130,7 +136,6 @@ | |||
2191 | 130 | #endif | 136 | #endif |
2192 | 131 | } | 137 | } |
2193 | 132 | #ifdef WITH_PPDEV | 138 | #ifdef WITH_PPDEV |
2194 | 133 | |||
2195 | 134 | if (PPdev) { | 139 | if (PPdev) { |
2196 | 135 | info("%s: using ppdev %s", Driver, PPdev); | 140 | info("%s: using ppdev %s", Driver, PPdev); |
2197 | 136 | PPfd = open(PPdev, O_RDWR); | 141 | PPfd = open(PPdev, O_RDWR); |
2198 | @@ -147,15 +152,15 @@ | |||
2199 | 147 | info("%s: got exclusive access to %s.", Driver, PPdev); | 152 | info("%s: got exclusive access to %s.", Driver, PPdev); |
2200 | 148 | } | 153 | } |
2201 | 149 | #endif | 154 | #endif |
2202 | 150 | |||
2203 | 151 | if (ioctl(PPfd, PPCLAIM)) { | 155 | if (ioctl(PPfd, PPCLAIM)) { |
2204 | 152 | error("%s: ioctl(%s, PPCLAIM) failed: %d %s", Driver, PPdev, errno, strerror(errno)); | 156 | error("%s: ioctl(%s, PPCLAIM) failed: %d %s", Driver, PPdev, errno, strerror(errno)); |
2205 | 153 | return -1; | 157 | return -1; |
2206 | 154 | } | 158 | } |
2208 | 155 | } else | 159 | } |
2209 | 156 | #endif | 160 | #endif |
2210 | 157 | 161 | ||
2212 | 158 | { | 162 | #ifdef WITH_OUTB |
2213 | 163 | if (Port) { | ||
2214 | 159 | error("using raw port 0x%x (deprecated!)", Port); | 164 | error("using raw port 0x%x (deprecated!)", Port); |
2215 | 160 | error("You *really* should change your setup and use ppdev!"); | 165 | error("You *really* should change your setup and use ppdev!"); |
2216 | 161 | if ((Port + 3) <= 0x3ff) { | 166 | if ((Port + 3) <= 0x3ff) { |
2217 | @@ -170,6 +175,7 @@ | |||
2218 | 170 | } | 175 | } |
2219 | 171 | } | 176 | } |
2220 | 172 | } | 177 | } |
2221 | 178 | #endif | ||
2222 | 173 | return 0; | 179 | return 0; |
2223 | 174 | } | 180 | } |
2224 | 175 | 181 | ||
2225 | @@ -187,9 +193,11 @@ | |||
2226 | 187 | return -1; | 193 | return -1; |
2227 | 188 | } | 194 | } |
2228 | 189 | free(PPdev); | 195 | free(PPdev); |
2230 | 190 | } else | 196 | } |
2231 | 191 | #endif | 197 | #endif |
2233 | 192 | { | 198 | |
2234 | 199 | #ifdef WITH_OUTB | ||
2235 | 200 | if (Port) { | ||
2236 | 193 | debug("closing raw port 0x%x", Port); | 201 | debug("closing raw port 0x%x", Port); |
2237 | 194 | if ((Port + 3) <= 0x3ff) { | 202 | if ((Port + 3) <= 0x3ff) { |
2238 | 195 | if (ioperm(Port, 3, 0) != 0) { | 203 | if (ioperm(Port, 3, 0) != 0) { |
2239 | @@ -203,6 +211,7 @@ | |||
2240 | 203 | } | 211 | } |
2241 | 204 | } | 212 | } |
2242 | 205 | } | 213 | } |
2243 | 214 | #endif | ||
2244 | 206 | 215 | ||
2245 | 207 | return 0; | 216 | return 0; |
2246 | 208 | } | 217 | } |
2247 | @@ -374,13 +383,16 @@ | |||
2248 | 374 | #ifdef WITH_PPDEV | 383 | #ifdef WITH_PPDEV |
2249 | 375 | if (PPdev) { | 384 | if (PPdev) { |
2250 | 376 | ioctl(PPfd, PPDATADIR, &direction); | 385 | ioctl(PPfd, PPDATADIR, &direction); |
2252 | 377 | } else | 386 | } |
2253 | 378 | #endif | 387 | #endif |
2255 | 379 | { | 388 | |
2256 | 389 | #ifdef WITH_OUTB | ||
2257 | 390 | if (Port) { | ||
2258 | 380 | /* code stolen from linux/parport_pc.h */ | 391 | /* code stolen from linux/parport_pc.h */ |
2259 | 381 | ctr = (ctr & ~0x20) ^ (direction ? 0x20 : 0x00); | 392 | ctr = (ctr & ~0x20) ^ (direction ? 0x20 : 0x00); |
2260 | 382 | outb(ctr, Port + 2); | 393 | outb(ctr, Port + 2); |
2261 | 383 | } | 394 | } |
2262 | 395 | #endif | ||
2263 | 384 | } | 396 | } |
2264 | 385 | 397 | ||
2265 | 386 | 398 | ||
2266 | @@ -395,11 +407,14 @@ | |||
2267 | 395 | #ifdef WITH_PPDEV | 407 | #ifdef WITH_PPDEV |
2268 | 396 | if (PPdev) { | 408 | if (PPdev) { |
2269 | 397 | ioctl(PPfd, PPRSTATUS, &data); | 409 | ioctl(PPfd, PPRSTATUS, &data); |
2271 | 398 | } else | 410 | } |
2272 | 399 | #endif | 411 | #endif |
2274 | 400 | { | 412 | |
2275 | 413 | #ifdef WITH_OUTB | ||
2276 | 414 | if (Port) { | ||
2277 | 401 | data = inb(Port + 1); | 415 | data = inb(Port + 1); |
2278 | 402 | } | 416 | } |
2279 | 417 | #endif | ||
2280 | 403 | 418 | ||
2281 | 404 | /* clear unused bits */ | 419 | /* clear unused bits */ |
2282 | 405 | data &= mask; | 420 | data &= mask; |
2283 | @@ -426,13 +441,16 @@ | |||
2284 | 426 | frob.mask = mask; | 441 | frob.mask = mask; |
2285 | 427 | frob.val = val; | 442 | frob.val = val; |
2286 | 428 | ioctl(PPfd, PPFCONTROL, &frob); | 443 | ioctl(PPfd, PPFCONTROL, &frob); |
2288 | 429 | } else | 444 | } |
2289 | 430 | #endif | 445 | #endif |
2291 | 431 | { | 446 | |
2292 | 447 | #ifdef WITH_OUTB | ||
2293 | 448 | if (Port) { | ||
2294 | 432 | /* code stolen from linux/parport_pc.h */ | 449 | /* code stolen from linux/parport_pc.h */ |
2295 | 433 | ctr = (ctr & ~mask) ^ val; | 450 | ctr = (ctr & ~mask) ^ val; |
2296 | 434 | outb(ctr, Port + 2); | 451 | outb(ctr, Port + 2); |
2297 | 435 | } | 452 | } |
2298 | 453 | #endif | ||
2299 | 436 | } | 454 | } |
2300 | 437 | 455 | ||
2301 | 438 | 456 | ||
2302 | @@ -469,9 +487,11 @@ | |||
2303 | 469 | frob.val = value2; | 487 | frob.val = value2; |
2304 | 470 | ioctl(PPfd, PPFCONTROL, &frob); | 488 | ioctl(PPfd, PPFCONTROL, &frob); |
2305 | 471 | 489 | ||
2307 | 472 | } else | 490 | } |
2308 | 473 | #endif | 491 | #endif |
2310 | 474 | { | 492 | |
2311 | 493 | #ifdef WITH_OUTB | ||
2312 | 494 | if (Port) { | ||
2313 | 475 | /* rise */ | 495 | /* rise */ |
2314 | 476 | ctr = (ctr & ~bits) ^ value1; | 496 | ctr = (ctr & ~bits) ^ value1; |
2315 | 477 | outb(ctr, Port + 2); | 497 | outb(ctr, Port + 2); |
2316 | @@ -483,6 +503,7 @@ | |||
2317 | 483 | ctr = (ctr & ~bits) ^ value2; | 503 | ctr = (ctr & ~bits) ^ value2; |
2318 | 484 | outb(ctr, Port + 2); | 504 | outb(ctr, Port + 2); |
2319 | 485 | } | 505 | } |
2320 | 506 | #endif | ||
2321 | 486 | } | 507 | } |
2322 | 487 | 508 | ||
2323 | 488 | 509 | ||
2324 | @@ -491,41 +512,51 @@ | |||
2325 | 491 | #ifdef WITH_PPDEV | 512 | #ifdef WITH_PPDEV |
2326 | 492 | if (PPdev) { | 513 | if (PPdev) { |
2327 | 493 | ioctl(PPfd, PPWDATA, &data); | 514 | ioctl(PPfd, PPWDATA, &data); |
2329 | 494 | } else | 515 | } |
2330 | 495 | #endif | 516 | #endif |
2332 | 496 | { | 517 | |
2333 | 518 | #ifdef WITH_OUTB | ||
2334 | 519 | if (Port) { | ||
2335 | 497 | outb(data, Port); | 520 | outb(data, Port); |
2336 | 498 | } | 521 | } |
2337 | 522 | #endif | ||
2338 | 499 | } | 523 | } |
2339 | 500 | 524 | ||
2340 | 501 | unsigned char drv_generic_parport_read(void) | 525 | unsigned char drv_generic_parport_read(void) |
2341 | 502 | { | 526 | { |
2343 | 503 | unsigned char data; | 527 | unsigned char data = 0; |
2344 | 504 | 528 | ||
2345 | 505 | #ifdef WITH_PPDEV | 529 | #ifdef WITH_PPDEV |
2346 | 506 | if (PPdev) { | 530 | if (PPdev) { |
2347 | 507 | ioctl(PPfd, PPRDATA, &data); | 531 | ioctl(PPfd, PPRDATA, &data); |
2349 | 508 | } else | 532 | } |
2350 | 509 | #endif | 533 | #endif |
2352 | 510 | { | 534 | |
2353 | 535 | #ifdef WITH_OUTB | ||
2354 | 536 | if (Port) { | ||
2355 | 511 | data = inb(Port); | 537 | data = inb(Port); |
2356 | 512 | } | 538 | } |
2357 | 539 | #endif | ||
2358 | 540 | |||
2359 | 513 | return data; | 541 | return data; |
2360 | 514 | } | 542 | } |
2361 | 515 | 543 | ||
2362 | 516 | 544 | ||
2363 | 517 | void drv_generic_parport_debug(void) | 545 | void drv_generic_parport_debug(void) |
2364 | 518 | { | 546 | { |
2366 | 519 | unsigned char control; | 547 | unsigned char control = 0; |
2367 | 520 | 548 | ||
2368 | 521 | #ifdef WITH_PPDEV | 549 | #ifdef WITH_PPDEV |
2369 | 522 | if (PPdev) { | 550 | if (PPdev) { |
2370 | 523 | ioctl(PPfd, PPRCONTROL, &control); | 551 | ioctl(PPfd, PPRCONTROL, &control); |
2372 | 524 | } else | 552 | } |
2373 | 525 | #endif | 553 | #endif |
2375 | 526 | { | 554 | |
2376 | 555 | #ifdef WITH_OUTB | ||
2377 | 556 | if (Port) { | ||
2378 | 527 | control = ctr; | 557 | control = ctr; |
2379 | 528 | } | 558 | } |
2380 | 559 | #endif | ||
2381 | 529 | 560 | ||
2382 | 530 | debug("%cSTROBE %cAUTOFD %cINIT %cSLCTIN", | 561 | debug("%cSTROBE %cAUTOFD %cINIT %cSLCTIN", |
2383 | 531 | control & PARPORT_CONTROL_STROBE ? '-' : '+', | 562 | control & PARPORT_CONTROL_STROBE ? '-' : '+', |
2384 | 532 | 563 | ||
2385 | === modified file 'drv_generic_text.h' | |||
2386 | --- drv_generic_text.h 2011-04-27 17:28:49 +0000 | |||
2387 | +++ drv_generic_text.h 2011-12-27 00:36:23 +0000 | |||
2388 | @@ -1,4 +1,4 @@ | |||
2390 | 1 | /* $Id: drv_generic_text.h 840 2007-09-09 12:17:42Z michael $ | 1 | /* $Id: drv_generic_text.h 1164 2011-12-22 10:48:01Z mjona $ |
2391 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_generic_text.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_generic_text.h $ |
2392 | 3 | * | 3 | * |
2393 | 4 | * generic driver helper for text-based displays | 4 | * generic driver helper for text-based displays |
2394 | @@ -31,6 +31,7 @@ | |||
2395 | 31 | 31 | ||
2396 | 32 | #include "drv_generic.h" | 32 | #include "drv_generic.h" |
2397 | 33 | #include "widget.h" | 33 | #include "widget.h" |
2398 | 34 | #include "widget_bar.h" | ||
2399 | 34 | 35 | ||
2400 | 35 | extern int CHARS, CHAR0; /* number of user-defineable characters, ASCII of first char */ | 36 | extern int CHARS, CHAR0; /* number of user-defineable characters, ASCII of first char */ |
2401 | 36 | extern int ICONS; /* number of user-defineable characters reserved for icons */ | 37 | extern int ICONS; /* number of user-defineable characters reserved for icons */ |
2402 | 37 | 38 | ||
2403 | === modified file 'lcd4linux_i2c.h' | |||
2404 | --- lcd4linux_i2c.h 2011-04-27 17:28:49 +0000 | |||
2405 | +++ lcd4linux_i2c.h 2011-12-27 00:36:23 +0000 | |||
2406 | @@ -1,4 +1,4 @@ | |||
2408 | 1 | /* $Id: lcd4linux_i2c.h 728 2007-01-14 11:14:38Z michael $ | 1 | /* $Id: lcd4linux_i2c.h 1164 2011-12-22 10:48:01Z mjona $ |
2409 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/lcd4linux_i2c.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/lcd4linux_i2c.h $ |
2410 | 3 | * | 3 | * |
2411 | 4 | * user space i2c sturctures and defines, taken from the official kernel i2c | 4 | * user space i2c sturctures and defines, taken from the official kernel i2c |
2412 | @@ -459,6 +459,7 @@ | |||
2413 | 459 | 459 | ||
2414 | 460 | #define I2C_RDRW_IOCTL_MAX_MSGS 42 | 460 | #define I2C_RDRW_IOCTL_MAX_MSGS 42 |
2415 | 461 | 461 | ||
2416 | 462 | #include <stdlib.h> | ||
2417 | 462 | #include <sys/ioctl.h> | 463 | #include <sys/ioctl.h> |
2418 | 463 | 464 | ||
2419 | 464 | static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command, int size, union i2c_smbus_data *data) | 465 | static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command, int size, union i2c_smbus_data *data) |
2420 | 465 | 466 | ||
2421 | === modified file 'plugin_huawei.c' | |||
2422 | --- plugin_huawei.c 2011-08-26 07:24:25 +0000 | |||
2423 | +++ plugin_huawei.c 2011-12-27 00:36:23 +0000 | |||
2424 | @@ -563,7 +563,7 @@ | |||
2425 | 563 | 563 | ||
2426 | 564 | if (strncmp(buf, "OK", 2) == 0) { | 564 | if (strncmp(buf, "OK", 2) == 0) { |
2427 | 565 | configured = 1; | 565 | configured = 1; |
2429 | 566 | info("%s: Modem user inerface succesfully initialized to: \'%s\'", name, INIT_STRING); | 566 | info("%s: Modem user inerface successfully initialized to: \'%s\'", name, INIT_STRING); |
2430 | 567 | } else { | 567 | } else { |
2431 | 568 | configured = 0; | 568 | configured = 0; |
2432 | 569 | error("%s: ERROR: Invalid or empty response: \'%s\' received for: \'%s\'", name, buf, INIT_STRING); | 569 | error("%s: ERROR: Invalid or empty response: \'%s\' received for: \'%s\'", name, buf, INIT_STRING); |
2433 | 570 | 570 | ||
2434 | === modified file 'plugin_pop3.c' | |||
2435 | --- plugin_pop3.c 2011-04-27 17:28:49 +0000 | |||
2436 | +++ plugin_pop3.c 2011-12-27 00:36:23 +0000 | |||
2437 | @@ -1,4 +1,4 @@ | |||
2439 | 1 | /* $Id: plugin_pop3.c 728 2007-01-14 11:14:38Z michael $ | 1 | /* $Id: plugin_pop3.c 1159 2011-08-31 22:00:29Z jmccrohan $ |
2440 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/plugin_pop3.c $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/plugin_pop3.c $ |
2441 | 3 | * | 3 | * |
2442 | 4 | * Plugin to check POP3 mail accounts | 4 | * Plugin to check POP3 mail accounts |
2443 | @@ -299,7 +299,7 @@ | |||
2444 | 299 | n = getConfig(); | 299 | n = getConfig(); |
2445 | 300 | /* by now, head should point to a list of all our accounts */ | 300 | /* by now, head should point to a list of all our accounts */ |
2446 | 301 | if (head) { | 301 | if (head) { |
2448 | 302 | info("[POP3] %d POP3 accounts have been succesfully defined", n); | 302 | info("[POP3] %d POP3 accounts have been successfully defined", n); |
2449 | 303 | configured = 1; | 303 | configured = 1; |
2450 | 304 | } else { | 304 | } else { |
2451 | 305 | configured = -1; | 305 | configured = -1; |
2452 | 306 | 306 | ||
2453 | === modified file 'plugins.m4' | |||
2454 | --- plugins.m4 2011-08-26 07:26:25 +0000 | |||
2455 | +++ plugins.m4 2011-12-27 00:36:23 +0000 | |||
2456 | @@ -1,4 +1,4 @@ | |||
2458 | 1 | dnl $Id: plugins.m4 1149 2011-07-27 02:36:25Z michael $ | 1 | dnl $Id: plugins.m4 1165 2011-12-26 06:28:05Z michael $ |
2459 | 2 | dnl $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/plugins.m4 $ | 2 | dnl $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/plugins.m4 $ |
2460 | 3 | 3 | ||
2461 | 4 | 4 | ||
2462 | @@ -101,6 +101,47 @@ | |||
2463 | 101 | PLUGIN_WIRELESS="yes" | 101 | PLUGIN_WIRELESS="yes" |
2464 | 102 | PLUGIN_XMMS="yes" | 102 | PLUGIN_XMMS="yes" |
2465 | 103 | ;; | 103 | ;; |
2466 | 104 | none) | ||
2467 | 105 | PLUGIN_APM="no" | ||
2468 | 106 | PLUGIN_ASTERISK="no" | ||
2469 | 107 | PLUGIN_BUTTON_EXEC="no" | ||
2470 | 108 | PLUGIN_CPUINFO="no" | ||
2471 | 109 | PLUGIN_DBUS="no" | ||
2472 | 110 | PLUGIN_DISKSTATS="no" | ||
2473 | 111 | PLUGIN_DVB="no" | ||
2474 | 112 | PLUGIN_EXEC="no" | ||
2475 | 113 | PLUGIN_EVENT="no" | ||
2476 | 114 | PLUGIN_FIFO="no" | ||
2477 | 115 | PLUGIN_FILE="no" | ||
2478 | 116 | PLUGIN_GPS="no" | ||
2479 | 117 | PLUGIN_HDDTEMP="no" | ||
2480 | 118 | PLUGIN_HUAWEI="no" | ||
2481 | 119 | PLUGIN_I2C_SENSORS="no" | ||
2482 | 120 | PLUGIN_ICONV="no" | ||
2483 | 121 | PLUGIN_IMON="no" | ||
2484 | 122 | PLUGIN_ISDN="no" | ||
2485 | 123 | PLUGIN_KVV="no" | ||
2486 | 124 | PLUGIN_LOADAVG="no" | ||
2487 | 125 | PLUGIN_MEMINFO="no" | ||
2488 | 126 | PLUGIN_MPD="no" | ||
2489 | 127 | PLUGIN_MPRIS_DBUS="no" | ||
2490 | 128 | PLUGIN_MYSQL="no" | ||
2491 | 129 | PLUGIN_NETDEV="no" | ||
2492 | 130 | PLUGIN_NETINFO="no" | ||
2493 | 131 | PLUGIN_POP3="no" | ||
2494 | 132 | PLUGIN_PPP="no" | ||
2495 | 133 | PLUGIN_PROC_STAT="no" | ||
2496 | 134 | PLUGIN_PYTHON="no" | ||
2497 | 135 | PLUGIN_QNAPLOG="no" | ||
2498 | 136 | PLUGIN_SAMPLE="no" | ||
2499 | 137 | PLUGIN_SETI="no" | ||
2500 | 138 | PLUGIN_STATFS="no" | ||
2501 | 139 | PLUGIN_UNAME="no" | ||
2502 | 140 | PLUGIN_UPTIME="no" | ||
2503 | 141 | PLUGIN_W1RETAP="no" | ||
2504 | 142 | PLUGIN_WIRELESS="no" | ||
2505 | 143 | PLUGIN_XMMS="no" | ||
2506 | 144 | ;; | ||
2507 | 104 | apm) | 145 | apm) |
2508 | 105 | PLUGIN_APM=$val | 146 | PLUGIN_APM=$val |
2509 | 106 | ;; | 147 | ;; |
2510 | @@ -583,9 +624,5 @@ | |||
2511 | 583 | AC_DEFINE(PLUGIN_XMMS,1,[xmms plugin]) | 624 | AC_DEFINE(PLUGIN_XMMS,1,[xmms plugin]) |
2512 | 584 | fi | 625 | fi |
2513 | 585 | 626 | ||
2514 | 586 | if test "$PLUGINS" = ""; then | ||
2515 | 587 | AC_MSG_ERROR([You should include at least one plugin...]) | ||
2516 | 588 | fi | ||
2517 | 589 | |||
2518 | 590 | AC_SUBST(PLUGINS) | 627 | AC_SUBST(PLUGINS) |
2519 | 591 | AC_SUBST(PLUGINLIBS) | 628 | AC_SUBST(PLUGINLIBS) |
2520 | 592 | 629 | ||
2521 | === modified file 'svn_version.h' | |||
2522 | --- svn_version.h 2011-04-27 17:28:49 +0000 | |||
2523 | +++ svn_version.h 2011-12-27 00:36:23 +0000 | |||
2524 | @@ -1,1 +1,1 @@ | |||
2526 | 1 | #define SVN_VERSION "1092" | 1 | #define SVN_VERSION "1158" |
2527 | 2 | 2 | ||
2528 | === modified file 'timer.h' | |||
2529 | --- timer.h 2011-04-27 17:28:49 +0000 | |||
2530 | +++ timer.h 2011-12-27 00:36:23 +0000 | |||
2531 | @@ -1,4 +1,4 @@ | |||
2533 | 1 | /* $Id: timer.h 1136 2010-11-28 16:07:16Z mzuther $ | 1 | /* $Id: timer.h 1164 2011-12-22 10:48:01Z mjona $ |
2534 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/timer.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/timer.h $ |
2535 | 3 | * | 3 | * |
2536 | 4 | * generic timer handling | 4 | * generic timer handling |
2537 | @@ -28,6 +28,7 @@ | |||
2538 | 28 | #ifndef _TIMER_H_ | 28 | #ifndef _TIMER_H_ |
2539 | 29 | #define _TIMER_H_ | 29 | #define _TIMER_H_ |
2540 | 30 | 30 | ||
2541 | 31 | #include <time.h> | ||
2542 | 31 | 32 | ||
2543 | 32 | int timer_add(void (*callback) (void *data), void *data, const int interval, const int one_shot); | 33 | int timer_add(void (*callback) (void *data), void *data, const int interval, const int one_shot); |
2544 | 33 | 34 | ||
2545 | 34 | 35 | ||
2546 | === modified file 'widget_bar.h' | |||
2547 | --- widget_bar.h 2011-04-27 17:28:49 +0000 | |||
2548 | +++ widget_bar.h 2011-12-27 00:36:23 +0000 | |||
2549 | @@ -1,4 +1,4 @@ | |||
2551 | 1 | /* $Id: widget_bar.h 840 2007-09-09 12:17:42Z michael $ | 1 | /* $Id: widget_bar.h 1164 2011-12-22 10:48:01Z mjona $ |
2552 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_bar.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_bar.h $ |
2553 | 3 | * | 3 | * |
2554 | 4 | * bar widget handling | 4 | * bar widget handling |
2555 | @@ -29,6 +29,8 @@ | |||
2556 | 29 | #define _WIDGET_BAR_H_ | 29 | #define _WIDGET_BAR_H_ |
2557 | 30 | 30 | ||
2558 | 31 | #include "property.h" | 31 | #include "property.h" |
2559 | 32 | #include "widget.h" | ||
2560 | 33 | #include "rgb.h" | ||
2561 | 32 | 34 | ||
2562 | 33 | typedef enum { DIR_EAST = 1, DIR_WEST = 2, DIR_NORTH = 4, DIR_SOUTH = 8 } DIRECTION; | 35 | typedef enum { DIR_EAST = 1, DIR_WEST = 2, DIR_NORTH = 4, DIR_SOUTH = 8 } DIRECTION; |
2563 | 34 | typedef enum { STYLE_HOLLOW = 1, STYLE_FIRST = 2, STYLE_LAST = 4 } STYLE; | 36 | typedef enum { STYLE_HOLLOW = 1, STYLE_FIRST = 2, STYLE_LAST = 4 } STYLE; |
2564 | 35 | 37 | ||
2565 | === modified file 'widget_gpo.h' | |||
2566 | --- widget_gpo.h 2011-04-27 17:28:49 +0000 | |||
2567 | +++ widget_gpo.h 2011-12-27 00:36:23 +0000 | |||
2568 | @@ -1,4 +1,4 @@ | |||
2570 | 1 | /* $Id: widget_gpo.h 840 2007-09-09 12:17:42Z michael $ | 1 | /* $Id: widget_gpo.h 1164 2011-12-22 10:48:01Z mjona $ |
2571 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_gpo.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_gpo.h $ |
2572 | 3 | * | 3 | * |
2573 | 4 | * GPO widget handling | 4 | * GPO widget handling |
2574 | @@ -29,6 +29,7 @@ | |||
2575 | 29 | #define _WIDGET_GPO_H_ | 29 | #define _WIDGET_GPO_H_ |
2576 | 30 | 30 | ||
2577 | 31 | #include "property.h" | 31 | #include "property.h" |
2578 | 32 | #include "widget.h" | ||
2579 | 32 | 33 | ||
2580 | 33 | typedef struct WIDGET_GPO { | 34 | typedef struct WIDGET_GPO { |
2581 | 34 | PROPERTY expression; /* main GPO expression */ | 35 | PROPERTY expression; /* main GPO expression */ |
2582 | 35 | 36 | ||
2583 | === modified file 'widget_icon.h' | |||
2584 | --- widget_icon.h 2011-04-27 17:28:49 +0000 | |||
2585 | +++ widget_icon.h 2011-12-27 00:36:23 +0000 | |||
2586 | @@ -1,4 +1,4 @@ | |||
2588 | 1 | /* $Id: widget_icon.h 1035 2009-05-19 10:42:01Z michael $ | 1 | /* $Id: widget_icon.h 1164 2011-12-22 10:48:01Z mjona $ |
2589 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_icon.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_icon.h $ |
2590 | 3 | * | 3 | * |
2591 | 4 | * icon widget handling | 4 | * icon widget handling |
2592 | @@ -29,6 +29,7 @@ | |||
2593 | 29 | #define _WIDGET_ICON_H_ | 29 | #define _WIDGET_ICON_H_ |
2594 | 30 | 30 | ||
2595 | 31 | #include "property.h" | 31 | #include "property.h" |
2596 | 32 | #include "widget.h" | ||
2597 | 32 | 33 | ||
2598 | 33 | typedef struct WIDGET_ICON { | 34 | typedef struct WIDGET_ICON { |
2599 | 34 | PROPERTY speed; /* update interval (msec) */ | 35 | PROPERTY speed; /* update interval (msec) */ |
2600 | 35 | 36 | ||
2601 | === modified file 'widget_image.h' | |||
2602 | --- widget_image.h 2011-04-27 17:28:49 +0000 | |||
2603 | +++ widget_image.h 2011-12-27 00:36:23 +0000 | |||
2604 | @@ -1,4 +1,4 @@ | |||
2606 | 1 | /* $Id: widget_image.h 840 2007-09-09 12:17:42Z michael $ | 1 | /* $Id: widget_image.h 1164 2011-12-22 10:48:01Z mjona $ |
2607 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_image.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_image.h $ |
2608 | 3 | * | 3 | * |
2609 | 4 | * image widget handling | 4 | * image widget handling |
2610 | @@ -29,6 +29,7 @@ | |||
2611 | 29 | #define _WIDGET_IMAGE_H_ | 29 | #define _WIDGET_IMAGE_H_ |
2612 | 30 | 30 | ||
2613 | 31 | #include "property.h" | 31 | #include "property.h" |
2614 | 32 | #include "widget.h" | ||
2615 | 32 | #include "rgb.h" | 33 | #include "rgb.h" |
2616 | 33 | 34 | ||
2617 | 34 | typedef struct WIDGET_IMAGE { | 35 | typedef struct WIDGET_IMAGE { |
2618 | 35 | 36 | ||
2619 | === modified file 'widget_keypad.h' | |||
2620 | --- widget_keypad.h 2011-04-27 17:28:49 +0000 | |||
2621 | +++ widget_keypad.h 2011-12-27 00:36:23 +0000 | |||
2622 | @@ -1,4 +1,4 @@ | |||
2624 | 1 | /* $Id: widget_keypad.h 748 2007-01-20 05:00:06Z michael $ | 1 | /* $Id: widget_keypad.h 1164 2011-12-22 10:48:01Z mjona $ |
2625 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_keypad.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_keypad.h $ |
2626 | 3 | * | 3 | * |
2627 | 4 | * keypad widget handling | 4 | * keypad widget handling |
2628 | @@ -29,6 +29,7 @@ | |||
2629 | 29 | #define _WIDGET_KEYPAD_H_ | 29 | #define _WIDGET_KEYPAD_H_ |
2630 | 30 | 30 | ||
2631 | 31 | #include "property.h" | 31 | #include "property.h" |
2632 | 32 | #include "widget.h" | ||
2633 | 32 | 33 | ||
2634 | 33 | typedef enum { | 34 | typedef enum { |
2635 | 34 | WIDGET_KEY_UP = 1, | 35 | WIDGET_KEY_UP = 1, |
2636 | 35 | 36 | ||
2637 | === modified file 'widget_text.h' | |||
2638 | --- widget_text.h 2011-04-27 17:28:49 +0000 | |||
2639 | +++ widget_text.h 2011-12-27 00:36:23 +0000 | |||
2640 | @@ -1,4 +1,4 @@ | |||
2642 | 1 | /* $Id: widget_text.h 1083 2010-01-18 13:12:25Z michael $ | 1 | /* $Id: widget_text.h 1164 2011-12-22 10:48:01Z mjona $ |
2643 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_text.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_text.h $ |
2644 | 3 | * | 3 | * |
2645 | 4 | * simple text widget handling | 4 | * simple text widget handling |
2646 | @@ -29,6 +29,7 @@ | |||
2647 | 29 | #define _WIDGET_TEXT_H_ | 29 | #define _WIDGET_TEXT_H_ |
2648 | 30 | 30 | ||
2649 | 31 | #include "property.h" | 31 | #include "property.h" |
2650 | 32 | #include "widget.h" | ||
2651 | 32 | 33 | ||
2652 | 33 | typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE, ALIGN_AUTOMATIC, ALIGN_PINGPONG_LEFT, | 34 | typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE, ALIGN_AUTOMATIC, ALIGN_PINGPONG_LEFT, |
2653 | 34 | ALIGN_PINGPONG_CENTER, ALIGN_PINGPONG_RIGHT | 35 | ALIGN_PINGPONG_CENTER, ALIGN_PINGPONG_RIGHT |
2654 | 35 | 36 | ||
2655 | === modified file 'widget_timer.h' | |||
2656 | --- widget_timer.h 2011-04-27 17:28:49 +0000 | |||
2657 | +++ widget_timer.h 2011-12-27 00:36:23 +0000 | |||
2658 | @@ -1,4 +1,4 @@ | |||
2660 | 1 | /* $Id: widget_timer.h 840 2007-09-09 12:17:42Z michael $ | 1 | /* $Id: widget_timer.h 1164 2011-12-22 10:48:01Z mjona $ |
2661 | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_timer.h $ | 2 | * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_timer.h $ |
2662 | 3 | * | 3 | * |
2663 | 4 | * timer widget handling | 4 | * timer widget handling |
2664 | @@ -29,6 +29,7 @@ | |||
2665 | 29 | #define _WIDGET_TIMER_H_ | 29 | #define _WIDGET_TIMER_H_ |
2666 | 30 | 30 | ||
2667 | 31 | #include "property.h" | 31 | #include "property.h" |
2668 | 32 | #include "widget.h" | ||
2669 | 32 | 33 | ||
2670 | 33 | typedef struct WIDGET_TIMER { | 34 | typedef struct WIDGET_TIMER { |
2671 | 34 | PROPERTY expression; /* main timer expression */ | 35 | PROPERTY expression; /* main timer expression */ |