]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2004-02-14 11:56:11 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 14 Feb 2004 11:56:17 +0000 (11:56 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 14 Feb 2004 11:56:17 +0000 (11:56 +0000)
M50530 driver ported
changed lots of 'char' to 'unsigned char'

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@363 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

16 files changed:
Makefile.am
Makefile.in
aclocal.m4
configure
configure.in
drv.c
drv_Crystalfontz.c
drv_Cwlinux.c
drv_HD44780.c
drv_MatrixOrbital.c
drv_generic_serial.c
drv_generic_serial.h
drv_generic_text.c
drv_generic_text.h
lcd4linux.conf.sample
plugin_i2c_sensors.c

index b181a2f0ff88649a428136be38fb1c608f960fc2..06fec0edc0ef281854669dd1e5c8899ccbcd1be7 100644 (file)
@@ -72,7 +72,7 @@ BeckmannEgle.c \
 drv_Crystalfontz.c \
 drv_Cwlinux.c \
 HD44780.c \
-M50530.c \
+drv_M50530.c \
 T6963.c \
 USBLCD.c \
 drv_MatrixOrbital.c \
index dd1a8ff284aac7d989788125af20e4df0391406b..233acf40f09bc234acbd7f271edac652512c1e2d 100644 (file)
@@ -125,7 +125,7 @@ lcd4linux_SOURCES =  lcd4linux.c                 cfg.c         cfg.h         deb
 #fontmap.c fontmap.h \
 #udelay.c udelay.h
 
-EXTRA_lcd4linux_SOURCES =  drv_generic_text.c    drv_generic_text.h drv_generic_serial.c  drv_generic_serial.h drv_generic_parport.c drv_generic_parport.h BeckmannEgle.c drv_Crystalfontz.c drv_Cwlinux.c HD44780.c M50530.c T6963.c USBLCD.c drv_MatrixOrbital.c MilfordInstruments.c PalmPilot.c Raster.c SIN.c XWindow.c Text.c
+EXTRA_lcd4linux_SOURCES =  drv_generic_text.c    drv_generic_text.h drv_generic_serial.c  drv_generic_serial.h drv_generic_parport.c drv_generic_parport.h BeckmannEgle.c drv_Crystalfontz.c drv_Cwlinux.c HD44780.c drv_M50530.c T6963.c USBLCD.c drv_MatrixOrbital.c MilfordInstruments.c PalmPilot.c Raster.c SIN.c XWindow.c Text.c
 
 
 EXTRA_DIST =  lcd4linux.conf.sample lcd4kde.conf lcd4linux.kdelnk lcd4linux.xpm lcd4linux.lsm curses.m4 AUTHORS CREDITS FAQ NEWS TODO README README.Rows README.Tokens README.Drivers README.Plugins README.KDE plugin_sample.c
@@ -171,20 +171,20 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
 TAR = tar
 GZIP_ENV = --best
-DEP_FILES =  .deps/BeckmannEgle.P .deps/HD44780.P .deps/M50530.P \
+DEP_FILES =  .deps/BeckmannEgle.P .deps/HD44780.P \
 .deps/MilfordInstruments.P .deps/PalmPilot.P .deps/Raster.P .deps/SIN.P \
 .deps/T6963.P .deps/Text.P .deps/USBLCD.P .deps/XWindow.P .deps/cfg.P \
 .deps/debug.P .deps/drv.P .deps/drv_Crystalfontz.P .deps/drv_Cwlinux.P \
-.deps/drv_MatrixOrbital.P .deps/drv_generic_parport.P \
-.deps/drv_generic_serial.P .deps/drv_generic_text.P .deps/evaluator.P \
-.deps/hash.P .deps/layout.P .deps/lcd4linux.P .deps/lock.P .deps/pid.P \
-.deps/plugin.P .deps/plugin_cfg.P .deps/plugin_cpuinfo.P \
-.deps/plugin_dvb.P .deps/plugin_i2c_sensors.P .deps/plugin_loadavg.P \
-.deps/plugin_math.P .deps/plugin_meminfo.P .deps/plugin_netdev.P \
-.deps/plugin_ppp.P .deps/plugin_proc_stat.P .deps/plugin_string.P \
-.deps/plugin_uname.P .deps/plugin_xmms.P .deps/timer.P .deps/udelay.P \
-.deps/widget.P .deps/widget_bar.P .deps/widget_icon.P \
-.deps/widget_text.P
+.deps/drv_M50530.P .deps/drv_MatrixOrbital.P \
+.deps/drv_generic_parport.P .deps/drv_generic_serial.P \
+.deps/drv_generic_text.P .deps/evaluator.P .deps/hash.P .deps/layout.P \
+.deps/lcd4linux.P .deps/lock.P .deps/pid.P .deps/plugin.P \
+.deps/plugin_cfg.P .deps/plugin_cpuinfo.P .deps/plugin_dvb.P \
+.deps/plugin_i2c_sensors.P .deps/plugin_loadavg.P .deps/plugin_math.P \
+.deps/plugin_meminfo.P .deps/plugin_netdev.P .deps/plugin_ppp.P \
+.deps/plugin_proc_stat.P .deps/plugin_string.P .deps/plugin_uname.P \
+.deps/plugin_xmms.P .deps/timer.P .deps/udelay.P .deps/widget.P \
+.deps/widget_bar.P .deps/widget_icon.P .deps/widget_text.P
 SOURCES = $(lcd4linux_SOURCES) $(EXTRA_lcd4linux_SOURCES)
 OBJECTS = $(lcd4linux_OBJECTS)
 
index ec6d6e4a8bd63f5b17eb394671230387a022f51c..50afff66f4457a71e61e530f9e2835114bfe0542 100644 (file)
@@ -979,7 +979,7 @@ changequote([,]))])
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
 # serial 47 AC_PROG_LIBTOOL
-# Debian $Rev: 149 $
+# Debian $Rev: 192 $
 
 
 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
@@ -1885,13 +1885,6 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    mkdir out
    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
-   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-   # that will create temporary files in the current directory regardless of
-   # the output directory.  Thus, making CWD read-only will cause this test
-   # to fail, enabling locking or at least warning the user not to do parallel
-   # builds.
-   chmod -w .
-
    lt_compiler_flag="-o out/conftest2.$ac_objext"
    # Insert the option either (1) after the last *FLAGS variable, or
    # (2) before a word containing "conftest.", or (3) at the end.
@@ -2441,7 +2434,7 @@ netbsd*)
     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     dynamic_linker='NetBSD (a.out) ld.so'
   else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     dynamic_linker='NetBSD ld.elf_so'
   fi
@@ -3150,7 +3143,7 @@ linux*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-netbsd*)
+netbsd* | knetbsd*-gnu)
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
   else
@@ -4144,7 +4137,7 @@ case $host_os in
        ;;
     esac
     ;;
-  netbsd*)
+  netbsd* | knetbsd*-gnu)
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
       wlarc=
@@ -5634,7 +5627,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
            ;;
        esac
        ;;
-      netbsd*)
+      netbsd* | knetbsd*-gnu)
        ;;
       osf3* | osf4* | osf5*)
        case $cc_basename in
@@ -6074,7 +6067,7 @@ EOF
       fi
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
        wlarc=
@@ -6491,7 +6484,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
index 7f261bcd83a1525ec5335fa173acac690a73172b..f210394a84f891d053929fcae413fc2e78fb7baa 100755 (executable)
--- a/configure
+++ b/configure
@@ -3929,7 +3929,7 @@ linux*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-netbsd*)
+netbsd* | knetbsd*-gnu)
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   else
@@ -6232,13 +6232,6 @@ else
    mkdir out
    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
-   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-   # that will create temporary files in the current directory regardless of
-   # the output directory.  Thus, making CWD read-only will cause this test
-   # to fail, enabling locking or at least warning the user not to do parallel
-   # builds.
-   chmod -w .
-
    lt_compiler_flag="-o out/conftest2.$ac_objext"
    # Insert the option either (1) after the last *FLAGS variable, or
    # (2) before a word containing "conftest.", or (3) at the end.
@@ -6248,11 +6241,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:6251: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:6255: \$? = $ac_status" >&5
+   echo "$as_me:6248: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -6425,7 +6418,7 @@ EOF
       fi
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
        wlarc=
@@ -6942,7 +6935,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       link_all_deplibs=yes
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
@@ -7612,7 +7605,7 @@ netbsd*)
     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     dynamic_linker='NetBSD (a.out) ld.so'
   else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     dynamic_linker='NetBSD ld.elf_so'
   fi
@@ -8423,7 +8416,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 8426 "configure"
+#line 8419 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -8521,7 +8514,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 8524 "configure"
+#line 8517 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10032,7 +10025,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
        ;;
     esac
     ;;
-  netbsd*)
+  netbsd* | knetbsd*-gnu)
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
       wlarc=
@@ -10587,7 +10580,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
            ;;
        esac
        ;;
-      netbsd*)
+      netbsd* | knetbsd*-gnu)
        ;;
       osf3* | osf4* | osf5*)
        case $cc_basename in
@@ -10698,11 +10691,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:10701: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:10694: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:10705: \$? = $ac_status" >&5
+   echo "$as_me:10698: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -10749,13 +10742,6 @@ else
    mkdir out
    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
-   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-   # that will create temporary files in the current directory regardless of
-   # the output directory.  Thus, making CWD read-only will cause this test
-   # to fail, enabling locking or at least warning the user not to do parallel
-   # builds.
-   chmod -w .
-
    lt_compiler_flag="-o out/conftest2.$ac_objext"
    # Insert the option either (1) after the last *FLAGS variable, or
    # (2) before a word containing "conftest.", or (3) at the end.
@@ -10765,11 +10751,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:10768: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:10754: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:10772: \$? = $ac_status" >&5
+   echo "$as_me:10758: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -11308,7 +11294,7 @@ netbsd*)
     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     dynamic_linker='NetBSD (a.out) ld.so'
   else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     dynamic_linker='NetBSD ld.elf_so'
   fi
@@ -12119,7 +12105,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 12122 "configure"
+#line 12108 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12217,7 +12203,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 12220 "configure"
+#line 12206 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13044,11 +13030,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13047: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13033: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:13051: \$? = $ac_status" >&5
+   echo "$as_me:13037: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -13095,13 +13081,6 @@ else
    mkdir out
    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
-   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-   # that will create temporary files in the current directory regardless of
-   # the output directory.  Thus, making CWD read-only will cause this test
-   # to fail, enabling locking or at least warning the user not to do parallel
-   # builds.
-   chmod -w .
-
    lt_compiler_flag="-o out/conftest2.$ac_objext"
    # Insert the option either (1) after the last *FLAGS variable, or
    # (2) before a word containing "conftest.", or (3) at the end.
@@ -13111,11 +13090,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:13114: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:13118: \$? = $ac_status" >&5
+   echo "$as_me:13097: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -13288,7 +13267,7 @@ EOF
       fi
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
        wlarc=
@@ -13785,7 +13764,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       link_all_deplibs_F77=yes
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
@@ -14455,7 +14434,7 @@ netbsd*)
     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     dynamic_linker='NetBSD (a.out) ld.so'
   else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     dynamic_linker='NetBSD ld.elf_so'
   fi
@@ -15143,11 +15122,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15146: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15125: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:15150: \$? = $ac_status" >&5
+   echo "$as_me:15129: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -15376,11 +15355,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15379: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15358: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:15383: \$? = $ac_status" >&5
+   echo "$as_me:15362: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -15427,13 +15406,6 @@ else
    mkdir out
    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
-   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-   # that will create temporary files in the current directory regardless of
-   # the output directory.  Thus, making CWD read-only will cause this test
-   # to fail, enabling locking or at least warning the user not to do parallel
-   # builds.
-   chmod -w .
-
    lt_compiler_flag="-o out/conftest2.$ac_objext"
    # Insert the option either (1) after the last *FLAGS variable, or
    # (2) before a word containing "conftest.", or (3) at the end.
@@ -15443,11 +15415,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15418: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:15450: \$? = $ac_status" >&5
+   echo "$as_me:15422: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -15620,7 +15592,7 @@ EOF
       fi
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
        wlarc=
@@ -16137,7 +16109,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       link_all_deplibs_GCJ=yes
       ;;
 
-    netbsd*)
+    netbsd* | knetbsd*-gnu)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
@@ -16807,7 +16779,7 @@ netbsd*)
     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     dynamic_linker='NetBSD (a.out) ld.so'
   else
-    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     dynamic_linker='NetBSD ld.elf_so'
   fi
@@ -17618,7 +17590,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 17621 "configure"
+#line 17593 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -17716,7 +17688,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 17719 "configure"
+#line 17691 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -19282,7 +19254,7 @@ echo "${ECHO_T}Please note that some screen refreshs may fail" >&6
 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
        ncurses_version=unknown
 cat > conftest.$ac_ext <<EOF
-#line 19285 "configure"
+#line 19257 "configure"
 #include "confdefs.h"
 #ifdef RENAMED_NCURSES
 #include <curses.h>
@@ -21013,8 +20985,8 @@ fi
 
 if test "$M50530" = "yes"; then
    PARPORT="yes"
-#  DRIVERS="$DRIVERS M50530.lo"
-#  DRIVERS="$DRIVERS M50530.o"
+#  DRIVERS="$DRIVERS drv_M50530.lo"
+   DRIVERS="$DRIVERS drv_M50530.o"
 
 cat >>confdefs.h <<\_ACEOF
 #define WITH_M50530 1
index da2ae230531015af10f04e5decac72f853e4b88c..e069dca544635859a87b40360cbf3d1cb82bedf6 100644 (file)
@@ -176,8 +176,8 @@ fi
 
 if test "$M50530" = "yes"; then
    PARPORT="yes"
-#  DRIVERS="$DRIVERS M50530.lo"
-#  DRIVERS="$DRIVERS M50530.o"
+#  DRIVERS="$DRIVERS drv_M50530.lo"
+   DRIVERS="$DRIVERS drv_M50530.o"
    AC_DEFINE(WITH_M50530,1,[M50530 driver])
 fi
 
diff --git a/drv.c b/drv.c
index 4016c55afb127f1080365951261c8172c6d83c93..32aa57e140cabfbaf0fe75f5e9e5d9110fe7f4e9 100644 (file)
--- a/drv.c
+++ b/drv.c
@@ -1,4 +1,4 @@
-/* $Id: drv.c,v 1.5 2004/01/27 06:34:14 reinelt Exp $
+/* $Id: drv.c,v 1.6 2004/02/14 11:56:17 reinelt Exp $
  *
  * new framework for display drivers
  *
  *
  *
  * $Log: drv.c,v $
+ * Revision 1.6  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.5  2004/01/27 06:34:14  reinelt
  * Cwlinux driver portet to NextGeneration (compiles, but not tested!)
  *
@@ -125,11 +129,11 @@ DRIVER *Driver[] = {
 #endif
 #ifdef WITH_HD44780
   &drv_HD44780,
+#endif
+#ifdef WITH_M50530
+  &drv_M50530,
 #endif
   /* Fixme
-     #ifdef WITH_M50530
-     &M50530,
-     #endif
      #ifdef WITH_T6963
      &T6963,
      #endif
index dfebac8f27699714986ff8a0ced1002e1c8615c4..b1d7a09c854f5343e8f29d2c49c90f40d867cffa 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_Crystalfontz.c,v 1.10 2004/02/05 07:10:23 reinelt Exp $
+/* $Id: drv_Crystalfontz.c,v 1.11 2004/02/14 11:56:17 reinelt Exp $
  *
  * new style driver for Crystalfontz display modules
  *
  *
  *
  * $Log: drv_Crystalfontz.c,v $
+ * Revision 1.11  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.10  2004/02/05 07:10:23  reinelt
  * evaluator function names are no longer case-sensitive
  * Crystalfontz Fan PWM control, Fan RPM monitoring, temperature monitoring
@@ -315,13 +319,13 @@ static void drv_CF_send (int cmd, int len, char *data)
 }
 
 
-static void drv_CF_write1 (char *string, int len)
+static void drv_CF_write1 (unsigned char *string, int len)
 {
   drv_generic_serial_write (string, len);
 }
 
 
-static void drv_CF_write2 (char *string, int len)
+static void drv_CF_write2 (unsigned char *string, int len)
 {
   // limit length
   if (Col+len>16) len=16-Col;
@@ -337,7 +341,7 @@ static void drv_CF_write2 (char *string, int len)
 }
 
 
-static void drv_CF_write3 (char *string, int len)
+static void drv_CF_write3 (unsigned char *string, int len)
 {
   debug ("write3(<%.*s>,%d)", len, string, len);
 }
@@ -366,7 +370,7 @@ static void drv_CF_goto23 (int row, int col)
 }
 
 
-static void drv_CF_defchar1 (int ascii, char *buffer)
+static void drv_CF_defchar1 (int ascii, unsigned char *buffer)
 {
   char cmd[2]="\031n"; // set custom char bitmap
   
@@ -377,7 +381,7 @@ static void drv_CF_defchar1 (int ascii, char *buffer)
 }
 
 
-static void drv_CF_defchar23 (int ascii, char *matrix)
+static void drv_CF_defchar23 (int ascii, unsigned char *matrix)
 {
   char buffer[9];
   
index 36251dc6386330b1e1c80e398e5af2d02c60d9c9..9757069d38703b05c1f15e4e057970999daa5d04 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_Cwlinux.c,v 1.2 2004/01/29 04:40:02 reinelt Exp $
+/* $Id: drv_Cwlinux.c,v 1.3 2004/02/14 11:56:17 reinelt Exp $
  *
  * new style driver for Cwlinux display modules
  *
  *
  *
  * $Log: drv_Cwlinux.c,v $
+ * Revision 1.3  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.2  2004/01/29 04:40:02  reinelt
  * every .c file includes "config.h" now
  *
@@ -100,7 +104,7 @@ static void drv_CW_goto (int row, int col)
 }
 
 
-static void drv_CW1602_defchar (int ascii, char *buffer)
+static void drv_CW1602_defchar (int ascii, unsigned char *buffer)
 {
   int i;
   char cmd[12]="\376Nn12345678\375";
@@ -115,7 +119,7 @@ static void drv_CW1602_defchar (int ascii, char *buffer)
 }
 
 
-static void drv_CW12232_defchar (int ascii, char *buffer)
+static void drv_CW12232_defchar (int ascii, unsigned char *buffer)
 {
   int i, j;
   char cmd[10]="\376Nn123456\375";
index 2ec1fd088250ae56d18c34e3b195b88016cedaae..ece00c94f426e3b3d9373432a72d5df14203c535 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_HD44780.c,v 1.11 2004/02/04 19:10:51 reinelt Exp $
+/* $Id: drv_HD44780.c,v 1.12 2004/02/14 11:56:17 reinelt Exp $
  *
  * new style driver for HD44780-based displays
  *
  *
  *
  * $Log: drv_HD44780.c,v $
+ * Revision 1.12  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.11  2004/02/04 19:10:51  reinelt
  * Crystalfontz driver nearly finished
  *
@@ -449,13 +453,13 @@ static void drv_HD_goto (int row, int col)
 }
 
 
-static void drv_HD_write (char *string, int len)
+static void drv_HD_write (unsigned char *string, int len)
 {
   drv_HD_data (currController, string, len, T_EXEC);
 }
 
 
-static void drv_HD_defchar (int ascii, char *buffer)
+static void drv_HD_defchar (int ascii, unsigned char *buffer)
 {
   // define chars on *both* controllers!
   drv_HD_command (allControllers, 0x40|8*ascii, T_EXEC);
@@ -506,7 +510,7 @@ static int drv_HD_start (char *section)
   char *model, *s;
   int rows=-1, cols=-1, gpos=-1;
   
-  model=cfg_get(section, "Model", NULL);
+  model=cfg_get(section, "Model", "generic");
   if (model!=NULL && *model!='\0') {
     int i;
     for (i=0; Models[i].type!=0xff; i++) {
@@ -520,7 +524,7 @@ static int drv_HD_start (char *section)
     Capabilities=Models[Model].capabilities;
     info ("%s: using model '%s'", Name, Models[Model].name);
   } else {
-    error ("%s: no '%s.Model' entry from %s", Name, section, cfg_source());
+    error ("%s: empty '%s.Model' entry from %s", Name, section, cfg_source());
     return -1;
   }
 
index 1eb059d7f34fba148f934eb9236232ea03f618ef..29e2fd2d2121364f84fc74e402b6459ebae34df4 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_MatrixOrbital.c,v 1.19 2004/01/29 04:40:02 reinelt Exp $
+/* $Id: drv_MatrixOrbital.c,v 1.20 2004/02/14 11:56:17 reinelt Exp $
  *
  * new style driver for Matrix Orbital serial display modules
  *
  *
  *
  * $Log: drv_MatrixOrbital.c,v $
+ * Revision 1.20  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.19  2004/01/29 04:40:02  reinelt
  * every .c file includes "config.h" now
  *
@@ -192,7 +196,7 @@ static void drv_MO_goto (int row, int col)
 }
 
 
-static void drv_MO_defchar (int ascii, char *buffer)
+static void drv_MO_defchar (int ascii, unsigned char *buffer)
 {
   char cmd[3]="\376N";
 
index 56bbdb87f4a0c1d5257de0df18afc3854be62aa3..46c524d6fbc7d6c170553c7463278a554014761e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_serial.c,v 1.5 2004/02/04 19:10:51 reinelt Exp $
+/* $Id: drv_generic_serial.c,v 1.6 2004/02/14 11:56:17 reinelt Exp $
  *
  * generic driver helper for serial and usbserial displays
  *
  *
  *
  * $Log: drv_generic_serial.c,v $
+ * Revision 1.6  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.5  2004/02/04 19:10:51  reinelt
  * Crystalfontz driver nearly finished
  *
  * int  drv_generic_serial_open    (char *driver, char *port, speed_t speed);
  *   opens the serial port
  *
- * int drv_generic_serial_poll (char *string, int len)
+ * int drv_generic_serial_poll (unsigned char *string, int len)
  *   reads from the serial or USB port
  *   without retry
  *
- * int  drv_generic_serial_read    (char *string, int len);
+ * int  drv_generic_serial_read    (unsigned char *string, int len);
  *   reads from the serial or USB port
  *   with retry
  *
- * void drv_generic_serial_write   (char *string, int len);
+ * void drv_generic_serial_write   (unsigned char *string, int len);
  *   writes to the serial or USB port
  *
  * int  drv_generic_serial_close   (void);
@@ -291,7 +295,7 @@ int drv_generic_serial_open (char *section, char *driver)
 }
 
 
-int drv_generic_serial_poll (char *string, int len)
+int drv_generic_serial_poll (unsigned char *string, int len)
 {
   int ret;
   if (Device==-1) return -1;
@@ -303,7 +307,7 @@ int drv_generic_serial_poll (char *string, int len)
 }
 
 
-int drv_generic_serial_read (char *string, int len)
+int drv_generic_serial_read (unsigned char *string, int len)
 {
   int run, ret;
   
@@ -322,7 +326,7 @@ int drv_generic_serial_read (char *string, int len)
 }
 
 
-void drv_generic_serial_write (char *string, int len)
+void drv_generic_serial_write (unsigned char *string, int len)
 {
   int run, ret;
   
index 7c87ed185be7a899174885b62627a294ee35e546..95a8836275ab77bafb5621c544d0abb39e042559 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_serial.h,v 1.2 2004/02/01 08:05:12 reinelt Exp $
+/* $Id: drv_generic_serial.h,v 1.3 2004/02/14 11:56:17 reinelt Exp $
  *
  * generic driver helper for serial and usbserial displays
  *
  *
  *
  * $Log: drv_generic_serial.h,v $
+ * Revision 1.3  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.2  2004/02/01 08:05:12  reinelt
  * Crystalfontz 633 extensions (CRC checking and stuff)
  * Models table for HD44780
@@ -53,9 +57,9 @@
 #define _DRV_GENERIC_SERIAL_H_
 
 int   drv_generic_serial_open  (char *section, char *driver);
-int   drv_generic_serial_poll  (char *string, int len);
-int   drv_generic_serial_read  (char *string, int len);
-void  drv_generic_serial_write (char *string, int len);
+int   drv_generic_serial_poll  (unsigned char *string, int len);
+int   drv_generic_serial_read  (unsigned char *string, int len);
+void  drv_generic_serial_write (unsigned char *string, int len);
 int   drv_generic_serial_close (void);
 
 #endif
index d05f370f106d3946ee3d019032fa7eff21e187ea..e450ec6cb660637b4dc035304cd882354bb3fe35 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_text.c,v 1.9 2004/02/07 13:45:23 reinelt Exp $
+/* $Id: drv_generic_text.c,v 1.10 2004/02/14 11:56:17 reinelt Exp $
  *
  * generic driver helper for text-based displays
  *
  *
  *
  * $Log: drv_generic_text.c,v $
+ * Revision 1.10  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.9  2004/02/07 13:45:23  reinelt
  * icon visibility patch #2 from Xavier
  *
@@ -244,7 +248,7 @@ int drv_generic_text_icon_draw (WIDGET *W)
   static int icon_counter=0;
   WIDGET_ICON *Icon = W->data;
   int row, col;
-  char ascii;
+  unsigned char ascii;
   
   row = W->row;
   col = W->col;
@@ -510,7 +514,7 @@ static void drv_generic_text_bar_pack_segments (void)
 static void drv_generic_text_bar_define_chars(void)
 {
   int c, i, j;
-  char buffer[8];
+  unsigned char buffer[8];
   
   for (i=fSegment; i<nSegment; i++) {
     if (Segment[i].used) continue;
index dbdd9bad6bffa73ea6ba363b359c16ab306de066..ef8680c671ac5397b281620ade1c20fb78470915 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_text.h,v 1.4 2004/01/23 07:04:24 reinelt Exp $
+/* $Id: drv_generic_text.h,v 1.5 2004/02/14 11:56:17 reinelt Exp $
  *
  * generic driver helper for text-based displays
  *
  *
  *
  * $Log: drv_generic_text.h,v $
+ * Revision 1.5  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.4  2004/01/23 07:04:24  reinelt
  * icons finished!
  *
@@ -64,8 +68,8 @@ extern int ICONS;        // number of user-defineable characters reserved for ic
 
 // these functions must be implemented by the real driver
 void (*drv_generic_text_real_goto)(int row, int col);
-void (*drv_generic_text_real_write)(char *buffer, int len);
-void (*drv_generic_text_real_defchar)(int ascii, char *buffer);
+void (*drv_generic_text_real_write)(unsigned char *buffer, int len);
+void (*drv_generic_text_real_defchar)(int ascii, unsigned char *buffer);
 
 
 int  drv_generic_text_init            (char *section, char *driver);
index 6c9968fd8920399e3364dc969b4448e25850d9cd..246e327c09c19b006fb8336096e77e49608b5bd3 100644 (file)
@@ -51,6 +51,18 @@ Display HD44780-20x4 {
 }
 
 
+Display M50530-24x8 {
+    Driver 'M50530'
+    Port '/dev/parports/0'     
+    Port '0x378'
+    Size '24x8'
+    Wire.EX   'STROBE'
+    Wire.IOC1 'SELECT'
+    Wire.IOC2 'AUTOFD'
+    Wire.GPO  'INIT'
+}
+
+
 Widget OS {
     class 'Text'
     expression '*** '.uname('sysname').' '.uname('release').' ***'
@@ -258,12 +270,13 @@ Layout L16x2 {
 
 #Display 'LK204'
 #Display 'HD44780-20x4'
+Display 'M50530-24x8'
 #Display 'CF631'
 #Display 'CF632'
-Display 'CF633'
+#Display 'CF633'
 
-#Layout  'Default'
-Layout  'L16x2'
+Layout  'Default'
+#Layout  'L16x2'
 
 Variables {
    tick 500
index 7cd864c008313b510cfed116d35b0c9ea0772dfd..1adea2fac8e2e0a45558ed763455e7fdf53d4cee 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: plugin_i2c_sensors.c,v 1.8 2004/02/14 10:09:50 reinelt Exp $
+/* $Id: plugin_i2c_sensors.c,v 1.9 2004/02/14 11:56:17 reinelt Exp $
  *
  * I2C sensors plugin
  *
  *
  *
  * $Log: plugin_i2c_sensors.c,v $
+ * Revision 1.9  2004/02/14 11:56:17  reinelt
+ * M50530 driver ported
+ * changed lots of 'char' to 'unsigned char'
+ *
  * Revision 1.8  2004/02/14 10:09:50  reinelt
  * I2C Sensors for 2.4 kernels (/proc instead of /sysfs)
  *
@@ -143,8 +147,8 @@ static int parse_i2c_sensors_sysfs(RESULT *arg)
                  
   } else {
     sprintf(val, "%s", buffer); 
-       // we supress this nasty \n at the end
-       val[strlen(val)-1]='\0';
+    // we supress this nasty \n at the end
+    val[strlen(val)-1]='\0';
   } 
   
   hash_set (&I2Csensors, key, val);
@@ -160,8 +164,7 @@ void my_i2c_sensors_sysfs(RESULT *result, RESULT *arg)
   
   age=hash_age(&I2Csensors, key, &val);
   // refresh every 100msec
-  if (age<0 || age>100)
-  {
+  if (age<0 || age>100) {
     parse_i2c_sensors_sysfs(arg);
     val=hash_get(&I2Csensors, key);
   }
@@ -209,7 +212,7 @@ static int parse_i2c_sensors_procfs(RESULT *arg)
   running=strdupa(buffer);
   while(1) {
     value = strsep (&running, delim);
-//    debug("%s pos %i -> %s", key, pos , value);
+    //    debug("%s pos %i -> %s", key, pos , value);
     if (!value) {
       break;
     } else {
@@ -242,8 +245,7 @@ void my_i2c_sensors_procfs(RESULT *result, int argc, RESULT *argv[])
   age=hash_age(&I2Csensors, key, &val);
 
   // refresh every 100msec
-  if (age<0 || age>100)
-  {
+  if (age<0 || age>100) {
     parse_i2c_sensors_procfs(argv[0]);
     val=hash_get(&I2Csensors, key);
   }
@@ -289,8 +291,9 @@ void my_i2c_sensors_path(char *method)
   }
   
   while((dir = readdir(fd1)))   {
-    // Skip '.' and '..'
-    if (strcmp(dir->d_name, "." )==0 ||
+    // Skip non-directories and '.' and '..'
+    if (dir->d_type!=DT_DIR || 
+       strcmp(dir->d_name, "." )==0 ||
        strcmp(dir->d_name, "..")==0) {
       continue;
     }
@@ -335,7 +338,7 @@ int plugin_init_i2c_sensors (void)
     }
        
   } else {
-       if (path_cfg[strlen(path_cfg)-1] != '/') {
+    if (path_cfg[strlen(path_cfg)-1] != '/') {
       // the headless user forgot the trailing slash :/
       debug("adding a trailing slash at the end of the path");
       path_cfg = realloc(path_cfg, strlen(path_cfg)+2);
@@ -345,17 +348,17 @@ int plugin_init_i2c_sensors (void)
     debug("if i2c_sensors doesn't work, double check this value !");
     path = realloc(path, strlen(path_cfg)+1);
     strcpy(path, path_cfg);
-       free(path_cfg);
+    free(path_cfg);
   }
 
   // we activate the function only if there's a possibly path found
   if (!path) {
-  free(path);
+    free(path);
   } else {
     if (!strncmp(path, "/sys", 4)) {
-    AddFunction ("i2c_sensors", 1, my_i2c_sensors_sysfs);
+      AddFunction ("i2c_sensors", 1, my_i2c_sensors_sysfs);
     } else if (!strncmp(path, "/proc", 5)) {
-    AddFunction ("i2c_sensors", -1, my_i2c_sensors_procfs);
+      AddFunction ("i2c_sensors", -1, my_i2c_sensors_procfs);
     }
   }