Merge lp:~ari-tczew/sane-backends/ubuntu into lp:~ubuntu-desktop/sane-backends/ubuntu

Proposed by Artur Rona
Status: Merged
Merged at revision: 6
Proposed branch: lp:~ari-tczew/sane-backends/ubuntu
Merge into: lp:~ubuntu-desktop/sane-backends/ubuntu
Diff against target: 32286 lines
To merge this branch: bzr merge lp:~ari-tczew/sane-backends/ubuntu
Reviewer Review Type Date Requested Status
Martin Pitt Pending
Ubuntu Desktop Pending
Review via email: mp+52252@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Artur Rona (ari-tczew) wrote :

Everything should be OK, apart from ubuntu_udev_noperm.patch. It's complex to merge due to sane-desc_udev+acl.patch. I'd like to get it review and rewrite (if possible) by author, Martin Pitt. If someone can do it, go ahead.

Revision history for this message
Martin Pitt (pitti) wrote :

I need to re-do that patch anyway, due to bug 727696. Thanks!

lp:~ari-tczew/sane-backends/ubuntu updated
6. By Martin Pitt

* Merge from debian unstable. Remaining changes: (LP: #729283)
  - debian/control:
    + Demote libsane-extras* from Recommends to Suggests, as long as
      this package is in universe.
    + Demote sane-utils from Recommends to Suggests.
      We do not want to have an init script for saned laying around,
      which is disabled by default anyway.
  - debian/libsane.postinst: Don't create a scanner group.
  - debian/libsane.preinst:
    + Remove the old file if unmodified.
    + Remove the old blacklist-scanner modprobe file.
  - debian/patches/disable_v4l.patch: Disable v4l backend.
  - debian/patches/ubuntu_udev_noperm.patch:
    + Do not change device permissions (already covered
      by udev-extra's 70-acl.rules).
    + Do not cover SCSI scanners (already covered by udev-extra's
      70-acl.rules).
    + Simplify description and structure.
  - debian/rules:
    - Link using -Bsymbolic-functions (startup time optimization).
    - Saned init script does not need to be started before gdm
      and does not need to be called on shutdown.
  - debian/sane-utils.*: No longer have scanner group.
  - debian/sane-utils.saned.init: Saned init script does not need to
    be started before gdm and does not need to be called on shutdown.
* debian/patches/ubuntu_udev_noperm.patch: Disabled, complex, needs
  fixing due to sane-desc_udev+acl.patch.
* New upstream release.
  + epson2: reject scan area settings that would lead to a division by zero
    (closes: #581181).
* debian/control:
  + Bump Standards-Version to 3.9.1 (no changes).
  + Demote libsane-extras-* to Recommends again.
* debian/rules:
  + Add acl (>= 2.2.49-4) to udev substvar for ACL utilities in /bin.
  + Use sane-desc -m udev+acl (closes: #591767, #612815).
* debian/libsane.README.Debian:
  + Update; mention ConsoleKit and the udev rules now using ACLs.
* debian/patches/sane-desc_udev+acl.patch:
  + Added; compared to experimental, setfacl is now in /bin.
* debian/patches/fix_xerox_mfp_color_mode.patch,
  debian/patches/use_libsane_matched_for_scsi.patch,
  debian/patches/allow_dll.d_symlinks.patch,
  debian/patches/saned_exit_avahi_process.patch,
  debian/patches/xerox_mfp_new_ids.patch,
  debian/patches/scsi_perfection_2450.patch,
  debian/patches/scsi_scanjet_4c.patch,
  debian/patches/genesys_disable_raw_data_log.patch,
  debian/patches/fix_epson2_commands.patch,
  debian/patches/fix_epson2_cancel.patch:
  + Removed; merged upstream.
* Git snapshot.
* debian/rules:
  + Add dependency on acl to libsane when depending on udev.
  + Use udev+acl mode when generating udev rules.
+ debian/patches/sane-desc_udev+acl.patch:
  + Added; try using ACLs for USB scanners in an effort to deconflict with
    MFP devices.
* Git snapshot.
  + genesys now has some support for LiDE 100 & 200 (closes: #586189).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-02-14 04:37:52 +0000
+++ debian/changelog 2011-03-04 20:46:16 +0000
@@ -1,3 +1,66 @@
1sane-backends (1.0.22-1ubuntu1) UNRELEASED; urgency=low
2
3 * Merge from debian unstable. Remaining changes: (LP: #729283)
4 - debian/control:
5 + Demote libsane-extras* from Recommends to Suggests, as long as
6 this package is in universe.
7 + Demote sane-utils from Recommends to Suggests.
8 We do not want to have an init script for saned laying around,
9 which is disabled by default anyway.
10 - debian/libsane.postinst: Don't create a scanner group.
11 - debian/libsane.preinst:
12 + Remove the old file if unmodified.
13 + Remove the old blacklist-scanner modprobe file.
14 - debian/patches/disable_v4l.patch: Disable v4l backend.
15 - debian/patches/ubuntu_udev_noperm.patch:
16 + Do not change device permissions (already covered
17 by udev-extra's 70-acl.rules).
18 + Do not cover SCSI scanners (already covered by udev-extra's
19 70-acl.rules).
20 + Simplify description and structure.
21 - debian/rules:
22 - Link using -Bsymbolic-functions (startup time optimization).
23 - Saned init script does not need to be started before gdm
24 and does not need to be called on shutdown.
25 - debian/sane-utils.*: No longer have scanner group.
26 - debian/sane-utils.saned.init: Saned init script does not need to
27 be started before gdm and does not need to be called on shutdown.
28 * debian/patches/ubuntu_udev_noperm.patch: Disabled, complex, needs
29 fixing due to sane-desc_udev+acl.patch.
30
31 -- Artur Rona <ari-tczew@ubuntu.com> Fri, 04 Mar 2011 21:04:56 +0100
32
33sane-backends (1.0.22-1) unstable; urgency=low
34
35 * New upstream release.
36 + epson2: reject scan area settings that would lead to a division by zero
37 (closes: #581181).
38
39 * debian/control:
40 + Bump Standards-Version to 3.9.1 (no changes).
41 + Demote libsane-extras-* to Recommends again.
42 * debian/rules:
43 + Add acl (>= 2.2.49-4) to udev substvar for ACL utilities in /bin.
44 + Use sane-desc -m udev+acl (closes: #591767, #612815).
45 * debian/libsane.README.Debian:
46 + Update; mention ConsoleKit and the udev rules now using ACLs.
47
48 * debian/patches/sane-desc_udev+acl.patch:
49 + Added; compared to experimental, setfacl is now in /bin.
50 * debian/patches/fix_xerox_mfp_color_mode.patch,
51 debian/patches/use_libsane_matched_for_scsi.patch,
52 debian/patches/allow_dll.d_symlinks.patch,
53 debian/patches/saned_exit_avahi_process.patch,
54 debian/patches/xerox_mfp_new_ids.patch,
55 debian/patches/scsi_perfection_2450.patch,
56 debian/patches/scsi_scanjet_4c.patch,
57 debian/patches/genesys_disable_raw_data_log.patch,
58 debian/patches/fix_epson2_commands.patch,
59 debian/patches/fix_epson2_cancel.patch:
60 + Removed; merged upstream.
61
62 -- Julien BLACHE <jblache@debian.org> Wed, 16 Feb 2011 19:00:55 +0100
63
1sane-backends (1.0.22-0ubuntu1) natty; urgency=low64sane-backends (1.0.22-0ubuntu1) natty; urgency=low
265
3 * New upstream release66 * New upstream release
@@ -19,6 +82,27 @@
1982
20 -- Robert Ancell <robert.ancell@canonical.com> Mon, 14 Feb 2011 14:28:56 +110083 -- Robert Ancell <robert.ancell@canonical.com> Mon, 14 Feb 2011 14:28:56 +1100
2184
85sane-backends (1.0.22~git1.0.21-157-g126c70d-1) experimental; urgency=low
86
87 * Git snapshot.
88
89 * debian/rules:
90 + Add dependency on acl to libsane when depending on udev.
91 + Use udev+acl mode when generating udev rules.
92
93 + debian/patches/sane-desc_udev+acl.patch:
94 + Added; try using ACLs for USB scanners in an effort to deconflict with
95 MFP devices.
96
97 -- Julien BLACHE <jblache@debian.org> Wed, 21 Jul 2010 18:36:37 +0200
98
99sane-backends (1.0.22~git1.0.21-87-g323ed01-1) experimental; urgency=low
100
101 * Git snapshot.
102 + genesys now has some support for LiDE 100 & 200 (closes: #586189).
103
104 -- Julien BLACHE <jblache@debian.org> Wed, 23 Jun 2010 18:37:59 +0200
105
22sane-backends (1.0.21-9ubuntu1) natty; urgency=low106sane-backends (1.0.21-9ubuntu1) natty; urgency=low
23107
24 * Merge from debian unstable. Remaining changes: (LP: #693578)108 * Merge from debian unstable. Remaining changes: (LP: #693578)
25109
=== modified file 'debian/control'
--- debian/control 2011-02-14 04:37:52 +0000
+++ debian/control 2011-03-04 20:46:16 +0000
@@ -1,7 +1,7 @@
1Source: sane-backends1Source: sane-backends
2Section: graphics2Section: graphics
3Priority: optional3Priority: optional
4Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Julien BLACHE <jblache@debian.org>5XSBC-Original-Maintainer: Julien BLACHE <jblache@debian.org>
6Standards-Version: 3.9.16Standards-Version: 3.9.1
7Build-Depends: debhelper (>= 5.0.0), po-debconf, libv4l-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libgphoto2-2-dev, libltdl3-dev, libjpeg-dev, libtiff4-dev, libusb-dev (>= 2:0.1.10a-9) [!hurd-i386], libieee1284-3-dev (>= 0.2.10-5) [!hurd-i386], libcam-dev [kfreebsd-i386 kfreebsd-amd64], libavahi-client-dev (>= 0.6.4), gettext, texlive, texlive-latex-extra, autotools-dev, pkg-config, chrpath, xutils-dev7Build-Depends: debhelper (>= 5.0.0), po-debconf, libv4l-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libgphoto2-2-dev, libltdl3-dev, libjpeg-dev, libtiff4-dev, libusb-dev (>= 2:0.1.10a-9) [!hurd-i386], libieee1284-3-dev (>= 0.2.10-5) [!hurd-i386], libcam-dev [kfreebsd-i386 kfreebsd-amd64], libavahi-client-dev (>= 0.6.4), gettext, texlive, texlive-latex-extra, autotools-dev, pkg-config, chrpath, xutils-dev
@@ -32,7 +32,7 @@
32Section: libs32Section: libs
33Architecture: any33Architecture: any
34Depends: adduser (>= 3.47), ${udev}, ${shlibs:Depends}, ${misc:Depends}34Depends: adduser (>= 3.47), ${udev}, ${shlibs:Depends}, ${misc:Depends}
35Suggests: avahi-daemon, hpoj, hplip, libsane-extras (>= 1.0.20.1), sane-utils (>= ${binary:Version})35Suggests: avahi-daemon, hpoj, hplip, libsane-extras (>= 1.0.22.1), sane-utils (>= ${binary:Version})
36Replaces: libsane-extras (<< 1.0.18.14)36Replaces: libsane-extras (<< 1.0.18.14)
37Description: API library for scanners37Description: API library for scanners
38 SANE stands for "Scanner Access Now Easy" and is an application38 SANE stands for "Scanner Access Now Easy" and is an application
@@ -56,8 +56,8 @@
56Section: libdevel56Section: libdevel
57Architecture: any57Architecture: any
58Depends: libsane (= ${binary:Version}), libjpeg-dev, libtiff4-dev, libusb-dev (>= 1:0.1.6a-1) [!hurd-i386], libieee1284-3-dev (>= 0.2.10-5) [!hurd-i386], ${libcam-dev}, libgphoto2-2-dev, libv4l-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libavahi-client-dev, pkg-config, ${misc:Depends}58Depends: libsane (= ${binary:Version}), libjpeg-dev, libtiff4-dev, libusb-dev (>= 1:0.1.6a-1) [!hurd-i386], libieee1284-3-dev (>= 0.2.10-5) [!hurd-i386], ${libcam-dev}, libgphoto2-2-dev, libv4l-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libavahi-client-dev, pkg-config, ${misc:Depends}
59Suggests: libsane-extras-dev (>= 1.0.22.1)
59Replaces: libsane-extras-dev (<< 1.0.18.14)60Replaces: libsane-extras-dev (<< 1.0.18.14)
60Suggests: libsane-extras-dev (>= 1.0.20.1)
61Description: API development library for scanners [development files]61Description: API development library for scanners [development files]
62 SANE stands for "Scanner Access Now Easy" and is an application62 SANE stands for "Scanner Access Now Easy" and is an application
63 programming interface (API) that provides standardized access to any63 programming interface (API) that provides standardized access to any
@@ -77,7 +77,7 @@
77Priority: extra77Priority: extra
78Architecture: any78Architecture: any
79Depends: libsane (= ${binary:Version}), ${misc:Depends}79Depends: libsane (= ${binary:Version}), ${misc:Depends}
80Suggests: libsane-extras-dbg (>= 1.0.20.1)80Suggests: libsane-extras-dbg (>= 1.0.22.1)
81Replaces: libsane-extras-dbg (<< 1.0.18.14)81Replaces: libsane-extras-dbg (<< 1.0.18.14)
82Description: API development library for scanners [debug symbols]82Description: API development library for scanners [debug symbols]
83 SANE stands for "Scanner Access Now Easy" and is an application83 SANE stands for "Scanner Access Now Easy" and is an application
@@ -91,4 +91,3 @@
91 backends are welcome, too, however).91 backends are welcome, too, however).
92 .92 .
93 This package contains the debugging symbols for the SANE backends.93 This package contains the debugging symbols for the SANE backends.
94
9594
=== modified file 'debian/libsane.README.Debian'
--- debian/libsane.README.Debian 2010-06-17 01:28:18 +0000
+++ debian/libsane.README.Debian 2011-03-04 20:46:16 +0000
@@ -6,10 +6,16 @@
66
7The configuration files for Debian releases of SANE are located in /etc/sane.d.7The configuration files for Debian releases of SANE are located in /etc/sane.d.
88
9A Debian-specific patch is applied to the dll backend, so that the backend9The dll pseudo-backend is responsible for loading other SANE backends that
10checks for pieces of dll.conf in the /etc/sane.d/dll.d directory; this10provide support for the actual hardware. Which backends are loaded is
11facility is used by packages providing external backends (like libsane-extras,11determined by the contents of the /etc/sane.d/dll.conf file. The dll
12hpoj or hplip) to "register" the backends they provide without much hassle.12pseudo-backend also checks for dll.conf snippets in /etc/sane.d/dll.d; any
13file in this directory that doesn't look like a backup file will be treated
14as a configuration snippet.
15
16This facility is used by packages providing external backends (like
17libsane-extras, hpoj or hplip) to "register" the backends they provide without
18much hassle.
1319
14Each backend has a configuration file which specifies which devices,20Each backend has a configuration file which specifies which devices,
15access methods, options etc. should be used by this backend. The format21access methods, options etc. should be used by this backend. The format
@@ -58,27 +64,27 @@
58SETUP64SETUP
59-----65-----
6066
61Note: this is only a proposed solution, you are free to come up and implement67In this day and age, SANE integrates with udev and ConsoleKit seemlessly; this
62whatever access control mechanism you see fit (eg. by using saned on localhost).68means users physically logged into the machine (as opposed to users logged in
69remotely via SSH) have access to the scanners by default.
70
71The solution proposed below is a legacy setup that remains valid for sharing
72scanners with saned or for systems that don't use ConsoleKit. Note that this is
73only a proposed solution, you are free to come up with and implement whatever
74access control mechanism you see fit.
6375
64This package added a scanner group to your system. We recommend you add to76This package added a scanner group to your system. We recommend you add to
65this group the users that should be able to access your scanner(s), and77this group the users that should be able to access your scanner(s), and
66make sure the appropriate device files (eg. /dev/sg0, ...) are owned by root 78make sure the appropriate device files (eg. /dev/sg0, ...) are owned by root
67and the scanner group, with permissions set to 0660.79and the scanner group, with permissions set to 0660.
6880
69You can change the ownership and permissions of the device files as follows :81For USB and SCSI scanners, the permissions will be automatically set by udev;
70 chown root:scanner /dev/....82the /lib/udev/rules.d/60-libsane.rules file contains a list of USB and SCSI
71 chmod 0660 /dev/....83scanners supported by SANE.
7284
7385The udev rules now use ACLs instead of standard UNIX permissions; the scanner
74If you intend to use a USB scanner, it is highly recommended that you install86group is added to the ACLs for the corresponding device(s) with read+write
75the udev package, which will help you with setting up the permissions on87permissions.
76the device node referring to your scanner (under /dev/bus/usb/ -- libusb is
77used to communicate with the scanner).
78
79The /lib/udev/rules.d/60-libsane.rules file contains a list of USB scanners
80supported by SANE, so everything should just work once udev will be running on
81your system.
8288
83If your scanner is missing from the list, do NOT modify this file; it is not89If your scanner is missing from the list, do NOT modify this file; it is not
84a configuration file, which means your changes WILL be overwritten upon90a configuration file, which means your changes WILL be overwritten upon
@@ -167,4 +173,4 @@
167some backends not yet included in the regular SANE distribution.173some backends not yet included in the regular SANE distribution.
168174
169175
170-- Julien BLACHE <jblache@debian.org>, Sat, 12 Dec 2009 11:29:42 +0100176-- Julien BLACHE <jblache@debian.org>, Wed, 16 Feb 2011 19:00:12 +0100
171177
=== added directory 'debian/patches-exp'
=== added file 'debian/patches-exp/disable_rpath.patch'
--- debian/patches-exp/disable_rpath.patch 1970-01-01 00:00:00 +0000
+++ debian/patches-exp/disable_rpath.patch 2011-03-04 20:46:16 +0000
@@ -0,0 +1,29936 @@
1Description: Do not set rpath on build products
2 Remove SANE_LINKER_RPATH macro and apply
3 sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/'
4 on the updated configure script.
5Author: Julien BLACHE <jblache@debian.org>
6
7Index: sane-backends-1.0.22~git1.0.21-157-g126c70d/configure
8===================================================================
9--- sane-backends-1.0.22~git1.0.21-157-g126c70d.orig/configure 2010-07-21 18:29:58.194207008 +0200
10+++ sane-backends-1.0.22~git1.0.21-157-g126c70d/configure 2010-07-21 18:29:53.726205867 +0200
11@@ -1,20 +1,24 @@
12 #! /bin/sh
13 # Guess values for system-dependent variables and create Makefiles.
14-# Generated by GNU Autoconf 2.63 for sane-backends 1.0.22git.
15+# Generated by GNU Autoconf 2.65 for sane-backends 1.0.22git.
16 #
17 # Report bugs to <sane-devel@lists.alioth.debian.org>.
18 #
19+#
20 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21-# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
22+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
23+# Inc.
24+#
25+#
26 # This configure script is free software; the Free Software Foundation
27 # gives unlimited permission to copy, distribute and modify it.
28-## --------------------- ##
29-## M4sh Initialization. ##
30-## --------------------- ##
31+## -------------------- ##
32+## M4sh Initialization. ##
33+## -------------------- ##
34
35 # Be more Bourne compatible
36 DUALCASE=1; export DUALCASE # for MKS sh
37-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39 emulate sh
40 NULLCMD=:
41 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42@@ -22,23 +26,15 @@
43 alias -g '${1+"$@"}'='"$@"'
44 setopt NO_GLOB_SUBST
45 else
46- case `(set -o) 2>/dev/null` in
47- *posix*) set -o posix ;;
48+ case `(set -o) 2>/dev/null` in #(
49+ *posix*) :
50+ set -o posix ;; #(
51+ *) :
52+ ;;
53 esac
54-
55 fi
56
57
58-
59-
60-# PATH needs CR
61-# Avoid depending upon Character Ranges.
62-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
63-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
64-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
65-as_cr_digits='0123456789'
66-as_cr_alnum=$as_cr_Letters$as_cr_digits
67-
68 as_nl='
69 '
70 export as_nl
71@@ -46,7 +42,13 @@
72 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
73 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
74 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
75-if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
76+# Prefer a ksh shell builtin over an external printf program on Solaris,
77+# but without wasting forks for bash or zsh.
78+if test -z "$BASH_VERSION$ZSH_VERSION" \
79+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
80+ as_echo='print -r --'
81+ as_echo_n='print -rn --'
82+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
83 as_echo='printf %s\n'
84 as_echo_n='printf %s'
85 else
86@@ -57,7 +59,7 @@
87 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
88 as_echo_n_body='eval
89 arg=$1;
90- case $arg in
91+ case $arg in #(
92 *"$as_nl"*)
93 expr "X$arg" : "X\\(.*\\)$as_nl";
94 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
95@@ -80,13 +82,6 @@
96 }
97 fi
98
99-# Support unset when possible.
100-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
101- as_unset=unset
102-else
103- as_unset=false
104-fi
105-
106
107 # IFS
108 # We need space, tab and new line, in precisely that order. Quoting is
109@@ -96,15 +91,15 @@
110 IFS=" "" $as_nl"
111
112 # Find who we are. Look in the path if we contain no directory separator.
113-case $0 in
114+case $0 in #((
115 *[\\/]* ) as_myself=$0 ;;
116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 for as_dir in $PATH
118 do
119 IFS=$as_save_IFS
120 test -z "$as_dir" && as_dir=.
121- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122-done
123+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124+ done
125 IFS=$as_save_IFS
126
127 ;;
128@@ -116,12 +111,16 @@
129 fi
130 if test ! -f "$as_myself"; then
131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
132- { (exit 1); exit 1; }
133+ exit 1
134 fi
135
136-# Work around bugs in pre-3.0 UWIN ksh.
137-for as_var in ENV MAIL MAILPATH
138-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
139+# Unset variables that we do not need and which cause bugs (e.g. in
140+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
141+# suppresses any "Segmentation fault" message there. '((' could
142+# trigger a bug in pdksh 5.2.14.
143+for as_var in BASH_ENV ENV MAIL MAILPATH
144+do eval test x\${$as_var+set} = xset \
145+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
146 done
147 PS1='$ '
148 PS2='> '
149@@ -133,330 +132,300 @@
150 LANGUAGE=C
151 export LANGUAGE
152
153-# Required to use basename.
154-if expr a : '\(a\)' >/dev/null 2>&1 &&
155- test "X`expr 00001 : '.*\(...\)'`" = X001; then
156- as_expr=expr
157-else
158- as_expr=false
159-fi
160-
161-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
162- as_basename=basename
163-else
164- as_basename=false
165-fi
166-
167-
168-# Name of the executable.
169-as_me=`$as_basename -- "$0" ||
170-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
171- X"$0" : 'X\(//\)$' \| \
172- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
173-$as_echo X/"$0" |
174- sed '/^.*\/\([^/][^/]*\)\/*$/{
175- s//\1/
176- q
177- }
178- /^X\/\(\/\/\)$/{
179- s//\1/
180- q
181- }
182- /^X\/\(\/\).*/{
183- s//\1/
184- q
185- }
186- s/.*/./; q'`
187-
188 # CDPATH.
189-$as_unset CDPATH
190-
191+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
192
193 if test "x$CONFIG_SHELL" = x; then
194- if (eval ":") 2>/dev/null; then
195- as_have_required=yes
196+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
197+ emulate sh
198+ NULLCMD=:
199+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
200+ # is contrary to our usage. Disable this feature.
201+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
202+ setopt NO_GLOB_SUBST
203 else
204- as_have_required=no
205+ case \`(set -o) 2>/dev/null\` in #(
206+ *posix*) :
207+ set -o posix ;; #(
208+ *) :
209+ ;;
210+esac
211 fi
212-
213- if test $as_have_required = yes && (eval ":
214-(as_func_return () {
215- (exit \$1)
216-}
217-as_func_success () {
218- as_func_return 0
219-}
220-as_func_failure () {
221- as_func_return 1
222-}
223-as_func_ret_success () {
224- return 0
225-}
226-as_func_ret_failure () {
227- return 1
228-}
229+"
230+ as_required="as_fn_return () { (exit \$1); }
231+as_fn_success () { as_fn_return 0; }
232+as_fn_failure () { as_fn_return 1; }
233+as_fn_ret_success () { return 0; }
234+as_fn_ret_failure () { return 1; }
235
236 exitcode=0
237-if as_func_success; then
238- :
239-else
240- exitcode=1
241- echo as_func_success failed.
242-fi
243-
244-if as_func_failure; then
245- exitcode=1
246- echo as_func_failure succeeded.
247-fi
248-
249-if as_func_ret_success; then
250- :
251-else
252- exitcode=1
253- echo as_func_ret_success failed.
254-fi
255-
256-if as_func_ret_failure; then
257- exitcode=1
258- echo as_func_ret_failure succeeded.
259-fi
260-
261-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
262- :
263+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
264+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
265+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
266+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
267+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
268+
269+else
270+ exitcode=1; echo positional parameters were not saved.
271+fi
272+test x\$exitcode = x0 || exit 1"
273+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
274+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
275+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
276+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
277+test \$(( 1 + 1 )) = 2 || exit 1"
278+ if (eval "$as_required") 2>/dev/null; then :
279+ as_have_required=yes
280 else
281- exitcode=1
282- echo positional parameters were not saved.
283+ as_have_required=no
284 fi
285+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
286
287-test \$exitcode = 0) || { (exit 1); exit 1; }
288-
289-(
290- as_lineno_1=\$LINENO
291- as_lineno_2=\$LINENO
292- test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
293- test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
294-") 2> /dev/null; then
295- :
296 else
297- as_candidate_shells=
298- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
299+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
300+as_found=false
301 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
302 do
303 IFS=$as_save_IFS
304 test -z "$as_dir" && as_dir=.
305- case $as_dir in
306+ as_found=:
307+ case $as_dir in #(
308 /*)
309 for as_base in sh bash ksh sh5; do
310- as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
311+ # Try only shells that exist, to save several forks.
312+ as_shell=$as_dir/$as_base
313+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
314+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
315+ CONFIG_SHELL=$as_shell as_have_required=yes
316+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
317+ break 2
318+fi
319+fi
320 done;;
321 esac
322+ as_found=false
323 done
324+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
325+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
326+ CONFIG_SHELL=$SHELL as_have_required=yes
327+fi; }
328 IFS=$as_save_IFS
329
330
331- for as_shell in $as_candidate_shells $SHELL; do
332- # Try only shells that exist, to save several forks.
333- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
334- { ("$as_shell") 2> /dev/null <<\_ASEOF
335-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
336- emulate sh
337- NULLCMD=:
338- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
339- # is contrary to our usage. Disable this feature.
340- alias -g '${1+"$@"}'='"$@"'
341- setopt NO_GLOB_SUBST
342-else
343- case `(set -o) 2>/dev/null` in
344- *posix*) set -o posix ;;
345-esac
346-
347-fi
348-
349-
350-:
351-_ASEOF
352-}; then
353- CONFIG_SHELL=$as_shell
354- as_have_required=yes
355- if { "$as_shell" 2> /dev/null <<\_ASEOF
356-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
357- emulate sh
358- NULLCMD=:
359- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
360- # is contrary to our usage. Disable this feature.
361- alias -g '${1+"$@"}'='"$@"'
362- setopt NO_GLOB_SUBST
363-else
364- case `(set -o) 2>/dev/null` in
365- *posix*) set -o posix ;;
366-esac
367-
368-fi
369-
370-
371-:
372-(as_func_return () {
373- (exit $1)
374-}
375-as_func_success () {
376- as_func_return 0
377-}
378-as_func_failure () {
379- as_func_return 1
380-}
381-as_func_ret_success () {
382- return 0
383-}
384-as_func_ret_failure () {
385- return 1
386-}
387-
388-exitcode=0
389-if as_func_success; then
390- :
391-else
392- exitcode=1
393- echo as_func_success failed.
394-fi
395-
396-if as_func_failure; then
397- exitcode=1
398- echo as_func_failure succeeded.
399-fi
400-
401-if as_func_ret_success; then
402- :
403-else
404- exitcode=1
405- echo as_func_ret_success failed.
406-fi
407-
408-if as_func_ret_failure; then
409- exitcode=1
410- echo as_func_ret_failure succeeded.
411-fi
412-
413-if ( set x; as_func_ret_success y && test x = "$1" ); then
414- :
415-else
416- exitcode=1
417- echo positional parameters were not saved.
418-fi
419-
420-test $exitcode = 0) || { (exit 1); exit 1; }
421-
422-(
423- as_lineno_1=$LINENO
424- as_lineno_2=$LINENO
425- test "x$as_lineno_1" != "x$as_lineno_2" &&
426- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
427-
428-_ASEOF
429-}; then
430- break
431-fi
432-
433-fi
434-
435- done
436-
437- if test "x$CONFIG_SHELL" != x; then
438- for as_var in BASH_ENV ENV
439- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
440- done
441+ if test "x$CONFIG_SHELL" != x; then :
442+ # We cannot yet assume a decent shell, so we have to provide a
443+ # neutralization value for shells without unset; and this also
444+ # works around shells that cannot unset nonexistent variables.
445+ BASH_ENV=/dev/null
446+ ENV=/dev/null
447+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
448 export CONFIG_SHELL
449 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
450 fi
451
452-
453- if test $as_have_required = no; then
454- echo This script requires a shell more modern than all the
455- echo shells that I found on your system. Please install a
456- echo modern shell, or manually run the script under such a
457- echo shell if you do have one.
458- { (exit 1); exit 1; }
459+ if test x$as_have_required = xno; then :
460+ $as_echo "$0: This script requires a shell more modern than all"
461+ $as_echo "$0: the shells that I found on your system."
462+ if test x${ZSH_VERSION+set} = xset ; then
463+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
464+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
465+ else
466+ $as_echo "$0: Please tell bug-autoconf@gnu.org and
467+$0: sane-devel@lists.alioth.debian.org about your system,
468+$0: including any error possibly output before this
469+$0: message. Then install a modern shell, or manually run
470+$0: the script under such a shell if you do have one."
471+ fi
472+ exit 1
473 fi
474-
475-
476 fi
477-
478 fi
479+SHELL=${CONFIG_SHELL-/bin/sh}
480+export SHELL
481+# Unset more variables known to interfere with behavior of common tools.
482+CLICOLOR_FORCE= GREP_OPTIONS=
483+unset CLICOLOR_FORCE GREP_OPTIONS
484+
485+## --------------------- ##
486+## M4sh Shell Functions. ##
487+## --------------------- ##
488+# as_fn_unset VAR
489+# ---------------
490+# Portably unset VAR.
491+as_fn_unset ()
492+{
493+ { eval $1=; unset $1;}
494+}
495+as_unset=as_fn_unset
496+
497+# as_fn_set_status STATUS
498+# -----------------------
499+# Set $? to STATUS, without forking.
500+as_fn_set_status ()
501+{
502+ return $1
503+} # as_fn_set_status
504+
505+# as_fn_exit STATUS
506+# -----------------
507+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
508+as_fn_exit ()
509+{
510+ set +e
511+ as_fn_set_status $1
512+ exit $1
513+} # as_fn_exit
514+
515+# as_fn_mkdir_p
516+# -------------
517+# Create "$as_dir" as a directory, including parents if necessary.
518+as_fn_mkdir_p ()
519+{
520
521+ case $as_dir in #(
522+ -*) as_dir=./$as_dir;;
523+ esac
524+ test -d "$as_dir" || eval $as_mkdir_p || {
525+ as_dirs=
526+ while :; do
527+ case $as_dir in #(
528+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
529+ *) as_qdir=$as_dir;;
530+ esac
531+ as_dirs="'$as_qdir' $as_dirs"
532+ as_dir=`$as_dirname -- "$as_dir" ||
533+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
534+ X"$as_dir" : 'X\(//\)[^/]' \| \
535+ X"$as_dir" : 'X\(//\)$' \| \
536+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
537+$as_echo X"$as_dir" |
538+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
539+ s//\1/
540+ q
541+ }
542+ /^X\(\/\/\)[^/].*/{
543+ s//\1/
544+ q
545+ }
546+ /^X\(\/\/\)$/{
547+ s//\1/
548+ q
549+ }
550+ /^X\(\/\).*/{
551+ s//\1/
552+ q
553+ }
554+ s/.*/./; q'`
555+ test -d "$as_dir" && break
556+ done
557+ test -z "$as_dirs" || eval "mkdir $as_dirs"
558+ } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
559
560
561-(eval "as_func_return () {
562- (exit \$1)
563-}
564-as_func_success () {
565- as_func_return 0
566-}
567-as_func_failure () {
568- as_func_return 1
569-}
570-as_func_ret_success () {
571- return 0
572-}
573-as_func_ret_failure () {
574- return 1
575-}
576+} # as_fn_mkdir_p
577+# as_fn_append VAR VALUE
578+# ----------------------
579+# Append the text in VALUE to the end of the definition contained in VAR. Take
580+# advantage of any shell optimizations that allow amortized linear growth over
581+# repeated appends, instead of the typical quadratic growth present in naive
582+# implementations.
583+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
584+ eval 'as_fn_append ()
585+ {
586+ eval $1+=\$2
587+ }'
588+else
589+ as_fn_append ()
590+ {
591+ eval $1=\$$1\$2
592+ }
593+fi # as_fn_append
594
595-exitcode=0
596-if as_func_success; then
597- :
598+# as_fn_arith ARG...
599+# ------------------
600+# Perform arithmetic evaluation on the ARGs, and store the result in the
601+# global $as_val. Take advantage of shells that can avoid forks. The arguments
602+# must be portable across $(()) and expr.
603+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
604+ eval 'as_fn_arith ()
605+ {
606+ as_val=$(( $* ))
607+ }'
608 else
609- exitcode=1
610- echo as_func_success failed.
611-fi
612+ as_fn_arith ()
613+ {
614+ as_val=`expr "$@" || test $? -eq 1`
615+ }
616+fi # as_fn_arith
617
618-if as_func_failure; then
619- exitcode=1
620- echo as_func_failure succeeded.
621-fi
622
623-if as_func_ret_success; then
624- :
625+# as_fn_error ERROR [LINENO LOG_FD]
626+# ---------------------------------
627+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
628+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
629+# script with status $?, using 1 if that was 0.
630+as_fn_error ()
631+{
632+ as_status=$?; test $as_status -eq 0 && as_status=1
633+ if test "$3"; then
634+ as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
635+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
636+ fi
637+ $as_echo "$as_me: error: $1" >&2
638+ as_fn_exit $as_status
639+} # as_fn_error
640+
641+if expr a : '\(a\)' >/dev/null 2>&1 &&
642+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
643+ as_expr=expr
644 else
645- exitcode=1
646- echo as_func_ret_success failed.
647+ as_expr=false
648 fi
649
650-if as_func_ret_failure; then
651- exitcode=1
652- echo as_func_ret_failure succeeded.
653+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
654+ as_basename=basename
655+else
656+ as_basename=false
657 fi
658
659-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
660- :
661+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
662+ as_dirname=dirname
663 else
664- exitcode=1
665- echo positional parameters were not saved.
666+ as_dirname=false
667 fi
668
669-test \$exitcode = 0") || {
670- echo No shell found that supports shell functions.
671- echo Please tell bug-autoconf@gnu.org about your system,
672- echo including any error possibly output before this message.
673- echo This can help us improve future autoconf versions.
674- echo Configuration will now proceed without shell functions.
675-}
676+as_me=`$as_basename -- "$0" ||
677+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
678+ X"$0" : 'X\(//\)$' \| \
679+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
680+$as_echo X/"$0" |
681+ sed '/^.*\/\([^/][^/]*\)\/*$/{
682+ s//\1/
683+ q
684+ }
685+ /^X\/\(\/\/\)$/{
686+ s//\1/
687+ q
688+ }
689+ /^X\/\(\/\).*/{
690+ s//\1/
691+ q
692+ }
693+ s/.*/./; q'`
694
695+# Avoid depending upon Character Ranges.
696+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
697+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
698+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
699+as_cr_digits='0123456789'
700+as_cr_alnum=$as_cr_Letters$as_cr_digits
701
702
703- as_lineno_1=$LINENO
704- as_lineno_2=$LINENO
705- test "x$as_lineno_1" != "x$as_lineno_2" &&
706- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
707-
708- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
709- # uniformly replaced by the line number. The first 'sed' inserts a
710- # line-number line after each line using $LINENO; the second 'sed'
711- # does the real work. The second script uses 'N' to pair each
712- # line-number line with the line containing $LINENO, and appends
713- # trailing '-' during substitution so that $LINENO is not a special
714- # case at line end.
715- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
716- # scripts with optimization help from Paolo Bonzini. Blame Lee
717- # E. McMahon (1931-1989) for sed's syntax. :-)
718+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
719+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
720+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
721+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
722+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
723 sed -n '
724 p
725 /[$]LINENO/=
726@@ -473,8 +442,7 @@
727 s/-\n.*//
728 ' >$as_me.lineno &&
729 chmod +x "$as_me.lineno" ||
730- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
731- { (exit 1); exit 1; }; }
732+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
733
734 # Don't try to exec as it changes $[0], causing all sort of problems
735 # (the dirname of $[0] is not the place where we might find the
736@@ -484,29 +452,18 @@
737 exit
738 }
739
740-
741-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
742- as_dirname=dirname
743-else
744- as_dirname=false
745-fi
746-
747 ECHO_C= ECHO_N= ECHO_T=
748-case `echo -n x` in
749+case `echo -n x` in #(((((
750 -n*)
751- case `echo 'x\c'` in
752+ case `echo 'xy\c'` in
753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
754- *) ECHO_C='\c';;
755+ xy) ECHO_C='\c';;
756+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
757+ ECHO_T=' ';;
758 esac;;
759 *)
760 ECHO_N='-n';;
761 esac
762-if expr a : '\(a\)' >/dev/null 2>&1 &&
763- test "X`expr 00001 : '.*\(...\)'`" = X001; then
764- as_expr=expr
765-else
766- as_expr=false
767-fi
768
769 rm -f conf$$ conf$$.exe conf$$.file
770 if test -d conf$$.dir; then
771@@ -536,7 +493,7 @@
772 rmdir conf$$.dir 2>/dev/null
773
774 if mkdir -p . 2>/dev/null; then
775- as_mkdir_p=:
776+ as_mkdir_p='mkdir -p "$as_dir"'
777 else
778 test -d ./-p && rmdir ./-p
779 as_mkdir_p=false
780@@ -555,10 +512,10 @@
781 if test -d "$1"; then
782 test -d "$1/.";
783 else
784- case $1 in
785+ case $1 in #(
786 -*)set "./$1";;
787 esac;
788- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
789+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
790 ???[sx]*):;;*)false;;esac;fi
791 '\'' sh
792 '
793@@ -573,7 +530,6 @@
794
795
796
797-
798 # Check that we are running under the correct shell.
799 SHELL=${CONFIG_SHELL-/bin/sh}
800
801@@ -727,7 +683,8 @@
802
803 tagnames=${tagnames+${tagnames},}F77
804
805-exec 7<&0 </dev/null 6>&1
806+test -n "$DJDIR" || exec 7<&0 </dev/null
807+exec 6>&1
808
809 # Name of the host.
810 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
811@@ -745,7 +702,6 @@
812 subdirs=
813 MFLAGS=
814 MAKEFLAGS=
815-SHELL=${CONFIG_SHELL-/bin/sh}
816
817 # Identity of this package.
818 PACKAGE_NAME='sane-backends'
819@@ -753,6 +709,7 @@
820 PACKAGE_VERSION='1.0.22git'
821 PACKAGE_STRING='sane-backends 1.0.22git'
822 PACKAGE_BUGREPORT='sane-devel@lists.alioth.debian.org'
823+PACKAGE_URL=''
824
825 # Factoring default headers for most tests.
826 ac_includes_default="\
827@@ -790,6 +747,7 @@
828 # include <unistd.h>
829 #endif"
830
831+ac_header_list=
832 ac_subst_vars='am__EXEEXT_FALSE
833 am__EXEEXT_TRUE
834 LTLIBOBJS
835@@ -858,7 +816,6 @@
836 DYNAMIC_FLAG
837 DL_LIBS
838 effective_target
839-LINKER_RPATH
840 STRICT_LDFLAGS
841 INCLUDES
842 CROSS_COMPILING_FALSE
843@@ -958,6 +915,7 @@
844 program_transform_name
845 prefix
846 exec_prefix
847+PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851@@ -972,7 +930,6 @@
852 with_docdir
853 enable_dependency_tracking
854 enable_warnings
855-enable_rpath
856 enable_pthread
857 enable_locking
858 with_group
859@@ -1127,8 +1084,7 @@
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863- { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
864- { (exit 1); exit 1; }; }
865+ as_fn_error "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
869@@ -1154,8 +1110,7 @@
870 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873- { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
874- { (exit 1); exit 1; }; }
875+ as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879@@ -1359,8 +1314,7 @@
880 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883- { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
884- { (exit 1); exit 1; }; }
885+ as_fn_error "invalid package name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889@@ -1376,8 +1330,7 @@
890 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893- { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
894- { (exit 1); exit 1; }; }
895+ as_fn_error "invalid package name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899@@ -1407,17 +1360,17 @@
900 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
901 x_libraries=$ac_optarg ;;
902
903- -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
904-Try \`$0 --help' for more information." >&2
905- { (exit 1); exit 1; }; }
906+ -*) as_fn_error "unrecognized option: \`$ac_option'
907+Try \`$0 --help' for more information."
908 ;;
909
910 *=*)
911 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
912 # Reject names that are not valid shell variable names.
913- expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
914- { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
915- { (exit 1); exit 1; }; }
916+ case $ac_envvar in #(
917+ '' | [0-9]* | *[!_$as_cr_alnum]* )
918+ as_fn_error "invalid variable name: \`$ac_envvar'" ;;
919+ esac
920 eval $ac_envvar=\$ac_optarg
921 export $ac_envvar ;;
922
923@@ -1434,15 +1387,13 @@
924
925 if test -n "$ac_prev"; then
926 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
927- { $as_echo "$as_me: error: missing argument to $ac_option" >&2
928- { (exit 1); exit 1; }; }
929+ as_fn_error "missing argument to $ac_option"
930 fi
931
932 if test -n "$ac_unrecognized_opts"; then
933 case $enable_option_checking in
934 no) ;;
935- fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
936- { (exit 1); exit 1; }; } ;;
937+ fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
938 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
939 esac
940 fi
941@@ -1465,8 +1416,7 @@
942 [\\/$]* | ?:[\\/]* ) continue;;
943 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
944 esac
945- { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
946- { (exit 1); exit 1; }; }
947+ as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
948 done
949
950 # There might be people who depend on the old broken behavior: `$host'
951@@ -1496,11 +1446,9 @@
952 ac_pwd=`pwd` && test -n "$ac_pwd" &&
953 ac_ls_di=`ls -di .` &&
954 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
955- { $as_echo "$as_me: error: working directory cannot be determined" >&2
956- { (exit 1); exit 1; }; }
957+ as_fn_error "working directory cannot be determined"
958 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
959- { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
960- { (exit 1); exit 1; }; }
961+ as_fn_error "pwd does not report name of working directory"
962
963
964 # Find the source files, if location was not specified.
965@@ -1539,13 +1487,11 @@
966 fi
967 if test ! -r "$srcdir/$ac_unique_file"; then
968 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
969- { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
970- { (exit 1); exit 1; }; }
971+ as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
972 fi
973 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
974 ac_abs_confdir=`(
975- cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
976- { (exit 1); exit 1; }; }
977+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
978 pwd)`
979 # When building in place, set srcdir=.
980 if test "$ac_abs_confdir" = "$ac_pwd"; then
981@@ -1654,7 +1600,6 @@
982 --disable-dependency-tracking speeds up one-time build
983 --enable-dependency-tracking do not reject slow dependency extractors
984 --enable-warnings turn on tons of compiler warnings (GCC only)
985- --enable-rpath use runtime library search path [default=yes]
986 --enable-pthread use pthread instead of fork (default=yes for MacOS
987 X/MINGW, no for everything else)
988 --enable-locking activate device locking (default=yes, but only used
989@@ -1664,7 +1609,7 @@
990 --disable-libusb disable support for USB in SANE
991 --enable-scsibuffersize=N
992 specify the default size in bytes of the buffer for
993- SCSI commands [default=131072]
994+ SCSI commands [[default=131072]]
995 --enable-scsi-directio enable SCSI direct IO (Linux only, dangerous, see
996 README.linux)
997 --disable-ipv6 disable IPv6 support
998@@ -1702,7 +1647,7 @@
999 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1000 nonstandard directory <lib dir>
1001 LIBS libraries to pass to the linker, e.g. -l<library>
1002- CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1003+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1004 you have headers in a nonstandard directory <include dir>
1005 CPP C preprocessor
1006 PKG_CONFIG path to pkg-config utility
1007@@ -1789,9328 +1734,3998 @@
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010 sane-backends configure 1.0.22git
1011-generated by GNU Autoconf 2.63
1012+generated by GNU Autoconf 2.65
1013
1014-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1015-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1016+Copyright (C) 2009 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020 exit
1021 fi
1022-cat >config.log <<_ACEOF
1023-This file contains any messages produced by compilers while
1024-running configure, to aid debugging if configure makes a mistake.
1025
1026-It was created by sane-backends $as_me 1.0.22git, which was
1027-generated by GNU Autoconf 2.63. Invocation command line was
1028+## ------------------------ ##
1029+## Autoconf initialization. ##
1030+## ------------------------ ##
1031+
1032+# ac_fn_c_try_compile LINENO
1033+# --------------------------
1034+# Try to compile conftest.$ac_ext, and return whether this succeeded.
1035+ac_fn_c_try_compile ()
1036+{
1037+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1038+ rm -f conftest.$ac_objext
1039+ if { { ac_try="$ac_compile"
1040+case "(($ac_try" in
1041+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1042+ *) ac_try_echo=$ac_try;;
1043+esac
1044+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1045+$as_echo "$ac_try_echo"; } >&5
1046+ (eval "$ac_compile") 2>conftest.err
1047+ ac_status=$?
1048+ if test -s conftest.err; then
1049+ grep -v '^ *+' conftest.err >conftest.er1
1050+ cat conftest.er1 >&5
1051+ mv -f conftest.er1 conftest.err
1052+ fi
1053+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1054+ test $ac_status = 0; } && {
1055+ test -z "$ac_c_werror_flag" ||
1056+ test ! -s conftest.err
1057+ } && test -s conftest.$ac_objext; then :
1058+ ac_retval=0
1059+else
1060+ $as_echo "$as_me: failed program was:" >&5
1061+sed 's/^/| /' conftest.$ac_ext >&5
1062
1063- $ $0 $@
1064+ ac_retval=1
1065+fi
1066+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1067+ as_fn_set_status $ac_retval
1068
1069-_ACEOF
1070-exec 5>>config.log
1071+} # ac_fn_c_try_compile
1072+
1073+# ac_fn_c_try_cpp LINENO
1074+# ----------------------
1075+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1076+ac_fn_c_try_cpp ()
1077 {
1078-cat <<_ASUNAME
1079-## --------- ##
1080-## Platform. ##
1081-## --------- ##
1082+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1083+ if { { ac_try="$ac_cpp conftest.$ac_ext"
1084+case "(($ac_try" in
1085+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1086+ *) ac_try_echo=$ac_try;;
1087+esac
1088+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1089+$as_echo "$ac_try_echo"; } >&5
1090+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1091+ ac_status=$?
1092+ if test -s conftest.err; then
1093+ grep -v '^ *+' conftest.err >conftest.er1
1094+ cat conftest.er1 >&5
1095+ mv -f conftest.er1 conftest.err
1096+ fi
1097+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1098+ test $ac_status = 0; } >/dev/null && {
1099+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1100+ test ! -s conftest.err
1101+ }; then :
1102+ ac_retval=0
1103+else
1104+ $as_echo "$as_me: failed program was:" >&5
1105+sed 's/^/| /' conftest.$ac_ext >&5
1106
1107-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1108-uname -m = `(uname -m) 2>/dev/null || echo unknown`
1109-uname -r = `(uname -r) 2>/dev/null || echo unknown`
1110-uname -s = `(uname -s) 2>/dev/null || echo unknown`
1111-uname -v = `(uname -v) 2>/dev/null || echo unknown`
1112+ ac_retval=1
1113+fi
1114+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1115+ as_fn_set_status $ac_retval
1116
1117-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1118-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1119+} # ac_fn_c_try_cpp
1120
1121-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1122-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1123-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1124-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1125-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1126-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1127-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1128+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1129+# -------------------------------------------------------
1130+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1131+# the include files in INCLUDES and setting the cache variable VAR
1132+# accordingly.
1133+ac_fn_c_check_header_mongrel ()
1134+{
1135+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1136+ if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1137+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1138+$as_echo_n "checking for $2... " >&6; }
1139+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1140+ $as_echo_n "(cached) " >&6
1141+fi
1142+eval ac_res=\$$3
1143+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1144+$as_echo "$ac_res" >&6; }
1145+else
1146+ # Is the header compilable?
1147+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1148+$as_echo_n "checking $2 usability... " >&6; }
1149+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1150+/* end confdefs.h. */
1151+$4
1152+#include <$2>
1153+_ACEOF
1154+if ac_fn_c_try_compile "$LINENO"; then :
1155+ ac_header_compiler=yes
1156+else
1157+ ac_header_compiler=no
1158+fi
1159+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1160+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1161+$as_echo "$ac_header_compiler" >&6; }
1162
1163-_ASUNAME
1164+# Is the header present?
1165+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1166+$as_echo_n "checking $2 presence... " >&6; }
1167+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1168+/* end confdefs.h. */
1169+#include <$2>
1170+_ACEOF
1171+if ac_fn_c_try_cpp "$LINENO"; then :
1172+ ac_header_preproc=yes
1173+else
1174+ ac_header_preproc=no
1175+fi
1176+rm -f conftest.err conftest.$ac_ext
1177+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1178+$as_echo "$ac_header_preproc" >&6; }
1179
1180-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181-for as_dir in $PATH
1182-do
1183- IFS=$as_save_IFS
1184- test -z "$as_dir" && as_dir=.
1185- $as_echo "PATH: $as_dir"
1186-done
1187-IFS=$as_save_IFS
1188+# So? What about this header?
1189+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1190+ yes:no: )
1191+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1192+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1193+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1194+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1195+ ;;
1196+ no:yes:* )
1197+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1198+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1199+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1200+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1201+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1202+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1203+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1204+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1205+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1206+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1207+( cat <<\_ASBOX
1208+## ------------------------------------------------- ##
1209+## Report this to sane-devel@lists.alioth.debian.org ##
1210+## ------------------------------------------------- ##
1211+_ASBOX
1212+ ) | sed "s/^/$as_me: WARNING: /" >&2
1213+ ;;
1214+esac
1215+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1216+$as_echo_n "checking for $2... " >&6; }
1217+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1218+ $as_echo_n "(cached) " >&6
1219+else
1220+ eval "$3=\$ac_header_compiler"
1221+fi
1222+eval ac_res=\$$3
1223+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1224+$as_echo "$ac_res" >&6; }
1225+fi
1226+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1227
1228-} >&5
1229+} # ac_fn_c_check_header_mongrel
1230
1231-cat >&5 <<_ACEOF
1232+# ac_fn_c_try_run LINENO
1233+# ----------------------
1234+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1235+# that executables *can* be run.
1236+ac_fn_c_try_run ()
1237+{
1238+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1239+ if { { ac_try="$ac_link"
1240+case "(($ac_try" in
1241+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1242+ *) ac_try_echo=$ac_try;;
1243+esac
1244+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1245+$as_echo "$ac_try_echo"; } >&5
1246+ (eval "$ac_link") 2>&5
1247+ ac_status=$?
1248+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1249+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1250+ { { case "(($ac_try" in
1251+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1252+ *) ac_try_echo=$ac_try;;
1253+esac
1254+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1255+$as_echo "$ac_try_echo"; } >&5
1256+ (eval "$ac_try") 2>&5
1257+ ac_status=$?
1258+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1259+ test $ac_status = 0; }; }; then :
1260+ ac_retval=0
1261+else
1262+ $as_echo "$as_me: program exited with status $ac_status" >&5
1263+ $as_echo "$as_me: failed program was:" >&5
1264+sed 's/^/| /' conftest.$ac_ext >&5
1265
1266+ ac_retval=$ac_status
1267+fi
1268+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1269+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1270+ as_fn_set_status $ac_retval
1271
1272-## ----------- ##
1273-## Core tests. ##
1274-## ----------- ##
1275+} # ac_fn_c_try_run
1276
1277+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1278+# -------------------------------------------------------
1279+# Tests whether HEADER exists and can be compiled using the include files in
1280+# INCLUDES, setting the cache variable VAR accordingly.
1281+ac_fn_c_check_header_compile ()
1282+{
1283+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1284+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1285+$as_echo_n "checking for $2... " >&6; }
1286+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1287+ $as_echo_n "(cached) " >&6
1288+else
1289+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1290+/* end confdefs.h. */
1291+$4
1292+#include <$2>
1293 _ACEOF
1294+if ac_fn_c_try_compile "$LINENO"; then :
1295+ eval "$3=yes"
1296+else
1297+ eval "$3=no"
1298+fi
1299+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1300+fi
1301+eval ac_res=\$$3
1302+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1303+$as_echo "$ac_res" >&6; }
1304+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1305
1306+} # ac_fn_c_check_header_compile
1307
1308-# Keep a trace of the command line.
1309-# Strip out --no-create and --no-recursion so they do not pile up.
1310-# Strip out --silent because we don't want to record it for future runs.
1311-# Also quote any args containing shell meta-characters.
1312-# Make two passes to allow for proper duplicate-argument suppression.
1313-ac_configure_args=
1314-ac_configure_args0=
1315-ac_configure_args1=
1316-ac_must_keep_next=false
1317-for ac_pass in 1 2
1318-do
1319- for ac_arg
1320- do
1321- case $ac_arg in
1322- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1323- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324- | -silent | --silent | --silen | --sile | --sil)
1325- continue ;;
1326- *\'*)
1327- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1328- esac
1329- case $ac_pass in
1330- 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1331- 2)
1332- ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1333- if test $ac_must_keep_next = true; then
1334- ac_must_keep_next=false # Got value, back to normal.
1335- else
1336- case $ac_arg in
1337- *=* | --config-cache | -C | -disable-* | --disable-* \
1338- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1339- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1340- | -with-* | --with-* | -without-* | --without-* | --x)
1341- case "$ac_configure_args0 " in
1342- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1343- esac
1344- ;;
1345- -* ) ac_must_keep_next=true ;;
1346- esac
1347- fi
1348- ac_configure_args="$ac_configure_args '$ac_arg'"
1349- ;;
1350- esac
1351- done
1352-done
1353-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1354-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355+# ac_fn_c_try_link LINENO
1356+# -----------------------
1357+# Try to link conftest.$ac_ext, and return whether this succeeded.
1358+ac_fn_c_try_link ()
1359+{
1360+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1361+ rm -f conftest.$ac_objext conftest$ac_exeext
1362+ if { { ac_try="$ac_link"
1363+case "(($ac_try" in
1364+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1365+ *) ac_try_echo=$ac_try;;
1366+esac
1367+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1368+$as_echo "$ac_try_echo"; } >&5
1369+ (eval "$ac_link") 2>conftest.err
1370+ ac_status=$?
1371+ if test -s conftest.err; then
1372+ grep -v '^ *+' conftest.err >conftest.er1
1373+ cat conftest.er1 >&5
1374+ mv -f conftest.er1 conftest.err
1375+ fi
1376+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1377+ test $ac_status = 0; } && {
1378+ test -z "$ac_c_werror_flag" ||
1379+ test ! -s conftest.err
1380+ } && test -s conftest$ac_exeext && {
1381+ test "$cross_compiling" = yes ||
1382+ $as_test_x conftest$ac_exeext
1383+ }; then :
1384+ ac_retval=0
1385+else
1386+ $as_echo "$as_me: failed program was:" >&5
1387+sed 's/^/| /' conftest.$ac_ext >&5
1388
1389-# When interrupted or exit'd, cleanup temporary files, and complete
1390-# config.log. We remove comments because anyway the quotes in there
1391-# would cause problems or look ugly.
1392-# WARNING: Use '\'' to represent an apostrophe within the trap.
1393-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1394-trap 'exit_status=$?
1395- # Save into config.log some information that might help in debugging.
1396- {
1397- echo
1398+ ac_retval=1
1399+fi
1400+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1401+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1402+ # interfere with the next link command; also delete a directory that is
1403+ # left behind by Apple's compiler. We do this before executing the actions.
1404+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1405+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1406+ as_fn_set_status $ac_retval
1407
1408- cat <<\_ASBOX
1409-## ---------------- ##
1410-## Cache variables. ##
1411-## ---------------- ##
1412-_ASBOX
1413- echo
1414- # The following way of writing the cache mishandles newlines in values,
1415-(
1416- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1417- eval ac_val=\$$ac_var
1418- case $ac_val in #(
1419- *${as_nl}*)
1420- case $ac_var in #(
1421- *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1422-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1423- esac
1424- case $ac_var in #(
1425- _ | IFS | as_nl) ;; #(
1426- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1427- *) $as_unset $ac_var ;;
1428- esac ;;
1429- esac
1430- done
1431- (set) 2>&1 |
1432- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1433- *${as_nl}ac_space=\ *)
1434- sed -n \
1435- "s/'\''/'\''\\\\'\'''\''/g;
1436- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1437- ;; #(
1438- *)
1439- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1440- ;;
1441- esac |
1442- sort
1443-)
1444- echo
1445+} # ac_fn_c_try_link
1446
1447- cat <<\_ASBOX
1448-## ----------------- ##
1449-## Output variables. ##
1450-## ----------------- ##
1451-_ASBOX
1452- echo
1453- for ac_var in $ac_subst_vars
1454- do
1455- eval ac_val=\$$ac_var
1456- case $ac_val in
1457- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1458- esac
1459- $as_echo "$ac_var='\''$ac_val'\''"
1460- done | sort
1461- echo
1462-
1463- if test -n "$ac_subst_files"; then
1464- cat <<\_ASBOX
1465-## ------------------- ##
1466-## File substitutions. ##
1467-## ------------------- ##
1468-_ASBOX
1469- echo
1470- for ac_var in $ac_subst_files
1471- do
1472- eval ac_val=\$$ac_var
1473- case $ac_val in
1474- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1475- esac
1476- $as_echo "$ac_var='\''$ac_val'\''"
1477- done | sort
1478- echo
1479- fi
1480+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1481+# -------------------------------------------
1482+# Tests whether TYPE exists after having included INCLUDES, setting cache
1483+# variable VAR accordingly.
1484+ac_fn_c_check_type ()
1485+{
1486+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1488+$as_echo_n "checking for $2... " >&6; }
1489+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1490+ $as_echo_n "(cached) " >&6
1491+else
1492+ eval "$3=no"
1493+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1494+/* end confdefs.h. */
1495+$4
1496+int
1497+main ()
1498+{
1499+if (sizeof ($2))
1500+ return 0;
1501+ ;
1502+ return 0;
1503+}
1504+_ACEOF
1505+if ac_fn_c_try_compile "$LINENO"; then :
1506+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1507+/* end confdefs.h. */
1508+$4
1509+int
1510+main ()
1511+{
1512+if (sizeof (($2)))
1513+ return 0;
1514+ ;
1515+ return 0;
1516+}
1517+_ACEOF
1518+if ac_fn_c_try_compile "$LINENO"; then :
1519
1520- if test -s confdefs.h; then
1521- cat <<\_ASBOX
1522-## ----------- ##
1523-## confdefs.h. ##
1524-## ----------- ##
1525-_ASBOX
1526- echo
1527- cat confdefs.h
1528- echo
1529- fi
1530- test "$ac_signal" != 0 &&
1531- $as_echo "$as_me: caught signal $ac_signal"
1532- $as_echo "$as_me: exit $exit_status"
1533- } >&5
1534- rm -f core *.core core.conftest.* &&
1535- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1536- exit $exit_status
1537-' 0
1538-for ac_signal in 1 2 13 15; do
1539- trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1540-done
1541-ac_signal=0
1542+else
1543+ eval "$3=yes"
1544+fi
1545+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1546+fi
1547+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1548+fi
1549+eval ac_res=\$$3
1550+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551+$as_echo "$ac_res" >&6; }
1552+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553
1554-# confdefs.h avoids OS command line length limits that DEFS can exceed.
1555-rm -f -r conftest* confdefs.h
1556+} # ac_fn_c_check_type
1557
1558-# Predefined preprocessor variables.
1559+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1560+# --------------------------------------------
1561+# Tries to find the compile-time value of EXPR in a program that includes
1562+# INCLUDES, setting VAR accordingly. Returns whether the value could be
1563+# computed
1564+ac_fn_c_compute_int ()
1565+{
1566+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567+ if test "$cross_compiling" = yes; then
1568+ # Depending upon the size, compute the lo and hi bounds.
1569+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570+/* end confdefs.h. */
1571+$4
1572+int
1573+main ()
1574+{
1575+static int test_array [1 - 2 * !(($2) >= 0)];
1576+test_array [0] = 0
1577
1578-cat >>confdefs.h <<_ACEOF
1579-#define PACKAGE_NAME "$PACKAGE_NAME"
1580+ ;
1581+ return 0;
1582+}
1583 _ACEOF
1584+if ac_fn_c_try_compile "$LINENO"; then :
1585+ ac_lo=0 ac_mid=0
1586+ while :; do
1587+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588+/* end confdefs.h. */
1589+$4
1590+int
1591+main ()
1592+{
1593+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1594+test_array [0] = 0
1595
1596-
1597-cat >>confdefs.h <<_ACEOF
1598-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1599+ ;
1600+ return 0;
1601+}
1602 _ACEOF
1603+if ac_fn_c_try_compile "$LINENO"; then :
1604+ ac_hi=$ac_mid; break
1605+else
1606+ as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1607+ if test $ac_lo -le $ac_mid; then
1608+ ac_lo= ac_hi=
1609+ break
1610+ fi
1611+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1612+fi
1613+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614+ done
1615+else
1616+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617+/* end confdefs.h. */
1618+$4
1619+int
1620+main ()
1621+{
1622+static int test_array [1 - 2 * !(($2) < 0)];
1623+test_array [0] = 0
1624
1625-
1626-cat >>confdefs.h <<_ACEOF
1627-#define PACKAGE_VERSION "$PACKAGE_VERSION"
1628+ ;
1629+ return 0;
1630+}
1631 _ACEOF
1632+if ac_fn_c_try_compile "$LINENO"; then :
1633+ ac_hi=-1 ac_mid=-1
1634+ while :; do
1635+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636+/* end confdefs.h. */
1637+$4
1638+int
1639+main ()
1640+{
1641+static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1642+test_array [0] = 0
1643
1644-
1645-cat >>confdefs.h <<_ACEOF
1646-#define PACKAGE_STRING "$PACKAGE_STRING"
1647+ ;
1648+ return 0;
1649+}
1650 _ACEOF
1651+if ac_fn_c_try_compile "$LINENO"; then :
1652+ ac_lo=$ac_mid; break
1653+else
1654+ as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1655+ if test $ac_mid -le $ac_hi; then
1656+ ac_lo= ac_hi=
1657+ break
1658+ fi
1659+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1660+fi
1661+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662+ done
1663+else
1664+ ac_lo= ac_hi=
1665+fi
1666+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667+fi
1668+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669+# Binary search between lo and hi bounds.
1670+while test "x$ac_lo" != "x$ac_hi"; do
1671+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1672+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673+/* end confdefs.h. */
1674+$4
1675+int
1676+main ()
1677+{
1678+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1679+test_array [0] = 0
1680
1681-
1682-cat >>confdefs.h <<_ACEOF
1683-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684+ ;
1685+ return 0;
1686+}
1687 _ACEOF
1688+if ac_fn_c_try_compile "$LINENO"; then :
1689+ ac_hi=$ac_mid
1690+else
1691+ as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1692+fi
1693+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694+done
1695+case $ac_lo in #((
1696+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1697+'') ac_retval=1 ;;
1698+esac
1699+ else
1700+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701+/* end confdefs.h. */
1702+$4
1703+static long int longval () { return $2; }
1704+static unsigned long int ulongval () { return $2; }
1705+#include <stdio.h>
1706+#include <stdlib.h>
1707+int
1708+main ()
1709+{
1710
1711+ FILE *f = fopen ("conftest.val", "w");
1712+ if (! f)
1713+ return 1;
1714+ if (($2) < 0)
1715+ {
1716+ long int i = longval ();
1717+ if (i != ($2))
1718+ return 1;
1719+ fprintf (f, "%ld", i);
1720+ }
1721+ else
1722+ {
1723+ unsigned long int i = ulongval ();
1724+ if (i != ($2))
1725+ return 1;
1726+ fprintf (f, "%lu", i);
1727+ }
1728+ /* Do not output a trailing newline, as this causes \r\n confusion
1729+ on some platforms. */
1730+ return ferror (f) || fclose (f) != 0;
1731
1732-# Let the site file select an alternate cache file if it wants to.
1733-# Prefer an explicitly selected file to automatically selected ones.
1734-ac_site_file1=NONE
1735-ac_site_file2=NONE
1736-if test -n "$CONFIG_SITE"; then
1737- ac_site_file1=$CONFIG_SITE
1738-elif test "x$prefix" != xNONE; then
1739- ac_site_file1=$prefix/share/config.site
1740- ac_site_file2=$prefix/etc/config.site
1741+ ;
1742+ return 0;
1743+}
1744+_ACEOF
1745+if ac_fn_c_try_run "$LINENO"; then :
1746+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1747 else
1748- ac_site_file1=$ac_default_prefix/share/config.site
1749- ac_site_file2=$ac_default_prefix/etc/config.site
1750+ ac_retval=1
1751 fi
1752-for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1753-do
1754- test "x$ac_site_file" = xNONE && continue
1755- if test -r "$ac_site_file"; then
1756- { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1757-$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1758- sed 's/^/| /' "$ac_site_file" >&5
1759- . "$ac_site_file"
1760- fi
1761-done
1762+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1763+ conftest.$ac_objext conftest.beam conftest.$ac_ext
1764+rm -f conftest.val
1765
1766-if test -r "$cache_file"; then
1767- # Some versions of bash will fail to source /dev/null (special
1768- # files actually), so we avoid doing that.
1769- if test -f "$cache_file"; then
1770- { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1771-$as_echo "$as_me: loading cache $cache_file" >&6;}
1772- case $cache_file in
1773- [\\/]* | ?:[\\/]* ) . "$cache_file";;
1774- *) . "./$cache_file";;
1775- esac
1776 fi
1777+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778+ as_fn_set_status $ac_retval
1779+
1780+} # ac_fn_c_compute_int
1781+
1782+# ac_fn_c_check_func LINENO FUNC VAR
1783+# ----------------------------------
1784+# Tests whether FUNC exists, setting the cache variable VAR accordingly
1785+ac_fn_c_check_func ()
1786+{
1787+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789+$as_echo_n "checking for $2... " >&6; }
1790+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791+ $as_echo_n "(cached) " >&6
1792 else
1793- { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1794-$as_echo "$as_me: creating cache $cache_file" >&6;}
1795- >$cache_file
1796-fi
1797-
1798-# Check that the precious variables saved in the cache have kept the same
1799-# value.
1800-ac_cache_corrupted=false
1801-for ac_var in $ac_precious_vars; do
1802- eval ac_old_set=\$ac_cv_env_${ac_var}_set
1803- eval ac_new_set=\$ac_env_${ac_var}_set
1804- eval ac_old_val=\$ac_cv_env_${ac_var}_value
1805- eval ac_new_val=\$ac_env_${ac_var}_value
1806- case $ac_old_set,$ac_new_set in
1807- set,)
1808- { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1809-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1810- ac_cache_corrupted=: ;;
1811- ,set)
1812- { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1813-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1814- ac_cache_corrupted=: ;;
1815- ,);;
1816- *)
1817- if test "x$ac_old_val" != "x$ac_new_val"; then
1818- # differences in whitespace do not lead to failure.
1819- ac_old_val_w=`echo x $ac_old_val`
1820- ac_new_val_w=`echo x $ac_new_val`
1821- if test "$ac_old_val_w" != "$ac_new_val_w"; then
1822- { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824- ac_cache_corrupted=:
1825- else
1826- { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1827-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1828- eval $ac_var=\$ac_old_val
1829- fi
1830- { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1831-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1832- { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1833-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1834- fi;;
1835- esac
1836- # Pass precious variables to config.status.
1837- if test "$ac_new_set" = set; then
1838- case $ac_new_val in
1839- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840- *) ac_arg=$ac_var=$ac_new_val ;;
1841- esac
1842- case " $ac_configure_args " in
1843- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844- *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845- esac
1846- fi
1847-done
1848-if $ac_cache_corrupted; then
1849- { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1850-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1851- { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1852-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1853- { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1854-$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1855- { (exit 1); exit 1; }; }
1856-fi
1857-
1858-
1859-
1860-
1861-
1862+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863+/* end confdefs.h. */
1864+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866+#define $2 innocuous_$2
1867
1868+/* System header to define __stub macros and hopefully few prototypes,
1869+ which can conflict with char $2 (); below.
1870+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871+ <limits.h> exists even on freestanding compilers. */
1872
1873+#ifdef __STDC__
1874+# include <limits.h>
1875+#else
1876+# include <assert.h>
1877+#endif
1878
1879+#undef $2
1880
1881+/* Override any GCC internal prototype to avoid an error.
1882+ Use char because int might match the return type of a GCC
1883+ builtin and then its argument prototype would still apply. */
1884+#ifdef __cplusplus
1885+extern "C"
1886+#endif
1887+char $2 ();
1888+/* The GNU C library defines this for functions which it implements
1889+ to always fail with ENOSYS. Some functions are actually named
1890+ something starting with __ and the normal name is an alias. */
1891+#if defined __stub_$2 || defined __stub___$2
1892+choke me
1893+#endif
1894
1895+int
1896+main ()
1897+{
1898+return $2 ();
1899+ ;
1900+ return 0;
1901+}
1902+_ACEOF
1903+if ac_fn_c_try_link "$LINENO"; then :
1904+ eval "$3=yes"
1905+else
1906+ eval "$3=no"
1907+fi
1908+rm -f core conftest.err conftest.$ac_objext \
1909+ conftest$ac_exeext conftest.$ac_ext
1910+fi
1911+eval ac_res=\$$3
1912+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913+$as_echo "$ac_res" >&6; }
1914+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916+} # ac_fn_c_check_func
1917
1918+# ac_fn_cxx_try_compile LINENO
1919+# ----------------------------
1920+# Try to compile conftest.$ac_ext, and return whether this succeeded.
1921+ac_fn_cxx_try_compile ()
1922+{
1923+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924+ rm -f conftest.$ac_objext
1925+ if { { ac_try="$ac_compile"
1926+case "(($ac_try" in
1927+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928+ *) ac_try_echo=$ac_try;;
1929+esac
1930+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931+$as_echo "$ac_try_echo"; } >&5
1932+ (eval "$ac_compile") 2>conftest.err
1933+ ac_status=$?
1934+ if test -s conftest.err; then
1935+ grep -v '^ *+' conftest.err >conftest.er1
1936+ cat conftest.er1 >&5
1937+ mv -f conftest.er1 conftest.err
1938+ fi
1939+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940+ test $ac_status = 0; } && {
1941+ test -z "$ac_cxx_werror_flag" ||
1942+ test ! -s conftest.err
1943+ } && test -s conftest.$ac_objext; then :
1944+ ac_retval=0
1945+else
1946+ $as_echo "$as_me: failed program was:" >&5
1947+sed 's/^/| /' conftest.$ac_ext >&5
1948
1949+ ac_retval=1
1950+fi
1951+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952+ as_fn_set_status $ac_retval
1953
1954+} # ac_fn_cxx_try_compile
1955
1956+# ac_fn_cxx_try_cpp LINENO
1957+# ------------------------
1958+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959+ac_fn_cxx_try_cpp ()
1960+{
1961+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962+ if { { ac_try="$ac_cpp conftest.$ac_ext"
1963+case "(($ac_try" in
1964+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965+ *) ac_try_echo=$ac_try;;
1966+esac
1967+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968+$as_echo "$ac_try_echo"; } >&5
1969+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970+ ac_status=$?
1971+ if test -s conftest.err; then
1972+ grep -v '^ *+' conftest.err >conftest.er1
1973+ cat conftest.er1 >&5
1974+ mv -f conftest.er1 conftest.err
1975+ fi
1976+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977+ test $ac_status = 0; } >/dev/null && {
1978+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1979+ test ! -s conftest.err
1980+ }; then :
1981+ ac_retval=0
1982+else
1983+ $as_echo "$as_me: failed program was:" >&5
1984+sed 's/^/| /' conftest.$ac_ext >&5
1985
1986+ ac_retval=1
1987+fi
1988+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989+ as_fn_set_status $ac_retval
1990
1991+} # ac_fn_cxx_try_cpp
1992
1993+# ac_fn_cxx_try_link LINENO
1994+# -------------------------
1995+# Try to link conftest.$ac_ext, and return whether this succeeded.
1996+ac_fn_cxx_try_link ()
1997+{
1998+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999+ rm -f conftest.$ac_objext conftest$ac_exeext
2000+ if { { ac_try="$ac_link"
2001+case "(($ac_try" in
2002+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003+ *) ac_try_echo=$ac_try;;
2004+esac
2005+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006+$as_echo "$ac_try_echo"; } >&5
2007+ (eval "$ac_link") 2>conftest.err
2008+ ac_status=$?
2009+ if test -s conftest.err; then
2010+ grep -v '^ *+' conftest.err >conftest.er1
2011+ cat conftest.er1 >&5
2012+ mv -f conftest.er1 conftest.err
2013+ fi
2014+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015+ test $ac_status = 0; } && {
2016+ test -z "$ac_cxx_werror_flag" ||
2017+ test ! -s conftest.err
2018+ } && test -s conftest$ac_exeext && {
2019+ test "$cross_compiling" = yes ||
2020+ $as_test_x conftest$ac_exeext
2021+ }; then :
2022+ ac_retval=0
2023+else
2024+ $as_echo "$as_me: failed program was:" >&5
2025+sed 's/^/| /' conftest.$ac_ext >&5
2026
2027+ ac_retval=1
2028+fi
2029+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031+ # interfere with the next link command; also delete a directory that is
2032+ # left behind by Apple's compiler. We do this before executing the actions.
2033+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035+ as_fn_set_status $ac_retval
2036
2037+} # ac_fn_cxx_try_link
2038
2039+# ac_fn_f77_try_compile LINENO
2040+# ----------------------------
2041+# Try to compile conftest.$ac_ext, and return whether this succeeded.
2042+ac_fn_f77_try_compile ()
2043+{
2044+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045+ rm -f conftest.$ac_objext
2046+ if { { ac_try="$ac_compile"
2047+case "(($ac_try" in
2048+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049+ *) ac_try_echo=$ac_try;;
2050+esac
2051+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052+$as_echo "$ac_try_echo"; } >&5
2053+ (eval "$ac_compile") 2>conftest.err
2054+ ac_status=$?
2055+ if test -s conftest.err; then
2056+ grep -v '^ *+' conftest.err >conftest.er1
2057+ cat conftest.er1 >&5
2058+ mv -f conftest.er1 conftest.err
2059+ fi
2060+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061+ test $ac_status = 0; } && {
2062+ test -z "$ac_f77_werror_flag" ||
2063+ test ! -s conftest.err
2064+ } && test -s conftest.$ac_objext; then :
2065+ ac_retval=0
2066+else
2067+ $as_echo "$as_me: failed program was:" >&5
2068+sed 's/^/| /' conftest.$ac_ext >&5
2069
2070+ ac_retval=1
2071+fi
2072+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073+ as_fn_set_status $ac_retval
2074
2075+} # ac_fn_f77_try_compile
2076
2077+# ac_fn_f77_try_link LINENO
2078+# -------------------------
2079+# Try to link conftest.$ac_ext, and return whether this succeeded.
2080+ac_fn_f77_try_link ()
2081+{
2082+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083+ rm -f conftest.$ac_objext conftest$ac_exeext
2084+ if { { ac_try="$ac_link"
2085+case "(($ac_try" in
2086+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087+ *) ac_try_echo=$ac_try;;
2088+esac
2089+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090+$as_echo "$ac_try_echo"; } >&5
2091+ (eval "$ac_link") 2>conftest.err
2092+ ac_status=$?
2093+ if test -s conftest.err; then
2094+ grep -v '^ *+' conftest.err >conftest.er1
2095+ cat conftest.er1 >&5
2096+ mv -f conftest.er1 conftest.err
2097+ fi
2098+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099+ test $ac_status = 0; } && {
2100+ test -z "$ac_f77_werror_flag" ||
2101+ test ! -s conftest.err
2102+ } && test -s conftest$ac_exeext && {
2103+ test "$cross_compiling" = yes ||
2104+ $as_test_x conftest$ac_exeext
2105+ }; then :
2106+ ac_retval=0
2107+else
2108+ $as_echo "$as_me: failed program was:" >&5
2109+sed 's/^/| /' conftest.$ac_ext >&5
2110
2111-ac_ext=c
2112-ac_cpp='$CPP $CPPFLAGS'
2113-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2114-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2115-ac_compiler_gnu=$ac_cv_c_compiler_gnu
2116+ ac_retval=1
2117+fi
2118+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2119+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2120+ # interfere with the next link command; also delete a directory that is
2121+ # left behind by Apple's compiler. We do this before executing the actions.
2122+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2123+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124+ as_fn_set_status $ac_retval
2125
2126+} # ac_fn_f77_try_link
2127+cat >config.log <<_ACEOF
2128+This file contains any messages produced by compilers while
2129+running configure, to aid debugging if configure makes a mistake.
2130
2131-V_MAJOR=1
2132-V_MINOR=0
2133-V_REV=22
2134-is_release=no
2135+It was created by sane-backends $as_me 1.0.22git, which was
2136+generated by GNU Autoconf 2.65. Invocation command line was
2137
2138+ $ $0 $@
2139
2140+_ACEOF
2141+exec 5>>config.log
2142+{
2143+cat <<_ASUNAME
2144+## --------- ##
2145+## Platform. ##
2146+## --------- ##
2147
2148-am__api_version='1.11'
2149+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150+uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151+uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152+uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153+uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155-ac_aux_dir=
2156-for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157- if test -f "$ac_dir/install-sh"; then
2158- ac_aux_dir=$ac_dir
2159- ac_install_sh="$ac_aux_dir/install-sh -c"
2160- break
2161- elif test -f "$ac_dir/install.sh"; then
2162- ac_aux_dir=$ac_dir
2163- ac_install_sh="$ac_aux_dir/install.sh -c"
2164- break
2165- elif test -f "$ac_dir/shtool"; then
2166- ac_aux_dir=$ac_dir
2167- ac_install_sh="$ac_aux_dir/shtool install -c"
2168- break
2169- fi
2170-done
2171-if test -z "$ac_aux_dir"; then
2172- { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2173-$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2174- { (exit 1); exit 1; }; }
2175-fi
2176+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178
2179-# These three variables are undocumented and unsupported,
2180-# and are intended to be withdrawn in a future Autoconf release.
2181-# They can cause serious problems if a builder's source tree is in a directory
2182-# whose full name contains unusual characters.
2183-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2184-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2185-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193
2194+_ASUNAME
2195
2196-# Find a good install program. We prefer a C program (faster),
2197-# so one script is as good as another. But avoid the broken or
2198-# incompatible versions:
2199-# SysV /etc/install, /usr/sbin/install
2200-# SunOS /usr/etc/install
2201-# IRIX /sbin/install
2202-# AIX /bin/install
2203-# AmigaOS /C/install, which installs bootblocks on floppy discs
2204-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2205-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2206-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2207-# OS/2's system install, which has a completely different semantic
2208-# ./install, which can be erroneously created by make from ./install.sh.
2209-# Reject install programs that cannot install multiple files.
2210-{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2211-$as_echo_n "checking for a BSD-compatible install... " >&6; }
2212-if test -z "$INSTALL"; then
2213-if test "${ac_cv_path_install+set}" = set; then
2214- $as_echo_n "(cached) " >&6
2215-else
2216- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222- # Account for people who put trailing slashes in PATH elements.
2223-case $as_dir/ in
2224- ./ | .// | /cC/* | \
2225- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2226- ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2227- /usr/ucb/* ) ;;
2228- *)
2229- # OSF1 and SCO ODT 3.0 have their own names for install.
2230- # Don't use installbsd from OSF since it installs stuff as root
2231- # by default.
2232- for ac_prog in ginstall scoinst install; do
2233- for ac_exec_ext in '' $ac_executable_extensions; do
2234- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2235- if test $ac_prog = install &&
2236- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2237- # AIX install. It has an incompatible calling convention.
2238- :
2239- elif test $ac_prog = install &&
2240- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2241- # program-specific install script used by HP pwplus--don't use.
2242- :
2243- else
2244- rm -rf conftest.one conftest.two conftest.dir
2245- echo one > conftest.one
2246- echo two > conftest.two
2247- mkdir conftest.dir
2248- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2249- test -s conftest.one && test -s conftest.two &&
2250- test -s conftest.dir/conftest.one &&
2251- test -s conftest.dir/conftest.two
2252- then
2253- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2254- break 3
2255- fi
2256- fi
2257- fi
2258- done
2259- done
2260- ;;
2261-esac
2262-
2263-done
2264+ $as_echo "PATH: $as_dir"
2265+ done
2266 IFS=$as_save_IFS
2267
2268-rm -rf conftest.one conftest.two conftest.dir
2269+} >&5
2270
2271-fi
2272- if test "${ac_cv_path_install+set}" = set; then
2273- INSTALL=$ac_cv_path_install
2274- else
2275- # As a last resort, use the slow shell script. Don't cache a
2276- # value for INSTALL within a source directory, because that will
2277- # break other packages using the cache if that directory is
2278- # removed, or if the value is a relative name.
2279- INSTALL=$ac_install_sh
2280- fi
2281-fi
2282-{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2283-$as_echo "$INSTALL" >&6; }
2284-
2285-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2286-# It thinks the first close brace ends the variable substitution.
2287-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2288-
2289-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2290-
2291-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2292-
2293-{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2294-$as_echo_n "checking whether build environment is sane... " >&6; }
2295-# Just in case
2296-sleep 1
2297-echo timestamp > conftest.file
2298-# Reject unsafe characters in $srcdir or the absolute working directory
2299-# name. Accept space and tab only in the latter.
2300-am_lf='
2301-'
2302-case `pwd` in
2303- *[\\\"\#\$\&\'\`$am_lf]*)
2304- { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2305-$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2306- { (exit 1); exit 1; }; };;
2307-esac
2308-case $srcdir in
2309- *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2310- { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2311-$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2312- { (exit 1); exit 1; }; };;
2313-esac
2314-
2315-# Do `set' in a subshell so we don't clobber the current shell's
2316-# arguments. Must try -L first in case configure is actually a
2317-# symlink; some systems play weird games with the mod time of symlinks
2318-# (eg FreeBSD returns the mod time of the symlink's containing
2319-# directory).
2320-if (
2321- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322- if test "$*" = "X"; then
2323- # -L didn't work.
2324- set X `ls -t "$srcdir/configure" conftest.file`
2325- fi
2326- rm -f conftest.file
2327- if test "$*" != "X $srcdir/configure conftest.file" \
2328- && test "$*" != "X conftest.file $srcdir/configure"; then
2329-
2330- # If neither matched, then we have a broken ls. This can happen
2331- # if, for instance, CONFIG_SHELL is bash and it inherits a
2332- # broken ls alias from the environment. This has actually
2333- # happened. Such a system could not be considered "sane".
2334- { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2335-alias in your environment" >&5
2336-$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2337-alias in your environment" >&2;}
2338- { (exit 1); exit 1; }; }
2339- fi
2340-
2341- test "$2" = conftest.file
2342- )
2343-then
2344- # Ok.
2345- :
2346-else
2347- { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2348-Check your system clock" >&5
2349-$as_echo "$as_me: error: newly created file is older than distributed files!
2350-Check your system clock" >&2;}
2351- { (exit 1); exit 1; }; }
2352-fi
2353-{ $as_echo "$as_me:$LINENO: result: yes" >&5
2354-$as_echo "yes" >&6; }
2355-test "$program_prefix" != NONE &&
2356- program_transform_name="s&^&$program_prefix&;$program_transform_name"
2357-# Use a double $ so make ignores it.
2358-test "$program_suffix" != NONE &&
2359- program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360-# Double any \ or $.
2361-# By default was `s,x,x', remove it if useless.
2362-ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363-program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2364-
2365-# expand $ac_aux_dir to an absolute path
2366-am_aux_dir=`cd $ac_aux_dir && pwd`
2367-
2368-if test x"${MISSING+set}" != xset; then
2369- case $am_aux_dir in
2370- *\ * | *\ *)
2371- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2372- *)
2373- MISSING="\${SHELL} $am_aux_dir/missing" ;;
2374- esac
2375-fi
2376-# Use eval to expand $SHELL
2377-if eval "$MISSING --run true"; then
2378- am_missing_run="$MISSING --run "
2379-else
2380- am_missing_run=
2381- { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2382-$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2383-fi
2384-
2385-if test x"${install_sh}" != xset; then
2386- case $am_aux_dir in
2387- *\ * | *\ *)
2388- install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2389- *)
2390- install_sh="\${SHELL} $am_aux_dir/install-sh"
2391- esac
2392-fi
2393-
2394-# Installed binaries are usually stripped using `strip' when the user
2395-# run `make install-strip'. However `strip' might not be the right
2396-# tool to use in cross-compilation environments, therefore Automake
2397-# will honor the `STRIP' environment variable to overrule this program.
2398-if test "$cross_compiling" != no; then
2399- if test -n "$ac_tool_prefix"; then
2400- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2401-set dummy ${ac_tool_prefix}strip; ac_word=$2
2402-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2403-$as_echo_n "checking for $ac_word... " >&6; }
2404-if test "${ac_cv_prog_STRIP+set}" = set; then
2405- $as_echo_n "(cached) " >&6
2406-else
2407- if test -n "$STRIP"; then
2408- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2409-else
2410-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411-for as_dir in $PATH
2412-do
2413- IFS=$as_save_IFS
2414- test -z "$as_dir" && as_dir=.
2415- for ac_exec_ext in '' $ac_executable_extensions; do
2416- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2418- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419- break 2
2420- fi
2421-done
2422-done
2423-IFS=$as_save_IFS
2424-
2425-fi
2426-fi
2427-STRIP=$ac_cv_prog_STRIP
2428-if test -n "$STRIP"; then
2429- { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2430-$as_echo "$STRIP" >&6; }
2431-else
2432- { $as_echo "$as_me:$LINENO: result: no" >&5
2433-$as_echo "no" >&6; }
2434-fi
2435-
2436-
2437-fi
2438-if test -z "$ac_cv_prog_STRIP"; then
2439- ac_ct_STRIP=$STRIP
2440- # Extract the first word of "strip", so it can be a program name with args.
2441-set dummy strip; ac_word=$2
2442-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2443-$as_echo_n "checking for $ac_word... " >&6; }
2444-if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2445- $as_echo_n "(cached) " >&6
2446-else
2447- if test -n "$ac_ct_STRIP"; then
2448- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2449-else
2450-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451-for as_dir in $PATH
2452-do
2453- IFS=$as_save_IFS
2454- test -z "$as_dir" && as_dir=.
2455- for ac_exec_ext in '' $ac_executable_extensions; do
2456- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457- ac_cv_prog_ac_ct_STRIP="strip"
2458- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459- break 2
2460- fi
2461-done
2462-done
2463-IFS=$as_save_IFS
2464-
2465-fi
2466-fi
2467-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2468-if test -n "$ac_ct_STRIP"; then
2469- { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2470-$as_echo "$ac_ct_STRIP" >&6; }
2471-else
2472- { $as_echo "$as_me:$LINENO: result: no" >&5
2473-$as_echo "no" >&6; }
2474-fi
2475-
2476- if test "x$ac_ct_STRIP" = x; then
2477- STRIP=":"
2478- else
2479- case $cross_compiling:$ac_tool_warned in
2480-yes:)
2481-{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2482-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2483-ac_tool_warned=yes ;;
2484-esac
2485- STRIP=$ac_ct_STRIP
2486- fi
2487-else
2488- STRIP="$ac_cv_prog_STRIP"
2489-fi
2490-
2491-fi
2492-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2493-
2494-{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2495-$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2496-if test -z "$MKDIR_P"; then
2497- if test "${ac_cv_path_mkdir+set}" = set; then
2498- $as_echo_n "(cached) " >&6
2499-else
2500- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2502-do
2503- IFS=$as_save_IFS
2504- test -z "$as_dir" && as_dir=.
2505- for ac_prog in mkdir gmkdir; do
2506- for ac_exec_ext in '' $ac_executable_extensions; do
2507- { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2508- case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2509- 'mkdir (GNU coreutils) '* | \
2510- 'mkdir (coreutils) '* | \
2511- 'mkdir (fileutils) '4.1*)
2512- ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2513- break 3;;
2514- esac
2515- done
2516- done
2517-done
2518-IFS=$as_save_IFS
2519-
2520-fi
2521-
2522- if test "${ac_cv_path_mkdir+set}" = set; then
2523- MKDIR_P="$ac_cv_path_mkdir -p"
2524- else
2525- # As a last resort, use the slow shell script. Don't cache a
2526- # value for MKDIR_P within a source directory, because that will
2527- # break other packages using the cache if that directory is
2528- # removed, or if the value is a relative name.
2529- test -d ./--version && rmdir ./--version
2530- MKDIR_P="$ac_install_sh -d"
2531- fi
2532-fi
2533-{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2534-$as_echo "$MKDIR_P" >&6; }
2535-
2536-mkdir_p="$MKDIR_P"
2537-case $mkdir_p in
2538- [\\/$]* | ?:[\\/]*) ;;
2539- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2540-esac
2541-
2542-for ac_prog in gawk mawk nawk awk
2543-do
2544- # Extract the first word of "$ac_prog", so it can be a program name with args.
2545-set dummy $ac_prog; ac_word=$2
2546-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2547-$as_echo_n "checking for $ac_word... " >&6; }
2548-if test "${ac_cv_prog_AWK+set}" = set; then
2549- $as_echo_n "(cached) " >&6
2550-else
2551- if test -n "$AWK"; then
2552- ac_cv_prog_AWK="$AWK" # Let the user override the test.
2553-else
2554-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555-for as_dir in $PATH
2556-do
2557- IFS=$as_save_IFS
2558- test -z "$as_dir" && as_dir=.
2559- for ac_exec_ext in '' $ac_executable_extensions; do
2560- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561- ac_cv_prog_AWK="$ac_prog"
2562- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563- break 2
2564- fi
2565-done
2566-done
2567-IFS=$as_save_IFS
2568-
2569-fi
2570-fi
2571-AWK=$ac_cv_prog_AWK
2572-if test -n "$AWK"; then
2573- { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2574-$as_echo "$AWK" >&6; }
2575-else
2576- { $as_echo "$as_me:$LINENO: result: no" >&5
2577-$as_echo "no" >&6; }
2578-fi
2579-
2580-
2581- test -n "$AWK" && break
2582-done
2583-
2584-{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2585-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2586-set x ${MAKE-make}
2587-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2588-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2589- $as_echo_n "(cached) " >&6
2590-else
2591- cat >conftest.make <<\_ACEOF
2592-SHELL = /bin/sh
2593-all:
2594- @echo '@@@%%%=$(MAKE)=@@@%%%'
2595-_ACEOF
2596-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2597-case `${MAKE-make} -f conftest.make 2>/dev/null` in
2598- *@@@%%%=?*=@@@%%%*)
2599- eval ac_cv_prog_make_${ac_make}_set=yes;;
2600- *)
2601- eval ac_cv_prog_make_${ac_make}_set=no;;
2602-esac
2603-rm -f conftest.make
2604-fi
2605-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2606- { $as_echo "$as_me:$LINENO: result: yes" >&5
2607-$as_echo "yes" >&6; }
2608- SET_MAKE=
2609-else
2610- { $as_echo "$as_me:$LINENO: result: no" >&5
2611-$as_echo "no" >&6; }
2612- SET_MAKE="MAKE=${MAKE-make}"
2613-fi
2614-
2615-rm -rf .tst 2>/dev/null
2616-mkdir .tst 2>/dev/null
2617-if test -d .tst; then
2618- am__leading_dot=.
2619-else
2620- am__leading_dot=_
2621-fi
2622-rmdir .tst 2>/dev/null
2623-
2624-if test "`cd $srcdir && pwd`" != "`pwd`"; then
2625- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2626- # is not polluted with repeated "-I."
2627- am__isrc=' -I$(srcdir)'
2628- # test to see if srcdir already configured
2629- if test -f $srcdir/config.status; then
2630- { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2631-$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2632- { (exit 1); exit 1; }; }
2633- fi
2634-fi
2635-
2636-# test whether we have cygpath
2637-if test -z "$CYGPATH_W"; then
2638- if (cygpath --version) >/dev/null 2>/dev/null; then
2639- CYGPATH_W='cygpath -w'
2640- else
2641- CYGPATH_W=echo
2642- fi
2643-fi
2644-
2645-
2646-# Define the identity of the package.
2647- PACKAGE='sane-backends'
2648- VERSION='1.0.22git'
2649-
2650-
2651-cat >>confdefs.h <<_ACEOF
2652-#define PACKAGE "$PACKAGE"
2653-_ACEOF
2654-
2655-
2656-cat >>confdefs.h <<_ACEOF
2657-#define VERSION "$VERSION"
2658-_ACEOF
2659-
2660-# Some tools Automake needs.
2661-
2662-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2663-
2664-
2665-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2666-
2667-
2668-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2669-
2670-
2671-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2672-
2673-
2674-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2675-
2676-# We need awk for the "check" target. The system "awk" is bad on
2677-# some platforms.
2678-# Always define AMTAR for backward compatibility.
2679-
2680-AMTAR=${AMTAR-"${am_missing_run}tar"}
2681-
2682-am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2683-
2684-
2685-
2686-
2687-
2688-
2689-{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2690-$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2691- # Check whether --enable-maintainer-mode was given.
2692-if test "${enable_maintainer_mode+set}" = set; then
2693- enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2694-else
2695- USE_MAINTAINER_MODE=no
2696-fi
2697-
2698- { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2699-$as_echo "$USE_MAINTAINER_MODE" >&6; }
2700- if test $USE_MAINTAINER_MODE = yes; then
2701- MAINTAINER_MODE_TRUE=
2702- MAINTAINER_MODE_FALSE='#'
2703-else
2704- MAINTAINER_MODE_TRUE='#'
2705- MAINTAINER_MODE_FALSE=
2706-fi
2707-
2708- MAINT=$MAINTAINER_MODE_TRUE
2709-
2710-
2711-
2712-ac_config_headers="$ac_config_headers include/sane/config.h"
2713-
2714-
2715-PACKAGE=sane-backends
2716-VERSION=1.0.22git
2717-NUMBER_VERSION=${V_MAJOR}.${V_MINOR}.${V_REV}
2718-
2719-cat >>confdefs.h <<_ACEOF
2720-#define PACKAGE "$PACKAGE"
2721-_ACEOF
2722-
2723-
2724-cat >>confdefs.h <<_ACEOF
2725-#define VERSION "$VERSION"
2726-_ACEOF
2727-
2728-
2729-cat >>confdefs.h <<_ACEOF
2730-#define SANE_DLL_V_MAJOR $V_MAJOR
2731-_ACEOF
2732-
2733-
2734-cat >>confdefs.h <<_ACEOF
2735-#define SANE_DLL_V_MINOR $V_MINOR
2736-_ACEOF
2737-
2738-
2739-cat >>confdefs.h <<_ACEOF
2740-#define SANE_DLL_V_BUILD $V_REV
2741-_ACEOF
2742-
2743-
2744-
2745-
2746-
2747-
2748-
2749-# Make sure we can run config.sub.
2750-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2751- { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2752-$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2753- { (exit 1); exit 1; }; }
2754-
2755-{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2756-$as_echo_n "checking build system type... " >&6; }
2757-if test "${ac_cv_build+set}" = set; then
2758- $as_echo_n "(cached) " >&6
2759-else
2760- ac_build_alias=$build_alias
2761-test "x$ac_build_alias" = x &&
2762- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2763-test "x$ac_build_alias" = x &&
2764- { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2765-$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2766- { (exit 1); exit 1; }; }
2767-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2768- { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2769-$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2770- { (exit 1); exit 1; }; }
2771-
2772-fi
2773-{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2774-$as_echo "$ac_cv_build" >&6; }
2775-case $ac_cv_build in
2776-*-*-*) ;;
2777-*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2778-$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2779- { (exit 1); exit 1; }; };;
2780-esac
2781-build=$ac_cv_build
2782-ac_save_IFS=$IFS; IFS='-'
2783-set x $ac_cv_build
2784-shift
2785-build_cpu=$1
2786-build_vendor=$2
2787-shift; shift
2788-# Remember, the first character of IFS is used to create $*,
2789-# except with old shells:
2790-build_os=$*
2791-IFS=$ac_save_IFS
2792-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2793-
2794-
2795-{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2796-$as_echo_n "checking host system type... " >&6; }
2797-if test "${ac_cv_host+set}" = set; then
2798- $as_echo_n "(cached) " >&6
2799-else
2800- if test "x$host_alias" = x; then
2801- ac_cv_host=$ac_cv_build
2802-else
2803- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2804- { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2805-$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2806- { (exit 1); exit 1; }; }
2807-fi
2808-
2809-fi
2810-{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2811-$as_echo "$ac_cv_host" >&6; }
2812-case $ac_cv_host in
2813-*-*-*) ;;
2814-*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2815-$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2816- { (exit 1); exit 1; }; };;
2817-esac
2818-host=$ac_cv_host
2819-ac_save_IFS=$IFS; IFS='-'
2820-set x $ac_cv_host
2821-shift
2822-host_cpu=$1
2823-host_vendor=$2
2824-shift; shift
2825-# Remember, the first character of IFS is used to create $*,
2826-# except with old shells:
2827-host_os=$*
2828-IFS=$ac_save_IFS
2829-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830-
2831-
2832-
2833-
2834-# Check whether --with-docdir was given.
2835-if test "${with_docdir+set}" = set; then
2836- withval=$with_docdir;
2837- docdir="${withval}"
2838-
2839-else
2840-
2841- docdir='${prefix}/doc/sane-${VERSION}'
2842-
2843-fi
2844-
2845-
2846-ac_ext=c
2847-ac_cpp='$CPP $CPPFLAGS'
2848-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850-ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851-if test -n "$ac_tool_prefix"; then
2852- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853-set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2855-$as_echo_n "checking for $ac_word... " >&6; }
2856-if test "${ac_cv_prog_CC+set}" = set; then
2857- $as_echo_n "(cached) " >&6
2858-else
2859- if test -n "$CC"; then
2860- ac_cv_prog_CC="$CC" # Let the user override the test.
2861-else
2862-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863-for as_dir in $PATH
2864-do
2865- IFS=$as_save_IFS
2866- test -z "$as_dir" && as_dir=.
2867- for ac_exec_ext in '' $ac_executable_extensions; do
2868- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869- ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871- break 2
2872- fi
2873-done
2874-done
2875-IFS=$as_save_IFS
2876-
2877-fi
2878-fi
2879-CC=$ac_cv_prog_CC
2880-if test -n "$CC"; then
2881- { $as_echo "$as_me:$LINENO: result: $CC" >&5
2882-$as_echo "$CC" >&6; }
2883-else
2884- { $as_echo "$as_me:$LINENO: result: no" >&5
2885-$as_echo "no" >&6; }
2886-fi
2887-
2888-
2889-fi
2890-if test -z "$ac_cv_prog_CC"; then
2891- ac_ct_CC=$CC
2892- # Extract the first word of "gcc", so it can be a program name with args.
2893-set dummy gcc; ac_word=$2
2894-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2895-$as_echo_n "checking for $ac_word... " >&6; }
2896-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897- $as_echo_n "(cached) " >&6
2898-else
2899- if test -n "$ac_ct_CC"; then
2900- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901-else
2902-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903-for as_dir in $PATH
2904-do
2905- IFS=$as_save_IFS
2906- test -z "$as_dir" && as_dir=.
2907- for ac_exec_ext in '' $ac_executable_extensions; do
2908- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909- ac_cv_prog_ac_ct_CC="gcc"
2910- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911- break 2
2912- fi
2913-done
2914-done
2915-IFS=$as_save_IFS
2916-
2917-fi
2918-fi
2919-ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920-if test -n "$ac_ct_CC"; then
2921- { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922-$as_echo "$ac_ct_CC" >&6; }
2923-else
2924- { $as_echo "$as_me:$LINENO: result: no" >&5
2925-$as_echo "no" >&6; }
2926-fi
2927-
2928- if test "x$ac_ct_CC" = x; then
2929- CC=""
2930- else
2931- case $cross_compiling:$ac_tool_warned in
2932-yes:)
2933-{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2934-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935-ac_tool_warned=yes ;;
2936-esac
2937- CC=$ac_ct_CC
2938- fi
2939-else
2940- CC="$ac_cv_prog_CC"
2941-fi
2942-
2943-if test -z "$CC"; then
2944- if test -n "$ac_tool_prefix"; then
2945- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946-set dummy ${ac_tool_prefix}cc; ac_word=$2
2947-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2948-$as_echo_n "checking for $ac_word... " >&6; }
2949-if test "${ac_cv_prog_CC+set}" = set; then
2950- $as_echo_n "(cached) " >&6
2951-else
2952- if test -n "$CC"; then
2953- ac_cv_prog_CC="$CC" # Let the user override the test.
2954-else
2955-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956-for as_dir in $PATH
2957-do
2958- IFS=$as_save_IFS
2959- test -z "$as_dir" && as_dir=.
2960- for ac_exec_ext in '' $ac_executable_extensions; do
2961- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962- ac_cv_prog_CC="${ac_tool_prefix}cc"
2963- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964- break 2
2965- fi
2966-done
2967-done
2968-IFS=$as_save_IFS
2969-
2970-fi
2971-fi
2972-CC=$ac_cv_prog_CC
2973-if test -n "$CC"; then
2974- { $as_echo "$as_me:$LINENO: result: $CC" >&5
2975-$as_echo "$CC" >&6; }
2976-else
2977- { $as_echo "$as_me:$LINENO: result: no" >&5
2978-$as_echo "no" >&6; }
2979-fi
2980-
2981-
2982- fi
2983-fi
2984-if test -z "$CC"; then
2985- # Extract the first word of "cc", so it can be a program name with args.
2986-set dummy cc; ac_word=$2
2987-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988-$as_echo_n "checking for $ac_word... " >&6; }
2989-if test "${ac_cv_prog_CC+set}" = set; then
2990- $as_echo_n "(cached) " >&6
2991-else
2992- if test -n "$CC"; then
2993- ac_cv_prog_CC="$CC" # Let the user override the test.
2994-else
2995- ac_prog_rejected=no
2996-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997-for as_dir in $PATH
2998-do
2999- IFS=$as_save_IFS
3000- test -z "$as_dir" && as_dir=.
3001- for ac_exec_ext in '' $ac_executable_extensions; do
3002- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004- ac_prog_rejected=yes
3005- continue
3006- fi
3007- ac_cv_prog_CC="cc"
3008- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009- break 2
3010- fi
3011-done
3012-done
3013-IFS=$as_save_IFS
3014-
3015-if test $ac_prog_rejected = yes; then
3016- # We found a bogon in the path, so make sure we never use it.
3017- set dummy $ac_cv_prog_CC
3018- shift
3019- if test $# != 0; then
3020- # We chose a different compiler from the bogus one.
3021- # However, it has the same basename, so the bogon will be chosen
3022- # first if we set CC to just the basename; use the full file name.
3023- shift
3024- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3025- fi
3026-fi
3027-fi
3028-fi
3029-CC=$ac_cv_prog_CC
3030-if test -n "$CC"; then
3031- { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032-$as_echo "$CC" >&6; }
3033-else
3034- { $as_echo "$as_me:$LINENO: result: no" >&5
3035-$as_echo "no" >&6; }
3036-fi
3037-
3038-
3039-fi
3040-if test -z "$CC"; then
3041- if test -n "$ac_tool_prefix"; then
3042- for ac_prog in cl.exe
3043- do
3044- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3047-$as_echo_n "checking for $ac_word... " >&6; }
3048-if test "${ac_cv_prog_CC+set}" = set; then
3049- $as_echo_n "(cached) " >&6
3050-else
3051- if test -n "$CC"; then
3052- ac_cv_prog_CC="$CC" # Let the user override the test.
3053-else
3054-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055-for as_dir in $PATH
3056-do
3057- IFS=$as_save_IFS
3058- test -z "$as_dir" && as_dir=.
3059- for ac_exec_ext in '' $ac_executable_extensions; do
3060- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063- break 2
3064- fi
3065-done
3066-done
3067-IFS=$as_save_IFS
3068-
3069-fi
3070-fi
3071-CC=$ac_cv_prog_CC
3072-if test -n "$CC"; then
3073- { $as_echo "$as_me:$LINENO: result: $CC" >&5
3074-$as_echo "$CC" >&6; }
3075-else
3076- { $as_echo "$as_me:$LINENO: result: no" >&5
3077-$as_echo "no" >&6; }
3078-fi
3079-
3080-
3081- test -n "$CC" && break
3082- done
3083-fi
3084-if test -z "$CC"; then
3085- ac_ct_CC=$CC
3086- for ac_prog in cl.exe
3087-do
3088- # Extract the first word of "$ac_prog", so it can be a program name with args.
3089-set dummy $ac_prog; ac_word=$2
3090-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091-$as_echo_n "checking for $ac_word... " >&6; }
3092-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3093- $as_echo_n "(cached) " >&6
3094-else
3095- if test -n "$ac_ct_CC"; then
3096- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097-else
3098-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099-for as_dir in $PATH
3100-do
3101- IFS=$as_save_IFS
3102- test -z "$as_dir" && as_dir=.
3103- for ac_exec_ext in '' $ac_executable_extensions; do
3104- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105- ac_cv_prog_ac_ct_CC="$ac_prog"
3106- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107- break 2
3108- fi
3109-done
3110-done
3111-IFS=$as_save_IFS
3112-
3113-fi
3114-fi
3115-ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116-if test -n "$ac_ct_CC"; then
3117- { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3118-$as_echo "$ac_ct_CC" >&6; }
3119-else
3120- { $as_echo "$as_me:$LINENO: result: no" >&5
3121-$as_echo "no" >&6; }
3122-fi
3123-
3124-
3125- test -n "$ac_ct_CC" && break
3126-done
3127-
3128- if test "x$ac_ct_CC" = x; then
3129- CC=""
3130- else
3131- case $cross_compiling:$ac_tool_warned in
3132-yes:)
3133-{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3134-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135-ac_tool_warned=yes ;;
3136-esac
3137- CC=$ac_ct_CC
3138- fi
3139-fi
3140-
3141-fi
3142-
3143-
3144-test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3145-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146-{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3147-See \`config.log' for more details." >&5
3148-$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3149-See \`config.log' for more details." >&2;}
3150- { (exit 1); exit 1; }; }; }
3151-
3152-# Provide some information about the compiler.
3153-$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3154-set X $ac_compile
3155-ac_compiler=$2
3156-{ (ac_try="$ac_compiler --version >&5"
3157-case "(($ac_try" in
3158- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159- *) ac_try_echo=$ac_try;;
3160-esac
3161-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162-$as_echo "$ac_try_echo") >&5
3163- (eval "$ac_compiler --version >&5") 2>&5
3164- ac_status=$?
3165- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166- (exit $ac_status); }
3167-{ (ac_try="$ac_compiler -v >&5"
3168-case "(($ac_try" in
3169- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170- *) ac_try_echo=$ac_try;;
3171-esac
3172-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173-$as_echo "$ac_try_echo") >&5
3174- (eval "$ac_compiler -v >&5") 2>&5
3175- ac_status=$?
3176- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177- (exit $ac_status); }
3178-{ (ac_try="$ac_compiler -V >&5"
3179-case "(($ac_try" in
3180- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181- *) ac_try_echo=$ac_try;;
3182-esac
3183-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184-$as_echo "$ac_try_echo") >&5
3185- (eval "$ac_compiler -V >&5") 2>&5
3186- ac_status=$?
3187- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188- (exit $ac_status); }
3189-
3190-cat >conftest.$ac_ext <<_ACEOF
3191-/* confdefs.h. */
3192-_ACEOF
3193-cat confdefs.h >>conftest.$ac_ext
3194-cat >>conftest.$ac_ext <<_ACEOF
3195-/* end confdefs.h. */
3196-
3197-int
3198-main ()
3199-{
3200-
3201- ;
3202- return 0;
3203-}
3204-_ACEOF
3205-ac_clean_files_save=$ac_clean_files
3206-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3207-# Try to create an executable without -o first, disregard a.out.
3208-# It will help us diagnose broken compilers, and finding out an intuition
3209-# of exeext.
3210-{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3211-$as_echo_n "checking for C compiler default output file name... " >&6; }
3212-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3213-
3214-# The possible output files:
3215-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3216-
3217-ac_rmfiles=
3218-for ac_file in $ac_files
3219-do
3220- case $ac_file in
3221- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3223- esac
3224-done
3225-rm -f $ac_rmfiles
3226-
3227-if { (ac_try="$ac_link_default"
3228-case "(($ac_try" in
3229- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230- *) ac_try_echo=$ac_try;;
3231-esac
3232-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3233-$as_echo "$ac_try_echo") >&5
3234- (eval "$ac_link_default") 2>&5
3235- ac_status=$?
3236- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237- (exit $ac_status); }; then
3238- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3239-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3240-# in a Makefile. We should not override ac_cv_exeext if it was cached,
3241-# so that the user can short-circuit this test for compilers unknown to
3242-# Autoconf.
3243-for ac_file in $ac_files ''
3244-do
3245- test -f "$ac_file" || continue
3246- case $ac_file in
3247- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3248- ;;
3249- [ab].out )
3250- # We found the default executable, but exeext='' is most
3251- # certainly right.
3252- break;;
3253- *.* )
3254- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3255- then :; else
3256- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3257- fi
3258- # We set ac_cv_exeext here because the later test for it is not
3259- # safe: cross compilers may not add the suffix if given an `-o'
3260- # argument, so we may need to know it at that point already.
3261- # Even if this section looks crufty: it has the advantage of
3262- # actually working.
3263- break;;
3264- * )
3265- break;;
3266- esac
3267-done
3268-test "$ac_cv_exeext" = no && ac_cv_exeext=
3269-
3270-else
3271- ac_file=''
3272-fi
3273-
3274-{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3275-$as_echo "$ac_file" >&6; }
3276-if test -z "$ac_file"; then
3277- $as_echo "$as_me: failed program was:" >&5
3278-sed 's/^/| /' conftest.$ac_ext >&5
3279-
3280-{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3281-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282-{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3283-See \`config.log' for more details." >&5
3284-$as_echo "$as_me: error: C compiler cannot create executables
3285-See \`config.log' for more details." >&2;}
3286- { (exit 77); exit 77; }; }; }
3287-fi
3288-
3289-ac_exeext=$ac_cv_exeext
3290-
3291-# Check that the compiler produces executables we can run. If not, either
3292-# the compiler is broken, or we cross compile.
3293-{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3294-$as_echo_n "checking whether the C compiler works... " >&6; }
3295-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3296-# If not cross compiling, check that we can run a simple program.
3297-if test "$cross_compiling" != yes; then
3298- if { ac_try='./$ac_file'
3299- { (case "(($ac_try" in
3300- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301- *) ac_try_echo=$ac_try;;
3302-esac
3303-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304-$as_echo "$ac_try_echo") >&5
3305- (eval "$ac_try") 2>&5
3306- ac_status=$?
3307- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308- (exit $ac_status); }; }; then
3309- cross_compiling=no
3310- else
3311- if test "$cross_compiling" = maybe; then
3312- cross_compiling=yes
3313- else
3314- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3315-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316-{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3317-If you meant to cross compile, use \`--host'.
3318-See \`config.log' for more details." >&5
3319-$as_echo "$as_me: error: cannot run C compiled programs.
3320-If you meant to cross compile, use \`--host'.
3321-See \`config.log' for more details." >&2;}
3322- { (exit 1); exit 1; }; }; }
3323- fi
3324- fi
3325-fi
3326-{ $as_echo "$as_me:$LINENO: result: yes" >&5
3327-$as_echo "yes" >&6; }
3328-
3329-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330-ac_clean_files=$ac_clean_files_save
3331-# Check that the compiler produces executables we can run. If not, either
3332-# the compiler is broken, or we cross compile.
3333-{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3334-$as_echo_n "checking whether we are cross compiling... " >&6; }
3335-{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3336-$as_echo "$cross_compiling" >&6; }
3337-
3338-{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3339-$as_echo_n "checking for suffix of executables... " >&6; }
3340-if { (ac_try="$ac_link"
3341-case "(($ac_try" in
3342- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343- *) ac_try_echo=$ac_try;;
3344-esac
3345-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346-$as_echo "$ac_try_echo") >&5
3347- (eval "$ac_link") 2>&5
3348- ac_status=$?
3349- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350- (exit $ac_status); }; then
3351- # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352-# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353-# work properly (i.e., refer to `conftest.exe'), while it won't with
3354-# `rm'.
3355-for ac_file in conftest.exe conftest conftest.*; do
3356- test -f "$ac_file" || continue
3357- case $ac_file in
3358- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360- break;;
3361- * ) break;;
3362- esac
3363-done
3364-else
3365- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367-{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3368-See \`config.log' for more details." >&5
3369-$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3370-See \`config.log' for more details." >&2;}
3371- { (exit 1); exit 1; }; }; }
3372-fi
3373-
3374-rm -f conftest$ac_cv_exeext
3375-{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3376-$as_echo "$ac_cv_exeext" >&6; }
3377-
3378-rm -f conftest.$ac_ext
3379-EXEEXT=$ac_cv_exeext
3380-ac_exeext=$EXEEXT
3381-{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3382-$as_echo_n "checking for suffix of object files... " >&6; }
3383-if test "${ac_cv_objext+set}" = set; then
3384- $as_echo_n "(cached) " >&6
3385-else
3386- cat >conftest.$ac_ext <<_ACEOF
3387-/* confdefs.h. */
3388-_ACEOF
3389-cat confdefs.h >>conftest.$ac_ext
3390-cat >>conftest.$ac_ext <<_ACEOF
3391-/* end confdefs.h. */
3392-
3393-int
3394-main ()
3395-{
3396-
3397- ;
3398- return 0;
3399-}
3400-_ACEOF
3401-rm -f conftest.o conftest.obj
3402-if { (ac_try="$ac_compile"
3403-case "(($ac_try" in
3404- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405- *) ac_try_echo=$ac_try;;
3406-esac
3407-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408-$as_echo "$ac_try_echo") >&5
3409- (eval "$ac_compile") 2>&5
3410- ac_status=$?
3411- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412- (exit $ac_status); }; then
3413- for ac_file in conftest.o conftest.obj conftest.*; do
3414- test -f "$ac_file" || continue;
3415- case $ac_file in
3416- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3417- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3418- break;;
3419- esac
3420-done
3421-else
3422- $as_echo "$as_me: failed program was:" >&5
3423-sed 's/^/| /' conftest.$ac_ext >&5
3424-
3425-{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3426-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427-{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3428-See \`config.log' for more details." >&5
3429-$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3430-See \`config.log' for more details." >&2;}
3431- { (exit 1); exit 1; }; }; }
3432-fi
3433-
3434-rm -f conftest.$ac_cv_objext conftest.$ac_ext
3435-fi
3436-{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3437-$as_echo "$ac_cv_objext" >&6; }
3438-OBJEXT=$ac_cv_objext
3439-ac_objext=$OBJEXT
3440-{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3441-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442-if test "${ac_cv_c_compiler_gnu+set}" = set; then
3443- $as_echo_n "(cached) " >&6
3444-else
3445- cat >conftest.$ac_ext <<_ACEOF
3446-/* confdefs.h. */
3447-_ACEOF
3448-cat confdefs.h >>conftest.$ac_ext
3449-cat >>conftest.$ac_ext <<_ACEOF
3450-/* end confdefs.h. */
3451-
3452-int
3453-main ()
3454-{
3455-#ifndef __GNUC__
3456- choke me
3457-#endif
3458-
3459- ;
3460- return 0;
3461-}
3462-_ACEOF
3463-rm -f conftest.$ac_objext
3464-if { (ac_try="$ac_compile"
3465-case "(($ac_try" in
3466- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467- *) ac_try_echo=$ac_try;;
3468-esac
3469-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470-$as_echo "$ac_try_echo") >&5
3471- (eval "$ac_compile") 2>conftest.er1
3472- ac_status=$?
3473- grep -v '^ *+' conftest.er1 >conftest.err
3474- rm -f conftest.er1
3475- cat conftest.err >&5
3476- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477- (exit $ac_status); } && {
3478- test -z "$ac_c_werror_flag" ||
3479- test ! -s conftest.err
3480- } && test -s conftest.$ac_objext; then
3481- ac_compiler_gnu=yes
3482-else
3483- $as_echo "$as_me: failed program was:" >&5
3484-sed 's/^/| /' conftest.$ac_ext >&5
3485-
3486- ac_compiler_gnu=no
3487-fi
3488-
3489-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490-ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491-
3492-fi
3493-{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3494-$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495-if test $ac_compiler_gnu = yes; then
3496- GCC=yes
3497-else
3498- GCC=
3499-fi
3500-ac_test_CFLAGS=${CFLAGS+set}
3501-ac_save_CFLAGS=$CFLAGS
3502-{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3503-$as_echo_n "checking whether $CC accepts -g... " >&6; }
3504-if test "${ac_cv_prog_cc_g+set}" = set; then
3505- $as_echo_n "(cached) " >&6
3506-else
3507- ac_save_c_werror_flag=$ac_c_werror_flag
3508- ac_c_werror_flag=yes
3509- ac_cv_prog_cc_g=no
3510- CFLAGS="-g"
3511- cat >conftest.$ac_ext <<_ACEOF
3512-/* confdefs.h. */
3513-_ACEOF
3514-cat confdefs.h >>conftest.$ac_ext
3515-cat >>conftest.$ac_ext <<_ACEOF
3516-/* end confdefs.h. */
3517-
3518-int
3519-main ()
3520-{
3521-
3522- ;
3523- return 0;
3524-}
3525-_ACEOF
3526-rm -f conftest.$ac_objext
3527-if { (ac_try="$ac_compile"
3528-case "(($ac_try" in
3529- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530- *) ac_try_echo=$ac_try;;
3531-esac
3532-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533-$as_echo "$ac_try_echo") >&5
3534- (eval "$ac_compile") 2>conftest.er1
3535- ac_status=$?
3536- grep -v '^ *+' conftest.er1 >conftest.err
3537- rm -f conftest.er1
3538- cat conftest.err >&5
3539- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540- (exit $ac_status); } && {
3541- test -z "$ac_c_werror_flag" ||
3542- test ! -s conftest.err
3543- } && test -s conftest.$ac_objext; then
3544- ac_cv_prog_cc_g=yes
3545-else
3546- $as_echo "$as_me: failed program was:" >&5
3547-sed 's/^/| /' conftest.$ac_ext >&5
3548-
3549- CFLAGS=""
3550- cat >conftest.$ac_ext <<_ACEOF
3551-/* confdefs.h. */
3552-_ACEOF
3553-cat confdefs.h >>conftest.$ac_ext
3554-cat >>conftest.$ac_ext <<_ACEOF
3555-/* end confdefs.h. */
3556-
3557-int
3558-main ()
3559-{
3560-
3561- ;
3562- return 0;
3563-}
3564-_ACEOF
3565-rm -f conftest.$ac_objext
3566-if { (ac_try="$ac_compile"
3567-case "(($ac_try" in
3568- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569- *) ac_try_echo=$ac_try;;
3570-esac
3571-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3572-$as_echo "$ac_try_echo") >&5
3573- (eval "$ac_compile") 2>conftest.er1
3574- ac_status=$?
3575- grep -v '^ *+' conftest.er1 >conftest.err
3576- rm -f conftest.er1
3577- cat conftest.err >&5
3578- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579- (exit $ac_status); } && {
3580- test -z "$ac_c_werror_flag" ||
3581- test ! -s conftest.err
3582- } && test -s conftest.$ac_objext; then
3583- :
3584-else
3585- $as_echo "$as_me: failed program was:" >&5
3586-sed 's/^/| /' conftest.$ac_ext >&5
3587-
3588- ac_c_werror_flag=$ac_save_c_werror_flag
3589- CFLAGS="-g"
3590- cat >conftest.$ac_ext <<_ACEOF
3591-/* confdefs.h. */
3592-_ACEOF
3593-cat confdefs.h >>conftest.$ac_ext
3594-cat >>conftest.$ac_ext <<_ACEOF
3595-/* end confdefs.h. */
3596-
3597-int
3598-main ()
3599-{
3600-
3601- ;
3602- return 0;
3603-}
3604-_ACEOF
3605-rm -f conftest.$ac_objext
3606-if { (ac_try="$ac_compile"
3607-case "(($ac_try" in
3608- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609- *) ac_try_echo=$ac_try;;
3610-esac
3611-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612-$as_echo "$ac_try_echo") >&5
3613- (eval "$ac_compile") 2>conftest.er1
3614- ac_status=$?
3615- grep -v '^ *+' conftest.er1 >conftest.err
3616- rm -f conftest.er1
3617- cat conftest.err >&5
3618- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619- (exit $ac_status); } && {
3620- test -z "$ac_c_werror_flag" ||
3621- test ! -s conftest.err
3622- } && test -s conftest.$ac_objext; then
3623- ac_cv_prog_cc_g=yes
3624-else
3625- $as_echo "$as_me: failed program was:" >&5
3626-sed 's/^/| /' conftest.$ac_ext >&5
3627-
3628-
3629-fi
3630-
3631-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632-fi
3633-
3634-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635-fi
3636-
3637-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638- ac_c_werror_flag=$ac_save_c_werror_flag
3639-fi
3640-{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3641-$as_echo "$ac_cv_prog_cc_g" >&6; }
3642-if test "$ac_test_CFLAGS" = set; then
3643- CFLAGS=$ac_save_CFLAGS
3644-elif test $ac_cv_prog_cc_g = yes; then
3645- if test "$GCC" = yes; then
3646- CFLAGS="-g -O2"
3647- else
3648- CFLAGS="-g"
3649- fi
3650-else
3651- if test "$GCC" = yes; then
3652- CFLAGS="-O2"
3653- else
3654- CFLAGS=
3655- fi
3656-fi
3657-{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3658-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659-if test "${ac_cv_prog_cc_c89+set}" = set; then
3660- $as_echo_n "(cached) " >&6
3661-else
3662- ac_cv_prog_cc_c89=no
3663-ac_save_CC=$CC
3664-cat >conftest.$ac_ext <<_ACEOF
3665-/* confdefs.h. */
3666-_ACEOF
3667-cat confdefs.h >>conftest.$ac_ext
3668-cat >>conftest.$ac_ext <<_ACEOF
3669-/* end confdefs.h. */
3670-#include <stdarg.h>
3671-#include <stdio.h>
3672-#include <sys/types.h>
3673-#include <sys/stat.h>
3674-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3675-struct buf { int x; };
3676-FILE * (*rcsopen) (struct buf *, struct stat *, int);
3677-static char *e (p, i)
3678- char **p;
3679- int i;
3680-{
3681- return p[i];
3682-}
3683-static char *f (char * (*g) (char **, int), char **p, ...)
3684-{
3685- char *s;
3686- va_list v;
3687- va_start (v,p);
3688- s = g (p, va_arg (v,int));
3689- va_end (v);
3690- return s;
3691-}
3692-
3693-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3694- function prototypes and stuff, but not '\xHH' hex character constants.
3695- These don't provoke an error unfortunately, instead are silently treated
3696- as 'x'. The following induces an error, until -std is added to get
3697- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3698- array size at least. It's necessary to write '\x00'==0 to get something
3699- that's true only with -std. */
3700-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701-
3702-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3703- inside strings and character constants. */
3704-#define FOO(x) 'x'
3705-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3706-
3707-int test (int i, double x);
3708-struct s1 {int (*f) (int a);};
3709-struct s2 {int (*f) (double a);};
3710-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3711-int argc;
3712-char **argv;
3713-int
3714-main ()
3715-{
3716-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3717- ;
3718- return 0;
3719-}
3720-_ACEOF
3721-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3722- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723-do
3724- CC="$ac_save_CC $ac_arg"
3725- rm -f conftest.$ac_objext
3726-if { (ac_try="$ac_compile"
3727-case "(($ac_try" in
3728- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729- *) ac_try_echo=$ac_try;;
3730-esac
3731-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732-$as_echo "$ac_try_echo") >&5
3733- (eval "$ac_compile") 2>conftest.er1
3734- ac_status=$?
3735- grep -v '^ *+' conftest.er1 >conftest.err
3736- rm -f conftest.er1
3737- cat conftest.err >&5
3738- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739- (exit $ac_status); } && {
3740- test -z "$ac_c_werror_flag" ||
3741- test ! -s conftest.err
3742- } && test -s conftest.$ac_objext; then
3743- ac_cv_prog_cc_c89=$ac_arg
3744-else
3745- $as_echo "$as_me: failed program was:" >&5
3746-sed 's/^/| /' conftest.$ac_ext >&5
3747-
3748-
3749-fi
3750-
3751-rm -f core conftest.err conftest.$ac_objext
3752- test "x$ac_cv_prog_cc_c89" != "xno" && break
3753-done
3754-rm -f conftest.$ac_ext
3755-CC=$ac_save_CC
3756-
3757-fi
3758-# AC_CACHE_VAL
3759-case "x$ac_cv_prog_cc_c89" in
3760- x)
3761- { $as_echo "$as_me:$LINENO: result: none needed" >&5
3762-$as_echo "none needed" >&6; } ;;
3763- xno)
3764- { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3765-$as_echo "unsupported" >&6; } ;;
3766- *)
3767- CC="$CC $ac_cv_prog_cc_c89"
3768- { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3769-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3770-esac
3771-
3772-
3773-ac_ext=c
3774-ac_cpp='$CPP $CPPFLAGS'
3775-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777-ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778-DEPDIR="${am__leading_dot}deps"
3779-
3780-ac_config_commands="$ac_config_commands depfiles"
3781-
3782-
3783-am_make=${MAKE-make}
3784-cat > confinc << 'END'
3785-am__doit:
3786- @echo this is the am__doit target
3787-.PHONY: am__doit
3788-END
3789-# If we don't find an include directive, just comment out the code.
3790-{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3791-$as_echo_n "checking for style of include used by $am_make... " >&6; }
3792-am__include="#"
3793-am__quote=
3794-_am_result=none
3795-# First try GNU make style include.
3796-echo "include confinc" > confmf
3797-# Ignore all kinds of additional output from `make'.
3798-case `$am_make -s -f confmf 2> /dev/null` in #(
3799-*the\ am__doit\ target*)
3800- am__include=include
3801- am__quote=
3802- _am_result=GNU
3803- ;;
3804-esac
3805-# Now try BSD make style include.
3806-if test "$am__include" = "#"; then
3807- echo '.include "confinc"' > confmf
3808- case `$am_make -s -f confmf 2> /dev/null` in #(
3809- *the\ am__doit\ target*)
3810- am__include=.include
3811- am__quote="\""
3812- _am_result=BSD
3813- ;;
3814- esac
3815-fi
3816-
3817-
3818-{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3819-$as_echo "$_am_result" >&6; }
3820-rm -f confinc confmf
3821-
3822-# Check whether --enable-dependency-tracking was given.
3823-if test "${enable_dependency_tracking+set}" = set; then
3824- enableval=$enable_dependency_tracking;
3825-fi
3826-
3827-if test "x$enable_dependency_tracking" != xno; then
3828- am_depcomp="$ac_aux_dir/depcomp"
3829- AMDEPBACKSLASH='\'
3830-fi
3831- if test "x$enable_dependency_tracking" != xno; then
3832- AMDEP_TRUE=
3833- AMDEP_FALSE='#'
3834-else
3835- AMDEP_TRUE='#'
3836- AMDEP_FALSE=
3837-fi
3838-
3839-
3840-
3841-depcc="$CC" am_compiler_list=
3842-
3843-{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3844-$as_echo_n "checking dependency style of $depcc... " >&6; }
3845-if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3846- $as_echo_n "(cached) " >&6
3847-else
3848- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3849- # We make a subdir and do the tests there. Otherwise we can end up
3850- # making bogus files that we don't know about and never remove. For
3851- # instance it was reported that on HP-UX the gcc test will end up
3852- # making a dummy file named `D' -- because `-MD' means `put the output
3853- # in D'.
3854- mkdir conftest.dir
3855- # Copy depcomp to subdir because otherwise we won't find it if we're
3856- # using a relative directory.
3857- cp "$am_depcomp" conftest.dir
3858- cd conftest.dir
3859- # We will build objects and dependencies in a subdirectory because
3860- # it helps to detect inapplicable dependency modes. For instance
3861- # both Tru64's cc and ICC support -MD to output dependencies as a
3862- # side effect of compilation, but ICC will put the dependencies in
3863- # the current directory while Tru64 will put them in the object
3864- # directory.
3865- mkdir sub
3866-
3867- am_cv_CC_dependencies_compiler_type=none
3868- if test "$am_compiler_list" = ""; then
3869- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3870- fi
3871- am__universal=false
3872- case " $depcc " in #(
3873- *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874- esac
3875-
3876- for depmode in $am_compiler_list; do
3877- # Setup a source with many dependencies, because some compilers
3878- # like to wrap large dependency lists on column 80 (with \), and
3879- # we should not choose a depcomp mode which is confused by this.
3880- #
3881- # We need to recreate these files for each test, as the compiler may
3882- # overwrite some of them when testing with obscure command lines.
3883- # This happens at least with the AIX C compiler.
3884- : > sub/conftest.c
3885- for i in 1 2 3 4 5 6; do
3886- echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888- # Solaris 8's {/usr,}/bin/sh.
3889- touch sub/conftst$i.h
3890- done
3891- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3892-
3893- # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894- # mode. It turns out that the SunPro C++ compiler does not properly
3895- # handle `-M -o', and we need to detect this. Also, some Intel
3896- # versions had trouble with output in subdirs
3897- am__obj=sub/conftest.${OBJEXT-o}
3898- am__minus_obj="-o $am__obj"
3899- case $depmode in
3900- gcc)
3901- # This depmode causes a compiler race in universal mode.
3902- test "$am__universal" = false || continue
3903- ;;
3904- nosideeffect)
3905- # after this tag, mechanisms are not by side-effect, so they'll
3906- # only be used when explicitly requested
3907- if test "x$enable_dependency_tracking" = xyes; then
3908- continue
3909- else
3910- break
3911- fi
3912- ;;
3913- msvisualcpp | msvcmsys)
3914- # This compiler won't grok `-c -o', but also, the minuso test has
3915- # not run yet. These depmodes are late enough in the game, and
3916- # so weak that their functioning should not be impacted.
3917- am__obj=conftest.${OBJEXT-o}
3918- am__minus_obj=
3919- ;;
3920- none) break ;;
3921- esac
3922- if depmode=$depmode \
3923- source=sub/conftest.c object=$am__obj \
3924- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926- >/dev/null 2>conftest.err &&
3927- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931- # icc doesn't choke on unknown options, it will just issue warnings
3932- # or remarks (even with -Werror). So we grep stderr for any message
3933- # that says an option was ignored or not supported.
3934- # When given -MP, icc 7.0 and 7.1 complain thusly:
3935- # icc: Command line warning: ignoring option '-M'; no argument required
3936- # The diagnosis changed in icc 8.0:
3937- # icc: Command line remark: option '-MP' not supported
3938- if (grep 'ignoring option' conftest.err ||
3939- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940- am_cv_CC_dependencies_compiler_type=$depmode
3941- break
3942- fi
3943- fi
3944- done
3945-
3946- cd ..
3947- rm -rf conftest.dir
3948-else
3949- am_cv_CC_dependencies_compiler_type=none
3950-fi
3951-
3952-fi
3953-{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3954-$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956-
3957- if
3958- test "x$enable_dependency_tracking" != xno \
3959- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960- am__fastdepCC_TRUE=
3961- am__fastdepCC_FALSE='#'
3962-else
3963- am__fastdepCC_TRUE='#'
3964- am__fastdepCC_FALSE=
3965-fi
3966-
3967-
3968-if test "x$CC" != xcc; then
3969- { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3970-$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3971-else
3972- { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3973-$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3974-fi
3975-set dummy $CC; ac_cc=`$as_echo "$2" |
3976- sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3977-if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3978- $as_echo_n "(cached) " >&6
3979-else
3980- cat >conftest.$ac_ext <<_ACEOF
3981-/* confdefs.h. */
3982-_ACEOF
3983-cat confdefs.h >>conftest.$ac_ext
3984-cat >>conftest.$ac_ext <<_ACEOF
3985-/* end confdefs.h. */
3986-
3987-int
3988-main ()
3989-{
3990-
3991- ;
3992- return 0;
3993-}
3994-_ACEOF
3995-# Make sure it works both with $CC and with simple cc.
3996-# We do the test twice because some compilers refuse to overwrite an
3997-# existing .o file with -o, though they will create one.
3998-ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3999-rm -f conftest2.*
4000-if { (case "(($ac_try" in
4001- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002- *) ac_try_echo=$ac_try;;
4003-esac
4004-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4005-$as_echo "$ac_try_echo") >&5
4006- (eval "$ac_try") 2>&5
4007- ac_status=$?
4008- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009- (exit $ac_status); } &&
4010- test -f conftest2.$ac_objext && { (case "(($ac_try" in
4011- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012- *) ac_try_echo=$ac_try;;
4013-esac
4014-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4015-$as_echo "$ac_try_echo") >&5
4016- (eval "$ac_try") 2>&5
4017- ac_status=$?
4018- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019- (exit $ac_status); };
4020-then
4021- eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4022- if test "x$CC" != xcc; then
4023- # Test first that cc exists at all.
4024- if { ac_try='cc -c conftest.$ac_ext >&5'
4025- { (case "(($ac_try" in
4026- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027- *) ac_try_echo=$ac_try;;
4028-esac
4029-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030-$as_echo "$ac_try_echo") >&5
4031- (eval "$ac_try") 2>&5
4032- ac_status=$?
4033- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034- (exit $ac_status); }; }; then
4035- ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4036- rm -f conftest2.*
4037- if { (case "(($ac_try" in
4038- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039- *) ac_try_echo=$ac_try;;
4040-esac
4041-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4042-$as_echo "$ac_try_echo") >&5
4043- (eval "$ac_try") 2>&5
4044- ac_status=$?
4045- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046- (exit $ac_status); } &&
4047- test -f conftest2.$ac_objext && { (case "(($ac_try" in
4048- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049- *) ac_try_echo=$ac_try;;
4050-esac
4051-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4052-$as_echo "$ac_try_echo") >&5
4053- (eval "$ac_try") 2>&5
4054- ac_status=$?
4055- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056- (exit $ac_status); };
4057- then
4058- # cc works too.
4059- :
4060- else
4061- # cc exists but doesn't like -o.
4062- eval ac_cv_prog_cc_${ac_cc}_c_o=no
4063- fi
4064- fi
4065- fi
4066-else
4067- eval ac_cv_prog_cc_${ac_cc}_c_o=no
4068-fi
4069-rm -f core conftest*
4070-
4071-fi
4072-if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4073- { $as_echo "$as_me:$LINENO: result: yes" >&5
4074-$as_echo "yes" >&6; }
4075-else
4076- { $as_echo "$as_me:$LINENO: result: no" >&5
4077-$as_echo "no" >&6; }
4078-
4079-cat >>confdefs.h <<\_ACEOF
4080-#define NO_MINUS_C_MINUS_O 1
4081-_ACEOF
4082-
4083-fi
4084-
4085-# FIXME: we rely on the cache variable name because
4086-# there is no other way.
4087-set dummy $CC
4088-am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4089-eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4090-if test "$am_t" != yes; then
4091- # Losing compiler, so override with the script.
4092- # FIXME: It is wrong to rewrite CC.
4093- # But if we don't then we get into trouble of one sort or another.
4094- # A longer-term fix would be to have automake use am__CC in this case,
4095- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4096- CC="$am_aux_dir/compile $CC"
4097-fi
4098-
4099-
4100-# Find a good install program. We prefer a C program (faster),
4101-# so one script is as good as another. But avoid the broken or
4102-# incompatible versions:
4103-# SysV /etc/install, /usr/sbin/install
4104-# SunOS /usr/etc/install
4105-# IRIX /sbin/install
4106-# AIX /bin/install
4107-# AmigaOS /C/install, which installs bootblocks on floppy discs
4108-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4109-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4110-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4111-# OS/2's system install, which has a completely different semantic
4112-# ./install, which can be erroneously created by make from ./install.sh.
4113-# Reject install programs that cannot install multiple files.
4114-{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4115-$as_echo_n "checking for a BSD-compatible install... " >&6; }
4116-if test -z "$INSTALL"; then
4117-if test "${ac_cv_path_install+set}" = set; then
4118- $as_echo_n "(cached) " >&6
4119-else
4120- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121-for as_dir in $PATH
4122-do
4123- IFS=$as_save_IFS
4124- test -z "$as_dir" && as_dir=.
4125- # Account for people who put trailing slashes in PATH elements.
4126-case $as_dir/ in
4127- ./ | .// | /cC/* | \
4128- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4129- ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4130- /usr/ucb/* ) ;;
4131- *)
4132- # OSF1 and SCO ODT 3.0 have their own names for install.
4133- # Don't use installbsd from OSF since it installs stuff as root
4134- # by default.
4135- for ac_prog in ginstall scoinst install; do
4136- for ac_exec_ext in '' $ac_executable_extensions; do
4137- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4138- if test $ac_prog = install &&
4139- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4140- # AIX install. It has an incompatible calling convention.
4141- :
4142- elif test $ac_prog = install &&
4143- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4144- # program-specific install script used by HP pwplus--don't use.
4145- :
4146- else
4147- rm -rf conftest.one conftest.two conftest.dir
4148- echo one > conftest.one
4149- echo two > conftest.two
4150- mkdir conftest.dir
4151- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4152- test -s conftest.one && test -s conftest.two &&
4153- test -s conftest.dir/conftest.one &&
4154- test -s conftest.dir/conftest.two
4155- then
4156- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4157- break 3
4158- fi
4159- fi
4160- fi
4161- done
4162- done
4163- ;;
4164-esac
4165-
4166-done
4167-IFS=$as_save_IFS
4168-
4169-rm -rf conftest.one conftest.two conftest.dir
4170-
4171-fi
4172- if test "${ac_cv_path_install+set}" = set; then
4173- INSTALL=$ac_cv_path_install
4174- else
4175- # As a last resort, use the slow shell script. Don't cache a
4176- # value for INSTALL within a source directory, because that will
4177- # break other packages using the cache if that directory is
4178- # removed, or if the value is a relative name.
4179- INSTALL=$ac_install_sh
4180- fi
4181-fi
4182-{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4183-$as_echo "$INSTALL" >&6; }
4184-
4185-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4186-# It thinks the first close brace ends the variable substitution.
4187-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4188-
4189-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4190-
4191-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4192-
4193-{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4194-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4195-set x ${MAKE-make}
4196-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4197-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4198- $as_echo_n "(cached) " >&6
4199-else
4200- cat >conftest.make <<\_ACEOF
4201-SHELL = /bin/sh
4202-all:
4203- @echo '@@@%%%=$(MAKE)=@@@%%%'
4204-_ACEOF
4205-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4206-case `${MAKE-make} -f conftest.make 2>/dev/null` in
4207- *@@@%%%=?*=@@@%%%*)
4208- eval ac_cv_prog_make_${ac_make}_set=yes;;
4209- *)
4210- eval ac_cv_prog_make_${ac_make}_set=no;;
4211-esac
4212-rm -f conftest.make
4213-fi
4214-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4215- { $as_echo "$as_me:$LINENO: result: yes" >&5
4216-$as_echo "yes" >&6; }
4217- SET_MAKE=
4218-else
4219- { $as_echo "$as_me:$LINENO: result: no" >&5
4220-$as_echo "no" >&6; }
4221- SET_MAKE="MAKE=${MAKE-make}"
4222-fi
4223-
4224-ac_ext=c
4225-ac_cpp='$CPP $CPPFLAGS'
4226-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228-ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229-{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4230-$as_echo_n "checking how to run the C preprocessor... " >&6; }
4231-# On Suns, sometimes $CPP names a directory.
4232-if test -n "$CPP" && test -d "$CPP"; then
4233- CPP=
4234-fi
4235-if test -z "$CPP"; then
4236- if test "${ac_cv_prog_CPP+set}" = set; then
4237- $as_echo_n "(cached) " >&6
4238-else
4239- # Double quotes because CPP needs to be expanded
4240- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4241- do
4242- ac_preproc_ok=false
4243-for ac_c_preproc_warn_flag in '' yes
4244-do
4245- # Use a header file that comes with gcc, so configuring glibc
4246- # with a fresh cross-compiler works.
4247- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4248- # <limits.h> exists even on freestanding compilers.
4249- # On the NeXT, cc -E runs the code through the compiler's parser,
4250- # not just through cpp. "Syntax error" is here to catch this case.
4251- cat >conftest.$ac_ext <<_ACEOF
4252-/* confdefs.h. */
4253-_ACEOF
4254-cat confdefs.h >>conftest.$ac_ext
4255-cat >>conftest.$ac_ext <<_ACEOF
4256-/* end confdefs.h. */
4257-#ifdef __STDC__
4258-# include <limits.h>
4259-#else
4260-# include <assert.h>
4261-#endif
4262- Syntax error
4263-_ACEOF
4264-if { (ac_try="$ac_cpp conftest.$ac_ext"
4265-case "(($ac_try" in
4266- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267- *) ac_try_echo=$ac_try;;
4268-esac
4269-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4270-$as_echo "$ac_try_echo") >&5
4271- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4272- ac_status=$?
4273- grep -v '^ *+' conftest.er1 >conftest.err
4274- rm -f conftest.er1
4275- cat conftest.err >&5
4276- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277- (exit $ac_status); } >/dev/null && {
4278- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4279- test ! -s conftest.err
4280- }; then
4281- :
4282-else
4283- $as_echo "$as_me: failed program was:" >&5
4284-sed 's/^/| /' conftest.$ac_ext >&5
4285-
4286- # Broken: fails on valid input.
4287-continue
4288-fi
4289-
4290-rm -f conftest.err conftest.$ac_ext
4291-
4292- # OK, works on sane cases. Now check whether nonexistent headers
4293- # can be detected and how.
4294- cat >conftest.$ac_ext <<_ACEOF
4295-/* confdefs.h. */
4296-_ACEOF
4297-cat confdefs.h >>conftest.$ac_ext
4298-cat >>conftest.$ac_ext <<_ACEOF
4299-/* end confdefs.h. */
4300-#include <ac_nonexistent.h>
4301-_ACEOF
4302-if { (ac_try="$ac_cpp conftest.$ac_ext"
4303-case "(($ac_try" in
4304- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305- *) ac_try_echo=$ac_try;;
4306-esac
4307-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4308-$as_echo "$ac_try_echo") >&5
4309- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4310- ac_status=$?
4311- grep -v '^ *+' conftest.er1 >conftest.err
4312- rm -f conftest.er1
4313- cat conftest.err >&5
4314- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315- (exit $ac_status); } >/dev/null && {
4316- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4317- test ! -s conftest.err
4318- }; then
4319- # Broken: success on invalid input.
4320-continue
4321-else
4322- $as_echo "$as_me: failed program was:" >&5
4323-sed 's/^/| /' conftest.$ac_ext >&5
4324-
4325- # Passes both tests.
4326-ac_preproc_ok=:
4327-break
4328-fi
4329-
4330-rm -f conftest.err conftest.$ac_ext
4331-
4332-done
4333-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4334-rm -f conftest.err conftest.$ac_ext
4335-if $ac_preproc_ok; then
4336- break
4337-fi
4338-
4339- done
4340- ac_cv_prog_CPP=$CPP
4341-
4342-fi
4343- CPP=$ac_cv_prog_CPP
4344-else
4345- ac_cv_prog_CPP=$CPP
4346-fi
4347-{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4348-$as_echo "$CPP" >&6; }
4349-ac_preproc_ok=false
4350-for ac_c_preproc_warn_flag in '' yes
4351-do
4352- # Use a header file that comes with gcc, so configuring glibc
4353- # with a fresh cross-compiler works.
4354- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355- # <limits.h> exists even on freestanding compilers.
4356- # On the NeXT, cc -E runs the code through the compiler's parser,
4357- # not just through cpp. "Syntax error" is here to catch this case.
4358- cat >conftest.$ac_ext <<_ACEOF
4359-/* confdefs.h. */
4360-_ACEOF
4361-cat confdefs.h >>conftest.$ac_ext
4362-cat >>conftest.$ac_ext <<_ACEOF
4363-/* end confdefs.h. */
4364-#ifdef __STDC__
4365-# include <limits.h>
4366-#else
4367-# include <assert.h>
4368-#endif
4369- Syntax error
4370-_ACEOF
4371-if { (ac_try="$ac_cpp conftest.$ac_ext"
4372-case "(($ac_try" in
4373- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374- *) ac_try_echo=$ac_try;;
4375-esac
4376-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4377-$as_echo "$ac_try_echo") >&5
4378- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379- ac_status=$?
4380- grep -v '^ *+' conftest.er1 >conftest.err
4381- rm -f conftest.er1
4382- cat conftest.err >&5
4383- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384- (exit $ac_status); } >/dev/null && {
4385- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386- test ! -s conftest.err
4387- }; then
4388- :
4389-else
4390- $as_echo "$as_me: failed program was:" >&5
4391-sed 's/^/| /' conftest.$ac_ext >&5
4392-
4393- # Broken: fails on valid input.
4394-continue
4395-fi
4396-
4397-rm -f conftest.err conftest.$ac_ext
4398-
4399- # OK, works on sane cases. Now check whether nonexistent headers
4400- # can be detected and how.
4401- cat >conftest.$ac_ext <<_ACEOF
4402-/* confdefs.h. */
4403-_ACEOF
4404-cat confdefs.h >>conftest.$ac_ext
4405-cat >>conftest.$ac_ext <<_ACEOF
4406-/* end confdefs.h. */
4407-#include <ac_nonexistent.h>
4408-_ACEOF
4409-if { (ac_try="$ac_cpp conftest.$ac_ext"
4410-case "(($ac_try" in
4411- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412- *) ac_try_echo=$ac_try;;
4413-esac
4414-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4415-$as_echo "$ac_try_echo") >&5
4416- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4417- ac_status=$?
4418- grep -v '^ *+' conftest.er1 >conftest.err
4419- rm -f conftest.er1
4420- cat conftest.err >&5
4421- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422- (exit $ac_status); } >/dev/null && {
4423- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424- test ! -s conftest.err
4425- }; then
4426- # Broken: success on invalid input.
4427-continue
4428-else
4429- $as_echo "$as_me: failed program was:" >&5
4430-sed 's/^/| /' conftest.$ac_ext >&5
4431-
4432- # Passes both tests.
4433-ac_preproc_ok=:
4434-break
4435-fi
4436-
4437-rm -f conftest.err conftest.$ac_ext
4438-
4439-done
4440-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4441-rm -f conftest.err conftest.$ac_ext
4442-if $ac_preproc_ok; then
4443- :
4444-else
4445- { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4446-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447-{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4448-See \`config.log' for more details." >&5
4449-$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4450-See \`config.log' for more details." >&2;}
4451- { (exit 1); exit 1; }; }; }
4452-fi
4453-
4454-ac_ext=c
4455-ac_cpp='$CPP $CPPFLAGS'
4456-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458-ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459-
4460-
4461-
4462-{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4463-$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4464-if test "${ac_cv_path_GREP+set}" = set; then
4465- $as_echo_n "(cached) " >&6
4466-else
4467- if test -z "$GREP"; then
4468- ac_path_GREP_found=false
4469- # Loop through the user's path and test for each of PROGNAME-LIST
4470- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472-do
4473- IFS=$as_save_IFS
4474- test -z "$as_dir" && as_dir=.
4475- for ac_prog in grep ggrep; do
4476- for ac_exec_ext in '' $ac_executable_extensions; do
4477- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4478- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4479-# Check for GNU ac_path_GREP and select it if it is found.
4480- # Check for GNU $ac_path_GREP
4481-case `"$ac_path_GREP" --version 2>&1` in
4482-*GNU*)
4483- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484-*)
4485- ac_count=0
4486- $as_echo_n 0123456789 >"conftest.in"
4487- while :
4488- do
4489- cat "conftest.in" "conftest.in" >"conftest.tmp"
4490- mv "conftest.tmp" "conftest.in"
4491- cp "conftest.in" "conftest.nl"
4492- $as_echo 'GREP' >> "conftest.nl"
4493- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495- ac_count=`expr $ac_count + 1`
4496- if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497- # Best one so far, save it but keep looking for a better one
4498- ac_cv_path_GREP="$ac_path_GREP"
4499- ac_path_GREP_max=$ac_count
4500- fi
4501- # 10*(2^10) chars as input seems more than enough
4502- test $ac_count -gt 10 && break
4503- done
4504- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505-esac
4506-
4507- $ac_path_GREP_found && break 3
4508- done
4509- done
4510-done
4511-IFS=$as_save_IFS
4512- if test -z "$ac_cv_path_GREP"; then
4513- { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4514-$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4515- { (exit 1); exit 1; }; }
4516- fi
4517-else
4518- ac_cv_path_GREP=$GREP
4519-fi
4520-
4521-fi
4522-{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4523-$as_echo "$ac_cv_path_GREP" >&6; }
4524- GREP="$ac_cv_path_GREP"
4525-
4526-
4527-{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4528-$as_echo_n "checking for egrep... " >&6; }
4529-if test "${ac_cv_path_EGREP+set}" = set; then
4530- $as_echo_n "(cached) " >&6
4531-else
4532- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4533- then ac_cv_path_EGREP="$GREP -E"
4534- else
4535- if test -z "$EGREP"; then
4536- ac_path_EGREP_found=false
4537- # Loop through the user's path and test for each of PROGNAME-LIST
4538- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4540-do
4541- IFS=$as_save_IFS
4542- test -z "$as_dir" && as_dir=.
4543- for ac_prog in egrep; do
4544- for ac_exec_ext in '' $ac_executable_extensions; do
4545- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4546- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4547-# Check for GNU ac_path_EGREP and select it if it is found.
4548- # Check for GNU $ac_path_EGREP
4549-case `"$ac_path_EGREP" --version 2>&1` in
4550-*GNU*)
4551- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4552-*)
4553- ac_count=0
4554- $as_echo_n 0123456789 >"conftest.in"
4555- while :
4556- do
4557- cat "conftest.in" "conftest.in" >"conftest.tmp"
4558- mv "conftest.tmp" "conftest.in"
4559- cp "conftest.in" "conftest.nl"
4560- $as_echo 'EGREP' >> "conftest.nl"
4561- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563- ac_count=`expr $ac_count + 1`
4564- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4565- # Best one so far, save it but keep looking for a better one
4566- ac_cv_path_EGREP="$ac_path_EGREP"
4567- ac_path_EGREP_max=$ac_count
4568- fi
4569- # 10*(2^10) chars as input seems more than enough
4570- test $ac_count -gt 10 && break
4571- done
4572- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4573-esac
4574-
4575- $ac_path_EGREP_found && break 3
4576- done
4577- done
4578-done
4579-IFS=$as_save_IFS
4580- if test -z "$ac_cv_path_EGREP"; then
4581- { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4582-$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4583- { (exit 1); exit 1; }; }
4584- fi
4585-else
4586- ac_cv_path_EGREP=$EGREP
4587-fi
4588-
4589- fi
4590-fi
4591-{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4592-$as_echo "$ac_cv_path_EGREP" >&6; }
4593- EGREP="$ac_cv_path_EGREP"
4594-
4595-
4596-if test $ac_cv_c_compiler_gnu = yes; then
4597- { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4598-$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4599-if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4600- $as_echo_n "(cached) " >&6
4601-else
4602- ac_pattern="Autoconf.*'x'"
4603- cat >conftest.$ac_ext <<_ACEOF
4604-/* confdefs.h. */
4605-_ACEOF
4606-cat confdefs.h >>conftest.$ac_ext
4607-cat >>conftest.$ac_ext <<_ACEOF
4608-/* end confdefs.h. */
4609-#include <sgtty.h>
4610-Autoconf TIOCGETP
4611-_ACEOF
4612-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613- $EGREP "$ac_pattern" >/dev/null 2>&1; then
4614- ac_cv_prog_gcc_traditional=yes
4615-else
4616- ac_cv_prog_gcc_traditional=no
4617-fi
4618-rm -f conftest*
4619-
4620-
4621- if test $ac_cv_prog_gcc_traditional = no; then
4622- cat >conftest.$ac_ext <<_ACEOF
4623-/* confdefs.h. */
4624-_ACEOF
4625-cat confdefs.h >>conftest.$ac_ext
4626-cat >>conftest.$ac_ext <<_ACEOF
4627-/* end confdefs.h. */
4628-#include <termio.h>
4629-Autoconf TCGETA
4630-_ACEOF
4631-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632- $EGREP "$ac_pattern" >/dev/null 2>&1; then
4633- ac_cv_prog_gcc_traditional=yes
4634-fi
4635-rm -f conftest*
4636-
4637- fi
4638-fi
4639-{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4640-$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4641- if test $ac_cv_prog_gcc_traditional = yes; then
4642- CC="$CC -traditional"
4643- fi
4644-fi
4645-
4646-# Extract the first word of "sane-config", so it can be a program name with args.
4647-set dummy sane-config; ac_word=$2
4648-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649-$as_echo_n "checking for $ac_word... " >&6; }
4650-if test "${ac_cv_path_SANE_CONFIG_PATH+set}" = set; then
4651- $as_echo_n "(cached) " >&6
4652-else
4653- case $SANE_CONFIG_PATH in
4654- [\\/]* | ?:[\\/]*)
4655- ac_cv_path_SANE_CONFIG_PATH="$SANE_CONFIG_PATH" # Let the user override the test with a path.
4656- ;;
4657- *)
4658- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659-for as_dir in $PATH
4660-do
4661- IFS=$as_save_IFS
4662- test -z "$as_dir" && as_dir=.
4663- for ac_exec_ext in '' $ac_executable_extensions; do
4664- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665- ac_cv_path_SANE_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
4666- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667- break 2
4668- fi
4669-done
4670-done
4671-IFS=$as_save_IFS
4672-
4673- test -z "$ac_cv_path_SANE_CONFIG_PATH" && ac_cv_path_SANE_CONFIG_PATH="no"
4674- ;;
4675-esac
4676-fi
4677-SANE_CONFIG_PATH=$ac_cv_path_SANE_CONFIG_PATH
4678-if test -n "$SANE_CONFIG_PATH"; then
4679- { $as_echo "$as_me:$LINENO: result: $SANE_CONFIG_PATH" >&5
4680-$as_echo "$SANE_CONFIG_PATH" >&6; }
4681-else
4682- { $as_echo "$as_me:$LINENO: result: no" >&5
4683-$as_echo "no" >&6; }
4684-fi
4685-
4686-
4687-# Extract the first word of "msgfmt$EXEEXT", so it can be a program name with args.
4688-set dummy msgfmt$EXEEXT; ac_word=$2
4689-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4690-$as_echo_n "checking for $ac_word... " >&6; }
4691-if test "${ac_cv_path_MSGFMT+set}" = set; then
4692- $as_echo_n "(cached) " >&6
4693-else
4694- case $MSGFMT in
4695- [\\/]* | ?:[\\/]*)
4696- ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4697- ;;
4698- *)
4699- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700-for as_dir in $PATH
4701-do
4702- IFS=$as_save_IFS
4703- test -z "$as_dir" && as_dir=.
4704- for ac_exec_ext in '' $ac_executable_extensions; do
4705- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706- ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4707- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708- break 2
4709- fi
4710-done
4711-done
4712-IFS=$as_save_IFS
4713-
4714- test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4715- ;;
4716-esac
4717-fi
4718-MSGFMT=$ac_cv_path_MSGFMT
4719-if test -n "$MSGFMT"; then
4720- { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
4721-$as_echo "$MSGFMT" >&6; }
4722-else
4723- { $as_echo "$as_me:$LINENO: result: no" >&5
4724-$as_echo "no" >&6; }
4725-fi
4726-
4727-
4728-# Extract the first word of "xgettext$EXEEXT", so it can be a program name with args.
4729-set dummy xgettext$EXEEXT; ac_word=$2
4730-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4731-$as_echo_n "checking for $ac_word... " >&6; }
4732-if test "${ac_cv_path_XGETTEXT+set}" = set; then
4733- $as_echo_n "(cached) " >&6
4734-else
4735- case $XGETTEXT in
4736- [\\/]* | ?:[\\/]*)
4737- ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4738- ;;
4739- *)
4740- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741-for as_dir in $PATH
4742-do
4743- IFS=$as_save_IFS
4744- test -z "$as_dir" && as_dir=.
4745- for ac_exec_ext in '' $ac_executable_extensions; do
4746- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747- ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
4748- $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749- break 2
4750- fi
4751-done
4752-done
4753-IFS=$as_save_IFS
4754-
4755- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="no"
4756- ;;
4757-esac
4758-fi
4759-XGETTEXT=$ac_cv_path_XGETTEXT
4760-if test -n "$XGETTEXT"; then
4761- { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4762-$as_echo "$XGETTEXT" >&6; }
4763-else
4764- { $as_echo "$as_me:$LINENO: result: no" >&5
4765-$as_echo "no" >&6; }
4766-fi
4767-
4768-
4769-# Extract the first word of "msgmerge$EXEEXT", so it can be a program name with args.
4770-set dummy msgmerge$EXEEXT; ac_word=$2
4771-{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4772-$as_echo_n "checking for $ac_word... " >&6; }
4773-if test "${ac_cv_path_MSGMERGE+set}" = set; then
4774- $as_echo_n "(cached) " >&6
4775-else
4776- case $MSGMERGE in
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: