summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-11 15:44:40 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-11 15:44:40 +0000
commit88d1a43f629239552dcf315952af24a2e8110d2b (patch)
tree8cf8ca24dffa3a30f157c7a5f7afd6ed11a8cc3c
parent90b10df47b822e267ef94221ab57b652ca657587 (diff)
downloadgnutls-88d1a43f629239552dcf315952af24a2e8110d2b.tar.gz
more changes
-rw-r--r--configure.in29
-rw-r--r--lib/.cvsignore4
-rw-r--r--lib/gnutls.c3
3 files changed, 26 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index c30e43f5a0..683ad52518 100644
--- a/configure.in
+++ b/configure.in
@@ -47,6 +47,20 @@ AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
+opt_maintainer_mode=no
+AC_MSG_CHECKING([whether in maintanance mode])
+AC_ARG_ENABLE(maintainer-mode,
+[ --enable-maintainer-mode enable maintainer mode],
+opt_maintainer_mode=$enableval)
+AC_MSG_RESULT($opt_maintainer_mode)
+
+opt_profiler_mode=no
+AC_MSG_CHECKING([whether in profile mode])
+AC_ARG_ENABLE(profile-mode,
+[ --enable-profile-mode enable profiler (gcov)],
+opt_profiler_mode=$enableval)
+AC_MSG_RESULT($opt_profiler_mode)
+
AC_PROG_CC
@@ -59,12 +73,6 @@ AC_PROG_INSTALL
dnl AC_PROG_MAKE_SET
-opt_maintainer_mode=no
-AC_MSG_CHECKING([whether in maintanance mode])
-AC_ARG_ENABLE(maintainer-mode,
-[ --enable-maintainer-mode enable maintainer mode],
-opt_maintainer_mode=$enableval)
-AC_MSG_RESULT($opt_maintainer_mode)
AC_ARG_WITH( mcrypt, [ --with-mcrypt enable mcrypt support],
[ AC_CHECK_LIB(dl, dlopen)
@@ -88,10 +96,15 @@ AC_ARG_WITH( mhash, [ --with-mhash enable mhash support],
LIBS="${LIBS} -lmhash")])
if test $ac_cv_prog_gcc != no; then
- CFLAGS="${CFLAGS} -O2 -g -ffast-math"
+ if test $opt_profiler_mode = yes; then
+ CFLAGS="${CFLAGS} -O0 -fprofile-arcs -ftest-coverage"
+ fi
+
if test $opt_maintainer_mode = yes; then
- CFLAGS="${CFLAGS} -Wall -Wpointer-arith"
+ CFLAGS="${CFLAGS} -g -Wall -Wpointer-arith"
+ else
+ CFLAGS="${CFLAGS} -O2 -g -ffast-math"
fi
fi
diff --git a/lib/.cvsignore b/lib/.cvsignore
index dc212b7f4f..cd302be4b9 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -6,3 +6,7 @@
Makefile.in
Makefile
.cvsignore
+*.da
+*.gcov
+*.bb
+*.bbg \ No newline at end of file
diff --git a/lib/gnutls.c b/lib/gnutls.c
index 88c467ac61..00cee2321c 100644
--- a/lib/gnutls.c
+++ b/lib/gnutls.c
@@ -705,11 +705,10 @@ ssize_t gnutls_recv_int(int cd, GNUTLS_STATE state, ContentType type, char *data
- /* Incread sequence number */
+ /* Increase sequence number */
state->connection_state.read_sequence_number++;
-
/* Get Application data from buffer */
if ((type == GNUTLS_APPLICATION_DATA || type == GNUTLS_HANDSHAKE) && (recv_type == type)) {
ret = gnutls_getDataFromBuffer(type, state, data, sizeofdata);