From d1306df61ff3147617c45d0f08c00b830e9cffe2 Mon Sep 17 00:00:00 2001 From: Omari Stephens Date: Sun, 9 Jul 2017 21:40:05 +0000 Subject: [PATCH] Enable C99 mode Also, make AC_INIT macro independent of available branch names. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 9ab7cabf..d24e7f9c 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. AC_PREREQ(2.57) -AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short master), [geeqie-devel@lists.sourceforge.net], [], [http://www.geeqie.org/]) +AC_INIT([geeqie], m4_esyscmd_s(git rev-parse --quiet --verify --short HEAD), [geeqie-devel@lists.sourceforge.net], [], [http://www.geeqie.org/]) # Add -Werror to the default CFLAGS CFLAGS+=" -Werror -Wno-error=deprecated-declarations" @@ -132,6 +132,7 @@ fi AC_ISC_POSIX AC_PROG_CC +AC_PROG_CC_C99 AC_PROG_CXX AC_STDC_HEADERS AC_ARG_PROGRAM -- 2.20.1