diff --git a/configure b/configure
index 38d2f38..35eeccc 100755
--- a/configure
+++ b/configure
@@ -8435,6 +8435,9 @@
 $as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
           CXX="$PTHREAD_CXX"
         fi
+
+$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
+
     fi
 fi