File libsamplerate-0.1.8-canonical_host.patch of Package mingw64-libsamplerate
diff -ur configure.ac configure.ac
--- configure.ac 2009-02-14 12:23:09.000000000 +0100
+++ configure.ac 2010-04-29 14:11:53.000000000 +0200
@@ -10,7 +10,7 @@
AC_CONFIG_AUX_DIR(Cfg)
AC_CONFIG_SRCDIR([src/samplerate.c])
-AC_CANONICAL_TARGET([])
+AC_CANONICAL_HOST([])
AC_CONFIG_MACRO_DIR([M4])
AC_CONFIG_HEADERS([src/config.h])
@@ -63,7 +63,7 @@
AC_PROG_LN_S
AC_PROG_MKDIR_P
-if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
+if test "x-$host_os" = x-mingw32 ; then
AC_CHECK_PROG(DLLTOOL, dlltool, dlltool)
AC_CHECK_PROG(DLLWRAP, dllwrap, dllwrap)
AC_CHECK_PROG(PEXPORTS, pexports, pexports)
@@ -110,14 +110,14 @@
AC_CHECK_SIZEOF(double,8)
#====================================================================================
-# Determine endian-ness of target processor.
+# Determine endian-ness of host processor.
AC_C_FIND_ENDIAN
AC_DEFINE_UNQUOTED(CPU_IS_BIG_ENDIAN, ${ac_cv_c_big_endian},
- [Target processor is big endian.])
+ [Host processor is big endian.])
AC_DEFINE_UNQUOTED(CPU_IS_LITTLE_ENDIAN, ${ac_cv_c_little_endian},
- [Target processor is little endian.])
+ [Host processor is little endian.])
#====================================================================================
# Check for functions.
@@ -216,7 +216,7 @@
# Disable -Wall for Apple Darwin/Rhapsody.
# System headers on these systems are broken.
- case "$target_os" in
+ case "$host_os" in
darwin* | rhapsody*)
temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
CFLAGS=$temp_CFLAGS
@@ -242,12 +242,12 @@
fi
#====================================================================================
-# Find known target OS.
+# Find known host OS.
OS_SPECIFIC_INCLUDES=""
os_is_win32=0
-case "$target_os" in
+case "$host_os" in
darwin* | rhapsody*)
OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
OS_SPECIFIC_LINKS="-framework CoreAudio"
--- M4/endian.m4 2011-09-27 14:37:06.941500674 +0200
+++ M4/endian.m4 2011-09-27 14:37:33.425500690 +0200
@@ -1,6 +1,6 @@
dnl @synopsis AC_C_FIND_ENDIAN
dnl
-dnl Determine endian-ness of target processor.
+dnl Determine endian-ness of host processor.
dnl @version 1.1 Mar 03 2002
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
@@ -18,7 +18,7 @@
dnl 1) Look in <endian.h>.
dnl 2) If 1) fails, look in <sys/types.h> and <sys/param.h>.
dnl 3) If 1) and 2) fails and not cross compiling run a test program.
-dnl 4) If 1) and 2) fails and cross compiling then guess based on target.
+dnl 4) If 1) and 2) fails and cross compiling then guess based on host.
AC_DEFUN([AC_C_FIND_ENDIAN],
[AC_CACHE_CHECK(processor byte ordering,
@@ -87,10 +87,10 @@
if test $ac_cv_c_byte_order = unknown ; then
if test $cross_compiling = yes ; then
- # This is the last resort. Try to guess the target processor endian-ness
- # by looking at the target CPU type.
+ # This is the last resort. Try to guess the host processor endian-ness
+ # by looking at the host CPU type.
[
- case "$target_cpu" in
+ case "$host_cpu" in
alpha* | i?86* | mipsel* | ia64*)
ac_cv_c_byte_order=little
;;
@@ -143,7 +143,7 @@
ac_cv_c_little_endian=0
AC_MSG_WARN([[*****************************************************************]])
- AC_MSG_WARN([[*** Not able to determine endian-ness of target processor. ]])
+ AC_MSG_WARN([[*** Not able to determine endian-ness of host processor. ]])
AC_MSG_WARN([[*** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in ]])
AC_MSG_WARN([[*** src/config.h may need to be hand editied. ]])
AC_MSG_WARN([[*****************************************************************]])