Index: ports/archivers/xz/Makefile =================================================================== RCS file: /home/pcvs/ports/archivers/xz/Makefile,v retrieving revision 1.13 diff -u -r1.13 Makefile --- ports/archivers/xz/Makefile 21 May 2010 16:27:30 -0000 1.13 +++ ports/archivers/xz/Makefile 1 Jun 2010 13:17:31 -0000 @@ -18,9 +18,9 @@ CONFLICTS= lzma-[0-9]* lzmautils-[0-9]* lzmalib-[0-9]* MAKE_JOBS_SAFE= yes -USE_AUTOTOOLS= autoheader:262 autoconf:262 USE_LDCONFIG= yes USE_GNOME= gnomehack +GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-dynamic=yes CONFIGURE_ARGS+=--disable-nls # no translations available Index: ports/archivers/xz/files/patch-configure =================================================================== RCS file: ports/archivers/xz/files/patch-configure diff -N ports/archivers/xz/files/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/archivers/xz/files/patch-configure 1 Jun 2010 13:17:31 -0000 @@ -0,0 +1,110 @@ +--- /tmp/configure 2010-06-01 15:06:19.000000000 +0200 ++++ configure 2010-06-01 15:06:40.813799251 +0200 +@@ -15182,7 +15182,7 @@ + + + # If any of these headers are missing, things should still work correctly: +-for ac_header in sys/param.h sys/sysctl.h byteswap.h ++for ac_header in sys/param.h sys/sysctl.h byteswap.h sys/endian.h + do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +@@ -15296,6 +15296,98 @@ + + fi + ++if test x$ac_cv_header_sys_endian_h = xyes ; then ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bswap16 is available" >&5 ++$as_echo_n "checking if bswap16 is available... " >&6; } ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++#include ++int ++main(void) ++{ ++ bswap16(42); ++ return 0; ++} ++ ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ++ ++$as_echo "#define HAVE_BSWAP16 1" >>confdefs.h ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bswap32 is available" >&5 ++$as_echo_n "checking if bswap32 is available... " >&6; } ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++#include ++int ++main(void) ++{ ++ bswap32(42); ++ return 0; ++} ++ ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ++ ++$as_echo "#define HAVE_BSWAP32 1" >>confdefs.h ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bswap64 is available" >&5 ++$as_echo_n "checking if bswap64 is available... " >&6; } ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++#include ++int ++main(void) ++{ ++ bswap64(42); ++ return 0; ++} ++ ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ++ ++$as_echo "#define HAVE_BSWAP64 1" >>confdefs.h ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 ++$as_echo "yes" >&6; } ++ ++else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++ fi + + ############################################################################### + # Checks for typedefs, structures, and compiler characteristics. Index: ports/archivers/xz/files/patch-configure.ac =================================================================== RCS file: ports/archivers/xz/files/patch-configure.ac diff -N ports/archivers/xz/files/patch-configure.ac --- ports/archivers/xz/files/patch-configure.ac 1 Oct 2009 21:49:43 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,37 +0,0 @@ ---- configure.ac.orig 2009-08-27 17:37:12.000000000 +0200 -+++ configure.ac 2009-09-29 20:32:39.000000000 +0200 -@@ -476,7 +476,7 @@ AC_CHECK_HEADERS([fcntl.h limits.h sys/t - [AC_MSG_ERROR([Required header file(s) are missing.])]) - - # If any of these headers are missing, things should still work correctly: --AC_CHECK_HEADERS([sys/param.h sys/sysctl.h byteswap.h], -+AC_CHECK_HEADERS([sys/param.h sys/sysctl.h byteswap.h sys/endian.h], - [], [], [ - #ifdef HAVE_SYS_PARAM_H - # include -@@ -504,6 +504,25 @@ main(void) - ])dnl - fi - -+if test x$ac_cv_header_sys_endian_h = xyes ; then -+ m4_foreach([FUNC], [bswap16,bswap32,bswap64], [ -+ AC_MSG_CHECKING([if FUNC is available]) -+ AC_LINK_IFELSE([AC_LANG_SOURCE([ -+#include -+int -+main(void) -+{ -+ FUNC[](42); -+ return 0; -+} -+ ])], [ -+ AC_DEFINE(HAVE_[]m4_toupper(FUNC), [1], -+ [Define to 1 if] FUNC [is available.]) -+ AC_MSG_RESULT([yes]) -+ ], [AC_MSG_RESULT([no])]) -+ -+ ])dnl -+fi - - ############################################################################### - # Checks for typedefs, structures, and compiler characteristics.