summaryrefslogtreecommitdiff
blob: 333b2b767a4e9e297379c4e6c226e41334572035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -u -r evemu-1.0.10-orig/configure.ac evemu-1.0.10/configure.ac
--- evemu-1.0.10-orig/configure.ac	2013-01-03 14:39:47.816749652 -0600
+++ evemu-1.0.10/configure.ac	2013-01-03 15:40:16.566917042 -0600
@@ -35,9 +35,14 @@
 	AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
 fi
 
-AC_SUBST(AM_CFLAGS,
-         "-Wall -Wextra -pedantic -Werror -std=gnu99 -D_GNU_SOURCE=1")
+AC_ARG_ENABLE([werror],
+	[AC_HELP_STRING([--disable-werror],
+		[build without gcc -Werror])],
+	[],
+	[WERROR="-Werror"])
 
+AC_SUBST(AM_CFLAGS,
+         "-Wall -Wextra -pedantic $WERROR -std=gnu99 -D_GNU_SOURCE=1")
 
 AC_CONFIG_FILES([Makefile
                  src/Makefile