alsa.audio: limit the supported frequencies to common set
[AROS.git] / workbench / libs / lcms2 / autogen.sh
blob5c62310e60e166b0a8a6af94475848841f0ff11f
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 DIE=0
9 (test -f $srcdir/configure.ac) || {
10 echo -n "**Error**: Directory $srcdir does not look like the"
11 echo " top-level package directory"
12 exit 1
15 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
16 echo
17 echo "**Error**: You must have autoconf installed."
18 echo "Download the appropriate package for your distribution,"
19 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
20 DIE=1
23 (grep "^LT_INIT" $srcdir/configure.ac >/dev/null) && {
24 (libtool --version) < /dev/null > /dev/null 2>&1 || {
25 echo
26 echo "**Error**: You must have libtool installed."
27 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
28 DIE=1
32 (automake --version) < /dev/null > /dev/null 2>&1 || {
33 echo
34 echo "**Error**: You must have automake installed."
35 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
36 DIE=1
37 NO_AUTOMAKE=yes
40 # if no automake, don't bother testing for aclocal
41 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
42 echo
43 echo "**Error**: Missing aclocal. The version of automake"
44 echo "installed doesn't appear recent enough."
45 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
46 DIE=1
49 if test "$DIE" -eq 1; then
50 exit 1
53 if test -z "$*"; then
54 echo "**Warning**: I am going to run configure with no arguments."
55 echo "If you wish to pass any to it, please specify them on the"
56 echo $0 " command line."
57 echo
60 case $CC in
61 xlc )
62 am_opt=--include-deps;;
63 esac
65 aclocalinclude="$ACLOCAL_FLAGS"
67 if grep "^LT_INIT" configure.ac >/dev/null; then
68 if test -z "$NO_LIBTOOLIZE" ; then
69 echo "Running libtoolize..."
70 libtoolize --force --copy
73 echo "Running aclocal $aclocalinclude ..."
74 aclocal $aclocalinclude
75 if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
76 echo "Running autoheader..."
77 autoheader
79 echo "Running automake --add-missing --gnu -Wno-portability $am_opt ..."
80 automake --add-missing --gnu -Wno-portability $am_opt
81 echo "Running autoconf ..."
82 autoconf
84 conf_flags="--enable-maintainer-mode"
86 if test x$NOCONFIGURE = x; then
87 echo "Running $srcdir/configure $conf_flags $@ ..."
88 $srcdir/configure $conf_flags "$@" \
89 && echo "Now type make to compile." || exit 1
90 else
91 echo "Skipping configure process."