[cups.bugs] [LOW] STR #2260: [PATCH] slight configure problem when --enable-largefile on OSX/Darwin

SciFi sci-fi at hush.ai
Sat Feb 24 04:38:42 PST 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Hi,

# uname -a
Darwin SciFiG5.homeip.net 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8
17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh
powerpc PowerMac7,3 Darwin

Using CUPS SVN-r6307 as I write this, but it's been doing this for many
many months it seems.

I have --enable-largefile in my configure parms.  The configure script has
been giving errors for the largefile tests, "unary operator expected". 
Turns out the vars being tested are empty or undefined, since OSX/Darwin
has such support already built-in AIU.

Just to get around this, I whipped up a patch:

>>>>
--- config-scripts/cups-largefile.m4_orig	2006-11-16 05:18:44 -0600
+++ config-scripts/cups-largefile.m4	2007-02-23 13:56:15 -0600
@@ -30,11 +30,11 @@
 if test x$enable_largefile != xno; then
 	LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
 
-	if test $ac_cv_sys_large_files = 1; then
+	if test x$ac_cv_sys_large_files = x1; then
 		LARGEFILE="$LARGEFILE -D_LARGE_FILES"
 	fi
 
-	if test $ac_cv_sys_file_offset_bits = 64; then
+	if test x$ac_cv_sys_file_offset_bits = x64; then
 		LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
 	fi
 fi
<<<<

We still don't get the extra -D's for OSX/Darwin (only the first ones, do
we need the others?), but it keeps configure from complaining.  ;)

fwiw I've been staying current with self-built GNU coreutils-6.7,
make-3.81, automake-1.10, autoconf-2.61a, and tons of other libs (usually
installed in /usr/local and overriding Apple's provided tools via PATH
etc.).  Yes I run "make distclean" and "autoconf -f" after every "svn
update".  ;)

Thanks.

Link: http://www.cups.org/str.php?L2260
Version: 1.3-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-largefile-m4.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20070224/21366146/attachment.ksh>


More information about the cups mailing list