diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-09-13 09:38:06 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-09-13 09:38:06 +0000 |
commit | 8dd5bb763d2469a14b7a1bf2ffe416b8800f484f (patch) | |
tree | a099eff044c88dc1f2b68fd5161e1b291c3d75ae /aconfigure.ac | |
parent | 24d82c099af823ce401cc116a6ba3242ea922352 (diff) |
Set default CFLAGS in configure to -O2 -DNDEBUG
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@709 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index ae17c8bf..9eff1281 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -12,6 +12,19 @@ AC_CONFIG_FILES([build.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak ]) + +dnl +dnl Setup default CFLAGS +dnl +if test "$CFLAGS" = ""; then + CFLAGS="-O2 -DNDEBUG" +else + CFLAGS="$CFLAGS" +fi + +CXXFLAGS="$CFLAGS $CXXFLAGS" + + AC_PROG_CC AC_PROG_CXX AC_LANG_C @@ -322,7 +335,7 @@ AC_ARG_ENABLE(l16-codec, [ac_no_l16_codec=1] AC_MSG_RESULT([Checking if L16 codecs are disabled...yes]) fi], - AC_MSG_RESULT([Checking if G.711 codec is disabled...no])) + AC_MSG_RESULT([Checking if L16 codec is disabled...no])) dnl # Include GSM codec |