1 Description: patch confgure becase broken autoreconf
2 Author: Nils Philippsen <nphilipp@fedoraproject.org>
3 Last-Update: 2014-10-17
5 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 ===================================================================
8 --- trunk.orig/configure
12 # Guess values for system-dependent variables and create Makefiles.
13 -# Generated by GNU Autoconf 2.68.
14 +# Generated by GNU Autoconf 2.69.
17 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18 -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
20 +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
23 # This configure script is free software; the Free Software Foundation
24 @@ -134,6 +132,31 @@ export LANGUAGE
26 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28 +# Use a proper internal environment variable to ensure we don't fall
29 + # into an infinite loop, continuously re-executing ourselves.
30 + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
31 + _as_can_reexec=no; export _as_can_reexec;
32 + # We cannot yet assume a decent shell, so we have to provide a
33 +# neutralization value for shells without unset; and this also
34 +# works around shells that cannot unset nonexistent variables.
35 +# Preserve -v and -x to the replacement shell.
38 +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
40 + *v*x* | *x*v* ) as_opts=-vx ;;
45 +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
46 +# Admittedly, this is quite paranoid, since all the known shells bail
47 +# out after a failed `exec'.
48 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
51 + # We don't want this to propagate to other subprocesses.
52 + { _as_can_reexec=; unset _as_can_reexec;}
53 if test "x$CONFIG_SHELL" = x; then
54 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
56 @@ -167,7 +190,8 @@ if ( set x; as_fn_ret_success y && test
58 exitcode=1; echo positional parameters were not saved.
60 -test x\$exitcode = x0 || exit 1"
61 +test x\$exitcode = x0 || exit 1
63 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
64 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
65 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
66 @@ -212,6 +236,7 @@ IFS=$as_save_IFS
69 if test "x$CONFIG_SHELL" != x; then :
71 # We cannot yet assume a decent shell, so we have to provide a
72 # neutralization value for shells without unset; and this also
73 # works around shells that cannot unset nonexistent variables.
74 @@ -219,14 +244,17 @@ IFS=$as_save_IFS
77 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
80 *v*x* | *x*v* ) as_opts=-vx ;;
85 - exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
86 +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
87 +# Admittedly, this is quite paranoid, since all the known shells bail
88 +# out after a failed `exec'.
89 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
93 if test x$as_have_required = xno; then :
94 @@ -328,6 +356,14 @@ $as_echo X"$as_dir" |
99 +# as_fn_executable_p FILE
100 +# -----------------------
101 +# Test if FILE is an executable regular file.
102 +as_fn_executable_p ()
104 + test -f "$1" && test -x "$1"
105 +} # as_fn_executable_p
106 # as_fn_append VAR VALUE
107 # ----------------------
108 # Append the text in VALUE to the end of the definition contained in VAR. Take
109 @@ -449,6 +485,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
110 chmod +x "$as_me.lineno" ||
111 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
113 + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
114 + # already done that, so ensure we don't try to do so again and fall
115 + # in an infinite loop. This has already happened in practice.
116 + _as_can_reexec=no; export _as_can_reexec
117 # Don't try to exec as it changes $[0], causing all sort of problems
118 # (the dirname of $[0] is not the place where we might find the
119 # original and so on. Autoconf is especially sensitive to this).
120 @@ -483,16 +523,16 @@ if (echo >conf$$.file) 2>/dev/null; then
121 # ... but there are two gotchas:
122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
124 - # In both cases, we have to default to `cp -p'.
125 + # In both cases, we have to default to `cp -pR'.
126 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
129 elif ln conf$$.file conf$$ 2>/dev/null; then
139 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
140 rmdir conf$$.dir 2>/dev/null
141 @@ -504,28 +544,8 @@ else
145 -if test -x / >/dev/null 2>&1; then
148 - if ls -dL / >/dev/null 2>&1; then
155 - if test -d "$1"; then
161 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
162 - ???[sx]*):;;*)false;;esac;fi
166 -as_executable_p=$as_test_x
167 +as_executable_p=as_fn_executable_p
169 # Sed expression to map a string onto a valid CPP name.
170 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
171 @@ -1192,8 +1212,6 @@ target=$target_alias
172 if test "x$host_alias" != x; then
173 if test "x$build_alias" = x; then
174 cross_compiling=maybe
175 - $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
176 - If a cross compiler is detected then cross compile mode will be used" >&2
177 elif test "x$build_alias" != "x$host_alias"; then
180 @@ -1451,9 +1469,9 @@ test -n "$ac_init_help" && exit $ac_stat
181 if $ac_init_version; then
184 -generated by GNU Autoconf 2.68
185 +generated by GNU Autoconf 2.69
187 -Copyright (C) 2010 Free Software Foundation, Inc.
188 +Copyright (C) 2012 Free Software Foundation, Inc.
189 This configure script is free software; the Free Software Foundation
190 gives unlimited permission to copy, distribute and modify it.
192 @@ -1726,7 +1744,7 @@ $as_echo "$ac_try_echo"; } >&5
193 test ! -s conftest.err
194 } && test -s conftest$ac_exeext && {
195 test "$cross_compiling" = yes ||
196 - $as_test_x conftest$ac_exeext
197 + test -x conftest$ac_exeext
201 @@ -1870,7 +1888,7 @@ This file contains any messages produced
202 running configure, to aid debugging if configure makes a mistake.
204 It was created by $as_me, which was
205 -generated by GNU Autoconf 2.68. Invocation command line was
206 +generated by GNU Autoconf 2.69. Invocation command line was
210 @@ -2377,7 +2395,7 @@ do
212 test -z "$as_dir" && as_dir=.
213 for ac_exec_ext in '' $ac_executable_extensions; do
214 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
215 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
216 ac_cv_prog_CC="${ac_tool_prefix}gcc"
217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
219 @@ -2417,7 +2435,7 @@ do
221 test -z "$as_dir" && as_dir=.
222 for ac_exec_ext in '' $ac_executable_extensions; do
223 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
224 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
225 ac_cv_prog_ac_ct_CC="gcc"
226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
228 @@ -2470,7 +2488,7 @@ do
230 test -z "$as_dir" && as_dir=.
231 for ac_exec_ext in '' $ac_executable_extensions; do
232 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
233 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
234 ac_cv_prog_CC="${ac_tool_prefix}cc"
235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
237 @@ -2511,7 +2529,7 @@ do
239 test -z "$as_dir" && as_dir=.
240 for ac_exec_ext in '' $ac_executable_extensions; do
241 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
242 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
246 @@ -2569,7 +2587,7 @@ do
248 test -z "$as_dir" && as_dir=.
249 for ac_exec_ext in '' $ac_executable_extensions; do
250 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
251 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
255 @@ -2613,7 +2631,7 @@ do
257 test -z "$as_dir" && as_dir=.
258 for ac_exec_ext in '' $ac_executable_extensions; do
259 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
260 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
261 ac_cv_prog_ac_ct_CC="$ac_prog"
262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
264 @@ -3059,8 +3077,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
265 /* end confdefs.h. */
268 -#include <sys/types.h>
269 -#include <sys/stat.h>
271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
272 struct buf { int x; };
273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
274 @@ -3300,7 +3317,7 @@ do
275 for ac_prog in grep ggrep; do
276 for ac_exec_ext in '' $ac_executable_extensions; do
277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
278 - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
279 + as_fn_executable_p "$ac_path_GREP" || continue
280 # Check for GNU ac_path_GREP and select it if it is found.
281 # Check for GNU $ac_path_GREP
282 case `"$ac_path_GREP" --version 2>&1` in
283 @@ -3366,7 +3383,7 @@ do
284 for ac_prog in egrep; do
285 for ac_exec_ext in '' $ac_executable_extensions; do
286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
287 - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
288 + as_fn_executable_p "$ac_path_EGREP" || continue
289 # Check for GNU ac_path_EGREP and select it if it is found.
290 # Check for GNU $ac_path_EGREP
291 case `"$ac_path_EGREP" --version 2>&1` in
292 @@ -3684,7 +3701,7 @@ do
294 test -z "$as_dir" && as_dir=.
295 for ac_exec_ext in '' $ac_executable_extensions; do
296 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
297 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
301 @@ -3724,7 +3741,7 @@ do
303 test -z "$as_dir" && as_dir=.
304 for ac_exec_ext in '' $ac_executable_extensions; do
305 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
306 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
307 ac_cv_prog_ac_ct_CC="gcc"
308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
310 @@ -3777,7 +3794,7 @@ do
312 test -z "$as_dir" && as_dir=.
313 for ac_exec_ext in '' $ac_executable_extensions; do
314 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
315 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
316 ac_cv_prog_CC="${ac_tool_prefix}cc"
317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
319 @@ -3818,7 +3835,7 @@ do
321 test -z "$as_dir" && as_dir=.
322 for ac_exec_ext in '' $ac_executable_extensions; do
323 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
324 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
328 @@ -3876,7 +3893,7 @@ do
330 test -z "$as_dir" && as_dir=.
331 for ac_exec_ext in '' $ac_executable_extensions; do
332 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
333 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
334 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
337 @@ -3920,7 +3937,7 @@ do
339 test -z "$as_dir" && as_dir=.
340 for ac_exec_ext in '' $ac_executable_extensions; do
341 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
342 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
343 ac_cv_prog_ac_ct_CC="$ac_prog"
344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
346 @@ -4116,8 +4133,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
347 /* end confdefs.h. */
350 -#include <sys/types.h>
351 -#include <sys/stat.h>
353 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
354 struct buf { int x; };
355 FILE * (*rcsopen) (struct buf *, struct stat *, int);
356 @@ -4271,7 +4287,7 @@ case $as_dir/ in #((
358 for ac_prog in ginstall scoinst install; do
359 for ac_exec_ext in '' $ac_executable_extensions; do
360 - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
361 + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
362 if test $ac_prog = install &&
363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
364 # AIX install. It has an incompatible calling convention.
365 @@ -4732,11 +4748,11 @@ else
369 -/* FIXME: Include the comments suggested by Paul. */
372 - /* Ultrix mips cc rejects this. */
373 + /* Ultrix mips cc rejects this sort of thing. */
374 typedef int charset[2];
376 + const charset cs = { 0, 0 };
377 /* SunOS 4.1.1 cc rejects this. */
378 char const *const *pcpcc;
380 @@ -4753,8 +4769,9 @@ main ()
382 ppc = (char**) pcpcc;
383 pcpcc = (char const *const *) ppc;
384 - { /* SCO 3.2v4 cc rejects this. */
386 + { /* SCO 3.2v4 cc rejects this sort of thing. */
389 char const *s = 0 ? (char *) 0 : (char const *) 0;
392 @@ -4770,10 +4787,10 @@ main ()
396 - { /* AIX XL C 1.02.0.0 rejects this saying
397 + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
399 - struct s { int j; const int *ap[3]; };
400 - struct s *b; b->j = 5;
401 + struct s { int j; const int *ap[3]; } bx;
402 + struct s *b = &bx; b->j = 5;
404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
406 @@ -5132,13 +5149,12 @@ fi
409 if test "${USE_LCMS}" = "yes"; then
410 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
411 -$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
412 -if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
413 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmsOpenProfileFromFile" >&5
414 +$as_echo_n "checking for library containing cmsOpenProfileFromFile... " >&6; }
415 +if ${ac_cv_search_cmsOpenProfileFromFile+:} false; then :
416 $as_echo_n "(cached) " >&6
418 - ac_check_lib_save_LIBS=$LIBS
420 + ac_func_search_save_LIBS=$LIBS
421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
422 /* end confdefs.h. */
424 @@ -5157,26 +5173,54 @@ return cmsOpenProfileFromFile ();
428 -if ac_fn_c_try_link "$LINENO"; then :
429 - ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
430 +for ac_lib in '' lcms2 lcms; do
431 + if test -z "$ac_lib"; then
432 + ac_res="none required"
434 - ac_cv_lib_lcms_cmsOpenProfileFromFile=no
436 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
438 + if ac_fn_c_try_link "$LINENO"; then :
439 + ac_cv_search_cmsOpenProfileFromFile=$ac_res
441 rm -f core conftest.err conftest.$ac_objext \
442 - conftest$ac_exeext conftest.$ac_ext
443 -LIBS=$ac_check_lib_save_LIBS
445 + if ${ac_cv_search_cmsOpenProfileFromFile+:} false; then :
448 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
449 -$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
450 -if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
451 - cat >>confdefs.h <<_ACEOF
452 -#define HAVE_LIBLCMS 1
455 +if ${ac_cv_search_cmsOpenProfileFromFile+:} false; then :
458 + ac_cv_search_cmsOpenProfileFromFile=no
461 +LIBS=$ac_func_search_save_LIBS
463 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmsOpenProfileFromFile" >&5
464 +$as_echo "$ac_cv_search_cmsOpenProfileFromFile" >&6; }
465 +ac_res=$ac_cv_search_cmsOpenProfileFromFile
466 +if test "$ac_res" != no; then :
467 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
469 - LIBS="-llcms $LIBS"
472 + if test "${ac_cv_search_cmsOpenProfileFromFile}" != "no"; then
474 +$as_echo "#define HAVE_LIBLCMS 1" >>confdefs.h
477 + if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms2"; then
479 +$as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
482 + if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms"; then
484 +$as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
491 @@ -5330,23 +5374,20 @@ else
492 /* end confdefs.h. */
495 -find_stack_direction ()
497 - static char *addr = 0;
500 +find_stack_direction (int *addr, int depth)
502 + int dir, dummy = 0;
505 - return find_stack_direction ();
508 - return (&dummy > addr) ? 1 : -1;
509 + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
510 + dir = depth ? find_stack_direction (addr, depth - 1) : 0;
511 + return dir + dummy;
516 +main (int argc, char **argv)
518 - return find_stack_direction () < 0;
519 + return find_stack_direction (0, argc + !argv + 20) < 0;
522 if ac_fn_c_try_run "$LINENO"; then :
523 @@ -5599,7 +5640,7 @@ do
525 test -z "$as_dir" && as_dir=.
526 for ac_exec_ext in '' $ac_executable_extensions; do
527 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
528 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
532 @@ -5639,7 +5680,7 @@ do
534 test -z "$as_dir" && as_dir=.
535 for ac_exec_ext in '' $ac_executable_extensions; do
536 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
537 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
538 ac_cv_prog_ac_ct_RANLIB="ranlib"
539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
541 @@ -5971,7 +6012,7 @@ do
543 test -z "$as_dir" && as_dir=.
544 for ac_exec_ext in '' $ac_executable_extensions; do
545 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
546 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
547 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
550 @@ -6136,7 +6177,7 @@ do
552 test -z "$as_dir" && as_dir=.
553 for ac_exec_ext in '' $ac_executable_extensions; do
554 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
555 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
556 ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
559 @@ -6177,7 +6218,7 @@ do
561 test -z "$as_dir" && as_dir=.
562 for ac_exec_ext in '' $ac_executable_extensions; do
563 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
564 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
565 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
568 @@ -6350,7 +6391,7 @@ do
570 test -z "$as_dir" && as_dir=.
571 for ac_exec_ext in '' $ac_executable_extensions; do
572 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
573 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
574 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
577 @@ -6574,7 +6615,7 @@ do
579 test -z "$as_dir" && as_dir=.
580 for ac_exec_ext in '' $ac_executable_extensions; do
581 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
582 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
583 ac_cv_path_SANE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
586 @@ -6795,7 +6836,7 @@ do
588 test -z "$as_dir" && as_dir=.
589 for ac_exec_ext in '' $ac_executable_extensions; do
590 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
591 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
592 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
595 @@ -7058,7 +7099,7 @@ do
597 test -z "$as_dir" && as_dir=.
598 for ac_exec_ext in '' $ac_executable_extensions; do
599 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
600 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
604 @@ -7346,7 +7387,7 @@ do
606 test -z "$as_dir" && as_dir=.
607 for ac_exec_ext in '' $ac_executable_extensions; do
608 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
609 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
610 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
613 @@ -7616,7 +7657,7 @@ do
615 test -z "$as_dir" && as_dir=.
616 for ac_exec_ext in '' $ac_executable_extensions; do
617 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
618 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
619 ac_cv_path_GIMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
622 @@ -7670,7 +7711,7 @@ do
624 test -z "$as_dir" && as_dir=.
625 for ac_exec_ext in '' $ac_executable_extensions; do
626 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
627 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
628 ac_cv_path_GIMP_TOOL="$as_dir/$ac_word$ac_exec_ext"
629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
631 @@ -8496,16 +8537,16 @@ if (echo >conf$$.file) 2>/dev/null; then
632 # ... but there are two gotchas:
633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
635 - # In both cases, we have to default to `cp -p'.
636 + # In both cases, we have to default to `cp -pR'.
637 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
640 elif ln conf$$.file conf$$ 2>/dev/null; then
650 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
651 rmdir conf$$.dir 2>/dev/null
652 @@ -8565,28 +8606,16 @@ else
656 -if test -x / >/dev/null 2>&1; then
658 +# as_fn_executable_p FILE
659 +# -----------------------
660 +# Test if FILE is an executable regular file.
661 +as_fn_executable_p ()
663 + test -f "$1" && test -x "$1"
664 +} # as_fn_executable_p
667 - if ls -dL / >/dev/null 2>&1; then
674 - if test -d "$1"; then
680 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
681 - ???[sx]*):;;*)false;;esac;fi
685 -as_executable_p=$as_test_x
686 +as_executable_p=as_fn_executable_p
688 # Sed expression to map a string onto a valid CPP name.
689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
690 @@ -8608,7 +8637,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
691 # values after options handling.
693 This file was extended by $as_me, which was
694 -generated by GNU Autoconf 2.68. Invocation command line was
695 +generated by GNU Autoconf 2.69. Invocation command line was
697 CONFIG_FILES = $CONFIG_FILES
698 CONFIG_HEADERS = $CONFIG_HEADERS
699 @@ -8674,10 +8703,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
703 -configured by $0, generated by GNU Autoconf 2.68,
704 +configured by $0, generated by GNU Autoconf 2.69,
705 with options \\"\$ac_cs_config\\"
707 -Copyright (C) 2010 Free Software Foundation, Inc.
708 +Copyright (C) 2012 Free Software Foundation, Inc.
709 This config.status script is free software; the Free Software Foundation
710 gives unlimited permission to copy, distribute and modify it."
712 @@ -8766,7 +8795,7 @@ fi
714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
715 if \$ac_cs_recheck; then
716 - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
717 + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
720 CONFIG_SHELL='$SHELL'
721 @@ -9463,11 +9492,15 @@ else
722 echo "* - PNG support deactivated *"
725 -if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile}" = "yes"; then
726 - echo "* - LCMS (color management) support activated *"
727 +if test "${ac_cv_search_cmsOpenProfileFromFile}" = "-llcms2"; then
728 + echo "* - LCMS (color management) support activated (lcms2) *"
730 + if test "${ac_cv_search_cmsOpenProfileFromFile}" = "-llcms"; then
731 + echo "* - LCMS (color management) support activated (lcms) *"
733 echo "* - LCMS (color management) support deactivated *"
738 echo "****************************************************************"
739 @@ -9481,4 +9514,4 @@ echo "* --------------------------------
740 echo "* ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... *"
741 echo "* ------------------------------------------------------------ *"
742 echo "****************************************************************"
744 +cat ${srcdir}/xsane.NEWS