Commit 04090d96 authored by Karl Heyes's avatar Karl Heyes
Browse files

minor build cleanups

svn path=/icecast/trunk/ices/; revision=15892
parent 005c2f71
......@@ -18,7 +18,7 @@ DIE=0
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]\).*/\1/"
VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]*\).*/\1/"
# do we need automake?
if test -r Makefile.am; then
......@@ -79,7 +79,7 @@ fi
DIE=1
}
if test "$DIE" -eq 1; then
if test $DIE -eq 1; then
exit 1
fi
......
......@@ -14,12 +14,6 @@ dnl Set some options based on environment
dnl BSD headers break when _XOPEN_SOURCE is defined but without it seems
dnl to be fine
case "$host" in
*bsd*|*irix*)
;;
*) AC_DEFINE(_XOPEN_SOURCE, 600, [Define if you have POSIX and XPG specifications])
;;
esac
if test -n "$GCC"; then
AC_DEFINE(_GNU_SOURCE, ,[Define if you have POSIX and GNU specifications])
XIPH_VAR_APPEND([XIPH_CPPFLAGS], [-ffast-math -fsigned-char])
......@@ -52,7 +46,7 @@ dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stropts.h sys/timeb.h])
AC_CHECK_HEADERS([stropts.h sys/timeb.h sys/select.h])
dnl Check for OSS
......
......@@ -19,7 +19,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef HAVE_STDINT_H
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#elif defined(HAVE_STDINT_H)
# include <stdint.h>
#endif
#include <ogg/ogg.h>
......
......@@ -20,6 +20,9 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include "cfgparse.h"
#include "inputmodule.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment