[dhcp-agent-commits] dhcp-agent configure.ac,1.9,1.10
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-06-25 01:53:39
|
Update of /cvsroot/dhcp-agent/dhcp-agent In directory sc8-pr-cvs1:/tmp/cvs-serv13792 Modified Files: configure.ac Log Message: added option for enable failure on warning Index: configure.ac =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/configure.ac,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** configure.ac 9 Jun 2003 02:01:01 -0000 1.9 --- configure.ac 25 Jun 2003 01:53:36 -0000 1.10 *************** *** 19,28 **** dnl ! dnl enable/disable argument settings dnl dnl allow user to pick HTML documentation AC_ARG_ENABLE(htmldoc, ! [ --enable-htmldoc Create HTML documentation], [case "${enableval}" in yes) htmldoc=true ;; --- 19,40 ---- dnl ! dnl command line options dnl + dnl fail-on-warning option for strict compilation + FAIL_ON_WARNING="no" + + AC_ARG_ENABLE(fail-on-warning, + [ --enable-fail-on-warning fail on compiler warning], + [case "${enableval}" in + yes | y) FAIL_ON_WARNING="yes" ;; + no | n) FAIL_ON_WARNING="no" ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-fail-on-warning) ;; + esac]) + + dnl allow user to pick HTML documentation AC_ARG_ENABLE(htmldoc, ! [ --enable-htmldoc Create HTML documentation], [case "${enableval}" in yes) htmldoc=true ;; *************** *** 231,234 **** --- 243,250 ---- AC_SUBST(infodir) AC_SUBST(dhcpdocdir) + + if test x"${FAIL_ON_WARNING}" = "xyes"; then + CFLAGS="${CFLAGS} -Werror" + fi AC_CONFIG_HEADERS([config.h]) |