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

Proposed by Artur Rona
Status: Merged
Approved by: Martin Pitt
Approved revision: no longer in the source branch.
Merged at revision: 10
Proposed branch: lp:~ari-tczew/sane-backends/ubuntu
Merge into: lp:~ubuntu-desktop/sane-backends/ubuntu
Diff against target: 30527 lines
To merge this branch: bzr merge lp:~ari-tczew/sane-backends/ubuntu
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+54285@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for this! However, it seems you forgot to bzr add all the new patches? They are added in series, and changelog has them as well, but they aren't in your branch.

Also, this merge removes all debian/patches-exp/*, but this isn't mentioned in Debian's changelog. Did something go wrong here?

Thanks, Martin

review: Needs Fixing
Revision history for this message
Artur Rona (ari-tczew) wrote :

Right, I forgot to do bzr add. Acutally I pushed these patches. I attached a debdiff between previous and current Debian revision. You can see there that debian/patches-exp/ directory has been deleted. It's not my fault that they didn't mention delete in d/changelog.

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

Thanks for fixing! Looks great now.

review: Approve
lp:~ari-tczew/sane-backends/ubuntu updated
10. By Martin Pitt

merge with Debian

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-03-07 14:01:11 +0000
+++ debian/changelog 2011-03-23 17:46:28 +0000
@@ -1,3 +1,49 @@
1sane-backends (1.0.22-2ubuntu1) UNRELEASED; urgency=low
2
3 * Merge from debian unstable. Remaining changes: (LP: #739708)
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/rules:
16 - Link using -Bsymbolic-functions (startup time optimization).
17 - Saned init script does not need to be started before gdm
18 and does not need to be called on shutdown.
19 - Drop "acl" dependency. Current udev releases already evaluate
20 the "libsane_matched" property, so we don't need the sane rules
21 to do that again. Also drop the alternative "makedev" dependency;
22 we only support udev.
23 - debian/sane-utils.*: No longer have scanner group.
24 - debian/sane-utils.saned.init: Saned init script does not need to
25 be started before gdm and does not need to be called on shutdown.
26
27 -- Artur Rona <ari-tczew@ubuntu.com> Mon, 21 Mar 2011 21:36:31 +0100
28
29sane-backends (1.0.22-2) unstable; urgency=low
30
31 * debian/patches/udev_usb_suspend.patch:
32 + Added; switch to using power/control instead of power/level for
33 device power setting, if available.
34 * debian/patches/xerox_mfp_fix_usb_devices.patch:
35 + Added; fix detection/handling of USB devices in xerox_mfp
36 (closes: #617307).
37 * debian/patches/xerox_mfp_add_scx_4623fw.patch:
38 + Added; add IDs for the Samsung SCX-4623FW.
39 * debian/patches/hurd_path_max_fix.patch:
40 + Added; fix build on HURD where PATH_MAX is not defined
41 (closes: #616299).
42 * debian/patches/scanimage_man_batch_start.patch:
43 + Added; fix improper documentation of --batch-start (closes: #614009).
44
45 -- Julien BLACHE <jblache@debian.org> Sat, 12 Mar 2011 11:32:32 +0100
46
1sane-backends (1.0.22-1ubuntu1) natty; urgency=low47sane-backends (1.0.22-1ubuntu1) natty; urgency=low
248
3 [ Artur Rona ]49 [ Artur Rona ]
450
=== removed directory 'debian/patches-exp'
=== removed file 'debian/patches-exp/disable_rpath.patch'
--- debian/patches-exp/disable_rpath.patch 2011-03-04 20:37:43 +0000
+++ debian/patches-exp/disable_rpath.patch 1970-01-01 00:00:00 +0000
@@ -1,29936 +0,0 @@
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