aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--configure.ac7
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9e3aadf
--- /dev/null
+++ b/README.md
@@ -0,0 +1,6 @@
+<img src="https://travis-ci.org/lnslbrty/ptunnel-ng.svg?branch=master">
+
+PingTunnel-[N]ew[G]eneration
+======
+
+see README
diff --git a/configure.ac b/configure.ac
index 54285fc..0b449b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,8 @@ esac
AM_SILENT_RULES([yes])
AM_INIT_AUTOMAKE
AC_PROG_INSTALL
+AC_PROG_CC
+AC_PROG_CC_STDC
AC_USE_SYSTEM_EXTENSIONS
AC_C_CONST
AC_C_INLINE
@@ -34,6 +36,11 @@ AC_CHECK_HEADER_STDBOOL
AC_FUNC_VPRINTF
AC_FUNC_MEMCMP
+dnl Check for -std=gnu99
+if test x"${ac_cv_prog_cc_stdc}" = x"no"; then
+ AC_MSG_ERROR([Your compiler does not support \`-std=gnu99\`. This is fatal.])
+fi
+
dnl Check for std includes.
AC_CHECK_HEADERS([stdarg.h stdio.h unistd.h stdlib.h string.h stdint.h time.h signal.h assert.h],,
[AC_MSG_ERROR([Missing essential std headers.])])