Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libtiff 4.7.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else case e in #(
189 e) as_have_required=no ;;
190 esac
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else case e in #(
196 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else case e in #(
230 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi ;;
235 esac
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed 'exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi ;;
277 esac
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 printf "%s\n" X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379 then :
380 eval 'as_fn_append ()
381 {
382 eval $1+=\$2
383 }'
384 else case e in #(
385 e) as_fn_append ()
386 {
387 eval $1=\$$1\$2
388 } ;;
389 esac
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398 then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else case e in #(
404 e) as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 } ;;
408 esac
409 fi # as_fn_arith
410
411
412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413 # ----------------------------------------
414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416 # script with STATUS, using 1 if that was 0.
417 as_fn_error ()
418 {
419 as_status=$1; test $as_status -eq 0 && as_status=1
420 if test "$4"; then
421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 fi
424 printf "%s\n" "$as_me: error: $2" >&2
425 as_fn_exit $as_status
426 } # as_fn_error
427
428 if expr a : '\(a\)' >/dev/null 2>&1 &&
429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 as_expr=expr
431 else
432 as_expr=false
433 fi
434
435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 as_basename=basename
437 else
438 as_basename=false
439 fi
440
441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_dirname=dirname
443 else
444 as_dirname=false
445 fi
446
447 as_me=`$as_basename -- "$0" ||
448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449 X"$0" : 'X\(//\)$' \| \
450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 printf "%s\n" X/"$0" |
452 sed '/^.*\/\([^/][^/]*\)\/*$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\/\)$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\).*/{
461 s//\1/
462 q
463 }
464 s/.*/./; q'`
465
466 # Avoid depending upon Character Ranges.
467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470 as_cr_digits='0123456789'
471 as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474 as_lineno_1=$LINENO as_lineno_1a=$LINENO
475 as_lineno_2=$LINENO as_lineno_2a=$LINENO
476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 t clear
485 :clear
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511
512 # Determine whether it's possible to make 'echo' print without a newline.
513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514 # for compatibility with existing Makefiles.
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 # For backward compatibility with old third-party macros, we provide
529 # the shell variables $as_echo and $as_echo_n. New code should use
530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531 as_echo='printf %s\n'
532 as_echo_n='printf %s'
533
534 rm -f conf$$ conf$$.exe conf$$.file
535 if test -d conf$$.dir; then
536 rm -f conf$$.dir/conf$$.file
537 else
538 rm -f conf$$.dir
539 mkdir conf$$.dir 2>/dev/null
540 fi
541 if (echo >conf$$.file) 2>/dev/null; then
542 if ln -s conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s='ln -s'
544 # ... but there are two gotchas:
545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547 # In both cases, we have to default to 'cp -pR'.
548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 as_ln_s='cp -pR'
550 elif ln conf$$.file conf$$ 2>/dev/null; then
551 as_ln_s=ln
552 else
553 as_ln_s='cp -pR'
554 fi
555 else
556 as_ln_s='cp -pR'
557 fi
558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559 rmdir conf$$.dir 2>/dev/null
560
561 if mkdir -p . 2>/dev/null; then
562 as_mkdir_p='mkdir -p "$as_dir"'
563 else
564 test -d ./-p && rmdir ./-p
565 as_mkdir_p=false
566 fi
567
568 as_test_x='test -x'
569 as_executable_p=as_fn_executable_p
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
574
575 # Sed expression to map a string onto a valid variable name.
576 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578
579
580 test -n "$DJDIR" || exec 7<&0 </dev/null
581 exec 6>&1
582
583 # Name of the host.
584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 # so uname gets run too.
586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588 #
589 # Initializations.
590 #
591 ac_default_prefix=/usr/local
592 ac_clean_files=
593 ac_config_libobj_dir=.
594 LIBOBJS=
595 cross_compiling=no
596 subdirs=
597 MFLAGS=
598 MAKEFLAGS=
599
600 # Identity of this package.
601 PACKAGE_NAME='libtiff'
602 PACKAGE_TARNAME='libtiff'
603 PACKAGE_VERSION='4.7.0'
604 PACKAGE_STRING='libtiff 4.7.0'
605 PACKAGE_BUGREPORT=''
606 PACKAGE_URL=''
607
608 ac_unique_file="libtiff-src/tiff.h"
609 # Factoring default headers for most tests.
610 ac_includes_default="\
611 #include <stddef.h>
612 #ifdef HAVE_STDIO_H
613 # include <stdio.h>
614 #endif
615 #ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 #endif
618 #ifdef HAVE_STRING_H
619 # include <string.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_SYS_TYPES_H
631 # include <sys/types.h>
632 #endif
633 #ifdef HAVE_SYS_STAT_H
634 # include <sys/stat.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_c_list=
641 ac_subst_vars='am__EXEEXT_FALSE
642 am__EXEEXT_TRUE
643 LTLIBOBJS
644 LIBOBJS
645 LIBTIFF_TREE
646 MEMORYMGR
647 config_args
648 build_FALSE
649 build_TRUE
650 ZLIB_RULE
651 ZLIB_DEPEND
652 ZLIB_LIBS
653 ZLIB_INCLUDES
654 VISIBILITY_CFLAGS
655 LN_S
656 RANLIB
657 WARNING_CFLAGS
658 am__fastdepCC_FALSE
659 am__fastdepCC_TRUE
660 CCDEPMODE
661 am__nodep
662 AMDEPBACKSLASH
663 AMDEP_FALSE
664 AMDEP_TRUE
665 am__include
666 DEPDIR
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
673 CC
674 MAINT
675 MAINTAINER_MODE_FALSE
676 MAINTAINER_MODE_TRUE
677 am__xargs_n
678 am__rm_f_notfound
679 AM_BACKSLASH
680 AM_DEFAULT_VERBOSITY
681 AM_DEFAULT_V
682 AM_V
683 CSCOPE
684 ETAGS
685 CTAGS
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 runstatedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL
748 am__quote'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_silent_rules
753 enable_maintainer_mode
754 enable_dependency_tracking
755 enable_compiler_warnings
756 '
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
760 CC
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS'
765
766
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 runstatedir='${localstatedir}/run'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
825 fi
826
827 case $ac_option in
828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *=) ac_optarg= ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 case $ac_dashdash$ac_option in
834 --)
835 ac_dashdash=yes ;;
836
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 ac_prev=bindir ;;
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 bindir=$ac_optarg ;;
841
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
846
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
853
854 --config-cache | -C)
855 cache_file=config.cache ;;
856
857 -datadir | --datadir | --datadi | --datad)
858 ac_prev=datadir ;;
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
861
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
868
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: '$ac_useropt'"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=no ;;
884
885 -docdir | --docdir | --docdi | --doc | --do)
886 ac_prev=docdir ;;
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 docdir=$ac_optarg ;;
889
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 ac_prev=dvidir ;;
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 dvidir=$ac_optarg ;;
894
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: '$ac_useropt'"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=\$ac_optarg ;;
910
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
919
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
923
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
930
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
935
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
941
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
948
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
953
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
958
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
965
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
970
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
977
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
982
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
986
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
990
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
994
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1003
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1008
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1015
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1022
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1039
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1044
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1049
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1053
1054 -runstatedir | --runstatedir | --runstatedi | --runstated \
1055 | --runstate | --runstat | --runsta | --runst | --runs \
1056 | --run | --ru | --r)
1057 ac_prev=runstatedir ;;
1058 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1059 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1060 | --run=* | --ru=* | --r=*)
1061 runstatedir=$ac_optarg ;;
1062
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1068
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1079
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1084
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1089
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1096
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1101
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1104
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1107
1108 -with-* | --with-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: '$ac_useropt'"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=\$ac_optarg ;;
1123
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: '$ac_useropt'"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
1139
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1143
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1150
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1157
1158 -*) as_fn_error $? "unrecognized option: '$ac_option'
1159 Try '$0 --help' for more information"
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1171
1172 *)
1173 # FIXME: should be removed in autoconf 3.0.
1174 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178 ;;
1179
1180 esac
1181 done
1182
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error $? "missing argument to $ac_option"
1186 fi
1187
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 esac
1194 fi
1195
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir runstatedir
1201 do
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215 done
1216
1217 # There might be people who depend on the old broken behavior: '$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 printf "%s\n" X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1277 fi
1278 else
1279 ac_srcdir_defaulted=no
1280 fi
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 fi
1285 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 'configure' configures libtiff 4.7.0 to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print 'checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for '--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or '..']
1332
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1338
1339 By default, 'make install' will install all the files in
1340 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than '$ac_default_prefix' using '--prefix',
1342 for instance '--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/libtiff]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of libtiff 4.7.0:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-maintainer-mode
1391 enable make rules and dependencies not useful (and
1392 sometimes confusing) to the casual installer
1393 --enable-dependency-tracking
1394 do not reject slow dependency extractors
1395 --disable-dependency-tracking
1396 speeds up one-time build
1397 --enable-compiler-warnings=[no|min|yes|max|all]
1398 Turn on compiler warnings [default: yes if
1399 maintainer-mode, min otherwise]
1400
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409
1410 Use these variables to override the choices made by 'configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1412
1413 Report bugs to the package provider.
1414 _ACEOF
1415 ac_status=$?
1416 fi
1417
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 continue
1424 ac_builddir=.
1425
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *)
1429 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1441
1442 case $srcdir in
1443 .) # We are building in place.
1444 ac_srcdir=.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for configure.gnu first; this name is used for a wrapper for
1460 # Metaconfig's "Configure" on case-insensitive file systems.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1472 fi
1473
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 libtiff configure 4.7.0
1478 generated by GNU Autoconf 2.72
1479
1480 Copyright (C) 2023 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484 exit
1485 fi
1486
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1490
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1495 {
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext conftest.beam
1498 if { { ac_try="$ac_compile"
1499 case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502 esac
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 printf "%s\n" "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1511 fi
1512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext
1517 then :
1518 ac_retval=0
1519 else case e in #(
1520 e) printf "%s\n" "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523 ac_retval=1 ;;
1524 esac
1525 fi
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status $ac_retval
1528
1529 } # ac_fn_c_try_compile
1530
1531 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1532 # -------------------------------------------------------
1533 # Tests whether HEADER exists and can be compiled using the include files in
1534 # INCLUDES, setting the cache variable VAR accordingly.
1535 ac_fn_c_check_header_compile ()
1536 {
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1539 printf %s "checking for $2... " >&6; }
1540 if eval test \${$3+y}
1541 then :
1542 printf %s "(cached) " >&6
1543 else case e in #(
1544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 $4
1547 #include <$2>
1548 _ACEOF
1549 if ac_fn_c_try_compile "$LINENO"
1550 then :
1551 eval "$3=yes"
1552 else case e in #(
1553 e) eval "$3=no" ;;
1554 esac
1555 fi
1556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1557 esac
1558 fi
1559 eval ac_res=\$$3
1560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1561 printf "%s\n" "$ac_res" >&6; }
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563
1564 } # ac_fn_c_check_header_compile
1565
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 printf "%s\n" "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 test -x conftest$ac_exeext
1594 }
1595 then :
1596 ac_retval=0
1597 else case e in #(
1598 e) printf "%s\n" "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1 ;;
1602 esac
1603 fi
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612 } # ac_fn_c_try_link
1613 ac_configure_args_raw=
1614 for ac_arg
1615 do
1616 case $ac_arg in
1617 *\'*)
1618 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1619 esac
1620 as_fn_append ac_configure_args_raw " '$ac_arg'"
1621 done
1622
1623 case $ac_configure_args_raw in
1624 *$as_nl*)
1625 ac_safe_unquote= ;;
1626 *)
1627 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1628 ac_unsafe_a="$ac_unsafe_z#~"
1629 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1630 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1631 esac
1632
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1636
1637 It was created by libtiff $as_me 4.7.0, which was
1638 generated by GNU Autoconf 2.72. Invocation command line was
1639
1640 $ $0$ac_configure_args_raw
1641
1642 _ACEOF
1643 exec 5>>config.log
1644 {
1645 cat <<_ASUNAME
1646 ## --------- ##
1647 ## Platform. ##
1648 ## --------- ##
1649
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1658
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1666
1667 _ASUNAME
1668
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 case $as_dir in #(((
1674 '') as_dir=./ ;;
1675 */) ;;
1676 *) as_dir=$as_dir/ ;;
1677 esac
1678 printf "%s\n" "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705 for ac_arg
1706 do
1707 case $ac_arg in
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1711 continue ;;
1712 *\'*)
1713 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714 esac
1715 case $ac_pass in
1716 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1717 2)
1718 as_fn_append ac_configure_args1 " '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1721 else
1722 case $ac_arg in
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729 esac
1730 ;;
1731 -* ) ac_must_keep_next=true ;;
1732 esac
1733 fi
1734 as_fn_append ac_configure_args " '$ac_arg'"
1735 ;;
1736 esac
1737 done
1738 done
1739 { ac_configure_args0=; unset ac_configure_args0;}
1740 { ac_configure_args1=; unset ac_configure_args1;}
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Sanitize IFS.
1749 IFS=" "" $as_nl"
1750 # Save into config.log some information that might help in debugging.
1751 {
1752 echo
1753
1754 printf "%s\n" "## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##"
1757 echo
1758 # The following way of writing the cache mishandles newlines in values,
1759 (
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1762 case $ac_val in #(
1763 *${as_nl}*)
1764 case $ac_var in #(
1765 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1766 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1767 esac
1768 case $ac_var in #(
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) { eval $ac_var=; unset $ac_var;} ;;
1772 esac ;;
1773 esac
1774 done
1775 (set) 2>&1 |
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1778 sed -n \
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781 ;; #(
1782 *)
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784 ;;
1785 esac |
1786 sort
1787 )
1788 echo
1789
1790 printf "%s\n" "## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##"
1793 echo
1794 for ac_var in $ac_subst_vars
1795 do
1796 eval ac_val=\$$ac_var
1797 case $ac_val in
1798 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799 esac
1800 printf "%s\n" "$ac_var='\''$ac_val'\''"
1801 done | sort
1802 echo
1803
1804 if test -n "$ac_subst_files"; then
1805 printf "%s\n" "## ------------------- ##
1806 ## File substitutions. ##
1807 ## ------------------- ##"
1808 echo
1809 for ac_var in $ac_subst_files
1810 do
1811 eval ac_val=\$$ac_var
1812 case $ac_val in
1813 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 esac
1815 printf "%s\n" "$ac_var='\''$ac_val'\''"
1816 done | sort
1817 echo
1818 fi
1819
1820 if test -s confdefs.h; then
1821 printf "%s\n" "## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##"
1824 echo
1825 cat confdefs.h
1826 echo
1827 fi
1828 test "$ac_signal" != 0 &&
1829 printf "%s\n" "$as_me: caught signal $ac_signal"
1830 printf "%s\n" "$as_me: exit $exit_status"
1831 } >&5
1832 rm -f core *.core core.conftest.* &&
1833 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834 exit $exit_status
1835 ' 0
1836 for ac_signal in 1 2 13 15; do
1837 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1838 done
1839 ac_signal=0
1840
1841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1842 rm -f -r conftest* confdefs.h
1843
1844 printf "%s\n" "/* confdefs.h */" > confdefs.h
1845
1846 # Predefined preprocessor variables.
1847
1848 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1849
1850 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1851
1852 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1853
1854 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1855
1856 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1857
1858 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1859
1860
1861 # Let the site file select an alternate cache file if it wants to.
1862 # Prefer an explicitly selected file to automatically selected ones.
1863 if test -n "$CONFIG_SITE"; then
1864 ac_site_files="$CONFIG_SITE"
1865 elif test "x$prefix" != xNONE; then
1866 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1867 else
1868 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1869 fi
1870
1871 for ac_site_file in $ac_site_files
1872 do
1873 case $ac_site_file in #(
1874 */*) :
1875 ;; #(
1876 *) :
1877 ac_site_file=./$ac_site_file ;;
1878 esac
1879 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1881 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1882 sed 's/^/| /' "$ac_site_file" >&5
1883 . "$ac_site_file" \
1884 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1885 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1886 as_fn_error $? "failed to load site script $ac_site_file
1887 See 'config.log' for more details" "$LINENO" 5; }
1888 fi
1889 done
1890
1891 if test -r "$cache_file"; then
1892 # Some versions of bash will fail to source /dev/null (special files
1893 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1894 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1896 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1897 case $cache_file in
1898 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1899 *) . "./$cache_file";;
1900 esac
1901 fi
1902 else
1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1904 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1905 >$cache_file
1906 fi
1907
1908 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
1909 # Test code for whether the C compiler supports C89 (global declarations)
1910 ac_c_conftest_c89_globals='
1911 /* Does the compiler advertise C89 conformance?
1912 Do not test the value of __STDC__, because some compilers set it to 0
1913 while being otherwise adequately conformant. */
1914 #if !defined __STDC__
1915 # error "Compiler does not advertise C89 conformance"
1916 #endif
1917
1918 #include <stddef.h>
1919 #include <stdarg.h>
1920 struct stat;
1921 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1922 struct buf { int x; };
1923 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1924 static char *e (char **p, int i)
1925 {
1926 return p[i];
1927 }
1928 static char *f (char * (*g) (char **, int), char **p, ...)
1929 {
1930 char *s;
1931 va_list v;
1932 va_start (v,p);
1933 s = g (p, va_arg (v,int));
1934 va_end (v);
1935 return s;
1936 }
1937
1938 /* C89 style stringification. */
1939 #define noexpand_stringify(a) #a
1940 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
1941
1942 /* C89 style token pasting. Exercises some of the corner cases that
1943 e.g. old MSVC gets wrong, but not very hard. */
1944 #define noexpand_concat(a,b) a##b
1945 #define expand_concat(a,b) noexpand_concat(a,b)
1946 extern int vA;
1947 extern int vbee;
1948 #define aye A
1949 #define bee B
1950 int *pvA = &expand_concat(v,aye);
1951 int *pvbee = &noexpand_concat(v,bee);
1952
1953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1954 function prototypes and stuff, but not \xHH hex character constants.
1955 These do not provoke an error unfortunately, instead are silently treated
1956 as an "x". The following induces an error, until -std is added to get
1957 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1958 array size at least. It is necessary to write \x00 == 0 to get something
1959 that is true only with -std. */
1960 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1961
1962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1963 inside strings and character constants. */
1964 #define FOO(x) '\''x'\''
1965 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1966
1967 int test (int i, double x);
1968 struct s1 {int (*f) (int a);};
1969 struct s2 {int (*f) (double a);};
1970 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1971 int, int);'
1972
1973 # Test code for whether the C compiler supports C89 (body of main).
1974 ac_c_conftest_c89_main='
1975 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1976 '
1977
1978 # Test code for whether the C compiler supports C99 (global declarations)
1979 ac_c_conftest_c99_globals='
1980 /* Does the compiler advertise C99 conformance? */
1981 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1982 # error "Compiler does not advertise C99 conformance"
1983 #endif
1984
1985 // See if C++-style comments work.
1986
1987 #include <stdbool.h>
1988 extern int puts (const char *);
1989 extern int printf (const char *, ...);
1990 extern int dprintf (int, const char *, ...);
1991 extern void *malloc (size_t);
1992 extern void free (void *);
1993
1994 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1995 // dprintf is used instead of fprintf to avoid needing to declare
1996 // FILE and stderr.
1997 #define debug(...) dprintf (2, __VA_ARGS__)
1998 #define showlist(...) puts (#__VA_ARGS__)
1999 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2000 static void
2001 test_varargs_macros (void)
2002 {
2003 int x = 1234;
2004 int y = 5678;
2005 debug ("Flag");
2006 debug ("X = %d\n", x);
2007 showlist (The first, second, and third items.);
2008 report (x>y, "x is %d but y is %d", x, y);
2009 }
2010
2011 // Check long long types.
2012 #define BIG64 18446744073709551615ull
2013 #define BIG32 4294967295ul
2014 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2015 #if !BIG_OK
2016 #error "your preprocessor is broken"
2017 #endif
2018 #if BIG_OK
2019 #else
2020 #error "your preprocessor is broken"
2021 #endif
2022 static long long int bignum = -9223372036854775807LL;
2023 static unsigned long long int ubignum = BIG64;
2024
2025 struct incomplete_array
2026 {
2027 int datasize;
2028 double data[];
2029 };
2030
2031 struct named_init {
2032 int number;
2033 const wchar_t *name;
2034 double average;
2035 };
2036
2037 typedef const char *ccp;
2038
2039 static inline int
2040 test_restrict (ccp restrict text)
2041 {
2042 // Iterate through items via the restricted pointer.
2043 // Also check for declarations in for loops.
2044 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2045 continue;
2046 return 0;
2047 }
2048
2049 // Check varargs and va_copy.
2050 static bool
2051 test_varargs (const char *format, ...)
2052 {
2053 va_list args;
2054 va_start (args, format);
2055 va_list args_copy;
2056 va_copy (args_copy, args);
2057
2058 const char *str = "";
2059 int number = 0;
2060 float fnumber = 0;
2061
2062 while (*format)
2063 {
2064 switch (*format++)
2065 {
2066 case '\''s'\'': // string
2067 str = va_arg (args_copy, const char *);
2068 break;
2069 case '\''d'\'': // int
2070 number = va_arg (args_copy, int);
2071 break;
2072 case '\''f'\'': // float
2073 fnumber = va_arg (args_copy, double);
2074 break;
2075 default:
2076 break;
2077 }
2078 }
2079 va_end (args_copy);
2080 va_end (args);
2081
2082 return *str && number && fnumber;
2083 }
2084 '
2085
2086 # Test code for whether the C compiler supports C99 (body of main).
2087 ac_c_conftest_c99_main='
2088 // Check bool.
2089 _Bool success = false;
2090 success |= (argc != 0);
2091
2092 // Check restrict.
2093 if (test_restrict ("String literal") == 0)
2094 success = true;
2095 char *restrict newvar = "Another string";
2096
2097 // Check varargs.
2098 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2099 test_varargs_macros ();
2100
2101 // Check flexible array members.
2102 struct incomplete_array *ia =
2103 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2104 ia->datasize = 10;
2105 for (int i = 0; i < ia->datasize; ++i)
2106 ia->data[i] = i * 1.234;
2107 // Work around memory leak warnings.
2108 free (ia);
2109
2110 // Check named initializers.
2111 struct named_init ni = {
2112 .number = 34,
2113 .name = L"Test wide string",
2114 .average = 543.34343,
2115 };
2116
2117 ni.number = 58;
2118
2119 int dynamic_array[ni.number];
2120 dynamic_array[0] = argv[0][0];
2121 dynamic_array[ni.number - 1] = 543;
2122
2123 // work around unused variable warnings
2124 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2125 || dynamic_array[ni.number - 1] != 543);
2126 '
2127
2128 # Test code for whether the C compiler supports C11 (global declarations)
2129 ac_c_conftest_c11_globals='
2130 /* Does the compiler advertise C11 conformance? */
2131 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2132 # error "Compiler does not advertise C11 conformance"
2133 #endif
2134
2135 // Check _Alignas.
2136 char _Alignas (double) aligned_as_double;
2137 char _Alignas (0) no_special_alignment;
2138 extern char aligned_as_int;
2139 char _Alignas (0) _Alignas (int) aligned_as_int;
2140
2141 // Check _Alignof.
2142 enum
2143 {
2144 int_alignment = _Alignof (int),
2145 int_array_alignment = _Alignof (int[100]),
2146 char_alignment = _Alignof (char)
2147 };
2148 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2149
2150 // Check _Noreturn.
2151 int _Noreturn does_not_return (void) { for (;;) continue; }
2152
2153 // Check _Static_assert.
2154 struct test_static_assert
2155 {
2156 int x;
2157 _Static_assert (sizeof (int) <= sizeof (long int),
2158 "_Static_assert does not work in struct");
2159 long int y;
2160 };
2161
2162 // Check UTF-8 literals.
2163 #define u8 syntax error!
2164 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2165
2166 // Check duplicate typedefs.
2167 typedef long *long_ptr;
2168 typedef long int *long_ptr;
2169 typedef long_ptr long_ptr;
2170
2171 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2172 struct anonymous
2173 {
2174 union {
2175 struct { int i; int j; };
2176 struct { int k; long int l; } w;
2177 };
2178 int m;
2179 } v1;
2180 '
2181
2182 # Test code for whether the C compiler supports C11 (body of main).
2183 ac_c_conftest_c11_main='
2184 _Static_assert ((offsetof (struct anonymous, i)
2185 == offsetof (struct anonymous, w.k)),
2186 "Anonymous union alignment botch");
2187 v1.i = 2;
2188 v1.w.k = 5;
2189 ok |= v1.i != 5;
2190 '
2191
2192 # Test code for whether the C compiler supports C11 (complete).
2193 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2194 ${ac_c_conftest_c99_globals}
2195 ${ac_c_conftest_c11_globals}
2196
2197 int
2198 main (int argc, char **argv)
2199 {
2200 int ok = 0;
2201 ${ac_c_conftest_c89_main}
2202 ${ac_c_conftest_c99_main}
2203 ${ac_c_conftest_c11_main}
2204 return ok;
2205 }
2206 "
2207
2208 # Test code for whether the C compiler supports C99 (complete).
2209 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2210 ${ac_c_conftest_c99_globals}
2211
2212 int
2213 main (int argc, char **argv)
2214 {
2215 int ok = 0;
2216 ${ac_c_conftest_c89_main}
2217 ${ac_c_conftest_c99_main}
2218 return ok;
2219 }
2220 "
2221
2222 # Test code for whether the C compiler supports C89 (complete).
2223 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2224
2225 int
2226 main (int argc, char **argv)
2227 {
2228 int ok = 0;
2229 ${ac_c_conftest_c89_main}
2230 return ok;
2231 }
2232 "
2233
2234 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2235 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2236 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2237 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2238 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2239 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2240 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2241 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2242 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2243 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2244
2245 # Auxiliary files required by this configure script.
2246 ac_aux_files="compile missing install-sh"
2247
2248 # Locations in which to look for auxiliary files.
2249 ac_aux_dir_candidates="${srcdir}/../../../../build-aux"
2250
2251 # Search for a directory containing all of the required auxiliary files,
2252 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2253 # If we don't find one directory that contains all the files we need,
2254 # we report the set of missing files from the *first* directory in
2255 # $ac_aux_dir_candidates and give up.
2256 ac_missing_aux_files=""
2257 ac_first_candidate=:
2258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 as_found=false
2261 for as_dir in $ac_aux_dir_candidates
2262 do
2263 IFS=$as_save_IFS
2264 case $as_dir in #(((
2265 '') as_dir=./ ;;
2266 */) ;;
2267 *) as_dir=$as_dir/ ;;
2268 esac
2269 as_found=:
2270
2271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2272 ac_aux_dir_found=yes
2273 ac_install_sh=
2274 for ac_aux in $ac_aux_files
2275 do
2276 # As a special case, if "install-sh" is required, that requirement
2277 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2278 # and $ac_install_sh is set appropriately for whichever one is found.
2279 if test x"$ac_aux" = x"install-sh"
2280 then
2281 if test -f "${as_dir}install-sh"; then
2282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2283 ac_install_sh="${as_dir}install-sh -c"
2284 elif test -f "${as_dir}install.sh"; then
2285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2286 ac_install_sh="${as_dir}install.sh -c"
2287 elif test -f "${as_dir}shtool"; then
2288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2289 ac_install_sh="${as_dir}shtool install -c"
2290 else
2291 ac_aux_dir_found=no
2292 if $ac_first_candidate; then
2293 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2294 else
2295 break
2296 fi
2297 fi
2298 else
2299 if test -f "${as_dir}${ac_aux}"; then
2300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2301 else
2302 ac_aux_dir_found=no
2303 if $ac_first_candidate; then
2304 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2305 else
2306 break
2307 fi
2308 fi
2309 fi
2310 done
2311 if test "$ac_aux_dir_found" = yes; then
2312 ac_aux_dir="$as_dir"
2313 break
2314 fi
2315 ac_first_candidate=false
2316
2317 as_found=false
2318 done
2319 IFS=$as_save_IFS
2320 if $as_found
2321 then :
2322
2323 else case e in #(
2324 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2325 esac
2326 fi
2327
2328
2329 # These three variables are undocumented and unsupported,
2330 # and are intended to be withdrawn in a future Autoconf release.
2331 # They can cause serious problems if a builder's source tree is in a directory
2332 # whose full name contains unusual characters.
2333 if test -f "${ac_aux_dir}config.guess"; then
2334 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2335 fi
2336 if test -f "${ac_aux_dir}config.sub"; then
2337 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2338 fi
2339 if test -f "$ac_aux_dir/configure"; then
2340 ac_configure="$SHELL ${ac_aux_dir}configure"
2341 fi
2342
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2352 set,)
2353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2354 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2356 ,set)
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2358 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,);;
2361 *)
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2368 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2370 else
2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2372 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2374 fi
2375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2376 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2378 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2379 fi;;
2380 esac
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2383 case $ac_new_val in
2384 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2386 esac
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 esac
2391 fi
2392 done
2393 if $ac_cache_corrupted; then
2394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2395 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2399 and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
2413
2414
2415
2416
2417 am__api_version='1.18'
2418
2419
2420
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2427 # AIX /bin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 printf %s "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if test ${ac_cv_path_install+y}
2439 then :
2440 printf %s "(cached) " >&6
2441 else case e in #(
2442 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 case $as_dir in #(((
2447 '') as_dir=./ ;;
2448 */) ;;
2449 *) as_dir=$as_dir/ ;;
2450 esac
2451 # Account for fact that we put trailing slashes in our PATH walk.
2452 case $as_dir in #((
2453 ./ | /[cC]/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2456 /usr/ucb/* ) ;;
2457 *)
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2460 # by default.
2461 for ac_prog in ginstall scoinst install; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2464 if test $ac_prog = install &&
2465 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # AIX install. It has an incompatible calling convention.
2467 :
2468 elif test $ac_prog = install &&
2469 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # program-specific install script used by HP pwplus--don't use.
2471 :
2472 else
2473 rm -rf conftest.one conftest.two conftest.dir
2474 echo one > conftest.one
2475 echo two > conftest.two
2476 mkdir conftest.dir
2477 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2478 test -s conftest.one && test -s conftest.two &&
2479 test -s conftest.dir/conftest.one &&
2480 test -s conftest.dir/conftest.two
2481 then
2482 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2483 break 3
2484 fi
2485 fi
2486 fi
2487 done
2488 done
2489 ;;
2490 esac
2491
2492 done
2493 IFS=$as_save_IFS
2494
2495 rm -rf conftest.one conftest.two conftest.dir
2496 ;;
2497 esac
2498 fi
2499 if test ${ac_cv_path_install+y}; then
2500 INSTALL=$ac_cv_path_install
2501 else
2502 # As a last resort, use the slow shell script. Don't cache a
2503 # value for INSTALL within a source directory, because that will
2504 # break other packages using the cache if that directory is
2505 # removed, or if the value is a relative name.
2506 INSTALL=$ac_install_sh
2507 fi
2508 fi
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2510 printf "%s\n" "$INSTALL" >&6; }
2511
2512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2513 # It thinks the first close brace ends the variable substitution.
2514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515
2516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517
2518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2521 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2522 if test ${am_cv_sleep_fractional_seconds+y}
2523 then :
2524 printf %s "(cached) " >&6
2525 else case e in #(
2526 e) if sleep 0.001 2>/dev/null
2527 then :
2528 am_cv_sleep_fractional_seconds=yes
2529 else case e in #(
2530 e) am_cv_sleep_fractional_seconds=no ;;
2531 esac
2532 fi
2533 ;;
2534 esac
2535 fi
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2537 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2538
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2540 printf %s "checking filesystem timestamp resolution... " >&6; }
2541 if test ${am_cv_filesystem_timestamp_resolution+y}
2542 then :
2543 printf %s "(cached) " >&6
2544 else case e in #(
2545 e) # Default to the worst case.
2546 am_cv_filesystem_timestamp_resolution=2
2547
2548 # Only try to go finer than 1 sec if sleep can do it.
2549 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2550 # - 1 sec is not much of a win compared to 2 sec, and
2551 # - it takes 2 seconds to perform the test whether 1 sec works.
2552 #
2553 # Instead, just use the default 2s on platforms that have 1s resolution,
2554 # accept the extra 1s delay when using $sleep in the Automake tests, in
2555 # exchange for not incurring the 2s delay for running the test for all
2556 # packages.
2557 #
2558 am_try_resolutions=
2559 if test "$am_cv_sleep_fractional_seconds" = yes; then
2560 # Even a millisecond often causes a bunch of false positives,
2561 # so just try a hundredth of a second. The time saved between .001 and
2562 # .01 is not terribly consequential.
2563 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2564 fi
2565
2566 # In order to catch current-generation FAT out, we must *modify* files
2567 # that already exist; the *creation* timestamp is finer. Use names
2568 # that make ls -t sort them differently when they have equal
2569 # timestamps than when they have distinct timestamps, keeping
2570 # in mind that ls -t prints the *newest* file first.
2571 rm -f conftest.ts?
2572 : > conftest.ts1
2573 : > conftest.ts2
2574 : > conftest.ts3
2575
2576 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2577 # clobber the current shell's arguments. (Outer-level square brackets
2578 # are removed by m4; they're present so that m4 does not expand
2579 # <dollar><star>; be careful, easy to get confused.)
2580 if (
2581 set X `ls -t conftest.ts[12]` &&
2582 {
2583 test "$*" != "X conftest.ts1 conftest.ts2" ||
2584 test "$*" != "X conftest.ts2 conftest.ts1";
2585 }
2586 ); then :; else
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
2591 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2593 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2594 as_fn_error $? "ls -t produces unexpected output.
2595 Make sure there is not a broken ls alias in your environment.
2596 See 'config.log' for more details" "$LINENO" 5; }
2597 fi
2598
2599 for am_try_res in $am_try_resolutions; do
2600 # Any one fine-grained sleep might happen to cross the boundary
2601 # between two values of a coarser actual resolution, but if we do
2602 # two fine-grained sleeps in a row, at least one of them will fall
2603 # entirely within a coarse interval.
2604 echo alpha > conftest.ts1
2605 sleep $am_try_res
2606 echo beta > conftest.ts2
2607 sleep $am_try_res
2608 echo gamma > conftest.ts3
2609
2610 # We assume that 'ls -t' will make use of high-resolution
2611 # timestamps if the operating system supports them at all.
2612 if (set X `ls -t conftest.ts?` &&
2613 test "$2" = conftest.ts3 &&
2614 test "$3" = conftest.ts2 &&
2615 test "$4" = conftest.ts1); then
2616 #
2617 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2618 # because we don't need to test make.
2619 make_ok=true
2620 if test $am_try_res != 1; then
2621 # But if we've succeeded so far with a subsecond resolution, we
2622 # have one more thing to check: make. It can happen that
2623 # everything else supports the subsecond mtimes, but make doesn't;
2624 # notably on macOS, which ships make 3.81 from 2006 (the last one
2625 # released under GPLv2). https://bugs.gnu.org/68808
2626 #
2627 # We test $MAKE if it is defined in the environment, else "make".
2628 # It might get overridden later, but our hope is that in practice
2629 # it does not matter: it is the system "make" which is (by far)
2630 # the most likely to be broken, whereas if the user overrides it,
2631 # probably they did so with a better, or at least not worse, make.
2632 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2633 #
2634 # Create a Makefile (real tab character here):
2635 rm -f conftest.mk
2636 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2637 echo ' touch conftest.ts2' >>conftest.mk
2638 #
2639 # Now, running
2640 # touch conftest.ts1; touch conftest.ts2; make
2641 # should touch ts1 because ts2 is newer. This could happen by luck,
2642 # but most often, it will fail if make's support is insufficient. So
2643 # test for several consecutive successes.
2644 #
2645 # (We reuse conftest.ts[12] because we still want to modify existing
2646 # files, not create new ones, per above.)
2647 n=0
2648 make=${MAKE-make}
2649 until test $n -eq 3; do
2650 echo one > conftest.ts1
2651 sleep $am_try_res
2652 echo two > conftest.ts2 # ts2 should now be newer than ts1
2653 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2654 make_ok=false
2655 break # out of $n loop
2656 fi
2657 n=`expr $n + 1`
2658 done
2659 fi
2660 #
2661 if $make_ok; then
2662 # Everything we know to check worked out, so call this resolution good.
2663 am_cv_filesystem_timestamp_resolution=$am_try_res
2664 break # out of $am_try_res loop
2665 fi
2666 # Otherwise, we'll go on to check the next resolution.
2667 fi
2668 done
2669 rm -f conftest.ts?
2670 # (end _am_filesystem_timestamp_resolution)
2671 ;;
2672 esac
2673 fi
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2675 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2676
2677 # This check should not be cached, as it may vary across builds of
2678 # different projects.
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2680 printf %s "checking whether build environment is sane... " >&6; }
2681 # Reject unsafe characters in $srcdir or the absolute working directory
2682 # name. Accept space and tab only in the latter.
2683 am_lf='
2684 '
2685 case `pwd` in
2686 *[\\\"\#\$\&\'\`$am_lf]*)
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 printf "%s\n" "no" >&6; }
2689 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2690 esac
2691 case $srcdir in
2692 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 printf "%s\n" "no" >&6; }
2695 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2696 esac
2697
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments. Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2702 # directory).
2703 am_build_env_is_sane=no
2704 am_has_slept=no
2705 rm -f conftest.file
2706 for am_try in 1 2; do
2707 echo "timestamp, slept: $am_has_slept" > conftest.file
2708 if (
2709 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2710 if test "$*" = "X"; then
2711 # -L didn't work.
2712 set X `ls -t "$srcdir/configure" conftest.file`
2713 fi
2714 test "$2" = conftest.file
2715 ); then
2716 am_build_env_is_sane=yes
2717 break
2718 fi
2719 # Just in case.
2720 sleep "$am_cv_filesystem_timestamp_resolution"
2721 am_has_slept=yes
2722 done
2723
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2725 printf "%s\n" "$am_build_env_is_sane" >&6; }
2726 if test "$am_build_env_is_sane" = no; then
2727 as_fn_error $? "newly created file is older than distributed files!
2728 Check your system clock" "$LINENO" 5
2729 fi
2730
2731 # If we didn't sleep, we still need to ensure time stamps of config.status and
2732 # generated files are strictly newer.
2733 am_sleep_pid=
2734 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2735 then :
2736
2737 else case e in #(
2738 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2739 am_sleep_pid=$!
2740 ;;
2741 esac
2742 fi
2743
2744 rm -f conftest.file
2745
2746 test "$program_prefix" != NONE &&
2747 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2748 # Use a double $ so make ignores it.
2749 test "$program_suffix" != NONE &&
2750 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2751 # Double any \ or $.
2752 # By default was 's,x,x', remove it if useless.
2753 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2754 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2755
2756
2757 # Expand $ac_aux_dir to an absolute path.
2758 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2759
2760
2761 if test x"${MISSING+set}" != xset; then
2762 MISSING="\${SHELL} '$am_aux_dir/missing'"
2763 fi
2764 # Use eval to expand $SHELL
2765 if eval "$MISSING --is-lightweight"; then
2766 am_missing_run="$MISSING "
2767 else
2768 am_missing_run=
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2770 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2771 fi
2772
2773 if test x"${install_sh+set}" != xset; then
2774 case $am_aux_dir in
2775 *\ * | *\ *)
2776 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2777 *)
2778 install_sh="\${SHELL} $am_aux_dir/install-sh"
2779 esac
2780 fi
2781
2782 # Installed binaries are usually stripped using 'strip' when the user
2783 # run "make install-strip". However 'strip' might not be the right
2784 # tool to use in cross-compilation environments, therefore Automake
2785 # will honor the 'STRIP' environment variable to overrule this program.
2786 if test "$cross_compiling" != no; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}strip; ac_word=$2
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 printf %s "checking for $ac_word... " >&6; }
2792 if test ${ac_cv_prog_STRIP+y}
2793 then :
2794 printf %s "(cached) " >&6
2795 else case e in #(
2796 e) if test -n "$STRIP"; then
2797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 case $as_dir in #(((
2804 '') as_dir=./ ;;
2805 */) ;;
2806 *) as_dir=$as_dir/ ;;
2807 esac
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi ;;
2819 esac
2820 fi
2821 STRIP=$ac_cv_prog_STRIP
2822 if test -n "$STRIP"; then
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824 printf "%s\n" "$STRIP" >&6; }
2825 else
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 printf "%s\n" "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$ac_cv_prog_STRIP"; then
2833 ac_ct_STRIP=$STRIP
2834 # Extract the first word of "strip", so it can be a program name with args.
2835 set dummy strip; ac_word=$2
2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 printf %s "checking for $ac_word... " >&6; }
2838 if test ${ac_cv_prog_ac_ct_STRIP+y}
2839 then :
2840 printf %s "(cached) " >&6
2841 else case e in #(
2842 e) if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 case $as_dir in #(((
2850 '') as_dir=./ ;;
2851 */) ;;
2852 *) as_dir=$as_dir/ ;;
2853 esac
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_STRIP="strip"
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi ;;
2865 esac
2866 fi
2867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2868 if test -n "$ac_ct_STRIP"; then
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2870 printf "%s\n" "$ac_ct_STRIP" >&6; }
2871 else
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 printf "%s\n" "no" >&6; }
2874 fi
2875
2876 if test "x$ac_ct_STRIP" = x; then
2877 STRIP=":"
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885 STRIP=$ac_ct_STRIP
2886 fi
2887 else
2888 STRIP="$ac_cv_prog_STRIP"
2889 fi
2890
2891 fi
2892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2893
2894
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2896 printf %s "checking for a race-free mkdir -p... " >&6; }
2897 if test -z "$MKDIR_P"; then
2898 if test ${ac_cv_path_mkdir+y}
2899 then :
2900 printf %s "(cached) " >&6
2901 else case e in #(
2902 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904 do
2905 IFS=$as_save_IFS
2906 case $as_dir in #(((
2907 '') as_dir=./ ;;
2908 */) ;;
2909 *) as_dir=$as_dir/ ;;
2910 esac
2911 for ac_prog in mkdir gmkdir; do
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2914 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2915 'mkdir ('*'coreutils) '* | \
2916 *'BusyBox '* | \
2917 'mkdir (fileutils) '4.1*)
2918 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2919 break 3;;
2920 esac
2921 done
2922 done
2923 done
2924 IFS=$as_save_IFS
2925 ;;
2926 esac
2927 fi
2928
2929 test -d ./--version && rmdir ./--version
2930 if test ${ac_cv_path_mkdir+y}; then
2931 MKDIR_P="$ac_cv_path_mkdir -p"
2932 else
2933 # As a last resort, use plain mkdir -p,
2934 # in the hope it doesn't have the bugs of ancient mkdir.
2935 MKDIR_P='mkdir -p'
2936 fi
2937 fi
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2939 printf "%s\n" "$MKDIR_P" >&6; }
2940
2941 for ac_prog in gawk mawk nawk awk
2942 do
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 printf %s "checking for $ac_word... " >&6; }
2947 if test ${ac_cv_prog_AWK+y}
2948 then :
2949 printf %s "(cached) " >&6
2950 else case e in #(
2951 e) if test -n "$AWK"; then
2952 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 case $as_dir in #(((
2959 '') as_dir=./ ;;
2960 */) ;;
2961 *) as_dir=$as_dir/ ;;
2962 esac
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_AWK="$ac_prog"
2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi ;;
2974 esac
2975 fi
2976 AWK=$ac_cv_prog_AWK
2977 if test -n "$AWK"; then
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2979 printf "%s\n" "$AWK" >&6; }
2980 else
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 printf "%s\n" "no" >&6; }
2983 fi
2984
2985
2986 test -n "$AWK" && break
2987 done
2988
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2991 set x ${MAKE-make}
2992 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2994 then :
2995 printf %s "(cached) " >&6
2996 else case e in #(
2997 e) cat >conftest.make <<\_ACEOF
2998 SHELL = /bin/sh
2999 all:
3000 @echo '@@@%%%=$(MAKE)=@@@%%%'
3001 _ACEOF
3002 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004 *@@@%%%=?*=@@@%%%*)
3005 eval ac_cv_prog_make_${ac_make}_set=yes;;
3006 *)
3007 eval ac_cv_prog_make_${ac_make}_set=no;;
3008 esac
3009 rm -f conftest.make ;;
3010 esac
3011 fi
3012 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 printf "%s\n" "yes" >&6; }
3015 SET_MAKE=
3016 else
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 printf "%s\n" "no" >&6; }
3019 SET_MAKE="MAKE=${MAKE-make}"
3020 fi
3021
3022 rm -rf .tst 2>/dev/null
3023 mkdir .tst 2>/dev/null
3024 if test -d .tst; then
3025 am__leading_dot=.
3026 else
3027 am__leading_dot=_
3028 fi
3029 rmdir .tst 2>/dev/null
3030
3031 AM_DEFAULT_VERBOSITY=1
3032 # Check whether --enable-silent-rules was given.
3033 if test ${enable_silent_rules+y}
3034 then :
3035 enableval=$enable_silent_rules;
3036 fi
3037
3038 am_make=${MAKE-make}
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3040 printf %s "checking whether $am_make supports nested variables... " >&6; }
3041 if test ${am_cv_make_support_nested_variables+y}
3042 then :
3043 printf %s "(cached) " >&6
3044 else case e in #(
3045 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3046 BAR0=false
3047 BAR1=true
3048 V=1
3049 am__doit:
3050 @$(TRUE)
3051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052 am_cv_make_support_nested_variables=yes
3053 else
3054 am_cv_make_support_nested_variables=no
3055 fi ;;
3056 esac
3057 fi
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3059 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3060 AM_BACKSLASH='\'
3061
3062 am__rm_f_notfound=
3063 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3064 then :
3065
3066 else case e in #(
3067 e) am__rm_f_notfound='""' ;;
3068 esac
3069 fi
3070
3071
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3073 printf %s "checking xargs -n works... " >&6; }
3074 if test ${am_cv_xargs_n_works+y}
3075 then :
3076 printf %s "(cached) " >&6
3077 else case e in #(
3078 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3079 3"
3080 then :
3081 am_cv_xargs_n_works=yes
3082 else case e in #(
3083 e) am_cv_xargs_n_works=no ;;
3084 esac
3085 fi ;;
3086 esac
3087 fi
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3089 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3090 if test "$am_cv_xargs_n_works" = yes
3091 then :
3092 am__xargs_n='xargs -n'
3093 else case e in #(
3094 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3095 ;;
3096 esac
3097 fi
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108 DEPDIR="${am__leading_dot}deps"
3109
3110 ac_config_commands="$ac_config_commands depfiles"
3111
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3113 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3114 cat > confinc.mk << 'END'
3115 am__doit:
3116 @echo this is the am__doit target >confinc.out
3117 .PHONY: am__doit
3118 END
3119 am__include="#"
3120 am__quote=
3121 # BSD make does it like this.
3122 echo '.include "confinc.mk" # ignored' > confmf.BSD
3123 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3124 echo 'include confinc.mk # ignored' > confmf.GNU
3125 _am_result=no
3126 for s in GNU BSD; do
3127 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3128 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }
3132 case $?:`cat confinc.out 2>/dev/null` in #(
3133 '0:this is the am__doit target') :
3134 case $s in #(
3135 BSD) :
3136 am__include='.include' am__quote='"' ;; #(
3137 *) :
3138 am__include='include' am__quote='' ;;
3139 esac ;; #(
3140 *) :
3141 ;;
3142 esac
3143 if test "$am__include" != "#"; then
3144 _am_result="yes ($s style)"
3145 break
3146 fi
3147 done
3148 rm -f confinc.* confmf.*
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3150 printf "%s\n" "${_am_result}" >&6; }
3151
3152 # Check whether --enable-dependency-tracking was given.
3153 if test ${enable_dependency_tracking+y}
3154 then :
3155 enableval=$enable_dependency_tracking;
3156 fi
3157
3158 if test "x$enable_dependency_tracking" != xno; then
3159 am_depcomp="$ac_aux_dir/depcomp"
3160 AMDEPBACKSLASH='\'
3161 am__nodep='_no'
3162 fi
3163 if test "x$enable_dependency_tracking" != xno; then
3164 AMDEP_TRUE=
3165 AMDEP_FALSE='#'
3166 else
3167 AMDEP_TRUE='#'
3168 AMDEP_FALSE=
3169 fi
3170
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 printf %s "checking for $ac_word... " >&6; }
3182 if test ${ac_cv_prog_CC+y}
3183 then :
3184 printf %s "(cached) " >&6
3185 else case e in #(
3186 e) if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 case $as_dir in #(((
3194 '') as_dir=./ ;;
3195 */) ;;
3196 *) as_dir=$as_dir/ ;;
3197 esac
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi ;;
3209 esac
3210 fi
3211 CC=$ac_cv_prog_CC
3212 if test -n "$CC"; then
3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 printf "%s\n" "$CC" >&6; }
3215 else
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 printf "%s\n" "no" >&6; }
3218 fi
3219
3220
3221 fi
3222 if test -z "$ac_cv_prog_CC"; then
3223 ac_ct_CC=$CC
3224 # Extract the first word of "gcc", so it can be a program name with args.
3225 set dummy gcc; ac_word=$2
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 printf %s "checking for $ac_word... " >&6; }
3228 if test ${ac_cv_prog_ac_ct_CC+y}
3229 then :
3230 printf %s "(cached) " >&6
3231 else case e in #(
3232 e) if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 case $as_dir in #(((
3240 '') as_dir=./ ;;
3241 */) ;;
3242 *) as_dir=$as_dir/ ;;
3243 esac
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_ac_ct_CC="gcc"
3247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi ;;
3255 esac
3256 fi
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260 printf "%s\n" "$ac_ct_CC" >&6; }
3261 else
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 printf "%s\n" "no" >&6; }
3264 fi
3265
3266 if test "x$ac_ct_CC" = x; then
3267 CC=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275 CC=$ac_ct_CC
3276 fi
3277 else
3278 CC="$ac_cv_prog_CC"
3279 fi
3280
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 printf %s "checking for $ac_word... " >&6; }
3287 if test ${ac_cv_prog_CC+y}
3288 then :
3289 printf %s "(cached) " >&6
3290 else case e in #(
3291 e) if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 case $as_dir in #(((
3299 '') as_dir=./ ;;
3300 */) ;;
3301 *) as_dir=$as_dir/ ;;
3302 esac
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="${ac_tool_prefix}cc"
3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 fi ;;
3314 esac
3315 fi
3316 CC=$ac_cv_prog_CC
3317 if test -n "$CC"; then
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 printf "%s\n" "$CC" >&6; }
3320 else
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 printf "%s\n" "no" >&6; }
3323 fi
3324
3325
3326 fi
3327 fi
3328 if test -z "$CC"; then
3329 # Extract the first word of "cc", so it can be a program name with args.
3330 set dummy cc; ac_word=$2
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 printf %s "checking for $ac_word... " >&6; }
3333 if test ${ac_cv_prog_CC+y}
3334 then :
3335 printf %s "(cached) " >&6
3336 else case e in #(
3337 e) if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 ac_prog_rejected=no
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 case $as_dir in #(((
3346 '') as_dir=./ ;;
3347 */) ;;
3348 *) as_dir=$as_dir/ ;;
3349 esac
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3352 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected=yes
3354 continue
3355 fi
3356 ac_cv_prog_CC="cc"
3357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy $ac_cv_prog_CC
3367 shift
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3372 shift
3373 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3374 fi
3375 fi
3376 fi ;;
3377 esac
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 printf "%s\n" "$CC" >&6; }
3383 else
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 printf "%s\n" "no" >&6; }
3386 fi
3387
3388
3389 fi
3390 if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 for ac_prog in cl.exe
3393 do
3394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 printf %s "checking for $ac_word... " >&6; }
3398 if test ${ac_cv_prog_CC+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else case e in #(
3402 e) if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 case $as_dir in #(((
3410 '') as_dir=./ ;;
3411 */) ;;
3412 *) as_dir=$as_dir/ ;;
3413 esac
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi ;;
3425 esac
3426 fi
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 printf "%s\n" "$CC" >&6; }
3431 else
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 printf "%s\n" "no" >&6; }
3434 fi
3435
3436
3437 test -n "$CC" && break
3438 done
3439 fi
3440 if test -z "$CC"; then
3441 ac_ct_CC=$CC
3442 for ac_prog in cl.exe
3443 do
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 printf %s "checking for $ac_word... " >&6; }
3448 if test ${ac_cv_prog_ac_ct_CC+y}
3449 then :
3450 printf %s "(cached) " >&6
3451 else case e in #(
3452 e) if test -n "$ac_ct_CC"; then
3453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458 IFS=$as_save_IFS
3459 case $as_dir in #(((
3460 '') as_dir=./ ;;
3461 */) ;;
3462 *) as_dir=$as_dir/ ;;
3463 esac
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_ac_ct_CC="$ac_prog"
3467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi ;;
3475 esac
3476 fi
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 printf "%s\n" "$ac_ct_CC" >&6; }
3481 else
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 printf "%s\n" "no" >&6; }
3484 fi
3485
3486
3487 test -n "$ac_ct_CC" && break
3488 done
3489
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 CC=$ac_ct_CC
3500 fi
3501 fi
3502
3503 fi
3504 if test -z "$CC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}clang; ac_word=$2
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 printf %s "checking for $ac_word... " >&6; }
3510 if test ${ac_cv_prog_CC+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else case e in #(
3514 e) if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520 IFS=$as_save_IFS
3521 case $as_dir in #(((
3522 '') as_dir=./ ;;
3523 */) ;;
3524 *) as_dir=$as_dir/ ;;
3525 esac
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_CC="${ac_tool_prefix}clang"
3529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 fi ;;
3537 esac
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 printf "%s\n" "$CC" >&6; }
3543 else
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 printf "%s\n" "no" >&6; }
3546 fi
3547
3548
3549 fi
3550 if test -z "$ac_cv_prog_CC"; then
3551 ac_ct_CC=$CC
3552 # Extract the first word of "clang", so it can be a program name with args.
3553 set dummy clang; ac_word=$2
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 printf %s "checking for $ac_word... " >&6; }
3556 if test ${ac_cv_prog_ac_ct_CC+y}
3557 then :
3558 printf %s "(cached) " >&6
3559 else case e in #(
3560 e) if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566 IFS=$as_save_IFS
3567 case $as_dir in #(((
3568 '') as_dir=./ ;;
3569 */) ;;
3570 *) as_dir=$as_dir/ ;;
3571 esac
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_ac_ct_CC="clang"
3575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578 done
3579 done
3580 IFS=$as_save_IFS
3581
3582 fi ;;
3583 esac
3584 fi
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 printf "%s\n" "$ac_ct_CC" >&6; }
3589 else
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 printf "%s\n" "no" >&6; }
3592 fi
3593
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3604 fi
3605 else
3606 CC="$ac_cv_prog_CC"
3607 fi
3608
3609 fi
3610
3611
3612 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3613 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3614 as_fn_error $? "no acceptable C compiler found in \$PATH
3615 See 'config.log' for more details" "$LINENO" 5; }
3616
3617 # Provide some information about the compiler.
3618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion -version; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 printf "%s\n" "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630 ac_status=$?
3631 if test -s conftest.err; then
3632 sed '10a\
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3636 fi
3637 rm -f conftest.er1 conftest.err
3638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3640 done
3641
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main (void)
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3657 # of exeext.
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 printf %s "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3667 do
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671 esac
3672 done
3673 rm -f $ac_rmfiles
3674
3675 if { { ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 printf "%s\n" "$ac_try_echo"; } >&5
3682 (eval "$ac_link_default") 2>&5
3683 ac_status=$?
3684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }
3686 then :
3687 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3688 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3689 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3690 # so that the user can short-circuit this test for compilers unknown to
3691 # Autoconf.
3692 for ac_file in $ac_files ''
3693 do
3694 test -f "$ac_file" || continue
3695 case $ac_file in
3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3697 ;;
3698 [ab].out )
3699 # We found the default executable, but exeext='' is most
3700 # certainly right.
3701 break;;
3702 *.* )
3703 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3704 then :; else
3705 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 fi
3707 # We set ac_cv_exeext here because the later test for it is not
3708 # safe: cross compilers may not add the suffix if given an '-o'
3709 # argument, so we may need to know it at that point already.
3710 # Even if this section looks crufty: it has the advantage of
3711 # actually working.
3712 break;;
3713 * )
3714 break;;
3715 esac
3716 done
3717 test "$ac_cv_exeext" = no && ac_cv_exeext=
3718
3719 else case e in #(
3720 e) ac_file='' ;;
3721 esac
3722 fi
3723 if test -z "$ac_file"
3724 then :
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 printf "%s\n" "no" >&6; }
3727 printf "%s\n" "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3731 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3732 as_fn_error 77 "C compiler cannot create executables
3733 See 'config.log' for more details" "$LINENO" 5; }
3734 else case e in #(
3735 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3736 printf "%s\n" "yes" >&6; } ;;
3737 esac
3738 fi
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3740 printf %s "checking for C compiler default output file name... " >&6; }
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3742 printf "%s\n" "$ac_file" >&6; }
3743 ac_exeext=$ac_cv_exeext
3744
3745 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3746 ac_clean_files=$ac_clean_files_save
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3748 printf %s "checking for suffix of executables... " >&6; }
3749 if { { ac_try="$ac_link"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 printf "%s\n" "$ac_try_echo"; } >&5
3756 (eval "$ac_link") 2>&5
3757 ac_status=$?
3758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }
3760 then :
3761 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3762 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3763 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3764 # 'rm'.
3765 for ac_file in conftest.exe conftest conftest.*; do
3766 test -f "$ac_file" || continue
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770 break;;
3771 * ) break;;
3772 esac
3773 done
3774 else case e in #(
3775 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3776 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3777 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3778 See 'config.log' for more details" "$LINENO" 5; } ;;
3779 esac
3780 fi
3781 rm -f conftest conftest$ac_cv_exeext
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3783 printf "%s\n" "$ac_cv_exeext" >&6; }
3784
3785 rm -f conftest.$ac_ext
3786 EXEEXT=$ac_cv_exeext
3787 ac_exeext=$EXEEXT
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #include <stdio.h>
3791 int
3792 main (void)
3793 {
3794 FILE *f = fopen ("conftest.out", "w");
3795 if (!f)
3796 return 1;
3797 return ferror (f) || fclose (f) != 0;
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 ac_clean_files="$ac_clean_files conftest.out"
3804 # Check that the compiler produces executables we can run. If not, either
3805 # the compiler is broken, or we cross compile.
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3807 printf %s "checking whether we are cross compiling... " >&6; }
3808 if test "$cross_compiling" != yes; then
3809 { { ac_try="$ac_link"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 printf "%s\n" "$ac_try_echo"; } >&5
3816 (eval "$ac_link") 2>&5
3817 ac_status=$?
3818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }
3820 if { ac_try='./conftest$ac_cv_exeext'
3821 { { case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 printf "%s\n" "$ac_try_echo"; } >&5
3827 (eval "$ac_try") 2>&5
3828 ac_status=$?
3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; }; then
3831 cross_compiling=no
3832 else
3833 if test "$cross_compiling" = maybe; then
3834 cross_compiling=yes
3835 else
3836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3837 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3838 as_fn_error 77 "cannot run C compiled programs.
3839 If you meant to cross compile, use '--host'.
3840 See 'config.log' for more details" "$LINENO" 5; }
3841 fi
3842 fi
3843 fi
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845 printf "%s\n" "$cross_compiling" >&6; }
3846
3847 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3848 conftest.o conftest.obj conftest.out
3849 ac_clean_files=$ac_clean_files_save
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3851 printf %s "checking for suffix of object files... " >&6; }
3852 if test ${ac_cv_objext+y}
3853 then :
3854 printf %s "(cached) " >&6
3855 else case e in #(
3856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858
3859 int
3860 main (void)
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.o conftest.obj
3868 if { { ac_try="$ac_compile"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 printf "%s\n" "$ac_try_echo"; } >&5
3875 (eval "$ac_compile") 2>&5
3876 ac_status=$?
3877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }
3879 then :
3880 for ac_file in conftest.o conftest.obj conftest.*; do
3881 test -f "$ac_file" || continue;
3882 case $ac_file in
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3885 break;;
3886 esac
3887 done
3888 else case e in #(
3889 e) printf "%s\n" "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3893 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot compute suffix of object files: cannot compile
3895 See 'config.log' for more details" "$LINENO" 5; } ;;
3896 esac
3897 fi
3898 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3899 esac
3900 fi
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902 printf "%s\n" "$ac_cv_objext" >&6; }
3903 OBJEXT=$ac_cv_objext
3904 ac_objext=$OBJEXT
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3906 printf %s "checking whether the compiler supports GNU C... " >&6; }
3907 if test ${ac_cv_c_compiler_gnu+y}
3908 then :
3909 printf %s "(cached) " >&6
3910 else case e in #(
3911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 int
3915 main (void)
3916 {
3917 #ifndef __GNUC__
3918 choke me
3919 #endif
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"
3926 then :
3927 ac_compiler_gnu=yes
3928 else case e in #(
3929 e) ac_compiler_gnu=no ;;
3930 esac
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3934 ;;
3935 esac
3936 fi
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3938 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941 if test $ac_compiler_gnu = yes; then
3942 GCC=yes
3943 else
3944 GCC=
3945 fi
3946 ac_test_CFLAGS=${CFLAGS+y}
3947 ac_save_CFLAGS=$CFLAGS
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3949 printf %s "checking whether $CC accepts -g... " >&6; }
3950 if test ${ac_cv_prog_cc_g+y}
3951 then :
3952 printf %s "(cached) " >&6
3953 else case e in #(
3954 e) ac_save_c_werror_flag=$ac_c_werror_flag
3955 ac_c_werror_flag=yes
3956 ac_cv_prog_cc_g=no
3957 CFLAGS="-g"
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960
3961 int
3962 main (void)
3963 {
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"
3970 then :
3971 ac_cv_prog_cc_g=yes
3972 else case e in #(
3973 e) CFLAGS=""
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 int
3978 main (void)
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 if ac_fn_c_try_compile "$LINENO"
3986 then :
3987
3988 else case e in #(
3989 e) ac_c_werror_flag=$ac_save_c_werror_flag
3990 CFLAGS="-g"
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993
3994 int
3995 main (void)
3996 {
3997
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 if ac_fn_c_try_compile "$LINENO"
4003 then :
4004 ac_cv_prog_cc_g=yes
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4007 esac
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4010 esac
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4013 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4014 esac
4015 fi
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4017 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4018 if test $ac_test_CFLAGS; then
4019 CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021 if test "$GCC" = yes; then
4022 CFLAGS="-g -O2"
4023 else
4024 CFLAGS="-g"
4025 fi
4026 else
4027 if test "$GCC" = yes; then
4028 CFLAGS="-O2"
4029 else
4030 CFLAGS=
4031 fi
4032 fi
4033 ac_prog_cc_stdc=no
4034 if test x$ac_prog_cc_stdc = xno
4035 then :
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4037 printf %s "checking for $CC option to enable C11 features... " >&6; }
4038 if test ${ac_cv_prog_cc_c11+y}
4039 then :
4040 printf %s "(cached) " >&6
4041 else case e in #(
4042 e) ac_cv_prog_cc_c11=no
4043 ac_save_CC=$CC
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 $ac_c_conftest_c11_program
4047 _ACEOF
4048 for ac_arg in '' -std=gnu11
4049 do
4050 CC="$ac_save_CC $ac_arg"
4051 if ac_fn_c_try_compile "$LINENO"
4052 then :
4053 ac_cv_prog_cc_c11=$ac_arg
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.beam
4056 test "x$ac_cv_prog_cc_c11" != "xno" && break
4057 done
4058 rm -f conftest.$ac_ext
4059 CC=$ac_save_CC ;;
4060 esac
4061 fi
4062
4063 if test "x$ac_cv_prog_cc_c11" = xno
4064 then :
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4066 printf "%s\n" "unsupported" >&6; }
4067 else case e in #(
4068 e) if test "x$ac_cv_prog_cc_c11" = x
4069 then :
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4071 printf "%s\n" "none needed" >&6; }
4072 else case e in #(
4073 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4074 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4075 CC="$CC $ac_cv_prog_cc_c11" ;;
4076 esac
4077 fi
4078 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4079 ac_prog_cc_stdc=c11 ;;
4080 esac
4081 fi
4082 fi
4083 if test x$ac_prog_cc_stdc = xno
4084 then :
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4086 printf %s "checking for $CC option to enable C99 features... " >&6; }
4087 if test ${ac_cv_prog_cc_c99+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) ac_cv_prog_cc_c99=no
4092 ac_save_CC=$CC
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 $ac_c_conftest_c99_program
4096 _ACEOF
4097 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4098 do
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"
4101 then :
4102 ac_cv_prog_cc_c99=$ac_arg
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam
4105 test "x$ac_cv_prog_cc_c99" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC ;;
4109 esac
4110 fi
4111
4112 if test "x$ac_cv_prog_cc_c99" = xno
4113 then :
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4115 printf "%s\n" "unsupported" >&6; }
4116 else case e in #(
4117 e) if test "x$ac_cv_prog_cc_c99" = x
4118 then :
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4120 printf "%s\n" "none needed" >&6; }
4121 else case e in #(
4122 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4123 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4124 CC="$CC $ac_cv_prog_cc_c99" ;;
4125 esac
4126 fi
4127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4128 ac_prog_cc_stdc=c99 ;;
4129 esac
4130 fi
4131 fi
4132 if test x$ac_prog_cc_stdc = xno
4133 then :
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4135 printf %s "checking for $CC option to enable C89 features... " >&6; }
4136 if test ${ac_cv_prog_cc_c89+y}
4137 then :
4138 printf %s "(cached) " >&6
4139 else case e in #(
4140 e) ac_cv_prog_cc_c89=no
4141 ac_save_CC=$CC
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 $ac_c_conftest_c89_program
4145 _ACEOF
4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4147 do
4148 CC="$ac_save_CC $ac_arg"
4149 if ac_fn_c_try_compile "$LINENO"
4150 then :
4151 ac_cv_prog_cc_c89=$ac_arg
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.beam
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4155 done
4156 rm -f conftest.$ac_ext
4157 CC=$ac_save_CC ;;
4158 esac
4159 fi
4160
4161 if test "x$ac_cv_prog_cc_c89" = xno
4162 then :
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 printf "%s\n" "unsupported" >&6; }
4165 else case e in #(
4166 e) if test "x$ac_cv_prog_cc_c89" = x
4167 then :
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 printf "%s\n" "none needed" >&6; }
4170 else case e in #(
4171 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4172 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4173 CC="$CC $ac_cv_prog_cc_c89" ;;
4174 esac
4175 fi
4176 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4177 ac_prog_cc_stdc=c89 ;;
4178 esac
4179 fi
4180 fi
4181
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4195 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4196 if test ${am_cv_prog_cc_c_o+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else case e in #(
4200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main (void)
4205 {
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 # Make sure it works both with $CC and with simple cc.
4212 # Following AC_PROG_CC_C_O, we do the test twice because some
4213 # compilers refuse to overwrite an existing .o file with -o,
4214 # though they will create one.
4215 am_cv_prog_cc_c_o=yes
4216 for am_i in 1 2; do
4217 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4218 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } \
4222 && test -f conftest2.$ac_objext; then
4223 : OK
4224 else
4225 am_cv_prog_cc_c_o=no
4226 break
4227 fi
4228 done
4229 # aligned with autoconf, so not including core; see bug#72225.
4230 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4231 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4232 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4233 unset am_i ;;
4234 esac
4235 fi
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4237 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4238 if test "$am_cv_prog_cc_c_o" != yes; then
4239 # Losing compiler, so override with the script.
4240 # FIXME: It is wrong to rewrite CC.
4241 # But if we don't then we get into trouble of one sort or another.
4242 # A longer-term fix would be to have automake use am__CC in this case,
4243 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4244 CC="$am_aux_dir/compile $CC"
4245 fi
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252
4253 depcc="$CC" am_compiler_list=
4254
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4256 printf %s "checking dependency style of $depcc... " >&6; }
4257 if test ${am_cv_CC_dependencies_compiler_type+y}
4258 then :
4259 printf %s "(cached) " >&6
4260 else case e in #(
4261 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4262 # We make a subdir and do the tests there. Otherwise we can end up
4263 # making bogus files that we don't know about and never remove. For
4264 # instance it was reported that on HP-UX the gcc test will end up
4265 # making a dummy file named 'D' -- because '-MD' means "put the output
4266 # in D".
4267 rm -rf conftest.dir
4268 mkdir conftest.dir
4269 # Copy depcomp to subdir because otherwise we won't find it if we're
4270 # using a relative directory.
4271 cp "$am_depcomp" conftest.dir
4272 cd conftest.dir
4273 # We will build objects and dependencies in a subdirectory because
4274 # it helps to detect inapplicable dependency modes. For instance
4275 # both Tru64's cc and ICC support -MD to output dependencies as a
4276 # side effect of compilation, but ICC will put the dependencies in
4277 # the current directory while Tru64 will put them in the object
4278 # directory.
4279 mkdir sub
4280
4281 am_cv_CC_dependencies_compiler_type=none
4282 if test "$am_compiler_list" = ""; then
4283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284 fi
4285 am__universal=false
4286 case " $depcc " in #(
4287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4288 esac
4289
4290 for depmode in $am_compiler_list; do
4291 # Setup a source with many dependencies, because some compilers
4292 # like to wrap large dependency lists on column 80 (with \), and
4293 # we should not choose a depcomp mode which is confused by this.
4294 #
4295 # We need to recreate these files for each test, as the compiler may
4296 # overwrite some of them when testing with obscure command lines.
4297 # This happens at least with the AIX C compiler.
4298 : > sub/conftest.c
4299 for i in 1 2 3 4 5 6; do
4300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4301 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4302 # Solaris 10 /bin/sh.
4303 echo '/* dummy */' > sub/conftst$i.h
4304 done
4305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4306
4307 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4308 # mode. It turns out that the SunPro C++ compiler does not properly
4309 # handle '-M -o', and we need to detect this. Also, some Intel
4310 # versions had trouble with output in subdirs.
4311 am__obj=sub/conftest.${OBJEXT-o}
4312 am__minus_obj="-o $am__obj"
4313 case $depmode in
4314 gcc)
4315 # This depmode causes a compiler race in universal mode.
4316 test "$am__universal" = false || continue
4317 ;;
4318 nosideeffect)
4319 # After this tag, mechanisms are not by side-effect, so they'll
4320 # only be used when explicitly requested.
4321 if test "x$enable_dependency_tracking" = xyes; then
4322 continue
4323 else
4324 break
4325 fi
4326 ;;
4327 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4328 # This compiler won't grok '-c -o', but also, the minuso test has
4329 # not run yet. These depmodes are late enough in the game, and
4330 # so weak that their functioning should not be impacted.
4331 am__obj=conftest.${OBJEXT-o}
4332 am__minus_obj=
4333 ;;
4334 none) break ;;
4335 esac
4336 if depmode=$depmode \
4337 source=sub/conftest.c object=$am__obj \
4338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4340 >/dev/null 2>conftest.err &&
4341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4345 # icc doesn't choke on unknown options, it will just issue warnings
4346 # or remarks (even with -Werror). So we grep stderr for any message
4347 # that says an option was ignored or not supported.
4348 # When given -MP, icc 7.0 and 7.1 complain thus:
4349 # icc: Command line warning: ignoring option '-M'; no argument required
4350 # The diagnosis changed in icc 8.0:
4351 # icc: Command line remark: option '-MP' not supported
4352 if (grep 'ignoring option' conftest.err ||
4353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4354 am_cv_CC_dependencies_compiler_type=$depmode
4355 break
4356 fi
4357 fi
4358 done
4359
4360 cd ..
4361 rm -rf conftest.dir
4362 else
4363 am_cv_CC_dependencies_compiler_type=none
4364 fi
4365 ;;
4366 esac
4367 fi
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4369 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4370 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4371
4372 if
4373 test "x$enable_dependency_tracking" != xno \
4374 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4375 am__fastdepCC_TRUE=
4376 am__fastdepCC_FALSE='#'
4377 else
4378 am__fastdepCC_TRUE='#'
4379 am__fastdepCC_FALSE=
4380 fi
4381
4382
4383
4384 ac_header= ac_cache=
4385 for ac_item in $ac_header_c_list
4386 do
4387 if test $ac_cache; then
4388 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4389 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4390 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4391 fi
4392 ac_header= ac_cache=
4393 elif test $ac_header; then
4394 ac_cache=$ac_item
4395 else
4396 ac_header=$ac_item
4397 fi
4398 done
4399
4400
4401
4402
4403
4404
4405
4406
4407 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4408 then :
4409
4410 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4411
4412 fi
4413
4414
4415
4416
4417
4418
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4420 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4421 if test ${ac_cv_safe_to_define___extensions__+y}
4422 then :
4423 printf %s "(cached) " >&6
4424 else case e in #(
4425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 # define __EXTENSIONS__ 1
4429 $ac_includes_default
4430 int
4431 main (void)
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"
4439 then :
4440 ac_cv_safe_to_define___extensions__=yes
4441 else case e in #(
4442 e) ac_cv_safe_to_define___extensions__=no ;;
4443 esac
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4446 esac
4447 fi
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4449 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4450
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4452 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4453 if test ${ac_cv_should_define__xopen_source+y}
4454 then :
4455 printf %s "(cached) " >&6
4456 else case e in #(
4457 e) ac_cv_should_define__xopen_source=no
4458 if test $ac_cv_header_wchar_h = yes
4459 then :
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 #include <wchar.h>
4464 mbstate_t x;
4465 int
4466 main (void)
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"
4474 then :
4475
4476 else case e in #(
4477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479
4480 #define _XOPEN_SOURCE 500
4481 #include <wchar.h>
4482 mbstate_t x;
4483 int
4484 main (void)
4485 {
4486
4487 ;
4488 return 0;
4489 }
4490 _ACEOF
4491 if ac_fn_c_try_compile "$LINENO"
4492 then :
4493 ac_cv_should_define__xopen_source=yes
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4496 esac
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4499 fi ;;
4500 esac
4501 fi
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4503 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4504
4505 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4506
4507 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4508
4509 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4510
4511 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4512
4513 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4514
4515 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4516
4517 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4518
4519 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4520
4521 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4522
4523 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4524
4525 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4526
4527 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4528
4529 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4530
4531 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4532
4533 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4534
4535 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4536
4537 if test $ac_cv_header_minix_config_h = yes
4538 then :
4539 MINIX=yes
4540 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4541
4542 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4543
4544 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4545
4546 else case e in #(
4547 e) MINIX= ;;
4548 esac
4549 fi
4550 if test $ac_cv_safe_to_define___extensions__ = yes
4551 then :
4552 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4553
4554 fi
4555 if test $ac_cv_should_define__xopen_source = yes
4556 then :
4557 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4558
4559 fi
4560
4561 # Check whether --enable-compiler-warnings was given.
4562 if test ${enable_compiler_warnings+y}
4563 then :
4564 enableval=$enable_compiler_warnings;
4565 fi
4566 case $enable_compiler_warnings in #(
4567 no | min | yes | max | all) :
4568 ;; #(
4569 *) :
4570 if test "x$enable_maintainer_mode" = xyes
4571 then :
4572 enable_compiler_warnings=yes
4573 else case e in #(
4574 e) enable_compiler_warnings=min ;;
4575 esac
4576 fi ;;
4577 esac
4578
4579 echo 'tldbg:KPSE_BASIC called (pkg=libtiff, amopt=)' >&5
4580
4581 #
4582 # am_init_automake
4583 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4584 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4585 # is not polluted with repeated "-I."
4586 am__isrc=' -I$(srcdir)'
4587 # test to see if srcdir already configured
4588 if test -f $srcdir/config.status; then
4589 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4590 fi
4591 fi
4592
4593 # test whether we have cygpath
4594 if test -z "$CYGPATH_W"; then
4595 if (cygpath --version) >/dev/null 2>/dev/null; then
4596 CYGPATH_W='cygpath -w'
4597 else
4598 CYGPATH_W=echo
4599 fi
4600 fi
4601
4602
4603 # Define the identity of the package.
4604 PACKAGE='libtiff'
4605 VERSION='4.7.0'
4606
4607
4608 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4609
4610
4611 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4612
4613 # Some tools Automake needs.
4614
4615 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4616
4617
4618 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4619
4620
4621 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4622
4623
4624 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4625
4626
4627 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4628
4629 # For better backward compatibility. To be removed once Automake 1.9.x
4630 # dies out for good. For more background, see:
4631 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4632 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4633 mkdir_p='$(MKDIR_P)'
4634
4635 # We need awk for the "check" target (and possibly the TAP driver). The
4636 # system "awk" is bad on some platforms.
4637 # Always define AMTAR for backward compatibility. Yes, it's still used
4638 # in the wild :-( We should find a proper way to deprecate it ...
4639 AMTAR='$${TAR-tar}'
4640
4641
4642 # We'll loop over all known methods to create a tar archive until one works.
4643 _am_tools='gnutar plaintar pax cpio none'
4644
4645 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4646 # There is notably a 21 bits limit for the UID and the GID. In fact,
4647 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4648 # and bug#13588).
4649 am_max_uid=2097151 # 2^21 - 1
4650 am_max_gid=$am_max_uid
4651 # The $UID and $GID variables are not portable, so we need to resort
4652 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4653 # below are definitely unexpected, so allow the users to see them
4654 # (that is, avoid stderr redirection).
4655 am_uid=`id -u || echo unknown`
4656 am_gid=`id -g || echo unknown`
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4658 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4659 if test x$am_uid = xunknown; then
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4661 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4662 elif test $am_uid -le $am_max_uid; then
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4664 printf "%s\n" "yes" >&6; }
4665 else
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 printf "%s\n" "no" >&6; }
4668 _am_tools=none
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4671 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4672 if test x$gm_gid = xunknown; then
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4674 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4675 elif test $am_gid -le $am_max_gid; then
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4677 printf "%s\n" "yes" >&6; }
4678 else
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 printf "%s\n" "no" >&6; }
4681 _am_tools=none
4682 fi
4683
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4685 printf %s "checking how to create a ustar tar archive... " >&6; }
4686
4687 # Go ahead even if we have the value already cached. We do so because we
4688 # need to set the values for the 'am__tar' and 'am__untar' variables.
4689 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4690
4691 for _am_tool in $_am_tools; do
4692 case $_am_tool in
4693 gnutar)
4694 for _am_tar in tar gnutar gtar; do
4695 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4696 ($_am_tar --version) >&5 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && break
4700 done
4701 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4702 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4703 am__untar="$_am_tar -xf -"
4704 ;;
4705 plaintar)
4706 # Must skip GNU tar: if it does not support --format= it doesn't create
4707 # ustar tarball either.
4708 (tar --version) >/dev/null 2>&1 && continue
4709 am__tar='tar chf - "$$tardir"'
4710 am__tar_='tar chf - "$tardir"'
4711 am__untar='tar xf -'
4712 ;;
4713 pax)
4714 am__tar='pax -L -x ustar -w "$$tardir"'
4715 am__tar_='pax -L -x ustar -w "$tardir"'
4716 am__untar='pax -r'
4717 ;;
4718 cpio)
4719 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4720 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4721 am__untar='cpio -i -H ustar -d'
4722 ;;
4723 none)
4724 am__tar=false
4725 am__tar_=false
4726 am__untar=false
4727 ;;
4728 esac
4729
4730 # If the value was cached, stop now. We just wanted to have am__tar
4731 # and am__untar set.
4732 test -n "${am_cv_prog_tar_ustar}" && break
4733
4734 # tar/untar a dummy directory, and stop if the command works.
4735 rm -rf conftest.dir
4736 mkdir conftest.dir
4737 echo GrepMe > conftest.dir/file
4738 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4739 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }
4743 rm -rf conftest.dir
4744 if test -s conftest.tar; then
4745 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4746 ($am__untar <conftest.tar) >&5 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }
4750 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4751 (cat conftest.dir/file) >&5 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }
4755 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4756 fi
4757 done
4758 rm -rf conftest.dir
4759
4760 if test ${am_cv_prog_tar_ustar+y}
4761 then :
4762 printf %s "(cached) " >&6
4763 else case e in #(
4764 e) am_cv_prog_tar_ustar=$_am_tool ;;
4765 esac
4766 fi
4767
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4769 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4770
4771
4772
4773
4774
4775 # Variables for tags utilities; see am/tags.am
4776 if test -z "$CTAGS"; then
4777 CTAGS=ctags
4778 fi
4779
4780 if test -z "$ETAGS"; then
4781 ETAGS=etags
4782 fi
4783
4784 if test -z "$CSCOPE"; then
4785 CSCOPE=cscope
4786 fi
4787
4788
4789
4790
4791
4792
4793
4794
4795 # am_maintainer_mode
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4798 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4799 # Check whether --enable-maintainer-mode was given.
4800 if test ${enable_maintainer_mode+y}
4801 then :
4802 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4803 else case e in #(
4804 e) USE_MAINTAINER_MODE=no ;;
4805 esac
4806 fi
4807
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4809 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4810 if test $USE_MAINTAINER_MODE = yes; then
4811 MAINTAINER_MODE_TRUE=
4812 MAINTAINER_MODE_FALSE='#'
4813 else
4814 MAINTAINER_MODE_TRUE='#'
4815 MAINTAINER_MODE_FALSE=
4816 fi
4817
4818 MAINT=$MAINTAINER_MODE_TRUE
4819
4820
4821
4822 # See comments in kpse-setup.m4 about system extensions.
4823
4824
4825 # Check whether prototypes work.
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
4827 printf %s "checking whether the compiler accepts prototypes... " >&6; }
4828 if test ${kb_cv_c_prototypes+y}
4829 then :
4830 printf %s "(cached) " >&6
4831 else case e in #(
4832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <stdarg.h>
4835 int
4836 main (void)
4837 {
4838 extern void foo(int i,...);
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_c_try_link "$LINENO"
4844 then :
4845 kb_cv_c_prototypes=yes
4846 else case e in #(
4847 e) kb_cv_c_prototypes=no ;;
4848 esac
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4851 conftest$ac_exeext conftest.$ac_ext ;;
4852 esac
4853 fi
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
4855 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
4856 if test "x$kb_cv_c_prototypes" = xno; then
4857 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
4858 fi
4859
4860 # kpse_compiler_warnings options.
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
4862 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
4863 if test ${kpse_cv_warning_cflags+y}
4864 then :
4865 printf %s "(cached) " >&6
4866 else case e in #(
4867 e) if test "x$GCC" = xyes; then
4868 kpse_cv_warning_cflags=
4869 if test "x$enable_compiler_warnings" != xno; then
4870 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
4871 case `$CC -dumpversion` in #(
4872 3.4.* | 4.* | 5.*) :
4873 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
4874 *) :
4875 ;;
4876 esac
4877 case `$CC -dumpversion` in #(
4878 3.[234].* | 4.* | 5.*) :
4879 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
4880 *) :
4881 ;;
4882 esac
4883 if test "x$enable_compiler_warnings" != xmin; then
4884 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
4885 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
4886 if test "x$enable_compiler_warnings" != xyes; then
4887 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
4888 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
4889 case `$CC -dumpversion` in #(
4890 3.4.* | 4.* | 5.*) :
4891 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
4892 *) :
4893 ;;
4894 esac
4895 if test "x$enable_compiler_warnings" != xmax; then
4896 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
4897 fi
4898 fi
4899 fi
4900 fi
4901 elif test "x$enable_compiler_warnings" = xno; then
4902 kpse_cv_warning_cflags=
4903 else
4904 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
4905 fi ;;
4906 esac
4907 fi
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
4909 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
4910 WARNING_CFLAGS=$kpse_cv_warning_cflags
4911
4912
4913
4914
4915
4916
4917
4918 # end of kpse_basic macro.
4919 echo 'tldbg:KPSE_BASIC done (pkg=libtiff, amopt=)' >&5
4920
4921
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 if test -n "$ac_tool_prefix"; then
4928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 printf %s "checking for $ac_word... " >&6; }
4932 if test ${ac_cv_prog_CC+y}
4933 then :
4934 printf %s "(cached) " >&6
4935 else case e in #(
4936 e) if test -n "$CC"; then
4937 ac_cv_prog_CC="$CC" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 case $as_dir in #(((
4944 '') as_dir=./ ;;
4945 */) ;;
4946 *) as_dir=$as_dir/ ;;
4947 esac
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi ;;
4959 esac
4960 fi
4961 CC=$ac_cv_prog_CC
4962 if test -n "$CC"; then
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4964 printf "%s\n" "$CC" >&6; }
4965 else
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 printf "%s\n" "no" >&6; }
4968 fi
4969
4970
4971 fi
4972 if test -z "$ac_cv_prog_CC"; then
4973 ac_ct_CC=$CC
4974 # Extract the first word of "gcc", so it can be a program name with args.
4975 set dummy gcc; ac_word=$2
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 printf %s "checking for $ac_word... " >&6; }
4978 if test ${ac_cv_prog_ac_ct_CC+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) if test -n "$ac_ct_CC"; then
4983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988 IFS=$as_save_IFS
4989 case $as_dir in #(((
4990 '') as_dir=./ ;;
4991 */) ;;
4992 *) as_dir=$as_dir/ ;;
4993 esac
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_CC="gcc"
4997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi ;;
5005 esac
5006 fi
5007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5008 if test -n "$ac_ct_CC"; then
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5010 printf "%s\n" "$ac_ct_CC" >&6; }
5011 else
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 printf "%s\n" "no" >&6; }
5014 fi
5015
5016 if test "x$ac_ct_CC" = x; then
5017 CC=""
5018 else
5019 case $cross_compiling:$ac_tool_warned in
5020 yes:)
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023 ac_tool_warned=yes ;;
5024 esac
5025 CC=$ac_ct_CC
5026 fi
5027 else
5028 CC="$ac_cv_prog_CC"
5029 fi
5030
5031 if test -z "$CC"; then
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}cc; ac_word=$2
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 printf %s "checking for $ac_word... " >&6; }
5037 if test ${ac_cv_prog_CC+y}
5038 then :
5039 printf %s "(cached) " >&6
5040 else case e in #(
5041 e) if test -n "$CC"; then
5042 ac_cv_prog_CC="$CC" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 case $as_dir in #(((
5049 '') as_dir=./ ;;
5050 */) ;;
5051 *) as_dir=$as_dir/ ;;
5052 esac
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_CC="${ac_tool_prefix}cc"
5056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059 done
5060 done
5061 IFS=$as_save_IFS
5062
5063 fi ;;
5064 esac
5065 fi
5066 CC=$ac_cv_prog_CC
5067 if test -n "$CC"; then
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5069 printf "%s\n" "$CC" >&6; }
5070 else
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 printf "%s\n" "no" >&6; }
5073 fi
5074
5075
5076 fi
5077 fi
5078 if test -z "$CC"; then
5079 # Extract the first word of "cc", so it can be a program name with args.
5080 set dummy cc; ac_word=$2
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 printf %s "checking for $ac_word... " >&6; }
5083 if test ${ac_cv_prog_CC+y}
5084 then :
5085 printf %s "(cached) " >&6
5086 else case e in #(
5087 e) if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 ac_prog_rejected=no
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 case $as_dir in #(((
5096 '') as_dir=./ ;;
5097 */) ;;
5098 *) as_dir=$as_dir/ ;;
5099 esac
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5102 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5103 ac_prog_rejected=yes
5104 continue
5105 fi
5106 ac_cv_prog_CC="cc"
5107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 if test $ac_prog_rejected = yes; then
5115 # We found a bogon in the path, so make sure we never use it.
5116 set dummy $ac_cv_prog_CC
5117 shift
5118 if test $# != 0; then
5119 # We chose a different compiler from the bogus one.
5120 # However, it has the same basename, so the bogon will be chosen
5121 # first if we set CC to just the basename; use the full file name.
5122 shift
5123 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5124 fi
5125 fi
5126 fi ;;
5127 esac
5128 fi
5129 CC=$ac_cv_prog_CC
5130 if test -n "$CC"; then
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5132 printf "%s\n" "$CC" >&6; }
5133 else
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 printf "%s\n" "no" >&6; }
5136 fi
5137
5138
5139 fi
5140 if test -z "$CC"; then
5141 if test -n "$ac_tool_prefix"; then
5142 for ac_prog in cl.exe
5143 do
5144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 printf %s "checking for $ac_word... " >&6; }
5148 if test ${ac_cv_prog_CC+y}
5149 then :
5150 printf %s "(cached) " >&6
5151 else case e in #(
5152 e) if test -n "$CC"; then
5153 ac_cv_prog_CC="$CC" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 case $as_dir in #(((
5160 '') as_dir=./ ;;
5161 */) ;;
5162 *) as_dir=$as_dir/ ;;
5163 esac
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172 IFS=$as_save_IFS
5173
5174 fi ;;
5175 esac
5176 fi
5177 CC=$ac_cv_prog_CC
5178 if test -n "$CC"; then
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5180 printf "%s\n" "$CC" >&6; }
5181 else
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 printf "%s\n" "no" >&6; }
5184 fi
5185
5186
5187 test -n "$CC" && break
5188 done
5189 fi
5190 if test -z "$CC"; then
5191 ac_ct_CC=$CC
5192 for ac_prog in cl.exe
5193 do
5194 # Extract the first word of "$ac_prog", so it can be a program name with args.
5195 set dummy $ac_prog; ac_word=$2
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 printf %s "checking for $ac_word... " >&6; }
5198 if test ${ac_cv_prog_ac_ct_CC+y}
5199 then :
5200 printf %s "(cached) " >&6
5201 else case e in #(
5202 e) if test -n "$ac_ct_CC"; then
5203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 case $as_dir in #(((
5210 '') as_dir=./ ;;
5211 */) ;;
5212 *) as_dir=$as_dir/ ;;
5213 esac
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_CC="$ac_prog"
5217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 fi ;;
5225 esac
5226 fi
5227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5228 if test -n "$ac_ct_CC"; then
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5230 printf "%s\n" "$ac_ct_CC" >&6; }
5231 else
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 printf "%s\n" "no" >&6; }
5234 fi
5235
5236
5237 test -n "$ac_ct_CC" && break
5238 done
5239
5240 if test "x$ac_ct_CC" = x; then
5241 CC=""
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 CC=$ac_ct_CC
5250 fi
5251 fi
5252
5253 fi
5254 if test -z "$CC"; then
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}clang; ac_word=$2
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 printf %s "checking for $ac_word... " >&6; }
5260 if test ${ac_cv_prog_CC+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else case e in #(
5264 e) if test -n "$CC"; then
5265 ac_cv_prog_CC="$CC" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 case $as_dir in #(((
5272 '') as_dir=./ ;;
5273 */) ;;
5274 *) as_dir=$as_dir/ ;;
5275 esac
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_CC="${ac_tool_prefix}clang"
5279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi ;;
5287 esac
5288 fi
5289 CC=$ac_cv_prog_CC
5290 if test -n "$CC"; then
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5292 printf "%s\n" "$CC" >&6; }
5293 else
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 printf "%s\n" "no" >&6; }
5296 fi
5297
5298
5299 fi
5300 if test -z "$ac_cv_prog_CC"; then
5301 ac_ct_CC=$CC
5302 # Extract the first word of "clang", so it can be a program name with args.
5303 set dummy clang; ac_word=$2
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 printf %s "checking for $ac_word... " >&6; }
5306 if test ${ac_cv_prog_ac_ct_CC+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else case e in #(
5310 e) if test -n "$ac_ct_CC"; then
5311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316 IFS=$as_save_IFS
5317 case $as_dir in #(((
5318 '') as_dir=./ ;;
5319 */) ;;
5320 *) as_dir=$as_dir/ ;;
5321 esac
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_ac_ct_CC="clang"
5325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328 done
5329 done
5330 IFS=$as_save_IFS
5331
5332 fi ;;
5333 esac
5334 fi
5335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5336 if test -n "$ac_ct_CC"; then
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5338 printf "%s\n" "$ac_ct_CC" >&6; }
5339 else
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 printf "%s\n" "no" >&6; }
5342 fi
5343
5344 if test "x$ac_ct_CC" = x; then
5345 CC=""
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 CC=$ac_ct_CC
5354 fi
5355 else
5356 CC="$ac_cv_prog_CC"
5357 fi
5358
5359 fi
5360
5361
5362 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5363 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5364 as_fn_error $? "no acceptable C compiler found in \$PATH
5365 See 'config.log' for more details" "$LINENO" 5; }
5366
5367 # Provide some information about the compiler.
5368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5369 set X $ac_compile
5370 ac_compiler=$2
5371 for ac_option in --version -v -V -qversion -version; do
5372 { { ac_try="$ac_compiler $ac_option >&5"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5378 printf "%s\n" "$ac_try_echo"; } >&5
5379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5380 ac_status=$?
5381 if test -s conftest.err; then
5382 sed '10a\
5383 ... rest of stderr output deleted ...
5384 10q' conftest.err >conftest.er1
5385 cat conftest.er1 >&5
5386 fi
5387 rm -f conftest.er1 conftest.err
5388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5389 test $ac_status = 0; }
5390 done
5391
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5393 printf %s "checking whether the compiler supports GNU C... " >&6; }
5394 if test ${ac_cv_c_compiler_gnu+y}
5395 then :
5396 printf %s "(cached) " >&6
5397 else case e in #(
5398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400
5401 int
5402 main (void)
5403 {
5404 #ifndef __GNUC__
5405 choke me
5406 #endif
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"
5413 then :
5414 ac_compiler_gnu=yes
5415 else case e in #(
5416 e) ac_compiler_gnu=no ;;
5417 esac
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5421 ;;
5422 esac
5423 fi
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5425 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427
5428 if test $ac_compiler_gnu = yes; then
5429 GCC=yes
5430 else
5431 GCC=
5432 fi
5433 ac_test_CFLAGS=${CFLAGS+y}
5434 ac_save_CFLAGS=$CFLAGS
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5436 printf %s "checking whether $CC accepts -g... " >&6; }
5437 if test ${ac_cv_prog_cc_g+y}
5438 then :
5439 printf %s "(cached) " >&6
5440 else case e in #(
5441 e) ac_save_c_werror_flag=$ac_c_werror_flag
5442 ac_c_werror_flag=yes
5443 ac_cv_prog_cc_g=no
5444 CFLAGS="-g"
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447
5448 int
5449 main (void)
5450 {
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"
5457 then :
5458 ac_cv_prog_cc_g=yes
5459 else case e in #(
5460 e) CFLAGS=""
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463
5464 int
5465 main (void)
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"
5473 then :
5474
5475 else case e in #(
5476 e) ac_c_werror_flag=$ac_save_c_werror_flag
5477 CFLAGS="-g"
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480
5481 int
5482 main (void)
5483 {
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_c_try_compile "$LINENO"
5490 then :
5491 ac_cv_prog_cc_g=yes
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5494 esac
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5497 esac
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5500 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5501 esac
5502 fi
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5504 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5505 if test $ac_test_CFLAGS; then
5506 CFLAGS=$ac_save_CFLAGS
5507 elif test $ac_cv_prog_cc_g = yes; then
5508 if test "$GCC" = yes; then
5509 CFLAGS="-g -O2"
5510 else
5511 CFLAGS="-g"
5512 fi
5513 else
5514 if test "$GCC" = yes; then
5515 CFLAGS="-O2"
5516 else
5517 CFLAGS=
5518 fi
5519 fi
5520 ac_prog_cc_stdc=no
5521 if test x$ac_prog_cc_stdc = xno
5522 then :
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5524 printf %s "checking for $CC option to enable C11 features... " >&6; }
5525 if test ${ac_cv_prog_cc_c11+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else case e in #(
5529 e) ac_cv_prog_cc_c11=no
5530 ac_save_CC=$CC
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 $ac_c_conftest_c11_program
5534 _ACEOF
5535 for ac_arg in '' -std=gnu11
5536 do
5537 CC="$ac_save_CC $ac_arg"
5538 if ac_fn_c_try_compile "$LINENO"
5539 then :
5540 ac_cv_prog_cc_c11=$ac_arg
5541 fi
5542 rm -f core conftest.err conftest.$ac_objext conftest.beam
5543 test "x$ac_cv_prog_cc_c11" != "xno" && break
5544 done
5545 rm -f conftest.$ac_ext
5546 CC=$ac_save_CC ;;
5547 esac
5548 fi
5549
5550 if test "x$ac_cv_prog_cc_c11" = xno
5551 then :
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5553 printf "%s\n" "unsupported" >&6; }
5554 else case e in #(
5555 e) if test "x$ac_cv_prog_cc_c11" = x
5556 then :
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5558 printf "%s\n" "none needed" >&6; }
5559 else case e in #(
5560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5561 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5562 CC="$CC $ac_cv_prog_cc_c11" ;;
5563 esac
5564 fi
5565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5566 ac_prog_cc_stdc=c11 ;;
5567 esac
5568 fi
5569 fi
5570 if test x$ac_prog_cc_stdc = xno
5571 then :
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5573 printf %s "checking for $CC option to enable C99 features... " >&6; }
5574 if test ${ac_cv_prog_cc_c99+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else case e in #(
5578 e) ac_cv_prog_cc_c99=no
5579 ac_save_CC=$CC
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 $ac_c_conftest_c99_program
5583 _ACEOF
5584 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5585 do
5586 CC="$ac_save_CC $ac_arg"
5587 if ac_fn_c_try_compile "$LINENO"
5588 then :
5589 ac_cv_prog_cc_c99=$ac_arg
5590 fi
5591 rm -f core conftest.err conftest.$ac_objext conftest.beam
5592 test "x$ac_cv_prog_cc_c99" != "xno" && break
5593 done
5594 rm -f conftest.$ac_ext
5595 CC=$ac_save_CC ;;
5596 esac
5597 fi
5598
5599 if test "x$ac_cv_prog_cc_c99" = xno
5600 then :
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5602 printf "%s\n" "unsupported" >&6; }
5603 else case e in #(
5604 e) if test "x$ac_cv_prog_cc_c99" = x
5605 then :
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5607 printf "%s\n" "none needed" >&6; }
5608 else case e in #(
5609 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5610 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5611 CC="$CC $ac_cv_prog_cc_c99" ;;
5612 esac
5613 fi
5614 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5615 ac_prog_cc_stdc=c99 ;;
5616 esac
5617 fi
5618 fi
5619 if test x$ac_prog_cc_stdc = xno
5620 then :
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5622 printf %s "checking for $CC option to enable C89 features... " >&6; }
5623 if test ${ac_cv_prog_cc_c89+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else case e in #(
5627 e) ac_cv_prog_cc_c89=no
5628 ac_save_CC=$CC
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 $ac_c_conftest_c89_program
5632 _ACEOF
5633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5634 do
5635 CC="$ac_save_CC $ac_arg"
5636 if ac_fn_c_try_compile "$LINENO"
5637 then :
5638 ac_cv_prog_cc_c89=$ac_arg
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.beam
5641 test "x$ac_cv_prog_cc_c89" != "xno" && break
5642 done
5643 rm -f conftest.$ac_ext
5644 CC=$ac_save_CC ;;
5645 esac
5646 fi
5647
5648 if test "x$ac_cv_prog_cc_c89" = xno
5649 then :
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5651 printf "%s\n" "unsupported" >&6; }
5652 else case e in #(
5653 e) if test "x$ac_cv_prog_cc_c89" = x
5654 then :
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5656 printf "%s\n" "none needed" >&6; }
5657 else case e in #(
5658 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5659 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5660 CC="$CC $ac_cv_prog_cc_c89" ;;
5661 esac
5662 fi
5663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5664 ac_prog_cc_stdc=c89 ;;
5665 esac
5666 fi
5667 fi
5668
5669 ac_ext=c
5670 ac_cpp='$CPP $CPPFLAGS'
5671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674
5675
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5682 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5683 if test ${am_cv_prog_cc_c_o+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else case e in #(
5687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689
5690 int
5691 main (void)
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 # Make sure it works both with $CC and with simple cc.
5699 # Following AC_PROG_CC_C_O, we do the test twice because some
5700 # compilers refuse to overwrite an existing .o file with -o,
5701 # though they will create one.
5702 am_cv_prog_cc_c_o=yes
5703 for am_i in 1 2; do
5704 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5705 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } \
5709 && test -f conftest2.$ac_objext; then
5710 : OK
5711 else
5712 am_cv_prog_cc_c_o=no
5713 break
5714 fi
5715 done
5716 # aligned with autoconf, so not including core; see bug#72225.
5717 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5718 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5719 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5720 unset am_i ;;
5721 esac
5722 fi
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5724 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5725 if test "$am_cv_prog_cc_c_o" != yes; then
5726 # Losing compiler, so override with the script.
5727 # FIXME: It is wrong to rewrite CC.
5728 # But if we don't then we get into trouble of one sort or another.
5729 # A longer-term fix would be to have automake use am__CC in this case,
5730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5731 CC="$am_aux_dir/compile $CC"
5732 fi
5733 ac_ext=c
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738
5739
5740 depcc="$CC" am_compiler_list=
5741
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5743 printf %s "checking dependency style of $depcc... " >&6; }
5744 if test ${am_cv_CC_dependencies_compiler_type+y}
5745 then :
5746 printf %s "(cached) " >&6
5747 else case e in #(
5748 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5749 # We make a subdir and do the tests there. Otherwise we can end up
5750 # making bogus files that we don't know about and never remove. For
5751 # instance it was reported that on HP-UX the gcc test will end up
5752 # making a dummy file named 'D' -- because '-MD' means "put the output
5753 # in D".
5754 rm -rf conftest.dir
5755 mkdir conftest.dir
5756 # Copy depcomp to subdir because otherwise we won't find it if we're
5757 # using a relative directory.
5758 cp "$am_depcomp" conftest.dir
5759 cd conftest.dir
5760 # We will build objects and dependencies in a subdirectory because
5761 # it helps to detect inapplicable dependency modes. For instance
5762 # both Tru64's cc and ICC support -MD to output dependencies as a
5763 # side effect of compilation, but ICC will put the dependencies in
5764 # the current directory while Tru64 will put them in the object
5765 # directory.
5766 mkdir sub
5767
5768 am_cv_CC_dependencies_compiler_type=none
5769 if test "$am_compiler_list" = ""; then
5770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5771 fi
5772 am__universal=false
5773 case " $depcc " in #(
5774 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5775 esac
5776
5777 for depmode in $am_compiler_list; do
5778 # Setup a source with many dependencies, because some compilers
5779 # like to wrap large dependency lists on column 80 (with \), and
5780 # we should not choose a depcomp mode which is confused by this.
5781 #
5782 # We need to recreate these files for each test, as the compiler may
5783 # overwrite some of them when testing with obscure command lines.
5784 # This happens at least with the AIX C compiler.
5785 : > sub/conftest.c
5786 for i in 1 2 3 4 5 6; do
5787 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5788 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5789 # Solaris 10 /bin/sh.
5790 echo '/* dummy */' > sub/conftst$i.h
5791 done
5792 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5793
5794 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5795 # mode. It turns out that the SunPro C++ compiler does not properly
5796 # handle '-M -o', and we need to detect this. Also, some Intel
5797 # versions had trouble with output in subdirs.
5798 am__obj=sub/conftest.${OBJEXT-o}
5799 am__minus_obj="-o $am__obj"
5800 case $depmode in
5801 gcc)
5802 # This depmode causes a compiler race in universal mode.
5803 test "$am__universal" = false || continue
5804 ;;
5805 nosideeffect)
5806 # After this tag, mechanisms are not by side-effect, so they'll
5807 # only be used when explicitly requested.
5808 if test "x$enable_dependency_tracking" = xyes; then
5809 continue
5810 else
5811 break
5812 fi
5813 ;;
5814 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5815 # This compiler won't grok '-c -o', but also, the minuso test has
5816 # not run yet. These depmodes are late enough in the game, and
5817 # so weak that their functioning should not be impacted.
5818 am__obj=conftest.${OBJEXT-o}
5819 am__minus_obj=
5820 ;;
5821 none) break ;;
5822 esac
5823 if depmode=$depmode \
5824 source=sub/conftest.c object=$am__obj \
5825 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5826 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5827 >/dev/null 2>conftest.err &&
5828 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5830 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5832 # icc doesn't choke on unknown options, it will just issue warnings
5833 # or remarks (even with -Werror). So we grep stderr for any message
5834 # that says an option was ignored or not supported.
5835 # When given -MP, icc 7.0 and 7.1 complain thus:
5836 # icc: Command line warning: ignoring option '-M'; no argument required
5837 # The diagnosis changed in icc 8.0:
5838 # icc: Command line remark: option '-MP' not supported
5839 if (grep 'ignoring option' conftest.err ||
5840 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5841 am_cv_CC_dependencies_compiler_type=$depmode
5842 break
5843 fi
5844 fi
5845 done
5846
5847 cd ..
5848 rm -rf conftest.dir
5849 else
5850 am_cv_CC_dependencies_compiler_type=none
5851 fi
5852 ;;
5853 esac
5854 fi
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5856 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5858
5859 if
5860 test "x$enable_dependency_tracking" != xno \
5861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5862 am__fastdepCC_TRUE=
5863 am__fastdepCC_FALSE='#'
5864 else
5865 am__fastdepCC_TRUE='#'
5866 am__fastdepCC_FALSE=
5867 fi
5868
5869
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 printf %s "checking for $ac_word... " >&6; }
5875 if test ${ac_cv_prog_RANLIB+y}
5876 then :
5877 printf %s "(cached) " >&6
5878 else case e in #(
5879 e) if test -n "$RANLIB"; then
5880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 case $as_dir in #(((
5887 '') as_dir=./ ;;
5888 */) ;;
5889 *) as_dir=$as_dir/ ;;
5890 esac
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi ;;
5902 esac
5903 fi
5904 RANLIB=$ac_cv_prog_RANLIB
5905 if test -n "$RANLIB"; then
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5907 printf "%s\n" "$RANLIB" >&6; }
5908 else
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 printf "%s\n" "no" >&6; }
5911 fi
5912
5913
5914 fi
5915 if test -z "$ac_cv_prog_RANLIB"; then
5916 ac_ct_RANLIB=$RANLIB
5917 # Extract the first word of "ranlib", so it can be a program name with args.
5918 set dummy ranlib; ac_word=$2
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 printf %s "checking for $ac_word... " >&6; }
5921 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5922 then :
5923 printf %s "(cached) " >&6
5924 else case e in #(
5925 e) if test -n "$ac_ct_RANLIB"; then
5926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 case $as_dir in #(((
5933 '') as_dir=./ ;;
5934 */) ;;
5935 *) as_dir=$as_dir/ ;;
5936 esac
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_RANLIB="ranlib"
5940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947 fi ;;
5948 esac
5949 fi
5950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5951 if test -n "$ac_ct_RANLIB"; then
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5953 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5954 else
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 printf "%s\n" "no" >&6; }
5957 fi
5958
5959 if test "x$ac_ct_RANLIB" = x; then
5960 RANLIB=":"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968 RANLIB=$ac_ct_RANLIB
5969 fi
5970 else
5971 RANLIB="$ac_cv_prog_RANLIB"
5972 fi
5973
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5975 printf %s "checking whether ln -s works... " >&6; }
5976 LN_S=$as_ln_s
5977 if test "$LN_S" = "ln -s"; then
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979 printf "%s\n" "yes" >&6; }
5980 else
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5982 printf "%s\n" "no, using $LN_S" >&6; }
5983 fi
5984
5985
5986 # Generate configuration headers.
5987 # AC_CONFIG_FILES([libtiff-src/jconfig.h:libtiff-src/jconfig.cfg])
5988 ac_config_files="$ac_config_files libtiff-src/tif_config.h:libtiff-src/tiffconf.h"
5989
5990 ac_config_headers="$ac_config_headers config.h"
5991
5992
5993 echo 'tldbg:KPSE_COMPILER_VISIBILITY called.' >&5
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
5995 printf %s "checking CFLAGS for C to hide external symbols... " >&6; }
5996 if test ${kpse_cv_visibility_cflags+y}
5997 then :
5998 printf %s "(cached) " >&6
5999 else case e in #(
6000 e) ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006 kpse_cv_visibility_cflags=unknown
6007 kpse_save_flags=$CFLAGS
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <stdio.h>
6011 extern void foo(void);
6012 void foo(void){printf("foo\n");}
6013 _ACEOF
6014 # Maybe other compiler need other tests; patches needed.
6015 #
6016 # The idea, maybe, is to use both flags when they are supported, but
6017 # old C++ compilers, as well as C, don't support
6018 # -fvisibility-inlines-hidden, so test just -fvisibility=hidden too?
6019 #
6020 for kpse_flag in "-fvisibility=hidden -fvisibility-inlines-hidden" \
6021 "-fvisibility=hidden"; do
6022 if test x"C" = xC \
6023 && echo "$kpse_flag" | grep inlines-hidden >/dev/null; then
6024 # C does not support this additional flag; just skip the test.
6025 continue
6026 fi
6027 CFLAGS="$kpse_save_flags -Werror $kpse_flag"
6028 if ac_fn_c_try_compile "$LINENO"
6029 then :
6030 kpse_cv_visibility_cflags=$kpse_flag; break
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.beam
6033 done
6034 CFLAGS=$kpse_save_flags
6035 ac_ext=c
6036 ac_cpp='$CPP $CPPFLAGS'
6037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
6041 ;;
6042 esac
6043 fi
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
6045 printf "%s\n" "$kpse_cv_visibility_cflags" >&6; }
6046 case $kpse_cv_visibility_cflags in #(
6047 unknown) :
6048 ;; #(
6049 *) :
6050 VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags
6051 ;;
6052 esac
6053
6054
6055
6056
6057
6058 KPSE_LIBJPEG_FLAGS
6059 kpse_save_CPPFLAGS=$CPPFLAGS
6060 kpse_save_LIBS=$LIBS
6061
6062 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
6063
6064 ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags.
6065 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5
6066 ##tldbg _KPSE_LIB_FLAGS_STANDALONE: zlib (z) .
6067 ##tldbg _KPSE_LIB_FLAGS_SYSTEM: zlib (z).
6068 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
6069 ZLIB_INCLUDES="-I$with_zlib_includes"
6070 fi
6071 ZLIB_LIBS="-lz"
6072 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
6073 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
6074 fi
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
6076 printf %s "checking if <zlib.h> defines 'z_const'... " >&6; }
6077 if test ${kpse_cv_have_decl_z_const+y}
6078 then :
6079 printf %s "(cached) " >&6
6080 else case e in #(
6081 e) eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
6082 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
6083
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #include <zlib.h>
6087 int
6088 main (void)
6089 {
6090 z_const char * foo();
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"
6096 then :
6097 kpse_cv_have_decl_z_const=yes
6098 else case e in #(
6099 e) kpse_cv_have_decl_z_const=no ;;
6100 esac
6101 fi
6102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6103 CPPFLAGS=$kpse_save_CPPFLAGS
6104 LIBS=$kpse_save_LIBS
6105 ;;
6106 esac
6107 fi
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
6109 printf "%s\n" "$kpse_cv_have_decl_z_const" >&6; }
6110 case $kpse_cv_have_decl_z_const in #(
6111 yes) :
6112
6113 printf "%s\n" "#define ZLIB_CONST 1" >>confdefs.h
6114 ;; #(
6115 *) :
6116
6117 printf "%s\n" "#define z_const /**/" >>confdefs.h
6118 ;;
6119 esac
6120
6121
6122 if test "x$enable_build" != xno; then
6123 build_TRUE=
6124 build_FALSE='#'
6125 else
6126 build_TRUE='#'
6127 build_FALSE=
6128 fi
6129
6130
6131 if test "x$enable_build" != xno || test -f config.force; then
6132
6133 echo timestamp >config.force
6134
6135 fi
6136
6137 echo timestamp >config.force
6138
6139 if test "x$host" = x; then
6140 config_args=
6141 else
6142 config_args="--host=$host"
6143 if test "x$build" != x; then
6144 config_args="$config_args --build=$build"
6145 fi
6146 fi
6147
6148
6149 # Select memory manager depending on user input.
6150 # If no "-enable-maxmem", use jmemnobs
6151 MEMORYMGR='jmemnobs'
6152
6153
6154 LIBTIFF_TREE=libtiff-src
6155
6156
6157 ac_config_files="$ac_config_files Makefile include/Makefile"
6158
6159
6160 cat >confcache <<\_ACEOF
6161 # This file is a shell script that caches the results of configure
6162 # tests run on this system so they can be shared between configure
6163 # scripts and configure runs, see configure's option --config-cache.
6164 # It is not useful on other systems. If it contains results you don't
6165 # want to keep, you may remove or edit it.
6166 #
6167 # config.status only pays attention to the cache file if you give it
6168 # the --recheck option to rerun configure.
6169 #
6170 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
6171 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
6172 # following values.
6173
6174 _ACEOF
6175
6176 # The following way of writing the cache mishandles newlines in values,
6177 # but we know of no workaround that is simple, portable, and efficient.
6178 # So, we kill variables containing newlines.
6179 # Ultrix sh set writes to stderr and can't be redirected directly,
6180 # and sets the high bit in the cache file unless we assign to the vars.
6181 (
6182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6183 eval ac_val=\$$ac_var
6184 case $ac_val in #(
6185 *${as_nl}*)
6186 case $ac_var in #(
6187 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6188 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6189 esac
6190 case $ac_var in #(
6191 _ | IFS | as_nl) ;; #(
6192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6193 *) { eval $ac_var=; unset $ac_var;} ;;
6194 esac ;;
6195 esac
6196 done
6197
6198 (set) 2>&1 |
6199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6200 *${as_nl}ac_space=\ *)
6201 # 'set' does not quote correctly, so add quotes: double-quote
6202 # substitution turns \\\\ into \\, and sed turns \\ into \.
6203 sed -n \
6204 "s/'/'\\\\''/g;
6205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6206 ;; #(
6207 *)
6208 # 'set' quotes correctly as required by POSIX, so do not add quotes.
6209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6210 ;;
6211 esac |
6212 sort
6213 ) |
6214 sed '
6215 /^ac_cv_env_/b end
6216 t clear
6217 :clear
6218 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6219 t end
6220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6221 :end' >>confcache
6222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6223 if test -w "$cache_file"; then
6224 if test "x$cache_file" != "x/dev/null"; then
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6226 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6227 if test ! -f "$cache_file" || test -h "$cache_file"; then
6228 cat confcache >"$cache_file"
6229 else
6230 case $cache_file in #(
6231 */* | ?:*)
6232 mv -f confcache "$cache_file"$$ &&
6233 mv -f "$cache_file"$$ "$cache_file" ;; #(
6234 *)
6235 mv -f confcache "$cache_file" ;;
6236 esac
6237 fi
6238 fi
6239 else
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6241 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6242 fi
6243 fi
6244 rm -f confcache
6245
6246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6247 # Let make expand exec_prefix.
6248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6249
6250 DEFS=-DHAVE_CONFIG_H
6251
6252 ac_libobjs=
6253 ac_ltlibobjs=
6254 U=
6255 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6256 # 1. Remove the extension, and $U if already installed.
6257 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6258 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6259 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6260 # will be set to the directory where LIBOBJS objects are built.
6261 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6262 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6263 done
6264 LIBOBJS=$ac_libobjs
6265
6266 LTLIBOBJS=$ac_ltlibobjs
6267
6268
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6270 printf %s "checking that generated files are newer than configure... " >&6; }
6271 if test -n "$am_sleep_pid"; then
6272 # Hide warnings about reused PIDs.
6273 wait $am_sleep_pid 2>/dev/null
6274 fi
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6276 printf "%s\n" "done" >&6; }
6277 case $enable_silent_rules in # (((
6278 yes) AM_DEFAULT_VERBOSITY=0;;
6279 no) AM_DEFAULT_VERBOSITY=1;;
6280 esac
6281 if test $am_cv_make_support_nested_variables = yes; then
6282 AM_V='$(V)'
6283 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6284 else
6285 AM_V=$AM_DEFAULT_VERBOSITY
6286 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6287 fi
6288
6289 if test -n "$EXEEXT"; then
6290 am__EXEEXT_TRUE=
6291 am__EXEEXT_FALSE='#'
6292 else
6293 am__EXEEXT_TRUE='#'
6294 am__EXEEXT_FALSE=
6295 fi
6296
6297 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6298 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6300 fi
6301 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6302 as_fn_error $? "conditional \"AMDEP\" was never defined.
6303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6304 fi
6305 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6306 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6308 fi
6309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6310 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6312 fi
6313 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
6314 as_fn_error $? "conditional \"build\" was never defined.
6315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6316 fi
6317
6318 : "${CONFIG_STATUS=./config.status}"
6319 ac_write_fail=0
6320 ac_clean_files_save=$ac_clean_files
6321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6323 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6324 as_write_fail=0
6325 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6326 #! $SHELL
6327 # Generated by $as_me.
6328 # Run this file to recreate the current configuration.
6329 # Compiler output produced by configure, useful for debugging
6330 # configure, is in config.log if it exists.
6331
6332 debug=false
6333 ac_cs_recheck=false
6334 ac_cs_silent=false
6335
6336 SHELL=\${CONFIG_SHELL-$SHELL}
6337 export SHELL
6338 _ASEOF
6339 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6340 ## -------------------- ##
6341 ## M4sh Initialization. ##
6342 ## -------------------- ##
6343
6344 # Be more Bourne compatible
6345 DUALCASE=1; export DUALCASE # for MKS sh
6346 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6347 then :
6348 emulate sh
6349 NULLCMD=:
6350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6351 # is contrary to our usage. Disable this feature.
6352 alias -g '${1+"$@"}'='"$@"'
6353 setopt NO_GLOB_SUBST
6354 else case e in #(
6355 e) case `(set -o) 2>/dev/null` in #(
6356 *posix*) :
6357 set -o posix ;; #(
6358 *) :
6359 ;;
6360 esac ;;
6361 esac
6362 fi
6363
6364
6365
6366 # Reset variables that may have inherited troublesome values from
6367 # the environment.
6368
6369 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6370 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6371 # side effect of setting IFS to empty, thus disabling word splitting.)
6372 # Quoting is to prevent editors from complaining about space-tab.
6373 as_nl='
6374 '
6375 export as_nl
6376 IFS=" "" $as_nl"
6377
6378 PS1='$ '
6379 PS2='> '
6380 PS4='+ '
6381
6382 # Ensure predictable behavior from utilities with locale-dependent output.
6383 LC_ALL=C
6384 export LC_ALL
6385 LANGUAGE=C
6386 export LANGUAGE
6387
6388 # We cannot yet rely on "unset" to work, but we need these variables
6389 # to be unset--not just set to an empty or harmless value--now, to
6390 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6391 # also avoids known problems related to "unset" and subshell syntax
6392 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6393 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6394 do eval test \${$as_var+y} \
6395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6396 done
6397
6398 # Ensure that fds 0, 1, and 2 are open.
6399 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6400 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6401 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6402
6403 # The user is always right.
6404 if ${PATH_SEPARATOR+false} :; then
6405 PATH_SEPARATOR=:
6406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6408 PATH_SEPARATOR=';'
6409 }
6410 fi
6411
6412
6413 # Find who we are. Look in the path if we contain no directory separator.
6414 as_myself=
6415 case $0 in #((
6416 *[\\/]* ) as_myself=$0 ;;
6417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420 IFS=$as_save_IFS
6421 case $as_dir in #(((
6422 '') as_dir=./ ;;
6423 */) ;;
6424 *) as_dir=$as_dir/ ;;
6425 esac
6426 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6427 done
6428 IFS=$as_save_IFS
6429
6430 ;;
6431 esac
6432 # We did not find ourselves, most probably we were run as 'sh COMMAND'
6433 # in which case we are not to be found in the path.
6434 if test "x$as_myself" = x; then
6435 as_myself=$0
6436 fi
6437 if test ! -f "$as_myself"; then
6438 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6439 exit 1
6440 fi
6441
6442
6443
6444 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6445 # ----------------------------------------
6446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6448 # script with STATUS, using 1 if that was 0.
6449 as_fn_error ()
6450 {
6451 as_status=$1; test $as_status -eq 0 && as_status=1
6452 if test "$4"; then
6453 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6455 fi
6456 printf "%s\n" "$as_me: error: $2" >&2
6457 as_fn_exit $as_status
6458 } # as_fn_error
6459
6460
6461 # as_fn_set_status STATUS
6462 # -----------------------
6463 # Set $? to STATUS, without forking.
6464 as_fn_set_status ()
6465 {
6466 return $1
6467 } # as_fn_set_status
6468
6469 # as_fn_exit STATUS
6470 # -----------------
6471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6472 as_fn_exit ()
6473 {
6474 set +e
6475 as_fn_set_status $1
6476 exit $1
6477 } # as_fn_exit
6478
6479 # as_fn_unset VAR
6480 # ---------------
6481 # Portably unset VAR.
6482 as_fn_unset ()
6483 {
6484 { eval $1=; unset $1;}
6485 }
6486 as_unset=as_fn_unset
6487
6488 # as_fn_append VAR VALUE
6489 # ----------------------
6490 # Append the text in VALUE to the end of the definition contained in VAR. Take
6491 # advantage of any shell optimizations that allow amortized linear growth over
6492 # repeated appends, instead of the typical quadratic growth present in naive
6493 # implementations.
6494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6495 then :
6496 eval 'as_fn_append ()
6497 {
6498 eval $1+=\$2
6499 }'
6500 else case e in #(
6501 e) as_fn_append ()
6502 {
6503 eval $1=\$$1\$2
6504 } ;;
6505 esac
6506 fi # as_fn_append
6507
6508 # as_fn_arith ARG...
6509 # ------------------
6510 # Perform arithmetic evaluation on the ARGs, and store the result in the
6511 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6512 # must be portable across $(()) and expr.
6513 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6514 then :
6515 eval 'as_fn_arith ()
6516 {
6517 as_val=$(( $* ))
6518 }'
6519 else case e in #(
6520 e) as_fn_arith ()
6521 {
6522 as_val=`expr "$@" || test $? -eq 1`
6523 } ;;
6524 esac
6525 fi # as_fn_arith
6526
6527
6528 if expr a : '\(a\)' >/dev/null 2>&1 &&
6529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6530 as_expr=expr
6531 else
6532 as_expr=false
6533 fi
6534
6535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6536 as_basename=basename
6537 else
6538 as_basename=false
6539 fi
6540
6541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6542 as_dirname=dirname
6543 else
6544 as_dirname=false
6545 fi
6546
6547 as_me=`$as_basename -- "$0" ||
6548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6549 X"$0" : 'X\(//\)$' \| \
6550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6551 printf "%s\n" X/"$0" |
6552 sed '/^.*\/\([^/][^/]*\)\/*$/{
6553 s//\1/
6554 q
6555 }
6556 /^X\/\(\/\/\)$/{
6557 s//\1/
6558 q
6559 }
6560 /^X\/\(\/\).*/{
6561 s//\1/
6562 q
6563 }
6564 s/.*/./; q'`
6565
6566 # Avoid depending upon Character Ranges.
6567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6570 as_cr_digits='0123456789'
6571 as_cr_alnum=$as_cr_Letters$as_cr_digits
6572
6573
6574 # Determine whether it's possible to make 'echo' print without a newline.
6575 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6576 # for compatibility with existing Makefiles.
6577 ECHO_C= ECHO_N= ECHO_T=
6578 case `echo -n x` in #(((((
6579 -n*)
6580 case `echo 'xy\c'` in
6581 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6582 xy) ECHO_C='\c';;
6583 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6584 ECHO_T=' ';;
6585 esac;;
6586 *)
6587 ECHO_N='-n';;
6588 esac
6589
6590 # For backward compatibility with old third-party macros, we provide
6591 # the shell variables $as_echo and $as_echo_n. New code should use
6592 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6593 as_echo='printf %s\n'
6594 as_echo_n='printf %s'
6595
6596 rm -f conf$$ conf$$.exe conf$$.file
6597 if test -d conf$$.dir; then
6598 rm -f conf$$.dir/conf$$.file
6599 else
6600 rm -f conf$$.dir
6601 mkdir conf$$.dir 2>/dev/null
6602 fi
6603 if (echo >conf$$.file) 2>/dev/null; then
6604 if ln -s conf$$.file conf$$ 2>/dev/null; then
6605 as_ln_s='ln -s'
6606 # ... but there are two gotchas:
6607 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
6608 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
6609 # In both cases, we have to default to 'cp -pR'.
6610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6611 as_ln_s='cp -pR'
6612 elif ln conf$$.file conf$$ 2>/dev/null; then
6613 as_ln_s=ln
6614 else
6615 as_ln_s='cp -pR'
6616 fi
6617 else
6618 as_ln_s='cp -pR'
6619 fi
6620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6621 rmdir conf$$.dir 2>/dev/null
6622
6623
6624 # as_fn_mkdir_p
6625 # -------------
6626 # Create "$as_dir" as a directory, including parents if necessary.
6627 as_fn_mkdir_p ()
6628 {
6629
6630 case $as_dir in #(
6631 -*) as_dir=./$as_dir;;
6632 esac
6633 test -d "$as_dir" || eval $as_mkdir_p || {
6634 as_dirs=
6635 while :; do
6636 case $as_dir in #(
6637 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6638 *) as_qdir=$as_dir;;
6639 esac
6640 as_dirs="'$as_qdir' $as_dirs"
6641 as_dir=`$as_dirname -- "$as_dir" ||
6642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6643 X"$as_dir" : 'X\(//\)[^/]' \| \
6644 X"$as_dir" : 'X\(//\)$' \| \
6645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6646 printf "%s\n" X"$as_dir" |
6647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6648 s//\1/
6649 q
6650 }
6651 /^X\(\/\/\)[^/].*/{
6652 s//\1/
6653 q
6654 }
6655 /^X\(\/\/\)$/{
6656 s//\1/
6657 q
6658 }
6659 /^X\(\/\).*/{
6660 s//\1/
6661 q
6662 }
6663 s/.*/./; q'`
6664 test -d "$as_dir" && break
6665 done
6666 test -z "$as_dirs" || eval "mkdir $as_dirs"
6667 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6668
6669
6670 } # as_fn_mkdir_p
6671 if mkdir -p . 2>/dev/null; then
6672 as_mkdir_p='mkdir -p "$as_dir"'
6673 else
6674 test -d ./-p && rmdir ./-p
6675 as_mkdir_p=false
6676 fi
6677
6678
6679 # as_fn_executable_p FILE
6680 # -----------------------
6681 # Test if FILE is an executable regular file.
6682 as_fn_executable_p ()
6683 {
6684 test -f "$1" && test -x "$1"
6685 } # as_fn_executable_p
6686 as_test_x='test -x'
6687 as_executable_p=as_fn_executable_p
6688
6689 # Sed expression to map a string onto a valid CPP name.
6690 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6691 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
6692
6693 # Sed expression to map a string onto a valid variable name.
6694 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6695 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
6696
6697
6698 exec 6>&1
6699 ## ----------------------------------- ##
6700 ## Main body of $CONFIG_STATUS script. ##
6701 ## ----------------------------------- ##
6702 _ASEOF
6703 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6704
6705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6706 # Save the log message, to keep $0 and so on meaningful, and to
6707 # report actual input values of CONFIG_FILES etc. instead of their
6708 # values after options handling.
6709 ac_log="
6710 This file was extended by libtiff $as_me 4.7.0, which was
6711 generated by GNU Autoconf 2.72. Invocation command line was
6712
6713 CONFIG_FILES = $CONFIG_FILES
6714 CONFIG_HEADERS = $CONFIG_HEADERS
6715 CONFIG_LINKS = $CONFIG_LINKS
6716 CONFIG_COMMANDS = $CONFIG_COMMANDS
6717 $ $0 $@
6718
6719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6720 "
6721
6722 _ACEOF
6723
6724 case $ac_config_files in *"
6725 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6726 esac
6727
6728 case $ac_config_headers in *"
6729 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6730 esac
6731
6732
6733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6734 # Files that config.status was made for.
6735 config_files="$ac_config_files"
6736 config_headers="$ac_config_headers"
6737 config_commands="$ac_config_commands"
6738
6739 _ACEOF
6740
6741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6742 ac_cs_usage="\
6743 '$as_me' instantiates files and other configuration actions
6744 from templates according to the current configuration. Unless the files
6745 and actions are specified as TAGs, all are instantiated by default.
6746
6747 Usage: $0 [OPTION]... [TAG]...
6748
6749 -h, --help print this help, then exit
6750 -V, --version print version number and configuration settings, then exit
6751 --config print configuration, then exit
6752 -q, --quiet, --silent
6753 do not print progress messages
6754 -d, --debug don't remove temporary files
6755 --recheck update $as_me by reconfiguring in the same conditions
6756 --file=FILE[:TEMPLATE]
6757 instantiate the configuration file FILE
6758 --header=FILE[:TEMPLATE]
6759 instantiate the configuration header FILE
6760
6761 Configuration files:
6762 $config_files
6763
6764 Configuration headers:
6765 $config_headers
6766
6767 Configuration commands:
6768 $config_commands
6769
6770 Report bugs to the package provider."
6771
6772 _ACEOF
6773 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6774 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6776 ac_cs_config='$ac_cs_config_escaped'
6777 ac_cs_version="\\
6778 libtiff config.status 4.7.0
6779 configured by $0, generated by GNU Autoconf 2.72,
6780 with options \\"\$ac_cs_config\\"
6781
6782 Copyright (C) 2023 Free Software Foundation, Inc.
6783 This config.status script is free software; the Free Software Foundation
6784 gives unlimited permission to copy, distribute and modify it."
6785
6786 ac_pwd='$ac_pwd'
6787 srcdir='$srcdir'
6788 INSTALL='$INSTALL'
6789 MKDIR_P='$MKDIR_P'
6790 AWK='$AWK'
6791 test -n "\$AWK" || AWK=awk
6792 _ACEOF
6793
6794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6795 # The default lists apply if the user does not specify any file.
6796 ac_need_defaults=:
6797 while test $# != 0
6798 do
6799 case $1 in
6800 --*=?*)
6801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6803 ac_shift=:
6804 ;;
6805 --*=)
6806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6807 ac_optarg=
6808 ac_shift=:
6809 ;;
6810 *)
6811 ac_option=$1
6812 ac_optarg=$2
6813 ac_shift=shift
6814 ;;
6815 esac
6816
6817 case $ac_option in
6818 # Handling of the options.
6819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6820 ac_cs_recheck=: ;;
6821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6822 printf "%s\n" "$ac_cs_version"; exit ;;
6823 --config | --confi | --conf | --con | --co | --c )
6824 printf "%s\n" "$ac_cs_config"; exit ;;
6825 --debug | --debu | --deb | --de | --d | -d )
6826 debug=: ;;
6827 --file | --fil | --fi | --f )
6828 $ac_shift
6829 case $ac_optarg in
6830 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6831 '') as_fn_error $? "missing file argument" ;;
6832 esac
6833 as_fn_append CONFIG_FILES " '$ac_optarg'"
6834 ac_need_defaults=false;;
6835 --header | --heade | --head | --hea )
6836 $ac_shift
6837 case $ac_optarg in
6838 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6839 esac
6840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6841 ac_need_defaults=false;;
6842 --he | --h)
6843 # Conflict between --help and --header
6844 as_fn_error $? "ambiguous option: '$1'
6845 Try '$0 --help' for more information.";;
6846 --help | --hel | -h )
6847 printf "%s\n" "$ac_cs_usage"; exit ;;
6848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6850 ac_cs_silent=: ;;
6851
6852 # This is an error.
6853 -*) as_fn_error $? "unrecognized option: '$1'
6854 Try '$0 --help' for more information." ;;
6855
6856 *) as_fn_append ac_config_targets " $1"
6857 ac_need_defaults=false ;;
6858
6859 esac
6860 shift
6861 done
6862
6863 ac_configure_extra_args=
6864
6865 if $ac_cs_silent; then
6866 exec 6>/dev/null
6867 ac_configure_extra_args="$ac_configure_extra_args --silent"
6868 fi
6869
6870 _ACEOF
6871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6872 if \$ac_cs_recheck; then
6873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6874 shift
6875 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6876 CONFIG_SHELL='$SHELL'
6877 export CONFIG_SHELL
6878 exec "\$@"
6879 fi
6880
6881 _ACEOF
6882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6883 exec 5>>config.log
6884 {
6885 echo
6886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6887 ## Running $as_me. ##
6888 _ASBOX
6889 printf "%s\n" "$ac_log"
6890 } >&5
6891
6892 _ACEOF
6893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6894 #
6895 # INIT-COMMANDS
6896 #
6897 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
6898
6899 _ACEOF
6900
6901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6902
6903 # Handling of arguments.
6904 for ac_config_target in $ac_config_targets
6905 do
6906 case $ac_config_target in
6907 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6908 "libtiff-src/tif_config.h") CONFIG_FILES="$CONFIG_FILES libtiff-src/tif_config.h:libtiff-src/tiffconf.h" ;;
6909 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6910 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6911 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6912
6913 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
6914 esac
6915 done
6916
6917
6918 # If the user did not use the arguments to specify the items to instantiate,
6919 # then the envvar interface is used. Set only those that are not.
6920 # We use the long form for the default assignment because of an extremely
6921 # bizarre bug on SunOS 4.1.3.
6922 if $ac_need_defaults; then
6923 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6924 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6925 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
6926 fi
6927
6928 # Have a temporary directory for convenience. Make it in the build tree
6929 # simply because there is no reason against having it here, and in addition,
6930 # creating and moving files from /tmp can sometimes cause problems.
6931 # Hook for its removal unless debugging.
6932 # Note that there is a small window in which the directory will not be cleaned:
6933 # after its creation but before its name has been assigned to '$tmp'.
6934 $debug ||
6935 {
6936 tmp= ac_tmp=
6937 trap 'exit_status=$?
6938 : "${ac_tmp:=$tmp}"
6939 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6940 ' 0
6941 trap 'as_fn_exit 1' 1 2 13 15
6942 }
6943 # Create a (secure) tmp directory for tmp files.
6944
6945 {
6946 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6947 test -d "$tmp"
6948 } ||
6949 {
6950 tmp=./conf$$-$RANDOM
6951 (umask 077 && mkdir "$tmp")
6952 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6953 ac_tmp=$tmp
6954
6955 # Set up the scripts for CONFIG_FILES section.
6956 # No need to generate them if there are no CONFIG_FILES.
6957 # This happens for instance with './config.status config.h'.
6958 if test -n "$CONFIG_FILES"; then
6959
6960
6961 ac_cr=`echo X | tr X '\015'`
6962 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6963 # But we know of no other shell where ac_cr would be empty at this
6964 # point, so we can use a bashism as a fallback.
6965 if test "x$ac_cr" = x; then
6966 eval ac_cr=\$\'\\r\'
6967 fi
6968 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6969 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6970 ac_cs_awk_cr='\\r'
6971 else
6972 ac_cs_awk_cr=$ac_cr
6973 fi
6974
6975 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6976 _ACEOF
6977
6978
6979 {
6980 echo "cat >conf$$subs.awk <<_ACEOF" &&
6981 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6982 echo "_ACEOF"
6983 } >conf$$subs.sh ||
6984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6985 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6986 ac_delim='%!_!# '
6987 for ac_last_try in false false false false false :; do
6988 . ./conf$$subs.sh ||
6989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6990
6991 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6992 if test $ac_delim_n = $ac_delim_num; then
6993 break
6994 elif $ac_last_try; then
6995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6996 else
6997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6998 fi
6999 done
7000 rm -f conf$$subs.sh
7001
7002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7003 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7004 _ACEOF
7005 sed -n '
7006 h
7007 s/^/S["/; s/!.*/"]=/
7008 p
7009 g
7010 s/^[^!]*!//
7011 :repl
7012 t repl
7013 s/'"$ac_delim"'$//
7014 t delim
7015 :nl
7016 h
7017 s/\(.\{148\}\)..*/\1/
7018 t more1
7019 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7020 p
7021 n
7022 b repl
7023 :more1
7024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7025 p
7026 g
7027 s/.\{148\}//
7028 t nl
7029 :delim
7030 h
7031 s/\(.\{148\}\)..*/\1/
7032 t more2
7033 s/["\\]/\\&/g; s/^/"/; s/$/"/
7034 p
7035 b
7036 :more2
7037 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7038 p
7039 g
7040 s/.\{148\}//
7041 t delim
7042 ' <conf$$subs.awk | sed '
7043 /^[^""]/{
7044 N
7045 s/\n//
7046 }
7047 ' >>$CONFIG_STATUS || ac_write_fail=1
7048 rm -f conf$$subs.awk
7049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7050 _ACAWK
7051 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7052 for (key in S) S_is_set[key] = 1
7053 FS = ""
7054
7055 }
7056 {
7057 line = $ 0
7058 nfields = split(line, field, "@")
7059 substed = 0
7060 len = length(field[1])
7061 for (i = 2; i < nfields; i++) {
7062 key = field[i]
7063 keylen = length(key)
7064 if (S_is_set[key]) {
7065 value = S[key]
7066 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7067 len += length(value) + length(field[++i])
7068 substed = 1
7069 } else
7070 len += 1 + keylen
7071 }
7072
7073 print line
7074 }
7075
7076 _ACAWK
7077 _ACEOF
7078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7079 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7080 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7081 else
7082 cat
7083 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7084 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7085 _ACEOF
7086
7087 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7088 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7089 # trailing colons and then remove the whole line if VPATH becomes empty
7090 # (actually we leave an empty line to preserve line numbers).
7091 if test "x$srcdir" = x.; then
7092 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7093 h
7094 s///
7095 s/^/:/
7096 s/[ ]*$/:/
7097 s/:\$(srcdir):/:/g
7098 s/:\${srcdir}:/:/g
7099 s/:@srcdir@:/:/g
7100 s/^:*//
7101 s/:*$//
7102 x
7103 s/\(=[ ]*\).*/\1/
7104 G
7105 s/\n//
7106 s/^[^=]*=[ ]*$//
7107 }'
7108 fi
7109
7110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7111 fi # test -n "$CONFIG_FILES"
7112
7113 # Set up the scripts for CONFIG_HEADERS section.
7114 # No need to generate them if there are no CONFIG_HEADERS.
7115 # This happens for instance with './config.status Makefile'.
7116 if test -n "$CONFIG_HEADERS"; then
7117 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7118 BEGIN {
7119 _ACEOF
7120
7121 # Transform confdefs.h into an awk script 'defines.awk', embedded as
7122 # here-document in config.status, that substitutes the proper values into
7123 # config.h.in to produce config.h.
7124
7125 # Create a delimiter string that does not exist in confdefs.h, to ease
7126 # handling of long lines.
7127 ac_delim='%!_!# '
7128 for ac_last_try in false false :; do
7129 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7130 if test -z "$ac_tt"; then
7131 break
7132 elif $ac_last_try; then
7133 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7134 else
7135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7136 fi
7137 done
7138
7139 # For the awk script, D is an array of macro values keyed by name,
7140 # likewise P contains macro parameters if any. Preserve backslash
7141 # newline sequences.
7142
7143 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7144 sed -n '
7145 s/.\{148\}/&'"$ac_delim"'/g
7146 t rset
7147 :rset
7148 s/^[ ]*#[ ]*define[ ][ ]*/ /
7149 t def
7150 d
7151 :def
7152 s/\\$//
7153 t bsnl
7154 s/["\\]/\\&/g
7155 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7156 D["\1"]=" \3"/p
7157 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7158 d
7159 :bsnl
7160 s/["\\]/\\&/g
7161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7162 D["\1"]=" \3\\\\\\n"\\/p
7163 t cont
7164 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7165 t cont
7166 d
7167 :cont
7168 n
7169 s/.\{148\}/&'"$ac_delim"'/g
7170 t clear
7171 :clear
7172 s/\\$//
7173 t bsnlc
7174 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7175 d
7176 :bsnlc
7177 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7178 b cont
7179 ' <confdefs.h | sed '
7180 s/'"$ac_delim"'/"\\\
7181 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7182
7183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7184 for (key in D) D_is_set[key] = 1
7185 FS = ""
7186 }
7187 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7188 line = \$ 0
7189 split(line, arg, " ")
7190 if (arg[1] == "#") {
7191 defundef = arg[2]
7192 mac1 = arg[3]
7193 } else {
7194 defundef = substr(arg[1], 2)
7195 mac1 = arg[2]
7196 }
7197 split(mac1, mac2, "(") #)
7198 macro = mac2[1]
7199 prefix = substr(line, 1, index(line, defundef) - 1)
7200 if (D_is_set[macro]) {
7201 # Preserve the white space surrounding the "#".
7202 print prefix "define", macro P[macro] D[macro]
7203 next
7204 } else {
7205 # Replace #undef with comments. This is necessary, for example,
7206 # in the case of _POSIX_SOURCE, which is predefined and required
7207 # on some systems where configure will not decide to define it.
7208 if (defundef == "undef") {
7209 print "/*", prefix defundef, macro, "*/"
7210 next
7211 }
7212 }
7213 }
7214 { print }
7215 _ACAWK
7216 _ACEOF
7217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7218 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7219 fi # test -n "$CONFIG_HEADERS"
7220
7221
7222 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7223 shift
7224 for ac_tag
7225 do
7226 case $ac_tag in
7227 :[FHLC]) ac_mode=$ac_tag; continue;;
7228 esac
7229 case $ac_mode$ac_tag in
7230 :[FHL]*:*);;
7231 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
7232 :[FH]-) ac_tag=-:-;;
7233 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7234 esac
7235 ac_save_IFS=$IFS
7236 IFS=:
7237 set x $ac_tag
7238 IFS=$ac_save_IFS
7239 shift
7240 ac_file=$1
7241 shift
7242
7243 case $ac_mode in
7244 :L) ac_source=$1;;
7245 :[FH])
7246 ac_file_inputs=
7247 for ac_f
7248 do
7249 case $ac_f in
7250 -) ac_f="$ac_tmp/stdin";;
7251 *) # Look for the file first in the build tree, then in the source tree
7252 # (if the path is not absolute). The absolute path cannot be DOS-style,
7253 # because $ac_f cannot contain ':'.
7254 test -f "$ac_f" ||
7255 case $ac_f in
7256 [\\/$]*) false;;
7257 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7258 esac ||
7259 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
7260 esac
7261 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7262 as_fn_append ac_file_inputs " '$ac_f'"
7263 done
7264
7265 # Let's still pretend it is 'configure' which instantiates (i.e., don't
7266 # use $as_me), people would be surprised to read:
7267 # /* config.h. Generated by config.status. */
7268 configure_input='Generated from '`
7269 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7270 `' by configure.'
7271 if test x"$ac_file" != x-; then
7272 configure_input="$ac_file. $configure_input"
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7274 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7275 fi
7276 # Neutralize special characters interpreted by sed in replacement strings.
7277 case $configure_input in #(
7278 *\&* | *\|* | *\\* )
7279 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7280 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7281 *) ac_sed_conf_input=$configure_input;;
7282 esac
7283
7284 case $ac_tag in
7285 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7287 esac
7288 ;;
7289 esac
7290
7291 ac_dir=`$as_dirname -- "$ac_file" ||
7292 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7293 X"$ac_file" : 'X\(//\)[^/]' \| \
7294 X"$ac_file" : 'X\(//\)$' \| \
7295 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7296 printf "%s\n" X"$ac_file" |
7297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7298 s//\1/
7299 q
7300 }
7301 /^X\(\/\/\)[^/].*/{
7302 s//\1/
7303 q
7304 }
7305 /^X\(\/\/\)$/{
7306 s//\1/
7307 q
7308 }
7309 /^X\(\/\).*/{
7310 s//\1/
7311 q
7312 }
7313 s/.*/./; q'`
7314 as_dir="$ac_dir"; as_fn_mkdir_p
7315 ac_builddir=.
7316
7317 case "$ac_dir" in
7318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7319 *)
7320 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7321 # A ".." for each directory in $ac_dir_suffix.
7322 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7323 case $ac_top_builddir_sub in
7324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7326 esac ;;
7327 esac
7328 ac_abs_top_builddir=$ac_pwd
7329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7330 # for backward compatibility:
7331 ac_top_builddir=$ac_top_build_prefix
7332
7333 case $srcdir in
7334 .) # We are building in place.
7335 ac_srcdir=.
7336 ac_top_srcdir=$ac_top_builddir_sub
7337 ac_abs_top_srcdir=$ac_pwd ;;
7338 [\\/]* | ?:[\\/]* ) # Absolute name.
7339 ac_srcdir=$srcdir$ac_dir_suffix;
7340 ac_top_srcdir=$srcdir
7341 ac_abs_top_srcdir=$srcdir ;;
7342 *) # Relative name.
7343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7344 ac_top_srcdir=$ac_top_build_prefix$srcdir
7345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7346 esac
7347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7348
7349
7350 case $ac_mode in
7351 :F)
7352 #
7353 # CONFIG_FILE
7354 #
7355
7356 case $INSTALL in
7357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7359 esac
7360 ac_MKDIR_P=$MKDIR_P
7361 case $MKDIR_P in
7362 [\\/$]* | ?:[\\/]* ) ;;
7363 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7364 esac
7365 _ACEOF
7366
7367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7368 # If the template does not know about datarootdir, expand it.
7369 # FIXME: This hack should be removed a few years after 2.60.
7370 ac_datarootdir_hack=; ac_datarootdir_seen=
7371 ac_sed_dataroot='
7372 /datarootdir/ {
7373 p
7374 q
7375 }
7376 /@datadir@/p
7377 /@docdir@/p
7378 /@infodir@/p
7379 /@localedir@/p
7380 /@mandir@/p'
7381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7382 *datarootdir*) ac_datarootdir_seen=yes;;
7383 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7385 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7386 _ACEOF
7387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7388 ac_datarootdir_hack='
7389 s&@datadir@&$datadir&g
7390 s&@docdir@&$docdir&g
7391 s&@infodir@&$infodir&g
7392 s&@localedir@&$localedir&g
7393 s&@mandir@&$mandir&g
7394 s&\\\${datarootdir}&$datarootdir&g' ;;
7395 esac
7396 _ACEOF
7397
7398 # Neutralize VPATH when '$srcdir' = '.'.
7399 # Shell code in configure.ac might set extrasub.
7400 # FIXME: do we really want to maintain this feature?
7401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7402 ac_sed_extra="$ac_vpsub
7403 $extrasub
7404 _ACEOF
7405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7406 :t
7407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7408 s|@configure_input@|$ac_sed_conf_input|;t t
7409 s&@top_builddir@&$ac_top_builddir_sub&;t t
7410 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7411 s&@srcdir@&$ac_srcdir&;t t
7412 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7413 s&@top_srcdir@&$ac_top_srcdir&;t t
7414 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7415 s&@builddir@&$ac_builddir&;t t
7416 s&@abs_builddir@&$ac_abs_builddir&;t t
7417 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7418 s&@INSTALL@&$ac_INSTALL&;t t
7419 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7420 $ac_datarootdir_hack
7421 "
7422 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7423 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7424
7425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7426 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7428 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7430 which seems to be undefined. Please make sure it is defined" >&5
7431 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7432 which seems to be undefined. Please make sure it is defined" >&2;}
7433
7434 rm -f "$ac_tmp/stdin"
7435 case $ac_file in
7436 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7437 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7438 esac \
7439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7440 ;;
7441 :H)
7442 #
7443 # CONFIG_HEADER
7444 #
7445 if test x"$ac_file" != x-; then
7446 {
7447 printf "%s\n" "/* $configure_input */" >&1 \
7448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7449 } >"$ac_tmp/config.h" \
7450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7451 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7453 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7454 else
7455 rm -f "$ac_file"
7456 mv "$ac_tmp/config.h" "$ac_file" \
7457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7458 fi
7459 else
7460 printf "%s\n" "/* $configure_input */" >&1 \
7461 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7462 || as_fn_error $? "could not create -" "$LINENO" 5
7463 fi
7464 # Compute "$ac_file"'s index in $config_headers.
7465 _am_arg="$ac_file"
7466 _am_stamp_count=1
7467 for _am_header in $config_headers :; do
7468 case $_am_header in
7469 $_am_arg | $_am_arg:* )
7470 break ;;
7471 * )
7472 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7473 esac
7474 done
7475 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7476 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7477 X"$_am_arg" : 'X\(//\)[^/]' \| \
7478 X"$_am_arg" : 'X\(//\)$' \| \
7479 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7480 printf "%s\n" X"$_am_arg" |
7481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7482 s//\1/
7483 q
7484 }
7485 /^X\(\/\/\)[^/].*/{
7486 s//\1/
7487 q
7488 }
7489 /^X\(\/\/\)$/{
7490 s//\1/
7491 q
7492 }
7493 /^X\(\/\).*/{
7494 s//\1/
7495 q
7496 }
7497 s/.*/./; q'`/stamp-h$_am_stamp_count
7498 ;;
7499
7500 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7501 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7502 ;;
7503 esac
7504
7505
7506 case $ac_file$ac_mode in
7507 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7508 # Older Autoconf quotes --file arguments for eval, but not when files
7509 # are listed without --file. Let's play safe and only enable the eval
7510 # if we detect the quoting.
7511 # TODO: see whether this extra hack can be removed once we start
7512 # requiring Autoconf 2.70 or later.
7513 case $CONFIG_FILES in #(
7514 *\'*) :
7515 eval set x "$CONFIG_FILES" ;; #(
7516 *) :
7517 set x $CONFIG_FILES ;; #(
7518 *) :
7519 ;;
7520 esac
7521 shift
7522 # Used to flag and report bootstrapping failures.
7523 am_rc=0
7524 for am_mf
7525 do
7526 # Strip MF so we end up with the name of the file.
7527 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7528 # Check whether this is an Automake generated Makefile which includes
7529 # dependency-tracking related rules and includes.
7530 # Grep'ing the whole file directly is not great: AIX grep has a line
7531 # limit of 2048, but all sed's we know have understand at least 4000.
7532 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7533 || continue
7534 am_dirpart=`$as_dirname -- "$am_mf" ||
7535 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7536 X"$am_mf" : 'X\(//\)[^/]' \| \
7537 X"$am_mf" : 'X\(//\)$' \| \
7538 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7539 printf "%s\n" X"$am_mf" |
7540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7541 s//\1/
7542 q
7543 }
7544 /^X\(\/\/\)[^/].*/{
7545 s//\1/
7546 q
7547 }
7548 /^X\(\/\/\)$/{
7549 s//\1/
7550 q
7551 }
7552 /^X\(\/\).*/{
7553 s//\1/
7554 q
7555 }
7556 s/.*/./; q'`
7557 am_filepart=`$as_basename -- "$am_mf" ||
7558 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7559 X"$am_mf" : 'X\(//\)$' \| \
7560 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7561 printf "%s\n" X/"$am_mf" |
7562 sed '/^.*\/\([^/][^/]*\)\/*$/{
7563 s//\1/
7564 q
7565 }
7566 /^X\/\(\/\/\)$/{
7567 s//\1/
7568 q
7569 }
7570 /^X\/\(\/\).*/{
7571 s//\1/
7572 q
7573 }
7574 s/.*/./; q'`
7575 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7576 && sed -e '/# am--include-marker/d' "$am_filepart" \
7577 | $MAKE -f - am--depfiles" >&5
7578 (cd "$am_dirpart" \
7579 && sed -e '/# am--include-marker/d' "$am_filepart" \
7580 | $MAKE -f - am--depfiles) >&5 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } || am_rc=$?
7584 done
7585 if test $am_rc -ne 0; then
7586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7588 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7589 for automatic dependency tracking. If GNU make was not used, consider
7590 re-running the configure script with MAKE=\"gmake\" (or whatever is
7591 necessary). You can also try re-running configure with the
7592 '--disable-dependency-tracking' option to at least be able to build
7593 the package (albeit without support for automatic dependency tracking).
7594 See 'config.log' for more details" "$LINENO" 5; }
7595 fi
7596 { am_dirpart=; unset am_dirpart;}
7597 { am_filepart=; unset am_filepart;}
7598 { am_mf=; unset am_mf;}
7599 { am_rc=; unset am_rc;}
7600 rm -f conftest-deps.mk
7601 }
7602 ;;
7603
7604 esac
7605 done # for ac_tag
7606
7607
7608 as_fn_exit 0
7609 _ACEOF
7610 ac_clean_files=$ac_clean_files_save
7611
7612 test $ac_write_fail = 0 ||
7613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7614
7615
7616 # configure is writing to config.log, and then calls config.status.
7617 # config.status does its own redirection, appending to config.log.
7618 # Unfortunately, on DOS this fails, as config.log is still kept open
7619 # by configure, so config.status won't be able to write to it; its
7620 # output is simply discarded. So we exec the FD to /dev/null,
7621 # effectively closing config.log, so it can be properly (re)opened and
7622 # appended to by config.status. When coming back to configure, we
7623 # need to make the FD available again.
7624 if test "$no_create" != yes; then
7625 ac_cs_success=:
7626 ac_config_status_args=
7627 test "$silent" = yes &&
7628 ac_config_status_args="$ac_config_status_args --quiet"
7629 exec 5>/dev/null
7630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7631 exec 5>>config.log
7632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7633 # would make configure fail if this is the last instruction.
7634 $ac_cs_success || as_fn_exit 1
7635 fi
7636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7638 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7639 fi
7640
7641