########################################################################### mysql
have_mysql="yes"
+OLD_CPPFLAGS="$CPPFLAGS"
+OLD_LD_FLAGS="$LDFLAGS"
AC_ARG_WITH(mysql_headers, [AC_HELP_STRING(--with-mysql-headers=dir,
[look for mysql.h also in dir])])
if test -n "$with_mysql_headers"; then
else
AC_MSG_WARN([cannot build mysql-based audio file selector])
fi
+CPPFLAGS="$OLD_CPPFLAGS"
+LDFLAGS="$OLD_LDFLAGS"
########################################################################### ogg
have_ogg="yes"
AC_CHECK_LIB([ogg], [ogg_stream_init], [], [
fi
########################################################################### faad
have_faad=yes
+OLD_CPPFLAGS="$CPPFLAGS"
+OLD_LD_FLAGS="$LDFLAGS"
AC_ARG_WITH(faad_headers, [AC_HELP_STRING(--with-faad-headers=dir,
[look for neaacdec.h also in dir])])
if test -n "$with_faad_headers"; then
else
AC_MSG_WARN([no aac support in para_audiod/para_filter])
fi
+CPPFLAGS="$OLD_CPPFLAGS"
+LDFLAGS="$OLD_LDFLAGS"
########################################################################### mad
have_mad="yes"
+OLD_CPPFLAGS="$CPPFLAGS"
+OLD_LD_FLAGS="$LDFLAGS"
AC_ARG_WITH(mad_headers, [AC_HELP_STRING(--with-mad-headers=dir,
[look for mad.h also in dir])])
if test -n "$with_mad_headers"; then
else
AC_MSG_WARN([can not build para_audiod (no supported audio formats)])
fi
+CPPFLAGS="$OLD_CPPFLAGS"
+LDFLAGS="$OLD_LDFLAGS"
########################################################################### alsa
have_alsa="yes"
msg="=> no alsa support for para_audiod/para_write"
fi
########################################################################### ortp
have_ortp="yes"
-AC_ARG_ENABLE(ortp, AC_HELP_STRING([--disable-ortp], [Disable ortp support]),
- if test x$enableval = xno; then
- have_ortp=no
- fi
-)
-if test "$have_ortp" = "yes"; then
- AC_CHECK_HEADERS([ortp/ortp.h], [], [
- have_ortp="no"
- ])
- AC_CHECK_LIB([ortp], [ortp_init], [], [
- have_ortp="no"
- ])
+OLD_CPPFLAGS="$CPPFLAGS"
+OLD_LD_FLAGS="$LDFLAGS"
+AC_ARG_WITH(ortp_headers, [AC_HELP_STRING(--with-ortp-headers=dir,
+ [look for ortp/ortp.h also in dir])])
+if test -n "$with_ortp_headers"; then
+ ortp_cppflags="-I$with_ortp_headers"
+ CPPFLAGS="$CPPFLAGS $ortp_cppflags"
+fi
+AC_ARG_WITH(ortp_libs, [AC_HELP_STRING(--with-ortp-libs=dir,
+ [look for libortp also in dir])])
+if test -n "$with_ortp_libs"; then
+ ortp_libs="-L$with_ortp_libs"
+ LDFLAGS="$LDFLAGS $ortp_libs"
fi
+AC_CHECK_HEADERS([ortp/ortp.h], [], [have_ortp="no"])
+AC_CHECK_LIB([ortp], [ortp_init], [], [have_ortp="no"])
if test "$have_ortp" = "yes"; then
recv_cmdline_objs="$recv_cmdline_objs ortp_recv.cmdline"
recv_errlist_objs="$recv_errlist_objs ortp_recv"
server_errlist_objs="$server_errlist_objs ortp_send"
- recv_ldflags="$recv_ldflags -lortp"
- server_ldflags="$server_ldflags -lortp"
- audiod_ldflags="$audiod_ldflags -lortp"
+ recv_ldflags="$recv_ldflags $ortp_libs -lortp"
+ server_ldflags="$server_ldflags $ortp_libs -lortp"
+ audiod_ldflags="$audiod_ldflags $ortp_libs -lortp"
receivers="$receivers ortp"
senders="$senders ortp"
AC_DEFINE(HAVE_ORTP, 1, [define to 1 to turn on ortp support])
-
+ AC_SUBST(ortp_cppflags)
+ AC_SUBST(ortp_libs)
else
- AC_MSG_NOTICE([deactivating ortp support])
+ AC_MSG_NOTICE([deactivating ortp sender/receiver])
fi
-AC_SUBST(GLIB_CFLAGS)
-AC_SUBST(GLIB_LIBS)
-
+CPPFLAGS="$OLD_CPPFLAGS"
+LDFLAGS="$OLD_LDFLAGS"
########################################################################### zmw
slide="para_slider"
msg="can not build para_slider"
AC_OUTPUT
AC_MSG_NOTICE([creating Makefile.deps])
-gcc -MM -MG $mysql_cppflags $faad_cppflags $mad_cppflags *.c > Makefile.deps
+gcc -MM -MG $mysql_cppflags $faad_cppflags $mad_cppflags $ortp_cppflags *.c > Makefile.deps
AC_MSG_NOTICE([
paraslash configuration:
~~~~~~~~~~~~~~~~~~~~~~~~