File freealut-noansiflag.patch of Package freealut
--- configure.ac.orig
+++ configure.ac
@@ -2,15 +2,16 @@
# Process this file with autoconf to produce a configure script.
################################################################################
-AC_INIT([freealut library], [1.1.0], [openal-devel@opensource.creative.com], [freealut])
+AC_INIT([freealut library],[1.1.0],[openal-devel@opensource.creative.com],[freealut])
AC_CONFIG_AUX_DIR([admin/autotools])
+AC_CONFIG_MACRO_DIR([admin/autotools/m4])
AM_INIT_AUTOMAKE
-AC_PREREQ([2.56])
+AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([AUTHORS])
AC_CONFIG_HEADERS([config.h])
# Compatibility hack for older autoconf versions
-m4_ifdef([AS_HELP_STRING], [], [AC_DEFUN([AS_HELP_STRING], [AC_HELP_STRING($][@)])])
+m4_ifdef([AS_HELP_STRING], [], [AC_DEFUN([AS_HELP_STRING], [AS_HELP_STRING([$@])])])
################################################################################
## libtool shared library version.
@@ -55,16 +56,17 @@ AC_SUBST([VERSIONINFO], ["$CURRENT:$REVI
# Checks for programs.
################################################################################
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_C_CONST
ALUT_C__ATTRIBUTE__
+AM_PROG_CC_C_O
# Note that -fvisibility=... support implies __attribute__((visibility(...)))
# support.
-ALUT_CHECK_FLAG([-fvisibility=hidden],
- [AM_CFLAGS="$AM_CFLAGS -fvisibility=hidden"
- AC_DEFINE([HAVE_GCC_VISIBILITY], [1],
- [Define to 1 if we are using a GCC with symbol visibility support.])])
+AM_CFLAGS="$AM_CFLAGS -fvisibility=hidden"
+AC_DEFINE([HAVE_GCC_VISIBILITY], [1], [HAVE visibility support])
# test_suite/test_retrostuff tests deprecated functions, but we don't want to
# get compiler warnings because of that.
@@ -75,8 +77,7 @@ AM_CONDITIONAL([WNO_DEPRECATED_DECLARATI
[test x"$alut_wno_deprecated_declarations" = xyes])
AC_EXEEXT
-AC_LIBTOOL_WIN32_DLL
-AC_PROG_LIBTOOL
+LT_INIT([win32-dll disable-static pic-only])
AC_SUBST([LIBTOOL_DEPS])
AC_DEFINE([ALUT_BUILD_LIBRARY], [1], [Define to 1 if you want to build the ALUT DLL.])
@@ -89,18 +90,6 @@ AC_SEARCH_LIBS([alGetError], [openal32 o
# Checks for header files.
################################################################################
-# We could possibly need struct timespec and random(), which are not ANSI.
-AC_DEFINE([_XOPEN_SOURCE], [500], [Define to 500 if Single Unix conformance is wanted, 600 for sixth revision.])
-
-# We might need nanosleep, which is a POSIX IEEE Std 1003.1b-1993 feature.
-AC_DEFINE([_POSIX_C_SOURCE], [199309], [Define to the POSIX version that should be used.])
-
-# Without __NO_CTYPE tolower and friends are macros which introduce a GLIBC 2.3
-# dependency. By defining this identifier we are currently backwards compatible
-# to GLIBC 2.1.3, which is a good thing. In addition, the macros lead to code
-# which triggers warnings with -Wunreachable-code.
-AC_DEFINE([__NO_CTYPE], [1], [Define to 1 if tolower and friends should not be macros.])
-
AC_HEADER_STDC
AC_CHECK_HEADERS([AL/alc.h AL/al.h basetsd.h ctype.h math.h stdio.h time.h windows.h])
@@ -136,7 +125,7 @@ AC_ARG_ENABLE([warnings],
if test "x$enable_warnings" != xno; then
# Doing it in two steps gives a nicer message...
- AX_CFLAGS_WARN_ALL_ANSI([flags])
+ #AX_CFLAGS_WARN_ALL_ANSI([flags])
AM_CFLAGS="$AM_CFLAGS $flags"
fi