summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-09-07 23:18:02 +0000
committerStef Walter <stef@memberwebs.com>2005-09-07 23:18:02 +0000
commit2eb956b5dbe9aeb2009ec04422fd096d34ccf10b (patch)
treeffda931c13138727b8f81a68c033a3fc632f365d
parent02d40ef5c7a97e1fbaddb32d62341b396f4a0297 (diff)
Commit some old changes
-rw-r--r--ChangeLog2
-rw-r--r--acsite.m430
-rw-r--r--configure.in10
3 files changed, 39 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 58436ff..4757b94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-1.3
+1.3 [2005-07-02]
- Handle condition of server refusing data transfers more gracefully.
- Less chatty when setting timeouts fail
- Drop privileges after binding to port. Allows listening on ports < 1024
diff --git a/acsite.m4 b/acsite.m4
index e8cdb22..7f23e05 100644
--- a/acsite.m4
+++ b/acsite.m4
@@ -198,3 +198,33 @@ fi
AC_LANG_RESTORE
])dnl ACX_PTHREAD
+
+
+
+AC_DEFUN(AC_CHECK_GLOBAL,
+[
+for ac_global in $1
+do
+ ac_tr_global=HAVE_`echo $ac_global | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ AC_MSG_CHECKING([for global variable ${ac_global}])
+ AC_CACHE_VAL(ac_cv_global_$ac_global,
+ [
+ AC_TRY_LINK(dnl
+ [/* no includes */],
+ [ extern long int $ac_global; exit((int)$ac_global)],
+ eval "ac_cv_global_${ac_global}=yes",
+ eval "ac_cv_global_${ac_global}=no"
+ )
+ ]
+ )
+ if eval "test \"`echo '$ac_cv_global_'$ac_global`\" = yes"; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE_UNQUOTED($ac_tr_global,1,Define if the global variable $ac_global is available)
+ else
+ AC_MSG_RESULT(no)
+ fi
+done
+])
+
+
+
diff --git a/configure.in b/configure.in
index 8a6707d..5b6fe63 100644
--- a/configure.in
+++ b/configure.in
@@ -36,8 +36,8 @@ dnl Nate Nielsen <nielsen@memberwebs.com>
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(proxsmtp, 1.2.1, nielsen@memberwebs.com)
-AM_INIT_AUTOMAKE(proxsmtp, 1.2.1)
+AC_INIT(proxsmtp, 1.2.1.93, nielsen@memberwebs.com)
+AM_INIT_AUTOMAKE(proxsmtp, 1.2.1.93)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
@@ -93,6 +93,12 @@ AC_CHECK_DECL(PTHREAD_MUTEX_ERRORCHECK_NP, [AC_DEFINE(HAVE_ERR_MUTEX, 1, "Error
[AC_CHECK_DECL(PTHREAD_MUTEX_ERRORCHECK, [AC_DEFINE(HAVE_ERR_MUTEX, 2)], ,
[ #include <pthread.h> ])], [ #include <pthread.h> ])
+# Required Variables
+AC_CHECK_MEMBER(struct tm.tm_gmtoff,
+ [AC_DEFINE(HAVE_TM_GMTOFF, 1, "Time Zone GMT Offset")],
+ ,[ #include <time.h> ])
+AC_CHECK_GLOBAL(__argv)
+
# Required Functions
AC_CHECK_FUNCS([memset strerror malloc realloc getopt strchr tolower getaddrinfo usleep], ,
[echo "ERROR: Required function missing"; exit 1])