attempt again to fix -std=c99 in cflags
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15740 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a447162f7d
commit
e9e4badcfa
|
@ -1,5 +1,5 @@
|
|||
AC_DEFUN([AX_CFLAGS_WARN_ALL_ANSI],[dnl
|
||||
AS_VAR_PUSHDEF([FLAGS],[SWITCH_AM_CFLAGS])dnl
|
||||
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl
|
||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_warn_all_ansi])dnl
|
||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum ansi warnings],
|
||||
VAR,[VAR="no, unknown"
|
||||
|
@ -47,7 +47,7 @@ AS_VAR_POPDEF([FLAGS])dnl
|
|||
dnl the only difference - the LANG selection... and the default FLAGS
|
||||
|
||||
AC_DEFUN([AX_CXXFLAGS_WARN_ALL_ANSI],[dnl
|
||||
AS_VAR_PUSHDEF([FLAGS],[SWITCH_AM_CXXFLAGS])dnl
|
||||
AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl
|
||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_warn_all_ansi])dnl
|
||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum ansi warnings],
|
||||
VAR,[VAR="no, unknown"
|
||||
|
|
|
@ -261,7 +261,10 @@ AC_ARG_ENABLE(debug,
|
|||
|
||||
if test "${enable_debug}" = "yes"; then
|
||||
AC_DEFINE([DEBUG],[],[Enable extra debugging.])
|
||||
saved_CFLAGS=$CFLAGS
|
||||
AX_CFLAGS_WARN_ALL_ANSI
|
||||
APR_ADDTO(SWITCH_AM_CFLAGS, $CFLAGS)
|
||||
CFLAGS=$saved_CFLAGS
|
||||
|
||||
if test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||
APR_ADDTO(SWITCH_AM_CFLAGS, -g -ggdb)
|
||||
|
|
Loading…
Reference in New Issue