diff --git a/configure.in b/configure.in
index 16a0f3871448bdba3dcf99450a74f2c19870300f..fa6dac81fa38e62125e4591e17096eee8aa84804 100644
--- a/configure.in
+++ b/configure.in
@@ -145,7 +145,8 @@ dnl These headers are not essential
 
 AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h)
 
-AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam fseeko ftello)
+AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam ftello)
+AC_FUNC_FSEEKO
 
 AC_CHECK_MEMBERS([struct timeval.tv_sec])
 
@@ -236,12 +237,10 @@ AC_SUBST(LOCALSTATEDIR)
 # than autoconf's macros like.
 CFLAGS="$CFLAGS -Wall -g -O2"
 # Add some more warnings which we use in the cvs version but not in the
-# released versions.
-#CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes"
-#CFLAGS="$CFLAGS -Wwrite-strings -Wredundant-decls"
-
+# released versions.  (Some relevant gcc versions can't handle these.)
+#CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls"
 # Add these in when you feel like fun.
-# -Wbad-function-cast -Werror  -Wdeclaration-after-statement
+#CFLAGS="$CFLAGS -Wbad-function-cast -Werror -Wdeclaration-after-statement"
 
 echo "confdir: $CONFDIR"
 
diff --git a/src/common/aes.c b/src/common/aes.c
index 45e93a9bef9ade9faed583caddf4a1a24669df73..4d0111e6c7e940b68ca9a84e3cf326d7510786ff 100644
--- a/src/common/aes.c
+++ b/src/common/aes.c
@@ -8,10 +8,10 @@
  * \brief Implementation of a simple AES counter mode.
  **/
 
+#include "orconfig.h"
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
-#include "orconfig.h"
 #include "aes.h"
 #include "util.h"
 
diff --git a/src/common/log.c b/src/common/log.c
index 49571f64fb73fc102d02c7c1af79560310844266..500cfa1c1410ca44026f3d652d6ab66e276b7ea8 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -8,11 +8,11 @@
  * \brief Functions to send messages to log files or the console.
  */
 
+#include "orconfig.h"
 #include <stdarg.h>
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
-#include "orconfig.h"
 #include "./util.h"
 #include "./log.h"