Debian Codegraph @

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