--- parted-1.4.19-pre2.orig/configure.in Sat Sep 8 17:43:59 2001 +++ parted-1.4.19-pre2/configure.in Wed Sep 12 16:28:58 2001 @@ -81,6 +81,11 @@ AC_DEFINE(ENABLE_PC98) fi +AC_ARG_ENABLE(Werror, + [ --enable-Werror build with gcc -Werror [default=yes]], , + enable_Werror=yes +) + dnl make libc threadsafe (not required for us, but useful other users of dnl libparted) CFLAGS="$CFLAGS -D_REENTRANT" @@ -272,7 +277,11 @@ LIBS="$OLD_LIBS" fi -CFLAGS="$CFLAGS -W -Wall -Wno-unused -Wno-switch -Werror" +CFLAGS="$CFLAGS -W -Wall -Wno-unused -Wno-switch" + +if test x$enable_Werror = xyes; then + CFLAGS="$CFLAGS -Werror" +fi AC_OUTPUT([ Makefile