#!/bin/sh
-AM_VERSION="1.10"
+#AM_VERSION="1.10"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
# automake-1.10 (recommended) is not available on Fedora 8
AUTOMAKE=automake
ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi
+if test -d /share/aclocal ; then
+ ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
+fi
+
if test -f /opt/local/bin/intltoolize ; then
#darwin
INTLTOOLIZE=/opt/local/bin/intltoolize
$AUTOMAKE --force-missing --add-missing --copy
autoconf
-echo "Generating build scripts in oRTP..."
-cd oRTP && ./autogen.sh && cd -
+if [ -x oRTP/autogen.sh ]; then
+ echo "Generating build scripts in oRTP..."
+ ( cd oRTP && ./autogen.sh )
+fi
-echo "Generating build scripts in mediastreamer2..."
-cd mediastreamer2 && ./autogen.sh && cd -
+if [ -x mediastreamer2/autogen.sh ]; then
+ echo "Generating build scripts in mediastreamer2..."
+ ( cd mediastreamer2 && ./autogen.sh )
+fi