Changeset 3173

Show
Ignore:
Timestamp:
2007-07-30 01:11:12 (1 year ago)
Author:
conrad
Message:

add option "./configure --enable-gcc-werror" to add gcc option -Werror to
CFLAGS in all Makefiles. Patch from Erik de Castro Lopo.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • liboggz/trunk/configure.ac

    r3172 r3173  
    290290# Checks for typedefs, structures, and compiler characteristics. 
    291291 
    292 dnl Use -Wall if we have gcc. 
     292dnl Add some useful warnings if we have gcc. 
    293293dnl changequote(,)dnl 
    294294if test "x$ac_cv_prog_gcc" = xyes ; then 
     
    296296fi 
    297297dnl changequote([,])dnl 
     298 
     299dnl 
     300dnl  Configuration option to add -Werror to all Makefiles 
     301dnl 
     302 
     303AC_ARG_ENABLE(gcc-werror, 
     304     AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]), 
     305     [ ac_enable_gcc_werror=yes ], [ ac_enable_gcc_werror=no] ) 
     306 
     307if test "x${ac_enable_gcc_werror}" = xyes ; then 
     308  CFLAGS="-Werror $CFLAGS" 
     309fi 
     310 
     311dnl 
     312dnl Shared library symbol versioning and hiding 
     313dnl 
    298314 
    299315case "$target_os" in