fix getsup (HH)
[luatex.git] / source / libs / libpng / configure
blob824a3d089d54e7a49362aca4932c2fe6db49223f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng (TeX Live) 1.6.28.
5 # Report bugs to <tex-k@tug.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='libpng (TeX Live)'
582 PACKAGE_TARNAME='libpng--tex-live-'
583 PACKAGE_VERSION='1.6.28'
584 PACKAGE_STRING='libpng (TeX Live) 1.6.28'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="libpng-src/pngget.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBPNG_DEFINES
629 LIBPNG_TREE
630 build_FALSE
631 build_TRUE
632 ZLIB_RULE
633 ZLIB_DEPEND
634 ZLIB_LIBS
635 ZLIB_INCLUDES
636 LIBOBJS
637 POW_LIB
638 EGREP
639 GREP
641 VISIBILITY_CFLAGS
642 LN_S
643 RANLIB
644 WARNING_CFLAGS
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 am__nodep
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
662 MAINT
663 MAINTAINER_MODE_FALSE
664 MAINTAINER_MODE_TRUE
665 AM_BACKSLASH
666 AM_DEFAULT_VERBOSITY
667 AM_DEFAULT_V
668 AM_V
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_silent_rules
734 enable_maintainer_mode
735 enable_dependency_tracking
736 enable_compiler_warnings
737 with_system_zlib
738 with_zlib_includes
739 with_zlib_libdir
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
800 ac_prev=
801 ac_dashdash=
802 for ac_option
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
821 ac_dashdash=yes ;;
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
840 --config-cache | -C)
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157 esac
1158 done
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213 test "$silent" = yes && exec 6>/dev/null
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1242 /^X\(\/\/\)$/{
1243 s//\1/
1246 /^X\(\/\).*/{
1247 s//\1/
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1255 else
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1284 # Report the --help message.
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures libpng (TeX Live) 1.6.28 to adapt to many kinds of systems.
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1297 Defaults for the options are specified in brackets.
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1321 For better control, use the options below.
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root
1339 [DATAROOTDIR/doc/libpng--tex-live-]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1346 cat <<\_ACEOF
1348 Program names:
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1352 _ACEOF
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of libpng (TeX Live) 1.6.28:";;
1358 esac
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-option-checking ignore unrecognized --enable/--with options
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-silent-rules less verbose build output (undo: "make V=1")
1366 --disable-silent-rules verbose build output (undo: "make V=0")
1367 --enable-maintainer-mode
1368 enable make rules and dependencies not useful (and
1369 sometimes confusing) to the casual installer
1370 --enable-dependency-tracking
1371 do not reject slow dependency extractors
1372 --disable-dependency-tracking
1373 speeds up one-time build
1374 --enable-compiler-warnings=[no|min|yes|max|all]
1375 Turn on compiler warnings [default: yes if
1376 maintainer-mode, min otherwise]
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-system-zlib use installed zlib headers and library
1382 --with-zlib-includes=DIR
1383 zlib headers installed in DIR
1384 --with-zlib-libdir=DIR zlib library installed in DIR
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CPP C preprocessor
1396 Use these variables to override the choices made by `configure' or to help
1397 it to find libraries and programs with nonstandard names/locations.
1399 Report bugs to <tex-k@tug.org>.
1400 _ACEOF
1401 ac_status=$?
1404 if test "$ac_init_help" = "recursive"; then
1405 # If there are subdirs, report their specific --help.
1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407 test -d "$ac_dir" ||
1408 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409 continue
1410 ac_builddir=.
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1428 case $srcdir in
1429 .) # We are building in place.
1430 ac_srcdir=.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1437 *) # Relative name.
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461 cat <<\_ACEOF
1462 libpng (TeX Live) configure 1.6.28
1463 generated by GNU Autoconf 2.69
1465 Copyright (C) 2012 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1468 _ACEOF
1469 exit
1472 ## ------------------------ ##
1473 ## Autoconf initialization. ##
1474 ## ------------------------ ##
1476 # ac_fn_c_try_compile LINENO
1477 # --------------------------
1478 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_compile ()
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 rm -f conftest.$ac_objext
1483 if { { ac_try="$ac_compile"
1484 case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_compile") 2>conftest.err
1491 ac_status=$?
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } && {
1499 test -z "$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 } && test -s conftest.$ac_objext; then :
1502 ac_retval=0
1503 else
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1507 ac_retval=1
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status $ac_retval
1512 } # ac_fn_c_try_compile
1514 # ac_fn_c_try_link LINENO
1515 # -----------------------
1516 # Try to link conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_link ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext conftest$ac_exeext
1521 if { { ac_try="$ac_link"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_link") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest$ac_exeext && {
1540 test "$cross_compiling" = yes ||
1541 test -x conftest$ac_exeext
1542 }; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1548 ac_retval=1
1550 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1551 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1552 # interfere with the next link command; also delete a directory that is
1553 # left behind by Apple's compiler. We do this before executing the actions.
1554 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1558 } # ac_fn_c_try_link
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1595 } # ac_fn_c_try_cpp
1597 # ac_fn_c_try_run LINENO
1598 # ----------------------
1599 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1600 # that executables *can* be run.
1601 ac_fn_c_try_run ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_link"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>&5
1612 ac_status=$?
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615 { { case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_try") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; }; }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: program exited with status $ac_status" >&5
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1631 ac_retval=$ac_status
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_run
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if eval \${$3+:} false; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667 else
1668 ac_header_compiler=no
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683 else
1684 ac_header_preproc=no
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ( $as_echo "## ---------------------------- ##
1710 ## Report this to tex-k@tug.org ##
1711 ## ---------------------------- ##"
1712 ) | sed "s/^/$as_me: WARNING: /" >&2
1714 esac
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 eval "$3=\$ac_header_compiler"
1722 eval ac_res=\$$3
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 } # ac_fn_c_check_header_mongrel
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749 else
1750 eval "$3=no"
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 } # ac_fn_c_check_header_compile
1761 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1762 # -------------------------------------------
1763 # Tests whether TYPE exists after having included INCLUDES, setting cache
1764 # variable VAR accordingly.
1765 ac_fn_c_check_type ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 eval "$3=no"
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1778 main ()
1780 if (sizeof ($2))
1781 return 0;
1783 return 0;
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1791 main ()
1793 if (sizeof (($2)))
1794 return 0;
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1801 else
1802 eval "$3=yes"
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_type
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1837 #ifdef __STDC__
1838 # include <limits.h>
1839 #else
1840 # include <assert.h>
1841 #endif
1843 #undef $2
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1860 main ()
1862 return $2 ();
1864 return 0;
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_func
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1885 It was created by libpng (TeX Live) $as_me 1.6.28, which was
1886 generated by GNU Autoconf 2.69. Invocation command line was
1888 $ $0 $@
1890 _ACEOF
1891 exec 5>>config.log
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915 _ASUNAME
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1923 done
1924 IFS=$as_save_IFS
1926 } >&5
1928 cat >&5 <<_ACEOF
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1935 _ACEOF
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1949 for ac_arg
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1978 as_fn_append ac_configure_args " '$ac_arg'"
1980 esac
1981 done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log. We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1994 echo
1996 $as_echo "## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 esac |
2028 sort
2030 echo
2032 $as_echo "## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2046 if test -n "$ac_subst_files"; then
2047 $as_echo "## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 $as_echo "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2062 if test -s confdefs.h; then
2063 $as_echo "## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2070 test "$ac_signal" != 0 &&
2071 $as_echo "$as_me: caught signal $ac_signal"
2072 $as_echo "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2086 $as_echo "/* confdefs.h */" > confdefs.h
2088 # Predefined preprocessor variables.
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 _ACEOF
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 _ACEOF
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_URL "$PACKAGE_URL"
2112 _ACEOF
2115 # Let the site file select an alternate cache file if it wants to.
2116 # Prefer an explicitly selected file to automatically selected ones.
2117 ac_site_file1=NONE
2118 ac_site_file2=NONE
2119 if test -n "$CONFIG_SITE"; then
2120 # We do not want a PATH search for config.site.
2121 case $CONFIG_SITE in #((
2122 -*) ac_site_file1=./$CONFIG_SITE;;
2123 */*) ac_site_file1=$CONFIG_SITE;;
2124 *) ac_site_file1=./$CONFIG_SITE;;
2125 esac
2126 elif test "x$prefix" != xNONE; then
2127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
2129 else
2130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
2133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135 test "x$ac_site_file" = xNONE && continue
2136 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139 sed 's/^/| /' "$ac_site_file" >&5
2140 . "$ac_site_file" \
2141 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 as_fn_error $? "failed to load site script $ac_site_file
2144 See \`config.log' for more details" "$LINENO" 5; }
2146 done
2148 if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special files
2150 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 case $cache_file in
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2157 esac
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 >$cache_file
2165 # Check that the precious variables saved in the cache have kept the same
2166 # value.
2167 ac_cache_corrupted=false
2168 for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2174 set,)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,set)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,);;
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 fi;;
2202 esac
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2205 case $ac_new_val in
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2208 esac
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 esac
2214 done
2215 if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 ## -------------------- ##
2223 ## Main body of script. ##
2224 ## -------------------- ##
2226 ac_ext=c
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 ac_aux_dir=
2236 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2237 if test -f "$ac_dir/install-sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 break
2241 elif test -f "$ac_dir/install.sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 break
2245 elif test -f "$ac_dir/shtool"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/shtool install -c"
2248 break
2250 done
2251 if test -z "$ac_aux_dir"; then
2252 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2255 # These three variables are undocumented and unsupported,
2256 # and are intended to be withdrawn in a future Autoconf release.
2257 # They can cause serious problems if a builder's source tree is in a directory
2258 # whose full name contains unusual characters.
2259 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2260 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2261 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266 am__api_version='1.15'
2268 # Find a good install program. We prefer a C program (faster),
2269 # so one script is as good as another. But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2274 # AIX /bin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298 /usr/ucb/* ) ;;
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2302 # by default.
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2314 else
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2318 mkdir conftest.dir
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2323 then
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325 break 3
2329 done
2330 done
2332 esac
2334 done
2335 IFS=$as_save_IFS
2337 rm -rf conftest.one conftest.two conftest.dir
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2342 else
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2363 # Reject unsafe characters in $srcdir or the absolute working directory
2364 # name. Accept space and tab only in the latter.
2365 am_lf='
2367 case `pwd` in
2368 *[\\\"\#\$\&\'\`$am_lf]*)
2369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2370 esac
2371 case $srcdir in
2372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2374 esac
2376 # Do 'set' in a subshell so we don't clobber the current shell's
2377 # arguments. Must try -L first in case configure is actually a
2378 # symlink; some systems play weird games with the mod time of symlinks
2379 # (eg FreeBSD returns the mod time of the symlink's containing
2380 # directory).
2381 if (
2382 am_has_slept=no
2383 for am_try in 1 2; do
2384 echo "timestamp, slept: $am_has_slept" > conftest.file
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2387 # -L didn't work.
2388 set X `ls -t "$srcdir/configure" conftest.file`
2390 if test "$*" != "X $srcdir/configure conftest.file" \
2391 && test "$*" != "X conftest.file $srcdir/configure"; then
2393 # If neither matched, then we have a broken ls. This can happen
2394 # if, for instance, CONFIG_SHELL is bash and it inherits a
2395 # broken ls alias from the environment. This has actually
2396 # happened. Such a system could not be considered "sane".
2397 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2398 alias in your environment" "$LINENO" 5
2400 if test "$2" = conftest.file || test $am_try -eq 2; then
2401 break
2403 # Just in case.
2404 sleep 1
2405 am_has_slept=yes
2406 done
2407 test "$2" = conftest.file
2409 then
2410 # Ok.
2412 else
2413 as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 # If we didn't sleep, we still need to ensure time stamps of config.status and
2419 # generated files are strictly newer.
2420 am_sleep_pid=
2421 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2422 ( sleep 1 ) &
2423 am_sleep_pid=$!
2426 rm -f conftest.file
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438 # Expand $ac_aux_dir to an absolute path.
2439 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2441 if test x"${MISSING+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 esac
2449 # Use eval to expand $SHELL
2450 if eval "$MISSING --is-lightweight"; then
2451 am_missing_run="$MISSING "
2452 else
2453 am_missing_run=
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2455 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2458 if test x"${install_sh+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463 install_sh="\${SHELL} $am_aux_dir/install-sh"
2464 esac
2467 # Installed binaries are usually stripped using 'strip' when the user
2468 # run "make install-strip". However 'strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the 'STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$STRIP"; then
2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2494 done
2495 done
2496 IFS=$as_save_IFS
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2511 if test -z "$ac_cv_prog_STRIP"; then
2512 ac_ct_STRIP=$STRIP
2513 # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$ac_ct_STRIP"; then
2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_STRIP="strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2534 done
2535 done
2536 IFS=$as_save_IFS
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2549 if test "x$ac_ct_STRIP" = x; then
2550 STRIP=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 STRIP=$ac_ct_STRIP
2560 else
2561 STRIP="$ac_cv_prog_STRIP"
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569 if test -z "$MKDIR_P"; then
2570 if ${ac_cv_path_mkdir+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_prog in mkdir gmkdir; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582 'mkdir (GNU coreutils) '* | \
2583 'mkdir (coreutils) '* | \
2584 'mkdir (fileutils) '4.1*)
2585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 break 3;;
2587 esac
2588 done
2589 done
2590 done
2591 IFS=$as_save_IFS
2595 test -d ./--version && rmdir ./--version
2596 if test "${ac_cv_path_mkdir+set}" = set; then
2597 MKDIR_P="$ac_cv_path_mkdir -p"
2598 else
2599 # As a last resort, use the slow shell script. Don't cache a
2600 # value for MKDIR_P within a source directory, because that will
2601 # break other packages using the cache if that directory is
2602 # removed, or if the value is a relative name.
2603 MKDIR_P="$ac_install_sh -d"
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2607 $as_echo "$MKDIR_P" >&6; }
2609 for ac_prog in gawk mawk nawk awk
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_AWK+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2632 done
2633 done
2634 IFS=$as_save_IFS
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641 $as_echo "$AWK" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2648 test -n "$AWK" && break
2649 done
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653 set x ${MAKE-make}
2654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat >conftest.make <<\_ACEOF
2659 SHELL = /bin/sh
2660 all:
2661 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 _ACEOF
2663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 *@@@%%%=?*=@@@%%%*)
2666 eval ac_cv_prog_make_${ac_make}_set=yes;;
2668 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 esac
2670 rm -f conftest.make
2672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 SET_MAKE=
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 SET_MAKE="MAKE=${MAKE-make}"
2682 rm -rf .tst 2>/dev/null
2683 mkdir .tst 2>/dev/null
2684 if test -d .tst; then
2685 am__leading_dot=.
2686 else
2687 am__leading_dot=_
2689 rmdir .tst 2>/dev/null
2691 # Check whether --enable-silent-rules was given.
2692 if test "${enable_silent_rules+set}" = set; then :
2693 enableval=$enable_silent_rules;
2696 case $enable_silent_rules in # (((
2697 yes) AM_DEFAULT_VERBOSITY=0;;
2698 no) AM_DEFAULT_VERBOSITY=1;;
2699 *) AM_DEFAULT_VERBOSITY=1;;
2700 esac
2701 am_make=${MAKE-make}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2703 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2704 if ${am_cv_make_support_nested_variables+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if $as_echo 'TRUE=$(BAR$(V))
2708 BAR0=false
2709 BAR1=true
2711 am__doit:
2712 @$(TRUE)
2713 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2714 am_cv_make_support_nested_variables=yes
2715 else
2716 am_cv_make_support_nested_variables=no
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2720 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2721 if test $am_cv_make_support_nested_variables = yes; then
2722 AM_V='$(V)'
2723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2724 else
2725 AM_V=$AM_DEFAULT_VERBOSITY
2726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2728 AM_BACKSLASH='\'
2730 DEPDIR="${am__leading_dot}deps"
2732 ac_config_commands="$ac_config_commands depfiles"
2735 am_make=${MAKE-make}
2736 cat > confinc << 'END'
2737 am__doit:
2738 @echo this is the am__doit target
2739 .PHONY: am__doit
2741 # If we don't find an include directive, just comment out the code.
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2743 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2744 am__include="#"
2745 am__quote=
2746 _am_result=none
2747 # First try GNU make style include.
2748 echo "include confinc" > confmf
2749 # Ignore all kinds of additional output from 'make'.
2750 case `$am_make -s -f confmf 2> /dev/null` in #(
2751 *the\ am__doit\ target*)
2752 am__include=include
2753 am__quote=
2754 _am_result=GNU
2756 esac
2757 # Now try BSD make style include.
2758 if test "$am__include" = "#"; then
2759 echo '.include "confinc"' > confmf
2760 case `$am_make -s -f confmf 2> /dev/null` in #(
2761 *the\ am__doit\ target*)
2762 am__include=.include
2763 am__quote="\""
2764 _am_result=BSD
2766 esac
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2771 $as_echo "$_am_result" >&6; }
2772 rm -f confinc confmf
2774 # Check whether --enable-dependency-tracking was given.
2775 if test "${enable_dependency_tracking+set}" = set; then :
2776 enableval=$enable_dependency_tracking;
2779 if test "x$enable_dependency_tracking" != xno; then
2780 am_depcomp="$ac_aux_dir/depcomp"
2781 AMDEPBACKSLASH='\'
2782 am__nodep='_no'
2784 if test "x$enable_dependency_tracking" != xno; then
2785 AMDEP_TRUE=
2786 AMDEP_FALSE='#'
2787 else
2788 AMDEP_TRUE='#'
2789 AMDEP_FALSE=
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2822 IFS=$as_save_IFS
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2837 if test -z "$ac_cv_prog_CC"; then
2838 ac_ct_CC=$CC
2839 # Extract the first word of "gcc", so it can be a program name with args.
2840 set dummy gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$ac_ct_CC"; then
2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_CC="gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2860 done
2861 done
2862 IFS=$as_save_IFS
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869 $as_echo "$ac_ct_CC" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2875 if test "x$ac_ct_CC" = x; then
2876 CC=""
2877 else
2878 case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884 CC=$ac_ct_CC
2886 else
2887 CC="$ac_cv_prog_CC"
2890 if test -z "$CC"; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2931 if test -z "$CC"; then
2932 # Extract the first word of "cc", so it can be a program name with args.
2933 set dummy cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 ac_prog_rejected=no
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951 ac_prog_rejected=yes
2952 continue
2954 ac_cv_prog_CC="cc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2962 if test $ac_prog_rejected = yes; then
2963 # We found a bogon in the path, so make sure we never use it.
2964 set dummy $ac_cv_prog_CC
2965 shift
2966 if test $# != 0; then
2967 # We chose a different compiler from the bogus one.
2968 # However, it has the same basename, so the bogon will be chosen
2969 # first if we set CC to just the basename; use the full file name.
2970 shift
2971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 for ac_prog in cl.exe
2991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_CC+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3012 done
3013 done
3014 IFS=$as_save_IFS
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3028 test -n "$CC" && break
3029 done
3031 if test -z "$CC"; then
3032 ac_ct_CC=$CC
3033 for ac_prog in cl.exe
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_ac_ct_CC="$ac_prog"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 $as_echo "$ac_ct_CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3072 test -n "$ac_ct_CC" && break
3073 done
3075 if test "x$ac_ct_CC" = x; then
3076 CC=""
3077 else
3078 case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082 ac_tool_warned=yes ;;
3083 esac
3084 CC=$ac_ct_CC
3091 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error $? "no acceptable C compiler found in \$PATH
3094 See \`config.log' for more details" "$LINENO" 5; }
3096 # Provide some information about the compiler.
3097 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3098 set X $ac_compile
3099 ac_compiler=$2
3100 for ac_option in --version -v -V -qversion; do
3101 { { ac_try="$ac_compiler $ac_option >&5"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3109 ac_status=$?
3110 if test -s conftest.err; then
3111 sed '10a\
3112 ... rest of stderr output deleted ...
3113 10q' conftest.err >conftest.er1
3114 cat conftest.er1 >&5
3116 rm -f conftest.er1 conftest.err
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }
3119 done
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3125 main ()
3129 return 0;
3131 _ACEOF
3132 ac_clean_files_save=$ac_clean_files
3133 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3134 # Try to create an executable without -o first, disregard a.out.
3135 # It will help us diagnose broken compilers, and finding out an intuition
3136 # of exeext.
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3138 $as_echo_n "checking whether the C compiler works... " >&6; }
3139 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3141 # The possible output files:
3142 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3144 ac_rmfiles=
3145 for ac_file in $ac_files
3147 case $ac_file in
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150 esac
3151 done
3152 rm -f $ac_rmfiles
3154 if { { ac_try="$ac_link_default"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link_default") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3168 # so that the user can short-circuit this test for compilers unknown to
3169 # Autoconf.
3170 for ac_file in $ac_files ''
3172 test -f "$ac_file" || continue
3173 case $ac_file in
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3176 [ab].out )
3177 # We found the default executable, but exeext='' is most
3178 # certainly right.
3179 break;;
3180 *.* )
3181 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3182 then :; else
3183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 # We set ac_cv_exeext here because the later test for it is not
3186 # safe: cross compilers may not add the suffix if given an `-o'
3187 # argument, so we may need to know it at that point already.
3188 # Even if this section looks crufty: it has the advantage of
3189 # actually working.
3190 break;;
3192 break;;
3193 esac
3194 done
3195 test "$ac_cv_exeext" = no && ac_cv_exeext=
3197 else
3198 ac_file=''
3200 if test -z "$ac_file"; then :
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error 77 "C compiler cannot create executables
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3215 $as_echo_n "checking for C compiler default output file name... " >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3217 $as_echo "$ac_file" >&6; }
3218 ac_exeext=$ac_cv_exeext
3220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3223 $as_echo_n "checking for suffix of executables... " >&6; }
3224 if { { ac_try="$ac_link"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3238 # `rm'.
3239 for ac_file in conftest.exe conftest conftest.*; do
3240 test -f "$ac_file" || continue
3241 case $ac_file in
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244 break;;
3245 * ) break;;
3246 esac
3247 done
3248 else
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details" "$LINENO" 5; }
3254 rm -f conftest conftest$ac_cv_exeext
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3256 $as_echo "$ac_cv_exeext" >&6; }
3258 rm -f conftest.$ac_ext
3259 EXEEXT=$ac_cv_exeext
3260 ac_exeext=$EXEEXT
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <stdio.h>
3265 main ()
3267 FILE *f = fopen ("conftest.out", "w");
3268 return ferror (f) || fclose (f) != 0;
3271 return 0;
3273 _ACEOF
3274 ac_clean_files="$ac_clean_files conftest.out"
3275 # Check that the compiler produces executables we can run. If not, either
3276 # the compiler is broken, or we cross compile.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3278 $as_echo_n "checking whether we are cross compiling... " >&6; }
3279 if test "$cross_compiling" != yes; then
3280 { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3291 if { ac_try='./conftest$ac_cv_exeext'
3292 { { case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_try") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; }; then
3302 cross_compiling=no
3303 else
3304 if test "$cross_compiling" = maybe; then
3305 cross_compiling=yes
3306 else
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot run C compiled programs.
3310 If you meant to cross compile, use \`--host'.
3311 See \`config.log' for more details" "$LINENO" 5; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3316 $as_echo "$cross_compiling" >&6; }
3318 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321 $as_echo_n "checking for suffix of object files... " >&6; }
3322 if ${ac_cv_objext+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3329 main ()
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.o conftest.obj
3337 if { { ac_try="$ac_compile"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_compile") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; then :
3348 for ac_file in conftest.o conftest.obj conftest.*; do
3349 test -f "$ac_file" || continue;
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3353 break;;
3354 esac
3355 done
3356 else
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of object files: cannot compile
3363 See \`config.log' for more details" "$LINENO" 5; }
3365 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368 $as_echo "$ac_cv_objext" >&6; }
3369 OBJEXT=$ac_cv_objext
3370 ac_objext=$OBJEXT
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373 if ${ac_cv_c_compiler_gnu+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3382 #ifndef __GNUC__
3383 choke me
3384 #endif
3387 return 0;
3389 _ACEOF
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_compiler_gnu=yes
3392 else
3393 ac_compiler_gnu=no
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401 if test $ac_compiler_gnu = yes; then
3402 GCC=yes
3403 else
3404 GCC=
3406 ac_test_CFLAGS=${CFLAGS+set}
3407 ac_save_CFLAGS=$CFLAGS
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3410 if ${ac_cv_prog_cc_g+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 ac_save_c_werror_flag=$ac_c_werror_flag
3414 ac_c_werror_flag=yes
3415 ac_cv_prog_cc_g=no
3416 CFLAGS="-g"
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3421 main ()
3425 return 0;
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429 ac_cv_prog_cc_g=yes
3430 else
3431 CFLAGS=""
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3445 else
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 CFLAGS="-g"
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3452 main ()
3456 return 0;
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_g=yes
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470 $as_echo "$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3475 CFLAGS="-g -O2"
3476 else
3477 CFLAGS="-g"
3479 else
3480 if test "$GCC" = yes; then
3481 CFLAGS="-O2"
3482 else
3483 CFLAGS=
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488 if ${ac_cv_prog_cc_c89+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 ac_cv_prog_cc_c89=no
3492 ac_save_CC=$CC
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <stdarg.h>
3496 #include <stdio.h>
3497 struct stat;
3498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3499 struct buf { int x; };
3500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3501 static char *e (p, i)
3502 char **p;
3503 int i;
3505 return p[i];
3507 static char *f (char * (*g) (char **, int), char **p, ...)
3509 char *s;
3510 va_list v;
3511 va_start (v,p);
3512 s = g (p, va_arg (v,int));
3513 va_end (v);
3514 return s;
3517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3518 function prototypes and stuff, but not '\xHH' hex character constants.
3519 These don't provoke an error unfortunately, instead are silently treated
3520 as 'x'. The following induces an error, until -std is added to get
3521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3522 array size at least. It's necessary to write '\x00'==0 to get something
3523 that's true only with -std. */
3524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3527 inside strings and character constants. */
3528 #define FOO(x) 'x'
3529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3531 int test (int i, double x);
3532 struct s1 {int (*f) (int a);};
3533 struct s2 {int (*f) (double a);};
3534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3535 int argc;
3536 char **argv;
3538 main ()
3540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3542 return 0;
3544 _ACEOF
3545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3548 CC="$ac_save_CC $ac_arg"
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550 ac_cv_prog_cc_c89=$ac_arg
3552 rm -f core conftest.err conftest.$ac_objext
3553 test "x$ac_cv_prog_cc_c89" != "xno" && break
3554 done
3555 rm -f conftest.$ac_ext
3556 CC=$ac_save_CC
3559 # AC_CACHE_VAL
3560 case "x$ac_cv_prog_cc_c89" in
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3563 $as_echo "none needed" >&6; } ;;
3564 xno)
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566 $as_echo "unsupported" >&6; } ;;
3568 CC="$CC $ac_cv_prog_cc_c89"
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3571 esac
3572 if test "x$ac_cv_prog_cc_c89" != xno; then :
3576 ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3588 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3589 if ${am_cv_prog_cc_c_o+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3596 main ()
3600 return 0;
3602 _ACEOF
3603 # Make sure it works both with $CC and with simple cc.
3604 # Following AC_PROG_CC_C_O, we do the test twice because some
3605 # compilers refuse to overwrite an existing .o file with -o,
3606 # though they will create one.
3607 am_cv_prog_cc_c_o=yes
3608 for am_i in 1 2; do
3609 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3610 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } \
3614 && test -f conftest2.$ac_objext; then
3615 : OK
3616 else
3617 am_cv_prog_cc_c_o=no
3618 break
3620 done
3621 rm -f core conftest*
3622 unset am_i
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3625 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3626 if test "$am_cv_prog_cc_c_o" != yes; then
3627 # Losing compiler, so override with the script.
3628 # FIXME: It is wrong to rewrite CC.
3629 # But if we don't then we get into trouble of one sort or another.
3630 # A longer-term fix would be to have automake use am__CC in this case,
3631 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3632 CC="$am_aux_dir/compile $CC"
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 depcc="$CC" am_compiler_list=
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3644 $as_echo_n "checking dependency style of $depcc... " >&6; }
3645 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649 # We make a subdir and do the tests there. Otherwise we can end up
3650 # making bogus files that we don't know about and never remove. For
3651 # instance it was reported that on HP-UX the gcc test will end up
3652 # making a dummy file named 'D' -- because '-MD' means "put the output
3653 # in D".
3654 rm -rf conftest.dir
3655 mkdir conftest.dir
3656 # Copy depcomp to subdir because otherwise we won't find it if we're
3657 # using a relative directory.
3658 cp "$am_depcomp" conftest.dir
3659 cd conftest.dir
3660 # We will build objects and dependencies in a subdirectory because
3661 # it helps to detect inapplicable dependency modes. For instance
3662 # both Tru64's cc and ICC support -MD to output dependencies as a
3663 # side effect of compilation, but ICC will put the dependencies in
3664 # the current directory while Tru64 will put them in the object
3665 # directory.
3666 mkdir sub
3668 am_cv_CC_dependencies_compiler_type=none
3669 if test "$am_compiler_list" = ""; then
3670 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672 am__universal=false
3673 case " $depcc " in #(
3674 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3675 esac
3677 for depmode in $am_compiler_list; do
3678 # Setup a source with many dependencies, because some compilers
3679 # like to wrap large dependency lists on column 80 (with \), and
3680 # we should not choose a depcomp mode which is confused by this.
3682 # We need to recreate these files for each test, as the compiler may
3683 # overwrite some of them when testing with obscure command lines.
3684 # This happens at least with the AIX C compiler.
3685 : > sub/conftest.c
3686 for i in 1 2 3 4 5 6; do
3687 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3688 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3689 # Solaris 10 /bin/sh.
3690 echo '/* dummy */' > sub/conftst$i.h
3691 done
3692 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3695 # mode. It turns out that the SunPro C++ compiler does not properly
3696 # handle '-M -o', and we need to detect this. Also, some Intel
3697 # versions had trouble with output in subdirs.
3698 am__obj=sub/conftest.${OBJEXT-o}
3699 am__minus_obj="-o $am__obj"
3700 case $depmode in
3701 gcc)
3702 # This depmode causes a compiler race in universal mode.
3703 test "$am__universal" = false || continue
3705 nosideeffect)
3706 # After this tag, mechanisms are not by side-effect, so they'll
3707 # only be used when explicitly requested.
3708 if test "x$enable_dependency_tracking" = xyes; then
3709 continue
3710 else
3711 break
3714 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3715 # This compiler won't grok '-c -o', but also, the minuso test has
3716 # not run yet. These depmodes are late enough in the game, and
3717 # so weak that their functioning should not be impacted.
3718 am__obj=conftest.${OBJEXT-o}
3719 am__minus_obj=
3721 none) break ;;
3722 esac
3723 if depmode=$depmode \
3724 source=sub/conftest.c object=$am__obj \
3725 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3726 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3727 >/dev/null 2>conftest.err &&
3728 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3729 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3730 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3731 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3732 # icc doesn't choke on unknown options, it will just issue warnings
3733 # or remarks (even with -Werror). So we grep stderr for any message
3734 # that says an option was ignored or not supported.
3735 # When given -MP, icc 7.0 and 7.1 complain thusly:
3736 # icc: Command line warning: ignoring option '-M'; no argument required
3737 # The diagnosis changed in icc 8.0:
3738 # icc: Command line remark: option '-MP' not supported
3739 if (grep 'ignoring option' conftest.err ||
3740 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3741 am_cv_CC_dependencies_compiler_type=$depmode
3742 break
3745 done
3747 cd ..
3748 rm -rf conftest.dir
3749 else
3750 am_cv_CC_dependencies_compiler_type=none
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3755 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3756 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3759 test "x$enable_dependency_tracking" != xno \
3760 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3761 am__fastdepCC_TRUE=
3762 am__fastdepCC_FALSE='#'
3763 else
3764 am__fastdepCC_TRUE='#'
3765 am__fastdepCC_FALSE=
3770 # Check whether --enable-compiler-warnings was given.
3771 if test "${enable_compiler_warnings+set}" = set; then :
3772 enableval=$enable_compiler_warnings;
3774 case $enable_compiler_warnings in #(
3775 no | min | yes | max | all) :
3776 ;; #(
3777 *) :
3778 if test "x$enable_maintainer_mode" = xyes; then :
3779 enable_compiler_warnings=yes
3780 else
3781 enable_compiler_warnings=min
3782 fi ;;
3783 esac
3786 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3787 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3788 # is not polluted with repeated "-I."
3789 am__isrc=' -I$(srcdir)'
3790 # test to see if srcdir already configured
3791 if test -f $srcdir/config.status; then
3792 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3796 # test whether we have cygpath
3797 if test -z "$CYGPATH_W"; then
3798 if (cygpath --version) >/dev/null 2>/dev/null; then
3799 CYGPATH_W='cygpath -w'
3800 else
3801 CYGPATH_W=echo
3806 # Define the identity of the package.
3807 PACKAGE='libpng--tex-live-'
3808 VERSION='1.6.28'
3811 cat >>confdefs.h <<_ACEOF
3812 #define PACKAGE "$PACKAGE"
3813 _ACEOF
3816 cat >>confdefs.h <<_ACEOF
3817 #define VERSION "$VERSION"
3818 _ACEOF
3820 # Some tools Automake needs.
3822 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3825 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3828 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3831 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3834 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3836 # For better backward compatibility. To be removed once Automake 1.9.x
3837 # dies out for good. For more background, see:
3838 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3839 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3840 mkdir_p='$(MKDIR_P)'
3842 # We need awk for the "check" target (and possibly the TAP driver). The
3843 # system "awk" is bad on some platforms.
3844 # Always define AMTAR for backward compatibility. Yes, it's still used
3845 # in the wild :-( We should find a proper way to deprecate it ...
3846 AMTAR='$${TAR-tar}'
3849 # We'll loop over all known methods to create a tar archive until one works.
3850 _am_tools='gnutar pax cpio none'
3852 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3859 # POSIX will say in a future version that running "rm -f" with no argument
3860 # is OK; and we want to be able to make that assumption in our Makefile
3861 # recipes. So use an aggressive probe to check that the usage we want is
3862 # actually supported "in the wild" to an acceptable degree.
3863 # See automake bug#10828.
3864 # To make any issue more visible, cause the running configure to be aborted
3865 # by default if the 'rm' program in use doesn't match our expectations; the
3866 # user can still override this though.
3867 if rm -f && rm -fr && rm -rf; then : OK; else
3868 cat >&2 <<'END'
3869 Oops!
3871 Your 'rm' program seems unable to run without file operands specified
3872 on the command line, even when the '-f' option is present. This is contrary
3873 to the behaviour of most rm programs out there, and not conforming with
3874 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3876 Please tell bug-automake@gnu.org about your system, including the value
3877 of your $PATH and any error possibly output before this message. This
3878 can help us improve future automake versions.
3881 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3882 echo 'Configuration will proceed anyway, since you have set the' >&2
3883 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3884 echo >&2
3885 else
3886 cat >&2 <<'END'
3887 Aborting the configuration process, to ensure you take notice of the issue.
3889 You can download and install GNU coreutils to get an 'rm' implementation
3890 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3892 If you want to complete the configuration process using your problematic
3893 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3894 to "yes", and re-run configure.
3897 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3903 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3904 # Check whether --enable-maintainer-mode was given.
3905 if test "${enable_maintainer_mode+set}" = set; then :
3906 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3907 else
3908 USE_MAINTAINER_MODE=no
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3912 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3913 if test $USE_MAINTAINER_MODE = yes; then
3914 MAINTAINER_MODE_TRUE=
3915 MAINTAINER_MODE_FALSE='#'
3916 else
3917 MAINTAINER_MODE_TRUE='#'
3918 MAINTAINER_MODE_FALSE=
3921 MAINT=$MAINTAINER_MODE_TRUE
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
3925 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
3926 if ${kb_cv_c_prototypes+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #include <stdarg.h>
3933 main ()
3935 extern void foo(int i,...);
3937 return 0;
3939 _ACEOF
3940 if ac_fn_c_try_link "$LINENO"; then :
3941 kb_cv_c_prototypes=yes
3942 else
3943 kb_cv_c_prototypes=no
3945 rm -f core conftest.err conftest.$ac_objext \
3946 conftest$ac_exeext conftest.$ac_ext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
3949 $as_echo "$kb_cv_c_prototypes" >&6; }
3950 if test "x$kb_cv_c_prototypes" = xno; then
3951 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
3954 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
3955 if ${kpse_cv_warning_cflags+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test "x$GCC" = xyes; then
3959 kpse_cv_warning_cflags=
3960 if test "x$enable_compiler_warnings" != xno; then
3961 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
3962 case `$CC -dumpversion` in #(
3963 3.4.* | 4.* | 5.*) :
3964 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
3965 *) :
3967 esac
3968 case `$CC -dumpversion` in #(
3969 3.[234].* | 4.* | 5.*) :
3970 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
3971 *) :
3973 esac
3974 if test "x$enable_compiler_warnings" != xmin; then
3975 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
3976 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
3977 if test "x$enable_compiler_warnings" != xyes; then
3978 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
3979 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
3980 case `$CC -dumpversion` in #(
3981 3.4.* | 4.* | 5.*) :
3982 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
3983 *) :
3985 esac
3986 if test "x$enable_compiler_warnings" != xmax; then
3987 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
3992 elif test "x$enable_compiler_warnings" = xno; then
3993 kpse_cv_warning_cflags=
3994 else
3995 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
3999 $as_echo "$kpse_cv_warning_cflags" >&6; }
4000 WARNING_CFLAGS=$kpse_cv_warning_cflags
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4016 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if ${ac_cv_prog_CC+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 if test -n "$CC"; then
4023 ac_cv_prog_CC="$CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4042 CC=$ac_cv_prog_CC
4043 if test -n "$CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045 $as_echo "$CC" >&6; }
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4053 if test -z "$ac_cv_prog_CC"; then
4054 ac_ct_CC=$CC
4055 # Extract the first word of "gcc", so it can be a program name with args.
4056 set dummy gcc; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$ac_ct_CC"; then
4063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_ac_ct_CC="gcc"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4076 done
4077 done
4078 IFS=$as_save_IFS
4082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4083 if test -n "$ac_ct_CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4085 $as_echo "$ac_ct_CC" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4091 if test "x$ac_ct_CC" = x; then
4092 CC=""
4093 else
4094 case $cross_compiling:$ac_tool_warned in
4095 yes:)
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4098 ac_tool_warned=yes ;;
4099 esac
4100 CC=$ac_ct_CC
4102 else
4103 CC="$ac_cv_prog_CC"
4106 if test -z "$CC"; then
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}cc; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if ${ac_cv_prog_CC+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if test -n "$CC"; then
4116 ac_cv_prog_CC="$CC" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_CC="${ac_tool_prefix}cc"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 CC=$ac_cv_prog_CC
4136 if test -n "$CC"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138 $as_echo "$CC" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4147 if test -z "$CC"; then
4148 # Extract the first word of "cc", so it can be a program name with args.
4149 set dummy cc; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if ${ac_cv_prog_CC+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -n "$CC"; then
4156 ac_cv_prog_CC="$CC" # Let the user override the test.
4157 else
4158 ac_prog_rejected=no
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4167 ac_prog_rejected=yes
4168 continue
4170 ac_cv_prog_CC="cc"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4174 done
4175 done
4176 IFS=$as_save_IFS
4178 if test $ac_prog_rejected = yes; then
4179 # We found a bogon in the path, so make sure we never use it.
4180 set dummy $ac_cv_prog_CC
4181 shift
4182 if test $# != 0; then
4183 # We chose a different compiler from the bogus one.
4184 # However, it has the same basename, so the bogon will be chosen
4185 # first if we set CC to just the basename; use the full file name.
4186 shift
4187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4192 CC=$ac_cv_prog_CC
4193 if test -n "$CC"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195 $as_echo "$CC" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4203 if test -z "$CC"; then
4204 if test -n "$ac_tool_prefix"; then
4205 for ac_prog in cl.exe
4207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_CC+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 CC=$ac_cv_prog_CC
4235 if test -n "$CC"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4237 $as_echo "$CC" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4244 test -n "$CC" && break
4245 done
4247 if test -z "$CC"; then
4248 ac_ct_CC=$CC
4249 for ac_prog in cl.exe
4251 # Extract the first word of "$ac_prog", so it can be a program name with args.
4252 set dummy $ac_prog; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -n "$ac_ct_CC"; then
4259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_ac_ct_CC="$ac_prog"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4272 done
4273 done
4274 IFS=$as_save_IFS
4278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4279 if test -n "$ac_ct_CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4281 $as_echo "$ac_ct_CC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4288 test -n "$ac_ct_CC" && break
4289 done
4291 if test "x$ac_ct_CC" = x; then
4292 CC=""
4293 else
4294 case $cross_compiling:$ac_tool_warned in
4295 yes:)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4298 ac_tool_warned=yes ;;
4299 esac
4300 CC=$ac_ct_CC
4307 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 as_fn_error $? "no acceptable C compiler found in \$PATH
4310 See \`config.log' for more details" "$LINENO" 5; }
4312 # Provide some information about the compiler.
4313 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4314 set X $ac_compile
4315 ac_compiler=$2
4316 for ac_option in --version -v -V -qversion; do
4317 { { ac_try="$ac_compiler $ac_option >&5"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4325 ac_status=$?
4326 if test -s conftest.err; then
4327 sed '10a\
4328 ... rest of stderr output deleted ...
4329 10q' conftest.err >conftest.er1
4330 cat conftest.er1 >&5
4332 rm -f conftest.er1 conftest.err
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; }
4335 done
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4339 if ${ac_cv_c_compiler_gnu+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4346 main ()
4348 #ifndef __GNUC__
4349 choke me
4350 #endif
4353 return 0;
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 ac_compiler_gnu=yes
4358 else
4359 ac_compiler_gnu=no
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4367 if test $ac_compiler_gnu = yes; then
4368 GCC=yes
4369 else
4370 GCC=
4372 ac_test_CFLAGS=${CFLAGS+set}
4373 ac_save_CFLAGS=$CFLAGS
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4376 if ${ac_cv_prog_cc_g+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 ac_save_c_werror_flag=$ac_c_werror_flag
4380 ac_c_werror_flag=yes
4381 ac_cv_prog_cc_g=no
4382 CFLAGS="-g"
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4387 main ()
4391 return 0;
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395 ac_cv_prog_cc_g=yes
4396 else
4397 CFLAGS=""
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4402 main ()
4406 return 0;
4408 _ACEOF
4409 if ac_fn_c_try_compile "$LINENO"; then :
4411 else
4412 ac_c_werror_flag=$ac_save_c_werror_flag
4413 CFLAGS="-g"
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4418 main ()
4422 return 0;
4424 _ACEOF
4425 if ac_fn_c_try_compile "$LINENO"; then :
4426 ac_cv_prog_cc_g=yes
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4436 $as_echo "$ac_cv_prog_cc_g" >&6; }
4437 if test "$ac_test_CFLAGS" = set; then
4438 CFLAGS=$ac_save_CFLAGS
4439 elif test $ac_cv_prog_cc_g = yes; then
4440 if test "$GCC" = yes; then
4441 CFLAGS="-g -O2"
4442 else
4443 CFLAGS="-g"
4445 else
4446 if test "$GCC" = yes; then
4447 CFLAGS="-O2"
4448 else
4449 CFLAGS=
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4454 if ${ac_cv_prog_cc_c89+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 ac_cv_prog_cc_c89=no
4458 ac_save_CC=$CC
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <stdarg.h>
4462 #include <stdio.h>
4463 struct stat;
4464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4465 struct buf { int x; };
4466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4467 static char *e (p, i)
4468 char **p;
4469 int i;
4471 return p[i];
4473 static char *f (char * (*g) (char **, int), char **p, ...)
4475 char *s;
4476 va_list v;
4477 va_start (v,p);
4478 s = g (p, va_arg (v,int));
4479 va_end (v);
4480 return s;
4483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4484 function prototypes and stuff, but not '\xHH' hex character constants.
4485 These don't provoke an error unfortunately, instead are silently treated
4486 as 'x'. The following induces an error, until -std is added to get
4487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4488 array size at least. It's necessary to write '\x00'==0 to get something
4489 that's true only with -std. */
4490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4493 inside strings and character constants. */
4494 #define FOO(x) 'x'
4495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4497 int test (int i, double x);
4498 struct s1 {int (*f) (int a);};
4499 struct s2 {int (*f) (double a);};
4500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4501 int argc;
4502 char **argv;
4504 main ()
4506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4508 return 0;
4510 _ACEOF
4511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4514 CC="$ac_save_CC $ac_arg"
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_cv_prog_cc_c89=$ac_arg
4518 rm -f core conftest.err conftest.$ac_objext
4519 test "x$ac_cv_prog_cc_c89" != "xno" && break
4520 done
4521 rm -f conftest.$ac_ext
4522 CC=$ac_save_CC
4525 # AC_CACHE_VAL
4526 case "x$ac_cv_prog_cc_c89" in
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529 $as_echo "none needed" >&6; } ;;
4530 xno)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4532 $as_echo "unsupported" >&6; } ;;
4534 CC="$CC $ac_cv_prog_cc_c89"
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4537 esac
4538 if test "x$ac_cv_prog_cc_c89" != xno; then :
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4554 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4555 if ${am_cv_prog_cc_c_o+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4562 main ()
4566 return 0;
4568 _ACEOF
4569 # Make sure it works both with $CC and with simple cc.
4570 # Following AC_PROG_CC_C_O, we do the test twice because some
4571 # compilers refuse to overwrite an existing .o file with -o,
4572 # though they will create one.
4573 am_cv_prog_cc_c_o=yes
4574 for am_i in 1 2; do
4575 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4576 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } \
4580 && test -f conftest2.$ac_objext; then
4581 : OK
4582 else
4583 am_cv_prog_cc_c_o=no
4584 break
4586 done
4587 rm -f core conftest*
4588 unset am_i
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4591 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4592 if test "$am_cv_prog_cc_c_o" != yes; then
4593 # Losing compiler, so override with the script.
4594 # FIXME: It is wrong to rewrite CC.
4595 # But if we don't then we get into trouble of one sort or another.
4596 # A longer-term fix would be to have automake use am__CC in this case,
4597 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4598 CC="$am_aux_dir/compile $CC"
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 depcc="$CC" am_compiler_list=
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4610 $as_echo_n "checking dependency style of $depcc... " >&6; }
4611 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4615 # We make a subdir and do the tests there. Otherwise we can end up
4616 # making bogus files that we don't know about and never remove. For
4617 # instance it was reported that on HP-UX the gcc test will end up
4618 # making a dummy file named 'D' -- because '-MD' means "put the output
4619 # in D".
4620 rm -rf conftest.dir
4621 mkdir conftest.dir
4622 # Copy depcomp to subdir because otherwise we won't find it if we're
4623 # using a relative directory.
4624 cp "$am_depcomp" conftest.dir
4625 cd conftest.dir
4626 # We will build objects and dependencies in a subdirectory because
4627 # it helps to detect inapplicable dependency modes. For instance
4628 # both Tru64's cc and ICC support -MD to output dependencies as a
4629 # side effect of compilation, but ICC will put the dependencies in
4630 # the current directory while Tru64 will put them in the object
4631 # directory.
4632 mkdir sub
4634 am_cv_CC_dependencies_compiler_type=none
4635 if test "$am_compiler_list" = ""; then
4636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4638 am__universal=false
4639 case " $depcc " in #(
4640 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4641 esac
4643 for depmode in $am_compiler_list; do
4644 # Setup a source with many dependencies, because some compilers
4645 # like to wrap large dependency lists on column 80 (with \), and
4646 # we should not choose a depcomp mode which is confused by this.
4648 # We need to recreate these files for each test, as the compiler may
4649 # overwrite some of them when testing with obscure command lines.
4650 # This happens at least with the AIX C compiler.
4651 : > sub/conftest.c
4652 for i in 1 2 3 4 5 6; do
4653 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4654 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4655 # Solaris 10 /bin/sh.
4656 echo '/* dummy */' > sub/conftst$i.h
4657 done
4658 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4660 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4661 # mode. It turns out that the SunPro C++ compiler does not properly
4662 # handle '-M -o', and we need to detect this. Also, some Intel
4663 # versions had trouble with output in subdirs.
4664 am__obj=sub/conftest.${OBJEXT-o}
4665 am__minus_obj="-o $am__obj"
4666 case $depmode in
4667 gcc)
4668 # This depmode causes a compiler race in universal mode.
4669 test "$am__universal" = false || continue
4671 nosideeffect)
4672 # After this tag, mechanisms are not by side-effect, so they'll
4673 # only be used when explicitly requested.
4674 if test "x$enable_dependency_tracking" = xyes; then
4675 continue
4676 else
4677 break
4680 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4681 # This compiler won't grok '-c -o', but also, the minuso test has
4682 # not run yet. These depmodes are late enough in the game, and
4683 # so weak that their functioning should not be impacted.
4684 am__obj=conftest.${OBJEXT-o}
4685 am__minus_obj=
4687 none) break ;;
4688 esac
4689 if depmode=$depmode \
4690 source=sub/conftest.c object=$am__obj \
4691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4692 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4693 >/dev/null 2>conftest.err &&
4694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4696 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4698 # icc doesn't choke on unknown options, it will just issue warnings
4699 # or remarks (even with -Werror). So we grep stderr for any message
4700 # that says an option was ignored or not supported.
4701 # When given -MP, icc 7.0 and 7.1 complain thusly:
4702 # icc: Command line warning: ignoring option '-M'; no argument required
4703 # The diagnosis changed in icc 8.0:
4704 # icc: Command line remark: option '-MP' not supported
4705 if (grep 'ignoring option' conftest.err ||
4706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4707 am_cv_CC_dependencies_compiler_type=$depmode
4708 break
4711 done
4713 cd ..
4714 rm -rf conftest.dir
4715 else
4716 am_cv_CC_dependencies_compiler_type=none
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4721 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4722 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4725 test "x$enable_dependency_tracking" != xno \
4726 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4727 am__fastdepCC_TRUE=
4728 am__fastdepCC_FALSE='#'
4729 else
4730 am__fastdepCC_TRUE='#'
4731 am__fastdepCC_FALSE=
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_RANLIB+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$RANLIB"; then
4744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 RANLIB=$ac_cv_prog_RANLIB
4764 if test -n "$RANLIB"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4766 $as_echo "$RANLIB" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775 ac_ct_RANLIB=$RANLIB
4776 # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_RANLIB"; then
4784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_RANLIB="ranlib"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4806 $as_echo "$ac_ct_RANLIB" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_RANLIB" = x; then
4813 RANLIB=":"
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 RANLIB=$ac_ct_RANLIB
4823 else
4824 RANLIB="$ac_cv_prog_RANLIB"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4828 $as_echo_n "checking whether ln -s works... " >&6; }
4829 LN_S=$as_ln_s
4830 if test "$LN_S" = "ln -s"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832 $as_echo "yes" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4835 $as_echo "no, using $LN_S" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
4840 $as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; }
4841 if ${kpse_cv_visibility_cflags+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850 kpse_cv_visibility_cflags=unknown
4851 kpse_save_flags=$CFLAGS
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 #include <stdio.h>
4855 extern void foo(void);
4856 void foo(void){printf("foo\n");}
4857 _ACEOF
4858 # FIXME: Add tests for non-GNU compilers
4859 for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do
4860 CFLAGS="$kpse_save_flags -Werror $kpse_flag"
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 kpse_cv_visibility_cflags=$kpse_flag; break
4864 rm -f core conftest.err conftest.$ac_objext
4865 done
4866 ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
4875 $as_echo "$kpse_cv_visibility_cflags" >&6; }
4876 CFLAGS=$kpse_save_flags
4877 case $kpse_cv_visibility_cflags in #(
4878 unknown) :
4879 ;; #(
4880 *) :
4881 VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags
4883 esac
4889 ac_config_headers="$ac_config_headers config.h"
4892 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
4893 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
4894 # This is incompatible with the new default mode, so we test for that and force the
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
4896 $as_echo_n "checking if we need to force back C standard to C89... " >&6; }
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #define _POSIX_SOURCE 1
4900 #include <stdio.h>
4903 main ()
4907 return 0;
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 else
4915 if test "x$GCC" != "xyes"; then
4916 as_fn_error $? "Forcing back to C89 is required but the flags are unknown for other compilers than GCC" "$LINENO" 5
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 CFLAGS="$CFLAGS -std=c89"
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 # Checks for header files.
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4932 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4935 CPP=
4937 if test -z "$CPP"; then
4938 if ${ac_cv_prog_CPP+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 # Double quotes because CPP needs to be expanded
4942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4944 ac_preproc_ok=false
4945 for ac_c_preproc_warn_flag in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955 #ifdef __STDC__
4956 # include <limits.h>
4957 #else
4958 # include <assert.h>
4959 #endif
4960 Syntax error
4961 _ACEOF
4962 if ac_fn_c_try_cpp "$LINENO"; then :
4964 else
4965 # Broken: fails on valid input.
4966 continue
4968 rm -f conftest.err conftest.i conftest.$ac_ext
4970 # OK, works on sane cases. Now check whether nonexistent headers
4971 # can be detected and how.
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 #include <ac_nonexistent.h>
4975 _ACEOF
4976 if ac_fn_c_try_cpp "$LINENO"; then :
4977 # Broken: success on invalid input.
4978 continue
4979 else
4980 # Passes both tests.
4981 ac_preproc_ok=:
4982 break
4984 rm -f conftest.err conftest.i conftest.$ac_ext
4986 done
4987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4988 rm -f conftest.i conftest.err conftest.$ac_ext
4989 if $ac_preproc_ok; then :
4990 break
4993 done
4994 ac_cv_prog_CPP=$CPP
4997 CPP=$ac_cv_prog_CPP
4998 else
4999 ac_cv_prog_CPP=$CPP
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5002 $as_echo "$CPP" >&6; }
5003 ac_preproc_ok=false
5004 for ac_c_preproc_warn_flag in '' yes
5006 # Use a header file that comes with gcc, so configuring glibc
5007 # with a fresh cross-compiler works.
5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 # <limits.h> exists even on freestanding compilers.
5010 # On the NeXT, cc -E runs the code through the compiler's parser,
5011 # not just through cpp. "Syntax error" is here to catch this case.
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #ifdef __STDC__
5015 # include <limits.h>
5016 #else
5017 # include <assert.h>
5018 #endif
5019 Syntax error
5020 _ACEOF
5021 if ac_fn_c_try_cpp "$LINENO"; then :
5023 else
5024 # Broken: fails on valid input.
5025 continue
5027 rm -f conftest.err conftest.i conftest.$ac_ext
5029 # OK, works on sane cases. Now check whether nonexistent headers
5030 # can be detected and how.
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033 #include <ac_nonexistent.h>
5034 _ACEOF
5035 if ac_fn_c_try_cpp "$LINENO"; then :
5036 # Broken: success on invalid input.
5037 continue
5038 else
5039 # Passes both tests.
5040 ac_preproc_ok=:
5041 break
5043 rm -f conftest.err conftest.i conftest.$ac_ext
5045 done
5046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047 rm -f conftest.i conftest.err conftest.$ac_ext
5048 if $ac_preproc_ok; then :
5050 else
5051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5054 See \`config.log' for more details" "$LINENO" 5; }
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5066 if ${ac_cv_path_GREP+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -z "$GREP"; then
5070 ac_path_GREP_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in grep ggrep; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_GREP" || continue
5081 # Check for GNU ac_path_GREP and select it if it is found.
5082 # Check for GNU $ac_path_GREP
5083 case `"$ac_path_GREP" --version 2>&1` in
5084 *GNU*)
5085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5087 ac_count=0
5088 $as_echo_n 0123456789 >"conftest.in"
5089 while :
5091 cat "conftest.in" "conftest.in" >"conftest.tmp"
5092 mv "conftest.tmp" "conftest.in"
5093 cp "conftest.in" "conftest.nl"
5094 $as_echo 'GREP' >> "conftest.nl"
5095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_GREP="$ac_path_GREP"
5101 ac_path_GREP_max=$ac_count
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5105 done
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5107 esac
5109 $ac_path_GREP_found && break 3
5110 done
5111 done
5112 done
5113 IFS=$as_save_IFS
5114 if test -z "$ac_cv_path_GREP"; then
5115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5117 else
5118 ac_cv_path_GREP=$GREP
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5123 $as_echo "$ac_cv_path_GREP" >&6; }
5124 GREP="$ac_cv_path_GREP"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5128 $as_echo_n "checking for egrep... " >&6; }
5129 if ${ac_cv_path_EGREP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5133 then ac_cv_path_EGREP="$GREP -E"
5134 else
5135 if test -z "$EGREP"; then
5136 ac_path_EGREP_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in egrep; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5146 as_fn_executable_p "$ac_path_EGREP" || continue
5147 # Check for GNU ac_path_EGREP and select it if it is found.
5148 # Check for GNU $ac_path_EGREP
5149 case `"$ac_path_EGREP" --version 2>&1` in
5150 *GNU*)
5151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5153 ac_count=0
5154 $as_echo_n 0123456789 >"conftest.in"
5155 while :
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo 'EGREP' >> "conftest.nl"
5161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_EGREP="$ac_path_EGREP"
5167 ac_path_EGREP_max=$ac_count
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 esac
5175 $ac_path_EGREP_found && break 3
5176 done
5177 done
5178 done
5179 IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_EGREP"; then
5181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 else
5184 ac_cv_path_EGREP=$EGREP
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5190 $as_echo "$ac_cv_path_EGREP" >&6; }
5191 EGREP="$ac_cv_path_EGREP"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5195 $as_echo_n "checking for ANSI C header files... " >&6; }
5196 if ${ac_cv_header_stdc+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #include <stdlib.h>
5202 #include <stdarg.h>
5203 #include <string.h>
5204 #include <float.h>
5207 main ()
5211 return 0;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 ac_cv_header_stdc=yes
5216 else
5217 ac_cv_header_stdc=no
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 if test $ac_cv_header_stdc = yes; then
5222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5225 #include <string.h>
5227 _ACEOF
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229 $EGREP "memchr" >/dev/null 2>&1; then :
5231 else
5232 ac_cv_header_stdc=no
5234 rm -f conftest*
5238 if test $ac_cv_header_stdc = yes; then
5239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 #include <stdlib.h>
5244 _ACEOF
5245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 $EGREP "free" >/dev/null 2>&1; then :
5248 else
5249 ac_cv_header_stdc=no
5251 rm -f conftest*
5255 if test $ac_cv_header_stdc = yes; then
5256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5257 if test "$cross_compiling" = yes; then :
5259 else
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 #include <ctype.h>
5263 #include <stdlib.h>
5264 #if ((' ' & 0x0FF) == 0x020)
5265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5267 #else
5268 # define ISLOWER(c) \
5269 (('a' <= (c) && (c) <= 'i') \
5270 || ('j' <= (c) && (c) <= 'r') \
5271 || ('s' <= (c) && (c) <= 'z'))
5272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5273 #endif
5275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5277 main ()
5279 int i;
5280 for (i = 0; i < 256; i++)
5281 if (XOR (islower (i), ISLOWER (i))
5282 || toupper (i) != TOUPPER (i))
5283 return 2;
5284 return 0;
5286 _ACEOF
5287 if ac_fn_c_try_run "$LINENO"; then :
5289 else
5290 ac_cv_header_stdc=no
5292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5293 conftest.$ac_objext conftest.beam conftest.$ac_ext
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5299 $as_echo "$ac_cv_header_stdc" >&6; }
5300 if test $ac_cv_header_stdc = yes; then
5302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308 inttypes.h stdint.h unistd.h
5309 do :
5310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5314 cat >>confdefs.h <<_ACEOF
5315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316 _ACEOF
5320 done
5323 for ac_header in malloc.h stdlib.h string.h strings.h
5324 do :
5325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5326 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5327 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5328 cat >>confdefs.h <<_ACEOF
5329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5330 _ACEOF
5334 done
5337 # Checks for typedefs, structures, and compiler characteristics.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5339 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5340 if ${ac_cv_c_const+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5347 main ()
5350 #ifndef __cplusplus
5351 /* Ultrix mips cc rejects this sort of thing. */
5352 typedef int charset[2];
5353 const charset cs = { 0, 0 };
5354 /* SunOS 4.1.1 cc rejects this. */
5355 char const *const *pcpcc;
5356 char **ppc;
5357 /* NEC SVR4.0.2 mips cc rejects this. */
5358 struct point {int x, y;};
5359 static struct point const zero = {0,0};
5360 /* AIX XL C 1.02.0.0 rejects this.
5361 It does not let you subtract one const X* pointer from another in
5362 an arm of an if-expression whose if-part is not a constant
5363 expression */
5364 const char *g = "string";
5365 pcpcc = &g + (g ? g-g : 0);
5366 /* HPUX 7.0 cc rejects these. */
5367 ++pcpcc;
5368 ppc = (char**) pcpcc;
5369 pcpcc = (char const *const *) ppc;
5370 { /* SCO 3.2v4 cc rejects this sort of thing. */
5371 char tx;
5372 char *t = &tx;
5373 char const *s = 0 ? (char *) 0 : (char const *) 0;
5375 *t++ = 0;
5376 if (s) return 0;
5378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5379 int x[] = {25, 17};
5380 const int *foo = &x[0];
5381 ++foo;
5383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5384 typedef const int *iptr;
5385 iptr p = 0;
5386 ++p;
5388 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5390 struct s { int j; const int *ap[3]; } bx;
5391 struct s *b = &bx; b->j = 5;
5393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5394 const int foo = 10;
5395 if (!foo) return 0;
5397 return !cs[0] && !zero.x;
5398 #endif
5401 return 0;
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_c_const=yes
5406 else
5407 ac_cv_c_const=no
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5412 $as_echo "$ac_cv_c_const" >&6; }
5413 if test $ac_cv_c_const = no; then
5415 $as_echo "#define const /**/" >>confdefs.h
5419 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5420 if test "x$ac_cv_type_size_t" = xyes; then :
5422 else
5424 cat >>confdefs.h <<_ACEOF
5425 #define size_t unsigned int
5426 _ACEOF
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5431 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5432 if ${ac_cv_struct_tm+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #include <sys/types.h>
5438 #include <time.h>
5441 main ()
5443 struct tm tm;
5444 int *p = &tm.tm_sec;
5445 return !p;
5447 return 0;
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 ac_cv_struct_tm=time.h
5452 else
5453 ac_cv_struct_tm=sys/time.h
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5458 $as_echo "$ac_cv_struct_tm" >&6; }
5459 if test $ac_cv_struct_tm = sys/time.h; then
5461 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5466 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5467 if ${ac_cv_c_restrict+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 ac_cv_c_restrict=no
5471 # The order here caters to the fact that C++ does not require restrict.
5472 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 typedef int * int_ptr;
5476 int foo (int_ptr $ac_kw ip) {
5477 return ip[0];
5480 main ()
5482 int s[1];
5483 int * $ac_kw t = s;
5484 t[0] = 0;
5485 return foo(t)
5487 return 0;
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_c_restrict=$ac_kw
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 test "$ac_cv_c_restrict" != no && break
5495 done
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5499 $as_echo "$ac_cv_c_restrict" >&6; }
5501 case $ac_cv_c_restrict in
5502 restrict) ;;
5503 no) $as_echo "#define restrict /**/" >>confdefs.h
5505 *) cat >>confdefs.h <<_ACEOF
5506 #define restrict $ac_cv_c_restrict
5507 _ACEOF
5509 esac
5512 # Checks for library functions.
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
5514 $as_echo_n "checking for working strtod... " >&6; }
5515 if ${ac_cv_func_strtod+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test "$cross_compiling" = yes; then :
5519 ac_cv_func_strtod=no
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5524 $ac_includes_default
5525 #ifndef strtod
5526 double strtod ();
5527 #endif
5529 main()
5532 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
5533 char *string = " +69";
5534 char *term;
5535 double value;
5536 value = strtod (string, &term);
5537 if (value != 69 || term != (string + 4))
5538 return 1;
5542 /* Under Solaris 2.4, strtod returns the wrong value for the
5543 terminating character under some conditions. */
5544 char *string = "NaN";
5545 char *term;
5546 strtod (string, &term);
5547 if (term != string && *(term - 1) == 0)
5548 return 1;
5550 return 0;
5553 _ACEOF
5554 if ac_fn_c_try_run "$LINENO"; then :
5555 ac_cv_func_strtod=yes
5556 else
5557 ac_cv_func_strtod=no
5559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5560 conftest.$ac_objext conftest.beam conftest.$ac_ext
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
5565 $as_echo "$ac_cv_func_strtod" >&6; }
5566 if test $ac_cv_func_strtod = no; then
5567 case " $LIBOBJS " in
5568 *" strtod.$ac_objext "* ) ;;
5569 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
5571 esac
5573 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
5574 if test "x$ac_cv_func_pow" = xyes; then :
5578 if test $ac_cv_func_pow = no; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
5580 $as_echo_n "checking for pow in -lm... " >&6; }
5581 if ${ac_cv_lib_m_pow+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 ac_check_lib_save_LIBS=$LIBS
5585 LIBS="-lm $LIBS"
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5589 /* Override any GCC internal prototype to avoid an error.
5590 Use char because int might match the return type of a GCC
5591 builtin and then its argument prototype would still apply. */
5592 #ifdef __cplusplus
5593 extern "C"
5594 #endif
5595 char pow ();
5597 main ()
5599 return pow ();
5601 return 0;
5603 _ACEOF
5604 if ac_fn_c_try_link "$LINENO"; then :
5605 ac_cv_lib_m_pow=yes
5606 else
5607 ac_cv_lib_m_pow=no
5609 rm -f core conftest.err conftest.$ac_objext \
5610 conftest$ac_exeext conftest.$ac_ext
5611 LIBS=$ac_check_lib_save_LIBS
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
5614 $as_echo "$ac_cv_lib_m_pow" >&6; }
5615 if test "x$ac_cv_lib_m_pow" = xyes; then :
5616 POW_LIB=-lm
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
5619 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5626 for ac_func in memset
5627 do :
5628 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
5629 if test "x$ac_cv_func_memset" = xyes; then :
5630 cat >>confdefs.h <<_ACEOF
5631 #define HAVE_MEMSET 1
5632 _ACEOF
5634 else
5635 as_fn_error $? "memset not found in libc" "$LINENO" 5
5637 done
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
5640 $as_echo_n "checking for library containing pow... " >&6; }
5641 if ${ac_cv_search_pow+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 ac_func_search_save_LIBS=$LIBS
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5651 #ifdef __cplusplus
5652 extern "C"
5653 #endif
5654 char pow ();
5656 main ()
5658 return pow ();
5660 return 0;
5662 _ACEOF
5663 for ac_lib in '' m; do
5664 if test -z "$ac_lib"; then
5665 ac_res="none required"
5666 else
5667 ac_res=-l$ac_lib
5668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_search_pow=$ac_res
5673 rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext
5675 if ${ac_cv_search_pow+:} false; then :
5676 break
5678 done
5679 if ${ac_cv_search_pow+:} false; then :
5681 else
5682 ac_cv_search_pow=no
5684 rm conftest.$ac_ext
5685 LIBS=$ac_func_search_save_LIBS
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
5688 $as_echo "$ac_cv_search_pow" >&6; }
5689 ac_res=$ac_cv_search_pow
5690 if test "$ac_res" != no; then :
5691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5693 else
5694 as_fn_error $? "cannot find pow" "$LINENO" 5
5698 kpse_save_CPPFLAGS=$CPPFLAGS
5699 kpse_save_LIBS=$LIBS
5701 ## _KPSE_INIT: Initialize TL infrastructure
5702 kpse_BLD=`(cd "./../../." && pwd)`
5703 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
5705 ## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags
5707 # Check whether --with-system-zlib was given.
5708 if test "${with_system_zlib+set}" = set; then :
5709 withval=$with_system_zlib;
5712 # Check whether --with-zlib-includes was given.
5713 if test "${with_zlib_includes+set}" = set; then :
5714 withval=$with_zlib_includes;
5717 # Check whether --with-zlib-libdir was given.
5718 if test "${with_zlib_libdir+set}" = set; then :
5719 withval=$with_zlib_libdir;
5721 if test "x$with_system_zlib" = xyes; then
5722 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
5723 ZLIB_INCLUDES="-I$with_zlib_includes"
5725 ZLIB_LIBS="-lz"
5726 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
5727 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
5729 else
5730 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
5731 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
5732 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
5733 ZLIB_RULE='# Rebuild libz
5734 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
5735 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
5736 ${top_builddir}/../../libs/zlib/include/zconf.h:
5737 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
5740 $as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; }
5741 if ${kpse_cv_have_decl_z_const+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
5745 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include <zlib.h>
5751 main ()
5753 z_const char * foo();
5755 return 0;
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 kpse_cv_have_decl_z_const=yes
5760 else
5761 kpse_cv_have_decl_z_const=no
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 CPPFLAGS=$kpse_save_CPPFLAGS
5765 LIBS=$kpse_save_LIBS
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
5769 $as_echo "$kpse_cv_have_decl_z_const" >&6; }
5770 case $kpse_cv_have_decl_z_const in #(
5771 yes) :
5773 $as_echo "#define ZLIB_CONST 1" >>confdefs.h
5774 ;; #(
5775 *) :
5777 $as_echo "#define z_const /**/" >>confdefs.h
5779 esac
5782 if test "x$enable_build" != xno; then
5783 build_TRUE=
5784 build_FALSE='#'
5785 else
5786 build_TRUE='#'
5787 build_FALSE=
5791 if test "x$enable_build" != xno || test -f config.force; then
5793 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
5794 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
5796 ac_fn_c_check_func "$LINENO" "zlibVersion" "ac_cv_func_zlibVersion"
5797 if test "x$ac_cv_func_zlibVersion" = xyes; then :
5799 else
5800 as_fn_error $? "zlib not found" "$LINENO" 5
5803 CPPFLAGS=$kpse_save_CPPFLAGS
5804 LIBS=$kpse_save_LIBS
5807 echo timestamp >config.force
5810 LIBPNG_TREE=libpng-src
5813 LIBPNG_DEFINES='-DPNG_CONFIGURE_LIBPNG -DPNG_NO_MMX_CODE'
5816 ac_config_files="$ac_config_files Makefile include/Makefile"
5819 cat >confcache <<\_ACEOF
5820 # This file is a shell script that caches the results of configure
5821 # tests run on this system so they can be shared between configure
5822 # scripts and configure runs, see configure's option --config-cache.
5823 # It is not useful on other systems. If it contains results you don't
5824 # want to keep, you may remove or edit it.
5826 # config.status only pays attention to the cache file if you give it
5827 # the --recheck option to rerun configure.
5829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5831 # following values.
5833 _ACEOF
5835 # The following way of writing the cache mishandles newlines in values,
5836 # but we know of no workaround that is simple, portable, and efficient.
5837 # So, we kill variables containing newlines.
5838 # Ultrix sh set writes to stderr and can't be redirected directly,
5839 # and sets the high bit in the cache file unless we assign to the vars.
5841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5842 eval ac_val=\$$ac_var
5843 case $ac_val in #(
5844 *${as_nl}*)
5845 case $ac_var in #(
5846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5848 esac
5849 case $ac_var in #(
5850 _ | IFS | as_nl) ;; #(
5851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5852 *) { eval $ac_var=; unset $ac_var;} ;;
5853 esac ;;
5854 esac
5855 done
5857 (set) 2>&1 |
5858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5859 *${as_nl}ac_space=\ *)
5860 # `set' does not quote correctly, so add quotes: double-quote
5861 # substitution turns \\\\ into \\, and sed turns \\ into \.
5862 sed -n \
5863 "s/'/'\\\\''/g;
5864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5865 ;; #(
5867 # `set' quotes correctly as required by POSIX, so do not add quotes.
5868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5870 esac |
5871 sort
5873 sed '
5874 /^ac_cv_env_/b end
5875 t clear
5876 :clear
5877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5878 t end
5879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5880 :end' >>confcache
5881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5882 if test -w "$cache_file"; then
5883 if test "x$cache_file" != "x/dev/null"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5885 $as_echo "$as_me: updating cache $cache_file" >&6;}
5886 if test ! -f "$cache_file" || test -h "$cache_file"; then
5887 cat confcache >"$cache_file"
5888 else
5889 case $cache_file in #(
5890 */* | ?:*)
5891 mv -f confcache "$cache_file"$$ &&
5892 mv -f "$cache_file"$$ "$cache_file" ;; #(
5894 mv -f confcache "$cache_file" ;;
5895 esac
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5900 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5903 rm -f confcache
5905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5906 # Let make expand exec_prefix.
5907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5909 DEFS=-DHAVE_CONFIG_H
5911 ac_libobjs=
5912 ac_ltlibobjs=
5914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5915 # 1. Remove the extension, and $U if already installed.
5916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5917 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5919 # will be set to the directory where LIBOBJS objects are built.
5920 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5921 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5922 done
5923 LIBOBJS=$ac_libobjs
5925 LTLIBOBJS=$ac_ltlibobjs
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5929 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5930 if test -n "$am_sleep_pid"; then
5931 # Hide warnings about reused PIDs.
5932 wait $am_sleep_pid 2>/dev/null
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5935 $as_echo "done" >&6; }
5936 if test -n "$EXEEXT"; then
5937 am__EXEEXT_TRUE=
5938 am__EXEEXT_FALSE='#'
5939 else
5940 am__EXEEXT_TRUE='#'
5941 am__EXEEXT_FALSE=
5944 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5945 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5949 as_fn_error $? "conditional \"AMDEP\" was never defined.
5950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5956 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5957 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5960 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
5961 as_fn_error $? "conditional \"build\" was never defined.
5962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5965 : "${CONFIG_STATUS=./config.status}"
5966 ac_write_fail=0
5967 ac_clean_files_save=$ac_clean_files
5968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5970 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5971 as_write_fail=0
5972 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5973 #! $SHELL
5974 # Generated by $as_me.
5975 # Run this file to recreate the current configuration.
5976 # Compiler output produced by configure, useful for debugging
5977 # configure, is in config.log if it exists.
5979 debug=false
5980 ac_cs_recheck=false
5981 ac_cs_silent=false
5983 SHELL=\${CONFIG_SHELL-$SHELL}
5984 export SHELL
5985 _ASEOF
5986 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5987 ## -------------------- ##
5988 ## M4sh Initialization. ##
5989 ## -------------------- ##
5991 # Be more Bourne compatible
5992 DUALCASE=1; export DUALCASE # for MKS sh
5993 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5994 emulate sh
5995 NULLCMD=:
5996 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5997 # is contrary to our usage. Disable this feature.
5998 alias -g '${1+"$@"}'='"$@"'
5999 setopt NO_GLOB_SUBST
6000 else
6001 case `(set -o) 2>/dev/null` in #(
6002 *posix*) :
6003 set -o posix ;; #(
6004 *) :
6006 esac
6010 as_nl='
6012 export as_nl
6013 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6014 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6015 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6016 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6017 # Prefer a ksh shell builtin over an external printf program on Solaris,
6018 # but without wasting forks for bash or zsh.
6019 if test -z "$BASH_VERSION$ZSH_VERSION" \
6020 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6021 as_echo='print -r --'
6022 as_echo_n='print -rn --'
6023 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6024 as_echo='printf %s\n'
6025 as_echo_n='printf %s'
6026 else
6027 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6028 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6029 as_echo_n='/usr/ucb/echo -n'
6030 else
6031 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6032 as_echo_n_body='eval
6033 arg=$1;
6034 case $arg in #(
6035 *"$as_nl"*)
6036 expr "X$arg" : "X\\(.*\\)$as_nl";
6037 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6038 esac;
6039 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6041 export as_echo_n_body
6042 as_echo_n='sh -c $as_echo_n_body as_echo'
6044 export as_echo_body
6045 as_echo='sh -c $as_echo_body as_echo'
6048 # The user is always right.
6049 if test "${PATH_SEPARATOR+set}" != set; then
6050 PATH_SEPARATOR=:
6051 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6052 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6053 PATH_SEPARATOR=';'
6058 # IFS
6059 # We need space, tab and new line, in precisely that order. Quoting is
6060 # there to prevent editors from complaining about space-tab.
6061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6062 # splitting by setting IFS to empty value.)
6063 IFS=" "" $as_nl"
6065 # Find who we are. Look in the path if we contain no directory separator.
6066 as_myself=
6067 case $0 in #((
6068 *[\\/]* ) as_myself=$0 ;;
6069 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6075 done
6076 IFS=$as_save_IFS
6079 esac
6080 # We did not find ourselves, most probably we were run as `sh COMMAND'
6081 # in which case we are not to be found in the path.
6082 if test "x$as_myself" = x; then
6083 as_myself=$0
6085 if test ! -f "$as_myself"; then
6086 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6087 exit 1
6090 # Unset variables that we do not need and which cause bugs (e.g. in
6091 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6092 # suppresses any "Segmentation fault" message there. '((' could
6093 # trigger a bug in pdksh 5.2.14.
6094 for as_var in BASH_ENV ENV MAIL MAILPATH
6095 do eval test x\${$as_var+set} = xset \
6096 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6097 done
6098 PS1='$ '
6099 PS2='> '
6100 PS4='+ '
6102 # NLS nuisances.
6103 LC_ALL=C
6104 export LC_ALL
6105 LANGUAGE=C
6106 export LANGUAGE
6108 # CDPATH.
6109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6112 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6113 # ----------------------------------------
6114 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6115 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6116 # script with STATUS, using 1 if that was 0.
6117 as_fn_error ()
6119 as_status=$1; test $as_status -eq 0 && as_status=1
6120 if test "$4"; then
6121 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6122 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6124 $as_echo "$as_me: error: $2" >&2
6125 as_fn_exit $as_status
6126 } # as_fn_error
6129 # as_fn_set_status STATUS
6130 # -----------------------
6131 # Set $? to STATUS, without forking.
6132 as_fn_set_status ()
6134 return $1
6135 } # as_fn_set_status
6137 # as_fn_exit STATUS
6138 # -----------------
6139 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6140 as_fn_exit ()
6142 set +e
6143 as_fn_set_status $1
6144 exit $1
6145 } # as_fn_exit
6147 # as_fn_unset VAR
6148 # ---------------
6149 # Portably unset VAR.
6150 as_fn_unset ()
6152 { eval $1=; unset $1;}
6154 as_unset=as_fn_unset
6155 # as_fn_append VAR VALUE
6156 # ----------------------
6157 # Append the text in VALUE to the end of the definition contained in VAR. Take
6158 # advantage of any shell optimizations that allow amortized linear growth over
6159 # repeated appends, instead of the typical quadratic growth present in naive
6160 # implementations.
6161 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6162 eval 'as_fn_append ()
6164 eval $1+=\$2
6166 else
6167 as_fn_append ()
6169 eval $1=\$$1\$2
6171 fi # as_fn_append
6173 # as_fn_arith ARG...
6174 # ------------------
6175 # Perform arithmetic evaluation on the ARGs, and store the result in the
6176 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6177 # must be portable across $(()) and expr.
6178 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6179 eval 'as_fn_arith ()
6181 as_val=$(( $* ))
6183 else
6184 as_fn_arith ()
6186 as_val=`expr "$@" || test $? -eq 1`
6188 fi # as_fn_arith
6191 if expr a : '\(a\)' >/dev/null 2>&1 &&
6192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6193 as_expr=expr
6194 else
6195 as_expr=false
6198 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6199 as_basename=basename
6200 else
6201 as_basename=false
6204 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6205 as_dirname=dirname
6206 else
6207 as_dirname=false
6210 as_me=`$as_basename -- "$0" ||
6211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6212 X"$0" : 'X\(//\)$' \| \
6213 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6214 $as_echo X/"$0" |
6215 sed '/^.*\/\([^/][^/]*\)\/*$/{
6216 s//\1/
6219 /^X\/\(\/\/\)$/{
6220 s//\1/
6223 /^X\/\(\/\).*/{
6224 s//\1/
6227 s/.*/./; q'`
6229 # Avoid depending upon Character Ranges.
6230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6233 as_cr_digits='0123456789'
6234 as_cr_alnum=$as_cr_Letters$as_cr_digits
6236 ECHO_C= ECHO_N= ECHO_T=
6237 case `echo -n x` in #(((((
6238 -n*)
6239 case `echo 'xy\c'` in
6240 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6241 xy) ECHO_C='\c';;
6242 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6243 ECHO_T=' ';;
6244 esac;;
6246 ECHO_N='-n';;
6247 esac
6249 rm -f conf$$ conf$$.exe conf$$.file
6250 if test -d conf$$.dir; then
6251 rm -f conf$$.dir/conf$$.file
6252 else
6253 rm -f conf$$.dir
6254 mkdir conf$$.dir 2>/dev/null
6256 if (echo >conf$$.file) 2>/dev/null; then
6257 if ln -s conf$$.file conf$$ 2>/dev/null; then
6258 as_ln_s='ln -s'
6259 # ... but there are two gotchas:
6260 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6261 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6262 # In both cases, we have to default to `cp -pR'.
6263 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6264 as_ln_s='cp -pR'
6265 elif ln conf$$.file conf$$ 2>/dev/null; then
6266 as_ln_s=ln
6267 else
6268 as_ln_s='cp -pR'
6270 else
6271 as_ln_s='cp -pR'
6273 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6274 rmdir conf$$.dir 2>/dev/null
6277 # as_fn_mkdir_p
6278 # -------------
6279 # Create "$as_dir" as a directory, including parents if necessary.
6280 as_fn_mkdir_p ()
6283 case $as_dir in #(
6284 -*) as_dir=./$as_dir;;
6285 esac
6286 test -d "$as_dir" || eval $as_mkdir_p || {
6287 as_dirs=
6288 while :; do
6289 case $as_dir in #(
6290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6291 *) as_qdir=$as_dir;;
6292 esac
6293 as_dirs="'$as_qdir' $as_dirs"
6294 as_dir=`$as_dirname -- "$as_dir" ||
6295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6296 X"$as_dir" : 'X\(//\)[^/]' \| \
6297 X"$as_dir" : 'X\(//\)$' \| \
6298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6299 $as_echo X"$as_dir" |
6300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6301 s//\1/
6304 /^X\(\/\/\)[^/].*/{
6305 s//\1/
6308 /^X\(\/\/\)$/{
6309 s//\1/
6312 /^X\(\/\).*/{
6313 s//\1/
6316 s/.*/./; q'`
6317 test -d "$as_dir" && break
6318 done
6319 test -z "$as_dirs" || eval "mkdir $as_dirs"
6320 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6323 } # as_fn_mkdir_p
6324 if mkdir -p . 2>/dev/null; then
6325 as_mkdir_p='mkdir -p "$as_dir"'
6326 else
6327 test -d ./-p && rmdir ./-p
6328 as_mkdir_p=false
6332 # as_fn_executable_p FILE
6333 # -----------------------
6334 # Test if FILE is an executable regular file.
6335 as_fn_executable_p ()
6337 test -f "$1" && test -x "$1"
6338 } # as_fn_executable_p
6339 as_test_x='test -x'
6340 as_executable_p=as_fn_executable_p
6342 # Sed expression to map a string onto a valid CPP name.
6343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6345 # Sed expression to map a string onto a valid variable name.
6346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6349 exec 6>&1
6350 ## ----------------------------------- ##
6351 ## Main body of $CONFIG_STATUS script. ##
6352 ## ----------------------------------- ##
6353 _ASEOF
6354 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6357 # Save the log message, to keep $0 and so on meaningful, and to
6358 # report actual input values of CONFIG_FILES etc. instead of their
6359 # values after options handling.
6360 ac_log="
6361 This file was extended by libpng (TeX Live) $as_me 1.6.28, which was
6362 generated by GNU Autoconf 2.69. Invocation command line was
6364 CONFIG_FILES = $CONFIG_FILES
6365 CONFIG_HEADERS = $CONFIG_HEADERS
6366 CONFIG_LINKS = $CONFIG_LINKS
6367 CONFIG_COMMANDS = $CONFIG_COMMANDS
6368 $ $0 $@
6370 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6373 _ACEOF
6375 case $ac_config_files in *"
6376 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6377 esac
6379 case $ac_config_headers in *"
6380 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6381 esac
6384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6385 # Files that config.status was made for.
6386 config_files="$ac_config_files"
6387 config_headers="$ac_config_headers"
6388 config_commands="$ac_config_commands"
6390 _ACEOF
6392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6393 ac_cs_usage="\
6394 \`$as_me' instantiates files and other configuration actions
6395 from templates according to the current configuration. Unless the files
6396 and actions are specified as TAGs, all are instantiated by default.
6398 Usage: $0 [OPTION]... [TAG]...
6400 -h, --help print this help, then exit
6401 -V, --version print version number and configuration settings, then exit
6402 --config print configuration, then exit
6403 -q, --quiet, --silent
6404 do not print progress messages
6405 -d, --debug don't remove temporary files
6406 --recheck update $as_me by reconfiguring in the same conditions
6407 --file=FILE[:TEMPLATE]
6408 instantiate the configuration file FILE
6409 --header=FILE[:TEMPLATE]
6410 instantiate the configuration header FILE
6412 Configuration files:
6413 $config_files
6415 Configuration headers:
6416 $config_headers
6418 Configuration commands:
6419 $config_commands
6421 Report bugs to <tex-k@tug.org>."
6423 _ACEOF
6424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6425 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6426 ac_cs_version="\\
6427 libpng (TeX Live) config.status 1.6.28
6428 configured by $0, generated by GNU Autoconf 2.69,
6429 with options \\"\$ac_cs_config\\"
6431 Copyright (C) 2012 Free Software Foundation, Inc.
6432 This config.status script is free software; the Free Software Foundation
6433 gives unlimited permission to copy, distribute and modify it."
6435 ac_pwd='$ac_pwd'
6436 srcdir='$srcdir'
6437 INSTALL='$INSTALL'
6438 MKDIR_P='$MKDIR_P'
6439 AWK='$AWK'
6440 test -n "\$AWK" || AWK=awk
6441 _ACEOF
6443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6444 # The default lists apply if the user does not specify any file.
6445 ac_need_defaults=:
6446 while test $# != 0
6448 case $1 in
6449 --*=?*)
6450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6451 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6452 ac_shift=:
6454 --*=)
6455 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6456 ac_optarg=
6457 ac_shift=:
6460 ac_option=$1
6461 ac_optarg=$2
6462 ac_shift=shift
6464 esac
6466 case $ac_option in
6467 # Handling of the options.
6468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6469 ac_cs_recheck=: ;;
6470 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6471 $as_echo "$ac_cs_version"; exit ;;
6472 --config | --confi | --conf | --con | --co | --c )
6473 $as_echo "$ac_cs_config"; exit ;;
6474 --debug | --debu | --deb | --de | --d | -d )
6475 debug=: ;;
6476 --file | --fil | --fi | --f )
6477 $ac_shift
6478 case $ac_optarg in
6479 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6480 '') as_fn_error $? "missing file argument" ;;
6481 esac
6482 as_fn_append CONFIG_FILES " '$ac_optarg'"
6483 ac_need_defaults=false;;
6484 --header | --heade | --head | --hea )
6485 $ac_shift
6486 case $ac_optarg in
6487 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6488 esac
6489 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6490 ac_need_defaults=false;;
6491 --he | --h)
6492 # Conflict between --help and --header
6493 as_fn_error $? "ambiguous option: \`$1'
6494 Try \`$0 --help' for more information.";;
6495 --help | --hel | -h )
6496 $as_echo "$ac_cs_usage"; exit ;;
6497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6498 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6499 ac_cs_silent=: ;;
6501 # This is an error.
6502 -*) as_fn_error $? "unrecognized option: \`$1'
6503 Try \`$0 --help' for more information." ;;
6505 *) as_fn_append ac_config_targets " $1"
6506 ac_need_defaults=false ;;
6508 esac
6509 shift
6510 done
6512 ac_configure_extra_args=
6514 if $ac_cs_silent; then
6515 exec 6>/dev/null
6516 ac_configure_extra_args="$ac_configure_extra_args --silent"
6519 _ACEOF
6520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6521 if \$ac_cs_recheck; then
6522 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6523 shift
6524 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6525 CONFIG_SHELL='$SHELL'
6526 export CONFIG_SHELL
6527 exec "\$@"
6530 _ACEOF
6531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6532 exec 5>>config.log
6534 echo
6535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6536 ## Running $as_me. ##
6537 _ASBOX
6538 $as_echo "$ac_log"
6539 } >&5
6541 _ACEOF
6542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6544 # INIT-COMMANDS
6546 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6548 _ACEOF
6550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6552 # Handling of arguments.
6553 for ac_config_target in $ac_config_targets
6555 case $ac_config_target in
6556 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6558 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6559 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6561 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6562 esac
6563 done
6566 # If the user did not use the arguments to specify the items to instantiate,
6567 # then the envvar interface is used. Set only those that are not.
6568 # We use the long form for the default assignment because of an extremely
6569 # bizarre bug on SunOS 4.1.3.
6570 if $ac_need_defaults; then
6571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6573 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6576 # Have a temporary directory for convenience. Make it in the build tree
6577 # simply because there is no reason against having it here, and in addition,
6578 # creating and moving files from /tmp can sometimes cause problems.
6579 # Hook for its removal unless debugging.
6580 # Note that there is a small window in which the directory will not be cleaned:
6581 # after its creation but before its name has been assigned to `$tmp'.
6582 $debug ||
6584 tmp= ac_tmp=
6585 trap 'exit_status=$?
6586 : "${ac_tmp:=$tmp}"
6587 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6589 trap 'as_fn_exit 1' 1 2 13 15
6591 # Create a (secure) tmp directory for tmp files.
6594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6595 test -d "$tmp"
6596 } ||
6598 tmp=./conf$$-$RANDOM
6599 (umask 077 && mkdir "$tmp")
6600 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6601 ac_tmp=$tmp
6603 # Set up the scripts for CONFIG_FILES section.
6604 # No need to generate them if there are no CONFIG_FILES.
6605 # This happens for instance with `./config.status config.h'.
6606 if test -n "$CONFIG_FILES"; then
6609 ac_cr=`echo X | tr X '\015'`
6610 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6611 # But we know of no other shell where ac_cr would be empty at this
6612 # point, so we can use a bashism as a fallback.
6613 if test "x$ac_cr" = x; then
6614 eval ac_cr=\$\'\\r\'
6616 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6618 ac_cs_awk_cr='\\r'
6619 else
6620 ac_cs_awk_cr=$ac_cr
6623 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6624 _ACEOF
6628 echo "cat >conf$$subs.awk <<_ACEOF" &&
6629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6630 echo "_ACEOF"
6631 } >conf$$subs.sh ||
6632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6634 ac_delim='%!_!# '
6635 for ac_last_try in false false false false false :; do
6636 . ./conf$$subs.sh ||
6637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6640 if test $ac_delim_n = $ac_delim_num; then
6641 break
6642 elif $ac_last_try; then
6643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6644 else
6645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6647 done
6648 rm -f conf$$subs.sh
6650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6651 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6652 _ACEOF
6653 sed -n '
6655 s/^/S["/; s/!.*/"]=/
6658 s/^[^!]*!//
6659 :repl
6660 t repl
6661 s/'"$ac_delim"'$//
6662 t delim
6665 s/\(.\{148\}\)..*/\1/
6666 t more1
6667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6670 b repl
6671 :more1
6672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6675 s/.\{148\}//
6676 t nl
6677 :delim
6679 s/\(.\{148\}\)..*/\1/
6680 t more2
6681 s/["\\]/\\&/g; s/^/"/; s/$/"/
6684 :more2
6685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6688 s/.\{148\}//
6689 t delim
6690 ' <conf$$subs.awk | sed '
6691 /^[^""]/{
6693 s/\n//
6695 ' >>$CONFIG_STATUS || ac_write_fail=1
6696 rm -f conf$$subs.awk
6697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6698 _ACAWK
6699 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6700 for (key in S) S_is_set[key] = 1
6701 FS = "\a"
6705 line = $ 0
6706 nfields = split(line, field, "@")
6707 substed = 0
6708 len = length(field[1])
6709 for (i = 2; i < nfields; i++) {
6710 key = field[i]
6711 keylen = length(key)
6712 if (S_is_set[key]) {
6713 value = S[key]
6714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6715 len += length(value) + length(field[++i])
6716 substed = 1
6717 } else
6718 len += 1 + keylen
6721 print line
6724 _ACAWK
6725 _ACEOF
6726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6728 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6729 else
6731 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6732 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6733 _ACEOF
6735 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6736 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6737 # trailing colons and then remove the whole line if VPATH becomes empty
6738 # (actually we leave an empty line to preserve line numbers).
6739 if test "x$srcdir" = x.; then
6740 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6742 s///
6743 s/^/:/
6744 s/[ ]*$/:/
6745 s/:\$(srcdir):/:/g
6746 s/:\${srcdir}:/:/g
6747 s/:@srcdir@:/:/g
6748 s/^:*//
6749 s/:*$//
6751 s/\(=[ ]*\).*/\1/
6753 s/\n//
6754 s/^[^=]*=[ ]*$//
6758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6759 fi # test -n "$CONFIG_FILES"
6761 # Set up the scripts for CONFIG_HEADERS section.
6762 # No need to generate them if there are no CONFIG_HEADERS.
6763 # This happens for instance with `./config.status Makefile'.
6764 if test -n "$CONFIG_HEADERS"; then
6765 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6766 BEGIN {
6767 _ACEOF
6769 # Transform confdefs.h into an awk script `defines.awk', embedded as
6770 # here-document in config.status, that substitutes the proper values into
6771 # config.h.in to produce config.h.
6773 # Create a delimiter string that does not exist in confdefs.h, to ease
6774 # handling of long lines.
6775 ac_delim='%!_!# '
6776 for ac_last_try in false false :; do
6777 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6778 if test -z "$ac_tt"; then
6779 break
6780 elif $ac_last_try; then
6781 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6782 else
6783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6785 done
6787 # For the awk script, D is an array of macro values keyed by name,
6788 # likewise P contains macro parameters if any. Preserve backslash
6789 # newline sequences.
6791 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6792 sed -n '
6793 s/.\{148\}/&'"$ac_delim"'/g
6794 t rset
6795 :rset
6796 s/^[ ]*#[ ]*define[ ][ ]*/ /
6797 t def
6799 :def
6800 s/\\$//
6801 t bsnl
6802 s/["\\]/\\&/g
6803 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6804 D["\1"]=" \3"/p
6805 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6807 :bsnl
6808 s/["\\]/\\&/g
6809 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6810 D["\1"]=" \3\\\\\\n"\\/p
6811 t cont
6812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6813 t cont
6815 :cont
6817 s/.\{148\}/&'"$ac_delim"'/g
6818 t clear
6819 :clear
6820 s/\\$//
6821 t bsnlc
6822 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6824 :bsnlc
6825 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6826 b cont
6827 ' <confdefs.h | sed '
6828 s/'"$ac_delim"'/"\\\
6829 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6832 for (key in D) D_is_set[key] = 1
6833 FS = "\a"
6835 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6836 line = \$ 0
6837 split(line, arg, " ")
6838 if (arg[1] == "#") {
6839 defundef = arg[2]
6840 mac1 = arg[3]
6841 } else {
6842 defundef = substr(arg[1], 2)
6843 mac1 = arg[2]
6845 split(mac1, mac2, "(") #)
6846 macro = mac2[1]
6847 prefix = substr(line, 1, index(line, defundef) - 1)
6848 if (D_is_set[macro]) {
6849 # Preserve the white space surrounding the "#".
6850 print prefix "define", macro P[macro] D[macro]
6851 next
6852 } else {
6853 # Replace #undef with comments. This is necessary, for example,
6854 # in the case of _POSIX_SOURCE, which is predefined and required
6855 # on some systems where configure will not decide to define it.
6856 if (defundef == "undef") {
6857 print "/*", prefix defundef, macro, "*/"
6858 next
6862 { print }
6863 _ACAWK
6864 _ACEOF
6865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6866 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6867 fi # test -n "$CONFIG_HEADERS"
6870 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6871 shift
6872 for ac_tag
6874 case $ac_tag in
6875 :[FHLC]) ac_mode=$ac_tag; continue;;
6876 esac
6877 case $ac_mode$ac_tag in
6878 :[FHL]*:*);;
6879 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6880 :[FH]-) ac_tag=-:-;;
6881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6882 esac
6883 ac_save_IFS=$IFS
6884 IFS=:
6885 set x $ac_tag
6886 IFS=$ac_save_IFS
6887 shift
6888 ac_file=$1
6889 shift
6891 case $ac_mode in
6892 :L) ac_source=$1;;
6893 :[FH])
6894 ac_file_inputs=
6895 for ac_f
6897 case $ac_f in
6898 -) ac_f="$ac_tmp/stdin";;
6899 *) # Look for the file first in the build tree, then in the source tree
6900 # (if the path is not absolute). The absolute path cannot be DOS-style,
6901 # because $ac_f cannot contain `:'.
6902 test -f "$ac_f" ||
6903 case $ac_f in
6904 [\\/$]*) false;;
6905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6906 esac ||
6907 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6908 esac
6909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6910 as_fn_append ac_file_inputs " '$ac_f'"
6911 done
6913 # Let's still pretend it is `configure' which instantiates (i.e., don't
6914 # use $as_me), people would be surprised to read:
6915 # /* config.h. Generated by config.status. */
6916 configure_input='Generated from '`
6917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6918 `' by configure.'
6919 if test x"$ac_file" != x-; then
6920 configure_input="$ac_file. $configure_input"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6922 $as_echo "$as_me: creating $ac_file" >&6;}
6924 # Neutralize special characters interpreted by sed in replacement strings.
6925 case $configure_input in #(
6926 *\&* | *\|* | *\\* )
6927 ac_sed_conf_input=`$as_echo "$configure_input" |
6928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6929 *) ac_sed_conf_input=$configure_input;;
6930 esac
6932 case $ac_tag in
6933 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6935 esac
6937 esac
6939 ac_dir=`$as_dirname -- "$ac_file" ||
6940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6941 X"$ac_file" : 'X\(//\)[^/]' \| \
6942 X"$ac_file" : 'X\(//\)$' \| \
6943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6944 $as_echo X"$ac_file" |
6945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6946 s//\1/
6949 /^X\(\/\/\)[^/].*/{
6950 s//\1/
6953 /^X\(\/\/\)$/{
6954 s//\1/
6957 /^X\(\/\).*/{
6958 s//\1/
6961 s/.*/./; q'`
6962 as_dir="$ac_dir"; as_fn_mkdir_p
6963 ac_builddir=.
6965 case "$ac_dir" in
6966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6969 # A ".." for each directory in $ac_dir_suffix.
6970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6971 case $ac_top_builddir_sub in
6972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6974 esac ;;
6975 esac
6976 ac_abs_top_builddir=$ac_pwd
6977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6978 # for backward compatibility:
6979 ac_top_builddir=$ac_top_build_prefix
6981 case $srcdir in
6982 .) # We are building in place.
6983 ac_srcdir=.
6984 ac_top_srcdir=$ac_top_builddir_sub
6985 ac_abs_top_srcdir=$ac_pwd ;;
6986 [\\/]* | ?:[\\/]* ) # Absolute name.
6987 ac_srcdir=$srcdir$ac_dir_suffix;
6988 ac_top_srcdir=$srcdir
6989 ac_abs_top_srcdir=$srcdir ;;
6990 *) # Relative name.
6991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6992 ac_top_srcdir=$ac_top_build_prefix$srcdir
6993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6994 esac
6995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6998 case $ac_mode in
7001 # CONFIG_FILE
7004 case $INSTALL in
7005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7007 esac
7008 ac_MKDIR_P=$MKDIR_P
7009 case $MKDIR_P in
7010 [\\/$]* | ?:[\\/]* ) ;;
7011 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7012 esac
7013 _ACEOF
7015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7016 # If the template does not know about datarootdir, expand it.
7017 # FIXME: This hack should be removed a few years after 2.60.
7018 ac_datarootdir_hack=; ac_datarootdir_seen=
7019 ac_sed_dataroot='
7020 /datarootdir/ {
7024 /@datadir@/p
7025 /@docdir@/p
7026 /@infodir@/p
7027 /@localedir@/p
7028 /@mandir@/p'
7029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7030 *datarootdir*) ac_datarootdir_seen=yes;;
7031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7033 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7034 _ACEOF
7035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7036 ac_datarootdir_hack='
7037 s&@datadir@&$datadir&g
7038 s&@docdir@&$docdir&g
7039 s&@infodir@&$infodir&g
7040 s&@localedir@&$localedir&g
7041 s&@mandir@&$mandir&g
7042 s&\\\${datarootdir}&$datarootdir&g' ;;
7043 esac
7044 _ACEOF
7046 # Neutralize VPATH when `$srcdir' = `.'.
7047 # Shell code in configure.ac might set extrasub.
7048 # FIXME: do we really want to maintain this feature?
7049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7050 ac_sed_extra="$ac_vpsub
7051 $extrasub
7052 _ACEOF
7053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7056 s|@configure_input@|$ac_sed_conf_input|;t t
7057 s&@top_builddir@&$ac_top_builddir_sub&;t t
7058 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7059 s&@srcdir@&$ac_srcdir&;t t
7060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7061 s&@top_srcdir@&$ac_top_srcdir&;t t
7062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7063 s&@builddir@&$ac_builddir&;t t
7064 s&@abs_builddir@&$ac_abs_builddir&;t t
7065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7066 s&@INSTALL@&$ac_INSTALL&;t t
7067 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7068 $ac_datarootdir_hack
7070 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7071 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7074 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7076 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7078 which seems to be undefined. Please make sure it is defined" >&5
7079 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7080 which seems to be undefined. Please make sure it is defined" >&2;}
7082 rm -f "$ac_tmp/stdin"
7083 case $ac_file in
7084 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7085 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7086 esac \
7087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7091 # CONFIG_HEADER
7093 if test x"$ac_file" != x-; then
7095 $as_echo "/* $configure_input */" \
7096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7097 } >"$ac_tmp/config.h" \
7098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7099 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7101 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7102 else
7103 rm -f "$ac_file"
7104 mv "$ac_tmp/config.h" "$ac_file" \
7105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7107 else
7108 $as_echo "/* $configure_input */" \
7109 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7110 || as_fn_error $? "could not create -" "$LINENO" 5
7112 # Compute "$ac_file"'s index in $config_headers.
7113 _am_arg="$ac_file"
7114 _am_stamp_count=1
7115 for _am_header in $config_headers :; do
7116 case $_am_header in
7117 $_am_arg | $_am_arg:* )
7118 break ;;
7120 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7121 esac
7122 done
7123 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7124 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7125 X"$_am_arg" : 'X\(//\)[^/]' \| \
7126 X"$_am_arg" : 'X\(//\)$' \| \
7127 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7128 $as_echo X"$_am_arg" |
7129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7130 s//\1/
7133 /^X\(\/\/\)[^/].*/{
7134 s//\1/
7137 /^X\(\/\/\)$/{
7138 s//\1/
7141 /^X\(\/\).*/{
7142 s//\1/
7145 s/.*/./; q'`/stamp-h$_am_stamp_count
7148 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7149 $as_echo "$as_me: executing $ac_file commands" >&6;}
7151 esac
7154 case $ac_file$ac_mode in
7155 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7156 # Older Autoconf quotes --file arguments for eval, but not when files
7157 # are listed without --file. Let's play safe and only enable the eval
7158 # if we detect the quoting.
7159 case $CONFIG_FILES in
7160 *\'*) eval set x "$CONFIG_FILES" ;;
7161 *) set x $CONFIG_FILES ;;
7162 esac
7163 shift
7164 for mf
7166 # Strip MF so we end up with the name of the file.
7167 mf=`echo "$mf" | sed -e 's/:.*$//'`
7168 # Check whether this is an Automake generated Makefile or not.
7169 # We used to match only the files named 'Makefile.in', but
7170 # some people rename them; so instead we look at the file content.
7171 # Grep'ing the first line is not enough: some people post-process
7172 # each Makefile.in and add a new line on top of each file to say so.
7173 # Grep'ing the whole file is not good either: AIX grep has a line
7174 # limit of 2048, but all sed's we know have understand at least 4000.
7175 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7176 dirpart=`$as_dirname -- "$mf" ||
7177 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7178 X"$mf" : 'X\(//\)[^/]' \| \
7179 X"$mf" : 'X\(//\)$' \| \
7180 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7181 $as_echo X"$mf" |
7182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7183 s//\1/
7186 /^X\(\/\/\)[^/].*/{
7187 s//\1/
7190 /^X\(\/\/\)$/{
7191 s//\1/
7194 /^X\(\/\).*/{
7195 s//\1/
7198 s/.*/./; q'`
7199 else
7200 continue
7202 # Extract the definition of DEPDIR, am__include, and am__quote
7203 # from the Makefile without running 'make'.
7204 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7205 test -z "$DEPDIR" && continue
7206 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7207 test -z "$am__include" && continue
7208 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7209 # Find all dependency output files, they are included files with
7210 # $(DEPDIR) in their names. We invoke sed twice because it is the
7211 # simplest approach to changing $(DEPDIR) to its actual value in the
7212 # expansion.
7213 for file in `sed -n "
7214 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7215 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7216 # Make sure the directory exists.
7217 test -f "$dirpart/$file" && continue
7218 fdir=`$as_dirname -- "$file" ||
7219 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7220 X"$file" : 'X\(//\)[^/]' \| \
7221 X"$file" : 'X\(//\)$' \| \
7222 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7223 $as_echo X"$file" |
7224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7225 s//\1/
7228 /^X\(\/\/\)[^/].*/{
7229 s//\1/
7232 /^X\(\/\/\)$/{
7233 s//\1/
7236 /^X\(\/\).*/{
7237 s//\1/
7240 s/.*/./; q'`
7241 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7242 # echo "creating $dirpart/$file"
7243 echo '# dummy' > "$dirpart/$file"
7244 done
7245 done
7249 esac
7250 done # for ac_tag
7253 as_fn_exit 0
7254 _ACEOF
7255 ac_clean_files=$ac_clean_files_save
7257 test $ac_write_fail = 0 ||
7258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7261 # configure is writing to config.log, and then calls config.status.
7262 # config.status does its own redirection, appending to config.log.
7263 # Unfortunately, on DOS this fails, as config.log is still kept open
7264 # by configure, so config.status won't be able to write to it; its
7265 # output is simply discarded. So we exec the FD to /dev/null,
7266 # effectively closing config.log, so it can be properly (re)opened and
7267 # appended to by config.status. When coming back to configure, we
7268 # need to make the FD available again.
7269 if test "$no_create" != yes; then
7270 ac_cs_success=:
7271 ac_config_status_args=
7272 test "$silent" = yes &&
7273 ac_config_status_args="$ac_config_status_args --quiet"
7274 exec 5>/dev/null
7275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7276 exec 5>>config.log
7277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7278 # would make configure fail if this is the last instruction.
7279 $ac_cs_success || as_fn_exit 1
7281 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7283 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}