beta-0.89.2
[luatex.git] / source / libs / libpng / configure
blob58d5f32c791de35d0ff684b871ce5f3636971f05
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.21.
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.21'
584 PACKAGE_STRING='libpng (TeX Live) 1.6.21'
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.21 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.21:";;
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.21
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.21, 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.21'
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 # Checks for header files.
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4899 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4900 # On Suns, sometimes $CPP names a directory.
4901 if test -n "$CPP" && test -d "$CPP"; then
4902 CPP=
4904 if test -z "$CPP"; then
4905 if ${ac_cv_prog_CPP+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 # Double quotes because CPP needs to be expanded
4909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4911 ac_preproc_ok=false
4912 for ac_c_preproc_warn_flag in '' yes
4914 # Use a header file that comes with gcc, so configuring glibc
4915 # with a fresh cross-compiler works.
4916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917 # <limits.h> exists even on freestanding compilers.
4918 # On the NeXT, cc -E runs the code through the compiler's parser,
4919 # not just through cpp. "Syntax error" is here to catch this case.
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 #ifdef __STDC__
4923 # include <limits.h>
4924 #else
4925 # include <assert.h>
4926 #endif
4927 Syntax error
4928 _ACEOF
4929 if ac_fn_c_try_cpp "$LINENO"; then :
4931 else
4932 # Broken: fails on valid input.
4933 continue
4935 rm -f conftest.err conftest.i conftest.$ac_ext
4937 # OK, works on sane cases. Now check whether nonexistent headers
4938 # can be detected and how.
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941 #include <ac_nonexistent.h>
4942 _ACEOF
4943 if ac_fn_c_try_cpp "$LINENO"; then :
4944 # Broken: success on invalid input.
4945 continue
4946 else
4947 # Passes both tests.
4948 ac_preproc_ok=:
4949 break
4951 rm -f conftest.err conftest.i conftest.$ac_ext
4953 done
4954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955 rm -f conftest.i conftest.err conftest.$ac_ext
4956 if $ac_preproc_ok; then :
4957 break
4960 done
4961 ac_cv_prog_CPP=$CPP
4964 CPP=$ac_cv_prog_CPP
4965 else
4966 ac_cv_prog_CPP=$CPP
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4969 $as_echo "$CPP" >&6; }
4970 ac_preproc_ok=false
4971 for ac_c_preproc_warn_flag in '' yes
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981 #ifdef __STDC__
4982 # include <limits.h>
4983 #else
4984 # include <assert.h>
4985 #endif
4986 Syntax error
4987 _ACEOF
4988 if ac_fn_c_try_cpp "$LINENO"; then :
4990 else
4991 # Broken: fails on valid input.
4992 continue
4994 rm -f conftest.err conftest.i conftest.$ac_ext
4996 # OK, works on sane cases. Now check whether nonexistent headers
4997 # can be detected and how.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #include <ac_nonexistent.h>
5001 _ACEOF
5002 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: success on invalid input.
5004 continue
5005 else
5006 # Passes both tests.
5007 ac_preproc_ok=:
5008 break
5010 rm -f conftest.err conftest.i conftest.$ac_ext
5012 done
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.i conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then :
5017 else
5018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5020 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5021 See \`config.log' for more details" "$LINENO" 5; }
5024 ac_ext=c
5025 ac_cpp='$CPP $CPPFLAGS'
5026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5032 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5033 if ${ac_cv_path_GREP+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -z "$GREP"; then
5037 ac_path_GREP_found=false
5038 # Loop through the user's path and test for each of PROGNAME-LIST
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_prog in grep ggrep; do
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5047 as_fn_executable_p "$ac_path_GREP" || continue
5048 # Check for GNU ac_path_GREP and select it if it is found.
5049 # Check for GNU $ac_path_GREP
5050 case `"$ac_path_GREP" --version 2>&1` in
5051 *GNU*)
5052 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5054 ac_count=0
5055 $as_echo_n 0123456789 >"conftest.in"
5056 while :
5058 cat "conftest.in" "conftest.in" >"conftest.tmp"
5059 mv "conftest.tmp" "conftest.in"
5060 cp "conftest.in" "conftest.nl"
5061 $as_echo 'GREP' >> "conftest.nl"
5062 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5064 as_fn_arith $ac_count + 1 && ac_count=$as_val
5065 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5066 # Best one so far, save it but keep looking for a better one
5067 ac_cv_path_GREP="$ac_path_GREP"
5068 ac_path_GREP_max=$ac_count
5070 # 10*(2^10) chars as input seems more than enough
5071 test $ac_count -gt 10 && break
5072 done
5073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5074 esac
5076 $ac_path_GREP_found && break 3
5077 done
5078 done
5079 done
5080 IFS=$as_save_IFS
5081 if test -z "$ac_cv_path_GREP"; then
5082 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5084 else
5085 ac_cv_path_GREP=$GREP
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5090 $as_echo "$ac_cv_path_GREP" >&6; }
5091 GREP="$ac_cv_path_GREP"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5095 $as_echo_n "checking for egrep... " >&6; }
5096 if ${ac_cv_path_EGREP+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5100 then ac_cv_path_EGREP="$GREP -E"
5101 else
5102 if test -z "$EGREP"; then
5103 ac_path_EGREP_found=false
5104 # Loop through the user's path and test for each of PROGNAME-LIST
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_prog in egrep; do
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5113 as_fn_executable_p "$ac_path_EGREP" || continue
5114 # Check for GNU ac_path_EGREP and select it if it is found.
5115 # Check for GNU $ac_path_EGREP
5116 case `"$ac_path_EGREP" --version 2>&1` in
5117 *GNU*)
5118 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5120 ac_count=0
5121 $as_echo_n 0123456789 >"conftest.in"
5122 while :
5124 cat "conftest.in" "conftest.in" >"conftest.tmp"
5125 mv "conftest.tmp" "conftest.in"
5126 cp "conftest.in" "conftest.nl"
5127 $as_echo 'EGREP' >> "conftest.nl"
5128 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5130 as_fn_arith $ac_count + 1 && ac_count=$as_val
5131 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5132 # Best one so far, save it but keep looking for a better one
5133 ac_cv_path_EGREP="$ac_path_EGREP"
5134 ac_path_EGREP_max=$ac_count
5136 # 10*(2^10) chars as input seems more than enough
5137 test $ac_count -gt 10 && break
5138 done
5139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5140 esac
5142 $ac_path_EGREP_found && break 3
5143 done
5144 done
5145 done
5146 IFS=$as_save_IFS
5147 if test -z "$ac_cv_path_EGREP"; then
5148 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 else
5151 ac_cv_path_EGREP=$EGREP
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5157 $as_echo "$ac_cv_path_EGREP" >&6; }
5158 EGREP="$ac_cv_path_EGREP"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5162 $as_echo_n "checking for ANSI C header files... " >&6; }
5163 if ${ac_cv_header_stdc+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <stdlib.h>
5169 #include <stdarg.h>
5170 #include <string.h>
5171 #include <float.h>
5174 main ()
5178 return 0;
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_header_stdc=yes
5183 else
5184 ac_cv_header_stdc=no
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 if test $ac_cv_header_stdc = yes; then
5189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <string.h>
5194 _ACEOF
5195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196 $EGREP "memchr" >/dev/null 2>&1; then :
5198 else
5199 ac_cv_header_stdc=no
5201 rm -f conftest*
5205 if test $ac_cv_header_stdc = yes; then
5206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #include <stdlib.h>
5211 _ACEOF
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213 $EGREP "free" >/dev/null 2>&1; then :
5215 else
5216 ac_cv_header_stdc=no
5218 rm -f conftest*
5222 if test $ac_cv_header_stdc = yes; then
5223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5224 if test "$cross_compiling" = yes; then :
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #include <ctype.h>
5230 #include <stdlib.h>
5231 #if ((' ' & 0x0FF) == 0x020)
5232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5234 #else
5235 # define ISLOWER(c) \
5236 (('a' <= (c) && (c) <= 'i') \
5237 || ('j' <= (c) && (c) <= 'r') \
5238 || ('s' <= (c) && (c) <= 'z'))
5239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5240 #endif
5242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5244 main ()
5246 int i;
5247 for (i = 0; i < 256; i++)
5248 if (XOR (islower (i), ISLOWER (i))
5249 || toupper (i) != TOUPPER (i))
5250 return 2;
5251 return 0;
5253 _ACEOF
5254 if ac_fn_c_try_run "$LINENO"; then :
5256 else
5257 ac_cv_header_stdc=no
5259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5260 conftest.$ac_objext conftest.beam conftest.$ac_ext
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5266 $as_echo "$ac_cv_header_stdc" >&6; }
5267 if test $ac_cv_header_stdc = yes; then
5269 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5274 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5275 inttypes.h stdint.h unistd.h
5276 do :
5277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5281 cat >>confdefs.h <<_ACEOF
5282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5283 _ACEOF
5287 done
5290 for ac_header in malloc.h stdlib.h string.h strings.h
5291 do :
5292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5293 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5295 cat >>confdefs.h <<_ACEOF
5296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5297 _ACEOF
5301 done
5304 # Checks for typedefs, structures, and compiler characteristics.
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5306 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5307 if ${ac_cv_c_const+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5314 main ()
5317 #ifndef __cplusplus
5318 /* Ultrix mips cc rejects this sort of thing. */
5319 typedef int charset[2];
5320 const charset cs = { 0, 0 };
5321 /* SunOS 4.1.1 cc rejects this. */
5322 char const *const *pcpcc;
5323 char **ppc;
5324 /* NEC SVR4.0.2 mips cc rejects this. */
5325 struct point {int x, y;};
5326 static struct point const zero = {0,0};
5327 /* AIX XL C 1.02.0.0 rejects this.
5328 It does not let you subtract one const X* pointer from another in
5329 an arm of an if-expression whose if-part is not a constant
5330 expression */
5331 const char *g = "string";
5332 pcpcc = &g + (g ? g-g : 0);
5333 /* HPUX 7.0 cc rejects these. */
5334 ++pcpcc;
5335 ppc = (char**) pcpcc;
5336 pcpcc = (char const *const *) ppc;
5337 { /* SCO 3.2v4 cc rejects this sort of thing. */
5338 char tx;
5339 char *t = &tx;
5340 char const *s = 0 ? (char *) 0 : (char const *) 0;
5342 *t++ = 0;
5343 if (s) return 0;
5345 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5346 int x[] = {25, 17};
5347 const int *foo = &x[0];
5348 ++foo;
5350 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5351 typedef const int *iptr;
5352 iptr p = 0;
5353 ++p;
5355 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5356 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5357 struct s { int j; const int *ap[3]; } bx;
5358 struct s *b = &bx; b->j = 5;
5360 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5361 const int foo = 10;
5362 if (!foo) return 0;
5364 return !cs[0] && !zero.x;
5365 #endif
5368 return 0;
5370 _ACEOF
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_c_const=yes
5373 else
5374 ac_cv_c_const=no
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5379 $as_echo "$ac_cv_c_const" >&6; }
5380 if test $ac_cv_c_const = no; then
5382 $as_echo "#define const /**/" >>confdefs.h
5386 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5387 if test "x$ac_cv_type_size_t" = xyes; then :
5389 else
5391 cat >>confdefs.h <<_ACEOF
5392 #define size_t unsigned int
5393 _ACEOF
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5398 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5399 if ${ac_cv_struct_tm+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <sys/types.h>
5405 #include <time.h>
5408 main ()
5410 struct tm tm;
5411 int *p = &tm.tm_sec;
5412 return !p;
5414 return 0;
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 ac_cv_struct_tm=time.h
5419 else
5420 ac_cv_struct_tm=sys/time.h
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5425 $as_echo "$ac_cv_struct_tm" >&6; }
5426 if test $ac_cv_struct_tm = sys/time.h; then
5428 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5433 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5434 if ${ac_cv_c_restrict+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 ac_cv_c_restrict=no
5438 # The order here caters to the fact that C++ does not require restrict.
5439 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 typedef int * int_ptr;
5443 int foo (int_ptr $ac_kw ip) {
5444 return ip[0];
5447 main ()
5449 int s[1];
5450 int * $ac_kw t = s;
5451 t[0] = 0;
5452 return foo(t)
5454 return 0;
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_c_restrict=$ac_kw
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 test "$ac_cv_c_restrict" != no && break
5462 done
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5466 $as_echo "$ac_cv_c_restrict" >&6; }
5468 case $ac_cv_c_restrict in
5469 restrict) ;;
5470 no) $as_echo "#define restrict /**/" >>confdefs.h
5472 *) cat >>confdefs.h <<_ACEOF
5473 #define restrict $ac_cv_c_restrict
5474 _ACEOF
5476 esac
5479 # Checks for library functions.
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
5481 $as_echo_n "checking for working strtod... " >&6; }
5482 if ${ac_cv_func_strtod+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test "$cross_compiling" = yes; then :
5486 ac_cv_func_strtod=no
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5491 $ac_includes_default
5492 #ifndef strtod
5493 double strtod ();
5494 #endif
5496 main()
5499 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
5500 char *string = " +69";
5501 char *term;
5502 double value;
5503 value = strtod (string, &term);
5504 if (value != 69 || term != (string + 4))
5505 return 1;
5509 /* Under Solaris 2.4, strtod returns the wrong value for the
5510 terminating character under some conditions. */
5511 char *string = "NaN";
5512 char *term;
5513 strtod (string, &term);
5514 if (term != string && *(term - 1) == 0)
5515 return 1;
5517 return 0;
5520 _ACEOF
5521 if ac_fn_c_try_run "$LINENO"; then :
5522 ac_cv_func_strtod=yes
5523 else
5524 ac_cv_func_strtod=no
5526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5527 conftest.$ac_objext conftest.beam conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
5532 $as_echo "$ac_cv_func_strtod" >&6; }
5533 if test $ac_cv_func_strtod = no; then
5534 case " $LIBOBJS " in
5535 *" strtod.$ac_objext "* ) ;;
5536 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
5538 esac
5540 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
5541 if test "x$ac_cv_func_pow" = xyes; then :
5545 if test $ac_cv_func_pow = no; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
5547 $as_echo_n "checking for pow in -lm... " >&6; }
5548 if ${ac_cv_lib_m_pow+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-lm $LIBS"
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5556 /* Override any GCC internal prototype to avoid an error.
5557 Use char because int might match the return type of a GCC
5558 builtin and then its argument prototype would still apply. */
5559 #ifdef __cplusplus
5560 extern "C"
5561 #endif
5562 char pow ();
5564 main ()
5566 return pow ();
5568 return 0;
5570 _ACEOF
5571 if ac_fn_c_try_link "$LINENO"; then :
5572 ac_cv_lib_m_pow=yes
5573 else
5574 ac_cv_lib_m_pow=no
5576 rm -f core conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 LIBS=$ac_check_lib_save_LIBS
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
5581 $as_echo "$ac_cv_lib_m_pow" >&6; }
5582 if test "x$ac_cv_lib_m_pow" = xyes; then :
5583 POW_LIB=-lm
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
5586 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5593 for ac_func in memset
5594 do :
5595 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
5596 if test "x$ac_cv_func_memset" = xyes; then :
5597 cat >>confdefs.h <<_ACEOF
5598 #define HAVE_MEMSET 1
5599 _ACEOF
5601 else
5602 as_fn_error $? "memset not found in libc" "$LINENO" 5
5604 done
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
5607 $as_echo_n "checking for library containing pow... " >&6; }
5608 if ${ac_cv_search_pow+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_func_search_save_LIBS=$LIBS
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5615 /* Override any GCC internal prototype to avoid an error.
5616 Use char because int might match the return type of a GCC
5617 builtin and then its argument prototype would still apply. */
5618 #ifdef __cplusplus
5619 extern "C"
5620 #endif
5621 char pow ();
5623 main ()
5625 return pow ();
5627 return 0;
5629 _ACEOF
5630 for ac_lib in '' m; do
5631 if test -z "$ac_lib"; then
5632 ac_res="none required"
5633 else
5634 ac_res=-l$ac_lib
5635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5637 if ac_fn_c_try_link "$LINENO"; then :
5638 ac_cv_search_pow=$ac_res
5640 rm -f core conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext
5642 if ${ac_cv_search_pow+:} false; then :
5643 break
5645 done
5646 if ${ac_cv_search_pow+:} false; then :
5648 else
5649 ac_cv_search_pow=no
5651 rm conftest.$ac_ext
5652 LIBS=$ac_func_search_save_LIBS
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
5655 $as_echo "$ac_cv_search_pow" >&6; }
5656 ac_res=$ac_cv_search_pow
5657 if test "$ac_res" != no; then :
5658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5660 else
5661 as_fn_error $? "cannot find pow" "$LINENO" 5
5665 kpse_save_CPPFLAGS=$CPPFLAGS
5666 kpse_save_LIBS=$LIBS
5668 ## _KPSE_INIT: Initialize TL infrastructure
5669 kpse_BLD=`(cd "./../../." && pwd)`
5670 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
5672 ## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags
5674 # Check whether --with-system-zlib was given.
5675 if test "${with_system_zlib+set}" = set; then :
5676 withval=$with_system_zlib;
5679 # Check whether --with-zlib-includes was given.
5680 if test "${with_zlib_includes+set}" = set; then :
5681 withval=$with_zlib_includes;
5684 # Check whether --with-zlib-libdir was given.
5685 if test "${with_zlib_libdir+set}" = set; then :
5686 withval=$with_zlib_libdir;
5688 if test "x$with_system_zlib" = xyes; then
5689 if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
5690 ZLIB_INCLUDES="-I$with_zlib_includes"
5692 ZLIB_LIBS="-lz"
5693 if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
5694 ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
5696 else
5697 ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
5698 ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
5699 ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
5700 ZLIB_RULE='# Rebuild libz
5701 $(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
5702 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
5703 ${top_builddir}/../../libs/zlib/include/zconf.h:
5704 cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
5707 $as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; }
5708 if ${kpse_cv_have_decl_z_const+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
5712 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #include <zlib.h>
5718 main ()
5720 z_const char * foo();
5722 return 0;
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 kpse_cv_have_decl_z_const=yes
5727 else
5728 kpse_cv_have_decl_z_const=no
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 CPPFLAGS=$kpse_save_CPPFLAGS
5732 LIBS=$kpse_save_LIBS
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
5736 $as_echo "$kpse_cv_have_decl_z_const" >&6; }
5737 case $kpse_cv_have_decl_z_const in #(
5738 yes) :
5740 $as_echo "#define ZLIB_CONST 1" >>confdefs.h
5741 ;; #(
5742 *) :
5744 $as_echo "#define z_const /**/" >>confdefs.h
5746 esac
5749 if test "x$enable_build" != xno; then
5750 build_TRUE=
5751 build_FALSE='#'
5752 else
5753 build_TRUE='#'
5754 build_FALSE=
5758 if test "x$enable_build" != xno || test -f config.force; then
5760 eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
5761 eval LIBS=\"$ZLIB_LIBS \$LIBS\"
5763 ac_fn_c_check_func "$LINENO" "zlibVersion" "ac_cv_func_zlibVersion"
5764 if test "x$ac_cv_func_zlibVersion" = xyes; then :
5766 else
5767 as_fn_error $? "zlib not found" "$LINENO" 5
5770 CPPFLAGS=$kpse_save_CPPFLAGS
5771 LIBS=$kpse_save_LIBS
5774 echo timestamp >config.force
5777 LIBPNG_TREE=libpng-src
5780 LIBPNG_DEFINES='-DPNG_CONFIGURE_LIBPNG -DPNG_NO_MMX_CODE'
5783 ac_config_files="$ac_config_files Makefile include/Makefile"
5786 cat >confcache <<\_ACEOF
5787 # This file is a shell script that caches the results of configure
5788 # tests run on this system so they can be shared between configure
5789 # scripts and configure runs, see configure's option --config-cache.
5790 # It is not useful on other systems. If it contains results you don't
5791 # want to keep, you may remove or edit it.
5793 # config.status only pays attention to the cache file if you give it
5794 # the --recheck option to rerun configure.
5796 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5797 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5798 # following values.
5800 _ACEOF
5802 # The following way of writing the cache mishandles newlines in values,
5803 # but we know of no workaround that is simple, portable, and efficient.
5804 # So, we kill variables containing newlines.
5805 # Ultrix sh set writes to stderr and can't be redirected directly,
5806 # and sets the high bit in the cache file unless we assign to the vars.
5808 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5809 eval ac_val=\$$ac_var
5810 case $ac_val in #(
5811 *${as_nl}*)
5812 case $ac_var in #(
5813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5815 esac
5816 case $ac_var in #(
5817 _ | IFS | as_nl) ;; #(
5818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5819 *) { eval $ac_var=; unset $ac_var;} ;;
5820 esac ;;
5821 esac
5822 done
5824 (set) 2>&1 |
5825 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5826 *${as_nl}ac_space=\ *)
5827 # `set' does not quote correctly, so add quotes: double-quote
5828 # substitution turns \\\\ into \\, and sed turns \\ into \.
5829 sed -n \
5830 "s/'/'\\\\''/g;
5831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5832 ;; #(
5834 # `set' quotes correctly as required by POSIX, so do not add quotes.
5835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5837 esac |
5838 sort
5840 sed '
5841 /^ac_cv_env_/b end
5842 t clear
5843 :clear
5844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5845 t end
5846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5847 :end' >>confcache
5848 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5849 if test -w "$cache_file"; then
5850 if test "x$cache_file" != "x/dev/null"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5852 $as_echo "$as_me: updating cache $cache_file" >&6;}
5853 if test ! -f "$cache_file" || test -h "$cache_file"; then
5854 cat confcache >"$cache_file"
5855 else
5856 case $cache_file in #(
5857 */* | ?:*)
5858 mv -f confcache "$cache_file"$$ &&
5859 mv -f "$cache_file"$$ "$cache_file" ;; #(
5861 mv -f confcache "$cache_file" ;;
5862 esac
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5867 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5870 rm -f confcache
5872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5873 # Let make expand exec_prefix.
5874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5876 DEFS=-DHAVE_CONFIG_H
5878 ac_libobjs=
5879 ac_ltlibobjs=
5881 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5882 # 1. Remove the extension, and $U if already installed.
5883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5884 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5886 # will be set to the directory where LIBOBJS objects are built.
5887 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5888 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5889 done
5890 LIBOBJS=$ac_libobjs
5892 LTLIBOBJS=$ac_ltlibobjs
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5896 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5897 if test -n "$am_sleep_pid"; then
5898 # Hide warnings about reused PIDs.
5899 wait $am_sleep_pid 2>/dev/null
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5902 $as_echo "done" >&6; }
5903 if test -n "$EXEEXT"; then
5904 am__EXEEXT_TRUE=
5905 am__EXEEXT_FALSE='#'
5906 else
5907 am__EXEEXT_TRUE='#'
5908 am__EXEEXT_FALSE=
5911 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5912 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5916 as_fn_error $? "conditional \"AMDEP\" was never defined.
5917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5920 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5924 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5927 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
5928 as_fn_error $? "conditional \"build\" was never defined.
5929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5932 : "${CONFIG_STATUS=./config.status}"
5933 ac_write_fail=0
5934 ac_clean_files_save=$ac_clean_files
5935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5937 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5938 as_write_fail=0
5939 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5940 #! $SHELL
5941 # Generated by $as_me.
5942 # Run this file to recreate the current configuration.
5943 # Compiler output produced by configure, useful for debugging
5944 # configure, is in config.log if it exists.
5946 debug=false
5947 ac_cs_recheck=false
5948 ac_cs_silent=false
5950 SHELL=\${CONFIG_SHELL-$SHELL}
5951 export SHELL
5952 _ASEOF
5953 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5954 ## -------------------- ##
5955 ## M4sh Initialization. ##
5956 ## -------------------- ##
5958 # Be more Bourne compatible
5959 DUALCASE=1; export DUALCASE # for MKS sh
5960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5961 emulate sh
5962 NULLCMD=:
5963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5964 # is contrary to our usage. Disable this feature.
5965 alias -g '${1+"$@"}'='"$@"'
5966 setopt NO_GLOB_SUBST
5967 else
5968 case `(set -o) 2>/dev/null` in #(
5969 *posix*) :
5970 set -o posix ;; #(
5971 *) :
5973 esac
5977 as_nl='
5979 export as_nl
5980 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5981 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5984 # Prefer a ksh shell builtin over an external printf program on Solaris,
5985 # but without wasting forks for bash or zsh.
5986 if test -z "$BASH_VERSION$ZSH_VERSION" \
5987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5988 as_echo='print -r --'
5989 as_echo_n='print -rn --'
5990 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5991 as_echo='printf %s\n'
5992 as_echo_n='printf %s'
5993 else
5994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5995 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5996 as_echo_n='/usr/ucb/echo -n'
5997 else
5998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5999 as_echo_n_body='eval
6000 arg=$1;
6001 case $arg in #(
6002 *"$as_nl"*)
6003 expr "X$arg" : "X\\(.*\\)$as_nl";
6004 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6005 esac;
6006 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6008 export as_echo_n_body
6009 as_echo_n='sh -c $as_echo_n_body as_echo'
6011 export as_echo_body
6012 as_echo='sh -c $as_echo_body as_echo'
6015 # The user is always right.
6016 if test "${PATH_SEPARATOR+set}" != set; then
6017 PATH_SEPARATOR=:
6018 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6019 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6020 PATH_SEPARATOR=';'
6025 # IFS
6026 # We need space, tab and new line, in precisely that order. Quoting is
6027 # there to prevent editors from complaining about space-tab.
6028 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6029 # splitting by setting IFS to empty value.)
6030 IFS=" "" $as_nl"
6032 # Find who we are. Look in the path if we contain no directory separator.
6033 as_myself=
6034 case $0 in #((
6035 *[\\/]* ) as_myself=$0 ;;
6036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6042 done
6043 IFS=$as_save_IFS
6046 esac
6047 # We did not find ourselves, most probably we were run as `sh COMMAND'
6048 # in which case we are not to be found in the path.
6049 if test "x$as_myself" = x; then
6050 as_myself=$0
6052 if test ! -f "$as_myself"; then
6053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6054 exit 1
6057 # Unset variables that we do not need and which cause bugs (e.g. in
6058 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6059 # suppresses any "Segmentation fault" message there. '((' could
6060 # trigger a bug in pdksh 5.2.14.
6061 for as_var in BASH_ENV ENV MAIL MAILPATH
6062 do eval test x\${$as_var+set} = xset \
6063 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6064 done
6065 PS1='$ '
6066 PS2='> '
6067 PS4='+ '
6069 # NLS nuisances.
6070 LC_ALL=C
6071 export LC_ALL
6072 LANGUAGE=C
6073 export LANGUAGE
6075 # CDPATH.
6076 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6079 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6080 # ----------------------------------------
6081 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6082 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6083 # script with STATUS, using 1 if that was 0.
6084 as_fn_error ()
6086 as_status=$1; test $as_status -eq 0 && as_status=1
6087 if test "$4"; then
6088 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6091 $as_echo "$as_me: error: $2" >&2
6092 as_fn_exit $as_status
6093 } # as_fn_error
6096 # as_fn_set_status STATUS
6097 # -----------------------
6098 # Set $? to STATUS, without forking.
6099 as_fn_set_status ()
6101 return $1
6102 } # as_fn_set_status
6104 # as_fn_exit STATUS
6105 # -----------------
6106 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6107 as_fn_exit ()
6109 set +e
6110 as_fn_set_status $1
6111 exit $1
6112 } # as_fn_exit
6114 # as_fn_unset VAR
6115 # ---------------
6116 # Portably unset VAR.
6117 as_fn_unset ()
6119 { eval $1=; unset $1;}
6121 as_unset=as_fn_unset
6122 # as_fn_append VAR VALUE
6123 # ----------------------
6124 # Append the text in VALUE to the end of the definition contained in VAR. Take
6125 # advantage of any shell optimizations that allow amortized linear growth over
6126 # repeated appends, instead of the typical quadratic growth present in naive
6127 # implementations.
6128 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6129 eval 'as_fn_append ()
6131 eval $1+=\$2
6133 else
6134 as_fn_append ()
6136 eval $1=\$$1\$2
6138 fi # as_fn_append
6140 # as_fn_arith ARG...
6141 # ------------------
6142 # Perform arithmetic evaluation on the ARGs, and store the result in the
6143 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6144 # must be portable across $(()) and expr.
6145 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6146 eval 'as_fn_arith ()
6148 as_val=$(( $* ))
6150 else
6151 as_fn_arith ()
6153 as_val=`expr "$@" || test $? -eq 1`
6155 fi # as_fn_arith
6158 if expr a : '\(a\)' >/dev/null 2>&1 &&
6159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6160 as_expr=expr
6161 else
6162 as_expr=false
6165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6166 as_basename=basename
6167 else
6168 as_basename=false
6171 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6172 as_dirname=dirname
6173 else
6174 as_dirname=false
6177 as_me=`$as_basename -- "$0" ||
6178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6179 X"$0" : 'X\(//\)$' \| \
6180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6181 $as_echo X/"$0" |
6182 sed '/^.*\/\([^/][^/]*\)\/*$/{
6183 s//\1/
6186 /^X\/\(\/\/\)$/{
6187 s//\1/
6190 /^X\/\(\/\).*/{
6191 s//\1/
6194 s/.*/./; q'`
6196 # Avoid depending upon Character Ranges.
6197 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6198 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6199 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6200 as_cr_digits='0123456789'
6201 as_cr_alnum=$as_cr_Letters$as_cr_digits
6203 ECHO_C= ECHO_N= ECHO_T=
6204 case `echo -n x` in #(((((
6205 -n*)
6206 case `echo 'xy\c'` in
6207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6208 xy) ECHO_C='\c';;
6209 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6210 ECHO_T=' ';;
6211 esac;;
6213 ECHO_N='-n';;
6214 esac
6216 rm -f conf$$ conf$$.exe conf$$.file
6217 if test -d conf$$.dir; then
6218 rm -f conf$$.dir/conf$$.file
6219 else
6220 rm -f conf$$.dir
6221 mkdir conf$$.dir 2>/dev/null
6223 if (echo >conf$$.file) 2>/dev/null; then
6224 if ln -s conf$$.file conf$$ 2>/dev/null; then
6225 as_ln_s='ln -s'
6226 # ... but there are two gotchas:
6227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6229 # In both cases, we have to default to `cp -pR'.
6230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6231 as_ln_s='cp -pR'
6232 elif ln conf$$.file conf$$ 2>/dev/null; then
6233 as_ln_s=ln
6234 else
6235 as_ln_s='cp -pR'
6237 else
6238 as_ln_s='cp -pR'
6240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6241 rmdir conf$$.dir 2>/dev/null
6244 # as_fn_mkdir_p
6245 # -------------
6246 # Create "$as_dir" as a directory, including parents if necessary.
6247 as_fn_mkdir_p ()
6250 case $as_dir in #(
6251 -*) as_dir=./$as_dir;;
6252 esac
6253 test -d "$as_dir" || eval $as_mkdir_p || {
6254 as_dirs=
6255 while :; do
6256 case $as_dir in #(
6257 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6258 *) as_qdir=$as_dir;;
6259 esac
6260 as_dirs="'$as_qdir' $as_dirs"
6261 as_dir=`$as_dirname -- "$as_dir" ||
6262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6263 X"$as_dir" : 'X\(//\)[^/]' \| \
6264 X"$as_dir" : 'X\(//\)$' \| \
6265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6266 $as_echo X"$as_dir" |
6267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6268 s//\1/
6271 /^X\(\/\/\)[^/].*/{
6272 s//\1/
6275 /^X\(\/\/\)$/{
6276 s//\1/
6279 /^X\(\/\).*/{
6280 s//\1/
6283 s/.*/./; q'`
6284 test -d "$as_dir" && break
6285 done
6286 test -z "$as_dirs" || eval "mkdir $as_dirs"
6287 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6290 } # as_fn_mkdir_p
6291 if mkdir -p . 2>/dev/null; then
6292 as_mkdir_p='mkdir -p "$as_dir"'
6293 else
6294 test -d ./-p && rmdir ./-p
6295 as_mkdir_p=false
6299 # as_fn_executable_p FILE
6300 # -----------------------
6301 # Test if FILE is an executable regular file.
6302 as_fn_executable_p ()
6304 test -f "$1" && test -x "$1"
6305 } # as_fn_executable_p
6306 as_test_x='test -x'
6307 as_executable_p=as_fn_executable_p
6309 # Sed expression to map a string onto a valid CPP name.
6310 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6312 # Sed expression to map a string onto a valid variable name.
6313 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6316 exec 6>&1
6317 ## ----------------------------------- ##
6318 ## Main body of $CONFIG_STATUS script. ##
6319 ## ----------------------------------- ##
6320 _ASEOF
6321 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6324 # Save the log message, to keep $0 and so on meaningful, and to
6325 # report actual input values of CONFIG_FILES etc. instead of their
6326 # values after options handling.
6327 ac_log="
6328 This file was extended by libpng (TeX Live) $as_me 1.6.21, which was
6329 generated by GNU Autoconf 2.69. Invocation command line was
6331 CONFIG_FILES = $CONFIG_FILES
6332 CONFIG_HEADERS = $CONFIG_HEADERS
6333 CONFIG_LINKS = $CONFIG_LINKS
6334 CONFIG_COMMANDS = $CONFIG_COMMANDS
6335 $ $0 $@
6337 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6340 _ACEOF
6342 case $ac_config_files in *"
6343 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6344 esac
6346 case $ac_config_headers in *"
6347 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6348 esac
6351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6352 # Files that config.status was made for.
6353 config_files="$ac_config_files"
6354 config_headers="$ac_config_headers"
6355 config_commands="$ac_config_commands"
6357 _ACEOF
6359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6360 ac_cs_usage="\
6361 \`$as_me' instantiates files and other configuration actions
6362 from templates according to the current configuration. Unless the files
6363 and actions are specified as TAGs, all are instantiated by default.
6365 Usage: $0 [OPTION]... [TAG]...
6367 -h, --help print this help, then exit
6368 -V, --version print version number and configuration settings, then exit
6369 --config print configuration, then exit
6370 -q, --quiet, --silent
6371 do not print progress messages
6372 -d, --debug don't remove temporary files
6373 --recheck update $as_me by reconfiguring in the same conditions
6374 --file=FILE[:TEMPLATE]
6375 instantiate the configuration file FILE
6376 --header=FILE[:TEMPLATE]
6377 instantiate the configuration header FILE
6379 Configuration files:
6380 $config_files
6382 Configuration headers:
6383 $config_headers
6385 Configuration commands:
6386 $config_commands
6388 Report bugs to <tex-k@tug.org>."
6390 _ACEOF
6391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6392 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6393 ac_cs_version="\\
6394 libpng (TeX Live) config.status 1.6.21
6395 configured by $0, generated by GNU Autoconf 2.69,
6396 with options \\"\$ac_cs_config\\"
6398 Copyright (C) 2012 Free Software Foundation, Inc.
6399 This config.status script is free software; the Free Software Foundation
6400 gives unlimited permission to copy, distribute and modify it."
6402 ac_pwd='$ac_pwd'
6403 srcdir='$srcdir'
6404 INSTALL='$INSTALL'
6405 MKDIR_P='$MKDIR_P'
6406 AWK='$AWK'
6407 test -n "\$AWK" || AWK=awk
6408 _ACEOF
6410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6411 # The default lists apply if the user does not specify any file.
6412 ac_need_defaults=:
6413 while test $# != 0
6415 case $1 in
6416 --*=?*)
6417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6418 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6419 ac_shift=:
6421 --*=)
6422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6423 ac_optarg=
6424 ac_shift=:
6427 ac_option=$1
6428 ac_optarg=$2
6429 ac_shift=shift
6431 esac
6433 case $ac_option in
6434 # Handling of the options.
6435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6436 ac_cs_recheck=: ;;
6437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6438 $as_echo "$ac_cs_version"; exit ;;
6439 --config | --confi | --conf | --con | --co | --c )
6440 $as_echo "$ac_cs_config"; exit ;;
6441 --debug | --debu | --deb | --de | --d | -d )
6442 debug=: ;;
6443 --file | --fil | --fi | --f )
6444 $ac_shift
6445 case $ac_optarg in
6446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6447 '') as_fn_error $? "missing file argument" ;;
6448 esac
6449 as_fn_append CONFIG_FILES " '$ac_optarg'"
6450 ac_need_defaults=false;;
6451 --header | --heade | --head | --hea )
6452 $ac_shift
6453 case $ac_optarg in
6454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6455 esac
6456 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6457 ac_need_defaults=false;;
6458 --he | --h)
6459 # Conflict between --help and --header
6460 as_fn_error $? "ambiguous option: \`$1'
6461 Try \`$0 --help' for more information.";;
6462 --help | --hel | -h )
6463 $as_echo "$ac_cs_usage"; exit ;;
6464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6466 ac_cs_silent=: ;;
6468 # This is an error.
6469 -*) as_fn_error $? "unrecognized option: \`$1'
6470 Try \`$0 --help' for more information." ;;
6472 *) as_fn_append ac_config_targets " $1"
6473 ac_need_defaults=false ;;
6475 esac
6476 shift
6477 done
6479 ac_configure_extra_args=
6481 if $ac_cs_silent; then
6482 exec 6>/dev/null
6483 ac_configure_extra_args="$ac_configure_extra_args --silent"
6486 _ACEOF
6487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6488 if \$ac_cs_recheck; then
6489 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6490 shift
6491 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6492 CONFIG_SHELL='$SHELL'
6493 export CONFIG_SHELL
6494 exec "\$@"
6497 _ACEOF
6498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6499 exec 5>>config.log
6501 echo
6502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6503 ## Running $as_me. ##
6504 _ASBOX
6505 $as_echo "$ac_log"
6506 } >&5
6508 _ACEOF
6509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6511 # INIT-COMMANDS
6513 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6515 _ACEOF
6517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6519 # Handling of arguments.
6520 for ac_config_target in $ac_config_targets
6522 case $ac_config_target in
6523 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6524 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6525 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6526 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6528 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6529 esac
6530 done
6533 # If the user did not use the arguments to specify the items to instantiate,
6534 # then the envvar interface is used. Set only those that are not.
6535 # We use the long form for the default assignment because of an extremely
6536 # bizarre bug on SunOS 4.1.3.
6537 if $ac_need_defaults; then
6538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6543 # Have a temporary directory for convenience. Make it in the build tree
6544 # simply because there is no reason against having it here, and in addition,
6545 # creating and moving files from /tmp can sometimes cause problems.
6546 # Hook for its removal unless debugging.
6547 # Note that there is a small window in which the directory will not be cleaned:
6548 # after its creation but before its name has been assigned to `$tmp'.
6549 $debug ||
6551 tmp= ac_tmp=
6552 trap 'exit_status=$?
6553 : "${ac_tmp:=$tmp}"
6554 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6556 trap 'as_fn_exit 1' 1 2 13 15
6558 # Create a (secure) tmp directory for tmp files.
6561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6562 test -d "$tmp"
6563 } ||
6565 tmp=./conf$$-$RANDOM
6566 (umask 077 && mkdir "$tmp")
6567 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6568 ac_tmp=$tmp
6570 # Set up the scripts for CONFIG_FILES section.
6571 # No need to generate them if there are no CONFIG_FILES.
6572 # This happens for instance with `./config.status config.h'.
6573 if test -n "$CONFIG_FILES"; then
6576 ac_cr=`echo X | tr X '\015'`
6577 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6578 # But we know of no other shell where ac_cr would be empty at this
6579 # point, so we can use a bashism as a fallback.
6580 if test "x$ac_cr" = x; then
6581 eval ac_cr=\$\'\\r\'
6583 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6584 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6585 ac_cs_awk_cr='\\r'
6586 else
6587 ac_cs_awk_cr=$ac_cr
6590 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6591 _ACEOF
6595 echo "cat >conf$$subs.awk <<_ACEOF" &&
6596 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6597 echo "_ACEOF"
6598 } >conf$$subs.sh ||
6599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6601 ac_delim='%!_!# '
6602 for ac_last_try in false false false false false :; do
6603 . ./conf$$subs.sh ||
6604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6606 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6607 if test $ac_delim_n = $ac_delim_num; then
6608 break
6609 elif $ac_last_try; then
6610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6611 else
6612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6614 done
6615 rm -f conf$$subs.sh
6617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6618 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6619 _ACEOF
6620 sed -n '
6622 s/^/S["/; s/!.*/"]=/
6625 s/^[^!]*!//
6626 :repl
6627 t repl
6628 s/'"$ac_delim"'$//
6629 t delim
6632 s/\(.\{148\}\)..*/\1/
6633 t more1
6634 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6637 b repl
6638 :more1
6639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6642 s/.\{148\}//
6643 t nl
6644 :delim
6646 s/\(.\{148\}\)..*/\1/
6647 t more2
6648 s/["\\]/\\&/g; s/^/"/; s/$/"/
6651 :more2
6652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6655 s/.\{148\}//
6656 t delim
6657 ' <conf$$subs.awk | sed '
6658 /^[^""]/{
6660 s/\n//
6662 ' >>$CONFIG_STATUS || ac_write_fail=1
6663 rm -f conf$$subs.awk
6664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6665 _ACAWK
6666 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6667 for (key in S) S_is_set[key] = 1
6668 FS = "\a"
6672 line = $ 0
6673 nfields = split(line, field, "@")
6674 substed = 0
6675 len = length(field[1])
6676 for (i = 2; i < nfields; i++) {
6677 key = field[i]
6678 keylen = length(key)
6679 if (S_is_set[key]) {
6680 value = S[key]
6681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6682 len += length(value) + length(field[++i])
6683 substed = 1
6684 } else
6685 len += 1 + keylen
6688 print line
6691 _ACAWK
6692 _ACEOF
6693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6696 else
6698 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6699 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6700 _ACEOF
6702 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6703 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6704 # trailing colons and then remove the whole line if VPATH becomes empty
6705 # (actually we leave an empty line to preserve line numbers).
6706 if test "x$srcdir" = x.; then
6707 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6709 s///
6710 s/^/:/
6711 s/[ ]*$/:/
6712 s/:\$(srcdir):/:/g
6713 s/:\${srcdir}:/:/g
6714 s/:@srcdir@:/:/g
6715 s/^:*//
6716 s/:*$//
6718 s/\(=[ ]*\).*/\1/
6720 s/\n//
6721 s/^[^=]*=[ ]*$//
6725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6726 fi # test -n "$CONFIG_FILES"
6728 # Set up the scripts for CONFIG_HEADERS section.
6729 # No need to generate them if there are no CONFIG_HEADERS.
6730 # This happens for instance with `./config.status Makefile'.
6731 if test -n "$CONFIG_HEADERS"; then
6732 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6733 BEGIN {
6734 _ACEOF
6736 # Transform confdefs.h into an awk script `defines.awk', embedded as
6737 # here-document in config.status, that substitutes the proper values into
6738 # config.h.in to produce config.h.
6740 # Create a delimiter string that does not exist in confdefs.h, to ease
6741 # handling of long lines.
6742 ac_delim='%!_!# '
6743 for ac_last_try in false false :; do
6744 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6745 if test -z "$ac_tt"; then
6746 break
6747 elif $ac_last_try; then
6748 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6749 else
6750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6752 done
6754 # For the awk script, D is an array of macro values keyed by name,
6755 # likewise P contains macro parameters if any. Preserve backslash
6756 # newline sequences.
6758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6759 sed -n '
6760 s/.\{148\}/&'"$ac_delim"'/g
6761 t rset
6762 :rset
6763 s/^[ ]*#[ ]*define[ ][ ]*/ /
6764 t def
6766 :def
6767 s/\\$//
6768 t bsnl
6769 s/["\\]/\\&/g
6770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6771 D["\1"]=" \3"/p
6772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6774 :bsnl
6775 s/["\\]/\\&/g
6776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6777 D["\1"]=" \3\\\\\\n"\\/p
6778 t cont
6779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6780 t cont
6782 :cont
6784 s/.\{148\}/&'"$ac_delim"'/g
6785 t clear
6786 :clear
6787 s/\\$//
6788 t bsnlc
6789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6791 :bsnlc
6792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6793 b cont
6794 ' <confdefs.h | sed '
6795 s/'"$ac_delim"'/"\\\
6796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6799 for (key in D) D_is_set[key] = 1
6800 FS = "\a"
6802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6803 line = \$ 0
6804 split(line, arg, " ")
6805 if (arg[1] == "#") {
6806 defundef = arg[2]
6807 mac1 = arg[3]
6808 } else {
6809 defundef = substr(arg[1], 2)
6810 mac1 = arg[2]
6812 split(mac1, mac2, "(") #)
6813 macro = mac2[1]
6814 prefix = substr(line, 1, index(line, defundef) - 1)
6815 if (D_is_set[macro]) {
6816 # Preserve the white space surrounding the "#".
6817 print prefix "define", macro P[macro] D[macro]
6818 next
6819 } else {
6820 # Replace #undef with comments. This is necessary, for example,
6821 # in the case of _POSIX_SOURCE, which is predefined and required
6822 # on some systems where configure will not decide to define it.
6823 if (defundef == "undef") {
6824 print "/*", prefix defundef, macro, "*/"
6825 next
6829 { print }
6830 _ACAWK
6831 _ACEOF
6832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6833 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6834 fi # test -n "$CONFIG_HEADERS"
6837 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6838 shift
6839 for ac_tag
6841 case $ac_tag in
6842 :[FHLC]) ac_mode=$ac_tag; continue;;
6843 esac
6844 case $ac_mode$ac_tag in
6845 :[FHL]*:*);;
6846 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6847 :[FH]-) ac_tag=-:-;;
6848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6849 esac
6850 ac_save_IFS=$IFS
6851 IFS=:
6852 set x $ac_tag
6853 IFS=$ac_save_IFS
6854 shift
6855 ac_file=$1
6856 shift
6858 case $ac_mode in
6859 :L) ac_source=$1;;
6860 :[FH])
6861 ac_file_inputs=
6862 for ac_f
6864 case $ac_f in
6865 -) ac_f="$ac_tmp/stdin";;
6866 *) # Look for the file first in the build tree, then in the source tree
6867 # (if the path is not absolute). The absolute path cannot be DOS-style,
6868 # because $ac_f cannot contain `:'.
6869 test -f "$ac_f" ||
6870 case $ac_f in
6871 [\\/$]*) false;;
6872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6873 esac ||
6874 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6875 esac
6876 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6877 as_fn_append ac_file_inputs " '$ac_f'"
6878 done
6880 # Let's still pretend it is `configure' which instantiates (i.e., don't
6881 # use $as_me), people would be surprised to read:
6882 # /* config.h. Generated by config.status. */
6883 configure_input='Generated from '`
6884 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6885 `' by configure.'
6886 if test x"$ac_file" != x-; then
6887 configure_input="$ac_file. $configure_input"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6889 $as_echo "$as_me: creating $ac_file" >&6;}
6891 # Neutralize special characters interpreted by sed in replacement strings.
6892 case $configure_input in #(
6893 *\&* | *\|* | *\\* )
6894 ac_sed_conf_input=`$as_echo "$configure_input" |
6895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6896 *) ac_sed_conf_input=$configure_input;;
6897 esac
6899 case $ac_tag in
6900 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6902 esac
6904 esac
6906 ac_dir=`$as_dirname -- "$ac_file" ||
6907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6908 X"$ac_file" : 'X\(//\)[^/]' \| \
6909 X"$ac_file" : 'X\(//\)$' \| \
6910 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6911 $as_echo X"$ac_file" |
6912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6913 s//\1/
6916 /^X\(\/\/\)[^/].*/{
6917 s//\1/
6920 /^X\(\/\/\)$/{
6921 s//\1/
6924 /^X\(\/\).*/{
6925 s//\1/
6928 s/.*/./; q'`
6929 as_dir="$ac_dir"; as_fn_mkdir_p
6930 ac_builddir=.
6932 case "$ac_dir" in
6933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6935 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6936 # A ".." for each directory in $ac_dir_suffix.
6937 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6938 case $ac_top_builddir_sub in
6939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6941 esac ;;
6942 esac
6943 ac_abs_top_builddir=$ac_pwd
6944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6945 # for backward compatibility:
6946 ac_top_builddir=$ac_top_build_prefix
6948 case $srcdir in
6949 .) # We are building in place.
6950 ac_srcdir=.
6951 ac_top_srcdir=$ac_top_builddir_sub
6952 ac_abs_top_srcdir=$ac_pwd ;;
6953 [\\/]* | ?:[\\/]* ) # Absolute name.
6954 ac_srcdir=$srcdir$ac_dir_suffix;
6955 ac_top_srcdir=$srcdir
6956 ac_abs_top_srcdir=$srcdir ;;
6957 *) # Relative name.
6958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6959 ac_top_srcdir=$ac_top_build_prefix$srcdir
6960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6961 esac
6962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6965 case $ac_mode in
6968 # CONFIG_FILE
6971 case $INSTALL in
6972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6973 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6974 esac
6975 ac_MKDIR_P=$MKDIR_P
6976 case $MKDIR_P in
6977 [\\/$]* | ?:[\\/]* ) ;;
6978 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6979 esac
6980 _ACEOF
6982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6983 # If the template does not know about datarootdir, expand it.
6984 # FIXME: This hack should be removed a few years after 2.60.
6985 ac_datarootdir_hack=; ac_datarootdir_seen=
6986 ac_sed_dataroot='
6987 /datarootdir/ {
6991 /@datadir@/p
6992 /@docdir@/p
6993 /@infodir@/p
6994 /@localedir@/p
6995 /@mandir@/p'
6996 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6997 *datarootdir*) ac_datarootdir_seen=yes;;
6998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7000 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7001 _ACEOF
7002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7003 ac_datarootdir_hack='
7004 s&@datadir@&$datadir&g
7005 s&@docdir@&$docdir&g
7006 s&@infodir@&$infodir&g
7007 s&@localedir@&$localedir&g
7008 s&@mandir@&$mandir&g
7009 s&\\\${datarootdir}&$datarootdir&g' ;;
7010 esac
7011 _ACEOF
7013 # Neutralize VPATH when `$srcdir' = `.'.
7014 # Shell code in configure.ac might set extrasub.
7015 # FIXME: do we really want to maintain this feature?
7016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7017 ac_sed_extra="$ac_vpsub
7018 $extrasub
7019 _ACEOF
7020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7023 s|@configure_input@|$ac_sed_conf_input|;t t
7024 s&@top_builddir@&$ac_top_builddir_sub&;t t
7025 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7026 s&@srcdir@&$ac_srcdir&;t t
7027 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7028 s&@top_srcdir@&$ac_top_srcdir&;t t
7029 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7030 s&@builddir@&$ac_builddir&;t t
7031 s&@abs_builddir@&$ac_abs_builddir&;t t
7032 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7033 s&@INSTALL@&$ac_INSTALL&;t t
7034 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7035 $ac_datarootdir_hack
7037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7045 which seems to be undefined. Please make sure it is defined" >&5
7046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7047 which seems to be undefined. Please make sure it is defined" >&2;}
7049 rm -f "$ac_tmp/stdin"
7050 case $ac_file in
7051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7053 esac \
7054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7058 # CONFIG_HEADER
7060 if test x"$ac_file" != x-; then
7062 $as_echo "/* $configure_input */" \
7063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7064 } >"$ac_tmp/config.h" \
7065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7069 else
7070 rm -f "$ac_file"
7071 mv "$ac_tmp/config.h" "$ac_file" \
7072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7074 else
7075 $as_echo "/* $configure_input */" \
7076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7077 || as_fn_error $? "could not create -" "$LINENO" 5
7079 # Compute "$ac_file"'s index in $config_headers.
7080 _am_arg="$ac_file"
7081 _am_stamp_count=1
7082 for _am_header in $config_headers :; do
7083 case $_am_header in
7084 $_am_arg | $_am_arg:* )
7085 break ;;
7087 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7088 esac
7089 done
7090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7092 X"$_am_arg" : 'X\(//\)[^/]' \| \
7093 X"$_am_arg" : 'X\(//\)$' \| \
7094 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7095 $as_echo X"$_am_arg" |
7096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7097 s//\1/
7100 /^X\(\/\/\)[^/].*/{
7101 s//\1/
7104 /^X\(\/\/\)$/{
7105 s//\1/
7108 /^X\(\/\).*/{
7109 s//\1/
7112 s/.*/./; q'`/stamp-h$_am_stamp_count
7115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7116 $as_echo "$as_me: executing $ac_file commands" >&6;}
7118 esac
7121 case $ac_file$ac_mode in
7122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7123 # Older Autoconf quotes --file arguments for eval, but not when files
7124 # are listed without --file. Let's play safe and only enable the eval
7125 # if we detect the quoting.
7126 case $CONFIG_FILES in
7127 *\'*) eval set x "$CONFIG_FILES" ;;
7128 *) set x $CONFIG_FILES ;;
7129 esac
7130 shift
7131 for mf
7133 # Strip MF so we end up with the name of the file.
7134 mf=`echo "$mf" | sed -e 's/:.*$//'`
7135 # Check whether this is an Automake generated Makefile or not.
7136 # We used to match only the files named 'Makefile.in', but
7137 # some people rename them; so instead we look at the file content.
7138 # Grep'ing the first line is not enough: some people post-process
7139 # each Makefile.in and add a new line on top of each file to say so.
7140 # Grep'ing the whole file is not good either: AIX grep has a line
7141 # limit of 2048, but all sed's we know have understand at least 4000.
7142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7143 dirpart=`$as_dirname -- "$mf" ||
7144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7145 X"$mf" : 'X\(//\)[^/]' \| \
7146 X"$mf" : 'X\(//\)$' \| \
7147 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7148 $as_echo X"$mf" |
7149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7150 s//\1/
7153 /^X\(\/\/\)[^/].*/{
7154 s//\1/
7157 /^X\(\/\/\)$/{
7158 s//\1/
7161 /^X\(\/\).*/{
7162 s//\1/
7165 s/.*/./; q'`
7166 else
7167 continue
7169 # Extract the definition of DEPDIR, am__include, and am__quote
7170 # from the Makefile without running 'make'.
7171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7172 test -z "$DEPDIR" && continue
7173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7174 test -z "$am__include" && continue
7175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7176 # Find all dependency output files, they are included files with
7177 # $(DEPDIR) in their names. We invoke sed twice because it is the
7178 # simplest approach to changing $(DEPDIR) to its actual value in the
7179 # expansion.
7180 for file in `sed -n "
7181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7183 # Make sure the directory exists.
7184 test -f "$dirpart/$file" && continue
7185 fdir=`$as_dirname -- "$file" ||
7186 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7187 X"$file" : 'X\(//\)[^/]' \| \
7188 X"$file" : 'X\(//\)$' \| \
7189 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7190 $as_echo X"$file" |
7191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7192 s//\1/
7195 /^X\(\/\/\)[^/].*/{
7196 s//\1/
7199 /^X\(\/\/\)$/{
7200 s//\1/
7203 /^X\(\/\).*/{
7204 s//\1/
7207 s/.*/./; q'`
7208 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7209 # echo "creating $dirpart/$file"
7210 echo '# dummy' > "$dirpart/$file"
7211 done
7212 done
7216 esac
7217 done # for ac_tag
7220 as_fn_exit 0
7221 _ACEOF
7222 ac_clean_files=$ac_clean_files_save
7224 test $ac_write_fail = 0 ||
7225 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7228 # configure is writing to config.log, and then calls config.status.
7229 # config.status does its own redirection, appending to config.log.
7230 # Unfortunately, on DOS this fails, as config.log is still kept open
7231 # by configure, so config.status won't be able to write to it; its
7232 # output is simply discarded. So we exec the FD to /dev/null,
7233 # effectively closing config.log, so it can be properly (re)opened and
7234 # appended to by config.status. When coming back to configure, we
7235 # need to make the FD available again.
7236 if test "$no_create" != yes; then
7237 ac_cs_success=:
7238 ac_config_status_args=
7239 test "$silent" = yes &&
7240 ac_config_status_args="$ac_config_status_args --quiet"
7241 exec 5>/dev/null
7242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7243 exec 5>>config.log
7244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7245 # would make configure fail if this is the last instruction.
7246 $ac_cs_success || as_fn_exit 1
7248 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7250 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}