Fri Aug 14 15:51:06 2009 UTC ()
some fixes and cleanup:
-replace a struct member name "private" in a public header, it is
 reserved in C+, fixes build problems reported by joerg and wiz
-link against librt on Linux (needed for clock_gettime()), should
 fix build problem reported by dsainty
-don't even compile cooked_interface.c on NetBSD, and g/c patches
 which added NetBSD support code which was never used
bump PKGREVISION


(drochner)
diff -r1.28 -r1.29 pkgsrc/audio/cdparanoia/Makefile
diff -r1.23 -r1.24 pkgsrc/audio/cdparanoia/distinfo
diff -r1.5 -r1.6 pkgsrc/audio/cdparanoia/patches/patch-aa
diff -r1.5 -r1.6 pkgsrc/audio/cdparanoia/patches/patch-ci
diff -r1.8 -r1.9 pkgsrc/audio/cdparanoia/patches/patch-ac
diff -r1.8 -r1.9 pkgsrc/audio/cdparanoia/patches/patch-ca
diff -r1.6 -r1.7 pkgsrc/audio/cdparanoia/patches/patch-ce
diff -r1.4 -r1.5 pkgsrc/audio/cdparanoia/patches/patch-ch

cvs diff -r1.28 -r1.29 pkgsrc/audio/cdparanoia/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/Makefile 2009/08/09 16:00:53 1.28
+++ pkgsrc/audio/cdparanoia/Makefile 2009/08/14 15:51:05 1.29
@@ -1,30 +1,32 @@ @@ -1,30 +1,32 @@
1# $NetBSD: Makefile,v 1.28 2009/08/09 16:00:53 drochner Exp $ 1# $NetBSD: Makefile,v 1.29 2009/08/14 15:51:05 drochner Exp $
2# 2#
3 3
4DISTNAME= cdparanoia-III-10.2 4DISTNAME= cdparanoia-III-10.2
5PKGNAME= cdparanoia-3.0.10.2 5PKGNAME= cdparanoia-3.0.10.2
 6PKGREVISION= 1
6CATEGORIES= audio 7CATEGORIES= audio
7MASTER_SITES= http://downloads.xiph.org/releases/cdparanoia/ 8MASTER_SITES= http://downloads.xiph.org/releases/cdparanoia/
8EXTRACT_SUFX= .src.tgz 9EXTRACT_SUFX= .src.tgz
9 10
10MAINTAINER= kim@tac.nyc.ny.us 11MAINTAINER= kim@tac.nyc.ny.us
11HOMEPAGE= http://www.xiph.org/paranoia/ 12HOMEPAGE= http://www.xiph.org/paranoia/
12COMMENT= CDDA reading utility with extra data verification features 13COMMENT= CDDA reading utility with extra data verification features
13 14
14ONLY_FOR_PLATFORM= FreeBSD-*-* NetBSD-*-* Linux-*-* DragonFly-*-* Darwin-*-* 15ONLY_FOR_PLATFORM= FreeBSD-*-* NetBSD-*-* Linux-*-* DragonFly-*-* Darwin-*-*
15 16
16PKG_INSTALLATION_TYPES= overwrite pkgviews 17PKG_INSTALLATION_TYPES= overwrite pkgviews
17PKG_DESTDIR_SUPPORT= user-destdir 18PKG_DESTDIR_SUPPORT= user-destdir
18 19
19USE_TOOLS+= gmake 20USE_TOOLS+= gmake
20USE_LIBTOOL= YES 21USE_LIBTOOL= YES
21GNU_CONFIGURE= YES 22GNU_CONFIGURE= YES
22 23
23CONFIGURE_ARGS+= --includedir=${PREFIX}/include/cdparanoia 24CONFIGURE_ARGS+= --includedir=${PREFIX}/include/cdparanoia
24 25
25MAKE_ENV+= GCC=yes 26MAKE_ENV+= GCC=yes
 27CFLAGS+= -Dprivate_data=private
26 28
27LDFLAGS.FreeBSD+= -lcam 29LDFLAGS.FreeBSD+= -lcam
28LDFLAGS.DragonFly+= -lcam 30LDFLAGS.DragonFly+= -lcam
29 31
30.include "../../mk/bsd.pkg.mk" 32.include "../../mk/bsd.pkg.mk"

cvs diff -r1.23 -r1.24 pkgsrc/audio/cdparanoia/distinfo (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/distinfo 2009/08/09 16:00:53 1.23
+++ pkgsrc/audio/cdparanoia/distinfo 2009/08/14 15:51:05 1.24
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1$NetBSD: distinfo,v 1.23 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: distinfo,v 1.24 2009/08/14 15:51:05 drochner Exp $
2 2
3SHA1 (cdparanoia-III-10.2.src.tgz) = 1901e20d3a370ca6afa4c76a9ef30d3f03044320 3SHA1 (cdparanoia-III-10.2.src.tgz) = 1901e20d3a370ca6afa4c76a9ef30d3f03044320
4RMD160 (cdparanoia-III-10.2.src.tgz) = d6c4ea9cc4aa4d5bcca4985e668ea6142d53cc55 4RMD160 (cdparanoia-III-10.2.src.tgz) = d6c4ea9cc4aa4d5bcca4985e668ea6142d53cc55
5Size (cdparanoia-III-10.2.src.tgz) = 183236 bytes 5Size (cdparanoia-III-10.2.src.tgz) = 183236 bytes
6SHA1 (patch-aa) = e47579c7c20d6170d7ef9c9952914309653fbeb1 6SHA1 (patch-aa) = c8e66327a8566afff37313941db2b3175beb57fa
7SHA1 (patch-ab) = af07649ac4e0d4a5c2798e4cfc903e6959adea44 7SHA1 (patch-ab) = af07649ac4e0d4a5c2798e4cfc903e6959adea44
8SHA1 (patch-ac) = 809a306e3ee07493167ee652efd8899fd38af15f 8SHA1 (patch-ac) = f6f28caf71c68462955fa308ae01b6e4888c1724
9SHA1 (patch-ad) = 9a1ea1b98b5f3810e1ccae57beb8c68b5e189716 9SHA1 (patch-ad) = 9a1ea1b98b5f3810e1ccae57beb8c68b5e189716
10SHA1 (patch-ae) = dda320ca0817b06cb25be86b2a891776550603ae 10SHA1 (patch-ae) = dda320ca0817b06cb25be86b2a891776550603ae
11SHA1 (patch-ba) = 0f4f8ddecd9f5f273f7a1687bbb1477fd64500c1 11SHA1 (patch-ba) = 0f4f8ddecd9f5f273f7a1687bbb1477fd64500c1
12SHA1 (patch-ca) = 39b06a65f1feed4170c0f7305f7a56f104c4a043 12SHA1 (patch-ca) = 9860c2227f9d359e808c0ee0989020a9a3163a48
13SHA1 (patch-cb) = b38b9119273aef002e1fde8f84888b303d7833d9 13SHA1 (patch-cb) = b38b9119273aef002e1fde8f84888b303d7833d9
14SHA1 (patch-cc) = a2f78daf62ecae73ab3cc264f39b367dfa249129 14SHA1 (patch-cc) = a2f78daf62ecae73ab3cc264f39b367dfa249129
15SHA1 (patch-cd) = 7141563e10b0d23dbd4ff824224a10908741be5b 15SHA1 (patch-cd) = 7141563e10b0d23dbd4ff824224a10908741be5b
16SHA1 (patch-ce) = 75b152acaf730eafa76dffc44e2bec95c0ae6397 16SHA1 (patch-ce) = b343191fa2e337e2c3c091c585451c726c1f745b
17SHA1 (patch-cf) = 73cdff1ab6b9857cd3299f3eb152c399a7e38227 17SHA1 (patch-cf) = 73cdff1ab6b9857cd3299f3eb152c399a7e38227
18SHA1 (patch-cg) = 9a979bcac06da564e6d86d0ffc04848e529367cf 18SHA1 (patch-cg) = 9a979bcac06da564e6d86d0ffc04848e529367cf
19SHA1 (patch-ch) = 1e17f98007b7e566dd88e30bea27247a9be6cc28 19SHA1 (patch-ch) = e7ec16fe9c7ff805104d68678a2576370cc4c0e7
20SHA1 (patch-ci) = d8a85b0e5858650050a05fdca612bc0fadd42065 20SHA1 (patch-ci) = 614b428a3bf330ccb5850149549fb98e8e1b90c0
21SHA1 (patch-cj) = e2420e2ccadd2d6ea30d6bf48af9c141dc395afc 21SHA1 (patch-cj) = e2420e2ccadd2d6ea30d6bf48af9c141dc395afc
22SHA1 (patch-ck) = 0232f8f42d98b49043f55cd6aaf1f50ab38fadfb 22SHA1 (patch-ck) = 0232f8f42d98b49043f55cd6aaf1f50ab38fadfb
23SHA1 (patch-cn) = b79db0b24a042a5801b47e6db5e20cbf07a53475 23SHA1 (patch-cn) = b79db0b24a042a5801b47e6db5e20cbf07a53475

cvs diff -r1.5 -r1.6 pkgsrc/audio/cdparanoia/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/patches/patch-aa 2009/08/09 16:00:53 1.5
+++ pkgsrc/audio/cdparanoia/patches/patch-aa 2009/08/14 15:51:06 1.6
@@ -1,49 +1,57 @@ @@ -1,49 +1,57 @@
1$NetBSD: patch-aa,v 1.5 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: patch-aa,v 1.6 2009/08/14 15:51:06 drochner Exp $
2 2
3--- configure.in.orig 2006-08-16 20:02:25.000000000 +0200 3--- configure.in.orig 2006-08-16 20:02:25.000000000 +0200
4+++ configure.in 4+++ configure.in
5@@ -12,6 +12,17 @@ AC_PROG_RANLIB 5@@ -12,6 +12,25 @@ AC_PROG_RANLIB
6 AC_CHECK_PROG(AR,ar,ar) 6 AC_CHECK_PROG(AR,ar,ar)
7 AC_CHECK_PROG(INSTALL,install,install) 7 AC_CHECK_PROG(INSTALL,install,install)
8  8
9+case $host in 9+case $host in
10+*-*-darwin*) 10+*-*-darwin*)
11+ EXTRA_OBJS=osx_interface.o 11+ EXTRA_OBJS=osx_interface.o
12+ EXTRA_LIBS=-framework CoreFoundation -framework IOKit 12+ EXTRA_LIBS=-framework CoreFoundation -framework IOKit
13+ ;; 13+ ;;
 14+*-*-linux*)
 15+ EXTRA_OBJS="cooked_interface.o scsi_interface.o"
 16+ EXTRA_LIBS=-lrt
 17+ ;;
 18+*-*-netbsd*)
 19+ EXTRA_OBJS=scsi_interface.o
 20+ EXTRA_LIBS=
 21+ ;;
14+*) 22+*)
15+ EXTRA_OBJS="cooked_interface.o scsi_interface.o" 23+ EXTRA_OBJS="cooked_interface.o scsi_interface.o"
16+ EXTRA_LIBS= 24+ EXTRA_LIBS=
17+ ;; 25+ ;;
18+esac 26+esac
19+ 27+
20 if test -z "$GCC"; then 28 if test -z "$GCC"; then
21 DEBUG="-g" 29 DEBUG="-g"
22 OPT="-O" 30 OPT="-O"
23@@ -20,6 +31,12 @@ else 31@@ -20,6 +39,12 @@ else
24 i?86-*-linux*) 32 i?86-*-linux*)
25 DEBUG="-g -Wall -fsigned-char" 33 DEBUG="-g -Wall -fsigned-char"
26 OPT="-O2 -ffast-math -fsigned-char -finline-functions";; 34 OPT="-O2 -ffast-math -fsigned-char -finline-functions";;
27+ i?86-*-netbsd*) 35+ i?86-*-netbsd*)
28+ DEBUG="-g -Wall -fsigned-char" 36+ DEBUG="-g -Wall -fsigned-char"
29+ OPT="-O2 -ffast-math -fsigned-char -finline-functions";; 37+ OPT="-O2 -ffast-math -fsigned-char -finline-functions";;
30+ *-netbsd*) 38+ *-netbsd*)
31+ DEBUG="-g -Wall" 39+ DEBUG="-g -Wall"
32+ OPT="-O";; 40+ OPT="-O";;
33 *) 41 *)
34 DEBUG="-g -Wall -fsigned-char" 42 DEBUG="-g -Wall -fsigned-char"
35 OPT="-O2 -fsigned-char";; 43 OPT="-O2 -fsigned-char";;
36@@ -56,15 +73,27 @@ fi 44@@ -56,15 +81,27 @@ fi
37  45
38 AC_CHECK_HEADERS(linux/sbpcd.h, SBPCD_H="-DSBPCD_H='1' ") 46 AC_CHECK_HEADERS(linux/sbpcd.h, SBPCD_H="-DSBPCD_H='1' ")
39 AC_CHECK_HEADERS(linux/ucdrom.h, UCDROM_H="-DUCDROM_H='1' ") 47 AC_CHECK_HEADERS(linux/ucdrom.h, UCDROM_H="-DUCDROM_H='1' ")
40+AC_CHECK_HEADERS(util.h, 48+AC_CHECK_HEADERS(util.h,
41+ AC_CHECK_LIB(util, getrawpartition, 49+ AC_CHECK_LIB(util, getrawpartition,
42+ RAWPART="-DHAVE_GETRAWPARTITION='1' " LIBUTIL="-lutil" 50+ RAWPART="-DHAVE_GETRAWPARTITION='1' " LIBUTIL="-lutil"
43+ ) 51+ )
44+) 52+)
45+ 53+
46+AC_CHECK_FUNCS(getopt_long, GETOPT_LONG="-DGETOPT_LONG='1' ") 54+AC_CHECK_FUNCS(getopt_long, GETOPT_LONG="-DGETOPT_LONG='1' ")
47  55
48 AC_PROG_MAKE_SET 56 AC_PROG_MAKE_SET
49 AC_C_CONST 57 AC_C_CONST

cvs diff -r1.5 -r1.6 pkgsrc/audio/cdparanoia/patches/patch-ci (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/patches/patch-ci 2009/08/09 16:00:53 1.5
+++ pkgsrc/audio/cdparanoia/patches/patch-ci 2009/08/14 15:51:06 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: patch-ci,v 1.5 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: patch-ci,v 1.6 2009/08/14 15:51:06 drochner Exp $
2 2
3--- interface/interface.c.orig 2008-09-11 12:43:52.000000000 +0200 3--- interface/interface.c.orig 2008-09-11 12:43:52.000000000 +0200
4+++ interface/interface.c 4+++ interface/interface.c
5@@ -35,6 +35,10 @@ int cdda_close(cdrom_drive *d){ 5@@ -35,6 +35,10 @@ int cdda_close(cdrom_drive *d){
6  6
7 _clean_messages(d); 7 _clean_messages(d);
8 if(d->cdda_device_name)free(d->cdda_device_name); 8 if(d->cdda_device_name)free(d->cdda_device_name);
9+#if !defined(__FreeBSD__) && !defined(__DragonFly__) 9+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
10+#if defined(__APPLE__) && defined(__MACH__) 10+#if defined(__APPLE__) && defined(__MACH__)
11+ if(d->fd != -1) close(d->fd); 11+ if(d->fd != -1) close(d->fd);
12+#else 12+#else
13 if(d->ioctl_device_name)free(d->ioctl_device_name); 13 if(d->ioctl_device_name)free(d->ioctl_device_name);
14 if(d->drive_model)free(d->drive_model); 14 if(d->drive_model)free(d->drive_model);
@@ -23,34 +23,45 @@ $NetBSD: patch-ci,v 1.5 2009/08/09 16:00 @@ -23,34 +23,45 @@ $NetBSD: patch-ci,v 1.5 2009/08/09 16:00
23+ free(d->drive_model); 23+ free(d->drive_model);
24+ if(d->ccb) 24+ if(d->ccb)
25+ cam_freeccb(d->ccb); 25+ cam_freeccb(d->ccb);
26+ if(d->dev) 26+ if(d->dev)
27+ cam_close_device(d->dev); 27+ cam_close_device(d->dev);
28+ if(d->sg_buffer) 28+ if(d->sg_buffer)
29+ free(d->sg_buffer); 29+ free(d->sg_buffer);
30+ if(d->ioctl_fd != -1) 30+ if(d->ioctl_fd != -1)
31+ close(d->ioctl_fd); 31+ close(d->ioctl_fd);
32+#endif 32+#endif
33  33
34 free(d); 34 free(d);
35 } 35 }
36@@ -55,6 +72,12 @@ int cdda_open(cdrom_drive *d){ 36@@ -55,22 +72,31 @@ int cdda_open(cdrom_drive *d){
37 if(d->opened)return(0); 37 if(d->opened)return(0);
38  38
39 switch(d->interface){ 39 switch(d->interface){
40+#if defined(__APPLE__) && defined(__MACH__) 40+#if defined(__APPLE__) && defined(__MACH__)
41+ case OSX_IOKIT: 41+ case OSX_IOKIT:
42+ if((ret=osx_open_device(d))) 42+ if((ret=osx_open_device(d)))
43+ return ret; 43+ return ret;
44+ break; 44+ break;
45+#else 45+#else
46 case SGIO_SCSI_BUGGY1:  46 case SGIO_SCSI_BUGGY1:
47 case SGIO_SCSI:  47 case SGIO_SCSI:
48 case GENERIC_SCSI:  48 case GENERIC_SCSI:
49@@ -71,6 +94,7 @@ int cdda_open(cdrom_drive *d){ 49 if((ret=scsi_init_drive(d)))
 50 return(ret);
 51 break;
 52+#ifndef __NetBSD__
 53 case COOKED_IOCTL:
 54 if((ret=cooked_init_drive(d)))
 55 return(ret);
 56 break;
 57+#endif
 58 #ifdef CDDA_TEST
 59 case TEST_INTERFACE:
 60 if((ret=test_init_drive(d)))
50 return(ret); 61 return(ret);
51 break; 62 break;
52 #endif 63 #endif
53+#endif 64+#endif
54 default: 65 default:
55 cderror(d,"100: Interface not supported\n"); 66 cderror(d,"100: Interface not supported\n");
56 return(-100); 67 return(-100);

cvs diff -r1.8 -r1.9 pkgsrc/audio/cdparanoia/patches/patch-ac (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/patches/patch-ac 2009/08/09 16:00:53 1.8
+++ pkgsrc/audio/cdparanoia/patches/patch-ac 2009/08/14 15:51:06 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: patch-ac,v 1.8 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: patch-ac,v 1.9 2009/08/14 15:51:06 drochner Exp $
2 2
3--- configure.orig 2006-08-16 20:02:25.000000000 +0200 3--- configure.orig 2006-08-16 20:02:25.000000000 +0200
4+++ configure 4+++ configure
5@@ -1,25 +1,82 @@ 5@@ -1,25 +1,82 @@
6 #! /bin/sh 6 #! /bin/sh
7 # Guess values for system-dependent variables and create Makefiles. 7 # Guess values for system-dependent variables and create Makefiles.
8-# Generated by GNU Autoconf 2.59. 8-# Generated by GNU Autoconf 2.59.
9+# Generated by GNU Autoconf 2.63. 9+# Generated by GNU Autoconf 2.63.
10 # 10 #
11-# Copyright (C) 2003 Free Software Foundation, Inc. 11-# Copyright (C) 2003 Free Software Foundation, Inc.
12+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 12+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13+# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 13+# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
14 # This configure script is free software; the Free Software Foundation 14 # This configure script is free software; the Free Software Foundation
@@ -3483,27 +3483,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3483,27 +3483,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3483+ 3483+
3484 # Extract the first word of "install", so it can be a program name with args. 3484 # Extract the first word of "install", so it can be a program name with args.
3485 set dummy install; ac_word=$2 3485 set dummy install; ac_word=$2
3486-echo "$as_me:$LINENO: checking for $ac_word" >&5 3486-echo "$as_me:$LINENO: checking for $ac_word" >&5
3487-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3487-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3488+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489+$as_echo_n "checking for $ac_word... " >&6; } 3489+$as_echo_n "checking for $ac_word... " >&6; }
3490 if test "${ac_cv_prog_INSTALL+set}" = set; then 3490 if test "${ac_cv_prog_INSTALL+set}" = set; then
3491- echo $ECHO_N "(cached) $ECHO_C" >&6 3491- echo $ECHO_N "(cached) $ECHO_C" >&6
3492+ $as_echo_n "(cached) " >&6 3492+ $as_echo_n "(cached) " >&6
3493 else 3493 else
3494 if test -n "$INSTALL"; then 3494 if test -n "$INSTALL"; then
3495 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. 3495 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3496@@ -2435,26 +2986,39 @@ do 3496@@ -2435,26 +2986,47 @@ do
3497 IFS=$as_save_IFS 3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=. 3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do 3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3500- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3501+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502 ac_cv_prog_INSTALL="install" 3502 ac_cv_prog_INSTALL="install"
3503- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3503- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3504+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2 3505 break 2
3506 fi 3506 fi
3507 done 3507 done
3508 done 3508 done
3509+IFS=$as_save_IFS 3509+IFS=$as_save_IFS
@@ -3520,68 +3520,76 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3520,68 +3520,76 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3520- echo "$as_me:$LINENO: result: no" >&5 3520- echo "$as_me:$LINENO: result: no" >&5
3521-echo "${ECHO_T}no" >&6 3521-echo "${ECHO_T}no" >&6
3522+ { $as_echo "$as_me:$LINENO: result: no" >&5 3522+ { $as_echo "$as_me:$LINENO: result: no" >&5
3523+$as_echo "no" >&6; } 3523+$as_echo "no" >&6; }
3524 fi 3524 fi
3525  3525
3526  3526
3527+ 3527+
3528+case $host in 3528+case $host in
3529+*-*-darwin*) 3529+*-*-darwin*)
3530+ EXTRA_OBJS=osx_interface.o 3530+ EXTRA_OBJS=osx_interface.o
3531+ EXTRA_LIBS=-framework CoreFoundation -framework IOKit 3531+ EXTRA_LIBS=-framework CoreFoundation -framework IOKit
3532+ ;; 3532+ ;;
 3533+*-*-linux*)
 3534+ EXTRA_OBJS="cooked_interface.o scsi_interface.o"
 3535+ EXTRA_LIBS=-lrt
 3536+ ;;
 3537+*-*-netbsd*)
 3538+ EXTRA_OBJS=scsi_interface.o
 3539+ EXTRA_LIBS=
 3540+ ;;
3533+*) 3541+*)
3534+ EXTRA_OBJS="cooked_interface.o scsi_interface.o" 3542+ EXTRA_OBJS="cooked_interface.o scsi_interface.o"
3535+ EXTRA_LIBS= 3543+ EXTRA_LIBS=
3536+ ;; 3544+ ;;
3537+esac 3545+esac
3538+ 3546+
3539 if test -z "$GCC"; then 3547 if test -z "$GCC"; then
3540 DEBUG="-g" 3548 DEBUG="-g"
3541 OPT="-O" 3549 OPT="-O"
3542@@ -2463,6 +3027,12 @@ else 3550@@ -2463,6 +3035,12 @@ else
3543 i?86-*-linux*) 3551 i?86-*-linux*)
3544 DEBUG="-g -Wall -fsigned-char" 3552 DEBUG="-g -Wall -fsigned-char"
3545 OPT="-O2 -ffast-math -fsigned-char -finline-functions";; 3553 OPT="-O2 -ffast-math -fsigned-char -finline-functions";;
3546+ i?86-*-netbsd*) 3554+ i?86-*-netbsd*)
3547+ DEBUG="-g -Wall -fsigned-char" 3555+ DEBUG="-g -Wall -fsigned-char"
3548+ OPT="-O2 -ffast-math -fsigned-char -finline-functions";; 3556+ OPT="-O2 -ffast-math -fsigned-char -finline-functions";;
3549+ *-netbsd*) 3557+ *-netbsd*)
3550+ DEBUG="-g -Wall" 3558+ DEBUG="-g -Wall"
3551+ OPT="-O";; 3559+ OPT="-O";;
3552 *) 3560 *)
3553 DEBUG="-g -Wall -fsigned-char" 3561 DEBUG="-g -Wall -fsigned-char"
3554 OPT="-O2 -fsigned-char";; 3562 OPT="-O2 -fsigned-char";;
3555@@ -2475,15 +3045,15 @@ ac_cpp='$CPP $CPPFLAGS' 3563@@ -2475,15 +3053,15 @@ ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559-echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3567-echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3560-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3568-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3561+{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3569+{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3562+$as_echo_n "checking how to run the C preprocessor... " >&6; } 3570+$as_echo_n "checking how to run the C preprocessor... " >&6; }
3563 # On Suns, sometimes $CPP names a directory. 3571 # On Suns, sometimes $CPP names a directory.
3564 if test -n "$CPP" && test -d "$CPP"; then 3572 if test -n "$CPP" && test -d "$CPP"; then
3565 CPP= 3573 CPP=
3566 fi 3574 fi
3567 if test -z "$CPP"; then 3575 if test -z "$CPP"; then
3568 if test "${ac_cv_prog_CPP+set}" = set; then 3576 if test "${ac_cv_prog_CPP+set}" = set; then
3569- echo $ECHO_N "(cached) $ECHO_C" >&6 3577- echo $ECHO_N "(cached) $ECHO_C" >&6
3570+ $as_echo_n "(cached) " >&6 3578+ $as_echo_n "(cached) " >&6
3571 else 3579 else
3572 # Double quotes because CPP needs to be expanded 3580 # Double quotes because CPP needs to be expanded
3573 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3574@@ -2510,35 +3080,35 @@ cat >>conftest.$ac_ext <<_ACEOF 3582@@ -2510,35 +3088,35 @@ cat >>conftest.$ac_ext <<_ACEOF
3575 #endif 3583 #endif
3576 Syntax error 3584 Syntax error
3577 _ACEOF 3585 _ACEOF
3578-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3586-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3587- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580+if { (ac_try="$ac_cpp conftest.$ac_ext" 3588+if { (ac_try="$ac_cpp conftest.$ac_ext"
3581+case "(($ac_try" in 3589+case "(($ac_try" in
3582+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583+ *) ac_try_echo=$ac_try;; 3591+ *) ac_try_echo=$ac_try;;
3584+esac 3592+esac
3585+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3593+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586+$as_echo "$ac_try_echo") >&5 3594+$as_echo "$ac_try_echo") >&5
3587+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3595+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
@@ -3613,27 +3621,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3613,27 +3621,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3613 sed 's/^/| /' conftest.$ac_ext >&5 3621 sed 's/^/| /' conftest.$ac_ext >&5
3614  3622
3615 # Broken: fails on valid input. 3623 # Broken: fails on valid input.
3616 continue 3624 continue
3617 fi 3625 fi
3618+ 3626+
3619 rm -f conftest.err conftest.$ac_ext 3627 rm -f conftest.err conftest.$ac_ext
3620  3628
3621- # OK, works on sane cases. Now check whether non-existent headers 3629- # OK, works on sane cases. Now check whether non-existent headers
3622+ # OK, works on sane cases. Now check whether nonexistent headers 3630+ # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how. 3631 # can be detected and how.
3624 cat >conftest.$ac_ext <<_ACEOF 3632 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */ 3633 /* confdefs.h. */
3626@@ -2548,34 +3118,34 @@ cat >>conftest.$ac_ext <<_ACEOF 3634@@ -2548,34 +3126,34 @@ cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */ 3635 /* end confdefs.h. */
3628 #include <ac_nonexistent.h> 3636 #include <ac_nonexistent.h>
3629 _ACEOF 3637 _ACEOF
3630-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3638-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3631- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3639- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3632+if { (ac_try="$ac_cpp conftest.$ac_ext" 3640+if { (ac_try="$ac_cpp conftest.$ac_ext"
3633+case "(($ac_try" in 3641+case "(($ac_try" in
3634+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635+ *) ac_try_echo=$ac_try;; 3643+ *) ac_try_echo=$ac_try;;
3636+esac 3644+esac
3637+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3645+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638+$as_echo "$ac_try_echo") >&5 3646+$as_echo "$ac_try_echo") >&5
3639+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3647+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
@@ -3663,38 +3671,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3663,38 +3671,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3663 else 3671 else
3664- echo "$as_me: failed program was:" >&5 3672- echo "$as_me: failed program was:" >&5
3665+ $as_echo "$as_me: failed program was:" >&5 3673+ $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5 3674 sed 's/^/| /' conftest.$ac_ext >&5
3667  3675
3668 # Passes both tests. 3676 # Passes both tests.
3669 ac_preproc_ok=: 3677 ac_preproc_ok=:
3670 break 3678 break
3671 fi 3679 fi
3672+ 3680+
3673 rm -f conftest.err conftest.$ac_ext 3681 rm -f conftest.err conftest.$ac_ext
3674  3682
3675 done 3683 done
3676@@ -2593,8 +3163,8 @@ fi 3684@@ -2593,8 +3171,8 @@ fi
3677 else 3685 else
3678 ac_cv_prog_CPP=$CPP 3686 ac_cv_prog_CPP=$CPP
3679 fi 3687 fi
3680-echo "$as_me:$LINENO: result: $CPP" >&5 3688-echo "$as_me:$LINENO: result: $CPP" >&5
3681-echo "${ECHO_T}$CPP" >&6 3689-echo "${ECHO_T}$CPP" >&6
3682+{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3690+{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3683+$as_echo "$CPP" >&6; } 3691+$as_echo "$CPP" >&6; }
3684 ac_preproc_ok=false 3692 ac_preproc_ok=false
3685 for ac_c_preproc_warn_flag in '' yes 3693 for ac_c_preproc_warn_flag in '' yes
3686 do 3694 do
3687@@ -2617,35 +3187,35 @@ cat >>conftest.$ac_ext <<_ACEOF 3695@@ -2617,35 +3195,35 @@ cat >>conftest.$ac_ext <<_ACEOF
3688 #endif 3696 #endif
3689 Syntax error 3697 Syntax error
3690 _ACEOF 3698 _ACEOF
3691-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3699-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3692- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3700- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3693+if { (ac_try="$ac_cpp conftest.$ac_ext" 3701+if { (ac_try="$ac_cpp conftest.$ac_ext"
3694+case "(($ac_try" in 3702+case "(($ac_try" in
3695+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696+ *) ac_try_echo=$ac_try;; 3704+ *) ac_try_echo=$ac_try;;
3697+esac 3705+esac
3698+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3706+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699+$as_echo "$ac_try_echo") >&5 3707+$as_echo "$ac_try_echo") >&5
3700+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3708+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
@@ -3726,27 +3734,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3726,27 +3734,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3726 sed 's/^/| /' conftest.$ac_ext >&5 3734 sed 's/^/| /' conftest.$ac_ext >&5
3727  3735
3728 # Broken: fails on valid input. 3736 # Broken: fails on valid input.
3729 continue 3737 continue
3730 fi 3738 fi
3731+ 3739+
3732 rm -f conftest.err conftest.$ac_ext 3740 rm -f conftest.err conftest.$ac_ext
3733  3741
3734- # OK, works on sane cases. Now check whether non-existent headers 3742- # OK, works on sane cases. Now check whether non-existent headers
3735+ # OK, works on sane cases. Now check whether nonexistent headers 3743+ # OK, works on sane cases. Now check whether nonexistent headers
3736 # can be detected and how. 3744 # can be detected and how.
3737 cat >conftest.$ac_ext <<_ACEOF 3745 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h. */ 3746 /* confdefs.h. */
3739@@ -2655,34 +3225,34 @@ cat >>conftest.$ac_ext <<_ACEOF 3747@@ -2655,34 +3233,34 @@ cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */ 3748 /* end confdefs.h. */
3741 #include <ac_nonexistent.h> 3749 #include <ac_nonexistent.h>
3742 _ACEOF 3750 _ACEOF
3743-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3751-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3744- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3752- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3745+if { (ac_try="$ac_cpp conftest.$ac_ext" 3753+if { (ac_try="$ac_cpp conftest.$ac_ext"
3746+case "(($ac_try" in 3754+case "(($ac_try" in
3747+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748+ *) ac_try_echo=$ac_try;; 3756+ *) ac_try_echo=$ac_try;;
3749+esac 3757+esac
3750+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3758+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751+$as_echo "$ac_try_echo") >&5 3759+$as_echo "$ac_try_echo") >&5
3752+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3760+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
@@ -3776,44 +3784,44 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3776,44 +3784,44 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3776 else 3784 else
3777- echo "$as_me: failed program was:" >&5 3785- echo "$as_me: failed program was:" >&5
3778+ $as_echo "$as_me: failed program was:" >&5 3786+ $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5 3787 sed 's/^/| /' conftest.$ac_ext >&5
3780  3788
3781 # Passes both tests. 3789 # Passes both tests.
3782 ac_preproc_ok=: 3790 ac_preproc_ok=:
3783 break 3791 break
3784 fi 3792 fi
3785+ 3793+
3786 rm -f conftest.err conftest.$ac_ext 3794 rm -f conftest.err conftest.$ac_ext
3787  3795
3788 done 3796 done
3789@@ -2691,11 +3261,13 @@ rm -f conftest.err conftest.$ac_ext 3797@@ -2691,11 +3269,13 @@ rm -f conftest.err conftest.$ac_ext
3790 if $ac_preproc_ok; then 3798 if $ac_preproc_ok; then
3791 : 3799 :
3792 else 3800 else
3793- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3801- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3794+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3802+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3795+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3803+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796+{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3804+{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3797 See \`config.log' for more details." >&5 3805 See \`config.log' for more details." >&5
3798-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3806-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3799+$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3807+$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3800 See \`config.log' for more details." >&2;} 3808 See \`config.log' for more details." >&2;}
3801- { (exit 1); exit 1; }; } 3809- { (exit 1); exit 1; }; }
3802+ { (exit 1); exit 1; }; }; } 3810+ { (exit 1); exit 1; }; }; }
3803 fi 3811 fi
3804  3812
3805 ac_ext=c 3813 ac_ext=c
3806@@ -2705,25 +3277,144 @@ ac_link='$CC -o conftest$ac_exeext $CFLA 3814@@ -2705,25 +3285,144 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808  3816
3809  3817
3810-echo "$as_me:$LINENO: checking for egrep" >&5 3818-echo "$as_me:$LINENO: checking for egrep" >&5
3811-echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3819-echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3812-if test "${ac_cv_prog_egrep+set}" = set; then 3820-if test "${ac_cv_prog_egrep+set}" = set; then
3813- echo $ECHO_N "(cached) $ECHO_C" >&6 3821- echo $ECHO_N "(cached) $ECHO_C" >&6
3814-else 3822-else
3815- if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3823- if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3816- then ac_cv_prog_egrep='grep -E' 3824- then ac_cv_prog_egrep='grep -E'
3817- else ac_cv_prog_egrep='egrep' 3825- else ac_cv_prog_egrep='egrep'
3818+{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3826+{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3819+$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3827+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
@@ -3952,27 +3960,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -3952,27 +3960,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
3952+ EGREP="$ac_cv_path_EGREP" 3960+ EGREP="$ac_cv_path_EGREP"
3953  3961
3954  3962
3955-echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3963-echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3956-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3964-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3957+{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3965+{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3958+$as_echo_n "checking for ANSI C header files... " >&6; } 3966+$as_echo_n "checking for ANSI C header files... " >&6; }
3959 if test "${ac_cv_header_stdc+set}" = set; then 3967 if test "${ac_cv_header_stdc+set}" = set; then
3960- echo $ECHO_N "(cached) $ECHO_C" >&6 3968- echo $ECHO_N "(cached) $ECHO_C" >&6
3961+ $as_echo_n "(cached) " >&6 3969+ $as_echo_n "(cached) " >&6
3962 else 3970 else
3963 cat >conftest.$ac_ext <<_ACEOF 3971 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */ 3972 /* confdefs.h. */
3965@@ -2745,35 +3436,32 @@ main () 3973@@ -2745,35 +3444,32 @@ main ()
3966 } 3974 }
3967 _ACEOF 3975 _ACEOF
3968 rm -f conftest.$ac_objext 3976 rm -f conftest.$ac_objext
3969-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3977-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970- (eval $ac_compile) 2>conftest.er1 3978- (eval $ac_compile) 2>conftest.er1
3971+if { (ac_try="$ac_compile" 3979+if { (ac_try="$ac_compile"
3972+case "(($ac_try" in 3980+case "(($ac_try" in
3973+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3981+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974+ *) ac_try_echo=$ac_try;; 3982+ *) ac_try_echo=$ac_try;;
3975+esac 3983+esac
3976+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3984+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977+$as_echo "$ac_try_echo") >&5 3985+$as_echo "$ac_try_echo") >&5
3978+ (eval "$ac_compile") 2>conftest.er1 3986+ (eval "$ac_compile") 2>conftest.er1
@@ -4005,35 +4013,35 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4005,35 +4013,35 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4005- echo "$as_me: failed program was:" >&5 4013- echo "$as_me: failed program was:" >&5
4006+ $as_echo "$as_me: failed program was:" >&5 4014+ $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5 4015 sed 's/^/| /' conftest.$ac_ext >&5
4008  4016
4009-ac_cv_header_stdc=no 4017-ac_cv_header_stdc=no
4010+ ac_cv_header_stdc=no 4018+ ac_cv_header_stdc=no
4011 fi 4019 fi
4012-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4020-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4013+ 4021+
4014+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4022+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015  4023
4016 if test $ac_cv_header_stdc = yes; then 4024 if test $ac_cv_header_stdc = yes; then
4017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4018@@ -2829,6 +3517,7 @@ cat confdefs.h >>conftest.$ac_ext 4026@@ -2829,6 +3525,7 @@ cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF 4027 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */ 4028 /* end confdefs.h. */
4021 #include <ctype.h> 4029 #include <ctype.h>
4022+#include <stdlib.h> 4030+#include <stdlib.h>
4023 #if ((' ' & 0x0FF) == 0x020) 4031 #if ((' ' & 0x0FF) == 0x020)
4024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4026@@ -2848,36 +3537,50 @@ main () 4034@@ -2848,36 +3545,50 @@ main ()
4027 for (i = 0; i < 256; i++) 4035 for (i = 0; i < 256; i++)
4028 if (XOR (islower (i), ISLOWER (i)) 4036 if (XOR (islower (i), ISLOWER (i))
4029 || toupper (i) != TOUPPER (i)) 4037 || toupper (i) != TOUPPER (i))
4030- exit(2); 4038- exit(2);
4031- exit (0); 4039- exit (0);
4032+ return 2; 4040+ return 2;
4033+ return 0; 4041+ return 0;
4034 } 4042 }
4035 _ACEOF 4043 _ACEOF
4036 rm -f conftest$ac_exeext 4044 rm -f conftest$ac_exeext
4037-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4045-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038- (eval $ac_link) 2>&5 4046- (eval $ac_link) 2>&5
4039+if { (ac_try="$ac_link" 4047+if { (ac_try="$ac_link"
@@ -4077,44 +4085,44 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4077,44 +4085,44 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4077+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4085+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4078 fi 4086 fi
4079+ 4087+
4080+ 4088+
4081 fi 4089 fi
4082 fi 4090 fi
4083-echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4091-echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4084-echo "${ECHO_T}$ac_cv_header_stdc" >&6 4092-echo "${ECHO_T}$ac_cv_header_stdc" >&6
4085+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4093+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4086+$as_echo "$ac_cv_header_stdc" >&6; } 4094+$as_echo "$ac_cv_header_stdc" >&6; }
4087 if test $ac_cv_header_stdc = yes; then 4095 if test $ac_cv_header_stdc = yes; then
4088  4096
4089 cat >>confdefs.h <<\_ACEOF 4097 cat >>confdefs.h <<\_ACEOF
4090@@ -2900,11 +3603,11 @@ fi 4098@@ -2900,11 +3611,11 @@ fi
4091 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4099 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4092 inttypes.h stdint.h unistd.h 4100 inttypes.h stdint.h unistd.h
4093 do 4101 do
4094-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4102-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4095-echo "$as_me:$LINENO: checking for $ac_header" >&5 4103-echo "$as_me:$LINENO: checking for $ac_header" >&5
4096-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4104-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4097-if eval "test \"\${$as_ac_Header+set}\" = set"; then 4105-if eval "test \"\${$as_ac_Header+set}\" = set"; then
4098- echo $ECHO_N "(cached) $ECHO_C" >&6 4106- echo $ECHO_N "(cached) $ECHO_C" >&6
4099+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4107+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4100+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4108+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4101+$as_echo_n "checking for $ac_header... " >&6; } 4109+$as_echo_n "checking for $ac_header... " >&6; }
4102+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4110+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4103+ $as_echo_n "(cached) " >&6 4111+ $as_echo_n "(cached) " >&6
4104 else 4112 else
4105 cat >conftest.$ac_ext <<_ACEOF 4113 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */ 4114 /* confdefs.h. */
4107@@ -2917,41 +3620,42 @@ $ac_includes_default 4115@@ -2917,41 +3628,42 @@ $ac_includes_default
4108 #include <$ac_header> 4116 #include <$ac_header>
4109 _ACEOF 4117 _ACEOF
4110 rm -f conftest.$ac_objext 4118 rm -f conftest.$ac_objext
4111-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4119-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112- (eval $ac_compile) 2>conftest.er1 4120- (eval $ac_compile) 2>conftest.er1
4113+if { (ac_try="$ac_compile" 4121+if { (ac_try="$ac_compile"
4114+case "(($ac_try" in 4122+case "(($ac_try" in
4115+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4123+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116+ *) ac_try_echo=$ac_try;; 4124+ *) ac_try_echo=$ac_try;;
4117+esac 4125+esac
4118+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4126+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4119+$as_echo "$ac_try_echo") >&5 4127+$as_echo "$ac_try_echo") >&5
4120+ (eval "$ac_compile") 2>conftest.er1 4128+ (eval "$ac_compile") 2>conftest.er1
@@ -4161,27 +4169,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4161,27 +4169,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4161+ac_res=`eval 'as_val=${'$as_ac_Header'} 4169+ac_res=`eval 'as_val=${'$as_ac_Header'}
4162+ $as_echo "$as_val"'` 4170+ $as_echo "$as_val"'`
4163+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4171+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4164+$as_echo "$ac_res" >&6; } 4172+$as_echo "$ac_res" >&6; }
4165+as_val=`eval 'as_val=${'$as_ac_Header'} 4173+as_val=`eval 'as_val=${'$as_ac_Header'}
4166+ $as_echo "$as_val"'` 4174+ $as_echo "$as_val"'`
4167+ if test "x$as_val" = x""yes; then 4175+ if test "x$as_val" = x""yes; then
4168 cat >>confdefs.h <<_ACEOF 4176 cat >>confdefs.h <<_ACEOF
4169-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4177-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4170+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4178+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4171 _ACEOF 4179 _ACEOF
4172  4180
4173 fi 4181 fi
4174@@ -2959,73 +3663,15 @@ fi 4182@@ -2959,73 +3671,15 @@ fi
4175 done 4183 done
4176  4184
4177  4185
4178-echo "$as_me:$LINENO: checking for short" >&5 4186-echo "$as_me:$LINENO: checking for short" >&5
4179-echo $ECHO_N "checking for short... $ECHO_C" >&6 4187-echo $ECHO_N "checking for short... $ECHO_C" >&6
4180-if test "${ac_cv_type_short+set}" = set; then 4188-if test "${ac_cv_type_short+set}" = set; then
4181- echo $ECHO_N "(cached) $ECHO_C" >&6 4189- echo $ECHO_N "(cached) $ECHO_C" >&6
4182-else 4190-else
4183- cat >conftest.$ac_ext <<_ACEOF 4191- cat >conftest.$ac_ext <<_ACEOF
4184-/* confdefs.h. */ 4192-/* confdefs.h. */
4185-_ACEOF 4193-_ACEOF
4186-cat confdefs.h >>conftest.$ac_ext 4194-cat confdefs.h >>conftest.$ac_ext
4187-cat >>conftest.$ac_ext <<_ACEOF 4195-cat >>conftest.$ac_ext <<_ACEOF
@@ -4242,36 +4250,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4242,36 +4250,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4242+$as_echo_n "checking size of short... " >&6; } 4250+$as_echo_n "checking size of short... " >&6; }
4243 if test "${ac_cv_sizeof_short+set}" = set; then 4251 if test "${ac_cv_sizeof_short+set}" = set; then
4244- echo $ECHO_N "(cached) $ECHO_C" >&6 4252- echo $ECHO_N "(cached) $ECHO_C" >&6
4245+ $as_echo_n "(cached) " >&6 4253+ $as_echo_n "(cached) " >&6
4246 else 4254 else
4247- if test "$ac_cv_type_short" = yes; then 4255- if test "$ac_cv_type_short" = yes; then
4248- # The cast to unsigned long works around a bug in the HP C Compiler 4256- # The cast to unsigned long works around a bug in the HP C Compiler
4249- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4257- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4250- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4258- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4251- # This bug is HP SR number 8606223364. 4259- # This bug is HP SR number 8606223364.
4252 if test "$cross_compiling" = yes; then 4260 if test "$cross_compiling" = yes; then
4253 # Depending upon the size, compute the lo and hi bounds. 4261 # Depending upon the size, compute the lo and hi bounds.
4254 cat >conftest.$ac_ext <<_ACEOF 4262 cat >conftest.$ac_ext <<_ACEOF
4255@@ -3038,7 +3684,7 @@ $ac_includes_default 4263@@ -3038,7 +3692,7 @@ $ac_includes_default
4256 int 4264 int
4257 main () 4265 main ()
4258 { 4266 {
4259-static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 4267-static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4260+static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; 4268+static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
4261 test_array [0] = 0 4269 test_array [0] = 0
4262  4270
4263 ; 4271 ;
4264@@ -3046,27 +3692,23 @@ test_array [0] = 0 4272@@ -3046,27 +3700,23 @@ test_array [0] = 0
4265 } 4273 }
4266 _ACEOF 4274 _ACEOF
4267 rm -f conftest.$ac_objext 4275 rm -f conftest.$ac_objext
4268-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4276-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269- (eval $ac_compile) 2>conftest.er1 4277- (eval $ac_compile) 2>conftest.er1
4270+if { (ac_try="$ac_compile" 4278+if { (ac_try="$ac_compile"
4271+case "(($ac_try" in 4279+case "(($ac_try" in
4272+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4280+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273+ *) ac_try_echo=$ac_try;; 4281+ *) ac_try_echo=$ac_try;;
4274+esac 4282+esac
4275+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4283+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4276+$as_echo "$ac_try_echo") >&5 4284+$as_echo "$ac_try_echo") >&5
4277+ (eval "$ac_compile") 2>conftest.er1 4285+ (eval "$ac_compile") 2>conftest.er1
@@ -4292,36 +4300,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4292,36 +4300,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4292- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4300- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293- (eval $ac_try) 2>&5 4301- (eval $ac_try) 2>&5
4294- ac_status=$? 4302- ac_status=$?
4295- echo "$as_me:$LINENO: \$? = $ac_status" >&5 4303- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296- (exit $ac_status); }; }; then 4304- (exit $ac_status); }; }; then
4297+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298+ (exit $ac_status); } && { 4306+ (exit $ac_status); } && {
4299+ test -z "$ac_c_werror_flag" || 4307+ test -z "$ac_c_werror_flag" ||
4300+ test ! -s conftest.err 4308+ test ! -s conftest.err
4301+ } && test -s conftest.$ac_objext; then 4309+ } && test -s conftest.$ac_objext; then
4302 ac_lo=0 ac_mid=0 4310 ac_lo=0 ac_mid=0
4303 while :; do 4311 while :; do
4304 cat >conftest.$ac_ext <<_ACEOF 4312 cat >conftest.$ac_ext <<_ACEOF
4305@@ -3079,7 +3721,7 @@ $ac_includes_default 4313@@ -3079,7 +3729,7 @@ $ac_includes_default
4306 int 4314 int
4307 main () 4315 main ()
4308 { 4316 {
4309-static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4317-static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4310+static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; 4318+static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4311 test_array [0] = 0 4319 test_array [0] = 0
4312  4320
4313 ; 4321 ;
4314@@ -3087,46 +3729,43 @@ test_array [0] = 0 4322@@ -3087,46 +3737,43 @@ test_array [0] = 0
4315 } 4323 }
4316 _ACEOF 4324 _ACEOF
4317 rm -f conftest.$ac_objext 4325 rm -f conftest.$ac_objext
4318-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4326-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319- (eval $ac_compile) 2>conftest.er1 4327- (eval $ac_compile) 2>conftest.er1
4320+if { (ac_try="$ac_compile" 4328+if { (ac_try="$ac_compile"
4321+case "(($ac_try" in 4329+case "(($ac_try" in
4322+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4330+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323+ *) ac_try_echo=$ac_try;; 4331+ *) ac_try_echo=$ac_try;;
4324+esac 4332+esac
4325+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4333+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4326+$as_echo "$ac_try_echo") >&5 4334+$as_echo "$ac_try_echo") >&5
4327+ (eval "$ac_compile") 2>conftest.er1 4335+ (eval "$ac_compile") 2>conftest.er1
@@ -4372,36 +4380,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4372,36 +4380,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4372+ 4380+
4373+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4381+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 done 4382 done
4375 else 4383 else
4376- echo "$as_me: failed program was:" >&5 4384- echo "$as_me: failed program was:" >&5
4377+ $as_echo "$as_me: failed program was:" >&5 4385+ $as_echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5 4386 sed 's/^/| /' conftest.$ac_ext >&5
4379  4387
4380-cat >conftest.$ac_ext <<_ACEOF 4388-cat >conftest.$ac_ext <<_ACEOF
4381+ cat >conftest.$ac_ext <<_ACEOF 4389+ cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */ 4390 /* confdefs.h. */
4383 _ACEOF 4391 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext 4392 cat confdefs.h >>conftest.$ac_ext
4385@@ -3136,7 +3775,7 @@ $ac_includes_default 4393@@ -3136,7 +3783,7 @@ $ac_includes_default
4386 int 4394 int
4387 main () 4395 main ()
4388 { 4396 {
4389-static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 4397-static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4390+static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; 4398+static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
4391 test_array [0] = 0 4399 test_array [0] = 0
4392  4400
4393 ; 4401 ;
4394@@ -3144,27 +3783,23 @@ test_array [0] = 0 4402@@ -3144,27 +3791,23 @@ test_array [0] = 0
4395 } 4403 }
4396 _ACEOF 4404 _ACEOF
4397 rm -f conftest.$ac_objext 4405 rm -f conftest.$ac_objext
4398-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4406-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399- (eval $ac_compile) 2>conftest.er1 4407- (eval $ac_compile) 2>conftest.er1
4400+if { (ac_try="$ac_compile" 4408+if { (ac_try="$ac_compile"
4401+case "(($ac_try" in 4409+case "(($ac_try" in
4402+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4410+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403+ *) ac_try_echo=$ac_try;; 4411+ *) ac_try_echo=$ac_try;;
4404+esac 4412+esac
4405+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4413+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4406+$as_echo "$ac_try_echo") >&5 4414+$as_echo "$ac_try_echo") >&5
4407+ (eval "$ac_compile") 2>conftest.er1 4415+ (eval "$ac_compile") 2>conftest.er1
@@ -4422,36 +4430,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4422,36 +4430,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4422- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4430- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423- (eval $ac_try) 2>&5 4431- (eval $ac_try) 2>&5
4424- ac_status=$? 4432- ac_status=$?
4425- echo "$as_me:$LINENO: \$? = $ac_status" >&5 4433- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426- (exit $ac_status); }; }; then 4434- (exit $ac_status); }; }; then
4427+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428+ (exit $ac_status); } && { 4436+ (exit $ac_status); } && {
4429+ test -z "$ac_c_werror_flag" || 4437+ test -z "$ac_c_werror_flag" ||
4430+ test ! -s conftest.err 4438+ test ! -s conftest.err
4431+ } && test -s conftest.$ac_objext; then 4439+ } && test -s conftest.$ac_objext; then
4432 ac_hi=-1 ac_mid=-1 4440 ac_hi=-1 ac_mid=-1
4433 while :; do 4441 while :; do
4434 cat >conftest.$ac_ext <<_ACEOF 4442 cat >conftest.$ac_ext <<_ACEOF
4435@@ -3177,7 +3812,7 @@ $ac_includes_default 4443@@ -3177,7 +3820,7 @@ $ac_includes_default
4436 int 4444 int
4437 main () 4445 main ()
4438 { 4446 {
4439-static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 4447-static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4440+static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; 4448+static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
4441 test_array [0] = 0 4449 test_array [0] = 0
4442  4450
4443 ; 4451 ;
4444@@ -3185,50 +3820,49 @@ test_array [0] = 0 4452@@ -3185,50 +3828,49 @@ test_array [0] = 0
4445 } 4453 }
4446 _ACEOF 4454 _ACEOF
4447 rm -f conftest.$ac_objext 4455 rm -f conftest.$ac_objext
4448-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4456-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449- (eval $ac_compile) 2>conftest.er1 4457- (eval $ac_compile) 2>conftest.er1
4450+if { (ac_try="$ac_compile" 4458+if { (ac_try="$ac_compile"
4451+case "(($ac_try" in 4459+case "(($ac_try" in
4452+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4460+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453+ *) ac_try_echo=$ac_try;; 4461+ *) ac_try_echo=$ac_try;;
4454+esac 4462+esac
4455+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4463+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4456+$as_echo "$ac_try_echo") >&5 4464+$as_echo "$ac_try_echo") >&5
4457+ (eval "$ac_compile") 2>conftest.er1 4465+ (eval "$ac_compile") 2>conftest.er1
@@ -4510,36 +4518,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4510,36 +4518,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4510-ac_lo= ac_hi= 4518-ac_lo= ac_hi=
4511+ ac_lo= ac_hi= 4519+ ac_lo= ac_hi=
4512 fi 4520 fi
4513-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4521-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4514+ 4522+
4515+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4523+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 fi 4524 fi
4517-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4525-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4518+ 4526+
4519+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4527+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 # Binary search between lo and hi bounds. 4528 # Binary search between lo and hi bounds.
4521 while test "x$ac_lo" != "x$ac_hi"; do 4529 while test "x$ac_lo" != "x$ac_hi"; do
4522 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4523@@ -3242,7 +3876,7 @@ $ac_includes_default 4531@@ -3242,7 +3884,7 @@ $ac_includes_default
4524 int 4532 int
4525 main () 4533 main ()
4526 { 4534 {
4527-static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 4535-static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4528+static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; 4536+static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
4529 test_array [0] = 0 4537 test_array [0] = 0
4530  4538
4531 ; 4539 ;
4532@@ -3250,52 +3884,48 @@ test_array [0] = 0 4540@@ -3250,52 +3892,48 @@ test_array [0] = 0
4533 } 4541 }
4534 _ACEOF 4542 _ACEOF
4535 rm -f conftest.$ac_objext 4543 rm -f conftest.$ac_objext
4536-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4544-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537- (eval $ac_compile) 2>conftest.er1 4545- (eval $ac_compile) 2>conftest.er1
4538+if { (ac_try="$ac_compile" 4546+if { (ac_try="$ac_compile"
4539+case "(($ac_try" in 4547+case "(($ac_try" in
4540+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4548+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541+ *) ac_try_echo=$ac_try;; 4549+ *) ac_try_echo=$ac_try;;
4542+esac 4550+esac
4543+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4551+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4544+$as_echo "$ac_try_echo") >&5 4552+$as_echo "$ac_try_echo") >&5
4545+ (eval "$ac_compile") 2>conftest.er1 4553+ (eval "$ac_compile") 2>conftest.er1
@@ -4598,38 +4606,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4598,38 +4606,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4598+ fi ;; 4606+ fi ;;
4599 esac 4607 esac
4600 else 4608 else
4601- if test "$cross_compiling" = yes; then 4609- if test "$cross_compiling" = yes; then
4602- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4610- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4603-See \`config.log' for more details." >&5 4611-See \`config.log' for more details." >&5
4604-echo "$as_me: error: cannot run test program while cross compiling 4612-echo "$as_me: error: cannot run test program while cross compiling
4605-See \`config.log' for more details." >&2;} 4613-See \`config.log' for more details." >&2;}
4606- { (exit 1); exit 1; }; } 4614- { (exit 1); exit 1; }; }
4607-else 4615-else
4608 cat >conftest.$ac_ext <<_ACEOF 4616 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h. */ 4617 /* confdefs.h. */
4610 _ACEOF 4618 _ACEOF
4611@@ -3303,8 +3933,8 @@ cat confdefs.h >>conftest.$ac_ext 4619@@ -3303,8 +3941,8 @@ cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF 4620 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */ 4621 /* end confdefs.h. */
4614 $ac_includes_default 4622 $ac_includes_default
4615-long longval () { return (long) (sizeof (short)); } 4623-long longval () { return (long) (sizeof (short)); }
4616-unsigned long ulongval () { return (long) (sizeof (short)); } 4624-unsigned long ulongval () { return (long) (sizeof (short)); }
4617+static long int longval () { return (long int) (sizeof (short)); } 4625+static long int longval () { return (long int) (sizeof (short)); }
4618+static unsigned long int ulongval () { return (long int) (sizeof (short)); } 4626+static unsigned long int ulongval () { return (long int) (sizeof (short)); }
4619 #include <stdio.h> 4627 #include <stdio.h>
4620 #include <stdlib.h> 4628 #include <stdlib.h>
4621 int 4629 int
4622@@ -3313,133 +3943,94 @@ main () 4630@@ -3313,133 +3951,94 @@ main ()
4623  4631
4624 FILE *f = fopen ("conftest.val", "w"); 4632 FILE *f = fopen ("conftest.val", "w");
4625 if (! f) 4633 if (! f)
4626- exit (1); 4634- exit (1);
4627- if (((long) (sizeof (short))) < 0) 4635- if (((long) (sizeof (short))) < 0)
4628+ return 1; 4636+ return 1;
4629+ if (((long int) (sizeof (short))) < 0) 4637+ if (((long int) (sizeof (short))) < 0)
4630 { 4638 {
4631- long i = longval (); 4639- long i = longval ();
4632- if (i != ((long) (sizeof (short)))) 4640- if (i != ((long) (sizeof (short))))
4633- exit (1); 4641- exit (1);
4634- fprintf (f, "%ld\n", i); 4642- fprintf (f, "%ld\n", i);
4635+ long int i = longval (); 4643+ long int i = longval ();
@@ -4798,36 +4806,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4798,36 +4806,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4798+$as_echo_n "checking size of int... " >&6; } 4806+$as_echo_n "checking size of int... " >&6; }
4799 if test "${ac_cv_sizeof_int+set}" = set; then 4807 if test "${ac_cv_sizeof_int+set}" = set; then
4800- echo $ECHO_N "(cached) $ECHO_C" >&6 4808- echo $ECHO_N "(cached) $ECHO_C" >&6
4801+ $as_echo_n "(cached) " >&6 4809+ $as_echo_n "(cached) " >&6
4802 else 4810 else
4803- if test "$ac_cv_type_int" = yes; then 4811- if test "$ac_cv_type_int" = yes; then
4804- # The cast to unsigned long works around a bug in the HP C Compiler 4812- # The cast to unsigned long works around a bug in the HP C Compiler
4805- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4813- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4806- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4814- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4807- # This bug is HP SR number 8606223364. 4815- # This bug is HP SR number 8606223364.
4808 if test "$cross_compiling" = yes; then 4816 if test "$cross_compiling" = yes; then
4809 # Depending upon the size, compute the lo and hi bounds. 4817 # Depending upon the size, compute the lo and hi bounds.
4810 cat >conftest.$ac_ext <<_ACEOF 4818 cat >conftest.$ac_ext <<_ACEOF
4811@@ -3452,7 +4043,7 @@ $ac_includes_default 4819@@ -3452,7 +4051,7 @@ $ac_includes_default
4812 int 4820 int
4813 main () 4821 main ()
4814 { 4822 {
4815-static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 4823-static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4816+static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; 4824+static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
4817 test_array [0] = 0 4825 test_array [0] = 0
4818  4826
4819 ; 4827 ;
4820@@ -3460,27 +4051,23 @@ test_array [0] = 0 4828@@ -3460,27 +4059,23 @@ test_array [0] = 0
4821 } 4829 }
4822 _ACEOF 4830 _ACEOF
4823 rm -f conftest.$ac_objext 4831 rm -f conftest.$ac_objext
4824-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4832-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825- (eval $ac_compile) 2>conftest.er1 4833- (eval $ac_compile) 2>conftest.er1
4826+if { (ac_try="$ac_compile" 4834+if { (ac_try="$ac_compile"
4827+case "(($ac_try" in 4835+case "(($ac_try" in
4828+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4836+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829+ *) ac_try_echo=$ac_try;; 4837+ *) ac_try_echo=$ac_try;;
4830+esac 4838+esac
4831+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4839+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832+$as_echo "$ac_try_echo") >&5 4840+$as_echo "$ac_try_echo") >&5
4833+ (eval "$ac_compile") 2>conftest.er1 4841+ (eval "$ac_compile") 2>conftest.er1
@@ -4848,36 +4856,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4848,36 +4856,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4848- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4856- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849- (eval $ac_try) 2>&5 4857- (eval $ac_try) 2>&5
4850- ac_status=$? 4858- ac_status=$?
4851- echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852- (exit $ac_status); }; }; then 4860- (exit $ac_status); }; }; then
4853+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854+ (exit $ac_status); } && { 4862+ (exit $ac_status); } && {
4855+ test -z "$ac_c_werror_flag" || 4863+ test -z "$ac_c_werror_flag" ||
4856+ test ! -s conftest.err 4864+ test ! -s conftest.err
4857+ } && test -s conftest.$ac_objext; then 4865+ } && test -s conftest.$ac_objext; then
4858 ac_lo=0 ac_mid=0 4866 ac_lo=0 ac_mid=0
4859 while :; do 4867 while :; do
4860 cat >conftest.$ac_ext <<_ACEOF 4868 cat >conftest.$ac_ext <<_ACEOF
4861@@ -3493,7 +4080,7 @@ $ac_includes_default 4869@@ -3493,7 +4088,7 @@ $ac_includes_default
4862 int 4870 int
4863 main () 4871 main ()
4864 { 4872 {
4865-static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4873-static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4866+static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 4874+static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
4867 test_array [0] = 0 4875 test_array [0] = 0
4868  4876
4869 ; 4877 ;
4870@@ -3501,46 +4088,43 @@ test_array [0] = 0 4878@@ -3501,46 +4096,43 @@ test_array [0] = 0
4871 } 4879 }
4872 _ACEOF 4880 _ACEOF
4873 rm -f conftest.$ac_objext 4881 rm -f conftest.$ac_objext
4874-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4882-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875- (eval $ac_compile) 2>conftest.er1 4883- (eval $ac_compile) 2>conftest.er1
4876+if { (ac_try="$ac_compile" 4884+if { (ac_try="$ac_compile"
4877+case "(($ac_try" in 4885+case "(($ac_try" in
4878+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4886+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879+ *) ac_try_echo=$ac_try;; 4887+ *) ac_try_echo=$ac_try;;
4880+esac 4888+esac
4881+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4889+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4882+$as_echo "$ac_try_echo") >&5 4890+$as_echo "$ac_try_echo") >&5
4883+ (eval "$ac_compile") 2>conftest.er1 4891+ (eval "$ac_compile") 2>conftest.er1
@@ -4928,36 +4936,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4928,36 +4936,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4928+ 4936+
4929+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 done 4938 done
4931 else 4939 else
4932- echo "$as_me: failed program was:" >&5 4940- echo "$as_me: failed program was:" >&5
4933+ $as_echo "$as_me: failed program was:" >&5 4941+ $as_echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5 4942 sed 's/^/| /' conftest.$ac_ext >&5
4935  4943
4936-cat >conftest.$ac_ext <<_ACEOF 4944-cat >conftest.$ac_ext <<_ACEOF
4937+ cat >conftest.$ac_ext <<_ACEOF 4945+ cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */ 4946 /* confdefs.h. */
4939 _ACEOF 4947 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext 4948 cat confdefs.h >>conftest.$ac_ext
4941@@ -3550,7 +4134,7 @@ $ac_includes_default 4949@@ -3550,7 +4142,7 @@ $ac_includes_default
4942 int 4950 int
4943 main () 4951 main ()
4944 { 4952 {
4945-static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 4953-static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4946+static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; 4954+static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
4947 test_array [0] = 0 4955 test_array [0] = 0
4948  4956
4949 ; 4957 ;
4950@@ -3558,27 +4142,23 @@ test_array [0] = 0 4958@@ -3558,27 +4150,23 @@ test_array [0] = 0
4951 } 4959 }
4952 _ACEOF 4960 _ACEOF
4953 rm -f conftest.$ac_objext 4961 rm -f conftest.$ac_objext
4954-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4962-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955- (eval $ac_compile) 2>conftest.er1 4963- (eval $ac_compile) 2>conftest.er1
4956+if { (ac_try="$ac_compile" 4964+if { (ac_try="$ac_compile"
4957+case "(($ac_try" in 4965+case "(($ac_try" in
4958+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4966+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959+ *) ac_try_echo=$ac_try;; 4967+ *) ac_try_echo=$ac_try;;
4960+esac 4968+esac
4961+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4969+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4962+$as_echo "$ac_try_echo") >&5 4970+$as_echo "$ac_try_echo") >&5
4963+ (eval "$ac_compile") 2>conftest.er1 4971+ (eval "$ac_compile") 2>conftest.er1
@@ -4978,36 +4986,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -4978,36 +4986,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
4978- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4986- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979- (eval $ac_try) 2>&5 4987- (eval $ac_try) 2>&5
4980- ac_status=$? 4988- ac_status=$?
4981- echo "$as_me:$LINENO: \$? = $ac_status" >&5 4989- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982- (exit $ac_status); }; }; then 4990- (exit $ac_status); }; }; then
4983+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4991+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984+ (exit $ac_status); } && { 4992+ (exit $ac_status); } && {
4985+ test -z "$ac_c_werror_flag" || 4993+ test -z "$ac_c_werror_flag" ||
4986+ test ! -s conftest.err 4994+ test ! -s conftest.err
4987+ } && test -s conftest.$ac_objext; then 4995+ } && test -s conftest.$ac_objext; then
4988 ac_hi=-1 ac_mid=-1 4996 ac_hi=-1 ac_mid=-1
4989 while :; do 4997 while :; do
4990 cat >conftest.$ac_ext <<_ACEOF 4998 cat >conftest.$ac_ext <<_ACEOF
4991@@ -3591,7 +4171,7 @@ $ac_includes_default 4999@@ -3591,7 +4179,7 @@ $ac_includes_default
4992 int 5000 int
4993 main () 5001 main ()
4994 { 5002 {
4995-static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5003-static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4996+static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; 5004+static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
4997 test_array [0] = 0 5005 test_array [0] = 0
4998  5006
4999 ; 5007 ;
5000@@ -3599,50 +4179,49 @@ test_array [0] = 0 5008@@ -3599,50 +4187,49 @@ test_array [0] = 0
5001 } 5009 }
5002 _ACEOF 5010 _ACEOF
5003 rm -f conftest.$ac_objext 5011 rm -f conftest.$ac_objext
5004-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5012-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005- (eval $ac_compile) 2>conftest.er1 5013- (eval $ac_compile) 2>conftest.er1
5006+if { (ac_try="$ac_compile" 5014+if { (ac_try="$ac_compile"
5007+case "(($ac_try" in 5015+case "(($ac_try" in
5008+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5016+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009+ *) ac_try_echo=$ac_try;; 5017+ *) ac_try_echo=$ac_try;;
5010+esac 5018+esac
5011+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5019+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5012+$as_echo "$ac_try_echo") >&5 5020+$as_echo "$ac_try_echo") >&5
5013+ (eval "$ac_compile") 2>conftest.er1 5021+ (eval "$ac_compile") 2>conftest.er1
@@ -5066,36 +5074,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5066,36 +5074,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5066-ac_lo= ac_hi= 5074-ac_lo= ac_hi=
5067+ ac_lo= ac_hi= 5075+ ac_lo= ac_hi=
5068 fi 5076 fi
5069-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5077-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070+ 5078+
5071+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5079+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 fi 5080 fi
5073-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5081-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5074+ 5082+
5075+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5083+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 # Binary search between lo and hi bounds. 5084 # Binary search between lo and hi bounds.
5077 while test "x$ac_lo" != "x$ac_hi"; do 5085 while test "x$ac_lo" != "x$ac_hi"; do
5078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5079@@ -3656,7 +4235,7 @@ $ac_includes_default 5087@@ -3656,7 +4243,7 @@ $ac_includes_default
5080 int 5088 int
5081 main () 5089 main ()
5082 { 5090 {
5083-static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5091-static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5084+static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 5092+static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5085 test_array [0] = 0 5093 test_array [0] = 0
5086  5094
5087 ; 5095 ;
5088@@ -3664,52 +4243,48 @@ test_array [0] = 0 5096@@ -3664,52 +4251,48 @@ test_array [0] = 0
5089 } 5097 }
5090 _ACEOF 5098 _ACEOF
5091 rm -f conftest.$ac_objext 5099 rm -f conftest.$ac_objext
5092-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5100-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093- (eval $ac_compile) 2>conftest.er1 5101- (eval $ac_compile) 2>conftest.er1
5094+if { (ac_try="$ac_compile" 5102+if { (ac_try="$ac_compile"
5095+case "(($ac_try" in 5103+case "(($ac_try" in
5096+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5104+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097+ *) ac_try_echo=$ac_try;; 5105+ *) ac_try_echo=$ac_try;;
5098+esac 5106+esac
5099+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5107+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100+$as_echo "$ac_try_echo") >&5 5108+$as_echo "$ac_try_echo") >&5
5101+ (eval "$ac_compile") 2>conftest.er1 5109+ (eval "$ac_compile") 2>conftest.er1
@@ -5154,38 +5162,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5154,38 +5162,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5154+ fi ;; 5162+ fi ;;
5155 esac 5163 esac
5156 else 5164 else
5157- if test "$cross_compiling" = yes; then 5165- if test "$cross_compiling" = yes; then
5158- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5166- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5159-See \`config.log' for more details." >&5 5167-See \`config.log' for more details." >&5
5160-echo "$as_me: error: cannot run test program while cross compiling 5168-echo "$as_me: error: cannot run test program while cross compiling
5161-See \`config.log' for more details." >&2;} 5169-See \`config.log' for more details." >&2;}
5162- { (exit 1); exit 1; }; } 5170- { (exit 1); exit 1; }; }
5163-else 5171-else
5164 cat >conftest.$ac_ext <<_ACEOF 5172 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */ 5173 /* confdefs.h. */
5166 _ACEOF 5174 _ACEOF
5167@@ -3717,8 +4292,8 @@ cat confdefs.h >>conftest.$ac_ext 5175@@ -3717,8 +4300,8 @@ cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF 5176 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */ 5177 /* end confdefs.h. */
5170 $ac_includes_default 5178 $ac_includes_default
5171-long longval () { return (long) (sizeof (int)); } 5179-long longval () { return (long) (sizeof (int)); }
5172-unsigned long ulongval () { return (long) (sizeof (int)); } 5180-unsigned long ulongval () { return (long) (sizeof (int)); }
5173+static long int longval () { return (long int) (sizeof (int)); } 5181+static long int longval () { return (long int) (sizeof (int)); }
5174+static unsigned long int ulongval () { return (long int) (sizeof (int)); } 5182+static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5175 #include <stdio.h> 5183 #include <stdio.h>
5176 #include <stdlib.h> 5184 #include <stdlib.h>
5177 int 5185 int
5178@@ -3727,133 +4302,94 @@ main () 5186@@ -3727,133 +4310,94 @@ main ()
5179  5187
5180 FILE *f = fopen ("conftest.val", "w"); 5188 FILE *f = fopen ("conftest.val", "w");
5181 if (! f) 5189 if (! f)
5182- exit (1); 5190- exit (1);
5183- if (((long) (sizeof (int))) < 0) 5191- if (((long) (sizeof (int))) < 0)
5184+ return 1; 5192+ return 1;
5185+ if (((long int) (sizeof (int))) < 0) 5193+ if (((long int) (sizeof (int))) < 0)
5186 { 5194 {
5187- long i = longval (); 5195- long i = longval ();
5188- if (i != ((long) (sizeof (int)))) 5196- if (i != ((long) (sizeof (int))))
5189- exit (1); 5197- exit (1);
5190- fprintf (f, "%ld\n", i); 5198- fprintf (f, "%ld\n", i);
5191+ long int i = longval (); 5199+ long int i = longval ();
@@ -5354,36 +5362,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5354,36 +5362,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5354+$as_echo_n "checking size of long... " >&6; } 5362+$as_echo_n "checking size of long... " >&6; }
5355 if test "${ac_cv_sizeof_long+set}" = set; then 5363 if test "${ac_cv_sizeof_long+set}" = set; then
5356- echo $ECHO_N "(cached) $ECHO_C" >&6 5364- echo $ECHO_N "(cached) $ECHO_C" >&6
5357+ $as_echo_n "(cached) " >&6 5365+ $as_echo_n "(cached) " >&6
5358 else 5366 else
5359- if test "$ac_cv_type_long" = yes; then 5367- if test "$ac_cv_type_long" = yes; then
5360- # The cast to unsigned long works around a bug in the HP C Compiler 5368- # The cast to unsigned long works around a bug in the HP C Compiler
5361- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5369- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5362- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5370- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5363- # This bug is HP SR number 8606223364. 5371- # This bug is HP SR number 8606223364.
5364 if test "$cross_compiling" = yes; then 5372 if test "$cross_compiling" = yes; then
5365 # Depending upon the size, compute the lo and hi bounds. 5373 # Depending upon the size, compute the lo and hi bounds.
5366 cat >conftest.$ac_ext <<_ACEOF 5374 cat >conftest.$ac_ext <<_ACEOF
5367@@ -3866,7 +4402,7 @@ $ac_includes_default 5375@@ -3866,7 +4410,7 @@ $ac_includes_default
5368 int 5376 int
5369 main () 5377 main ()
5370 { 5378 {
5371-static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 5379-static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5372+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; 5380+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
5373 test_array [0] = 0 5381 test_array [0] = 0
5374  5382
5375 ; 5383 ;
5376@@ -3874,27 +4410,23 @@ test_array [0] = 0 5384@@ -3874,27 +4418,23 @@ test_array [0] = 0
5377 } 5385 }
5378 _ACEOF 5386 _ACEOF
5379 rm -f conftest.$ac_objext 5387 rm -f conftest.$ac_objext
5380-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5388-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381- (eval $ac_compile) 2>conftest.er1 5389- (eval $ac_compile) 2>conftest.er1
5382+if { (ac_try="$ac_compile" 5390+if { (ac_try="$ac_compile"
5383+case "(($ac_try" in 5391+case "(($ac_try" in
5384+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5392+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385+ *) ac_try_echo=$ac_try;; 5393+ *) ac_try_echo=$ac_try;;
5386+esac 5394+esac
5387+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5395+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388+$as_echo "$ac_try_echo") >&5 5396+$as_echo "$ac_try_echo") >&5
5389+ (eval "$ac_compile") 2>conftest.er1 5397+ (eval "$ac_compile") 2>conftest.er1
@@ -5404,36 +5412,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5404,36 +5412,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5404- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5412- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405- (eval $ac_try) 2>&5 5413- (eval $ac_try) 2>&5
5406- ac_status=$? 5414- ac_status=$?
5407- echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408- (exit $ac_status); }; }; then 5416- (exit $ac_status); }; }; then
5409+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410+ (exit $ac_status); } && { 5418+ (exit $ac_status); } && {
5411+ test -z "$ac_c_werror_flag" || 5419+ test -z "$ac_c_werror_flag" ||
5412+ test ! -s conftest.err 5420+ test ! -s conftest.err
5413+ } && test -s conftest.$ac_objext; then 5421+ } && test -s conftest.$ac_objext; then
5414 ac_lo=0 ac_mid=0 5422 ac_lo=0 ac_mid=0
5415 while :; do 5423 while :; do
5416 cat >conftest.$ac_ext <<_ACEOF 5424 cat >conftest.$ac_ext <<_ACEOF
5417@@ -3907,7 +4439,7 @@ $ac_includes_default 5425@@ -3907,7 +4447,7 @@ $ac_includes_default
5418 int 5426 int
5419 main () 5427 main ()
5420 { 5428 {
5421-static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5429-static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5422+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 5430+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5423 test_array [0] = 0 5431 test_array [0] = 0
5424  5432
5425 ; 5433 ;
5426@@ -3915,46 +4447,43 @@ test_array [0] = 0 5434@@ -3915,46 +4455,43 @@ test_array [0] = 0
5427 } 5435 }
5428 _ACEOF 5436 _ACEOF
5429 rm -f conftest.$ac_objext 5437 rm -f conftest.$ac_objext
5430-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5438-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431- (eval $ac_compile) 2>conftest.er1 5439- (eval $ac_compile) 2>conftest.er1
5432+if { (ac_try="$ac_compile" 5440+if { (ac_try="$ac_compile"
5433+case "(($ac_try" in 5441+case "(($ac_try" in
5434+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5442+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435+ *) ac_try_echo=$ac_try;; 5443+ *) ac_try_echo=$ac_try;;
5436+esac 5444+esac
5437+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5445+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438+$as_echo "$ac_try_echo") >&5 5446+$as_echo "$ac_try_echo") >&5
5439+ (eval "$ac_compile") 2>conftest.er1 5447+ (eval "$ac_compile") 2>conftest.er1
@@ -5484,36 +5492,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5484,36 +5492,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5484+ 5492+
5485+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5493+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 done 5494 done
5487 else 5495 else
5488- echo "$as_me: failed program was:" >&5 5496- echo "$as_me: failed program was:" >&5
5489+ $as_echo "$as_me: failed program was:" >&5 5497+ $as_echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5 5498 sed 's/^/| /' conftest.$ac_ext >&5
5491  5499
5492-cat >conftest.$ac_ext <<_ACEOF 5500-cat >conftest.$ac_ext <<_ACEOF
5493+ cat >conftest.$ac_ext <<_ACEOF 5501+ cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */ 5502 /* confdefs.h. */
5495 _ACEOF 5503 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext 5504 cat confdefs.h >>conftest.$ac_ext
5497@@ -3964,7 +4493,7 @@ $ac_includes_default 5505@@ -3964,7 +4501,7 @@ $ac_includes_default
5498 int 5506 int
5499 main () 5507 main ()
5500 { 5508 {
5501-static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 5509-static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5502+static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; 5510+static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
5503 test_array [0] = 0 5511 test_array [0] = 0
5504  5512
5505 ; 5513 ;
5506@@ -3972,27 +4501,23 @@ test_array [0] = 0 5514@@ -3972,27 +4509,23 @@ test_array [0] = 0
5507 } 5515 }
5508 _ACEOF 5516 _ACEOF
5509 rm -f conftest.$ac_objext 5517 rm -f conftest.$ac_objext
5510-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5518-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511- (eval $ac_compile) 2>conftest.er1 5519- (eval $ac_compile) 2>conftest.er1
5512+if { (ac_try="$ac_compile" 5520+if { (ac_try="$ac_compile"
5513+case "(($ac_try" in 5521+case "(($ac_try" in
5514+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5522+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515+ *) ac_try_echo=$ac_try;; 5523+ *) ac_try_echo=$ac_try;;
5516+esac 5524+esac
5517+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5525+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5518+$as_echo "$ac_try_echo") >&5 5526+$as_echo "$ac_try_echo") >&5
5519+ (eval "$ac_compile") 2>conftest.er1 5527+ (eval "$ac_compile") 2>conftest.er1
@@ -5534,36 +5542,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5534,36 +5542,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5534- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5542- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535- (eval $ac_try) 2>&5 5543- (eval $ac_try) 2>&5
5536- ac_status=$? 5544- ac_status=$?
5537- echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538- (exit $ac_status); }; }; then 5546- (exit $ac_status); }; }; then
5539+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5547+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540+ (exit $ac_status); } && { 5548+ (exit $ac_status); } && {
5541+ test -z "$ac_c_werror_flag" || 5549+ test -z "$ac_c_werror_flag" ||
5542+ test ! -s conftest.err 5550+ test ! -s conftest.err
5543+ } && test -s conftest.$ac_objext; then 5551+ } && test -s conftest.$ac_objext; then
5544 ac_hi=-1 ac_mid=-1 5552 ac_hi=-1 ac_mid=-1
5545 while :; do 5553 while :; do
5546 cat >conftest.$ac_ext <<_ACEOF 5554 cat >conftest.$ac_ext <<_ACEOF
5547@@ -4005,7 +4530,7 @@ $ac_includes_default 5555@@ -4005,7 +4538,7 @@ $ac_includes_default
5548 int 5556 int
5549 main () 5557 main ()
5550 { 5558 {
5551-static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 5559-static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5552+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; 5560+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
5553 test_array [0] = 0 5561 test_array [0] = 0
5554  5562
5555 ; 5563 ;
5556@@ -4013,50 +4538,49 @@ test_array [0] = 0 5564@@ -4013,50 +4546,49 @@ test_array [0] = 0
5557 } 5565 }
5558 _ACEOF 5566 _ACEOF
5559 rm -f conftest.$ac_objext 5567 rm -f conftest.$ac_objext
5560-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5568-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561- (eval $ac_compile) 2>conftest.er1 5569- (eval $ac_compile) 2>conftest.er1
5562+if { (ac_try="$ac_compile" 5570+if { (ac_try="$ac_compile"
5563+case "(($ac_try" in 5571+case "(($ac_try" in
5564+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5572+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565+ *) ac_try_echo=$ac_try;; 5573+ *) ac_try_echo=$ac_try;;
5566+esac 5574+esac
5567+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5575+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568+$as_echo "$ac_try_echo") >&5 5576+$as_echo "$ac_try_echo") >&5
5569+ (eval "$ac_compile") 2>conftest.er1 5577+ (eval "$ac_compile") 2>conftest.er1
@@ -5622,36 +5630,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5622,36 +5630,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5622-ac_lo= ac_hi= 5630-ac_lo= ac_hi=
5623+ ac_lo= ac_hi= 5631+ ac_lo= ac_hi=
5624 fi 5632 fi
5625-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5633-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5626+ 5634+
5627+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5635+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi 5636 fi
5629-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5637-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630+ 5638+
5631+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5639+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 # Binary search between lo and hi bounds. 5640 # Binary search between lo and hi bounds.
5633 while test "x$ac_lo" != "x$ac_hi"; do 5641 while test "x$ac_lo" != "x$ac_hi"; do
5634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5635@@ -4070,7 +4594,7 @@ $ac_includes_default 5643@@ -4070,7 +4602,7 @@ $ac_includes_default
5636 int 5644 int
5637 main () 5645 main ()
5638 { 5646 {
5639-static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 5647-static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5640+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 5648+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
5641 test_array [0] = 0 5649 test_array [0] = 0
5642  5650
5643 ; 5651 ;
5644@@ -4078,52 +4602,48 @@ test_array [0] = 0 5652@@ -4078,52 +4610,48 @@ test_array [0] = 0
5645 } 5653 }
5646 _ACEOF 5654 _ACEOF
5647 rm -f conftest.$ac_objext 5655 rm -f conftest.$ac_objext
5648-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5656-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649- (eval $ac_compile) 2>conftest.er1 5657- (eval $ac_compile) 2>conftest.er1
5650+if { (ac_try="$ac_compile" 5658+if { (ac_try="$ac_compile"
5651+case "(($ac_try" in 5659+case "(($ac_try" in
5652+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5660+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653+ *) ac_try_echo=$ac_try;; 5661+ *) ac_try_echo=$ac_try;;
5654+esac 5662+esac
5655+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5663+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5656+$as_echo "$ac_try_echo") >&5 5664+$as_echo "$ac_try_echo") >&5
5657+ (eval "$ac_compile") 2>conftest.er1 5665+ (eval "$ac_compile") 2>conftest.er1
@@ -5710,38 +5718,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5710,38 +5718,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5710+ fi ;; 5718+ fi ;;
5711 esac 5719 esac
5712 else 5720 else
5713- if test "$cross_compiling" = yes; then 5721- if test "$cross_compiling" = yes; then
5714- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5722- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5715-See \`config.log' for more details." >&5 5723-See \`config.log' for more details." >&5
5716-echo "$as_me: error: cannot run test program while cross compiling 5724-echo "$as_me: error: cannot run test program while cross compiling
5717-See \`config.log' for more details." >&2;} 5725-See \`config.log' for more details." >&2;}
5718- { (exit 1); exit 1; }; } 5726- { (exit 1); exit 1; }; }
5719-else 5727-else
5720 cat >conftest.$ac_ext <<_ACEOF 5728 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */ 5729 /* confdefs.h. */
5722 _ACEOF 5730 _ACEOF
5723@@ -4131,8 +4651,8 @@ cat confdefs.h >>conftest.$ac_ext 5731@@ -4131,8 +4659,8 @@ cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF 5732 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */ 5733 /* end confdefs.h. */
5726 $ac_includes_default 5734 $ac_includes_default
5727-long longval () { return (long) (sizeof (long)); } 5735-long longval () { return (long) (sizeof (long)); }
5728-unsigned long ulongval () { return (long) (sizeof (long)); } 5736-unsigned long ulongval () { return (long) (sizeof (long)); }
5729+static long int longval () { return (long int) (sizeof (long)); } 5737+static long int longval () { return (long int) (sizeof (long)); }
5730+static unsigned long int ulongval () { return (long int) (sizeof (long)); } 5738+static unsigned long int ulongval () { return (long int) (sizeof (long)); }
5731 #include <stdio.h> 5739 #include <stdio.h>
5732 #include <stdlib.h> 5740 #include <stdlib.h>
5733 int 5741 int
5734@@ -4141,133 +4661,94 @@ main () 5742@@ -4141,133 +4669,94 @@ main ()
5735  5743
5736 FILE *f = fopen ("conftest.val", "w"); 5744 FILE *f = fopen ("conftest.val", "w");
5737 if (! f) 5745 if (! f)
5738- exit (1); 5746- exit (1);
5739- if (((long) (sizeof (long))) < 0) 5747- if (((long) (sizeof (long))) < 0)
5740+ return 1; 5748+ return 1;
5741+ if (((long int) (sizeof (long))) < 0) 5749+ if (((long int) (sizeof (long))) < 0)
5742 { 5750 {
5743- long i = longval (); 5751- long i = longval ();
5744- if (i != ((long) (sizeof (long)))) 5752- if (i != ((long) (sizeof (long))))
5745- exit (1); 5753- exit (1);
5746- fprintf (f, "%ld\n", i); 5754- fprintf (f, "%ld\n", i);
5747+ long int i = longval (); 5755+ long int i = longval ();
@@ -5910,36 +5918,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5910,36 +5918,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5910+$as_echo_n "checking size of long long... " >&6; } 5918+$as_echo_n "checking size of long long... " >&6; }
5911 if test "${ac_cv_sizeof_long_long+set}" = set; then 5919 if test "${ac_cv_sizeof_long_long+set}" = set; then
5912- echo $ECHO_N "(cached) $ECHO_C" >&6 5920- echo $ECHO_N "(cached) $ECHO_C" >&6
5913+ $as_echo_n "(cached) " >&6 5921+ $as_echo_n "(cached) " >&6
5914 else 5922 else
5915- if test "$ac_cv_type_long_long" = yes; then 5923- if test "$ac_cv_type_long_long" = yes; then
5916- # The cast to unsigned long works around a bug in the HP C Compiler 5924- # The cast to unsigned long works around a bug in the HP C Compiler
5917- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5925- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5918- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5926- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5919- # This bug is HP SR number 8606223364. 5927- # This bug is HP SR number 8606223364.
5920 if test "$cross_compiling" = yes; then 5928 if test "$cross_compiling" = yes; then
5921 # Depending upon the size, compute the lo and hi bounds. 5929 # Depending upon the size, compute the lo and hi bounds.
5922 cat >conftest.$ac_ext <<_ACEOF 5930 cat >conftest.$ac_ext <<_ACEOF
5923@@ -4280,7 +4761,7 @@ $ac_includes_default 5931@@ -4280,7 +4769,7 @@ $ac_includes_default
5924 int 5932 int
5925 main () 5933 main ()
5926 { 5934 {
5927-static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 5935-static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5928+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)]; 5936+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
5929 test_array [0] = 0 5937 test_array [0] = 0
5930  5938
5931 ; 5939 ;
5932@@ -4288,27 +4769,23 @@ test_array [0] = 0 5940@@ -4288,27 +4777,23 @@ test_array [0] = 0
5933 } 5941 }
5934 _ACEOF 5942 _ACEOF
5935 rm -f conftest.$ac_objext 5943 rm -f conftest.$ac_objext
5936-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5944-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937- (eval $ac_compile) 2>conftest.er1 5945- (eval $ac_compile) 2>conftest.er1
5938+if { (ac_try="$ac_compile" 5946+if { (ac_try="$ac_compile"
5939+case "(($ac_try" in 5947+case "(($ac_try" in
5940+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5948+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941+ *) ac_try_echo=$ac_try;; 5949+ *) ac_try_echo=$ac_try;;
5942+esac 5950+esac
5943+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5951+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944+$as_echo "$ac_try_echo") >&5 5952+$as_echo "$ac_try_echo") >&5
5945+ (eval "$ac_compile") 2>conftest.er1 5953+ (eval "$ac_compile") 2>conftest.er1
@@ -5960,36 +5968,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -5960,36 +5968,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
5960- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5968- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961- (eval $ac_try) 2>&5 5969- (eval $ac_try) 2>&5
5962- ac_status=$? 5970- ac_status=$?
5963- echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964- (exit $ac_status); }; }; then 5972- (exit $ac_status); }; }; then
5965+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5973+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966+ (exit $ac_status); } && { 5974+ (exit $ac_status); } && {
5967+ test -z "$ac_c_werror_flag" || 5975+ test -z "$ac_c_werror_flag" ||
5968+ test ! -s conftest.err 5976+ test ! -s conftest.err
5969+ } && test -s conftest.$ac_objext; then 5977+ } && test -s conftest.$ac_objext; then
5970 ac_lo=0 ac_mid=0 5978 ac_lo=0 ac_mid=0
5971 while :; do 5979 while :; do
5972 cat >conftest.$ac_ext <<_ACEOF 5980 cat >conftest.$ac_ext <<_ACEOF
5973@@ -4321,7 +4798,7 @@ $ac_includes_default 5981@@ -4321,7 +4806,7 @@ $ac_includes_default
5974 int 5982 int
5975 main () 5983 main ()
5976 { 5984 {
5977-static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5985-static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5978+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; 5986+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
5979 test_array [0] = 0 5987 test_array [0] = 0
5980  5988
5981 ; 5989 ;
5982@@ -4329,46 +4806,43 @@ test_array [0] = 0 5990@@ -4329,46 +4814,43 @@ test_array [0] = 0
5983 } 5991 }
5984 _ACEOF 5992 _ACEOF
5985 rm -f conftest.$ac_objext 5993 rm -f conftest.$ac_objext
5986-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5994-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987- (eval $ac_compile) 2>conftest.er1 5995- (eval $ac_compile) 2>conftest.er1
5988+if { (ac_try="$ac_compile" 5996+if { (ac_try="$ac_compile"
5989+case "(($ac_try" in 5997+case "(($ac_try" in
5990+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5998+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991+ *) ac_try_echo=$ac_try;; 5999+ *) ac_try_echo=$ac_try;;
5992+esac 6000+esac
5993+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6001+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5994+$as_echo "$ac_try_echo") >&5 6002+$as_echo "$ac_try_echo") >&5
5995+ (eval "$ac_compile") 2>conftest.er1 6003+ (eval "$ac_compile") 2>conftest.er1
@@ -6040,36 +6048,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6040,36 +6048,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6040+ 6048+
6041+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 done 6050 done
6043 else 6051 else
6044- echo "$as_me: failed program was:" >&5 6052- echo "$as_me: failed program was:" >&5
6045+ $as_echo "$as_me: failed program was:" >&5 6053+ $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5 6054 sed 's/^/| /' conftest.$ac_ext >&5
6047  6055
6048-cat >conftest.$ac_ext <<_ACEOF 6056-cat >conftest.$ac_ext <<_ACEOF
6049+ cat >conftest.$ac_ext <<_ACEOF 6057+ cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */ 6058 /* confdefs.h. */
6051 _ACEOF 6059 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext 6060 cat confdefs.h >>conftest.$ac_ext
6053@@ -4378,7 +4852,7 @@ $ac_includes_default 6061@@ -4378,7 +4860,7 @@ $ac_includes_default
6054 int 6062 int
6055 main () 6063 main ()
6056 { 6064 {
6057-static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 6065-static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6058+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)]; 6066+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
6059 test_array [0] = 0 6067 test_array [0] = 0
6060  6068
6061 ; 6069 ;
6062@@ -4386,27 +4860,23 @@ test_array [0] = 0 6070@@ -4386,27 +4868,23 @@ test_array [0] = 0
6063 } 6071 }
6064 _ACEOF 6072 _ACEOF
6065 rm -f conftest.$ac_objext 6073 rm -f conftest.$ac_objext
6066-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6074-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067- (eval $ac_compile) 2>conftest.er1 6075- (eval $ac_compile) 2>conftest.er1
6068+if { (ac_try="$ac_compile" 6076+if { (ac_try="$ac_compile"
6069+case "(($ac_try" in 6077+case "(($ac_try" in
6070+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6078+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071+ *) ac_try_echo=$ac_try;; 6079+ *) ac_try_echo=$ac_try;;
6072+esac 6080+esac
6073+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6081+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074+$as_echo "$ac_try_echo") >&5 6082+$as_echo "$ac_try_echo") >&5
6075+ (eval "$ac_compile") 2>conftest.er1 6083+ (eval "$ac_compile") 2>conftest.er1
@@ -6090,36 +6098,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6090,36 +6098,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6090- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6098- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091- (eval $ac_try) 2>&5 6099- (eval $ac_try) 2>&5
6092- ac_status=$? 6100- ac_status=$?
6093- echo "$as_me:$LINENO: \$? = $ac_status" >&5 6101- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094- (exit $ac_status); }; }; then 6102- (exit $ac_status); }; }; then
6095+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6103+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096+ (exit $ac_status); } && { 6104+ (exit $ac_status); } && {
6097+ test -z "$ac_c_werror_flag" || 6105+ test -z "$ac_c_werror_flag" ||
6098+ test ! -s conftest.err 6106+ test ! -s conftest.err
6099+ } && test -s conftest.$ac_objext; then 6107+ } && test -s conftest.$ac_objext; then
6100 ac_hi=-1 ac_mid=-1 6108 ac_hi=-1 ac_mid=-1
6101 while :; do 6109 while :; do
6102 cat >conftest.$ac_ext <<_ACEOF 6110 cat >conftest.$ac_ext <<_ACEOF
6103@@ -4419,7 +4889,7 @@ $ac_includes_default 6111@@ -4419,7 +4897,7 @@ $ac_includes_default
6104 int 6112 int
6105 main () 6113 main ()
6106 { 6114 {
6107-static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 6115-static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6108+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)]; 6116+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
6109 test_array [0] = 0 6117 test_array [0] = 0
6110  6118
6111 ; 6119 ;
6112@@ -4427,50 +4897,49 @@ test_array [0] = 0 6120@@ -4427,50 +4905,49 @@ test_array [0] = 0
6113 } 6121 }
6114 _ACEOF 6122 _ACEOF
6115 rm -f conftest.$ac_objext 6123 rm -f conftest.$ac_objext
6116-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6124-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117- (eval $ac_compile) 2>conftest.er1 6125- (eval $ac_compile) 2>conftest.er1
6118+if { (ac_try="$ac_compile" 6126+if { (ac_try="$ac_compile"
6119+case "(($ac_try" in 6127+case "(($ac_try" in
6120+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6128+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121+ *) ac_try_echo=$ac_try;; 6129+ *) ac_try_echo=$ac_try;;
6122+esac 6130+esac
6123+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6131+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6124+$as_echo "$ac_try_echo") >&5 6132+$as_echo "$ac_try_echo") >&5
6125+ (eval "$ac_compile") 2>conftest.er1 6133+ (eval "$ac_compile") 2>conftest.er1
@@ -6178,36 +6186,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6178,36 +6186,36 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6178-ac_lo= ac_hi= 6186-ac_lo= ac_hi=
6179+ ac_lo= ac_hi= 6187+ ac_lo= ac_hi=
6180 fi 6188 fi
6181-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6189-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182+ 6190+
6183+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6191+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 fi 6192 fi
6185-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6193-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186+ 6194+
6187+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6195+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 # Binary search between lo and hi bounds. 6196 # Binary search between lo and hi bounds.
6189 while test "x$ac_lo" != "x$ac_hi"; do 6197 while test "x$ac_lo" != "x$ac_hi"; do
6190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6191@@ -4484,7 +4953,7 @@ $ac_includes_default 6199@@ -4484,7 +4961,7 @@ $ac_includes_default
6192 int 6200 int
6193 main () 6201 main ()
6194 { 6202 {
6195-static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6203-static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6196+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)]; 6204+static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
6197 test_array [0] = 0 6205 test_array [0] = 0
6198  6206
6199 ; 6207 ;
6200@@ -4492,52 +4961,48 @@ test_array [0] = 0 6208@@ -4492,52 +4969,48 @@ test_array [0] = 0
6201 } 6209 }
6202 _ACEOF 6210 _ACEOF
6203 rm -f conftest.$ac_objext 6211 rm -f conftest.$ac_objext
6204-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6212-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205- (eval $ac_compile) 2>conftest.er1 6213- (eval $ac_compile) 2>conftest.er1
6206+if { (ac_try="$ac_compile" 6214+if { (ac_try="$ac_compile"
6207+case "(($ac_try" in 6215+case "(($ac_try" in
6208+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6216+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209+ *) ac_try_echo=$ac_try;; 6217+ *) ac_try_echo=$ac_try;;
6210+esac 6218+esac
6211+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6219+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212+$as_echo "$ac_try_echo") >&5 6220+$as_echo "$ac_try_echo") >&5
6213+ (eval "$ac_compile") 2>conftest.er1 6221+ (eval "$ac_compile") 2>conftest.er1
@@ -6266,38 +6274,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6266,38 +6274,38 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6266+ fi ;; 6274+ fi ;;
6267 esac 6275 esac
6268 else 6276 else
6269- if test "$cross_compiling" = yes; then 6277- if test "$cross_compiling" = yes; then
6270- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6278- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6271-See \`config.log' for more details." >&5 6279-See \`config.log' for more details." >&5
6272-echo "$as_me: error: cannot run test program while cross compiling 6280-echo "$as_me: error: cannot run test program while cross compiling
6273-See \`config.log' for more details." >&2;} 6281-See \`config.log' for more details." >&2;}
6274- { (exit 1); exit 1; }; } 6282- { (exit 1); exit 1; }; }
6275-else 6283-else
6276 cat >conftest.$ac_ext <<_ACEOF 6284 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */ 6285 /* confdefs.h. */
6278 _ACEOF 6286 _ACEOF
6279@@ -4545,8 +5010,8 @@ cat confdefs.h >>conftest.$ac_ext 6287@@ -4545,8 +5018,8 @@ cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF 6288 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */ 6289 /* end confdefs.h. */
6282 $ac_includes_default 6290 $ac_includes_default
6283-long longval () { return (long) (sizeof (long long)); } 6291-long longval () { return (long) (sizeof (long long)); }
6284-unsigned long ulongval () { return (long) (sizeof (long long)); } 6292-unsigned long ulongval () { return (long) (sizeof (long long)); }
6285+static long int longval () { return (long int) (sizeof (long long)); } 6293+static long int longval () { return (long int) (sizeof (long long)); }
6286+static unsigned long int ulongval () { return (long int) (sizeof (long long)); } 6294+static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
6287 #include <stdio.h> 6295 #include <stdio.h>
6288 #include <stdlib.h> 6296 #include <stdlib.h>
6289 int 6297 int
6290@@ -4555,61 +5020,80 @@ main () 6298@@ -4555,61 +5028,80 @@ main ()
6291  6299
6292 FILE *f = fopen ("conftest.val", "w"); 6300 FILE *f = fopen ("conftest.val", "w");
6293 if (! f) 6301 if (! f)
6294- exit (1); 6302- exit (1);
6295- if (((long) (sizeof (long long))) < 0) 6303- if (((long) (sizeof (long long))) < 0)
6296+ return 1; 6304+ return 1;
6297+ if (((long int) (sizeof (long long))) < 0) 6305+ if (((long int) (sizeof (long long))) < 0)
6298 { 6306 {
6299- long i = longval (); 6307- long i = longval ();
6300- if (i != ((long) (sizeof (long long)))) 6308- if (i != ((long) (sizeof (long long))))
6301- exit (1); 6309- exit (1);
6302- fprintf (f, "%ld\n", i); 6310- fprintf (f, "%ld\n", i);
6303+ long int i = longval (); 6311+ long int i = longval ();
@@ -6387,45 +6395,45 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6387,45 +6395,45 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6387- ac_cv_sizeof_long_long=0 6395- ac_cv_sizeof_long_long=0
6388-fi 6396-fi
6389 fi 6397 fi
6390-echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6398-echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6391-echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 6399-echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6392+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6400+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6393+$as_echo "$ac_cv_sizeof_long_long" >&6; } 6401+$as_echo "$ac_cv_sizeof_long_long" >&6; }
6394+ 6402+
6395+ 6403+
6396+ 6404+
6397 cat >>confdefs.h <<_ACEOF 6405 cat >>confdefs.h <<_ACEOF
6398 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6406 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6399 _ACEOF 6407 _ACEOF
6400@@ -4627,12 +5111,13 @@ case 4 in 6408@@ -4627,12 +5119,13 @@ case 4 in
6401 $ac_cv_sizeof_long) SIZE32="long";; 6409 $ac_cv_sizeof_long) SIZE32="long";;
6402 esac 6410 esac
6403  6411
6404-echo "$as_me:$LINENO: checking for int16_t" >&5 6412-echo "$as_me:$LINENO: checking for int16_t" >&5
6405-echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 6413-echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6406+{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5 6414+{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6407+$as_echo_n "checking for int16_t... " >&6; } 6415+$as_echo_n "checking for int16_t... " >&6; }
6408 if test "${ac_cv_type_int16_t+set}" = set; then 6416 if test "${ac_cv_type_int16_t+set}" = set; then
6409- echo $ECHO_N "(cached) $ECHO_C" >&6 6417- echo $ECHO_N "(cached) $ECHO_C" >&6
6410+ $as_echo_n "(cached) " >&6 6418+ $as_echo_n "(cached) " >&6
6411 else 6419 else
6412- cat >conftest.$ac_ext <<_ACEOF 6420- cat >conftest.$ac_ext <<_ACEOF
6413+ ac_cv_type_int16_t=no 6421+ ac_cv_type_int16_t=no
6414+cat >conftest.$ac_ext <<_ACEOF 6422+cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h. */ 6423 /* confdefs.h. */
6416 _ACEOF 6424 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext 6425 cat confdefs.h >>conftest.$ac_ext
6418@@ -4642,57 +5127,95 @@ $ac_includes_default 6426@@ -4642,57 +5135,95 @@ $ac_includes_default
6419 int 6427 int
6420 main () 6428 main ()
6421 { 6429 {
6422-if ((int16_t *) 0) 6430-if ((int16_t *) 0)
6423- return 0; 6431- return 0;
6424 if (sizeof (int16_t)) 6432 if (sizeof (int16_t))
6425- return 0; 6433- return 0;
6426+ return 0; 6434+ return 0;
6427 ; 6435 ;
6428 return 0; 6436 return 0;
6429 } 6437 }
6430 _ACEOF 6438 _ACEOF
6431 rm -f conftest.$ac_objext 6439 rm -f conftest.$ac_objext
@@ -6531,27 +6539,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6531,27 +6539,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6531-echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 6539-echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6532+{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5 6540+{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
6533+$as_echo_n "checking for int32_t... " >&6; } 6541+$as_echo_n "checking for int32_t... " >&6; }
6534 if test "${ac_cv_type_int32_t+set}" = set; then 6542 if test "${ac_cv_type_int32_t+set}" = set; then
6535- echo $ECHO_N "(cached) $ECHO_C" >&6 6543- echo $ECHO_N "(cached) $ECHO_C" >&6
6536+ $as_echo_n "(cached) " >&6 6544+ $as_echo_n "(cached) " >&6
6537 else 6545 else
6538- cat >conftest.$ac_ext <<_ACEOF 6546- cat >conftest.$ac_ext <<_ACEOF
6539+ ac_cv_type_int32_t=no 6547+ ac_cv_type_int32_t=no
6540+cat >conftest.$ac_ext <<_ACEOF 6548+cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */ 6549 /* confdefs.h. */
6542 _ACEOF 6550 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext 6551 cat confdefs.h >>conftest.$ac_ext
6544@@ -4702,79 +5225,118 @@ $ac_includes_default 6552@@ -4702,79 +5233,118 @@ $ac_includes_default
6545 int 6553 int
6546 main () 6554 main ()
6547 { 6555 {
6548-if ((int32_t *) 0) 6556-if ((int32_t *) 0)
6549- return 0; 6557- return 0;
6550 if (sizeof (int32_t)) 6558 if (sizeof (int32_t))
6551- return 0; 6559- return 0;
6552+ return 0; 6560+ return 0;
6553 ; 6561 ;
6554 return 0; 6562 return 0;
6555 } 6563 }
6556 _ACEOF 6564 _ACEOF
6557 rm -f conftest.$ac_objext 6565 rm -f conftest.$ac_objext
@@ -6691,27 +6699,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6691,27 +6699,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6691+ac_res=`eval 'as_val=${'$as_ac_Header'} 6699+ac_res=`eval 'as_val=${'$as_ac_Header'}
6692+ $as_echo "$as_val"'` 6700+ $as_echo "$as_val"'`
6693+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6701+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6694+$as_echo "$ac_res" >&6; } 6702+$as_echo "$ac_res" >&6; }
6695 else 6703 else
6696 # Is the header compilable? 6704 # Is the header compilable?
6697-echo "$as_me:$LINENO: checking $ac_header usability" >&5 6705-echo "$as_me:$LINENO: checking $ac_header usability" >&5
6698-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6706-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6699+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6707+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6700+$as_echo_n "checking $ac_header usability... " >&6; } 6708+$as_echo_n "checking $ac_header usability... " >&6; }
6701 cat >conftest.$ac_ext <<_ACEOF 6709 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */ 6710 /* confdefs.h. */
6703 _ACEOF 6711 _ACEOF
6704@@ -4785,41 +5347,38 @@ $ac_includes_default 6712@@ -4785,41 +5355,38 @@ $ac_includes_default
6705 #include <$ac_header> 6713 #include <$ac_header>
6706 _ACEOF 6714 _ACEOF
6707 rm -f conftest.$ac_objext 6715 rm -f conftest.$ac_objext
6708-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6716-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709- (eval $ac_compile) 2>conftest.er1 6717- (eval $ac_compile) 2>conftest.er1
6710+if { (ac_try="$ac_compile" 6718+if { (ac_try="$ac_compile"
6711+case "(($ac_try" in 6719+case "(($ac_try" in
6712+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6720+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713+ *) ac_try_echo=$ac_try;; 6721+ *) ac_try_echo=$ac_try;;
6714+esac 6722+esac
6715+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6723+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6716+$as_echo "$ac_try_echo") >&5 6724+$as_echo "$ac_try_echo") >&5
6717+ (eval "$ac_compile") 2>conftest.er1 6725+ (eval "$ac_compile") 2>conftest.er1
@@ -6754,27 +6762,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6754,27 +6762,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6754+ 6762+
6755+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6763+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6764+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6757+$as_echo "$ac_header_compiler" >&6; } 6765+$as_echo "$ac_header_compiler" >&6; }
6758  6766
6759 # Is the header present? 6767 # Is the header present?
6760-echo "$as_me:$LINENO: checking $ac_header presence" >&5 6768-echo "$as_me:$LINENO: checking $ac_header presence" >&5
6761-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6769-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6762+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6770+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6763+$as_echo_n "checking $ac_header presence... " >&6; } 6771+$as_echo_n "checking $ac_header presence... " >&6; }
6764 cat >conftest.$ac_ext <<_ACEOF 6772 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */ 6773 /* confdefs.h. */
6766 _ACEOF 6774 _ACEOF
6767@@ -4828,81 +5387,78 @@ cat >>conftest.$ac_ext <<_ACEOF 6775@@ -4828,81 +5395,78 @@ cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */ 6776 /* end confdefs.h. */
6769 #include <$ac_header> 6777 #include <$ac_header>
6770 _ACEOF 6778 _ACEOF
6771-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6779-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6772- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6780- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6773+if { (ac_try="$ac_cpp conftest.$ac_ext" 6781+if { (ac_try="$ac_cpp conftest.$ac_ext"
6774+case "(($ac_try" in 6782+case "(($ac_try" in
6775+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6783+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776+ *) ac_try_echo=$ac_try;; 6784+ *) ac_try_echo=$ac_try;;
6777+esac 6785+esac
6778+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6786+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779+$as_echo "$ac_try_echo") >&5 6787+$as_echo "$ac_try_echo") >&5
6780+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6788+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
@@ -6882,27 +6890,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6882,27 +6890,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6882+$as_echo "$ac_res" >&6; } 6890+$as_echo "$ac_res" >&6; }
6883  6891
6884 fi 6892 fi
6885-if test `eval echo '${'$as_ac_Header'}'` = yes; then 6893-if test `eval echo '${'$as_ac_Header'}'` = yes; then
6886+as_val=`eval 'as_val=${'$as_ac_Header'} 6894+as_val=`eval 'as_val=${'$as_ac_Header'}
6887+ $as_echo "$as_val"'` 6895+ $as_echo "$as_val"'`
6888+ if test "x$as_val" = x""yes; then 6896+ if test "x$as_val" = x""yes; then
6889 cat >>confdefs.h <<_ACEOF 6897 cat >>confdefs.h <<_ACEOF
6890-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6898-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6899+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6892 _ACEOF 6900 _ACEOF
6893 SBPCD_H="-DSBPCD_H='1' " 6901 SBPCD_H="-DSBPCD_H='1' "
6894 fi 6902 fi
6895@@ -4912,19 +5468,21 @@ done 6903@@ -4912,19 +5476,21 @@ done
6896  6904
6897 for ac_header in linux/ucdrom.h 6905 for ac_header in linux/ucdrom.h
6898 do 6906 do
6899-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6907-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6900-if eval "test \"\${$as_ac_Header+set}\" = set"; then 6908-if eval "test \"\${$as_ac_Header+set}\" = set"; then
6901- echo "$as_me:$LINENO: checking for $ac_header" >&5 6909- echo "$as_me:$LINENO: checking for $ac_header" >&5
6902-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6910-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6903-if eval "test \"\${$as_ac_Header+set}\" = set"; then 6911-if eval "test \"\${$as_ac_Header+set}\" = set"; then
6904- echo $ECHO_N "(cached) $ECHO_C" >&6 6912- echo $ECHO_N "(cached) $ECHO_C" >&6
6905-fi 6913-fi
6906-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6914-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6907-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6915-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6908+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6916+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -6915,27 +6923,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6915,27 +6923,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6915+ac_res=`eval 'as_val=${'$as_ac_Header'} 6923+ac_res=`eval 'as_val=${'$as_ac_Header'}
6916+ $as_echo "$as_val"'` 6924+ $as_echo "$as_val"'`
6917+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6925+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6918+$as_echo "$ac_res" >&6; } 6926+$as_echo "$ac_res" >&6; }
6919 else 6927 else
6920 # Is the header compilable? 6928 # Is the header compilable?
6921-echo "$as_me:$LINENO: checking $ac_header usability" >&5 6929-echo "$as_me:$LINENO: checking $ac_header usability" >&5
6922-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6930-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6923+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 6931+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6924+$as_echo_n "checking $ac_header usability... " >&6; } 6932+$as_echo_n "checking $ac_header usability... " >&6; }
6925 cat >conftest.$ac_ext <<_ACEOF 6933 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */ 6934 /* confdefs.h. */
6927 _ACEOF 6935 _ACEOF
6928@@ -4935,41 +5493,38 @@ $ac_includes_default 6936@@ -4935,41 +5501,38 @@ $ac_includes_default
6929 #include <$ac_header> 6937 #include <$ac_header>
6930 _ACEOF 6938 _ACEOF
6931 rm -f conftest.$ac_objext 6939 rm -f conftest.$ac_objext
6932-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6940-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933- (eval $ac_compile) 2>conftest.er1 6941- (eval $ac_compile) 2>conftest.er1
6934+if { (ac_try="$ac_compile" 6942+if { (ac_try="$ac_compile"
6935+case "(($ac_try" in 6943+case "(($ac_try" in
6936+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6944+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937+ *) ac_try_echo=$ac_try;; 6945+ *) ac_try_echo=$ac_try;;
6938+esac 6946+esac
6939+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6947+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940+$as_echo "$ac_try_echo") >&5 6948+$as_echo "$ac_try_echo") >&5
6941+ (eval "$ac_compile") 2>conftest.er1 6949+ (eval "$ac_compile") 2>conftest.er1
@@ -6978,27 +6986,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -6978,27 +6986,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
6978+ 6986+
6979+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6987+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6988+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6981+$as_echo "$ac_header_compiler" >&6; } 6989+$as_echo "$ac_header_compiler" >&6; }
6982  6990
6983 # Is the header present? 6991 # Is the header present?
6984-echo "$as_me:$LINENO: checking $ac_header presence" >&5 6992-echo "$as_me:$LINENO: checking $ac_header presence" >&5
6985-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6993-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6986+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 6994+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6987+$as_echo_n "checking $ac_header presence... " >&6; } 6995+$as_echo_n "checking $ac_header presence... " >&6; }
6988 cat >conftest.$ac_ext <<_ACEOF 6996 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */ 6997 /* confdefs.h. */
6990 _ACEOF 6998 _ACEOF
6991@@ -4978,81 +5533,78 @@ cat >>conftest.$ac_ext <<_ACEOF 6999@@ -4978,81 +5541,78 @@ cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */ 7000 /* end confdefs.h. */
6993 #include <$ac_header> 7001 #include <$ac_header>
6994 _ACEOF 7002 _ACEOF
6995-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7003-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6996- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7004- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6997+if { (ac_try="$ac_cpp conftest.$ac_ext" 7005+if { (ac_try="$ac_cpp conftest.$ac_ext"
6998+case "(($ac_try" in 7006+case "(($ac_try" in
6999+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7007+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000+ *) ac_try_echo=$ac_try;; 7008+ *) ac_try_echo=$ac_try;;
7001+esac 7009+esac
7002+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7010+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7003+$as_echo "$ac_try_echo") >&5 7011+$as_echo "$ac_try_echo") >&5
7004+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7012+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
@@ -7106,27 +7114,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7106,27 +7114,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7106+$as_echo "$ac_res" >&6; } 7114+$as_echo "$ac_res" >&6; }
7107  7115
7108 fi 7116 fi
7109-if test `eval echo '${'$as_ac_Header'}'` = yes; then 7117-if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110+as_val=`eval 'as_val=${'$as_ac_Header'} 7118+as_val=`eval 'as_val=${'$as_ac_Header'}
7111+ $as_echo "$as_val"'` 7119+ $as_echo "$as_val"'`
7112+ if test "x$as_val" = x""yes; then 7120+ if test "x$as_val" = x""yes; then
7113 cat >>confdefs.h <<_ACEOF 7121 cat >>confdefs.h <<_ACEOF
7114-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7122-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7123+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7116 _ACEOF 7124 _ACEOF
7117 UCDROM_H="-DUCDROM_H='1' " 7125 UCDROM_H="-DUCDROM_H='1' "
7118 fi 7126 fi
7119@@ -5060,39 +5612,359 @@ fi 7127@@ -5060,39 +5620,359 @@ fi
7120 done 7128 done
7121  7129
7122  7130
7123-echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7131-echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7124-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 7132-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7125-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 7133-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7126-if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 7134-if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7127- echo $ECHO_N "(cached) $ECHO_C" >&6 7135- echo $ECHO_N "(cached) $ECHO_C" >&6
7128+for ac_header in util.h 7136+for ac_header in util.h
7129+do 7137+do
7130+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7138+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7131+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7139+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7132+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7140+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
@@ -7487,73 +7495,73 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7487,73 +7495,73 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7487 SET_MAKE="MAKE=${MAKE-make}" 7495 SET_MAKE="MAKE=${MAKE-make}"
7488 fi 7496 fi
7489  7497
7490-echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7498-echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7491-echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7499-echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7492+{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7500+{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7493+$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7501+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7494 if test "${ac_cv_c_const+set}" = set; then 7502 if test "${ac_cv_c_const+set}" = set; then
7495- echo $ECHO_N "(cached) $ECHO_C" >&6 7503- echo $ECHO_N "(cached) $ECHO_C" >&6
7496+ $as_echo_n "(cached) " >&6 7504+ $as_echo_n "(cached) " >&6
7497 else 7505 else
7498 cat >conftest.$ac_ext <<_ACEOF 7506 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */ 7507 /* confdefs.h. */
7500@@ -5108,10 +5980,10 @@ main () 7508@@ -5108,10 +5988,10 @@ main ()
7501 #ifndef __cplusplus 7509 #ifndef __cplusplus
7502 /* Ultrix mips cc rejects this. */ 7510 /* Ultrix mips cc rejects this. */
7503 typedef int charset[2]; 7511 typedef int charset[2];
7504- const charset x; 7512- const charset x;
7505+ const charset cs; 7513+ const charset cs;
7506 /* SunOS 4.1.1 cc rejects this. */ 7514 /* SunOS 4.1.1 cc rejects this. */
7507- char const *const *ccp; 7515- char const *const *ccp;
7508- char **p; 7516- char **p;
7509+ char const *const *pcpcc; 7517+ char const *const *pcpcc;
7510+ char **ppc; 7518+ char **ppc;
7511 /* NEC SVR4.0.2 mips cc rejects this. */ 7519 /* NEC SVR4.0.2 mips cc rejects this. */
7512 struct point {int x, y;}; 7520 struct point {int x, y;};
7513 static struct point const zero = {0,0}; 7521 static struct point const zero = {0,0};
7514@@ -5120,16 +5992,17 @@ main () 7522@@ -5120,16 +6000,17 @@ main ()
7515 an arm of an if-expression whose if-part is not a constant 7523 an arm of an if-expression whose if-part is not a constant
7516 expression */ 7524 expression */
7517 const char *g = "string"; 7525 const char *g = "string";
7518- ccp = &g + (g ? g-g : 0); 7526- ccp = &g + (g ? g-g : 0);
7519+ pcpcc = &g + (g ? g-g : 0); 7527+ pcpcc = &g + (g ? g-g : 0);
7520 /* HPUX 7.0 cc rejects these. */ 7528 /* HPUX 7.0 cc rejects these. */
7521- ++ccp; 7529- ++ccp;
7522- p = (char**) ccp; 7530- p = (char**) ccp;
7523- ccp = (char const *const *) p; 7531- ccp = (char const *const *) p;
7524+ ++pcpcc; 7532+ ++pcpcc;
7525+ ppc = (char**) pcpcc; 7533+ ppc = (char**) pcpcc;
7526+ pcpcc = (char const *const *) ppc; 7534+ pcpcc = (char const *const *) ppc;
7527 { /* SCO 3.2v4 cc rejects this. */ 7535 { /* SCO 3.2v4 cc rejects this. */
7528 char *t; 7536 char *t;
7529 char const *s = 0 ? (char *) 0 : (char const *) 0; 7537 char const *s = 0 ? (char *) 0 : (char const *) 0;
7530  7538
7531 *t++ = 0; 7539 *t++ = 0;
7532+ if (s) return 0; 7540+ if (s) return 0;
7533 } 7541 }
7534 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7535 int x[] = {25, 17}; 7543 int x[] = {25, 17};
7536@@ -5148,7 +6021,9 @@ main () 7544@@ -5148,7 +6029,9 @@ main ()
7537 } 7545 }
7538 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7539 const int foo = 10; 7547 const int foo = 10;
7540+ if (!foo) return 0; 7548+ if (!foo) return 0;
7541 } 7549 }
7542+ return !cs[0] && !zero.x; 7550+ return !cs[0] && !zero.x;
7543 #endif 7551 #endif
7544  7552
7545 ; 7553 ;
7546@@ -5156,42 +6031,39 @@ main () 7554@@ -5156,42 +6039,39 @@ main ()
7547 } 7555 }
7548 _ACEOF 7556 _ACEOF
7549 rm -f conftest.$ac_objext 7557 rm -f conftest.$ac_objext
7550-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7558-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551- (eval $ac_compile) 2>conftest.er1 7559- (eval $ac_compile) 2>conftest.er1
7552+if { (ac_try="$ac_compile" 7560+if { (ac_try="$ac_compile"
7553+case "(($ac_try" in 7561+case "(($ac_try" in
7554+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7562+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555+ *) ac_try_echo=$ac_try;; 7563+ *) ac_try_echo=$ac_try;;
7556+esac 7564+esac
7557+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7565+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7558+$as_echo "$ac_try_echo") >&5 7566+$as_echo "$ac_try_echo") >&5
7559+ (eval "$ac_compile") 2>conftest.er1 7567+ (eval "$ac_compile") 2>conftest.er1
@@ -7596,42 +7604,42 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7596,42 +7604,42 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7596 fi 7604 fi
7597-echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7605-echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7598-echo "${ECHO_T}$ac_cv_c_const" >&6 7606-echo "${ECHO_T}$ac_cv_c_const" >&6
7599+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7607+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7600+$as_echo "$ac_cv_c_const" >&6; } 7608+$as_echo "$ac_cv_c_const" >&6; }
7601 if test $ac_cv_c_const = no; then 7609 if test $ac_cv_c_const = no; then
7602  7610
7603 cat >>confdefs.h <<\_ACEOF 7611 cat >>confdefs.h <<\_ACEOF
7604-#define const 7612-#define const
7605+#define const /**/ 7613+#define const /**/
7606 _ACEOF 7614 _ACEOF
7607  7615
7608 fi 7616 fi
7609@@ -5204,7 +6076,13 @@ fi 7617@@ -5204,7 +6084,13 @@ fi
7610  7618
7611  7619
7612  7620
7613- ac_config_files="$ac_config_files Makefile interface/Makefile paranoia/Makefile" 7621- ac_config_files="$ac_config_files Makefile interface/Makefile paranoia/Makefile"
7614+ 7622+
7615+ 7623+
7616+ 7624+
7617+ 7625+
7618+ 7626+
7619+ac_config_files="$ac_config_files Makefile interface/Makefile paranoia/Makefile" 7627+ac_config_files="$ac_config_files Makefile interface/Makefile paranoia/Makefile"
7620+ 7628+
7621 cat >confcache <<\_ACEOF 7629 cat >confcache <<\_ACEOF
7622 # This file is a shell script that caches the results of configure 7630 # This file is a shell script that caches the results of configure
7623 # tests run on this system so they can be shared between configure 7631 # tests run on this system so they can be shared between configure
7624@@ -5223,39 +6101,59 @@ _ACEOF 7632@@ -5223,39 +6109,59 @@ _ACEOF
7625  7633
7626 # The following way of writing the cache mishandles newlines in values, 7634 # The following way of writing the cache mishandles newlines in values,
7627 # but we know of no workaround that is simple, portable, and efficient. 7635 # but we know of no workaround that is simple, portable, and efficient.
7628-# So, don't put newlines in cache variables' values. 7636-# So, don't put newlines in cache variables' values.
7629+# So, we kill variables containing newlines. 7637+# So, we kill variables containing newlines.
7630 # Ultrix sh set writes to stderr and can't be redirected directly, 7638 # Ultrix sh set writes to stderr and can't be redirected directly,
7631 # and sets the high bit in the cache file unless we assign to the vars. 7639 # and sets the high bit in the cache file unless we assign to the vars.
7632-{ 7640-{
7633+( 7641+(
7634+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7642+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7635+ eval ac_val=\$$ac_var 7643+ eval ac_val=\$$ac_var
7636+ case $ac_val in #( 7644+ case $ac_val in #(
7637+ *${as_nl}*) 7645+ *${as_nl}*)
@@ -7687,27 +7695,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7687,27 +7695,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7687+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7695+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7688+ if test -w "$cache_file"; then 7696+ if test -w "$cache_file"; then
7689+ test "x$cache_file" != "x/dev/null" && 7697+ test "x$cache_file" != "x/dev/null" &&
7690+ { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 7698+ { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7691+$as_echo "$as_me: updating cache $cache_file" >&6;} 7699+$as_echo "$as_me: updating cache $cache_file" >&6;}
7692 cat confcache >$cache_file 7700 cat confcache >$cache_file
7693 else 7701 else
7694- echo "not updating unwritable cache $cache_file" 7702- echo "not updating unwritable cache $cache_file"
7695+ { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 7703+ { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7696+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7704+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7697 fi 7705 fi
7698 fi 7706 fi
7699 rm -f confcache 7707 rm -f confcache
7700@@ -5264,63 +6162,54 @@ test "x$prefix" = xNONE && prefix=$ac_de 7708@@ -5264,63 +6170,54 @@ test "x$prefix" = xNONE && prefix=$ac_de
7701 # Let make expand exec_prefix. 7709 # Let make expand exec_prefix.
7702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7703  7711
7704-# VPATH may cause trouble with some makes, so we remove $(srcdir), 7712-# VPATH may cause trouble with some makes, so we remove $(srcdir),
7705-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7713-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7706-# trailing colons and then remove the whole line if VPATH becomes empty 7714-# trailing colons and then remove the whole line if VPATH becomes empty
7707-# (actually we leave an empty line to preserve line numbers). 7715-# (actually we leave an empty line to preserve line numbers).
7708-if test "x$srcdir" = x.; then 7716-if test "x$srcdir" = x.; then
7709- ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7717- ac_vpsub='/^[ ]*VPATH[ ]*=/{
7710-s/:*\$(srcdir):*/:/; 7718-s/:*\$(srcdir):*/:/;
7711-s/:*\${srcdir}:*/:/; 7719-s/:*\${srcdir}:*/:/;
7712-s/:*@srcdir@:*/:/; 7720-s/:*@srcdir@:*/:/;
7713-s/^\([^=]*=[ ]*\):*/\1/; 7721-s/^\([^=]*=[ ]*\):*/\1/;
@@ -7784,43 +7792,43 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7784,43 +7792,43 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7784- sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 7792- sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7785- # 2. Add them. 7793- # 2. Add them.
7786- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 7794- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7787- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 7795- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7788+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7796+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7789+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 7797+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7790+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7798+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7791+ # will be set to the directory where LIBOBJS objects are built. 7799+ # will be set to the directory where LIBOBJS objects are built.
7792+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7800+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7793+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 7801+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7794 done 7802 done
7795 LIBOBJS=$ac_libobjs 7803 LIBOBJS=$ac_libobjs
7796  7804
7797@@ -5329,11 +6218,12 @@ LTLIBOBJS=$ac_ltlibobjs 7805@@ -5329,11 +6226,12 @@ LTLIBOBJS=$ac_ltlibobjs
7798  7806
7799  7807
7800 : ${CONFIG_STATUS=./config.status} 7808 : ${CONFIG_STATUS=./config.status}
7801+ac_write_fail=0 7809+ac_write_fail=0
7802 ac_clean_files_save=$ac_clean_files 7810 ac_clean_files_save=$ac_clean_files
7803 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7804-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 7812-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7805-echo "$as_me: creating $CONFIG_STATUS" >&6;} 7813-echo "$as_me: creating $CONFIG_STATUS" >&6;}
7806-cat >$CONFIG_STATUS <<_ACEOF 7814-cat >$CONFIG_STATUS <<_ACEOF
7807+{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 7815+{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7808+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 7816+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7809+cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7817+cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7810 #! $SHELL 7818 #! $SHELL
7811 # Generated by $as_me. 7819 # Generated by $as_me.
7812 # Run this file to recreate the current configuration. 7820 # Run this file to recreate the current configuration.
7813@@ -5346,22 +6236,78 @@ ac_cs_silent=false 7821@@ -5346,22 +6244,78 @@ ac_cs_silent=false
7814 SHELL=\${CONFIG_SHELL-$SHELL} 7822 SHELL=\${CONFIG_SHELL-$SHELL}
7815 _ACEOF 7823 _ACEOF
7816  7824
7817-cat >>$CONFIG_STATUS <<\_ACEOF 7825-cat >>$CONFIG_STATUS <<\_ACEOF
7818+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7826+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7819 ## --------------------- ## 7827 ## --------------------- ##
7820 ## M4sh Initialization. ## 7828 ## M4sh Initialization. ##
7821 ## --------------------- ## 7829 ## --------------------- ##
7822  7830
7823-# Be Bourne compatible 7831-# Be Bourne compatible
7824+# Be more Bourne compatible 7832+# Be more Bourne compatible
7825+DUALCASE=1; export DUALCASE # for MKS sh 7833+DUALCASE=1; export DUALCASE # for MKS sh
7826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
@@ -7885,27 +7893,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7885,27 +7893,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7885+ 7893+
7886+# The user is always right. 7894+# The user is always right.
7887+if test "${PATH_SEPARATOR+set}" != set; then 7895+if test "${PATH_SEPARATOR+set}" != set; then
7888+ PATH_SEPARATOR=: 7896+ PATH_SEPARATOR=:
7889+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7897+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7890+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7898+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7891+ PATH_SEPARATOR=';' 7899+ PATH_SEPARATOR=';'
7892+ } 7900+ }
7893 fi 7901 fi
7894-DUALCASE=1; export DUALCASE # for MKS sh 7902-DUALCASE=1; export DUALCASE # for MKS sh
7895  7903
7896 # Support unset when possible. 7904 # Support unset when possible.
7897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7898@@ -5371,33 +6317,60 @@ else 7906@@ -5371,33 +6325,60 @@ else
7899 fi 7907 fi
7900  7908
7901  7909
7902+# IFS 7910+# IFS
7903+# We need space, tab and new line, in precisely that order. Quoting is 7911+# We need space, tab and new line, in precisely that order. Quoting is
7904+# there to prevent editors from complaining about space-tab. 7912+# there to prevent editors from complaining about space-tab.
7905+# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7913+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7906+# splitting by setting IFS to empty value.) 7914+# splitting by setting IFS to empty value.)
7907+IFS=" "" $as_nl" 7915+IFS=" "" $as_nl"
7908+ 7916+
7909+# Find who we are. Look in the path if we contain no directory separator. 7917+# Find who we are. Look in the path if we contain no directory separator.
7910+case $0 in 7918+case $0 in
7911+ *[\\/]* ) as_myself=$0 ;; 7919+ *[\\/]* ) as_myself=$0 ;;
@@ -7960,27 +7968,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -7960,27 +7968,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
7960-if expr a : '\(a\)' >/dev/null 2>&1; then 7968-if expr a : '\(a\)' >/dev/null 2>&1; then
7961+if expr a : '\(a\)' >/dev/null 2>&1 && 7969+if expr a : '\(a\)' >/dev/null 2>&1 &&
7962+ test "X`expr 00001 : '.*\(...\)'`" = X001; then 7970+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
7963 as_expr=expr 7971 as_expr=expr
7964 else 7972 else
7965 as_expr=false 7973 as_expr=false
7966 fi 7974 fi
7967  7975
7968-if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 7976-if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7969+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7977+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7970 as_basename=basename 7978 as_basename=basename
7971 else 7979 else
7972 as_basename=false 7980 as_basename=false
7973@@ -5405,159 +6378,122 @@ fi 7981@@ -5405,159 +6386,122 @@ fi
7974  7982
7975  7983
7976 # Name of the executable. 7984 # Name of the executable.
7977-as_me=`$as_basename "$0" || 7985-as_me=`$as_basename "$0" ||
7978+as_me=`$as_basename -- "$0" || 7986+as_me=`$as_basename -- "$0" ||
7979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7987 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7980 X"$0" : 'X\(//\)$' \| \ 7988 X"$0" : 'X\(//\)$' \| \
7981- X"$0" : 'X\(/\)$' \| \ 7989- X"$0" : 'X\(/\)$' \| \
7982- . : '\(.\)' 2>/dev/null || 7990- . : '\(.\)' 2>/dev/null ||
7983-echo X/"$0" | 7991-echo X/"$0" |
7984- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 7992- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7985- /^X\/\(\/\/\)$/{ s//\1/; q; } 7993- /^X\/\(\/\/\)$/{ s//\1/; q; }
7986- /^X\/\(\/\).*/{ s//\1/; q; } 7994- /^X\/\(\/\).*/{ s//\1/; q; }
@@ -8198,27 +8206,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -8198,27 +8206,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
8198+ as_ln_s='cp -p' 8206+ as_ln_s='cp -p'
8199 fi 8207 fi
8200-elif ln conf$$.file conf$$ 2>/dev/null; then 8208-elif ln conf$$.file conf$$ 2>/dev/null; then
8201- as_ln_s=ln 8209- as_ln_s=ln
8202 else 8210 else
8203 as_ln_s='cp -p' 8211 as_ln_s='cp -p'
8204 fi 8212 fi
8205-rm -f conf$$ conf$$.exe conf$$.file 8213-rm -f conf$$ conf$$.exe conf$$.file
8206+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8214+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8207+rmdir conf$$.dir 2>/dev/null 8215+rmdir conf$$.dir 2>/dev/null
8208  8216
8209 if mkdir -p . 2>/dev/null; then 8217 if mkdir -p . 2>/dev/null; then
8210 as_mkdir_p=: 8218 as_mkdir_p=:
8211@@ -5566,7 +6502,28 @@ else 8219@@ -5566,7 +6510,28 @@ else
8212 as_mkdir_p=false 8220 as_mkdir_p=false
8213 fi 8221 fi
8214  8222
8215-as_executable_p="test -f" 8223-as_executable_p="test -f"
8216+if test -x / >/dev/null 2>&1; then 8224+if test -x / >/dev/null 2>&1; then
8217+ as_test_x='test -x' 8225+ as_test_x='test -x'
8218+else 8226+else
8219+ if ls -dL / >/dev/null 2>&1; then 8227+ if ls -dL / >/dev/null 2>&1; then
8220+ as_ls_L_option=L 8228+ as_ls_L_option=L
8221+ else 8229+ else
8222+ as_ls_L_option= 8230+ as_ls_L_option=
8223+ fi 8231+ fi
8224+ as_test_x=' 8232+ as_test_x='
@@ -8228,27 +8236,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -8228,27 +8236,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
8228+ else 8236+ else
8229+ case $1 in 8237+ case $1 in
8230+ -*)set "./$1";; 8238+ -*)set "./$1";;
8231+ esac; 8239+ esac;
8232+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 8240+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8233+ ???[sx]*):;;*)false;;esac;fi 8241+ ???[sx]*):;;*)false;;esac;fi
8234+ '\'' sh 8242+ '\'' sh
8235+ ' 8243+ '
8236+fi 8244+fi
8237+as_executable_p=$as_test_x 8245+as_executable_p=$as_test_x
8238  8246
8239 # Sed expression to map a string onto a valid CPP name. 8247 # Sed expression to map a string onto a valid CPP name.
8240 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8241@@ -5575,31 +6532,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P 8249@@ -5575,31 +6540,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
8242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8250 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8243  8251
8244  8252
8245-# IFS 8253-# IFS
8246-# We need space, tab and new line, in precisely that order. 8254-# We need space, tab and new line, in precisely that order.
8247-as_nl=' 8255-as_nl='
8248-' 8256-'
8249-IFS=" $as_nl" 8257-IFS=" $as_nl"
8250- 8258-
8251-# CDPATH. 8259-# CDPATH.
8252-$as_unset CDPATH 8260-$as_unset CDPATH
8253- 8261-
8254 exec 6>&1 8262 exec 6>&1
@@ -8264,27 +8272,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -8264,27 +8272,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
8264-## Running $as_me. ## 8272-## Running $as_me. ##
8265-_ASBOX 8273-_ASBOX
8266-} >&5 8274-} >&5
8267-cat >&5 <<_CSEOF 8275-cat >&5 <<_CSEOF
8268- 8276-
8269+# values after options handling. 8277+# values after options handling.
8270+ac_log=" 8278+ac_log="
8271 This file was extended by $as_me, which was 8279 This file was extended by $as_me, which was
8272-generated by GNU Autoconf 2.59. Invocation command line was 8280-generated by GNU Autoconf 2.59. Invocation command line was
8273+generated by GNU Autoconf 2.63. Invocation command line was 8281+generated by GNU Autoconf 2.63. Invocation command line was
8274  8282
8275 CONFIG_FILES = $CONFIG_FILES 8283 CONFIG_FILES = $CONFIG_FILES
8276 CONFIG_HEADERS = $CONFIG_HEADERS 8284 CONFIG_HEADERS = $CONFIG_HEADERS
8277@@ -5607,124 +6547,106 @@ generated by GNU Autoconf 2.59. Invocat 8285@@ -5607,124 +6555,106 @@ generated by GNU Autoconf 2.59. Invocat
8278 CONFIG_COMMANDS = $CONFIG_COMMANDS 8286 CONFIG_COMMANDS = $CONFIG_COMMANDS
8279 $ $0 $@ 8287 $ $0 $@
8280  8288
8281-_CSEOF 8289-_CSEOF
8282-echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8290-echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8283-echo >&5 8291-echo >&5
8284+on `(hostname || uname -n) 2>/dev/null | sed 1q` 8292+on `(hostname || uname -n) 2>/dev/null | sed 1q`
8285+" 8293+"
8286+ 8294+
8287 _ACEOF 8295 _ACEOF
8288  8296
8289-# Files that config.status was made for. 8297-# Files that config.status was made for.
8290-if test -n "$ac_config_files"; then 8298-if test -n "$ac_config_files"; then
@@ -8433,27 +8441,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -8433,27 +8441,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
8433-Try \`$0 --help' for more information." >&5 8441-Try \`$0 --help' for more information." >&5
8434-echo "$as_me: error: unrecognized option: $1 8442-echo "$as_me: error: unrecognized option: $1
8435-Try \`$0 --help' for more information." >&2;} 8443-Try \`$0 --help' for more information." >&2;}
8436+ -*) { $as_echo "$as_me: error: unrecognized option: $1 8444+ -*) { $as_echo "$as_me: error: unrecognized option: $1
8437+Try \`$0 --help' for more information." >&2 8445+Try \`$0 --help' for more information." >&2
8438 { (exit 1); exit 1; }; } ;; 8446 { (exit 1); exit 1; }; } ;;
8439  8447
8440- *) ac_config_targets="$ac_config_targets $1" ;; 8448- *) ac_config_targets="$ac_config_targets $1" ;;
8441+ *) ac_config_targets="$ac_config_targets $1" 8449+ *) ac_config_targets="$ac_config_targets $1"
8442+ ac_need_defaults=false ;; 8450+ ac_need_defaults=false ;;
8443  8451
8444 esac 8452 esac
8445 shift 8453 shift
8446@@ -5738,32 +6660,48 @@ if $ac_cs_silent; then 8454@@ -5738,32 +6668,48 @@ if $ac_cs_silent; then
8447 fi 8455 fi
8448  8456
8449 _ACEOF 8457 _ACEOF
8450-cat >>$CONFIG_STATUS <<_ACEOF 8458-cat >>$CONFIG_STATUS <<_ACEOF
8451+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8459+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8452 if \$ac_cs_recheck; then 8460 if \$ac_cs_recheck; then
8453- echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8461- echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8454- exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8462- exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8455+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8463+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8456+ shift 8464+ shift
8457+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8465+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8458+ CONFIG_SHELL='$SHELL' 8466+ CONFIG_SHELL='$SHELL'
8459+ export CONFIG_SHELL 8467+ export CONFIG_SHELL
@@ -8495,27 +8503,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -8495,27 +8503,27 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
8495+ "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;; 8503+ "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
8496+ "paranoia/Makefile") CONFIG_FILES="$CONFIG_FILES paranoia/Makefile" ;; 8504+ "paranoia/Makefile") CONFIG_FILES="$CONFIG_FILES paranoia/Makefile" ;;
8497+ 8505+
8498+ *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8506+ *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8499+$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8507+$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8500 { (exit 1); exit 1; }; };; 8508 { (exit 1); exit 1; }; };;
8501 esac 8509 esac
8502 done 8510 done
8503  8511
8504+ 8512+
8505 # If the user did not use the arguments to specify the items to instantiate, 8513 # If the user did not use the arguments to specify the items to instantiate,
8506 # then the envvar interface is used. Set only those that are not. 8514 # then the envvar interface is used. Set only those that are not.
8507 # We use the long form for the default assignment because of an extremely 8515 # We use the long form for the default assignment because of an extremely
8508@@ -5773,344 +6711,464 @@ if $ac_need_defaults; then 8516@@ -5773,344 +6719,464 @@ if $ac_need_defaults; then
8509 fi 8517 fi
8510  8518
8511 # Have a temporary directory for convenience. Make it in the build tree 8519 # Have a temporary directory for convenience. Make it in the build tree
8512-# simply because there is no reason to put it here, and in addition, 8520-# simply because there is no reason to put it here, and in addition,
8513+# simply because there is no reason against having it here, and in addition, 8521+# simply because there is no reason against having it here, and in addition,
8514 # creating and moving files from /tmp can sometimes cause problems. 8522 # creating and moving files from /tmp can sometimes cause problems.
8515-# Create a temporary directory, and hook for its removal unless debugging. 8523-# Create a temporary directory, and hook for its removal unless debugging.
8516+# Hook for its removal unless debugging. 8524+# Hook for its removal unless debugging.
8517+# Note that there is a small window in which the directory will not be cleaned: 8525+# Note that there is a small window in which the directory will not be cleaned:
8518+# after its creation but before its name has been assigned to `$tmp'. 8526+# after its creation but before its name has been assigned to `$tmp'.
8519 $debug || 8527 $debug ||
8520 { 8528 {
8521- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8529- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
@@ -9239,22 +9247,22 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00 @@ -9239,22 +9247,22 @@ $NetBSD: patch-ac,v 1.8 2009/08/09 16:00
9239 { (exit 0); exit 0; } 9247 { (exit 0); exit 0; }
9240 _ACEOF 9248 _ACEOF
9241 chmod +x $CONFIG_STATUS 9249 chmod +x $CONFIG_STATUS
9242 ac_clean_files=$ac_clean_files_save 9250 ac_clean_files=$ac_clean_files_save
9243  9251
9244+test $ac_write_fail = 0 || 9252+test $ac_write_fail = 0 ||
9245+ { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 9253+ { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9246+$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 9254+$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9247+ { (exit 1); exit 1; }; } 9255+ { (exit 1); exit 1; }; }
9248+ 9256+
9249  9257
9250 # configure is writing to config.log, and then calls config.status. 9258 # configure is writing to config.log, and then calls config.status.
9251 # config.status does its own redirection, appending to config.log. 9259 # config.status does its own redirection, appending to config.log.
9252@@ -6132,4 +7190,8 @@ if test "$no_create" != yes; then 9260@@ -6132,4 +7198,8 @@ if test "$no_create" != yes; then
9253 # would make configure fail if this is the last instruction. 9261 # would make configure fail if this is the last instruction.
9254 $ac_cs_success || { (exit 1); exit 1; } 9262 $ac_cs_success || { (exit 1); exit 1; }
9255 fi 9263 fi
9256+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9264+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9257+ { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9265+ { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9258+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9266+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9259+fi 9267+fi
9260  9268

cvs diff -r1.8 -r1.9 pkgsrc/audio/cdparanoia/patches/patch-ca (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/patches/patch-ca 2009/08/09 16:00:53 1.8
+++ pkgsrc/audio/cdparanoia/patches/patch-ca 2009/08/14 15:51:06 1.9
@@ -1,19 +1,23 @@ @@ -1,19 +1,23 @@
1$NetBSD: patch-ca,v 1.8 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: patch-ca,v 1.9 2009/08/14 15:51:06 drochner Exp $
2 2
3--- interface/Makefile.in.orig 2008-08-21 18:08:54.000000000 +0200 3--- interface/Makefile.in.orig 2008-08-21 18:08:54.000000000 +0200
4+++ interface/Makefile.in 4+++ interface/Makefile.in
5@@ -18,12 +18,10 @@ RANLIB=@RANLIB@ 5@@ -15,15 +15,13 @@ LD=@CC@
6 LIBS = -lm -lrt 6 LDFLAGS=@LDFLAGS@ $(FLAGS)
 7 AR=@AR@
 8 RANLIB=@RANLIB@
 9-LIBS = -lm -lrt
 10+LIBS = -lm @EXTRA_LIBS@
7 CPPFLAGS+=-D_REENTRANT 11 CPPFLAGS+=-D_REENTRANT
8  12
9-OFILES = scan_devices.o common_interface.o cooked_interface.o interface.o\ 13-OFILES = scan_devices.o common_interface.o cooked_interface.o interface.o\
10- scsi_interface.o smallft.o toc.o test_interface.o 14- scsi_interface.o smallft.o toc.o test_interface.o
11+OFILES = scan_devices.o common_interface.o interface.o\ 15+OFILES = scan_devices.o common_interface.o interface.o\
12+ smallft.o toc.o test_interface.o @EXTRA_OBJS@ 16+ smallft.o toc.o test_interface.o @EXTRA_OBJS@
13  17
14-export VERSION 18-export VERSION
15- 19-
16-all: lib slib 20-all: lib slib
17+all: slib 21+all: slib
18  22
19 debug:  23 debug:
@@ -27,27 +31,27 @@ $NetBSD: patch-ca,v 1.8 2009/08/09 16:00 @@ -27,27 +31,27 @@ $NetBSD: patch-ca,v 1.8 2009/08/09 16:00
27- [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so libcdda_interface.so.0 31- [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so libcdda_interface.so.0
28+ $(MAKE) libcdda_interface.la VERSION=$(VERSION) CFLAGS="$(OPT)"  32+ $(MAKE) libcdda_interface.la VERSION=$(VERSION) CFLAGS="$(OPT)"
29  33
30-test:  34-test:
31+test: 35+test:
32+ $(MAKE) lessmessy 36+ $(MAKE) lessmessy
33 $(MAKE) libcdda_interface.a CFLAGS="$(DEBUG)" 37 $(MAKE) libcdda_interface.a CFLAGS="$(DEBUG)"
34 $(CC) $(DEBUG) -c test.c 38 $(CC) $(DEBUG) -c test.c
35- $(LD) $(DEBUG) test.o $(LDFLAGS) -o cdda_test $(LIBS) libcdda_interface.a 39- $(LD) $(DEBUG) test.o $(LDFLAGS) -o cdda_test $(LIBS) libcdda_interface.a
36+ $(LIBTOOL) --mode=link $(LD) $(DEBUG) test.o $(LDFLAGS) -o cdda_test $(LIBS) libcdda_interface.la 40+ $(LIBTOOL) --mode=link $(LD) $(DEBUG) test.o $(LDFLAGS) -o cdda_test $(LIBS) libcdda_interface.la
37+ 41+
38+libcdda_interface.la: $(OFILES) 42+libcdda_interface.la: $(OFILES)
39+ $(LIBTOOL) --mode=link $(CC) -o libcdda_interface.la $(OFILES:.o=.lo) \ 43+ $(LIBTOOL) --mode=link $(CC) -o libcdda_interface.la $(OFILES:.o=.lo) \
40+ -version-info 1:0 -rpath $(PREFIX)/lib $(LDFLAGS) 44+ -version-info 1:0 -rpath $(PREFIX)/lib $(LDFLAGS) $(LIBS)
41+ 45+
42+libcdda_interface.a: libcdda_interface.la 46+libcdda_interface.a: libcdda_interface.la
43  47
44-libcdda_interface.a: $(OFILES)  48-libcdda_interface.a: $(OFILES)
45- $(AR) -r libcdda_interface.a $(OFILES) 49- $(AR) -r libcdda_interface.a $(OFILES)
46- $(RANLIB) libcdda_interface.a 50- $(RANLIB) libcdda_interface.a
47- 51-
48-libcdda_interface.so: $(OFILES)  52-libcdda_interface.so: $(OFILES)
49- $(CC) -fpic -shared -o libcdda_interface.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES) $(LIBS) 53- $(CC) -fpic -shared -o libcdda_interface.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES) $(LIBS)
50- [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so.0 54- [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so.0
51- [ -e libcdda_interface.so ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so 55- [ -e libcdda_interface.so ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so
52+libcdda_interface.so: libcdda_interface.la 56+libcdda_interface.so: libcdda_interface.la
53  57

cvs diff -r1.6 -r1.7 pkgsrc/audio/cdparanoia/patches/patch-ce (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/patches/patch-ce 2009/08/09 16:00:53 1.6
+++ pkgsrc/audio/cdparanoia/patches/patch-ce 2009/08/14 15:51:06 1.7
@@ -1,116 +1,37 @@ @@ -1,116 +1,37 @@
1$NetBSD: patch-ce,v 1.6 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: patch-ce,v 1.7 2009/08/14 15:51:06 drochner Exp $
2 2
3--- interface/cooked_interface.c.orig 2008-08-26 11:55:22.000000000 +0200 3--- interface/cooked_interface.c.orig 2008-08-26 11:55:22.000000000 +0200
4+++ interface/cooked_interface.c 4+++ interface/cooked_interface.c
5@@ -1,6 +1,8 @@ 5@@ -1,6 +1,8 @@
6 /****************************************************************** 6 /******************************************************************
7 * CopyPolicy: GNU Lesser General Public License 2.1 applies 7 * CopyPolicy: GNU Lesser General Public License 2.1 applies
8 * Copyright (C) Monty xiphmont@mit.edu 8 * Copyright (C) Monty xiphmont@mit.edu
9+ * FreeBSD porting (c) 2003 9+ * FreeBSD porting (c) 2003
10+ * Simon 'corecode' Schubert <corecode@corecode.ath.cx> 10+ * Simon 'corecode' Schubert <corecode@corecode.ath.cx>
11 * 11 *
12 * CDROM code specific to the cooked ioctl interface 12 * CDROM code specific to the cooked ioctl interface
13 * 13 *
14@@ -24,9 +26,11 @@ static int timed_ioctl(cdrom_drive *d, i 14@@ -24,6 +26,7 @@ static int timed_ioctl(cdrom_drive *d, i
15 return ret2; 15 return ret2;
16 } 16 }
17  17
18+#if !defined(__FreeBSD__) && !defined(__DragonFly__) 18+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
19 static int cooked_readtoc (cdrom_drive *d){ 19 static int cooked_readtoc (cdrom_drive *d){
20 int i; 20 int i;
21 int tracks; 21 int tracks;
22+#ifdef __linux__ 22@@ -156,6 +159,141 @@ static long cooked_read (cdrom_drive *d,
23 struct cdrom_tochdr hdr; 
24 struct cdrom_tocentry entry; 
25  
26@@ -66,6 +70,45 @@ static int cooked_readtoc (cdrom_drive * 
27 d->disc_toc[i].dwStartSector = entry.cdte_addr.lba; 
28  
29 tracks=hdr.cdth_trk1+1; 
30+#endif 
31+ 
32+#ifdef __NetBSD__ 
33+ struct ioc_read_toc_entry hdr; 
34+ struct cd_toc_entry entries[MAXTRK + 1]; /* + 1 for leadout */ 
35+ 
36+ hdr.address_format = CD_LBA_FORMAT; 
37+ hdr.starting_track = 1; 
38+ hdr.data_len = sizeof entries; 
39+ hdr.data = entries; 
40+ memset(entries, 0, sizeof entries); 
41+ 
42+ /* get all TOC entries at once */ 
43+#ifndef CDIOREADTOCENTRIES 
44+#define CDIOREADTOCENTRIES CDIOREADTOCENTRYS 
45+#endif 
46+ if(ioctl(d->ioctl_fd, CDIOREADTOCENTRIES, &hdr)) 
47+ switch(errno){ 
48+ case EPERM: 
49+ cderror(d,"102: Permision denied on cdrom (ioctl) device\n"); 
50+ return(-102); 
51+ default: 
52+ cderror(d,"004: Unable to read table of contents header\n"); 
53+ return(-4); 
54+ } 
55+ 
56+ for(i = 0; i < MAXTRK + 1; i++) { 
57+ d->disc_toc[i].bFlags = (entries[i].addr_type << 4) | (entries[i].control & 0x0f); 
58+ d->disc_toc[i].bTrack = entries[i].track; 
59+ d->disc_toc[i].dwStartSector = entries[i].addr.lba; 
60+ if (entries[i].track == 0) { 
61+ cderror(d,"005: Unable to read table of contents entry\n"); 
62+ return(-5); 
63+ } 
64+ if (entries[i].track >= 100) 
65+ break; /* leadout */ 
66+ } 
67+ tracks = i; 
68+#endif 
69 d->cd_extra=FixupTOC(d,tracks); 
70 return(--tracks); /* without lead-out */ 
71 } 
72@@ -73,10 +116,15 @@ static int cooked_readtoc (cdrom_drive * 
73 /* Set operating speed */ 
74 static int cooked_setspeed(cdrom_drive *d, int speed) 
75 { 
76+#ifdef __linux__ 
77 if(d->ioctl_fd!=-1) 
78 return ioctl(d->ioctl_fd, CDROM_SELECT_SPEED, speed); 
79 else 
80 return 0; 
81+#endif 
82+#ifdef __NetBSD__ 
83+ errx(1, "cooked_setspeed: not implemented"); 
84+#endif 
85 } 
86  
87 /* read 'SectorBurst' adjacent sectors of audio sectors  
88@@ -84,6 +132,7 @@ static int cooked_setspeed(cdrom_drive * 
89 */ 
90  
91 static long cooked_read (cdrom_drive *d, void *p, long begin, long sectors){ 
92+#ifdef __linux__ 
93 int retry_count,err,ret=0; 
94 struct cdrom_read_audio arg; 
95 char *buffer=(char *)p; 
96@@ -155,7 +204,147 @@ static long cooked_read (cdrom_drive *d, 
97 done: 
98 if(p==NULL && buffer)free(buffer); 23 if(p==NULL && buffer)free(buffer);
99 return ret; 24 return ret;
100+#endif 
101+#ifdef __NetBSD__ 
102+ errx(1, "cooked_read: not implemented"); 
103+#endif 
104 } 25 }
105+#elif defined(__FreeBSD__) || defined(__DragonFly__) 26+#elif defined(__FreeBSD__) || defined(__DragonFly__)
106+static int 27+static int
107+cooked_readtoc(cdrom_drive *d) 28+cooked_readtoc(cdrom_drive *d)
108+{ 29+{
109+ int i; 30+ int i;
110+ struct ioc_toc_header hdr; 31+ struct ioc_toc_header hdr;
111+ struct ioc_read_toc_single_entry entry; 32+ struct ioc_read_toc_single_entry entry;
112+ 33+
113+ if (ioctl(d->ioctl_fd, CDIOREADTOCHEADER, &hdr) == -1) { 34+ if (ioctl(d->ioctl_fd, CDIOREADTOCHEADER, &hdr) == -1) {
114+ int ret; 35+ int ret;
115+ 36+
116+ if (errno == EPERM) { 37+ if (errno == EPERM) {
@@ -227,47 +148,34 @@ $NetBSD: patch-ce,v 1.6 2009/08/09 16:00 @@ -227,47 +148,34 @@ $NetBSD: patch-ce,v 1.6 2009/08/09 16:00
227+ ++retry_count; 148+ ++retry_count;
228+ 149+
229+ if (retry_count > MAX_RETRIES) { 150+ if (retry_count > MAX_RETRIES) {
230+ cderror(d, "007: Unknown, unrecoverable error reading data\n"); 151+ cderror(d, "007: Unknown, unrecoverable error reading data\n");
231+ return -7; 152+ return -7;
232+ } 153+ }
233+ } else 154+ } else
234+ break; 155+ break;
235+ } 156+ }
236+ 157+
237+ return sectors; 158+ return sectors;
238+} 159+}
239+#endif 160+#endif
240+ 
241  161
242 /* hook */ 162 /* hook */
243 static int Dummy (cdrom_drive *d,int Switch){ 163 static int Dummy (cdrom_drive *d,int Switch){
244@@ -219,8 +408,11 @@ static void check_exceptions(cdrom_drive 164@@ -221,6 +359,7 @@ static void check_exceptions(cdrom_drive
245  
246 /* set function pointers to use the ioctl routines */ 
247 int cooked_init_drive (cdrom_drive *d){ 165 int cooked_init_drive (cdrom_drive *d){
248+#ifdef __NetBSD__ 
249+ errx(1, "cooked_init_drive: not implemented"); 
250+#else 
251 int ret; 166 int ret;
252- 167
253+#ifdef __linux__ 168+#ifdef __linux__
254 switch(d->drive_type){ 169 switch(d->drive_type){
255 case MATSUSHITA_CDROM_MAJOR: /* sbpcd 1 */ 170 case MATSUSHITA_CDROM_MAJOR: /* sbpcd 1 */
256 case MATSUSHITA_CDROM2_MAJOR: /* sbpcd 2 */ 171 case MATSUSHITA_CDROM2_MAJOR: /* sbpcd 2 */
257@@ -271,6 +463,9 @@ int cooked_init_drive (cdrom_drive *d){ 172@@ -271,6 +410,9 @@ int cooked_init_drive (cdrom_drive *d){
258 default: 173 default:
259 d->nsectors=40;  174 d->nsectors=40;
260 } 175 }
261+#elif defined(__FreeBSD__) || defined(__DragonFly__) 176+#elif defined(__FreeBSD__) || defined(__DragonFly__)
262+ d->nsectors = 26; /* FreeBSD only supports 64K I/O transfer size */ 177+ d->nsectors = 26; /* FreeBSD only supports 64K I/O transfer size */
263+#endif 178+#endif
264 d->enable_cdda = Dummy; 179 d->enable_cdda = Dummy;
265 d->read_audio = cooked_read; 180 d->read_audio = cooked_read;
266 d->read_toc = cooked_readtoc; 181 d->read_toc = cooked_readtoc;
267@@ -283,5 +478,6 @@ int cooked_init_drive (cdrom_drive *d){ 
268 if((ret=verify_read_command(d)))return(ret); 
269 d->error_retry=1; 
270 return(0); 
271+#endif 
272 } 
273  

cvs diff -r1.4 -r1.5 pkgsrc/audio/cdparanoia/patches/patch-ch (expand / switch to unified diff)

--- pkgsrc/audio/cdparanoia/patches/patch-ch 2009/08/09 16:00:53 1.4
+++ pkgsrc/audio/cdparanoia/patches/patch-ch 2009/08/14 15:51:06 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: patch-ch,v 1.4 2009/08/09 16:00:53 drochner Exp $ 1$NetBSD: patch-ch,v 1.5 2009/08/14 15:51:06 drochner Exp $
2 2
3--- interface/cdda_interface.h.orig 2008-09-11 12:43:52.000000000 +0200 3--- interface/cdda_interface.h.orig 2008-09-11 12:43:52.000000000 +0200
4+++ interface/cdda_interface.h 4+++ interface/cdda_interface.h
5@@ -18,9 +18,23 @@ 5@@ -18,9 +18,23 @@
6 #endif 6 #endif
7 #define CD_FRAMESAMPLES (CD_FRAMESIZE_RAW / 4) 7 #define CD_FRAMESAMPLES (CD_FRAMESIZE_RAW / 4)
8  8
9+#if defined(__APPLE__) && defined(__MACH__) 9+#if defined(__APPLE__) && defined(__MACH__)
10+#include <IOKit/IOKitLib.h> 10+#include <IOKit/IOKitLib.h>
11+#include <IOKit/storage/IOCDTypes.h> 11+#include <IOKit/storage/IOCDTypes.h>
12+#endif 12+#endif
13+ 13+
14 #include <sys/types.h> 14 #include <sys/types.h>
@@ -54,13 +54,22 @@ $NetBSD: patch-ch,v 1.4 2009/08/09 16:00 @@ -54,13 +54,22 @@ $NetBSD: patch-ch,v 1.4 2009/08/09 16:00
54+#if defined(__APPLE__) && defined(__MACH__) 54+#if defined(__APPLE__) && defined(__MACH__)
55+ io_object_t io; 55+ io_object_t io;
56+ int fd; 56+ int fd;
57+ char *dev; 57+ char *dev;
58+ CDTOC *raw_toc; 58+ CDTOC *raw_toc;
59+ int descriptor_count; 59+ int descriptor_count;
60+#endif 60+#endif
61+ 61+
62+ int ioctl_fd; 62+ int ioctl_fd;
63+ char *drive_model; 63+ char *drive_model;
64 int interface; 64 int interface;
65 int bigendianp; 65 int bigendianp;
66 int nsectors; 66 int nsectors;
 67@@ -84,7 +113,7 @@ typedef struct cdrom_drive{
 68 int is_atapi;
 69 int is_mmc;
 70
 71- cdda_private_data_t *private;
 72+ cdda_private_data_t *private_data;
 73 void *reserved;
 74 unsigned char inqbytes[4];
 75