Revision 85aa5189 configure
b/configure | ||
---|---|---|
213 | 213 |
source_path_used="yes" |
214 | 214 |
fi |
215 | 215 |
|
216 |
# generate compile errors on warnings for development builds |
|
217 |
if grep cvs $source_path/VERSION > /dev/null 2>&1 ; then |
|
218 |
werror="yes"; |
|
219 |
else |
|
220 |
werror="no" |
|
221 |
fi |
|
222 |
|
|
216 | 223 |
for opt do |
217 | 224 |
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` |
218 | 225 |
case "$opt" in |
... | ... | |
306 | 313 |
*) echo "undefined SPARC architecture. Exiting";exit 1;; |
307 | 314 |
esac |
308 | 315 |
;; |
316 |
--enable-werror) werror="yes" |
|
317 |
;; |
|
318 |
--disable-werror) werror="no" |
|
319 |
;; |
|
309 | 320 |
esac |
310 | 321 |
done |
311 | 322 |
|
... | ... | |
319 | 330 |
# default flags for all hosts |
320 | 331 |
CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing" |
321 | 332 |
LDFLAGS="$LDFLAGS -g" |
333 |
if test "$werror" = "yes" ; then |
|
334 |
CFLAGS="$CFLAGS -Werror" |
|
335 |
fi |
|
322 | 336 |
|
323 | 337 |
# |
324 | 338 |
# If cpu ~= sparc and sparc_cpu hasn't been defined, plug in the right |
... | ... | |
378 | 392 |
echo " --make=MAKE use specified make [$make]" |
379 | 393 |
echo " --install=INSTALL use specified install [$install]" |
380 | 394 |
echo " --static enable static build [$static]" |
395 |
echo " --disable-werror disable compilation abort on warning" |
|
381 | 396 |
echo " --disable-sdl disable SDL" |
382 | 397 |
echo " --enable-cocoa enable COCOA (Mac OS X only)" |
383 | 398 |
echo " --enable-mingw32 enable Win32 cross compilation with mingw32" |
... | ... | |
684 | 699 |
echo "gprof enabled $gprof" |
685 | 700 |
echo "profiler $profiler" |
686 | 701 |
echo "static build $static" |
702 |
echo "-Werror enabled $werror" |
|
687 | 703 |
if test "$darwin" = "yes" ; then |
688 | 704 |
echo "Cocoa support $cocoa" |
689 | 705 |
fi |
Also available in: Unified diff