mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
removed gstreamer.m4 (packages should use pkg.m4) guilaunch depends only on gtk, not libglade-gnome removed an unnece...
Original commit message from CVS: * removed gstreamer.m4 (packages should use pkg.m4) * guilaunch depends only on gtk, not libglade-gnome * removed an unnecessary check in dynamic-pipeline.c * attempted to avoid a spurious autoheader run * gtk2 fixes * killed a lot of files that automake brings in for us * killed acinclude.m4, it's autogenerated
This commit is contained in:
parent
51bb2b1c4c
commit
e8e87fe956
10 changed files with 9 additions and 1675 deletions
|
@ -40,9 +40,6 @@ $(SUBDIRS_LGG) $(SUBDIRS_DOCS)
|
|||
DIST_SUBDIRS = include gst libs plugins tools test tests testsuite examples gstplay editor docs debian
|
||||
|
||||
|
||||
m4datadir = $(datadir)/aclocal
|
||||
m4data_DATA = gstreamer.m4
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = gstreamer.pc
|
||||
|
||||
|
|
920
acinclude.m4
920
acinclude.m4
|
@ -1,920 +0,0 @@
|
|||
# CFLAGS and library paths for XMMS
|
||||
# written 15 December 1999 by Ben Gertzfield <che@debian.org>
|
||||
|
||||
dnl Usage:
|
||||
dnl AM_PATH_XMMS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl
|
||||
dnl Example:
|
||||
dnl AM_PATH_XMMS(0.9.5.1, , AC_MSG_ERROR([*** XMMS >= 0.9.5.1 not installed - please install first ***]))
|
||||
dnl
|
||||
dnl Defines XMMS_CFLAGS, XMMS_LIBS, XMMS_DATA_DIR, XMMS_PLUGIN_DIR,
|
||||
dnl XMMS_VISUALIZATION_PLUGIN_DIR, XMMS_INPUT_PLUGIN_DIR,
|
||||
dnl XMMS_OUTPUT_PLUGIN_DIR, XMMS_GENERAL_PLUGIN_DIR, XMMS_EFFECT_PLUGIN_DIR,
|
||||
dnl and XMMS_VERSION for your plugin pleasure.
|
||||
dnl
|
||||
|
||||
dnl XMMS_TEST_VERSION(AVAILABLE-VERSION, NEEDED-VERSION [, ACTION-IF-OKAY [, ACTION-IF-NOT-OKAY]])
|
||||
AC_DEFUN(XMMS_TEST_VERSION, [
|
||||
|
||||
# Determine which version number is greater. Prints 2 to stdout if
|
||||
# the second number is greater, 1 if the first number is greater,
|
||||
# 0 if the numbers are equal.
|
||||
|
||||
# Written 15 December 1999 by Ben Gertzfield <che@debian.org>
|
||||
# Revised 15 December 1999 by Jim Monty <monty@primenet.com>
|
||||
|
||||
AC_PROG_AWK
|
||||
xmms_got_version=[` $AWK ' \
|
||||
BEGIN { \
|
||||
print vercmp(ARGV[1], ARGV[2]); \
|
||||
} \
|
||||
\
|
||||
function vercmp(ver1, ver2, ver1arr, ver2arr, \
|
||||
ver1len, ver2len, \
|
||||
ver1int, ver2int, len, i, p) { \
|
||||
\
|
||||
ver1len = split(ver1, ver1arr, /\./); \
|
||||
ver2len = split(ver2, ver2arr, /\./); \
|
||||
\
|
||||
len = ver1len > ver2len ? ver1len : ver2len; \
|
||||
\
|
||||
for (i = 1; i <= len; i++) { \
|
||||
p = 1000 ^ (len - i); \
|
||||
ver1int += ver1arr[i] * p; \
|
||||
ver2int += ver2arr[i] * p; \
|
||||
} \
|
||||
\
|
||||
if (ver1int < ver2int) \
|
||||
return 2; \
|
||||
else if (ver1int > ver2int) \
|
||||
return 1; \
|
||||
else \
|
||||
return 0; \
|
||||
}' $1 $2`]
|
||||
|
||||
if test $xmms_got_version -eq 2; then # failure
|
||||
ifelse([$4], , :, $4)
|
||||
else # success!
|
||||
ifelse([$3], , :, $3)
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN(AM_PATH_XMMS,
|
||||
[
|
||||
AC_ARG_WITH(xmms-prefix,[ --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)],
|
||||
xmms_config_prefix="$withval", xmms_config_prefix="")
|
||||
AC_ARG_WITH(xmms-exec-prefix,[ --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)],
|
||||
xmms_config_exec_prefix="$withval", xmms_config_exec_prefix="")
|
||||
|
||||
if test x$xmms_config_exec_prefix != x; then
|
||||
xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
|
||||
if test x${XMMS_CONFIG+set} != xset; then
|
||||
XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
|
||||
fi
|
||||
fi
|
||||
|
||||
if test x$xmms_config_prefix != x; then
|
||||
xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
|
||||
if test x${XMMS_CONFIG+set} != xset; then
|
||||
XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(XMMS_CONFIG, xmms-config, no)
|
||||
min_xmms_version=ifelse([$1], ,0.9.5.1, $1)
|
||||
|
||||
if test "$XMMS_CONFIG" = "no"; then
|
||||
no_xmms=yes
|
||||
else
|
||||
XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
|
||||
XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
|
||||
XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
|
||||
XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
|
||||
XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
|
||||
XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
|
||||
--visualization-plugin-dir`
|
||||
XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
|
||||
XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
|
||||
XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
|
||||
XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
|
||||
|
||||
XMMS_TEST_VERSION($XMMS_VERSION, $min_xmms_version, ,no_xmms=version)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for XMMS - version >= $min_xmms_version)
|
||||
|
||||
if test "x$no_xmms" = x; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
|
||||
if test "$XMMS_CONFIG" = "no" ; then
|
||||
echo "*** The xmms-config script installed by XMMS could not be found."
|
||||
echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the XMMS_CONFIG environment variable to the"
|
||||
echo "*** full path to xmms-config."
|
||||
else
|
||||
if test "$no_xmms" = "version"; then
|
||||
echo "*** An old version of XMMS, $XMMS_VERSION, was found."
|
||||
echo "*** You need a version of XMMS newer than $min_xmms_version."
|
||||
echo "*** The latest version of XMMS is always available from"
|
||||
echo "*** http://www.xmms.org/"
|
||||
echo "***"
|
||||
|
||||
echo "*** If you have already installed a sufficiently new version, this error"
|
||||
echo "*** probably means that the wrong copy of the xmms-config shell script is"
|
||||
echo "*** being found. The easiest way to fix this is to remove the old version"
|
||||
echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
|
||||
echo "*** correct copy of xmms-config. (In this case, you will have to"
|
||||
echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
|
||||
echo "*** so that the correct libraries are found at run-time)"
|
||||
fi
|
||||
fi
|
||||
XMMS_CFLAGS=""
|
||||
XMMS_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(XMMS_CFLAGS)
|
||||
AC_SUBST(XMMS_LIBS)
|
||||
AC_SUBST(XMMS_VERSION)
|
||||
AC_SUBST(XMMS_DATA_DIR)
|
||||
AC_SUBST(XMMS_PLUGIN_DIR)
|
||||
AC_SUBST(XMMS_VISUALIZATION_PLUGIN_DIR)
|
||||
AC_SUBST(XMMS_INPUT_PLUGIN_DIR)
|
||||
AC_SUBST(XMMS_OUTPUT_PLUGIN_DIR)
|
||||
AC_SUBST(XMMS_GENERAL_PLUGIN_DIR)
|
||||
AC_SUBST(XMMS_EFFECT_PLUGIN_DIR)
|
||||
])
|
||||
|
||||
|
||||
dnl Perform a check for a feature for GStreamer
|
||||
dnl Richard Boulton <richard-alsa@tartarus.org>
|
||||
dnl Last modification: 25/06/2001
|
||||
dnl GST_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
|
||||
dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE,
|
||||
dnl DISABLE-BY-DEFAULT, ACTION-IF-USE, ACTION-IF-NOTUSE)
|
||||
dnl
|
||||
dnl This macro adds a command line argument to enable the user to enable
|
||||
dnl or disable a feature, and if the feature is enabled, performs a supplied
|
||||
dnl test to check if the feature is available.
|
||||
dnl
|
||||
dnl The test should define HAVE_<FEATURE-NAME> to "yes" or "no" depending
|
||||
dnl on whether the feature is available.
|
||||
dnl
|
||||
dnl The macro will set USE_<<FEATURE-NAME> to "yes" or "no" depending on
|
||||
dnl whether the feature is to be used.
|
||||
dnl
|
||||
dnl The macro will call AM_CONDITIONAL(USE_<<FEATURE-NAME>, ...) to allow
|
||||
dnl the feature to control what is built in Makefile.ams. If you want
|
||||
dnl additional actions resulting from the test, you can add them with the
|
||||
dnl ACTION-IF-USE and ACTION-IF-NOTUSE parameters.
|
||||
dnl
|
||||
dnl FEATURE-NAME is the name of the feature, and should be in
|
||||
dnl purely upper case characters.
|
||||
dnl FEATURE-DESCRIPTION is used to describe the feature in help text for
|
||||
dnl the command line argument.
|
||||
dnl DEPENDENT-PLUGINS lists any plugins which depend on this feature.
|
||||
dnl TEST-FOR-FEATURE is a test which sets HAVE_<FEATURE-NAME> to "yes"
|
||||
dnl or "no" depending on whether the feature is
|
||||
dnl available.
|
||||
dnl DISABLE-BY-DEFAULT if "disabled", the feature is disabled by default,
|
||||
dnl if any other value, the feature is enabled by default.
|
||||
dnl ACTION-IF-USE any extra actions to perform if the feature is to be
|
||||
dnl used.
|
||||
dnl ACTION-IF-NOTUSE any extra actions to perform if the feature is not to
|
||||
dnl be used.
|
||||
dnl
|
||||
AC_DEFUN(GST_CHECK_FEATURE,
|
||||
[dnl
|
||||
builtin(define, [gst_endisable], ifelse($5, [disabled], [enable], [disable]))dnl
|
||||
AC_ARG_ENABLE(translit([$1], A-Z, a-z),
|
||||
[ ]builtin(format, --%-26s gst_endisable %s, gst_endisable-translit([$1], A-Z, a-z), [$2]ifelse([$3],,,: [$3])),
|
||||
[ case "${enableval}" in
|
||||
yes) USE_[$1]=yes ;;
|
||||
no) USE_[$1]=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-translit([$1], A-Z, a-z)) ;;
|
||||
esac],
|
||||
[ USE_$1=]ifelse($5, [disabled], [no], [yes])) dnl DEFAULT
|
||||
|
||||
dnl *** If it's enabled
|
||||
if test x$USE_[$1] = xyes; then
|
||||
gst_check_save_LIBS=$LIBS
|
||||
gst_check_save_LDFLAGS=$LDFLAGS
|
||||
gst_check_save_CFLAGS=$CFLAGS
|
||||
gst_check_save_CPPFLAGS=$CPPFLAGS
|
||||
gst_check_save_CXXFLAGS=$CXXFLAGS
|
||||
HAVE_[$1]=no
|
||||
$4
|
||||
LIBS=$gst_check_save_LIBS
|
||||
LDFLAGS=$gst_check_save_LDFLAGS
|
||||
CFLAGS=$gst_check_save_CFLAGS
|
||||
CPPFLAGS=$gst_check_save_CPPFLAGS
|
||||
CXXFLAGS=$gst_check_save_CXXFLAGS
|
||||
|
||||
dnl If it isn't found, unset USE_[$1]
|
||||
if test x$HAVE_[$1] = xno; then
|
||||
USE_[$1]=no
|
||||
fi
|
||||
fi
|
||||
dnl *** Warn if it's disabled or not found
|
||||
if test x$USE_[$1] = xyes; then
|
||||
ifelse([$6], , :, [$6])
|
||||
else
|
||||
ifelse([$3], , :, [AC_MSG_WARN(
|
||||
***** NOTE: These plugins won't be built: [$3]
|
||||
)])
|
||||
ifelse([$7], , :, [$7])
|
||||
fi
|
||||
dnl *** Define the conditional as appropriate
|
||||
AM_CONDITIONAL(USE_[$1], test x$USE_[$1] = xyes)
|
||||
])
|
||||
|
||||
dnl Use a -config program which accepts --cflags and --libs parameters
|
||||
dnl to set *_CFLAGS and *_LIBS and check existence of a feature.
|
||||
dnl Richard Boulton <richard-alsa@tartarus.org>
|
||||
dnl Last modification: 26/06/2001
|
||||
dnl GST_CHECK_CONFIGPROG(FEATURE-NAME, CONFIG-PROG-FILENAME, MODULES)
|
||||
dnl
|
||||
dnl This check was written for GStreamer: it should be renamed and checked
|
||||
dnl for portability if you decide to use it elsewhere.
|
||||
dnl
|
||||
AC_DEFUN(GST_CHECK_CONFIGPROG,
|
||||
[
|
||||
AC_PATH_PROG([$1]_CONFIG, [$2], no)
|
||||
if test x$[$1]_CONFIG = xno; then
|
||||
[$1]_LIBS=
|
||||
[$1]_CFLAGS=
|
||||
HAVE_[$1]=no
|
||||
else
|
||||
[$1]_LIBS=`[$2] --libs [$3]`
|
||||
[$1]_CFLAGS=`[$2] --cflags [$3]`
|
||||
HAVE_[$1]=yes
|
||||
fi
|
||||
AC_SUBST([$1]_LIBS)
|
||||
AC_SUBST([$1]_CFLAGS)
|
||||
])
|
||||
|
||||
|
||||
dnl Perform a check for existence of ARTSC
|
||||
dnl Richard Boulton <richard-alsa@tartarus.org>
|
||||
dnl Last modification: 26/06/2001
|
||||
dnl GST_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
|
||||
dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE)
|
||||
dnl
|
||||
dnl This check was written for GStreamer: it should be renamed and checked
|
||||
dnl for portability if you decide to use it elsewhere.
|
||||
dnl
|
||||
AC_DEFUN(GST_CHECK_ARTSC,
|
||||
[
|
||||
AC_PATH_PROG(ARTSC_CONFIG, artsc-config, no)
|
||||
if test x$ARTSC_CONFIG = xno; then
|
||||
AC_MSG_WARN([Couldn't find artsc-config])
|
||||
HAVE_ARTSC=no
|
||||
ARTSC_LIBS=
|
||||
ARTSC_CFLAGS=
|
||||
else
|
||||
ARTSC_LIBS=`artsc-config --libs`
|
||||
ARTSC_CFLAGS=`artsc-config --cflags`
|
||||
dnl AC_CHECK_HEADER uses CPPFLAGS, but not CFLAGS.
|
||||
dnl FIXME: Ensure only suitable flags result from artsc-config --cflags
|
||||
CPPFLAGS="$CPPFLAGS $ARTSC_CFLAGS"
|
||||
AC_CHECK_HEADER(artsc.h, HAVE_ARTSC=yes, HAVE_ARTSC=no)
|
||||
fi
|
||||
AC_SUBST(ARTSC_LIBS)
|
||||
AC_SUBST(ARTSC_CFLAGS)
|
||||
])
|
||||
|
||||
dnl sidplay stuff (taken from xmms)
|
||||
AC_DEFUN(AC_FIND_FILE,
|
||||
[
|
||||
$3=NO
|
||||
for i in $2; do
|
||||
for j in $1; do
|
||||
if test -r "$i/$j"; then
|
||||
$3=$i
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
])
|
||||
|
||||
AC_DEFUN(AC_PATH_LIBSIDPLAY,
|
||||
[
|
||||
AC_MSG_CHECKING([for SIDPLAY includes and library])
|
||||
ac_sidplay_cflags=NO
|
||||
ac_sidplay_library=NO
|
||||
sidplay_cflags=""
|
||||
sidplay_library=""
|
||||
|
||||
AC_ARG_WITH(sidplay-includes,
|
||||
[ --with-sidplay-includes=DIR
|
||||
where the sidplay includes are located],
|
||||
[ac_sidplay_cflags="$withval"
|
||||
])
|
||||
|
||||
AC_ARG_WITH(sidplay-library,
|
||||
[ --with-sidplay-library=DIR
|
||||
where the sidplay library is installed],
|
||||
[ac_sidplay_library="$withval"
|
||||
])
|
||||
|
||||
if test "$ac_sidplay_cflags" = NO || test "$ac_sidplay_library" = NO; then
|
||||
#search common locations
|
||||
|
||||
AC_CACHE_VAL(ac_cv_have_sidplay,
|
||||
[
|
||||
sidplay_incdirs="$ac_sidplay_cflags /usr/include /usr/local/include /usr/lib/sidplay/include /usr/local/lib/sidplay/include"
|
||||
AC_FIND_FILE(sidplay/sidtune.h,$sidplay_incdirs,sidplay_foundincdir)
|
||||
ac_sidplay_cflags=$sidplay_foundincdir
|
||||
|
||||
sidplay_libdirs="$ac_sidplay_library /usr/lib /usr/local/lib /usr/lib/sidplay /usr/local/lib/sidplay"
|
||||
AC_FIND_FILE(libsidplay.so libsidplay.so.1 libsidplay.so.1.36 libsidplay.so.1.37,$sidplay_libdirs,sidplay_foundlibdir)
|
||||
ac_sidplay_library=$sidplay_foundlibdir
|
||||
|
||||
if test "$ac_sidplay_cflags" = NO || test "$ac_sidplay_library" = NO; then
|
||||
ac_cv_have_sidplay="have_sidplay=no"
|
||||
ac_sidplay_notfound=""
|
||||
if test "$ac_sidplay_cflags" = NO; then
|
||||
if test "$ac_sidplay_library" = NO; then
|
||||
ac_sidplay_notfound="(headers and library)";
|
||||
else
|
||||
ac_sidplay_notfound="(headers)";
|
||||
fi
|
||||
else
|
||||
ac_sidplay_notfound="(library)";
|
||||
fi
|
||||
eval "$ac_cv_have_sidplay"
|
||||
AC_MSG_RESULT([$have_sidplay])
|
||||
else
|
||||
have_sidplay=yes
|
||||
fi
|
||||
|
||||
]) dnl AC_CACHE_VAL(ac_cv_have_sidplay,
|
||||
else
|
||||
have_sidplay=yes
|
||||
fi dnl if (have_to_search)
|
||||
|
||||
eval "$ac_cv_have_sidplay"
|
||||
|
||||
if test "$have_sidplay" != yes; then
|
||||
AC_MSG_RESULT([$have_sidplay]);
|
||||
else
|
||||
ac_cv_have_sidplay="have_sidplay=yes \
|
||||
ac_sidplay_cflags=$ac_sidplay_cflags ac_sidplay_library=$ac_sidplay_library"
|
||||
AC_MSG_RESULT([library $ac_sidplay_library, headers $ac_sidplay_cflags])
|
||||
|
||||
sidplay_library=$ac_sidplay_library
|
||||
sidplay_cflags=$ac_sidplay_cflags
|
||||
|
||||
SIDPLAY_LIBS="-L$sidplay_library -lsidplay"
|
||||
all_libraries="$SIDPLAY_LIBS $all_libraries"
|
||||
SIDPLAY_CFLAGS="-I$sidplay_cflags"
|
||||
all_includes="$SIDPLAY_CFLAGS $all_includes"
|
||||
fi
|
||||
|
||||
dnl Test compilation.
|
||||
|
||||
AC_MSG_CHECKING([whether -lsidplay works])
|
||||
ac_cxxflags_safe=$CXXFLAGS
|
||||
ac_ldflags_safe=$LDFLAGS
|
||||
ac_libs_safe=$LIBS
|
||||
|
||||
CXXFLAGS="$CXXFLAGS -I$sidplay_cflags"
|
||||
LDFLAGS="$LDFLAGS -L$sidplay_library"
|
||||
LIBS="-lsidplay"
|
||||
|
||||
AC_CACHE_VAL(ac_cv_sidplay_works,
|
||||
[
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_TRY_RUN([
|
||||
#include <sidplay/player.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
sidTune tune = sidTune(0);
|
||||
}
|
||||
],
|
||||
ac_cv_sidplay_works="yes",
|
||||
ac_cv_sidplay_works="no",
|
||||
ac_cv_sidplay_works="no")
|
||||
AC_LANG_C
|
||||
])
|
||||
|
||||
CXXFLAGS="$ac_cxxflags_safe"
|
||||
LDFLAGS="$ac_ldflags_safe"
|
||||
LIBS="$ac_libs_safe"
|
||||
|
||||
AC_MSG_RESULT([$ac_cv_sidplay_works])
|
||||
if test "$ac_cv_sidplay_works" != yes; then
|
||||
have_sidplay=no
|
||||
fi
|
||||
|
||||
dnl
|
||||
|
||||
AC_SUBST(SIDPLAY_CFLAGS)
|
||||
AC_SUBST(SIDPLAY_LIBS)
|
||||
|
||||
AC_SUBST(sidplay_library)
|
||||
AC_SUBST(sidplay_cflags)
|
||||
|
||||
])
|
||||
dnl Configure Paths for Alsa
|
||||
dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
|
||||
dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
|
||||
dnl Jaroslav Kysela <perex@suse.cz>
|
||||
dnl Last modification: 07/01/2001
|
||||
dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
|
||||
dnl enables arguments --with-alsa-prefix=
|
||||
dnl --with-alsa-enc-prefix=
|
||||
dnl --disable-alsatest (this has no effect, as yet)
|
||||
dnl
|
||||
dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
|
||||
dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
|
||||
dnl
|
||||
AC_DEFUN(AM_PATH_ALSA,
|
||||
[dnl Save the original CFLAGS, LDFLAGS, and LIBS
|
||||
alsa_save_CFLAGS="$CFLAGS"
|
||||
alsa_save_LDFLAGS="$LDFLAGS"
|
||||
alsa_save_LIBS="$LIBS"
|
||||
alsa_found=yes
|
||||
|
||||
dnl
|
||||
dnl Get the cflags and libraries for alsa
|
||||
dnl
|
||||
AC_ARG_WITH(alsa-prefix,
|
||||
[ --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)],
|
||||
[alsa_prefix="$withval"], [alsa_prefix=""])
|
||||
|
||||
AC_ARG_WITH(alsa-inc-prefix,
|
||||
[ --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)],
|
||||
[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
|
||||
|
||||
dnl FIXME: this is not yet implemented
|
||||
AC_ARG_ENABLE(alsatest,
|
||||
[ --disable-alsatest Do not try to compile and run a test Alsa program],
|
||||
[enable_alsatest=no],
|
||||
[enable_alsatest=yes])
|
||||
|
||||
dnl Add any special include directories
|
||||
AC_MSG_CHECKING(for ALSA CFLAGS)
|
||||
if test "$alsa_inc_prefix" != "" ; then
|
||||
ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
|
||||
CFLAGS="$CFLAGS -I$alsa_inc_prefix"
|
||||
fi
|
||||
AC_MSG_RESULT($ALSA_CFLAGS)
|
||||
|
||||
dnl add any special lib dirs
|
||||
AC_MSG_CHECKING(for ALSA LDFLAGS)
|
||||
if test "$alsa_prefix" != "" ; then
|
||||
ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
|
||||
LDFLAGS="$LDFLAGS $ALSA_LIBS"
|
||||
fi
|
||||
|
||||
dnl add the alsa library
|
||||
ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl"
|
||||
LIBS=`echo $LIBS | sed 's/-lm//'`
|
||||
LIBS=`echo $LIBS | sed 's/-ldl//'`
|
||||
LIBS=`echo $LIBS | sed 's/ //'`
|
||||
LIBS="$ALSA_LIBS $LIBS"
|
||||
AC_MSG_RESULT($ALSA_LIBS)
|
||||
|
||||
dnl Check for a working version of libasound that is of the right version.
|
||||
min_alsa_version=ifelse([$1], ,0.1.1,$1)
|
||||
AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
|
||||
no_alsa=""
|
||||
alsa_min_major_version=`echo $min_alsa_version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
alsa_min_minor_version=`echo $min_alsa_version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
alsa_min_micro_version=`echo $min_alsa_version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/asoundlib.h>
|
||||
], [
|
||||
void main(void)
|
||||
{
|
||||
/* ensure backward compatibility */
|
||||
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
|
||||
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
|
||||
#endif
|
||||
#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
|
||||
#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
|
||||
#endif
|
||||
#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
|
||||
#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
|
||||
#endif
|
||||
|
||||
# if(SND_LIB_MAJOR > $alsa_min_major_version)
|
||||
exit(0);
|
||||
# else
|
||||
# if(SND_LIB_MAJOR < $alsa_min_major_version)
|
||||
# error not present
|
||||
# endif
|
||||
|
||||
# if(SND_LIB_MINOR > $alsa_min_minor_version)
|
||||
exit(0);
|
||||
# else
|
||||
# if(SND_LIB_MINOR < $alsa_min_minor_version)
|
||||
# error not present
|
||||
# endif
|
||||
|
||||
# if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
|
||||
# error not present
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
exit(0);
|
||||
}
|
||||
],
|
||||
[AC_MSG_RESULT(found.)],
|
||||
[AC_MSG_RESULT(not present.)
|
||||
ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
|
||||
alsa_found=no]
|
||||
)
|
||||
AC_LANG_RESTORE
|
||||
|
||||
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
|
||||
AC_CHECK_LIB([asound], [snd_seq_create_event],,
|
||||
[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
|
||||
alsa_found=no]
|
||||
)
|
||||
|
||||
if test "x$alsa_found" = "xyes" ; then
|
||||
ifelse([$2], , :, [$2])
|
||||
LIBS=`echo $LIBS | sed 's/-lasound//g'`
|
||||
LIBS=`echo $LIBS | sed 's/ //'`
|
||||
LIBS="-lasound $LIBS"
|
||||
fi
|
||||
if test "x$alsa_found" = "xno" ; then
|
||||
ifelse([$3], , :, [$3])
|
||||
CFLAGS="$alsa_save_CFLAGS"
|
||||
LDFLAGS="$alsa_save_LDFLAGS"
|
||||
LIBS="$alsa_save_LIBS"
|
||||
ALSA_CFLAGS=""
|
||||
ALSA_LIBS=""
|
||||
fi
|
||||
|
||||
dnl That should be it. Now just export out symbols:
|
||||
AC_SUBST(ALSA_CFLAGS)
|
||||
AC_SUBST(ALSA_LIBS)
|
||||
])
|
||||
|
||||
# stuff for SDL, hope this helps if we put it here
|
||||
|
||||
# Configure paths for SDL
|
||||
# Sam Lantinga 9/21/99
|
||||
# stolen from Manish Singh
|
||||
# stolen back from Frank Belew
|
||||
# stolen from Manish Singh
|
||||
# Shamelessly stolen from Owen Taylor
|
||||
|
||||
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
|
||||
dnl
|
||||
AC_DEFUN(AM_PATH_SDL,
|
||||
[dnl
|
||||
dnl Get the cflags and libraries from the sdl-config script
|
||||
dnl
|
||||
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
|
||||
sdl_prefix="$withval", sdl_prefix="")
|
||||
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
|
||||
sdl_exec_prefix="$withval", sdl_exec_prefix="")
|
||||
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
|
||||
, enable_sdltest=yes)
|
||||
|
||||
if test x$sdl_exec_prefix != x ; then
|
||||
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
|
||||
if test x${SDL_CONFIG+set} != xset ; then
|
||||
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
|
||||
fi
|
||||
fi
|
||||
if test x$sdl_prefix != x ; then
|
||||
sdl_args="$sdl_args --prefix=$sdl_prefix"
|
||||
if test x${SDL_CONFIG+set} != xset ; then
|
||||
SDL_CONFIG=$sdl_prefix/bin/sdl-config
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
|
||||
min_sdl_version=ifelse([$1], ,0.11.0,$1)
|
||||
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
|
||||
no_sdl=""
|
||||
if test "$SDL_CONFIG" = "no" ; then
|
||||
no_sdl=yes
|
||||
else
|
||||
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
|
||||
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
|
||||
|
||||
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||
if test "x$enable_sdltest" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed SDL is sufficiently new. (Also sanity
|
||||
dnl checks the results of sdl-config to some extent
|
||||
dnl
|
||||
rm -f conf.sdltest
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "SDL.h"
|
||||
|
||||
char*
|
||||
my_strdup (char *str)
|
||||
{
|
||||
char *new_str;
|
||||
|
||||
if (str)
|
||||
{
|
||||
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
|
||||
strcpy (new_str, str);
|
||||
}
|
||||
else
|
||||
new_str = NULL;
|
||||
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
int major, minor, micro;
|
||||
char *tmp_version;
|
||||
|
||||
/* This hangs on some systems (?)
|
||||
system ("touch conf.sdltest");
|
||||
*/
|
||||
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
|
||||
|
||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||
tmp_version = my_strdup("$min_sdl_version");
|
||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
||||
printf("%s, bad version string\n", "$min_sdl_version");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (($sdl_major_version > major) ||
|
||||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
|
||||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
|
||||
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
|
||||
printf("*** best to upgrade to the required version.\n");
|
||||
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
|
||||
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
|
||||
printf("*** config.cache before re-running configure\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
if test "x$no_sdl" = x ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
if test "$SDL_CONFIG" = "no" ; then
|
||||
echo "*** The sdl-config script installed by SDL could not be found"
|
||||
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the SDL_CONFIG environment variable to the"
|
||||
echo "*** full path to sdl-config."
|
||||
else
|
||||
if test -f conf.sdltest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run SDL test program, checking why..."
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include "SDL.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{ return 0; }
|
||||
#undef main
|
||||
#define main K_and_R_C_main
|
||||
], [ return 0; ],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding SDL or finding the wrong"
|
||||
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system"
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
|
||||
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
|
||||
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
SDL_CFLAGS=""
|
||||
SDL_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(SDL_CFLAGS)
|
||||
AC_SUBST(SDL_LIBS)
|
||||
rm -f conf.sdltest
|
||||
])
|
||||
# Configure paths for ARTS
|
||||
# Philip Stadermann 2001-06-21
|
||||
# stolen from esd.m4
|
||||
# adapted and scrubbed by thomas
|
||||
|
||||
dnl AM_PATH_ARTS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl Test for ARTS, and define ARTS_CFLAGS and ARTS_LIBS
|
||||
dnl
|
||||
AC_DEFUN([AM_PATH_ARTS],
|
||||
[dnl
|
||||
dnl Get the cflags and libraries from the artsc-config script
|
||||
dnl
|
||||
AC_ARG_WITH(arts-prefix,[ --with-arts-prefix=PFX Prefix where ARTS is installed (optional)],
|
||||
arts_prefix="$withval", arts_prefix="")
|
||||
AC_ARG_WITH(arts-exec-prefix,[ --with-arts-exec-prefix=PFX Exec prefix where ARTS is installed (optional)],
|
||||
arts_exec_prefix="$withval", arts_exec_prefix="")
|
||||
AC_ARG_ENABLE(artstest, [ --disable-artstest Do not try to compile and run a test ARTS program],
|
||||
, enable_artstest=yes)
|
||||
|
||||
if test x$arts_exec_prefix != x ; then
|
||||
arts_args="$arts_args --exec-prefix=$arts_exec_prefix"
|
||||
if test x${ARTS_CONFIG+set} != xset ; then
|
||||
ARTS_CONFIG=$arts_exec_prefix/bin/artsc-config
|
||||
fi
|
||||
fi
|
||||
if test x$arts_prefix != x ; then
|
||||
arts_args="$arts_args --prefix=$arts_prefix"
|
||||
if test x${ARTS_CONFIG+set} != xset ; then
|
||||
ARTS_CONFIG=$arts_prefix/bin/artsc-config
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(ARTS_CONFIG, artsc-config, no)
|
||||
min_arts_version=ifelse([$1], ,0.9.5,$1)
|
||||
AC_MSG_CHECKING(for ARTS artsc - version >= $min_arts_version)
|
||||
no_arts=""
|
||||
if test "$ARTS_CONFIG" = "no" ; then
|
||||
no_arts=yes
|
||||
else
|
||||
# FIXME : thomas added this sed to get arts path instead of artsc
|
||||
ARTS_CFLAGS=`$ARTS_CONFIG $artsconf_args --cflags | sed 's/artsc$/arts/'`
|
||||
ARTS_LIBS=`$ARTS_CONFIG $artsconf_args --libs | sed 's/artsc$/arts/'`
|
||||
|
||||
arts_major_version=`$ARTS_CONFIG $arts_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
arts_minor_version=`$ARTS_CONFIG $arts_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
arts_micro_version=`$ARTS_CONFIG $arts_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||
if test "x$enable_artstest" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $ARTS_CFLAGS"
|
||||
LIBS="$LIBS $ARTS_LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed ARTS is sufficiently new. (Also sanity
|
||||
dnl checks the results of artsc-config to some extent)
|
||||
dnl
|
||||
dnl thomas: ask nicely for C++ compilation
|
||||
AC_LANG_PUSH(C++)
|
||||
|
||||
ac_save_CPPFLAGS="$CPPFLAGS"
|
||||
ac_save_LDFLAGS="$LDFLAGS"
|
||||
AC_SUBST(CPPFLAGS,"$CPPFLAGS $ARTS_CFLAGS")
|
||||
AC_SUBST(LDFLAGS,"$LDFLAGS $ARTS_CLIBS")
|
||||
rm -f conf.artstest
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <artsflow.h>
|
||||
|
||||
char*
|
||||
my_strdup (char *str)
|
||||
{
|
||||
char *new_str;
|
||||
|
||||
if (str)
|
||||
{
|
||||
// thomas: the original test did not have the typecast
|
||||
new_str = (char *) malloc ((strlen (str) + 1) * sizeof(char));
|
||||
strcpy (new_str, str);
|
||||
}
|
||||
else
|
||||
new_str = NULL;
|
||||
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
int major, minor, micro;
|
||||
char *tmp_version;
|
||||
|
||||
system ("touch conf.artstest");
|
||||
|
||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||
tmp_version = my_strdup("$min_arts_version");
|
||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
||||
printf("%s, bad version string\n", "$min_arts_version");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (($arts_major_version > major) ||
|
||||
(($arts_major_version == major) && ($arts_minor_version > minor)) ||
|
||||
(($arts_major_version == major) && ($arts_minor_version == minor) && ($arts_micro_version >= micro)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\n*** 'artsc-config --version' returned %d.%d.%d, but the minimum version\n", $arts_major_version, $arts_minor_version, $arts_micro_version);
|
||||
printf("*** of ARTS required is %d.%d.%d. If artsc-config is correct, then it is\n", major, minor, micro);
|
||||
printf("*** best to upgrade to the required version.\n");
|
||||
printf("*** If artsc-config was wrong, set the environment variable ARTS_CONFIG\n");
|
||||
printf("*** to point to the correct copy of artsc-config, and remove the file\n");
|
||||
printf("*** config.cache before re-running configure\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
],, no_arts=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
||||
dnl release C++ question
|
||||
AC_LANG_POP(C++)
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
CPPFLAGS="$ac_save_CPPFLAGS"
|
||||
LDFLAGS="$ac_save_LDFLAGS"
|
||||
AC_SUBST(CPPFLAGS,"$CPPFLAGS")
|
||||
AC_SUBST(LDFLAGS,"$LDFLAGS")
|
||||
fi
|
||||
fi
|
||||
if test "x$no_arts" = x ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
if test "$ARTS_CONFIG" = "no" ; then
|
||||
echo "*** The artsc-config script installed by ARTS could not be found"
|
||||
echo "*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the ARTS_CONFIG environment variable to the"
|
||||
echo "*** full path to artsc-config."
|
||||
else
|
||||
if test -f conf.artstest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run ARTS test program, checking why..."
|
||||
CFLAGS="$CFLAGS $ARTS_CFLAGS"
|
||||
LIBS="$LIBS $ARTS_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <stdio.h>
|
||||
#include <artsflow.h>
|
||||
], [ return 0; ],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding ARTS or finding the wrong"
|
||||
echo "*** version of ARTS. If it is not finding ARTS, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system"
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means ARTS was incorrectly installed"
|
||||
echo "*** or that you have moved ARTS since it was installed. In the latter case, you"
|
||||
echo "*** may want to edit the artsc-config script: $ARTS_CONFIG" ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
ARTS_CFLAGS=""
|
||||
ARTS_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
AC_SUBST(ARTS_CFLAGS)
|
||||
AC_SUBST(ARTS_LIBS)
|
||||
rm -f conf.artstest
|
||||
])
|
||||
|
|
@ -133,6 +133,8 @@ autoheader || {
|
|||
echo "autoheader failed"
|
||||
exit 1
|
||||
}
|
||||
# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo
|
||||
echo timestamp > stamp-h.in 2> /dev/null
|
||||
echo "+ running autoconf ... "
|
||||
autoconf || {
|
||||
echo
|
||||
|
|
|
@ -302,7 +302,7 @@ else
|
|||
|
||||
PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK=yes, HAVE_GTK=no)
|
||||
|
||||
GTK_FLAGS=$GTK2_CFLAGS
|
||||
GTK_CFLAGS=$GTK2_CFLAGS
|
||||
GTK_LIBS=$GTK2_LIBS
|
||||
|
||||
if $HAVE_GTK_DOC; then
|
||||
|
|
169
gstreamer.m4
169
gstreamer.m4
|
@ -1,169 +0,0 @@
|
|||
dnl Configure paths for GStreamer
|
||||
dnl This was based upon the glib.m4 created by Owen Taylor 97-11-3
|
||||
dnl Changes mostly involve replacing GLIB with GStreamer
|
||||
dnl
|
||||
dnl Written by Thomas Nyberg <thomas.nyberg@codefactory.se> 2001-03-01
|
||||
|
||||
dnl AM_PATH_GSTREAMER([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
||||
dnl Test for GStreamer, and define GSTREAMER_CFLAGS and GSTREAMER_LIBS
|
||||
dnl
|
||||
AC_DEFUN(AM_PATH_GSTREAMER,
|
||||
[
|
||||
dnl
|
||||
dnl Get command-line stuff
|
||||
dnl
|
||||
AC_ARG_WITH(gstreamer-prefix,[ --with-gstreamer-prefix=PFX Prefix where GStreamer is installed (optional)],
|
||||
gstreamer_config_prefix="$withval", gstreamer_config_prefix="")
|
||||
AC_ARG_WITH(gstreamer-exec-prefix,[ --with-gstreamer-exec-prefix=PFX Exec prefix where GStreamer is installed (optional)],
|
||||
gstreamer_config_exec_prefix="$withval", gstreamer_config_exec_prefix="")
|
||||
AC_ARG_ENABLE(gstreamer-test, [ --disable-gstreamer-test Do not try and run a test GStreamer-program],
|
||||
, enable_gstreamer_test=yes)
|
||||
|
||||
if test "x$gstreamer_config_prefix" != "x"; then
|
||||
gstreamer_config_args="$gstreamer_config_args --prefix=$gstreamer_config_prefix" ;
|
||||
|
||||
if test "x${GSTREAMER_CONFIG+set}" != "xset" ; then
|
||||
GSTREAMER_CONFIG="$gstreamer_config_prefix/bin/gstreamer-config"
|
||||
fi
|
||||
fi
|
||||
if test "x$gstreamer_config_exec_prefix" != "x"; then
|
||||
gstreamer_config_args="$gstreamer_config_args --exec-prefix=$gstreamer_config_exec_prefix" ;
|
||||
|
||||
if test "x${GSTREAMER_CONFIG+set}" != "xset" ; then
|
||||
GSTREAMER_CONFIG="$gstreamer_config_exec_prefix/bin/gstreamer-config"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(GSTREAMER_CONFIG, gstreamer-config, no)
|
||||
|
||||
if test "x$1" == "x" ; then
|
||||
min_gstreamer_version="0.0.1"
|
||||
else
|
||||
min_gstreamer_version="$1"
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Check to make sure version wanted is better than the existing version
|
||||
dnl
|
||||
AC_MSG_CHECKING(for GStreamer-version >= $min_gstreamer_version)
|
||||
no_gstreamer=""
|
||||
|
||||
if test "x$GSTREAMER_CONFIG" = "xno" ; then
|
||||
no_gstreamer=yes
|
||||
else
|
||||
GSTREAMER_CFLAGS=`$GSTREAMER_CONFIG $gstreamer_config_args --cflags`
|
||||
GSTREAMER_LIBS=`$GSTREAMER_CONFIG $gstreamer_config_args --libs`
|
||||
|
||||
gstreamer_config_major_version=`$GSTREAMER_CONFIG $gstreamer_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
gstreamer_config_minor_version=`$GSTREAMER_CONFIG $gstreamer_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
gstreamer_config_micro_version=`$GSTREAMER_CONFIG $gstreamer_config_args --version | \
|
||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||
|
||||
if test "x$enable_gstreamer_test" = "xyes" ; then
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $GSTREAMER_CFLAGS"
|
||||
LIBS="$GSTREAMER_LIBS $LIBS"
|
||||
dnl
|
||||
dnl Try and run a program linked with libs
|
||||
dnl
|
||||
AC_TRY_RUN([
|
||||
#include <gst/gst.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
int major, minor, micro;
|
||||
char *tmp_version;
|
||||
|
||||
system("touch conf.gstreamertest");
|
||||
|
||||
tmp_version = strdup("$min_gstreamer_version");
|
||||
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
||||
printf("%s, bad version string\n", "$min_gstreamer_version");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (($gstreamer_config_major_version > major) ||
|
||||
(($gstreamer_config_major_version == major) && ($gstreamer_config_minor_version > minor)) ||
|
||||
(($gstreamer_config_major_version == major) && ($gstreamer_config_minor_version == minor) &&
|
||||
($gstreamer_config_micro_version >= micro))) {
|
||||
return 0;
|
||||
} else {
|
||||
printf("\n*** An old version of GStreamer(%d.%d.%d) was found.\n",
|
||||
$gstreamer_config_major_version, $gstreamer_config_minor_version,
|
||||
$gstreamer_config_micro_version);
|
||||
|
||||
printf("*** You need a version of GStreamer newer than %d.%d.%d.\n", major, minor, micro);
|
||||
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
}
|
||||
],, no_gstreamer=yes, [echo $ac_n "cross compiling; assuming OK... $ac_c"])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
if test "x$no_gstreamer" = "x" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
else
|
||||
dnl
|
||||
dnl Something went wrong, looks like GStreamer was not found
|
||||
dnl
|
||||
if test "$GSTREAMER_CONFIG" = "no" ; then
|
||||
echo "*** The gstreamer-config script installed by GStreamer could not be found"
|
||||
echo "*** If GStreamer was installed in PREFIX, make sure PREFIX/bin is in"
|
||||
echo "*** your path, or set the GSTREAMER_CONFIG environment variable to the"
|
||||
echo "*** full path to gstreamer-config."
|
||||
else
|
||||
if test -f conf.gstreamertest ; then
|
||||
:
|
||||
else
|
||||
echo "*** Could not run GStreamer test program, checking why..."
|
||||
CFLAGS="$CFLAGS $GSTREAMER_CFLAGS"
|
||||
LIBS="$LIBS $GSTREAMER_LIBS"
|
||||
AC_TRY_LINK([
|
||||
#include <gst/gst.h>
|
||||
#include <stdio.h>
|
||||
],
|
||||
[
|
||||
gst_init(NULL, NULL);
|
||||
return 0;
|
||||
],
|
||||
[ echo "*** The test program compiled, but did not run. This usually means"
|
||||
echo "*** that the run-time linker is not finding GStreamer or finding the wrong"
|
||||
echo "*** version of GStreamer. If it is not finding GStreamer, you'll need to set your"
|
||||
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
||||
echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
||||
echo "*** is required on your system"
|
||||
echo "***"
|
||||
echo "*** If you have an old version installed, it is best to remove it, although"
|
||||
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
|
||||
[ echo "*** The test program failed to compile or link. See the file config.log for the"
|
||||
echo "*** exact error that occured. This usually means GStreamer was incorrectly installed"
|
||||
echo "*** or that you have moved GStreamer since it was installed. In the latter case, you"
|
||||
echo "*** may want to edit the gstremaer-config script: $GSTREAMER_CONFIG" ])
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
fi
|
||||
fi
|
||||
GSTREAMER_CFLAGS=""
|
||||
GSTREAMER_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Define our flags and libs
|
||||
dnl
|
||||
AC_SUBST(GSTREAMER_CFLAGS)
|
||||
AC_SUBST(GSTREAMER_LIBS)
|
||||
rm -f conf.gstreamertest
|
||||
])
|
||||
|
251
install-sh
251
install-sh
|
@ -1,251 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# install - install a program, script, or datafile
|
||||
# This comes from X11R5 (mit/util/scripts/install.sh).
|
||||
#
|
||||
# Copyright 1991 by the Massachusetts Institute of Technology
|
||||
#
|
||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||
# documentation for any purpose is hereby granted without fee, provided that
|
||||
# the above copyright notice appear in all copies and that both that
|
||||
# copyright notice and this permission notice appear in supporting
|
||||
# documentation, and that the name of M.I.T. not be used in advertising or
|
||||
# publicity pertaining to distribution of the software without specific,
|
||||
# written prior permission. M.I.T. makes no representations about the
|
||||
# suitability of this software for any purpose. It is provided "as is"
|
||||
# without express or implied warranty.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch. It can only install one file at a time, a restriction
|
||||
# shared with many OS's install programs.
|
||||
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
transformbasename=""
|
||||
transform_arg=""
|
||||
instcmd="$mvprog"
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=""
|
||||
chgrpcmd=""
|
||||
stripcmd=""
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=""
|
||||
dst=""
|
||||
dir_arg=""
|
||||
|
||||
while [ x"$1" != x ]; do
|
||||
case $1 in
|
||||
-c) instcmd="$cpprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd="$stripprog"
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
||||
shift
|
||||
continue;;
|
||||
|
||||
*) if [ x"$src" = x ]
|
||||
then
|
||||
src=$1
|
||||
else
|
||||
# this colon is to work around a 386BSD /bin/sh bug
|
||||
:
|
||||
dst=$1
|
||||
fi
|
||||
shift
|
||||
continue;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ x"$src" = x ]
|
||||
then
|
||||
echo "install: no input file specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]; then
|
||||
dst=$src
|
||||
src=""
|
||||
|
||||
if [ -d $dst ]; then
|
||||
instcmd=:
|
||||
chmodcmd=""
|
||||
else
|
||||
instcmd=mkdir
|
||||
fi
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
|
||||
if [ -f $src -o -d $src ]
|
||||
then
|
||||
true
|
||||
else
|
||||
echo "install: $src does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ x"$dst" = x ]
|
||||
then
|
||||
echo "install: no destination specified"
|
||||
exit 1
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# If destination is a directory, append the input filename; if your system
|
||||
# does not like double slashes in filenames, you may need to add some logic
|
||||
|
||||
if [ -d $dst ]
|
||||
then
|
||||
dst="$dst"/`basename $src`
|
||||
else
|
||||
true
|
||||
fi
|
||||
fi
|
||||
|
||||
## this sed command emulates the dirname command
|
||||
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
# this part is taken from Noah Friedman's mkinstalldirs script
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if [ ! -d "$dstdir" ]; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-${defaultIFS}}"
|
||||
|
||||
oIFS="${IFS}"
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
IFS="${oIFS}"
|
||||
|
||||
pathcomp=''
|
||||
|
||||
while [ $# -ne 0 ] ; do
|
||||
pathcomp="${pathcomp}${1}"
|
||||
shift
|
||||
|
||||
if [ ! -d "${pathcomp}" ] ;
|
||||
then
|
||||
$mkdirprog "${pathcomp}"
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
pathcomp="${pathcomp}/"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ x"$dir_arg" != x ]
|
||||
then
|
||||
$doit $instcmd $dst &&
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||
else
|
||||
|
||||
# If we're going to rename the final executable, determine the name now.
|
||||
|
||||
if [ x"$transformarg" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
dstfile=`basename $dst $transformbasename |
|
||||
sed $transformarg`$transformbasename
|
||||
fi
|
||||
|
||||
# don't allow the sed command to completely eliminate the filename
|
||||
|
||||
if [ x"$dstfile" = x ]
|
||||
then
|
||||
dstfile=`basename $dst`
|
||||
else
|
||||
true
|
||||
fi
|
||||
|
||||
# Make a temp file name in the proper directory.
|
||||
|
||||
dsttmp=$dstdir/#inst.$$#
|
||||
|
||||
# Move or copy the file name to the temp name
|
||||
|
||||
$doit $instcmd $src $dsttmp &&
|
||||
|
||||
trap "rm -f ${dsttmp}" 0 &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits
|
||||
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||
|
||||
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
|
||||
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||
|
||||
fi &&
|
||||
|
||||
|
||||
exit 0
|
283
missing
283
missing
|
@ -1,283 +0,0 @@
|
|||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
|
||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
run=:
|
||||
|
||||
# In the cases where this matters, `missing' is being run in the
|
||||
# srcdir already.
|
||||
if test -f configure.ac; then
|
||||
configure_ac=configure.ac
|
||||
else
|
||||
configure_ac=configure.in
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
--run)
|
||||
# Try to run requested program, and just exit if it succeeds.
|
||||
run=
|
||||
shift
|
||||
"$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# If it does not exist, or fails to run (possibly an outdated version),
|
||||
# try to emulate it.
|
||||
case "$1" in
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
--run try to run the given command, and emulate it if it fails
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
help2man touch the output file
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing 0.3 - GNU automake"
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aclocal)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`${configure_ac}'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||
test -z "$files" && files="config.h"
|
||||
touch_files=
|
||||
for f in $files; do
|
||||
case "$f" in
|
||||
*:*) touch_files="$touch_files "`echo "$f" |
|
||||
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||
*) touch_files="$touch_files $f.in";;
|
||||
esac
|
||||
done
|
||||
touch $touch_files
|
||||
;;
|
||||
|
||||
automake)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print |
|
||||
sed 's/\.am$/.in/' |
|
||||
while read f; do touch "$f"; done
|
||||
;;
|
||||
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f y.tab.h ]; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if [ ! -f y.tab.c ]; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex|flex)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f lex.yy.c ]; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
help2man)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a dependency of a manual page. You may need the
|
||||
\`Help2man' package in order for those modifications to take
|
||||
effect. You can get \`Help2man' from any GNU archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||
fi
|
||||
if [ -f "$file" ]; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo ".ab help2man is required to generate this page"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
|
||||
# We have makeinfo, but it failed.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||
fi
|
||||
touch $file
|
||||
;;
|
||||
|
||||
tar)
|
||||
shift
|
||||
if test -n "$run"; then
|
||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# We have already tried tar in the generic part.
|
||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||
# messages.
|
||||
if (gnutar --version > /dev/null 2>&1); then
|
||||
gnutar ${1+"$@"} && exit 0
|
||||
fi
|
||||
if (gtar --version > /dev/null 2>&1); then
|
||||
gtar ${1+"$@"} && exit 0
|
||||
fi
|
||||
firstarg="$1"
|
||||
if shift; then
|
||||
case "$firstarg" in
|
||||
*o*)
|
||||
firstarg=`echo "$firstarg" | sed s/o//`
|
||||
tar "$firstarg" ${1+"$@"} && exit 0
|
||||
;;
|
||||
esac
|
||||
case "$firstarg" in
|
||||
*h*)
|
||||
firstarg=`echo "$firstarg" | sed s/h//`
|
||||
tar "$firstarg" ${1+"$@"} && exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo 1>&2 "\
|
||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||
You may want to install GNU tar or Free paxutils, or check the
|
||||
command line arguments."
|
||||
exit 1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||
system. You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequirements for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
|
@ -1,40 +0,0 @@
|
|||
#! /bin/sh
|
||||
# mkinstalldirs --- make directory hierarchy
|
||||
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||
# Created: 1993-05-16
|
||||
# Public domain
|
||||
|
||||
# $Id$
|
||||
|
||||
errstatus=0
|
||||
|
||||
for file
|
||||
do
|
||||
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
shift
|
||||
|
||||
pathcomp=
|
||||
for d
|
||||
do
|
||||
pathcomp="$pathcomp$d"
|
||||
case "$pathcomp" in
|
||||
-* ) pathcomp=./$pathcomp ;;
|
||||
esac
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
echo "mkdir $pathcomp"
|
||||
|
||||
mkdir "$pathcomp" || lasterr=$?
|
||||
|
||||
if test ! -d "$pathcomp"; then
|
||||
errstatus=$lasterr
|
||||
fi
|
||||
fi
|
||||
|
||||
pathcomp="$pathcomp/"
|
||||
done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
# mkinstalldirs ends here
|
|
@ -35,8 +35,7 @@ int main (int argc, char *argv[])
|
|||
// make a new pipeline
|
||||
gst_bin_add (GST_BIN(pipe2), fakesink2);
|
||||
|
||||
// change the new pipeline's state to READY (is this necessary?)
|
||||
gst_element_set_state(pipe2, GST_STATE_READY);
|
||||
// don't change the new pipeline's state, it should change on the bin_add
|
||||
gst_bin_add (GST_BIN(pipe2), fakesrc);
|
||||
gst_element_connect(fakesrc, "src", fakesink2, "sink");
|
||||
|
||||
|
|
|
@ -12,11 +12,11 @@ GST_LOADSAVE_SRC = gstreamer-compprep
|
|||
endif
|
||||
|
||||
if USE_GLIB2
|
||||
if HAVE_LIBGLADE_GNOME
|
||||
if HAVE_GTK
|
||||
GST_GUI_LAUNCH = gstreamer-guilaunch
|
||||
else !HAVE_LIBGLADE_GNOME
|
||||
else !HAVE_GTK
|
||||
GST_GUI_LAUNCH =
|
||||
endif !HAVE_LIBGLADE_GNOME
|
||||
endif !HAVE_GTK
|
||||
else !USE_GLIB2
|
||||
GST_GUI_LAUNCH = gstreamer-guilaunch
|
||||
endif !USE_GLIB2
|
||||
|
@ -35,9 +35,8 @@ gstreamer_launch_LDADD = $(GST_LIBS) #-lefence
|
|||
gstreamer_launch_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
|
||||
if USE_GLIB2
|
||||
gstreamer_guilaunch_LDADD = $(LIBGLADE_GNOME_LIBS) $(GST_LIBS)
|
||||
gstreamer_guilaunch_CFLAGS = $(LIBGLADE_GNOME_CFLAGS) $(GST_CFLAGS)
|
||||
# you shouldn't build gstreamer-guilaunch without libglade-gnome, though...
|
||||
gstreamer_guilaunch_LDADD = $(GTK_LIBS) $(GST_LIBS)
|
||||
gstreamer_guilaunch_CFLAGS = $(GTK_CFLAGS) $(GST_CFLAGS)
|
||||
else
|
||||
gstreamer_guilaunch_LDADD = $(GST_LIBS)
|
||||
gstreamer_guilaunch_CFLAGS = $(GST_CFLAGS) -DGST_CONFIG_DIR=\"$(GST_CONFIG_DIR)\"
|
||||
|
|
Loading…
Reference in a new issue