Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
spr0cketeer
Icecast-Server
Commits
52b917d2
Commit
52b917d2
authored
Jul 21, 2003
by
Karl Heyes
Browse files
Make icecast use the shared M4 macros. Cleanup the other files.
svn path=/trunk/icecast/; revision=5157
parent
43953202
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
52b917d2
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS
=
foreign dist-zip
AUTOMAKE_OPTIONS
=
1.6
foreign dist-zip
SUBDIRS
=
src conf doc web admin win32
EXTRA_DIST
=
HACKING
EXTRA_DIST
=
HACKING m4/acx_pthread.m4 m4/ogg.m4 m4/vorbis.m4
\
m4/xiph_compiler.m4 m4/xiph_curl.m4 m4/xiph_net.m4
\
m4/xiph_types.m4 m4/xiph_xml2.m4
docdir
=
$(datadir)
/doc/
$(PACKAGE)
doc_DATA
=
README AUTHORS COPYING NEWS TODO
debug
:
$(MAKE)
all
CFLAGS
=
"@DEBUG@
@XML_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@
"
$(MAKE)
all
CFLAGS
=
"@DEBUG@"
profile
:
$(MAKE)
all
CFLAGS
=
"@PROFILE@
@XML_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@
"
$(MAKE)
all
CFLAGS
=
"@PROFILE@"
acconfig.h
deleted
100644 → 0
View file @
43953202
/* Define if you lack the socklen_t type */
#undef socklen_t
acinclude.m4
deleted
100644 → 0
View file @
43953202
# Configure paths for libogg
# Jack Moffitt <jack@icecast.org> 10-21-2000
# Shamelessly stolen from Owen Taylor and Manish Singh
dnl AM_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
dnl
AC_DEFUN(AM_PATH_OGG,
[dnl
dnl Get the cflags and libraries
dnl
AC_ARG_WITH(ogg-prefix,[ --with-ogg-prefix=PFX Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
if test "x$ogg_prefix" != "xNONE" ; then
ogg_args="$ogg_args --prefix=$ogg_prefix"
OGG_CFLAGS="-I$ogg_prefix/include"
OGG_LIBS="-L$ogg_prefix/lib"
elif test "$prefix" != ""; then
ogg_args="$ogg_args --prefix=$prefix"
OGG_CFLAGS="-I$prefix/include"
OGG_LIBS="-L$prefix/lib"
fi
OGG_LIBS="$OGG_LIBS -logg"
AC_MSG_CHECKING(for Ogg)
no_ogg=""
if test "x$enable_oggtest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $OGG_CFLAGS"
LIBS="$LIBS $OGG_LIBS"
dnl
dnl Now check if the installed Ogg is sufficiently new.
dnl
rm -f conf.oggtest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ogg/ogg.h>
int main ()
{
system("touch conf.oggtest");
return 0;
}
],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
if test "x$no_ogg" = "x" ; then
AC_MSG_RESULT(yes)
ifelse([$1], , :, [$1])
else
AC_MSG_RESULT(no)
if test -f conf.oggtest ; then
:
else
echo "*** Could not run Ogg test program, checking why..."
CFLAGS="$CFLAGS $OGG_CFLAGS"
LIBS="$LIBS $OGG_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include <ogg/ogg.h>
], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding Ogg or finding the wrong"
echo "*** version of Ogg. If it is not finding Ogg, 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 Ogg was incorrectly installed"
echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
echo "*** may want to edit the ogg-config script: $OGG_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
OGG_CFLAGS=""
OGG_LIBS=""
ifelse([$2], , :, [$2])
fi
AC_SUBST(OGG_CFLAGS)
AC_SUBST(OGG_LIBS)
rm -f conf.oggtest
])
# Configure paths for libvorbis
# Jack Moffitt <jack@icecast.org> 10-21-2000
# Shamelessly stolen from Owen Taylor and Manish Singh
dnl AM_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS
dnl
AC_DEFUN(AM_PATH_VORBIS,
[dnl
dnl Get the cflags and libraries
dnl
AC_ARG_WITH(vorbis-prefix,[ --with-vorbis-prefix=PFX Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="")
AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes)
if test "x$vorbis_prefix" != "xNONE" ; then
vorbis_args="$vorbis_args --prefix=$vorbis_prefix"
VORBIS_CFLAGS="-I$vorbis_prefix/include"
VORBIS_LIBDIR="-L$vorbis_prefix/lib"
elif test "$prefix" != ""; then
vorbis_args="$vorbis_args --prefix=$prefix"
VORBIS_CFLAGS="-I$prefix/include"
VORBIS_LIBDIR="-L$prefix/lib"
fi
VORBIS_LIBS="$VORBIS_LIBDIR -lvorbis -lm"
VORBISFILE_LIBS="-lvorbisfile"
VORBISENC_LIBS="-lvorbisenc"
AC_MSG_CHECKING(for Vorbis)
no_vorbis=""
if test "x$enable_vorbistest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $VORBIS_CFLAGS"
LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
dnl
dnl Now check if the installed Vorbis is sufficiently new.
dnl
rm -f conf.vorbistest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vorbis/codec.h>
int main ()
{
system("touch conf.vorbistest");
return 0;
}
],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
if test "x$no_vorbis" = "x" ; then
AC_MSG_RESULT(yes)
ifelse([$1], , :, [$1])
else
AC_MSG_RESULT(no)
if test -f conf.vorbistest ; then
:
else
echo "*** Could not run Vorbis test program, checking why..."
CFLAGS="$CFLAGS $VORBIS_CFLAGS"
LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include <vorbis/codec.h>
], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
echo "*** version of Vorbis. If it is not finding Vorbis, 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 Vorbis was incorrectly installed"
echo "*** or that you have moved Vorbis since it was installed." ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
VORBIS_CFLAGS=""
VORBIS_LIBS=""
VORBISFILE_LIBS=""
VORBISENC_LIBS=""
ifelse([$2], , :, [$2])
fi
AC_SUBST(VORBIS_CFLAGS)
AC_SUBST(VORBIS_LIBS)
AC_SUBST(VORBISFILE_LIBS)
AC_SUBST(VORBISENC_LIBS)
rm -f conf.vorbistest
])
dnl AM_PATH_CURL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Test for libcurl, and define CURL_CFLAGS and CURL_LIBS
dnl
AC_DEFUN(AM_PATH_CURL,
[dnl
dnl Get the cflags and libraries
dnl
AC_ARG_WITH(curl,[ --with-curl=PFX Prefix where libcurl is installed (optional)], curl_prefix="$withval", curl_prefix="")
AC_ARG_WITH(curl-libraries,[ --with-curl-libraries=DIR Directory where libcurl library is installed (optional)], curl_libraries="$withval", curl_libraries="")
AC_ARG_WITH(curl-includes,[ --with-curl-includes=DIR Directory where libcurl header files are installed (optional)], curl_includes="$withval", curl_includes="")
AC_ARG_ENABLE(curltest, [ --disable-curltest Do not try to compile and run a test libcurl program],, enable_curltest=yes)
if test "x$curl_prefix" != "xno" ; then
if test "x$curl_libraries" != "x" ; then
CURL_LIBS="-L$curl_libraries"
elif test "x$curl_prefix" != "x" ; then
CURL_LIBS="-L$curl_prefix/lib"
elif test "x$prefix" != "xNONE" ; then
CURL_LIBS="-L$prefix/lib"
fi
CURL_LIBS="$CURL_LIBS -lcurl"
if test "x$curl_includes" != "x" ; then
CURL_CFLAGS="-I$curl_includes"
elif test "x$curl_prefix" != "x" ; then
CURL_CFLAGS="-I$curl_prefix/include"
elif test "x$prefix" != "xNONE"; then
CURL_CFLAGS="-I$prefix/include"
fi
AC_MSG_CHECKING(for libcurl)
no_curl=""
if test "x$enable_curltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $CURL_CFLAGS"
LIBS="$LIBS $CURL_LIBS"
dnl
dnl Now check if the installed libcurl is sufficiently new.
dnl
rm -f conf.curltest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
int main ()
{
system("touch conf.curltest");
return 0;
}
],, no_curl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
if test "x$no_curl" = "x" ; then
AC_MSG_RESULT(yes)
ifelse([$1], , :, [$1])
else
AC_MSG_RESULT(no)
if test -f conf.curltest ; then
:
else
echo "*** Could not run libcurl test program, checking why..."
CFLAGS="$CFLAGS $CURL_CFLAGS"
LIBS="$LIBS $CURL_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include <curl/curl.h>
], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding libcurl or finding the wrong"
echo "*** version of libcurl. If it is not finding libcurl, 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 libcurl was incorrectly installed"
echo "*** or that you have moved libcurl since it was installed." ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
CURL_CFLAGS=""
CURL_LIBS=""
ifelse([$2], , :, [$2])
fi
AC_DEFINE(HAVE_CURL, 1, [Define if you have libcurl.])
else
CURL_CFLAGS=""
CURL_LIBS=""
fi
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)
rm -f conf.curltest
])
dnl ACX_PTHREAD macro by Steven G. Johnson <stevenj@alum.mit.edu> and
dnl Alejandro Forero Cuervo <bachue@bachue.com>. Found at:
dnl http://www.gnu.org/software/ac-archive/Installed_Packages/acx_pthread.html
AC_DEFUN([ACX_PTHREAD], [
AC_REQUIRE([AC_CANONICAL_HOST])
acx_pthread_ok=no
# First, check if the POSIX threads header, pthread.h, is available.
# If it isn't, don't bother looking for the threads libraries.
AC_CHECK_HEADER(pthread.h, , acx_pthread_ok=noheader)
# We must check for the threads library under a number of different
# names; the ordering is very important because some systems
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
# libraries is broken (non-POSIX).
# First of all, check if the user has set any of the PTHREAD_LIBS,
# etcetera environment variables, and if threads linking works using
# them:
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
AC_MSG_RESULT($acx_pthread_ok)
if test x"$acx_pthread_ok" = xno; then
PTHREAD_LIBS=""
PTHREAD_CFLAGS=""
fi
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
fi
# Create a list of thread flags to try. Items starting with a "-" are
# C compiler flags, and other items are library names, except for "none"
# which indicates that we try without any flags at all.
acx_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads --thread-safe -mt"
# The ordering *is* (sometimes) important. Some notes on the
# individual items follow:
# pthreads: AIX (must check this before -lpthread)
# none: in case threads are in libc; should be tried before -Kthread and
# other compiler flags to prevent continual compiler warnings
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
# -pthreads: Solaris/gcc
# -mthreads: Mingw32/gcc, Lynx/gcc
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
# doesn't hurt to check since this sometimes defines pthreads too;
# also defines -D_REENTRANT)
# pthread: Linux, etcetera
# --thread-safe: KAI C++
case "${host_cpu}-${host_os}" in
*solaris*)
# On Solaris (at least, for some versions), libc contains stubbed
# (non-functional) versions of the pthreads routines, so link-based
# tests will erroneously succeed. (We need to link with -pthread or
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
# a function called by this macro, so we could check for that, but
# who knows whether they'll stub that too in a future libc.) So,
# we'll just look for -pthreads and -lpthread first:
acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
;;
esac
if test x"$acx_pthread_ok" = xno; then
for flag in $acx_pthread_flags; do
case $flag in
none)
AC_MSG_CHECKING([whether pthreads work without any flags])
;;
-*)
AC_MSG_CHECKING([whether pthreads work with $flag])
PTHREAD_CFLAGS="$flag"
;;
*)
AC_MSG_CHECKING([for the pthreads library -l$flag])
PTHREAD_LIBS="-l$flag"
;;
esac
save_LIBS="$LIBS"
save_CFLAGS="$CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
# Check for various functions. We must include pthread.h,
# since some functions may be macros. (On the Sequent, we
# need a special flag -Kthread to make this header compile.)
# We check for pthread_join because it is in -lpthread on IRIX
# while pthread_create is in libc. We check for pthread_attr_init
# due to DEC craziness with -lpthreads. We check for
# pthread_cleanup_push because it is one of the few pthread
# functions on Solaris that doesn't have a non-functional libc stub.
# We try pthread_create on general principles.
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);
pthread_attr_init(0); pthread_cleanup_push(0, 0);
pthread_create(0,0,0,0);
pthread_cancel(0); pthread_cleanup_pop(0); ],
[acx_pthread_ok=yes])
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
AC_MSG_RESULT($acx_pthread_ok)
if test "x$acx_pthread_ok" = xyes; then
break;
fi
PTHREAD_LIBS=""
PTHREAD_CFLAGS=""
done
fi
# Various other checks:
if test "x$acx_pthread_ok" = xyes; then
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
# Detect AIX lossage: threads are created detached by default
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
AC_MSG_CHECKING([for joinable pthread attribute])
AC_TRY_LINK([#include <pthread.h>],
[int attr=PTHREAD_CREATE_JOINABLE;],
ok=PTHREAD_CREATE_JOINABLE, ok=unknown)
if test x"$ok" = xunknown; then
AC_TRY_LINK([#include <pthread.h>],
[int attr=PTHREAD_CREATE_UNDETACHED;],
ok=PTHREAD_CREATE_UNDETACHED, ok=unknown)
fi
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
AC_DEFINE(PTHREAD_CREATE_JOINABLE, $ok,
[Define to the necessary symbol if this constant
uses a non-standard name on your system.])
fi
AC_MSG_RESULT(${ok})
if test x"$ok" = xunknown; then
AC_MSG_WARN([we do not know how to create joinable pthreads])
fi
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
*solaris* | alpha*-osf*) flag="-D_REENTRANT";;
esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
fi
AC_CHECK_TYPES(pthread_rwlock_t,,,[#include <pthread.h>])
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
# More AIX lossage: must compile with cc_r
AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC})
else
PTHREAD_CC="$CC"
fi
AC_SUBST(PTHREAD_LIBS)
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_CC)
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
if test x"$acx_pthread_ok" = xyes; then
ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
:
else
acx_pthread_ok=no
$2
fi
])
autogen.sh
View file @
52b917d2
...
...
@@ -18,20 +18,59 @@ DIE=0
echo
"or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE
=
1
}
(
automake
--version
)
< /dev/null
>
/dev/null 2>&1
||
{
VERSIONGREP
=
"sed -e s/.*[^0-9
\.
]
\(
[0-9]
\.
[0-9]
\)
.*/
\1
/"
# do we need automake?
if
test
-r
Makefile.am
;
then
options
=
`
fgrep AUTOMAKE_OPTIONS Makefile.am
`
AM_NEEDED
=
`
echo
"
$options
"
|
$VERSIONGREP
`
if
test
-z
"
$AM_NEEDED
"
||
test
"x
$AM_NEEDED
"
=
"x
$options
"
;
then
echo
-n
"checking for automake..."
AUTOMAKE
=
automake
ACLOCAL
=
aclocal
if
(
$AUTOMAKE
--version
< /dev/null
>
/dev/null 2>&1
)
;
then
echo
"yes"
else
echo
"no"
AUTOMAKE
=
""
fi
else
echo
-n
"checking for automake
$AM_NEEDED
or later..."
for
am
in
automake-
$AM_NEEDED
automake
$AM_NEEDED
automake
;
do
(
$am
--version
< /dev/null
>
/dev/null 2>&1
)
||
continue
ver
=
`
$am
--version
< /dev/null |
head
-1
|
$VERSIONGREP
`
if
test
$ver
=
$AM_NEEDED
;
then
AUTOMAKE
=
$am
echo
$AUTOMAKE
break
fi
done
test
-z
$AUTOMAKE
&&
echo
"no"
echo
-n
"checking for aclocal
$AM_NEEDED
or later..."
for
ac
in
aclocal-
$AM_NEEDED
aclocal
$AM_NEEDED
aclocal
;
do
(
$ac
--version
< /dev/null
>
/dev/null 2>&1
)
||
continue
ver
=
`
$ac
--version
< /dev/null |
head
-1
|
$VERSIONGREP
`
if
test
$ver
=
$AM_NEEDED
;
then
ACLOCAL
=
$ac
echo
$ACLOCAL
break
fi
done
test
-z
$ACLOCAL
&&
echo
"no"
fi
test
-z
$AUTOMAKE
||
test
-z
$ACLOCAL
&&
{
echo
echo
"You must have automake installed to compile
$package
."
echo
"Download the appropriate package for your system,
echo "
or get the
source
from one of the GNU ftp sites
"
echo "
listed
in
http://www.gnu.org/order/ftp.html
"
echo
"Download the appropriate package for your distribution,"
echo
"or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE
=
1
}
}
fi
(libtool --version) < /dev/null > /dev/null 2>&1 || {
(
libtool
ize
--version
)
< /dev/null
>
/dev/null 2>&1
||
{
echo
echo
"You must have libtool installed to compile
$package
."
echo "
Download the appropriate package
for
your system,
echo
"Download the appropriate package for your system,
"
echo
"or get the source from one of the GNU ftp sites"
echo
"listed in http://www.gnu.org/order/ftp.html"
DIE
=
1
...
...
@@ -41,23 +80,31 @@ if test "$DIE" -eq 1; then
exit
1
fi
if
test
-z
"
$*
"
;
then
echo
"I am going to run ./configure with no arguments - if you wish "
echo
"to pass any to it, please specify them on the
$0
command line."
echo
"Generating configuration files for
$package
, please wait...."
ACLOCAL_FLAGS
=
"
$ACLOCAL_FLAGS
-I m4"
if
!
test
-z
$ACLOCAL
;
then
echo
"
$ACLOCAL
$ACLOCAL_FLAGS
"
$ACLOCAL
$ACLOCAL_FLAGS
fi
echo
"Generating configuration files for
$package
, please wait...."
echo
" autoheader"
autoheader
echo
" aclocal
$ACLOCAL_FLAGS
"
aclocal
$ACLOCAL_FLAGS
#echo " autoheader"
#autoheader
echo
" libtoolize --automake"
libtoolize
--automake
echo
" automake --add-missing"
automake
--add-missing
if
!
test
-z
$AUTOMAKE
;
then
echo
"
$AUTOMAKE
--add-missing"
$AUTOMAKE
--add-missing
fi
echo
" autoconf"
autoconf
if
test
-z
"
$*
"
;
then
echo
"I am going to run ./configure with no arguments - if you wish "
echo
"to pass any to it, please specify them on the
$0
command line."
fi
cd
$olddir
$srcdir
/configure
"
$@
"
&&
echo
configure.in
View file @
52b917d2
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/main.c)
AC_PREREQ(2.50)
dnl Process this file with autoconf to produce a configure script.
AM_INIT_AUTOMAKE(icecast,2.0-alpha-2)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_CANONICAL_HOST
...
...
@@ -10,182 +11,103 @@ AM_PROG_LIBTOOL
dnl Set some options based on environment
SOCKET_LIBS=
case "$ac_cv_host" in
case "$host" in
*openbsd*)
;;
*) AC_DEFINE(_XOPEN_SOURCE,
5
00, [Define if you have POSIX and XPG specifications])
*) AC_DEFINE(_XOPEN_SOURCE,
6
00, [Define if you have POSIX and XPG specifications])
;;
esac
if test -z "$GCC"; then
case $host in
case $host in
*-*-irix*)
DEBUG="-g -signed -D_REENTRANT"