summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-01-27 17:44:13 +0000
committerBenny Prijono <bennylp@teluu.com>2007-01-27 17:44:13 +0000
commiteba3e373a6d578348bd373dc02acebe28528f7c1 (patch)
tree24134b47f41bb58e851c7bfa3b238d7eace99d5a /aconfigure.ac
parente3cd40c8069f365a58fefe663d62e0222175e1c9 (diff)
Ticket #82: fix link errors when codecs are disabled from autoconf script
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@909 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 700c2273..14f2dd34 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -7,6 +7,8 @@ AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_CONFIG_HEADER([pjlib/include/pj/compat/os_auto.h
pjlib/include/pj/compat/m_auto.h
+ pjmedia/include/pjmedia/config_auto.h
+ pjmedia/include/pjmedia-codec/config_auto.h
pjsip/include/pjsip/sip_autoconf.h
])
AC_CONFIG_FILES([build.mak
@@ -332,6 +334,7 @@ AC_ARG_ENABLE(g711-codec,
[Exclude G.711 codecs from the build]),
[if test "$enable_g711_codec" = "no"; then
[ac_no_g711_codec=1]
+ AC_DEFINE(PJMEDIA_HAS_G711_CODEC,0)
AC_MSG_RESULT([Checking if G.711 codec is disabled...yes])
fi],
AC_MSG_RESULT([Checking if G.711 codec is disabled...no]))
@@ -344,6 +347,7 @@ AC_ARG_ENABLE(l16-codec,
[Exclude Linear/L16 codec family from the build]),
[if test "$enable_l16_codec" = "no"; then
[ac_no_l16_codec=1]
+ AC_DEFINE(PJMEDIA_HAS_L16_CODEC,0)
AC_MSG_RESULT([Checking if L16 codecs are disabled...yes])
fi],
AC_MSG_RESULT([Checking if L16 codec is disabled...no]))
@@ -356,6 +360,7 @@ AC_ARG_ENABLE(gsm-codec,
[Exclude GSM codec in the build]),
[if test "$enable_gsm_codec" = "no"; then
[ac_no_gsm_codec=1]
+ AC_DEFINE(PJMEDIA_HAS_GSM_CODEC,0)
AC_MSG_RESULT([Checking if GSM codec is disabled...yes])
fi],
AC_MSG_RESULT([Checking if GSM codec is disabled...no]))
@@ -367,6 +372,7 @@ AC_ARG_ENABLE(speex-codec,
[Exclude Speex codecs in the build]),
[if test "$enable_speex_codec" = "no"; then
[ac_no_speex_codec=1]
+ AC_DEFINE(PJMEDIA_HAS_SPEEX_CODEC,0)
AC_MSG_RESULT([Checking if Speex codec is disabled...yes])
fi],
AC_MSG_RESULT([Checking if Speex codec is disabled...no]))
@@ -378,6 +384,7 @@ AC_ARG_ENABLE(ilbc-codec,
[Exclude iLBC codec in the build]),
[if test "$enable_ilbc_codec" = "no"; then
[ac_no_ilbc_codec=1]
+ AC_DEFINE(PJMEDIA_HAS_ILBC_CODEC,0)
AC_MSG_RESULT([Checking if iLBC codec is disabled...yes])
fi],
AC_MSG_RESULT([Checking if iLBC codec is disabled...no]))