Many modifications for mdsms -> sms9110 branch transition.
authorshort <>
Tue, 7 Sep 1999 10:31:53 +0000 (10:31 +0000)
committershort <>
Tue, 7 Sep 1999 10:31:53 +0000 (10:31 +0000)
configure.in
setup.h

index 979a463..aab1afe 100644 (file)
@@ -2,7 +2,7 @@
 
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(mdsms.c)
-AM_INIT_AUTOMAKE(mdsms, 1.3)
+AM_INIT_AUTOMAKE(sms9110, 1.3)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
 
@@ -160,9 +160,14 @@ GCC_NEED_DECLARATION(vsnprintf,   [#include <stdio.h>
 #include <stdarg.h>])
 GCC_NEED_DECLARATION(strdup,      [#include <string.h>])
 GCC_NEED_DECLARATION(usleep,      [#include <unistd.h>])
+GCC_NEED_DECLARATION(strcasecmp,  [#include <string.h>])
 
 # Final output.
 
+if test "$ACLOCAL" = "aclocal";then
+  ACLOCAL="$ACLOCAL -I ."
+fi
+
 AC_SUBST(LIBOBJS)
 
 AC_OUTPUT(Makefile)
diff --git a/setup.h b/setup.h
index c057cb9..2b3774e 100644 (file)
--- a/setup.h
+++ b/setup.h
@@ -5,16 +5,19 @@
 #define CONFIG_MAIN "/etc/" PACKAGE "rc" /* global configuration file */
 #define CONFIG_HOME    "/." PACKAGE "rc" /* user-local cfg file,
                                             $HOME is prepended automatically */
-#define DEF_DEVICE "/dev/mobildock" /* --device default */
+#define DEF_DEVICE "/dev/nokia9110" /* --device default */
 #define DEF_LOGNAME "" /* --log default */
 #ifndef DEF_LOCKFILE
 #define DEF_LOCKFILE "/var/lock/LCK..%s" /* --lockfile default */
 #endif
-#define DEF_MAXRETRY 10 /* --maxretry default */
-#define DEF_READTIME 60*60 /* --readtime default */
+#define DEF_BAUD 19200 /* --baud default */
+#define DEF_MAXRETRY 3 /* --maxretry default */
+#define DEF_READTIME 10 /* --readtime default */
 #define DEF_CHARTIME 10 /* --chartime default
                            (500ms per 80char=6.25ms recommended by Siemens */
 #define DEF_CMDTIME 500 /* --cmdtime default */
+#define WORD_NET "net" /* load as network logo */
+#define WORD_GROUP "group" /* load as group graphics */
 #define MAXCONFIG 4096 /* maximum allowed size of any configuration file */
 #define MAXCFGARGS 256 /* maximum allowed number of arguments in cfg file */
 #define MAXCFGLOOP 5 /* maximum number of recursive opens in cfg files */
                          this parameter taken in seconds */
 #define ADDR_NAT 0x81 /* PDU address type for non-'+' numbers */
 #define ADDR_INT 0x91 /* PDU address type for numbers prefixed by '+' */
-#define PDU_TYPE 0x11 /* first byte of PDU, SMS submit */
-#define PDU_MR   0x00 /* default message reference, filled by Siemens A1 */
-#define PDU_PID  0x00 /* PDU protocol identifier, SMS message type */
-#define PDU_DCS  0x00 /* PDU Data Coding Scheme, 7-bit class-2 message */
-#define PDU_VP   0xFF /* PDU Validity Period, maximum relative time */
 #define MAXNUMLEN 20 /* maximum number of digits in GSM number */
 #define MAXBODYLEN 160 /* maximum length of characters in SMS body */
 #define BODYLOAD 200 /* number of bytes to read when body not on command line */