1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Don't define special flags for non-gcc builds, they can vary, allow them to be defined

by the builder. Also drop the SUS define as too many non-gnu headers break. Any system
required defines/flags can be added via CFLAGS/CPPFLAGS


svn path=/icecast/trunk/icecast/; revision=13927
This commit is contained in:
Karl Heyes 2007-10-03 19:50:10 +00:00
parent 43988cac59
commit 7df993f367

View File

@ -1,4 +1,4 @@
AC_INIT([Icecast], [2.3.1], [icecast@xiph.org]) AC_INIT([Icecast], [trunk], [icecast@xiph.org])
AC_PREREQ(2.54) AC_PREREQ(2.54)
AC_CONFIG_SRCDIR(src/main.c) AC_CONFIG_SRCDIR(src/main.c)
@ -18,29 +18,7 @@ dnl Set some options based on environment
DEBUG="-g" DEBUG="-g"
if test -z "$GCC"; then if test -z "$GCC"; then
XIPH_CPPFLAGS="-D_REENTRANT" XIPH_CPPFLAGS="-D_REENTRANT"
case $host in
*-*-irix*)
XIPH_CPPFLAGS="$XIPH_CPPFLAGS -w -signed"
PROFILE="-p -g3 -O2 -signed -D_REENTRANT"
;;
*-*-solaris*)
XIPH_CFLAGS="-xO4 -xcg92"
XIPH_CPPFLAGS="$XIPH_CPPFLAGS -v -w -fsimple -fast"
PROFILE="-xpg -g -Dsuncc"
;;
*)
XIPH_CFLAGS="-O"
PROFILE="-g -p" PROFILE="-g -p"
;;
esac
case "$host" in
*openbsd* | *irix*)
;;
*) AC_DEFINE([_XOPEN_SOURCE], 600, [Define if you have POSIX and XPG specifications])
;;
esac
else else
XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char" XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char"
PROFILE="-pg -g" PROFILE="-pg -g"