From d19607474134945ed77f85931fa999013feb8697 Mon Sep 17 00:00:00 2001 From: moritz Date: Sat, 24 Feb 2007 21:44:35 +0000 Subject: [PATCH] Autoconf 2.61 has a nice macro AC_USE_SYSTEM_EXTENSIONS. Use it, depend on autoconf-2.61 for it and remove the annoying _GNU_SOURCE and _XOPEN_SOURCE ... dung. Autoconf takes care of this, and even checks for more useful stuff for us. git-svn-id: https://svn.xiph.org/trunk/ezstream@12537 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- configure.in | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/configure.in b/configure.in index e360377..6c8704e 100644 --- a/configure.in +++ b/configure.in @@ -1,11 +1,12 @@ dnl INITIALIZATION AC_INIT([ezstream], [0.3.0], [grmo@users.sourceforge.net]) -AC_PREREQ(2.54) +AC_PREREQ(2.61) AC_CONFIG_SRCDIR(src/ezstream.c) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE +AC_USE_SYSTEM_EXTENSIONS dnl SETUP @@ -30,18 +31,9 @@ if test -z "$GCC"; then PROFILE="-g -p" ;; esac - - case "$host" in - *openbsd* | *irix*) - ;; - *) AC_DEFINE([_XOPEN_SOURCE], 600, [Define if you have POSIX and XPG specifications]) - ;; - esac - else XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char" PROFILE="-pg -g" - AC_DEFINE([_GNU_SOURCE], 1, [Define to include GNU extensions to POSIX]) fi