configure: Add commonly used GCC security flags
diff --git a/configure.ac b/configure.ac
index b9dcddc..0bfdde6 100755
--- a/configure.ac
+++ b/configure.ac
@@ -193,10 +193,14 @@
         		}')" = "x1" ; then
         	AC_MSG_RESULT([yes])
         	AC_C_FLAG([-fstack-protector-strong])
+        	AC_C_FLAG([--param=ssp-buffer-size=4])
         else
         	AC_MSG_RESULT([no])
         	AC_MSG_WARN([upgrade to libtool >= 2.4.6!])
         fi
+        AC_C_FLAG([-D_FORTIFY_SOURCE=2])
+        AC_C_FLAG([-Wformat])
+        AC_C_FLAG([-Wformat-security])
         AC_C_FLAG([-fpie])
         AC_C_FLAG([-fno-omit-frame-pointer])
         AC_C_FLAG([-Wall])