Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / libpng / configure
blob085ed783e78cb8509d714f47fbcca2b010411c45
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpng 1.2.51.
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
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
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: png-mng-implement@lists.sourceforge.net about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libpng'
592 PACKAGE_TARNAME='libpng'
593 PACKAGE_VERSION='1.2.51'
594 PACKAGE_STRING='libpng 1.2.51'
595 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
596 PACKAGE_URL=''
598 ac_unique_file="pngget.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 compatlib
639 binconfigs
640 pkgconfigdir
641 PNGLIB_RELEASE
642 PNGLIB_MINOR
643 PNGLIB_MAJOR
644 PNGLIB_VERSION
645 SYMBOL_PREFIX
646 HAVE_LD_VERSION_SCRIPT_FALSE
647 HAVE_LD_VERSION_SCRIPT_TRUE
648 LIBPNG_NO_MMX
649 LIBPNG_DEFINES
650 LIBOBJS
651 POW_LIB
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LIBTOOL
665 LN_S
666 OBJDUMP
667 DLLTOOL
671 FGREP
672 EGREP
673 GREP
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
700 MAINT
701 MAINTAINER_MODE_FALSE
702 MAINTAINER_MODE_TRUE
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_maintainer_mode
773 enable_dependency_tracking
774 with_gnu_ld
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_sysroot
780 enable_libtool_lock
781 with_pkgconfigdir
782 with_binconfigs
783 with_libpng_compat
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CPP'
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
844 ac_prev=
845 ac_dashdash=
846 for ac_option
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
865 ac_dashdash=yes ;;
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
884 --config-cache | -C)
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 esac
1202 done
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1286 /^X\(\/\/\)$/{
1287 s//\1/
1290 /^X\(\/\).*/{
1291 s//\1/
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1299 else
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures libpng 1.2.51 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1389 cat <<\_ACEOF
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of libpng 1.2.51:";;
1405 esac
1406 cat <<\_ACEOF
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
1414 --enable-maintainer-mode
1415 enable make rules and dependencies not useful (and
1416 sometimes confusing) to the casual installer
1417 --enable-dependency-tracking
1418 do not reject slow dependency extractors
1419 --disable-dependency-tracking
1420 speeds up one-time build
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1432 both]
1433 --with-sysroot=DIR Search for dependent libraries within DIR
1434 (or the compiler's sysroot if not specified).
1435 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1436 libdir/pkgconfig)
1437 --with-binconfigs Generate shell libpng-config scripts as well as
1438 pkg-config data [default=yes]
1439 --with-libpng-compat Generate the obsolete libpng.so library
1440 [default=yes]
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 libpng configure 1.2.51
1519 generated by GNU Autoconf 2.69
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } > conftest.i && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_cpp
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
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_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 test -x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=1
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_c_try_link
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1688 ac_fn_c_try_run ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=$ac_status
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_run
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741 #define $2 innocuous_$2
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $2 (); below.
1745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746 <limits.h> exists even on freestanding compilers. */
1748 #ifdef __STDC__
1749 # include <limits.h>
1750 #else
1751 # include <assert.h>
1752 #endif
1754 #undef $2
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1771 main ()
1773 return $2 ();
1775 return 0;
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1783 rm -f core conftest.err conftest.$ac_objext \
1784 conftest$ac_exeext conftest.$ac_ext
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_func
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1797 # accordingly.
1798 ac_fn_c_check_header_mongrel ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if eval \${$3+:} false; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 else
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1821 else
1822 ac_header_compiler=no
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1837 else
1838 ac_header_preproc=no
1840 rm -f conftest.err conftest.i conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 yes:no: )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 no:yes:* )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ( $as_echo "## ------------------------------------------------------ ##
1864 ## Report this to png-mng-implement@lists.sourceforge.net ##
1865 ## ------------------------------------------------------ ##"
1866 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 esac
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=\$ac_header_compiler"
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_mongrel
1884 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1885 # -------------------------------------------
1886 # Tests whether TYPE exists after having included INCLUDES, setting cache
1887 # variable VAR accordingly.
1888 ac_fn_c_check_type ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=no"
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1901 main ()
1903 if (sizeof ($2))
1904 return 0;
1906 return 0;
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1914 main ()
1916 if (sizeof (($2)))
1917 return 0;
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1924 else
1925 eval "$3=yes"
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_type
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1941 It was created by libpng $as_me 1.2.51, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1944 $ $0 $@
1946 _ACEOF
1947 exec 5>>config.log
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971 _ASUNAME
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1982 } >&5
1984 cat >&5 <<_ACEOF
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1991 _ACEOF
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2005 for ac_arg
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2034 as_fn_append ac_configure_args " '$ac_arg'"
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2050 echo
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 esac |
2084 sort
2086 echo
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2142 $as_echo "/* confdefs.h */" > confdefs.h
2144 # Predefined preprocessor variables.
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2202 done
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 am__api_version='1.14'
2291 ac_aux_dir=
2292 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2293 if test -f "$ac_dir/install-sh"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install-sh -c"
2296 break
2297 elif test -f "$ac_dir/install.sh"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/install.sh -c"
2300 break
2301 elif test -f "$ac_dir/shtool"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/shtool install -c"
2304 break
2306 done
2307 if test -z "$ac_aux_dir"; then
2308 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2311 # These three variables are undocumented and unsupported,
2312 # and are intended to be withdrawn in a future Autoconf release.
2313 # They can cause serious problems if a builder's source tree is in a directory
2314 # whose full name contains unusual characters.
2315 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2316 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2317 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2320 # Find a good install program. We prefer a C program (faster),
2321 # so one script is as good as another. But avoid the broken or
2322 # incompatible versions:
2323 # SysV /etc/install, /usr/sbin/install
2324 # SunOS /usr/etc/install
2325 # IRIX /sbin/install
2326 # AIX /bin/install
2327 # AmigaOS /C/install, which installs bootblocks on floppy discs
2328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2331 # OS/2's system install, which has a completely different semantic
2332 # ./install, which can be erroneously created by make from ./install.sh.
2333 # Reject install programs that cannot install multiple files.
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2335 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2336 if test -z "$INSTALL"; then
2337 if ${ac_cv_path_install+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 # Account for people who put trailing slashes in PATH elements.
2346 case $as_dir/ in #((
2347 ./ | .// | /[cC]/* | \
2348 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2349 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2350 /usr/ucb/* ) ;;
2352 # OSF1 and SCO ODT 3.0 have their own names for install.
2353 # Don't use installbsd from OSF since it installs stuff as root
2354 # by default.
2355 for ac_prog in ginstall scoinst install; do
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2358 if test $ac_prog = install &&
2359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # AIX install. It has an incompatible calling convention.
2362 elif test $ac_prog = install &&
2363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # program-specific install script used by HP pwplus--don't use.
2366 else
2367 rm -rf conftest.one conftest.two conftest.dir
2368 echo one > conftest.one
2369 echo two > conftest.two
2370 mkdir conftest.dir
2371 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2372 test -s conftest.one && test -s conftest.two &&
2373 test -s conftest.dir/conftest.one &&
2374 test -s conftest.dir/conftest.two
2375 then
2376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2377 break 3
2381 done
2382 done
2384 esac
2386 done
2387 IFS=$as_save_IFS
2389 rm -rf conftest.one conftest.two conftest.dir
2392 if test "${ac_cv_path_install+set}" = set; then
2393 INSTALL=$ac_cv_path_install
2394 else
2395 # As a last resort, use the slow shell script. Don't cache a
2396 # value for INSTALL within a source directory, because that will
2397 # break other packages using the cache if that directory is
2398 # removed, or if the value is a relative name.
2399 INSTALL=$ac_install_sh
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2403 $as_echo "$INSTALL" >&6; }
2405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406 # It thinks the first close brace ends the variable substitution.
2407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2414 $as_echo_n "checking whether build environment is sane... " >&6; }
2415 # Reject unsafe characters in $srcdir or the absolute working directory
2416 # name. Accept space and tab only in the latter.
2417 am_lf='
2419 case `pwd` in
2420 *[\\\"\#\$\&\'\`$am_lf]*)
2421 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2422 esac
2423 case $srcdir in
2424 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2425 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2426 esac
2428 # Do 'set' in a subshell so we don't clobber the current shell's
2429 # arguments. Must try -L first in case configure is actually a
2430 # symlink; some systems play weird games with the mod time of symlinks
2431 # (eg FreeBSD returns the mod time of the symlink's containing
2432 # directory).
2433 if (
2434 am_has_slept=no
2435 for am_try in 1 2; do
2436 echo "timestamp, slept: $am_has_slept" > conftest.file
2437 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2438 if test "$*" = "X"; then
2439 # -L didn't work.
2440 set X `ls -t "$srcdir/configure" conftest.file`
2442 if test "$*" != "X $srcdir/configure conftest.file" \
2443 && test "$*" != "X conftest.file $srcdir/configure"; then
2445 # If neither matched, then we have a broken ls. This can happen
2446 # if, for instance, CONFIG_SHELL is bash and it inherits a
2447 # broken ls alias from the environment. This has actually
2448 # happened. Such a system could not be considered "sane".
2449 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2450 alias in your environment" "$LINENO" 5
2452 if test "$2" = conftest.file || test $am_try -eq 2; then
2453 break
2455 # Just in case.
2456 sleep 1
2457 am_has_slept=yes
2458 done
2459 test "$2" = conftest.file
2461 then
2462 # Ok.
2464 else
2465 as_fn_error $? "newly created file is older than distributed files!
2466 Check your system clock" "$LINENO" 5
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2469 $as_echo "yes" >&6; }
2470 # If we didn't sleep, we still need to ensure time stamps of config.status and
2471 # generated files are strictly newer.
2472 am_sleep_pid=
2473 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2474 ( sleep 1 ) &
2475 am_sleep_pid=$!
2478 rm -f conftest.file
2480 test "$program_prefix" != NONE &&
2481 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2482 # Use a double $ so make ignores it.
2483 test "$program_suffix" != NONE &&
2484 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2485 # Double any \ or $.
2486 # By default was `s,x,x', remove it if useless.
2487 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2488 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490 # expand $ac_aux_dir to an absolute path
2491 am_aux_dir=`cd $ac_aux_dir && pwd`
2493 if test x"${MISSING+set}" != xset; then
2494 case $am_aux_dir in
2495 *\ * | *\ *)
2496 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2499 esac
2501 # Use eval to expand $SHELL
2502 if eval "$MISSING --is-lightweight"; then
2503 am_missing_run="$MISSING "
2504 else
2505 am_missing_run=
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2507 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2510 if test x"${install_sh}" != xset; then
2511 case $am_aux_dir in
2512 *\ * | *\ *)
2513 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515 install_sh="\${SHELL} $am_aux_dir/install-sh"
2516 esac
2519 # Installed binaries are usually stripped using 'strip' when the user
2520 # run "make install-strip". However 'strip' might not be the right
2521 # tool to use in cross-compilation environments, therefore Automake
2522 # will honor the 'STRIP' environment variable to overrule this program.
2523 if test "$cross_compiling" != no; then
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}strip; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_STRIP+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$STRIP"; then
2533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2546 done
2547 done
2548 IFS=$as_save_IFS
2552 STRIP=$ac_cv_prog_STRIP
2553 if test -n "$STRIP"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2555 $as_echo "$STRIP" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2563 if test -z "$ac_cv_prog_STRIP"; then
2564 ac_ct_STRIP=$STRIP
2565 # Extract the first word of "strip", so it can be a program name with args.
2566 set dummy strip; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$ac_ct_STRIP"; then
2573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ac_ct_STRIP="strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2586 done
2587 done
2588 IFS=$as_save_IFS
2592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2593 if test -n "$ac_ct_STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2595 $as_echo "$ac_ct_STRIP" >&6; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2601 if test "x$ac_ct_STRIP" = x; then
2602 STRIP=":"
2603 else
2604 case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610 STRIP=$ac_ct_STRIP
2612 else
2613 STRIP="$ac_cv_prog_STRIP"
2617 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2620 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2621 if test -z "$MKDIR_P"; then
2622 if ${ac_cv_path_mkdir+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_prog in mkdir gmkdir; do
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2633 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2634 'mkdir (GNU coreutils) '* | \
2635 'mkdir (coreutils) '* | \
2636 'mkdir (fileutils) '4.1*)
2637 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2638 break 3;;
2639 esac
2640 done
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 test -d ./--version && rmdir ./--version
2648 if test "${ac_cv_path_mkdir+set}" = set; then
2649 MKDIR_P="$ac_cv_path_mkdir -p"
2650 else
2651 # As a last resort, use the slow shell script. Don't cache a
2652 # value for MKDIR_P within a source directory, because that will
2653 # break other packages using the cache if that directory is
2654 # removed, or if the value is a relative name.
2655 MKDIR_P="$ac_install_sh -d"
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2659 $as_echo "$MKDIR_P" >&6; }
2661 for ac_prog in gawk mawk nawk awk
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_AWK+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$AWK"; then
2671 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_AWK="$ac_prog"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 AWK=$ac_cv_prog_AWK
2691 if test -n "$AWK"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2693 $as_echo "$AWK" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2700 test -n "$AWK" && break
2701 done
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2704 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2705 set x ${MAKE-make}
2706 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2707 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 cat >conftest.make <<\_ACEOF
2711 SHELL = /bin/sh
2712 all:
2713 @echo '@@@%%%=$(MAKE)=@@@%%%'
2714 _ACEOF
2715 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2716 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2717 *@@@%%%=?*=@@@%%%*)
2718 eval ac_cv_prog_make_${ac_make}_set=yes;;
2720 eval ac_cv_prog_make_${ac_make}_set=no;;
2721 esac
2722 rm -f conftest.make
2724 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726 $as_echo "yes" >&6; }
2727 SET_MAKE=
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 SET_MAKE="MAKE=${MAKE-make}"
2734 rm -rf .tst 2>/dev/null
2735 mkdir .tst 2>/dev/null
2736 if test -d .tst; then
2737 am__leading_dot=.
2738 else
2739 am__leading_dot=_
2741 rmdir .tst 2>/dev/null
2743 # Check whether --enable-silent-rules was given.
2744 if test "${enable_silent_rules+set}" = set; then :
2745 enableval=$enable_silent_rules;
2748 case $enable_silent_rules in # (((
2749 yes) AM_DEFAULT_VERBOSITY=0;;
2750 no) AM_DEFAULT_VERBOSITY=1;;
2751 *) AM_DEFAULT_VERBOSITY=1;;
2752 esac
2753 am_make=${MAKE-make}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2755 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2756 if ${am_cv_make_support_nested_variables+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if $as_echo 'TRUE=$(BAR$(V))
2760 BAR0=false
2761 BAR1=true
2763 am__doit:
2764 @$(TRUE)
2765 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2766 am_cv_make_support_nested_variables=yes
2767 else
2768 am_cv_make_support_nested_variables=no
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2772 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2773 if test $am_cv_make_support_nested_variables = yes; then
2774 AM_V='$(V)'
2775 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2776 else
2777 AM_V=$AM_DEFAULT_VERBOSITY
2778 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2780 AM_BACKSLASH='\'
2782 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2783 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2784 # is not polluted with repeated "-I."
2785 am__isrc=' -I$(srcdir)'
2786 # test to see if srcdir already configured
2787 if test -f $srcdir/config.status; then
2788 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2792 # test whether we have cygpath
2793 if test -z "$CYGPATH_W"; then
2794 if (cygpath --version) >/dev/null 2>/dev/null; then
2795 CYGPATH_W='cygpath -w'
2796 else
2797 CYGPATH_W=echo
2802 # Define the identity of the package.
2803 PACKAGE='libpng'
2804 VERSION='1.2.51'
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE "$PACKAGE"
2809 _ACEOF
2812 cat >>confdefs.h <<_ACEOF
2813 #define VERSION "$VERSION"
2814 _ACEOF
2816 # Some tools Automake needs.
2818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2832 # For better backward compatibility. To be removed once Automake 1.9.x
2833 # dies out for good. For more background, see:
2834 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2835 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2836 mkdir_p='$(MKDIR_P)'
2838 # We need awk for the "check" target. The system "awk" is bad on
2839 # some platforms.
2840 # Always define AMTAR for backward compatibility. Yes, it's still used
2841 # in the wild :-( We should find a proper way to deprecate it ...
2842 AMTAR='$${TAR-tar}'
2845 # We'll loop over all known methods to create a tar archive until one works.
2846 _am_tools='gnutar pax cpio none'
2848 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2855 # POSIX will say in a future version that running "rm -f" with no argument
2856 # is OK; and we want to be able to make that assumption in our Makefile
2857 # recipes. So use an aggressive probe to check that the usage we want is
2858 # actually supported "in the wild" to an acceptable degree.
2859 # See automake bug#10828.
2860 # To make any issue more visible, cause the running configure to be aborted
2861 # by default if the 'rm' program in use doesn't match our expectations; the
2862 # user can still override this though.
2863 if rm -f && rm -fr && rm -rf; then : OK; else
2864 cat >&2 <<'END'
2865 Oops!
2867 Your 'rm' program seems unable to run without file operands specified
2868 on the command line, even when the '-f' option is present. This is contrary
2869 to the behaviour of most rm programs out there, and not conforming with
2870 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2872 Please tell bug-automake@gnu.org about your system, including the value
2873 of your $PATH and any error possibly output before this message. This
2874 can help us improve future automake versions.
2877 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2878 echo 'Configuration will proceed anyway, since you have set the' >&2
2879 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2880 echo >&2
2881 else
2882 cat >&2 <<'END'
2883 Aborting the configuration process, to ensure you take notice of the issue.
2885 You can download and install GNU coreutils to get an 'rm' implementation
2886 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2888 If you want to complete the configuration process using your problematic
2889 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2890 to "yes", and re-run configure.
2893 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2898 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2899 # Check whether --enable-maintainer-mode was given.
2900 if test "${enable_maintainer_mode+set}" = set; then :
2901 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2902 else
2903 USE_MAINTAINER_MODE=no
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2907 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2908 if test $USE_MAINTAINER_MODE = yes; then
2909 MAINTAINER_MODE_TRUE=
2910 MAINTAINER_MODE_FALSE='#'
2911 else
2912 MAINTAINER_MODE_TRUE='#'
2913 MAINTAINER_MODE_FALSE=
2916 MAINT=$MAINTAINER_MODE_TRUE
2920 PNGLIB_VERSION=1.2.51
2921 PNGLIB_MAJOR=1
2922 PNGLIB_MINOR=2
2923 PNGLIB_RELEASE=51
2927 ac_config_headers="$ac_config_headers config.h"
2930 # Checks for programs.
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$ac_cv_prog_CC"; then
2976 ac_ct_CC=$CC
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007 $as_echo "$ac_ct_CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 CC=$ac_ct_CC
3024 else
3025 CC="$ac_cv_prog_CC"
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 ac_prog_rejected=no
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3090 continue
3092 ac_cv_prog_CC="cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3100 if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3103 shift
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3108 shift
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3150 done
3151 done
3152 IFS=$as_save_IFS
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$CC" && break
3167 done
3169 if test -z "$CC"; then
3170 ac_ct_CC=$CC
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$ac_ct_CC" && break
3211 done
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 CC=$ac_ct_CC
3229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details" "$LINENO" 5; }
3234 # Provide some information about the compiler.
3235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3236 set X $ac_compile
3237 ac_compiler=$2
3238 for ac_option in --version -v -V -qversion; do
3239 { { ac_try="$ac_compiler $ac_option >&5"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247 ac_status=$?
3248 if test -s conftest.err; then
3249 sed '10a\
3250 ... rest of stderr output deleted ...
3251 10q' conftest.err >conftest.er1
3252 cat conftest.er1 >&5
3254 rm -f conftest.er1 conftest.err
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 done
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272 # Try to create an executable without -o first, disregard a.out.
3273 # It will help us diagnose broken compilers, and finding out an intuition
3274 # of exeext.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276 $as_echo_n "checking whether the C compiler works... " >&6; }
3277 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3279 # The possible output files:
3280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3282 ac_rmfiles=
3283 for ac_file in $ac_files
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3288 esac
3289 done
3290 rm -f $ac_rmfiles
3292 if { { ac_try="$ac_link_default"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link_default") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3306 # so that the user can short-circuit this test for compilers unknown to
3307 # Autoconf.
3308 for ac_file in $ac_files ''
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3314 [ab].out )
3315 # We found the default executable, but exeext='' is most
3316 # certainly right.
3317 break;;
3318 *.* )
3319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320 then :; else
3321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 # We set ac_cv_exeext here because the later test for it is not
3324 # safe: cross compilers may not add the suffix if given an `-o'
3325 # argument, so we may need to know it at that point already.
3326 # Even if this section looks crufty: it has the advantage of
3327 # actually working.
3328 break;;
3330 break;;
3331 esac
3332 done
3333 test "$ac_cv_exeext" = no && ac_cv_exeext=
3335 else
3336 ac_file=''
3338 if test -z "$ac_file"; then :
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error 77 "C compiler cannot create executables
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353 $as_echo_n "checking for C compiler default output file name... " >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355 $as_echo "$ac_file" >&6; }
3356 ac_exeext=$ac_cv_exeext
3358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361 $as_echo_n "checking for suffix of executables... " >&6; }
3362 if { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3375 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 # `rm'.
3377 for ac_file in conftest.exe conftest conftest.*; do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 break;;
3383 * ) break;;
3384 esac
3385 done
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390 See \`config.log' for more details" "$LINENO" 5; }
3392 rm -f conftest conftest$ac_cv_exeext
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394 $as_echo "$ac_cv_exeext" >&6; }
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3398 ac_exeext=$EXEEXT
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401 #include <stdio.h>
3403 main ()
3405 FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3409 return 0;
3411 _ACEOF
3412 ac_clean_files="$ac_clean_files conftest.out"
3413 # Check that the compiler produces executables we can run. If not, either
3414 # the compiler is broken, or we cross compile.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416 $as_echo_n "checking whether we are cross compiling... " >&6; }
3417 if test "$cross_compiling" != yes; then
3418 { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 if { ac_try='./conftest$ac_cv_exeext'
3430 { { case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_try") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; }; then
3440 cross_compiling=no
3441 else
3442 if test "$cross_compiling" = maybe; then
3443 cross_compiling=yes
3444 else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot run C compiled programs.
3448 If you meant to cross compile, use \`--host'.
3449 See \`config.log' for more details" "$LINENO" 5; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454 $as_echo "$cross_compiling" >&6; }
3456 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if ${ac_cv_objext+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compile") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493 done
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details" "$LINENO" 5; }
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3508 ac_objext=$OBJEXT
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if ${ac_cv_c_compiler_gnu+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 main ()
3520 #ifndef __GNUC__
3521 choke me
3522 #endif
3525 return 0;
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_compiler_gnu=yes
3530 else
3531 ac_compiler_gnu=no
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3540 GCC=yes
3541 else
3542 GCC=
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if ${ac_cv_prog_cc_g+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3553 ac_cv_prog_cc_g=no
3554 CFLAGS="-g"
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_cv_prog_cc_g=yes
3568 else
3569 CFLAGS=""
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3583 else
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585 CFLAGS="-g"
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_g=yes
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3613 CFLAGS="-g -O2"
3614 else
3615 CFLAGS="-g"
3617 else
3618 if test "$GCC" = yes; then
3619 CFLAGS="-O2"
3620 else
3621 CFLAGS=
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if ${ac_cv_prog_cc_c89+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdarg.h>
3634 #include <stdio.h>
3635 struct stat;
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3640 char **p;
3641 int i;
3643 return p[i];
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3647 char *s;
3648 va_list v;
3649 va_start (v,p);
3650 s = g (p, va_arg (v,int));
3651 va_end (v);
3652 return s;
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3666 #define FOO(x) 'x'
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3673 int argc;
3674 char **argv;
3676 main ()
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3680 return 0;
3682 _ACEOF
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3702 xno)
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3726 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3727 if ${am_cv_prog_cc_c_o+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 # Make sure it works both with $CC and with simple cc.
3742 # Following AC_PROG_CC_C_O, we do the test twice because some
3743 # compilers refuse to overwrite an existing .o file with -o,
3744 # though they will create one.
3745 am_cv_prog_cc_c_o=yes
3746 for am_i in 1 2; do
3747 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3748 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } \
3752 && test -f conftest2.$ac_objext; then
3753 : OK
3754 else
3755 am_cv_prog_cc_c_o=no
3756 break
3758 done
3759 rm -f core conftest*
3760 unset am_i
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3763 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3764 if test "$am_cv_prog_cc_c_o" != yes; then
3765 # Losing compiler, so override with the script.
3766 # FIXME: It is wrong to rewrite CC.
3767 # But if we don't then we get into trouble of one sort or another.
3768 # A longer-term fix would be to have automake use am__CC in this case,
3769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3770 CC="$am_aux_dir/compile $CC"
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 DEPDIR="${am__leading_dot}deps"
3780 ac_config_commands="$ac_config_commands depfiles"
3783 am_make=${MAKE-make}
3784 cat > confinc << 'END'
3785 am__doit:
3786 @echo this is the am__doit target
3787 .PHONY: am__doit
3789 # If we don't find an include directive, just comment out the code.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3791 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3792 am__include="#"
3793 am__quote=
3794 _am_result=none
3795 # First try GNU make style include.
3796 echo "include confinc" > confmf
3797 # Ignore all kinds of additional output from 'make'.
3798 case `$am_make -s -f confmf 2> /dev/null` in #(
3799 *the\ am__doit\ target*)
3800 am__include=include
3801 am__quote=
3802 _am_result=GNU
3804 esac
3805 # Now try BSD make style include.
3806 if test "$am__include" = "#"; then
3807 echo '.include "confinc"' > confmf
3808 case `$am_make -s -f confmf 2> /dev/null` in #(
3809 *the\ am__doit\ target*)
3810 am__include=.include
3811 am__quote="\""
3812 _am_result=BSD
3814 esac
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3819 $as_echo "$_am_result" >&6; }
3820 rm -f confinc confmf
3822 # Check whether --enable-dependency-tracking was given.
3823 if test "${enable_dependency_tracking+set}" = set; then :
3824 enableval=$enable_dependency_tracking;
3827 if test "x$enable_dependency_tracking" != xno; then
3828 am_depcomp="$ac_aux_dir/depcomp"
3829 AMDEPBACKSLASH='\'
3830 am__nodep='_no'
3832 if test "x$enable_dependency_tracking" != xno; then
3833 AMDEP_TRUE=
3834 AMDEP_FALSE='#'
3835 else
3836 AMDEP_TRUE='#'
3837 AMDEP_FALSE=
3842 depcc="$CC" am_compiler_list=
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3845 $as_echo_n "checking dependency style of $depcc... " >&6; }
3846 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3850 # We make a subdir and do the tests there. Otherwise we can end up
3851 # making bogus files that we don't know about and never remove. For
3852 # instance it was reported that on HP-UX the gcc test will end up
3853 # making a dummy file named 'D' -- because '-MD' means "put the output
3854 # in D".
3855 rm -rf conftest.dir
3856 mkdir conftest.dir
3857 # Copy depcomp to subdir because otherwise we won't find it if we're
3858 # using a relative directory.
3859 cp "$am_depcomp" conftest.dir
3860 cd conftest.dir
3861 # We will build objects and dependencies in a subdirectory because
3862 # it helps to detect inapplicable dependency modes. For instance
3863 # both Tru64's cc and ICC support -MD to output dependencies as a
3864 # side effect of compilation, but ICC will put the dependencies in
3865 # the current directory while Tru64 will put them in the object
3866 # directory.
3867 mkdir sub
3869 am_cv_CC_dependencies_compiler_type=none
3870 if test "$am_compiler_list" = ""; then
3871 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3873 am__universal=false
3874 case " $depcc " in #(
3875 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3876 esac
3878 for depmode in $am_compiler_list; do
3879 # Setup a source with many dependencies, because some compilers
3880 # like to wrap large dependency lists on column 80 (with \), and
3881 # we should not choose a depcomp mode which is confused by this.
3883 # We need to recreate these files for each test, as the compiler may
3884 # overwrite some of them when testing with obscure command lines.
3885 # This happens at least with the AIX C compiler.
3886 : > sub/conftest.c
3887 for i in 1 2 3 4 5 6; do
3888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3889 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3890 # Solaris 10 /bin/sh.
3891 echo '/* dummy */' > sub/conftst$i.h
3892 done
3893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3895 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3896 # mode. It turns out that the SunPro C++ compiler does not properly
3897 # handle '-M -o', and we need to detect this. Also, some Intel
3898 # versions had trouble with output in subdirs.
3899 am__obj=sub/conftest.${OBJEXT-o}
3900 am__minus_obj="-o $am__obj"
3901 case $depmode in
3902 gcc)
3903 # This depmode causes a compiler race in universal mode.
3904 test "$am__universal" = false || continue
3906 nosideeffect)
3907 # After this tag, mechanisms are not by side-effect, so they'll
3908 # only be used when explicitly requested.
3909 if test "x$enable_dependency_tracking" = xyes; then
3910 continue
3911 else
3912 break
3915 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3916 # This compiler won't grok '-c -o', but also, the minuso test has
3917 # not run yet. These depmodes are late enough in the game, and
3918 # so weak that their functioning should not be impacted.
3919 am__obj=conftest.${OBJEXT-o}
3920 am__minus_obj=
3922 none) break ;;
3923 esac
3924 if depmode=$depmode \
3925 source=sub/conftest.c object=$am__obj \
3926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3928 >/dev/null 2>conftest.err &&
3929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933 # icc doesn't choke on unknown options, it will just issue warnings
3934 # or remarks (even with -Werror). So we grep stderr for any message
3935 # that says an option was ignored or not supported.
3936 # When given -MP, icc 7.0 and 7.1 complain thusly:
3937 # icc: Command line warning: ignoring option '-M'; no argument required
3938 # The diagnosis changed in icc 8.0:
3939 # icc: Command line remark: option '-MP' not supported
3940 if (grep 'ignoring option' conftest.err ||
3941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3942 am_cv_CC_dependencies_compiler_type=$depmode
3943 break
3946 done
3948 cd ..
3949 rm -rf conftest.dir
3950 else
3951 am_cv_CC_dependencies_compiler_type=none
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3956 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3957 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3960 test "x$enable_dependency_tracking" != xno \
3961 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3962 am__fastdepCC_TRUE=
3963 am__fastdepCC_FALSE='#'
3964 else
3965 am__fastdepCC_TRUE='#'
3966 am__fastdepCC_FALSE=
3970 # Make sure we can run config.sub.
3971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3972 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3975 $as_echo_n "checking build system type... " >&6; }
3976 if ${ac_cv_build+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 ac_build_alias=$build_alias
3980 test "x$ac_build_alias" = x &&
3981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3982 test "x$ac_build_alias" = x &&
3983 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3984 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3985 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3989 $as_echo "$ac_cv_build" >&6; }
3990 case $ac_cv_build in
3991 *-*-*) ;;
3992 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3993 esac
3994 build=$ac_cv_build
3995 ac_save_IFS=$IFS; IFS='-'
3996 set x $ac_cv_build
3997 shift
3998 build_cpu=$1
3999 build_vendor=$2
4000 shift; shift
4001 # Remember, the first character of IFS is used to create $*,
4002 # except with old shells:
4003 build_os=$*
4004 IFS=$ac_save_IFS
4005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4009 $as_echo_n "checking host system type... " >&6; }
4010 if ${ac_cv_host+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test "x$host_alias" = x; then
4014 ac_cv_host=$ac_cv_build
4015 else
4016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4017 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4022 $as_echo "$ac_cv_host" >&6; }
4023 case $ac_cv_host in
4024 *-*-*) ;;
4025 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4026 esac
4027 host=$ac_cv_host
4028 ac_save_IFS=$IFS; IFS='-'
4029 set x $ac_cv_host
4030 shift
4031 host_cpu=$1
4032 host_vendor=$2
4033 shift; shift
4034 # Remember, the first character of IFS is used to create $*,
4035 # except with old shells:
4036 host_os=$*
4037 IFS=$ac_save_IFS
4038 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4042 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4043 if ${ac_cv_path_SED+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4047 for ac_i in 1 2 3 4 5 6 7; do
4048 ac_script="$ac_script$as_nl$ac_script"
4049 done
4050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4051 { ac_script=; unset ac_script;}
4052 if test -z "$SED"; then
4053 ac_path_SED_found=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_prog in sed gsed; do
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4063 as_fn_executable_p "$ac_path_SED" || continue
4064 # Check for GNU ac_path_SED and select it if it is found.
4065 # Check for GNU $ac_path_SED
4066 case `"$ac_path_SED" --version 2>&1` in
4067 *GNU*)
4068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4070 ac_count=0
4071 $as_echo_n 0123456789 >"conftest.in"
4072 while :
4074 cat "conftest.in" "conftest.in" >"conftest.tmp"
4075 mv "conftest.tmp" "conftest.in"
4076 cp "conftest.in" "conftest.nl"
4077 $as_echo '' >> "conftest.nl"
4078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4080 as_fn_arith $ac_count + 1 && ac_count=$as_val
4081 if test $ac_count -gt ${ac_path_SED_max-0}; then
4082 # Best one so far, save it but keep looking for a better one
4083 ac_cv_path_SED="$ac_path_SED"
4084 ac_path_SED_max=$ac_count
4086 # 10*(2^10) chars as input seems more than enough
4087 test $ac_count -gt 10 && break
4088 done
4089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 esac
4092 $ac_path_SED_found && break 3
4093 done
4094 done
4095 done
4096 IFS=$as_save_IFS
4097 if test -z "$ac_cv_path_SED"; then
4098 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4100 else
4101 ac_cv_path_SED=$SED
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4106 $as_echo "$ac_cv_path_SED" >&6; }
4107 SED="$ac_cv_path_SED"
4108 rm -f conftest.sed
4110 test -z "$SED" && SED=sed
4111 Xsed="$SED -e 1s/^X//"
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4124 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4125 if ${ac_cv_path_GREP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -z "$GREP"; then
4129 ac_path_GREP_found=false
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_prog in grep ggrep; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139 as_fn_executable_p "$ac_path_GREP" || continue
4140 # Check for GNU ac_path_GREP and select it if it is found.
4141 # Check for GNU $ac_path_GREP
4142 case `"$ac_path_GREP" --version 2>&1` in
4143 *GNU*)
4144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4146 ac_count=0
4147 $as_echo_n 0123456789 >"conftest.in"
4148 while :
4150 cat "conftest.in" "conftest.in" >"conftest.tmp"
4151 mv "conftest.tmp" "conftest.in"
4152 cp "conftest.in" "conftest.nl"
4153 $as_echo 'GREP' >> "conftest.nl"
4154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156 as_fn_arith $ac_count + 1 && ac_count=$as_val
4157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158 # Best one so far, save it but keep looking for a better one
4159 ac_cv_path_GREP="$ac_path_GREP"
4160 ac_path_GREP_max=$ac_count
4162 # 10*(2^10) chars as input seems more than enough
4163 test $ac_count -gt 10 && break
4164 done
4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 esac
4168 $ac_path_GREP_found && break 3
4169 done
4170 done
4171 done
4172 IFS=$as_save_IFS
4173 if test -z "$ac_cv_path_GREP"; then
4174 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176 else
4177 ac_cv_path_GREP=$GREP
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4182 $as_echo "$ac_cv_path_GREP" >&6; }
4183 GREP="$ac_cv_path_GREP"
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4187 $as_echo_n "checking for egrep... " >&6; }
4188 if ${ac_cv_path_EGREP+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192 then ac_cv_path_EGREP="$GREP -E"
4193 else
4194 if test -z "$EGREP"; then
4195 ac_path_EGREP_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in egrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205 as_fn_executable_p "$ac_path_EGREP" || continue
4206 # Check for GNU ac_path_EGREP and select it if it is found.
4207 # Check for GNU $ac_path_EGREP
4208 case `"$ac_path_EGREP" --version 2>&1` in
4209 *GNU*)
4210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4212 ac_count=0
4213 $as_echo_n 0123456789 >"conftest.in"
4214 while :
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 $as_echo 'EGREP' >> "conftest.nl"
4220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 as_fn_arith $ac_count + 1 && ac_count=$as_val
4223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_EGREP="$ac_path_EGREP"
4226 ac_path_EGREP_max=$ac_count
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4230 done
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4234 $ac_path_EGREP_found && break 3
4235 done
4236 done
4237 done
4238 IFS=$as_save_IFS
4239 if test -z "$ac_cv_path_EGREP"; then
4240 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4242 else
4243 ac_cv_path_EGREP=$EGREP
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4249 $as_echo "$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4254 $as_echo_n "checking for fgrep... " >&6; }
4255 if ${ac_cv_path_FGREP+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4259 then ac_cv_path_FGREP="$GREP -F"
4260 else
4261 if test -z "$FGREP"; then
4262 ac_path_FGREP_found=false
4263 # Loop through the user's path and test for each of PROGNAME-LIST
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_prog in fgrep; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4272 as_fn_executable_p "$ac_path_FGREP" || continue
4273 # Check for GNU ac_path_FGREP and select it if it is found.
4274 # Check for GNU $ac_path_FGREP
4275 case `"$ac_path_FGREP" --version 2>&1` in
4276 *GNU*)
4277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4279 ac_count=0
4280 $as_echo_n 0123456789 >"conftest.in"
4281 while :
4283 cat "conftest.in" "conftest.in" >"conftest.tmp"
4284 mv "conftest.tmp" "conftest.in"
4285 cp "conftest.in" "conftest.nl"
4286 $as_echo 'FGREP' >> "conftest.nl"
4287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289 as_fn_arith $ac_count + 1 && ac_count=$as_val
4290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4291 # Best one so far, save it but keep looking for a better one
4292 ac_cv_path_FGREP="$ac_path_FGREP"
4293 ac_path_FGREP_max=$ac_count
4295 # 10*(2^10) chars as input seems more than enough
4296 test $ac_count -gt 10 && break
4297 done
4298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299 esac
4301 $ac_path_FGREP_found && break 3
4302 done
4303 done
4304 done
4305 IFS=$as_save_IFS
4306 if test -z "$ac_cv_path_FGREP"; then
4307 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309 else
4310 ac_cv_path_FGREP=$FGREP
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4316 $as_echo "$ac_cv_path_FGREP" >&6; }
4317 FGREP="$ac_cv_path_FGREP"
4320 test -z "$GREP" && GREP=grep
4338 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4339 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4340 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4343 $as_echo_n "checking how to print strings... " >&6; }
4344 # Test print first, because it will be a builtin if present.
4345 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4346 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4347 ECHO='print -r --'
4348 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4349 ECHO='printf %s\n'
4350 else
4351 # Use this function as a fallback that always works.
4352 func_fallback_echo ()
4354 eval 'cat <<_LTECHO_EOF
4356 _LTECHO_EOF'
4358 ECHO='func_fallback_echo'
4361 # func_echo_all arg...
4362 # Invoke $ECHO with all args, space-separated.
4363 func_echo_all ()
4365 $ECHO ""
4368 case "$ECHO" in
4369 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4370 $as_echo "printf" >&6; } ;;
4371 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4372 $as_echo "print -r" >&6; } ;;
4373 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4374 $as_echo "cat" >&6; } ;;
4375 esac
4392 # Check whether --with-gnu-ld was given.
4393 if test "${with_gnu_ld+set}" = set; then :
4394 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4395 else
4396 with_gnu_ld=no
4399 ac_prog=ld
4400 if test "$GCC" = yes; then
4401 # Check if gcc -print-prog-name=ld gives a path.
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4403 $as_echo_n "checking for ld used by $CC... " >&6; }
4404 case $host in
4405 *-*-mingw*)
4406 # gcc leaves a trailing carriage return which upsets mingw
4407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4410 esac
4411 case $ac_prog in
4412 # Accept absolute paths.
4413 [\\/]* | ?:[\\/]*)
4414 re_direlt='/[^/][^/]*/\.\./'
4415 # Canonicalize the pathname of ld
4416 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4417 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4418 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4419 done
4420 test -z "$LD" && LD="$ac_prog"
4423 # If it fails, then pretend we aren't using GCC.
4424 ac_prog=ld
4427 # If it is relative, then search for the first ld in PATH.
4428 with_gnu_ld=unknown
4430 esac
4431 elif test "$with_gnu_ld" = yes; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4433 $as_echo_n "checking for GNU ld... " >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4436 $as_echo_n "checking for non-GNU ld... " >&6; }
4438 if ${lt_cv_path_LD+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -z "$LD"; then
4442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443 for ac_dir in $PATH; do
4444 IFS="$lt_save_ifs"
4445 test -z "$ac_dir" && ac_dir=.
4446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4447 lt_cv_path_LD="$ac_dir/$ac_prog"
4448 # Check to see if the program is GNU ld. I'd rather use --version,
4449 # but apparently some variants of GNU ld only accept -v.
4450 # Break only if it was the GNU/non-GNU ld that we prefer.
4451 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4452 *GNU* | *'with BFD'*)
4453 test "$with_gnu_ld" != no && break
4456 test "$with_gnu_ld" != yes && break
4458 esac
4460 done
4461 IFS="$lt_save_ifs"
4462 else
4463 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4467 LD="$lt_cv_path_LD"
4468 if test -n "$LD"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4470 $as_echo "$LD" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4478 if ${lt_cv_prog_gnu_ld+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4482 case `$LD -v 2>&1 </dev/null` in
4483 *GNU* | *'with BFD'*)
4484 lt_cv_prog_gnu_ld=yes
4487 lt_cv_prog_gnu_ld=no
4489 esac
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4493 with_gnu_ld=$lt_cv_prog_gnu_ld
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4509 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4510 # On Suns, sometimes $CPP names a directory.
4511 if test -n "$CPP" && test -d "$CPP"; then
4512 CPP=
4514 if test -z "$CPP"; then
4515 if ${ac_cv_prog_CPP+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 # Double quotes because CPP needs to be expanded
4519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4521 ac_preproc_ok=false
4522 for ac_c_preproc_warn_flag in '' yes
4524 # Use a header file that comes with gcc, so configuring glibc
4525 # with a fresh cross-compiler works.
4526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 # <limits.h> exists even on freestanding compilers.
4528 # On the NeXT, cc -E runs the code through the compiler's parser,
4529 # not just through cpp. "Syntax error" is here to catch this case.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #ifdef __STDC__
4533 # include <limits.h>
4534 #else
4535 # include <assert.h>
4536 #endif
4537 Syntax error
4538 _ACEOF
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4541 else
4542 # Broken: fails on valid input.
4543 continue
4545 rm -f conftest.err conftest.i conftest.$ac_ext
4547 # OK, works on sane cases. Now check whether nonexistent headers
4548 # can be detected and how.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <ac_nonexistent.h>
4552 _ACEOF
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4554 # Broken: success on invalid input.
4555 continue
4556 else
4557 # Passes both tests.
4558 ac_preproc_ok=:
4559 break
4561 rm -f conftest.err conftest.i conftest.$ac_ext
4563 done
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.i conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then :
4567 break
4570 done
4571 ac_cv_prog_CPP=$CPP
4574 CPP=$ac_cv_prog_CPP
4575 else
4576 ac_cv_prog_CPP=$CPP
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4579 $as_echo "$CPP" >&6; }
4580 ac_preproc_ok=false
4581 for ac_c_preproc_warn_flag in '' yes
4583 # Use a header file that comes with gcc, so configuring glibc
4584 # with a fresh cross-compiler works.
4585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4586 # <limits.h> exists even on freestanding compilers.
4587 # On the NeXT, cc -E runs the code through the compiler's parser,
4588 # not just through cpp. "Syntax error" is here to catch this case.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #ifdef __STDC__
4592 # include <limits.h>
4593 #else
4594 # include <assert.h>
4595 #endif
4596 Syntax error
4597 _ACEOF
4598 if ac_fn_c_try_cpp "$LINENO"; then :
4600 else
4601 # Broken: fails on valid input.
4602 continue
4604 rm -f conftest.err conftest.i conftest.$ac_ext
4606 # OK, works on sane cases. Now check whether nonexistent headers
4607 # can be detected and how.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 #include <ac_nonexistent.h>
4611 _ACEOF
4612 if ac_fn_c_try_cpp "$LINENO"; then :
4613 # Broken: success on invalid input.
4614 continue
4615 else
4616 # Passes both tests.
4617 ac_preproc_ok=:
4618 break
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4622 done
4623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4624 rm -f conftest.i conftest.err conftest.$ac_ext
4625 if $ac_preproc_ok; then :
4627 else
4628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4630 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4631 See \`config.log' for more details" "$LINENO" 5; }
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}sed; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_prog_SED+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$SED"; then
4649 ac_cv_prog_SED="$SED" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_SED="${ac_tool_prefix}sed"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 SED=$ac_cv_prog_SED
4669 if test -n "$SED"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4671 $as_echo "$SED" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4679 if test -z "$ac_cv_prog_SED"; then
4680 ac_ct_SED=$SED
4681 # Extract the first word of "sed", so it can be a program name with args.
4682 set dummy sed; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$ac_ct_SED"; then
4689 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_ac_ct_SED="sed"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4709 if test -n "$ac_ct_SED"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4711 $as_echo "$ac_ct_SED" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4717 if test "x$ac_ct_SED" = x; then
4718 SED=":"
4719 else
4720 case $cross_compiling:$ac_tool_warned in
4721 yes:)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4724 ac_tool_warned=yes ;;
4725 esac
4726 SED=$ac_ct_SED
4728 else
4729 SED="$ac_cv_prog_SED"
4732 enable_win32_dll=yes
4734 case $host in
4735 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}as; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_prog_AS+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -n "$AS"; then
4745 ac_cv_prog_AS="$AS" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_prog_AS="${ac_tool_prefix}as"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4764 AS=$ac_cv_prog_AS
4765 if test -n "$AS"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4767 $as_echo "$AS" >&6; }
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4775 if test -z "$ac_cv_prog_AS"; then
4776 ac_ct_AS=$AS
4777 # Extract the first word of "as", so it can be a program name with args.
4778 set dummy as; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$ac_ct_AS"; then
4785 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_AS="as"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4800 IFS=$as_save_IFS
4804 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4805 if test -n "$ac_ct_AS"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4807 $as_echo "$ac_ct_AS" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4813 if test "x$ac_ct_AS" = x; then
4814 AS="false"
4815 else
4816 case $cross_compiling:$ac_tool_warned in
4817 yes:)
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822 AS=$ac_ct_AS
4824 else
4825 AS="$ac_cv_prog_AS"
4828 if test -n "$ac_tool_prefix"; then
4829 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4830 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_DLLTOOL+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$DLLTOOL"; then
4837 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 DLLTOOL=$ac_cv_prog_DLLTOOL
4857 if test -n "$DLLTOOL"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4859 $as_echo "$DLLTOOL" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4867 if test -z "$ac_cv_prog_DLLTOOL"; then
4868 ac_ct_DLLTOOL=$DLLTOOL
4869 # Extract the first word of "dlltool", so it can be a program name with args.
4870 set dummy dlltool; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -n "$ac_ct_DLLTOOL"; then
4877 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4892 IFS=$as_save_IFS
4896 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4897 if test -n "$ac_ct_DLLTOOL"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4899 $as_echo "$ac_ct_DLLTOOL" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4905 if test "x$ac_ct_DLLTOOL" = x; then
4906 DLLTOOL="false"
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909 yes:)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914 DLLTOOL=$ac_ct_DLLTOOL
4916 else
4917 DLLTOOL="$ac_cv_prog_DLLTOOL"
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_OBJDUMP+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$OBJDUMP"; then
4929 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 OBJDUMP=$ac_cv_prog_OBJDUMP
4949 if test -n "$OBJDUMP"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4951 $as_echo "$OBJDUMP" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 if test -z "$ac_cv_prog_OBJDUMP"; then
4960 ac_ct_OBJDUMP=$OBJDUMP
4961 # Extract the first word of "objdump", so it can be a program name with args.
4962 set dummy objdump; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$ac_ct_OBJDUMP"; then
4969 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4989 if test -n "$ac_ct_OBJDUMP"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4991 $as_echo "$ac_ct_OBJDUMP" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4997 if test "x$ac_ct_OBJDUMP" = x; then
4998 OBJDUMP="false"
4999 else
5000 case $cross_compiling:$ac_tool_warned in
5001 yes:)
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004 ac_tool_warned=yes ;;
5005 esac
5006 OBJDUMP=$ac_ct_OBJDUMP
5008 else
5009 OBJDUMP="$ac_cv_prog_OBJDUMP"
5013 esac
5015 test -z "$AS" && AS=as
5021 test -z "$DLLTOOL" && DLLTOOL=dlltool
5027 test -z "$OBJDUMP" && OBJDUMP=objdump
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5037 $as_echo_n "checking whether ln -s works... " >&6; }
5038 LN_S=$as_ln_s
5039 if test "$LN_S" = "ln -s"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 $as_echo "yes" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5044 $as_echo "no, using $LN_S" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5048 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5049 set x ${MAKE-make}
5050 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5051 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat >conftest.make <<\_ACEOF
5055 SHELL = /bin/sh
5056 all:
5057 @echo '@@@%%%=$(MAKE)=@@@%%%'
5058 _ACEOF
5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5060 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5061 *@@@%%%=?*=@@@%%%*)
5062 eval ac_cv_prog_make_${ac_make}_set=yes;;
5064 eval ac_cv_prog_make_${ac_make}_set=no;;
5065 esac
5066 rm -f conftest.make
5068 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5070 $as_echo "yes" >&6; }
5071 SET_MAKE=
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 SET_MAKE="MAKE=${MAKE-make}"
5078 case `pwd` in
5079 *\ * | *\ *)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5081 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5082 esac
5086 macro_version='2.4.2'
5087 macro_revision='1.3337'
5101 ltmain="$ac_aux_dir/ltmain.sh"
5103 # Backslashify metacharacters that are still active within
5104 # double-quoted strings.
5105 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5107 # Same as above, but do not quote variable references.
5108 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5110 # Sed substitution to delay expansion of an escaped shell variable in a
5111 # double_quote_subst'ed string.
5112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5114 # Sed substitution to delay expansion of an escaped single quote.
5115 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5117 # Sed substitution to avoid accidental globbing in evaled expressions
5118 no_glob_subst='s/\*/\\\*/g'
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5121 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5122 if ${lt_cv_path_NM+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$NM"; then
5126 # Let the user override the test.
5127 lt_cv_path_NM="$NM"
5128 else
5129 lt_nm_to_check="${ac_tool_prefix}nm"
5130 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5131 lt_nm_to_check="$lt_nm_to_check nm"
5133 for lt_tmp_nm in $lt_nm_to_check; do
5134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5135 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5136 IFS="$lt_save_ifs"
5137 test -z "$ac_dir" && ac_dir=.
5138 tmp_nm="$ac_dir/$lt_tmp_nm"
5139 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5140 # Check to see if the nm accepts a BSD-compat flag.
5141 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5142 # nm: unknown option "B" ignored
5143 # Tru64's nm complains that /dev/null is an invalid object file
5144 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5145 */dev/null* | *'Invalid file or object type'*)
5146 lt_cv_path_NM="$tmp_nm -B"
5147 break
5150 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5151 */dev/null*)
5152 lt_cv_path_NM="$tmp_nm -p"
5153 break
5156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5157 continue # so that we can try to find one that supports BSD flags
5159 esac
5161 esac
5163 done
5164 IFS="$lt_save_ifs"
5165 done
5166 : ${lt_cv_path_NM=no}
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5170 $as_echo "$lt_cv_path_NM" >&6; }
5171 if test "$lt_cv_path_NM" != "no"; then
5172 NM="$lt_cv_path_NM"
5173 else
5174 # Didn't find any BSD compatible name lister, look for dumpbin.
5175 if test -n "$DUMPBIN"; then :
5176 # Let the user override the test.
5177 else
5178 if test -n "$ac_tool_prefix"; then
5179 for ac_prog in dumpbin "link -dump"
5181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_DUMPBIN+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$DUMPBIN"; then
5189 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5202 done
5203 done
5204 IFS=$as_save_IFS
5208 DUMPBIN=$ac_cv_prog_DUMPBIN
5209 if test -n "$DUMPBIN"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5211 $as_echo "$DUMPBIN" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5218 test -n "$DUMPBIN" && break
5219 done
5221 if test -z "$DUMPBIN"; then
5222 ac_ct_DUMPBIN=$DUMPBIN
5223 for ac_prog in dumpbin "link -dump"
5225 # Extract the first word of "$ac_prog", so it can be a program name with args.
5226 set dummy $ac_prog; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$ac_ct_DUMPBIN"; then
5233 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5248 IFS=$as_save_IFS
5252 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5253 if test -n "$ac_ct_DUMPBIN"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5255 $as_echo "$ac_ct_DUMPBIN" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5262 test -n "$ac_ct_DUMPBIN" && break
5263 done
5265 if test "x$ac_ct_DUMPBIN" = x; then
5266 DUMPBIN=":"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned=yes ;;
5273 esac
5274 DUMPBIN=$ac_ct_DUMPBIN
5278 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5279 *COFF*)
5280 DUMPBIN="$DUMPBIN -symbols"
5283 DUMPBIN=:
5285 esac
5288 if test "$DUMPBIN" != ":"; then
5289 NM="$DUMPBIN"
5292 test -z "$NM" && NM=nm
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5300 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5301 if ${lt_cv_nm_interface+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 lt_cv_nm_interface="BSD nm"
5305 echo "int some_variable = 0;" > conftest.$ac_ext
5306 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5307 (eval "$ac_compile" 2>conftest.err)
5308 cat conftest.err >&5
5309 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5310 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5311 cat conftest.err >&5
5312 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5313 cat conftest.out >&5
5314 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5315 lt_cv_nm_interface="MS dumpbin"
5317 rm -f conftest*
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5320 $as_echo "$lt_cv_nm_interface" >&6; }
5322 # find the maximum length of command line arguments
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5324 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5325 if ${lt_cv_sys_max_cmd_len+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5329 teststring="ABCD"
5331 case $build_os in
5332 msdosdjgpp*)
5333 # On DJGPP, this test can blow up pretty badly due to problems in libc
5334 # (any single argument exceeding 2000 bytes causes a buffer overrun
5335 # during glob expansion). Even if it were fixed, the result of this
5336 # check would be larger than it should be.
5337 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5340 gnu*)
5341 # Under GNU Hurd, this test is not required because there is
5342 # no limit to the length of command line arguments.
5343 # Libtool will interpret -1 as no limit whatsoever
5344 lt_cv_sys_max_cmd_len=-1;
5347 cygwin* | mingw* | cegcc*)
5348 # On Win9x/ME, this test blows up -- it succeeds, but takes
5349 # about 5 minutes as the teststring grows exponentially.
5350 # Worse, since 9x/ME are not pre-emptively multitasking,
5351 # you end up with a "frozen" computer, even though with patience
5352 # the test eventually succeeds (with a max line length of 256k).
5353 # Instead, let's just punt: use the minimum linelength reported by
5354 # all of the supported platforms: 8192 (on NT/2K/XP).
5355 lt_cv_sys_max_cmd_len=8192;
5358 mint*)
5359 # On MiNT this can take a long time and run out of memory.
5360 lt_cv_sys_max_cmd_len=8192;
5363 amigaos*)
5364 # On AmigaOS with pdksh, this test takes hours, literally.
5365 # So we just punt and use a minimum line length of 8192.
5366 lt_cv_sys_max_cmd_len=8192;
5369 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5370 # This has been around since 386BSD, at least. Likely further.
5371 if test -x /sbin/sysctl; then
5372 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5373 elif test -x /usr/sbin/sysctl; then
5374 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5375 else
5376 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5378 # And add a safety zone
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5383 interix*)
5384 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5385 lt_cv_sys_max_cmd_len=196608
5388 os2*)
5389 # The test takes a long time on OS/2.
5390 lt_cv_sys_max_cmd_len=8192
5393 osf*)
5394 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5395 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5396 # nice to cause kernel panics so lets avoid the loop below.
5397 # First set a reasonable default.
5398 lt_cv_sys_max_cmd_len=16384
5400 if test -x /sbin/sysconfig; then
5401 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5402 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5403 esac
5406 sco3.2v5*)
5407 lt_cv_sys_max_cmd_len=102400
5409 sysv5* | sco5v6* | sysv4.2uw2*)
5410 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5411 if test -n "$kargmax"; then
5412 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5413 else
5414 lt_cv_sys_max_cmd_len=32768
5418 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5419 if test -n "$lt_cv_sys_max_cmd_len"; then
5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5422 else
5423 # Make teststring a little bigger before we do anything with it.
5424 # a 1K string should be a reasonable start.
5425 for i in 1 2 3 4 5 6 7 8 ; do
5426 teststring=$teststring$teststring
5427 done
5428 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5429 # If test is not a shell built-in, we'll probably end up computing a
5430 # maximum length that is only half of the actual maximum length, but
5431 # we can't tell.
5432 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5433 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5434 test $i != 17 # 1/2 MB should be enough
5436 i=`expr $i + 1`
5437 teststring=$teststring$teststring
5438 done
5439 # Only check the string length outside the loop.
5440 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5441 teststring=
5442 # Add a significant safety factor because C++ compilers can tack on
5443 # massive amounts of additional arguments before passing them to the
5444 # linker. It appears as though 1/2 is a usable value.
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5448 esac
5452 if test -n $lt_cv_sys_max_cmd_len ; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5454 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5457 $as_echo "none" >&6; }
5459 max_cmd_len=$lt_cv_sys_max_cmd_len
5466 : ${CP="cp -f"}
5467 : ${MV="mv -f"}
5468 : ${RM="rm -f"}
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5471 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5472 # Try some XSI features
5473 xsi_shell=no
5474 ( _lt_dummy="a/b/c"
5475 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5476 = c,a/b,b/c, \
5477 && eval 'test $(( 1 + 1 )) -eq 2 \
5478 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5479 && xsi_shell=yes
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5481 $as_echo "$xsi_shell" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5485 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5486 lt_shell_append=no
5487 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5488 >/dev/null 2>&1 \
5489 && lt_shell_append=yes
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5491 $as_echo "$lt_shell_append" >&6; }
5494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5495 lt_unset=unset
5496 else
5497 lt_unset=false
5504 # test EBCDIC or ASCII
5505 case `echo X|tr X '\101'` in
5506 A) # ASCII based system
5507 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5508 lt_SP2NL='tr \040 \012'
5509 lt_NL2SP='tr \015\012 \040\040'
5511 *) # EBCDIC based system
5512 lt_SP2NL='tr \100 \n'
5513 lt_NL2SP='tr \r\n \100\100'
5515 esac
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5526 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5527 if ${lt_cv_to_host_file_cmd+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 case $host in
5531 *-*-mingw* )
5532 case $build in
5533 *-*-mingw* ) # actually msys
5534 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5536 *-*-cygwin* )
5537 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5539 * ) # otherwise, assume *nix
5540 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5542 esac
5544 *-*-cygwin* )
5545 case $build in
5546 *-*-mingw* ) # actually msys
5547 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5549 *-*-cygwin* )
5550 lt_cv_to_host_file_cmd=func_convert_file_noop
5552 * ) # otherwise, assume *nix
5553 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5555 esac
5557 * ) # unhandled hosts (and "normal" native builds)
5558 lt_cv_to_host_file_cmd=func_convert_file_noop
5560 esac
5564 to_host_file_cmd=$lt_cv_to_host_file_cmd
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5566 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5573 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5574 if ${lt_cv_to_tool_file_cmd+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 #assume ordinary cross tools, or native build.
5578 lt_cv_to_tool_file_cmd=func_convert_file_noop
5579 case $host in
5580 *-*-mingw* )
5581 case $build in
5582 *-*-mingw* ) # actually msys
5583 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5585 esac
5587 esac
5591 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5593 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5600 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5601 if ${lt_cv_ld_reload_flag+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 lt_cv_ld_reload_flag='-r'
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5607 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5608 reload_flag=$lt_cv_ld_reload_flag
5609 case $reload_flag in
5610 "" | " "*) ;;
5611 *) reload_flag=" $reload_flag" ;;
5612 esac
5613 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5614 case $host_os in
5615 cygwin* | mingw* | pw32* | cegcc*)
5616 if test "$GCC" != yes; then
5617 reload_cmds=false
5620 darwin*)
5621 if test "$GCC" = yes; then
5622 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5623 else
5624 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5627 esac
5637 if test -n "$ac_tool_prefix"; then
5638 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5639 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_OBJDUMP+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$OBJDUMP"; then
5646 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5665 OBJDUMP=$ac_cv_prog_OBJDUMP
5666 if test -n "$OBJDUMP"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5668 $as_echo "$OBJDUMP" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5676 if test -z "$ac_cv_prog_OBJDUMP"; then
5677 ac_ct_OBJDUMP=$OBJDUMP
5678 # Extract the first word of "objdump", so it can be a program name with args.
5679 set dummy objdump; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$ac_ct_OBJDUMP"; then
5686 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5706 if test -n "$ac_ct_OBJDUMP"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5708 $as_echo "$ac_ct_OBJDUMP" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5714 if test "x$ac_ct_OBJDUMP" = x; then
5715 OBJDUMP="false"
5716 else
5717 case $cross_compiling:$ac_tool_warned in
5718 yes:)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721 ac_tool_warned=yes ;;
5722 esac
5723 OBJDUMP=$ac_ct_OBJDUMP
5725 else
5726 OBJDUMP="$ac_cv_prog_OBJDUMP"
5729 test -z "$OBJDUMP" && OBJDUMP=objdump
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5737 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5738 if ${lt_cv_deplibs_check_method+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 lt_cv_file_magic_cmd='$MAGIC_CMD'
5742 lt_cv_file_magic_test_file=
5743 lt_cv_deplibs_check_method='unknown'
5744 # Need to set the preceding variable on all platforms that support
5745 # interlibrary dependencies.
5746 # 'none' -- dependencies not supported.
5747 # `unknown' -- same as none, but documents that we really don't know.
5748 # 'pass_all' -- all dependencies passed with no checks.
5749 # 'test_compile' -- check by making test program.
5750 # 'file_magic [[regex]]' -- check by looking for files in library path
5751 # which responds to the $file_magic_cmd with a given extended regex.
5752 # If you have `file' or equivalent on your system and you're not sure
5753 # whether `pass_all' will *always* work, you probably want this one.
5755 case $host_os in
5756 aix[4-9]*)
5757 lt_cv_deplibs_check_method=pass_all
5760 beos*)
5761 lt_cv_deplibs_check_method=pass_all
5764 bsdi[45]*)
5765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5766 lt_cv_file_magic_cmd='/usr/bin/file -L'
5767 lt_cv_file_magic_test_file=/shlib/libc.so
5770 cygwin*)
5771 # func_win32_libid is a shell function defined in ltmain.sh
5772 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5773 lt_cv_file_magic_cmd='func_win32_libid'
5776 mingw* | pw32*)
5777 # Base MSYS/MinGW do not provide the 'file' command needed by
5778 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5779 # unless we find 'file', for example because we are cross-compiling.
5780 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5781 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5782 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5783 lt_cv_file_magic_cmd='func_win32_libid'
5784 else
5785 # Keep this pattern in sync with the one in func_win32_libid.
5786 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5787 lt_cv_file_magic_cmd='$OBJDUMP -f'
5791 cegcc*)
5792 # use the weaker test based on 'objdump'. See mingw*.
5793 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5794 lt_cv_file_magic_cmd='$OBJDUMP -f'
5797 darwin* | rhapsody*)
5798 lt_cv_deplibs_check_method=pass_all
5801 freebsd* | dragonfly*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 case $host_cpu in
5804 i*86 )
5805 # Not sure whether the presence of OpenBSD here was a mistake.
5806 # Let's accept both of them until this is cleared up.
5807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5808 lt_cv_file_magic_cmd=/usr/bin/file
5809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5811 esac
5812 else
5813 lt_cv_deplibs_check_method=pass_all
5817 gnu*)
5818 lt_cv_deplibs_check_method=pass_all
5821 haiku*)
5822 lt_cv_deplibs_check_method=pass_all
5825 hpux10.20* | hpux11*)
5826 lt_cv_file_magic_cmd=/usr/bin/file
5827 case $host_cpu in
5828 ia64*)
5829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5830 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5832 hppa*64*)
5833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5834 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5838 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5840 esac
5843 interix[3-9]*)
5844 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5848 irix5* | irix6* | nonstopux*)
5849 case $LD in
5850 *-32|*"-32 ") libmagic=32-bit;;
5851 *-n32|*"-n32 ") libmagic=N32;;
5852 *-64|*"-64 ") libmagic=64-bit;;
5853 *) libmagic=never-match;;
5854 esac
5855 lt_cv_deplibs_check_method=pass_all
5858 # This must be glibc/ELF.
5859 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5860 lt_cv_deplibs_check_method=pass_all
5863 netbsd*)
5864 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5866 else
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5871 newos6*)
5872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5873 lt_cv_file_magic_cmd=/usr/bin/file
5874 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5877 *nto* | *qnx*)
5878 lt_cv_deplibs_check_method=pass_all
5881 openbsd*)
5882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5884 else
5885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5889 osf3* | osf4* | osf5*)
5890 lt_cv_deplibs_check_method=pass_all
5893 rdos*)
5894 lt_cv_deplibs_check_method=pass_all
5897 solaris*)
5898 lt_cv_deplibs_check_method=pass_all
5901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5902 lt_cv_deplibs_check_method=pass_all
5905 sysv4 | sysv4.3*)
5906 case $host_vendor in
5907 motorola)
5908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5911 ncr)
5912 lt_cv_deplibs_check_method=pass_all
5914 sequent)
5915 lt_cv_file_magic_cmd='/bin/file'
5916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5918 sni)
5919 lt_cv_file_magic_cmd='/bin/file'
5920 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5921 lt_cv_file_magic_test_file=/lib/libc.so
5923 siemens)
5924 lt_cv_deplibs_check_method=pass_all
5927 lt_cv_deplibs_check_method=pass_all
5929 esac
5932 tpf*)
5933 lt_cv_deplibs_check_method=pass_all
5935 esac
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5939 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5941 file_magic_glob=
5942 want_nocaseglob=no
5943 if test "$build" = "$host"; then
5944 case $host_os in
5945 mingw* | pw32*)
5946 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5947 want_nocaseglob=yes
5948 else
5949 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5952 esac
5955 file_magic_cmd=$lt_cv_file_magic_cmd
5956 deplibs_check_method=$lt_cv_deplibs_check_method
5957 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5980 if test -n "$ac_tool_prefix"; then
5981 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5982 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_DLLTOOL+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if test -n "$DLLTOOL"; then
5989 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6004 IFS=$as_save_IFS
6008 DLLTOOL=$ac_cv_prog_DLLTOOL
6009 if test -n "$DLLTOOL"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6011 $as_echo "$DLLTOOL" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6019 if test -z "$ac_cv_prog_DLLTOOL"; then
6020 ac_ct_DLLTOOL=$DLLTOOL
6021 # Extract the first word of "dlltool", so it can be a program name with args.
6022 set dummy dlltool; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test -n "$ac_ct_DLLTOOL"; then
6029 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6042 done
6043 done
6044 IFS=$as_save_IFS
6048 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6049 if test -n "$ac_ct_DLLTOOL"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6051 $as_echo "$ac_ct_DLLTOOL" >&6; }
6052 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6057 if test "x$ac_ct_DLLTOOL" = x; then
6058 DLLTOOL="false"
6059 else
6060 case $cross_compiling:$ac_tool_warned in
6061 yes:)
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6064 ac_tool_warned=yes ;;
6065 esac
6066 DLLTOOL=$ac_ct_DLLTOOL
6068 else
6069 DLLTOOL="$ac_cv_prog_DLLTOOL"
6072 test -z "$DLLTOOL" && DLLTOOL=dlltool
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6081 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6082 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 lt_cv_sharedlib_from_linklib_cmd='unknown'
6087 case $host_os in
6088 cygwin* | mingw* | pw32* | cegcc*)
6089 # two different shell functions defined in ltmain.sh
6090 # decide which to use based on capabilities of $DLLTOOL
6091 case `$DLLTOOL --help 2>&1` in
6092 *--identify-strict*)
6093 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6096 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6098 esac
6101 # fallback: assume linklib IS sharedlib
6102 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6104 esac
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6108 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6109 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6110 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6119 if test -n "$ac_tool_prefix"; then
6120 for ac_prog in ar
6122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_AR+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$AR"; then
6130 ac_cv_prog_AR="$AR" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6143 done
6144 done
6145 IFS=$as_save_IFS
6149 AR=$ac_cv_prog_AR
6150 if test -n "$AR"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6152 $as_echo "$AR" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6159 test -n "$AR" && break
6160 done
6162 if test -z "$AR"; then
6163 ac_ct_AR=$AR
6164 for ac_prog in ar
6166 # Extract the first word of "$ac_prog", so it can be a program name with args.
6167 set dummy $ac_prog; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$ac_ct_AR"; then
6174 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_ac_ct_AR="$ac_prog"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6187 done
6188 done
6189 IFS=$as_save_IFS
6193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6194 if test -n "$ac_ct_AR"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6196 $as_echo "$ac_ct_AR" >&6; }
6197 else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6203 test -n "$ac_ct_AR" && break
6204 done
6206 if test "x$ac_ct_AR" = x; then
6207 AR="false"
6208 else
6209 case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215 AR=$ac_ct_AR
6219 : ${AR=ar}
6220 : ${AR_FLAGS=cru}
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6233 $as_echo_n "checking for archiver @FILE support... " >&6; }
6234 if ${lt_cv_ar_at_file+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 lt_cv_ar_at_file=no
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6242 main ()
6246 return 0;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 echo conftest.$ac_objext > conftest.lst
6251 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6253 (eval $lt_ar_try) 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; }
6257 if test "$ac_status" -eq 0; then
6258 # Ensure the archiver fails upon bogus file names.
6259 rm -f conftest.$ac_objext libconftest.a
6260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6261 (eval $lt_ar_try) 2>&5
6262 ac_status=$?
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }
6265 if test "$ac_status" -ne 0; then
6266 lt_cv_ar_at_file=@
6269 rm -f conftest.* libconftest.a
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6276 $as_echo "$lt_cv_ar_at_file" >&6; }
6278 if test "x$lt_cv_ar_at_file" = xno; then
6279 archiver_list_spec=
6280 else
6281 archiver_list_spec=$lt_cv_ar_at_file
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}strip; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_STRIP+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$STRIP"; then
6299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6312 done
6313 done
6314 IFS=$as_save_IFS
6318 STRIP=$ac_cv_prog_STRIP
6319 if test -n "$STRIP"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6321 $as_echo "$STRIP" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_STRIP"; then
6330 ac_ct_STRIP=$STRIP
6331 # Extract the first word of "strip", so it can be a program name with args.
6332 set dummy strip; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$ac_ct_STRIP"; then
6339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_prog_ac_ct_STRIP="strip"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6359 if test -n "$ac_ct_STRIP"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6361 $as_echo "$ac_ct_STRIP" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_STRIP" = x; then
6368 STRIP=":"
6369 else
6370 case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376 STRIP=$ac_ct_STRIP
6378 else
6379 STRIP="$ac_cv_prog_STRIP"
6382 test -z "$STRIP" && STRIP=:
6389 if test -n "$ac_tool_prefix"; then
6390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_RANLIB+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -n "$RANLIB"; then
6398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6411 done
6412 done
6413 IFS=$as_save_IFS
6417 RANLIB=$ac_cv_prog_RANLIB
6418 if test -n "$RANLIB"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6420 $as_echo "$RANLIB" >&6; }
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6428 if test -z "$ac_cv_prog_RANLIB"; then
6429 ac_ct_RANLIB=$RANLIB
6430 # Extract the first word of "ranlib", so it can be a program name with args.
6431 set dummy ranlib; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$ac_ct_RANLIB"; then
6438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_RANLIB="ranlib"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6451 done
6452 done
6453 IFS=$as_save_IFS
6457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6458 if test -n "$ac_ct_RANLIB"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6460 $as_echo "$ac_ct_RANLIB" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6466 if test "x$ac_ct_RANLIB" = x; then
6467 RANLIB=":"
6468 else
6469 case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475 RANLIB=$ac_ct_RANLIB
6477 else
6478 RANLIB="$ac_cv_prog_RANLIB"
6481 test -z "$RANLIB" && RANLIB=:
6488 # Determine commands to create old-style static archives.
6489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6490 old_postinstall_cmds='chmod 644 $oldlib'
6491 old_postuninstall_cmds=
6493 if test -n "$RANLIB"; then
6494 case $host_os in
6495 openbsd*)
6496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6501 esac
6502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6505 case $host_os in
6506 darwin*)
6507 lock_old_archive_extraction=yes ;;
6509 lock_old_archive_extraction=no ;;
6510 esac
6550 # If no C compiler was specified, use CC.
6551 LTCC=${LTCC-"$CC"}
6553 # If no C compiler flags were specified, use CFLAGS.
6554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6556 # Allow CC to be a program name with arguments.
6557 compiler=$CC
6560 # Check for command to grab the raw symbol name followed by C symbol from nm.
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6562 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6563 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6567 # These are sane defaults that work on at least a few old systems.
6568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6570 # Character class describing NM global symbol codes.
6571 symcode='[BCDEGRST]'
6573 # Regexp to match symbols that can be accessed directly from C.
6574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6576 # Define system-specific variables.
6577 case $host_os in
6578 aix*)
6579 symcode='[BCDT]'
6581 cygwin* | mingw* | pw32* | cegcc*)
6582 symcode='[ABCDGISTW]'
6584 hpux*)
6585 if test "$host_cpu" = ia64; then
6586 symcode='[ABCDEGRST]'
6589 irix* | nonstopux*)
6590 symcode='[BCDEGRST]'
6592 osf*)
6593 symcode='[BCDEGQRST]'
6595 solaris*)
6596 symcode='[BDRT]'
6598 sco3.2v5*)
6599 symcode='[DT]'
6601 sysv4.2uw2*)
6602 symcode='[DT]'
6604 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6605 symcode='[ABDT]'
6607 sysv4)
6608 symcode='[DFNSTU]'
6610 esac
6612 # If we're using GNU nm, then use its standard symbol codes.
6613 case `$NM -V 2>&1` in
6614 *GNU* | *'with BFD'*)
6615 symcode='[ABCDGIRSTW]' ;;
6616 esac
6618 # Transform an extracted symbol line into a proper C declaration.
6619 # Some systems (esp. on ia64) link data and code symbols differently,
6620 # so use this general approach.
6621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623 # Transform an extracted symbol line into symbol name and symbol address
6624 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6625 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6627 # Handle CRLF in mingw tool chain
6628 opt_cr=
6629 case $build_os in
6630 mingw*)
6631 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6633 esac
6635 # Try without a prefix underscore, then with it.
6636 for ac_symprfx in "" "_"; do
6638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6639 symxfrm="\\1 $ac_symprfx\\2 \\2"
6641 # Write the raw and C identifiers.
6642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6643 # Fake it for dumpbin and say T for any non-static function
6644 # and D for any global variable.
6645 # Also find C++ and __fastcall symbols from MSVC++,
6646 # which start with @ or ?.
6647 lt_cv_sys_global_symbol_pipe="$AWK '"\
6648 " {last_section=section; section=\$ 3};"\
6649 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6650 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6651 " \$ 0!~/External *\|/{next};"\
6652 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6653 " {if(hide[section]) next};"\
6654 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6655 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6656 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6657 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6658 " ' prfx=^$ac_symprfx"
6659 else
6660 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6662 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6664 # Check to see that the pipe works correctly.
6665 pipe_works=no
6667 rm -f conftest*
6668 cat > conftest.$ac_ext <<_LT_EOF
6669 #ifdef __cplusplus
6670 extern "C" {
6671 #endif
6672 char nm_test_var;
6673 void nm_test_func(void);
6674 void nm_test_func(void){}
6675 #ifdef __cplusplus
6677 #endif
6678 int main(){nm_test_var='a';nm_test_func();return(0);}
6679 _LT_EOF
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 # Now try to grab the symbols.
6687 nlist=conftest.nm
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6689 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s "$nlist"; then
6693 # Try sorting and uniquifying the output.
6694 if sort "$nlist" | uniq > "$nlist"T; then
6695 mv -f "$nlist"T "$nlist"
6696 else
6697 rm -f "$nlist"T
6700 # Make sure that we snagged all the symbols we need.
6701 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6702 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6703 cat <<_LT_EOF > conftest.$ac_ext
6704 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6705 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6706 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6707 relocations are performed -- see ld's documentation on pseudo-relocs. */
6708 # define LT_DLSYM_CONST
6709 #elif defined(__osf__)
6710 /* This system does not cope well with relocations in const data. */
6711 # define LT_DLSYM_CONST
6712 #else
6713 # define LT_DLSYM_CONST const
6714 #endif
6716 #ifdef __cplusplus
6717 extern "C" {
6718 #endif
6720 _LT_EOF
6721 # Now generate the symbol file.
6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6724 cat <<_LT_EOF >> conftest.$ac_ext
6726 /* The mapping between symbol names and symbols. */
6727 LT_DLSYM_CONST struct {
6728 const char *name;
6729 void *address;
6731 lt__PROGRAM__LTX_preloaded_symbols[] =
6733 { "@PROGRAM@", (void *) 0 },
6734 _LT_EOF
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6736 cat <<\_LT_EOF >> conftest.$ac_ext
6737 {0, (void *) 0}
6740 /* This works around a problem in FreeBSD linker */
6741 #ifdef FREEBSD_WORKAROUND
6742 static const void *lt_preloaded_setup() {
6743 return lt__PROGRAM__LTX_preloaded_symbols;
6745 #endif
6747 #ifdef __cplusplus
6749 #endif
6750 _LT_EOF
6751 # Now try linking the two files.
6752 mv conftest.$ac_objext conftstm.$ac_objext
6753 lt_globsym_save_LIBS=$LIBS
6754 lt_globsym_save_CFLAGS=$CFLAGS
6755 LIBS="conftstm.$ac_objext"
6756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6758 (eval $ac_link) 2>&5
6759 ac_status=$?
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6762 pipe_works=yes
6764 LIBS=$lt_globsym_save_LIBS
6765 CFLAGS=$lt_globsym_save_CFLAGS
6766 else
6767 echo "cannot find nm_test_func in $nlist" >&5
6769 else
6770 echo "cannot find nm_test_var in $nlist" >&5
6772 else
6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6775 else
6776 echo "$progname: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 rm -rf conftest* conftst*
6781 # Do not use the global_symbol_pipe unless it works.
6782 if test "$pipe_works" = yes; then
6783 break
6784 else
6785 lt_cv_sys_global_symbol_pipe=
6787 done
6791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792 lt_cv_sys_global_symbol_to_cdecl=
6794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796 $as_echo "failed" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799 $as_echo "ok" >&6; }
6802 # Response file support.
6803 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6804 nm_file_list_spec='@'
6805 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6806 nm_file_list_spec='@'
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6836 $as_echo_n "checking for sysroot... " >&6; }
6838 # Check whether --with-sysroot was given.
6839 if test "${with_sysroot+set}" = set; then :
6840 withval=$with_sysroot;
6841 else
6842 with_sysroot=no
6846 lt_sysroot=
6847 case ${with_sysroot} in #(
6848 yes)
6849 if test "$GCC" = yes; then
6850 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6852 ;; #(
6854 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6855 ;; #(
6856 no|'')
6857 ;; #(
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6860 $as_echo "${with_sysroot}" >&6; }
6861 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6863 esac
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6866 $as_echo "${lt_sysroot:-no}" >&6; }
6872 # Check whether --enable-libtool-lock was given.
6873 if test "${enable_libtool_lock+set}" = set; then :
6874 enableval=$enable_libtool_lock;
6877 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6879 # Some flags need to be propagated to the compiler or linker for good
6880 # libtool support.
6881 case $host in
6882 ia64-*-hpux*)
6883 # Find out which ABI we are using.
6884 echo 'int i;' > conftest.$ac_ext
6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886 (eval $ac_compile) 2>&5
6887 ac_status=$?
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889 test $ac_status = 0; }; then
6890 case `/usr/bin/file conftest.$ac_objext` in
6891 *ELF-32*)
6892 HPUX_IA64_MODE="32"
6894 *ELF-64*)
6895 HPUX_IA64_MODE="64"
6897 esac
6899 rm -rf conftest*
6901 *-*-irix6*)
6902 # Find out which ABI we are using.
6903 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905 (eval $ac_compile) 2>&5
6906 ac_status=$?
6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908 test $ac_status = 0; }; then
6909 if test "$lt_cv_prog_gnu_ld" = yes; then
6910 case `/usr/bin/file conftest.$ac_objext` in
6911 *32-bit*)
6912 LD="${LD-ld} -melf32bsmip"
6914 *N32*)
6915 LD="${LD-ld} -melf32bmipn32"
6917 *64-bit*)
6918 LD="${LD-ld} -melf64bmip"
6920 esac
6921 else
6922 case `/usr/bin/file conftest.$ac_objext` in
6923 *32-bit*)
6924 LD="${LD-ld} -32"
6926 *N32*)
6927 LD="${LD-ld} -n32"
6929 *64-bit*)
6930 LD="${LD-ld} -64"
6932 esac
6935 rm -rf conftest*
6938 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6939 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6940 # Find out which ABI we are using.
6941 echo 'int i;' > conftest.$ac_ext
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943 (eval $ac_compile) 2>&5
6944 ac_status=$?
6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; }; then
6947 case `/usr/bin/file conftest.o` in
6948 *32-bit*)
6949 case $host in
6950 x86_64-*kfreebsd*-gnu)
6951 LD="${LD-ld} -m elf_i386_fbsd"
6953 x86_64-*linux*)
6954 LD="${LD-ld} -m elf_i386"
6956 ppc64-*linux*|powerpc64-*linux*)
6957 LD="${LD-ld} -m elf32ppclinux"
6959 s390x-*linux*)
6960 LD="${LD-ld} -m elf_s390"
6962 sparc64-*linux*)
6963 LD="${LD-ld} -m elf32_sparc"
6965 esac
6967 *64-bit*)
6968 case $host in
6969 x86_64-*kfreebsd*-gnu)
6970 LD="${LD-ld} -m elf_x86_64_fbsd"
6972 x86_64-*linux*)
6973 LD="${LD-ld} -m elf_x86_64"
6975 ppc*-*linux*|powerpc*-*linux*)
6976 LD="${LD-ld} -m elf64ppc"
6978 s390*-*linux*|s390*-*tpf*)
6979 LD="${LD-ld} -m elf64_s390"
6981 sparc*-*linux*)
6982 LD="${LD-ld} -m elf64_sparc"
6984 esac
6986 esac
6988 rm -rf conftest*
6991 *-*-sco3.2v5*)
6992 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6993 SAVE_CFLAGS="$CFLAGS"
6994 CFLAGS="$CFLAGS -belf"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6996 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6997 if ${lt_cv_cc_needs_belf+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 ac_ext=c
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7010 main ()
7014 return 0;
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018 lt_cv_cc_needs_belf=yes
7019 else
7020 lt_cv_cc_needs_belf=no
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7032 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7035 CFLAGS="$SAVE_CFLAGS"
7038 *-*solaris*)
7039 # Find out which ABI we are using.
7040 echo 'int i;' > conftest.$ac_ext
7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042 (eval $ac_compile) 2>&5
7043 ac_status=$?
7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }; then
7046 case `/usr/bin/file conftest.o` in
7047 *64-bit*)
7048 case $lt_cv_prog_gnu_ld in
7049 yes*)
7050 case $host in
7051 i?86-*-solaris*)
7052 LD="${LD-ld} -m elf_x86_64"
7054 sparc*-*-solaris*)
7055 LD="${LD-ld} -m elf64_sparc"
7057 esac
7058 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7059 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7060 LD="${LD-ld}_sol2"
7064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7065 LD="${LD-ld} -64"
7068 esac
7070 esac
7072 rm -rf conftest*
7074 esac
7076 need_locks="$enable_libtool_lock"
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}mt; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$MANIFEST_TOOL"; then
7087 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7106 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7107 if test -n "$MANIFEST_TOOL"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7109 $as_echo "$MANIFEST_TOOL" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7117 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7118 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7119 # Extract the first word of "mt", so it can be a program name with args.
7120 set dummy mt; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$ac_ct_MANIFEST_TOOL"; then
7127 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7146 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7147 if test -n "$ac_ct_MANIFEST_TOOL"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7149 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7155 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7156 MANIFEST_TOOL=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7166 else
7167 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7170 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7172 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7173 if ${lt_cv_path_mainfest_tool+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 lt_cv_path_mainfest_tool=no
7177 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7178 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7179 cat conftest.err >&5
7180 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7181 lt_cv_path_mainfest_tool=yes
7183 rm -f conftest*
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7186 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7187 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7188 MANIFEST_TOOL=:
7196 case $host_os in
7197 rhapsody* | darwin*)
7198 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 if test -n "$DSYMUTIL"; then
7207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7220 done
7221 done
7222 IFS=$as_save_IFS
7226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7227 if test -n "$DSYMUTIL"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7229 $as_echo "$DSYMUTIL" >&6; }
7230 else
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7237 if test -z "$ac_cv_prog_DSYMUTIL"; then
7238 ac_ct_DSYMUTIL=$DSYMUTIL
7239 # Extract the first word of "dsymutil", so it can be a program name with args.
7240 set dummy dsymutil; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7244 $as_echo_n "(cached) " >&6
7245 else
7246 if test -n "$ac_ct_DSYMUTIL"; then
7247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7260 done
7261 done
7262 IFS=$as_save_IFS
7266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7267 if test -n "$ac_ct_DSYMUTIL"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7275 if test "x$ac_ct_DSYMUTIL" = x; then
7276 DSYMUTIL=":"
7277 else
7278 case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284 DSYMUTIL=$ac_ct_DSYMUTIL
7286 else
7287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_NMEDIT+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$NMEDIT"; then
7299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7312 done
7313 done
7314 IFS=$as_save_IFS
7318 NMEDIT=$ac_cv_prog_NMEDIT
7319 if test -n "$NMEDIT"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7321 $as_echo "$NMEDIT" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 if test -z "$ac_cv_prog_NMEDIT"; then
7330 ac_ct_NMEDIT=$NMEDIT
7331 # Extract the first word of "nmedit", so it can be a program name with args.
7332 set dummy nmedit; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 if test -n "$ac_ct_NMEDIT"; then
7339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7352 done
7353 done
7354 IFS=$as_save_IFS
7358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7359 if test -n "$ac_ct_NMEDIT"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7361 $as_echo "$ac_ct_NMEDIT" >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7367 if test "x$ac_ct_NMEDIT" = x; then
7368 NMEDIT=":"
7369 else
7370 case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7375 esac
7376 NMEDIT=$ac_ct_NMEDIT
7378 else
7379 NMEDIT="$ac_cv_prog_NMEDIT"
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_LIPO+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$LIPO"; then
7391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7404 done
7405 done
7406 IFS=$as_save_IFS
7410 LIPO=$ac_cv_prog_LIPO
7411 if test -n "$LIPO"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7413 $as_echo "$LIPO" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7421 if test -z "$ac_cv_prog_LIPO"; then
7422 ac_ct_LIPO=$LIPO
7423 # Extract the first word of "lipo", so it can be a program name with args.
7424 set dummy lipo; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 if test -n "$ac_ct_LIPO"; then
7431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_LIPO="lipo"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7451 if test -n "$ac_ct_LIPO"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7453 $as_echo "$ac_ct_LIPO" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7459 if test "x$ac_ct_LIPO" = x; then
7460 LIPO=":"
7461 else
7462 case $cross_compiling:$ac_tool_warned in
7463 yes:)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468 LIPO=$ac_ct_LIPO
7470 else
7471 LIPO="$ac_cv_prog_LIPO"
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}otool; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_OTOOL+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$OTOOL"; then
7483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7498 IFS=$as_save_IFS
7502 OTOOL=$ac_cv_prog_OTOOL
7503 if test -n "$OTOOL"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7505 $as_echo "$OTOOL" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test -z "$ac_cv_prog_OTOOL"; then
7514 ac_ct_OTOOL=$OTOOL
7515 # Extract the first word of "otool", so it can be a program name with args.
7516 set dummy otool; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$ac_ct_OTOOL"; then
7523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_OTOOL="otool"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7536 done
7537 done
7538 IFS=$as_save_IFS
7542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7543 if test -n "$ac_ct_OTOOL"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7545 $as_echo "$ac_ct_OTOOL" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7551 if test "x$ac_ct_OTOOL" = x; then
7552 OTOOL=":"
7553 else
7554 case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560 OTOOL=$ac_ct_OTOOL
7562 else
7563 OTOOL="$ac_cv_prog_OTOOL"
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_OTOOL64+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$OTOOL64"; then
7575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7588 done
7589 done
7590 IFS=$as_save_IFS
7594 OTOOL64=$ac_cv_prog_OTOOL64
7595 if test -n "$OTOOL64"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7597 $as_echo "$OTOOL64" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7605 if test -z "$ac_cv_prog_OTOOL64"; then
7606 ac_ct_OTOOL64=$OTOOL64
7607 # Extract the first word of "otool64", so it can be a program name with args.
7608 set dummy otool64; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 if test -n "$ac_ct_OTOOL64"; then
7615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_OTOOL64="otool64"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 break 2
7628 done
7629 done
7630 IFS=$as_save_IFS
7634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7635 if test -n "$ac_ct_OTOOL64"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7637 $as_echo "$ac_ct_OTOOL64" >&6; }
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7643 if test "x$ac_ct_OTOOL64" = x; then
7644 OTOOL64=":"
7645 else
7646 case $cross_compiling:$ac_tool_warned in
7647 yes:)
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7651 esac
7652 OTOOL64=$ac_ct_OTOOL64
7654 else
7655 OTOOL64="$ac_cv_prog_OTOOL64"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7685 $as_echo_n "checking for -single_module linker flag... " >&6; }
7686 if ${lt_cv_apple_cc_single_mod+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 lt_cv_apple_cc_single_mod=no
7690 if test -z "${LT_MULTI_MODULE}"; then
7691 # By default we will add the -single_module flag. You can override
7692 # by either setting the environment variable LT_MULTI_MODULE
7693 # non-empty at configure time, or by adding -multi_module to the
7694 # link flags.
7695 rm -rf libconftest.dylib*
7696 echo "int foo(void){return 1;}" > conftest.c
7697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7698 -dynamiclib -Wl,-single_module conftest.c" >&5
7699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7701 _lt_result=$?
7702 # If there is a non-empty error log, and "single_module"
7703 # appears in it, assume the flag caused a linker warning
7704 if test -s conftest.err && $GREP single_module conftest.err; then
7705 cat conftest.err >&5
7706 # Otherwise, if the output was created with a 0 exit code from
7707 # the compiler, it worked.
7708 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7709 lt_cv_apple_cc_single_mod=yes
7710 else
7711 cat conftest.err >&5
7713 rm -rf libconftest.dylib*
7714 rm -f conftest.*
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7718 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7721 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7722 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 lt_cv_ld_exported_symbols_list=no
7726 save_LDFLAGS=$LDFLAGS
7727 echo "_main" > conftest.sym
7728 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7733 main ()
7737 return 0;
7739 _ACEOF
7740 if ac_fn_c_try_link "$LINENO"; then :
7741 lt_cv_ld_exported_symbols_list=yes
7742 else
7743 lt_cv_ld_exported_symbols_list=no
7745 rm -f core conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 LDFLAGS="$save_LDFLAGS"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7751 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7754 $as_echo_n "checking for -force_load linker flag... " >&6; }
7755 if ${lt_cv_ld_force_load+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 lt_cv_ld_force_load=no
7759 cat > conftest.c << _LT_EOF
7760 int forced_loaded() { return 2;}
7761 _LT_EOF
7762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7764 echo "$AR cru libconftest.a conftest.o" >&5
7765 $AR cru libconftest.a conftest.o 2>&5
7766 echo "$RANLIB libconftest.a" >&5
7767 $RANLIB libconftest.a 2>&5
7768 cat > conftest.c << _LT_EOF
7769 int main() { return 0;}
7770 _LT_EOF
7771 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7772 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7773 _lt_result=$?
7774 if test -s conftest.err && $GREP force_load conftest.err; then
7775 cat conftest.err >&5
7776 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7777 lt_cv_ld_force_load=yes
7778 else
7779 cat conftest.err >&5
7781 rm -f conftest.err libconftest.a conftest conftest.c
7782 rm -rf conftest.dSYM
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7786 $as_echo "$lt_cv_ld_force_load" >&6; }
7787 case $host_os in
7788 rhapsody* | darwin1.[012])
7789 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7790 darwin1.*)
7791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7792 darwin*) # darwin 5.x on
7793 # if running on 10.5 or later, the deployment target defaults
7794 # to the OS version, if on x86, and 10.4, the deployment
7795 # target defaults to 10.4. Don't you love it?
7796 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7797 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799 10.[012]*)
7800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7801 10.*)
7802 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7803 esac
7805 esac
7806 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7807 _lt_dar_single_mod='$single_module'
7809 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7810 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7811 else
7812 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7814 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7815 _lt_dsymutil='~$DSYMUTIL $lib || :'
7816 else
7817 _lt_dsymutil=
7820 esac
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7824 $as_echo_n "checking for ANSI C header files... " >&6; }
7825 if ${ac_cv_header_stdc+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 #include <stdlib.h>
7831 #include <stdarg.h>
7832 #include <string.h>
7833 #include <float.h>
7836 main ()
7840 return 0;
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 ac_cv_header_stdc=yes
7845 else
7846 ac_cv_header_stdc=no
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 if test $ac_cv_header_stdc = yes; then
7851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 #include <string.h>
7856 _ACEOF
7857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7858 $EGREP "memchr" >/dev/null 2>&1; then :
7860 else
7861 ac_cv_header_stdc=no
7863 rm -f conftest*
7867 if test $ac_cv_header_stdc = yes; then
7868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 #include <stdlib.h>
7873 _ACEOF
7874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7875 $EGREP "free" >/dev/null 2>&1; then :
7877 else
7878 ac_cv_header_stdc=no
7880 rm -f conftest*
7884 if test $ac_cv_header_stdc = yes; then
7885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7886 if test "$cross_compiling" = yes; then :
7888 else
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 #include <ctype.h>
7892 #include <stdlib.h>
7893 #if ((' ' & 0x0FF) == 0x020)
7894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7896 #else
7897 # define ISLOWER(c) \
7898 (('a' <= (c) && (c) <= 'i') \
7899 || ('j' <= (c) && (c) <= 'r') \
7900 || ('s' <= (c) && (c) <= 'z'))
7901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7902 #endif
7904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7906 main ()
7908 int i;
7909 for (i = 0; i < 256; i++)
7910 if (XOR (islower (i), ISLOWER (i))
7911 || toupper (i) != TOUPPER (i))
7912 return 2;
7913 return 0;
7915 _ACEOF
7916 if ac_fn_c_try_run "$LINENO"; then :
7918 else
7919 ac_cv_header_stdc=no
7921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7922 conftest.$ac_objext conftest.beam conftest.$ac_ext
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7928 $as_echo "$ac_cv_header_stdc" >&6; }
7929 if test $ac_cv_header_stdc = yes; then
7931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7937 inttypes.h stdint.h unistd.h
7938 do :
7939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7945 _ACEOF
7949 done
7952 for ac_header in dlfcn.h
7953 do :
7954 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7956 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7957 cat >>confdefs.h <<_ACEOF
7958 #define HAVE_DLFCN_H 1
7959 _ACEOF
7963 done
7969 # Set options
7973 enable_dlopen=no
7977 # Check whether --enable-shared was given.
7978 if test "${enable_shared+set}" = set; then :
7979 enableval=$enable_shared; p=${PACKAGE-default}
7980 case $enableval in
7981 yes) enable_shared=yes ;;
7982 no) enable_shared=no ;;
7984 enable_shared=no
7985 # Look at the argument we got. We use all the common list separators.
7986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7987 for pkg in $enableval; do
7988 IFS="$lt_save_ifs"
7989 if test "X$pkg" = "X$p"; then
7990 enable_shared=yes
7992 done
7993 IFS="$lt_save_ifs"
7995 esac
7996 else
7997 enable_shared=yes
8008 # Check whether --enable-static was given.
8009 if test "${enable_static+set}" = set; then :
8010 enableval=$enable_static; p=${PACKAGE-default}
8011 case $enableval in
8012 yes) enable_static=yes ;;
8013 no) enable_static=no ;;
8015 enable_static=no
8016 # Look at the argument we got. We use all the common list separators.
8017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8018 for pkg in $enableval; do
8019 IFS="$lt_save_ifs"
8020 if test "X$pkg" = "X$p"; then
8021 enable_static=yes
8023 done
8024 IFS="$lt_save_ifs"
8026 esac
8027 else
8028 enable_static=yes
8040 # Check whether --with-pic was given.
8041 if test "${with_pic+set}" = set; then :
8042 withval=$with_pic; lt_p=${PACKAGE-default}
8043 case $withval in
8044 yes|no) pic_mode=$withval ;;
8046 pic_mode=default
8047 # Look at the argument we got. We use all the common list separators.
8048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8049 for lt_pkg in $withval; do
8050 IFS="$lt_save_ifs"
8051 if test "X$lt_pkg" = "X$lt_p"; then
8052 pic_mode=yes
8054 done
8055 IFS="$lt_save_ifs"
8057 esac
8058 else
8059 pic_mode=default
8063 test -z "$pic_mode" && pic_mode=default
8071 # Check whether --enable-fast-install was given.
8072 if test "${enable_fast_install+set}" = set; then :
8073 enableval=$enable_fast_install; p=${PACKAGE-default}
8074 case $enableval in
8075 yes) enable_fast_install=yes ;;
8076 no) enable_fast_install=no ;;
8078 enable_fast_install=no
8079 # Look at the argument we got. We use all the common list separators.
8080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8081 for pkg in $enableval; do
8082 IFS="$lt_save_ifs"
8083 if test "X$pkg" = "X$p"; then
8084 enable_fast_install=yes
8086 done
8087 IFS="$lt_save_ifs"
8089 esac
8090 else
8091 enable_fast_install=yes
8104 # This can be used to rebuild libtool when needed
8105 LIBTOOL_DEPS="$ltmain"
8107 # Always use our own libtool.
8108 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8139 test -z "$LN_S" && LN_S="ln -s"
8154 if test -n "${ZSH_VERSION+set}" ; then
8155 setopt NO_GLOB_SUBST
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8159 $as_echo_n "checking for objdir... " >&6; }
8160 if ${lt_cv_objdir+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 rm -f .libs 2>/dev/null
8164 mkdir .libs 2>/dev/null
8165 if test -d .libs; then
8166 lt_cv_objdir=.libs
8167 else
8168 # MS-DOS does not allow filenames that begin with a dot.
8169 lt_cv_objdir=_libs
8171 rmdir .libs 2>/dev/null
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8174 $as_echo "$lt_cv_objdir" >&6; }
8175 objdir=$lt_cv_objdir
8181 cat >>confdefs.h <<_ACEOF
8182 #define LT_OBJDIR "$lt_cv_objdir/"
8183 _ACEOF
8188 case $host_os in
8189 aix3*)
8190 # AIX sometimes has problems with the GCC collect2 program. For some
8191 # reason, if we set the COLLECT_NAMES environment variable, the problems
8192 # vanish in a puff of smoke.
8193 if test "X${COLLECT_NAMES+set}" != Xset; then
8194 COLLECT_NAMES=
8195 export COLLECT_NAMES
8198 esac
8200 # Global variables:
8201 ofile=libtool
8202 can_build_shared=yes
8204 # All known linkers require a `.a' archive for static linking (except MSVC,
8205 # which needs '.lib').
8206 libext=a
8208 with_gnu_ld="$lt_cv_prog_gnu_ld"
8210 old_CC="$CC"
8211 old_CFLAGS="$CFLAGS"
8213 # Set sane defaults for various variables
8214 test -z "$CC" && CC=cc
8215 test -z "$LTCC" && LTCC=$CC
8216 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8217 test -z "$LD" && LD=ld
8218 test -z "$ac_objext" && ac_objext=o
8220 for cc_temp in $compiler""; do
8221 case $cc_temp in
8222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8224 \-*) ;;
8225 *) break;;
8226 esac
8227 done
8228 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8231 # Only perform the check for file, if the check method requires it
8232 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8233 case $deplibs_check_method in
8234 file_magic*)
8235 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8237 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8238 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 case $MAGIC_CMD in
8242 [\\/*] | ?:[\\/]*)
8243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8246 lt_save_MAGIC_CMD="$MAGIC_CMD"
8247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8248 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8249 for ac_dir in $ac_dummy; do
8250 IFS="$lt_save_ifs"
8251 test -z "$ac_dir" && ac_dir=.
8252 if test -f $ac_dir/${ac_tool_prefix}file; then
8253 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8254 if test -n "$file_magic_test_file"; then
8255 case $deplibs_check_method in
8256 "file_magic "*)
8257 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8260 $EGREP "$file_magic_regex" > /dev/null; then
8262 else
8263 cat <<_LT_EOF 1>&2
8265 *** Warning: the command libtool uses to detect shared libraries,
8266 *** $file_magic_cmd, produces output that libtool cannot recognize.
8267 *** The result is that libtool may fail to recognize shared libraries
8268 *** as such. This will affect the creation of libtool libraries that
8269 *** depend on shared libraries, but programs linked with such libtool
8270 *** libraries will work regardless of this problem. Nevertheless, you
8271 *** may want to report the problem to your system manager and/or to
8272 *** bug-libtool@gnu.org
8274 _LT_EOF
8275 fi ;;
8276 esac
8278 break
8280 done
8281 IFS="$lt_save_ifs"
8282 MAGIC_CMD="$lt_save_MAGIC_CMD"
8284 esac
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if test -n "$MAGIC_CMD"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8290 $as_echo "$MAGIC_CMD" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8300 if test -z "$lt_cv_path_MAGIC_CMD"; then
8301 if test -n "$ac_tool_prefix"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8303 $as_echo_n "checking for file... " >&6; }
8304 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 case $MAGIC_CMD in
8308 [\\/*] | ?:[\\/]*)
8309 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8312 lt_save_MAGIC_CMD="$MAGIC_CMD"
8313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8314 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8315 for ac_dir in $ac_dummy; do
8316 IFS="$lt_save_ifs"
8317 test -z "$ac_dir" && ac_dir=.
8318 if test -f $ac_dir/file; then
8319 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8320 if test -n "$file_magic_test_file"; then
8321 case $deplibs_check_method in
8322 "file_magic "*)
8323 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8325 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8326 $EGREP "$file_magic_regex" > /dev/null; then
8328 else
8329 cat <<_LT_EOF 1>&2
8331 *** Warning: the command libtool uses to detect shared libraries,
8332 *** $file_magic_cmd, produces output that libtool cannot recognize.
8333 *** The result is that libtool may fail to recognize shared libraries
8334 *** as such. This will affect the creation of libtool libraries that
8335 *** depend on shared libraries, but programs linked with such libtool
8336 *** libraries will work regardless of this problem. Nevertheless, you
8337 *** may want to report the problem to your system manager and/or to
8338 *** bug-libtool@gnu.org
8340 _LT_EOF
8341 fi ;;
8342 esac
8344 break
8346 done
8347 IFS="$lt_save_ifs"
8348 MAGIC_CMD="$lt_save_MAGIC_CMD"
8350 esac
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if test -n "$MAGIC_CMD"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8356 $as_echo "$MAGIC_CMD" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8363 else
8364 MAGIC_CMD=:
8370 esac
8372 # Use C for the default configuration in the libtool script
8374 lt_save_CC="$CC"
8375 ac_ext=c
8376 ac_cpp='$CPP $CPPFLAGS'
8377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8382 # Source file extension for C test sources.
8383 ac_ext=c
8385 # Object file extension for compiled C test sources.
8386 objext=o
8387 objext=$objext
8389 # Code to be used in simple compile tests
8390 lt_simple_compile_test_code="int some_variable = 0;"
8392 # Code to be used in simple link tests
8393 lt_simple_link_test_code='int main(){return(0);}'
8401 # If no C compiler was specified, use CC.
8402 LTCC=${LTCC-"$CC"}
8404 # If no C compiler flags were specified, use CFLAGS.
8405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8407 # Allow CC to be a program name with arguments.
8408 compiler=$CC
8410 # Save the default compiler, since it gets overwritten when the other
8411 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8412 compiler_DEFAULT=$CC
8414 # save warnings/boilerplate of simple test code
8415 ac_outfile=conftest.$ac_objext
8416 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8417 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8418 _lt_compiler_boilerplate=`cat conftest.err`
8419 $RM conftest*
8421 ac_outfile=conftest.$ac_objext
8422 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8423 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8424 _lt_linker_boilerplate=`cat conftest.err`
8425 $RM -r conftest*
8428 if test -n "$compiler"; then
8430 lt_prog_compiler_no_builtin_flag=
8432 if test "$GCC" = yes; then
8433 case $cc_basename in
8434 nvcc*)
8435 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8437 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8438 esac
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8441 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8442 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 lt_cv_prog_compiler_rtti_exceptions=no
8446 ac_outfile=conftest.$ac_objext
8447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8448 lt_compiler_flag="-fno-rtti -fno-exceptions"
8449 # Insert the option either (1) after the last *FLAGS variable, or
8450 # (2) before a word containing "conftest.", or (3) at the end.
8451 # Note that $ac_compile itself does not contain backslashes and begins
8452 # with a dollar sign (not a hyphen), so the echo should work correctly.
8453 # The option is referenced via a variable to avoid confusing sed.
8454 lt_compile=`echo "$ac_compile" | $SED \
8455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8457 -e 's:$: $lt_compiler_flag:'`
8458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8459 (eval "$lt_compile" 2>conftest.err)
8460 ac_status=$?
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 if (exit $ac_status) && test -s "$ac_outfile"; then
8464 # The compiler can only warn and ignore the option if not recognized
8465 # So say no if there are warnings other than the usual output.
8466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8469 lt_cv_prog_compiler_rtti_exceptions=yes
8472 $RM conftest*
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8476 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8478 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8479 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8480 else
8491 lt_prog_compiler_wl=
8492 lt_prog_compiler_pic=
8493 lt_prog_compiler_static=
8496 if test "$GCC" = yes; then
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_static='-static'
8500 case $host_os in
8501 aix*)
8502 # All AIX code is PIC.
8503 if test "$host_cpu" = ia64; then
8504 # AIX 5 now supports IA64 processor
8505 lt_prog_compiler_static='-Bstatic'
8509 amigaos*)
8510 case $host_cpu in
8511 powerpc)
8512 # see comment about AmigaOS4 .so support
8513 lt_prog_compiler_pic='-fPIC'
8515 m68k)
8516 # FIXME: we need at least 68020 code to build shared libraries, but
8517 # adding the `-m68020' flag to GCC prevents building anything better,
8518 # like `-m68040'.
8519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8521 esac
8524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8525 # PIC is the default for these OSes.
8528 mingw* | cygwin* | pw32* | os2* | cegcc*)
8529 # This hack is so that the source file can tell whether it is being
8530 # built for inclusion in a dll (and should export symbols for example).
8531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8532 # (--disable-auto-import) libraries
8533 lt_prog_compiler_pic='-DDLL_EXPORT'
8536 darwin* | rhapsody*)
8537 # PIC is the default on this platform
8538 # Common symbols not allowed in MH_DYLIB files
8539 lt_prog_compiler_pic='-fno-common'
8542 haiku*)
8543 # PIC is the default for Haiku.
8544 # The "-static" flag exists, but is broken.
8545 lt_prog_compiler_static=
8548 hpux*)
8549 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8550 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8551 # sets the default TLS model and affects inlining.
8552 case $host_cpu in
8553 hppa*64*)
8554 # +Z the default
8557 lt_prog_compiler_pic='-fPIC'
8559 esac
8562 interix[3-9]*)
8563 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8564 # Instead, we relocate shared libraries at runtime.
8567 msdosdjgpp*)
8568 # Just because we use GCC doesn't mean we suddenly get shared libraries
8569 # on systems that don't support them.
8570 lt_prog_compiler_can_build_shared=no
8571 enable_shared=no
8574 *nto* | *qnx*)
8575 # QNX uses GNU C++, but need to define -shared option too, otherwise
8576 # it will coredump.
8577 lt_prog_compiler_pic='-fPIC -shared'
8580 sysv4*MP*)
8581 if test -d /usr/nec; then
8582 lt_prog_compiler_pic=-Kconform_pic
8587 lt_prog_compiler_pic='-fPIC'
8589 esac
8591 case $cc_basename in
8592 nvcc*) # Cuda Compiler Driver 2.2
8593 lt_prog_compiler_wl='-Xlinker '
8594 if test -n "$lt_prog_compiler_pic"; then
8595 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8598 esac
8599 else
8600 # PORTME Check for flag to pass linker flags through the system compiler.
8601 case $host_os in
8602 aix*)
8603 lt_prog_compiler_wl='-Wl,'
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static='-Bstatic'
8607 else
8608 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8612 mingw* | cygwin* | pw32* | os2* | cegcc*)
8613 # This hack is so that the source file can tell whether it is being
8614 # built for inclusion in a dll (and should export symbols for example).
8615 lt_prog_compiler_pic='-DDLL_EXPORT'
8618 hpux9* | hpux10* | hpux11*)
8619 lt_prog_compiler_wl='-Wl,'
8620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8621 # not for PA HP-UX.
8622 case $host_cpu in
8623 hppa*64*|ia64*)
8624 # +Z the default
8627 lt_prog_compiler_pic='+Z'
8629 esac
8630 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8631 lt_prog_compiler_static='${wl}-a ${wl}archive'
8634 irix5* | irix6* | nonstopux*)
8635 lt_prog_compiler_wl='-Wl,'
8636 # PIC (with -KPIC) is the default.
8637 lt_prog_compiler_static='-non_shared'
8640 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8641 case $cc_basename in
8642 # old Intel for x86_64 which still supported -KPIC.
8643 ecc*)
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_pic='-KPIC'
8646 lt_prog_compiler_static='-static'
8648 # icc used to be incompatible with GCC.
8649 # ICC 10 doesn't accept -KPIC any more.
8650 icc* | ifort*)
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-fPIC'
8653 lt_prog_compiler_static='-static'
8655 # Lahey Fortran 8.1.
8656 lf95*)
8657 lt_prog_compiler_wl='-Wl,'
8658 lt_prog_compiler_pic='--shared'
8659 lt_prog_compiler_static='--static'
8661 nagfor*)
8662 # NAG Fortran compiler
8663 lt_prog_compiler_wl='-Wl,-Wl,,'
8664 lt_prog_compiler_pic='-PIC'
8665 lt_prog_compiler_static='-Bstatic'
8667 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8668 # Portland Group compilers (*not* the Pentium gcc compiler,
8669 # which looks to be a dead project)
8670 lt_prog_compiler_wl='-Wl,'
8671 lt_prog_compiler_pic='-fpic'
8672 lt_prog_compiler_static='-Bstatic'
8674 ccc*)
8675 lt_prog_compiler_wl='-Wl,'
8676 # All Alpha code is PIC.
8677 lt_prog_compiler_static='-non_shared'
8679 xl* | bgxl* | bgf* | mpixl*)
8680 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-qpic'
8683 lt_prog_compiler_static='-qstaticlink'
8686 case `$CC -V 2>&1 | sed 5q` in
8687 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8688 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_wl=''
8693 *Sun\ F* | *Sun*Fortran*)
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 lt_prog_compiler_wl='-Qoption ld '
8698 *Sun\ C*)
8699 # Sun C 5.9
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 lt_prog_compiler_wl='-Wl,'
8704 *Intel*\ [CF]*Compiler*)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fPIC'
8707 lt_prog_compiler_static='-static'
8709 *Portland\ Group*)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-fpic'
8712 lt_prog_compiler_static='-Bstatic'
8714 esac
8716 esac
8719 newsos6)
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-Bstatic'
8724 *nto* | *qnx*)
8725 # QNX uses GNU C++, but need to define -shared option too, otherwise
8726 # it will coredump.
8727 lt_prog_compiler_pic='-fPIC -shared'
8730 osf3* | osf4* | osf5*)
8731 lt_prog_compiler_wl='-Wl,'
8732 # All OSF/1 code is PIC.
8733 lt_prog_compiler_static='-non_shared'
8736 rdos*)
8737 lt_prog_compiler_static='-non_shared'
8740 solaris*)
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 case $cc_basename in
8744 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8745 lt_prog_compiler_wl='-Qoption ld ';;
8747 lt_prog_compiler_wl='-Wl,';;
8748 esac
8751 sunos4*)
8752 lt_prog_compiler_wl='-Qoption ld '
8753 lt_prog_compiler_pic='-PIC'
8754 lt_prog_compiler_static='-Bstatic'
8757 sysv4 | sysv4.2uw2* | sysv4.3*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-KPIC'
8760 lt_prog_compiler_static='-Bstatic'
8763 sysv4*MP*)
8764 if test -d /usr/nec ;then
8765 lt_prog_compiler_pic='-Kconform_pic'
8766 lt_prog_compiler_static='-Bstatic'
8770 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8776 unicos*)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_can_build_shared=no
8781 uts4*)
8782 lt_prog_compiler_pic='-pic'
8783 lt_prog_compiler_static='-Bstatic'
8787 lt_prog_compiler_can_build_shared=no
8789 esac
8792 case $host_os in
8793 # For platforms which do not support PIC, -DPIC is meaningless:
8794 *djgpp*)
8795 lt_prog_compiler_pic=
8798 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8800 esac
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8803 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8804 if ${lt_cv_prog_compiler_pic+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8810 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8811 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8814 # Check to make sure the PIC flag actually works.
8816 if test -n "$lt_prog_compiler_pic"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8818 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8819 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 lt_cv_prog_compiler_pic_works=no
8823 ac_outfile=conftest.$ac_objext
8824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8825 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8826 # Insert the option either (1) after the last *FLAGS variable, or
8827 # (2) before a word containing "conftest.", or (3) at the end.
8828 # Note that $ac_compile itself does not contain backslashes and begins
8829 # with a dollar sign (not a hyphen), so the echo should work correctly.
8830 # The option is referenced via a variable to avoid confusing sed.
8831 lt_compile=`echo "$ac_compile" | $SED \
8832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8834 -e 's:$: $lt_compiler_flag:'`
8835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8836 (eval "$lt_compile" 2>conftest.err)
8837 ac_status=$?
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 if (exit $ac_status) && test -s "$ac_outfile"; then
8841 # The compiler can only warn and ignore the option if not recognized
8842 # So say no if there are warnings other than the usual output.
8843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8846 lt_cv_prog_compiler_pic_works=yes
8849 $RM conftest*
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8853 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8855 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8856 case $lt_prog_compiler_pic in
8857 "" | " "*) ;;
8858 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8859 esac
8860 else
8861 lt_prog_compiler_pic=
8862 lt_prog_compiler_can_build_shared=no
8878 # Check to make sure the static flag actually works.
8880 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8882 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8883 if ${lt_cv_prog_compiler_static_works+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 lt_cv_prog_compiler_static_works=no
8887 save_LDFLAGS="$LDFLAGS"
8888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8889 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8891 # The linker can only warn and ignore the option if not recognized
8892 # So say no if there are warnings
8893 if test -s conftest.err; then
8894 # Append any errors to the config.log.
8895 cat conftest.err 1>&5
8896 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8898 if diff conftest.exp conftest.er2 >/dev/null; then
8899 lt_cv_prog_compiler_static_works=yes
8901 else
8902 lt_cv_prog_compiler_static_works=yes
8905 $RM -r conftest*
8906 LDFLAGS="$save_LDFLAGS"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8910 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8912 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8914 else
8915 lt_prog_compiler_static=
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8926 if ${lt_cv_prog_compiler_c_o+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 lt_cv_prog_compiler_c_o=no
8930 $RM -r conftest 2>/dev/null
8931 mkdir conftest
8932 cd conftest
8933 mkdir out
8934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936 lt_compiler_flag="-o out/conftest2.$ac_objext"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 lt_compile=`echo "$ac_compile" | $SED \
8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944 -e 's:$: $lt_compiler_flag:'`
8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946 (eval "$lt_compile" 2>out/conftest.err)
8947 ac_status=$?
8948 cat out/conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8951 then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings
8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler_c_o=yes
8960 chmod u+w . 2>&5
8961 $RM conftest*
8962 # SGI C++ compiler will create directory out/ii_files/ for
8963 # template instantiation
8964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8965 $RM out/* && rmdir out
8966 cd ..
8967 $RM -r conftest
8968 $RM conftest*
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8980 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8981 if ${lt_cv_prog_compiler_c_o+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 lt_cv_prog_compiler_c_o=no
8985 $RM -r conftest 2>/dev/null
8986 mkdir conftest
8987 cd conftest
8988 mkdir out
8989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991 lt_compiler_flag="-o out/conftest2.$ac_objext"
8992 # Insert the option either (1) after the last *FLAGS variable, or
8993 # (2) before a word containing "conftest.", or (3) at the end.
8994 # Note that $ac_compile itself does not contain backslashes and begins
8995 # with a dollar sign (not a hyphen), so the echo should work correctly.
8996 lt_compile=`echo "$ac_compile" | $SED \
8997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8999 -e 's:$: $lt_compiler_flag:'`
9000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9001 (eval "$lt_compile" 2>out/conftest.err)
9002 ac_status=$?
9003 cat out/conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9006 then
9007 # The compiler can only warn and ignore the option if not recognized
9008 # So say no if there are warnings
9009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9012 lt_cv_prog_compiler_c_o=yes
9015 chmod u+w . 2>&5
9016 $RM conftest*
9017 # SGI C++ compiler will create directory out/ii_files/ for
9018 # template instantiation
9019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9020 $RM out/* && rmdir out
9021 cd ..
9022 $RM -r conftest
9023 $RM conftest*
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9027 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9032 hard_links="nottested"
9033 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9034 # do not overwrite the value of need_locks provided by the user
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9036 $as_echo_n "checking if we can lock with hard links... " >&6; }
9037 hard_links=yes
9038 $RM conftest*
9039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9040 touch conftest.a
9041 ln conftest.a conftest.b 2>&5 || hard_links=no
9042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9044 $as_echo "$hard_links" >&6; }
9045 if test "$hard_links" = no; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9047 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9048 need_locks=warn
9050 else
9051 need_locks=no
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9060 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9062 runpath_var=
9063 allow_undefined_flag=
9064 always_export_symbols=no
9065 archive_cmds=
9066 archive_expsym_cmds=
9067 compiler_needs_object=no
9068 enable_shared_with_static_runtimes=no
9069 export_dynamic_flag_spec=
9070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9071 hardcode_automatic=no
9072 hardcode_direct=no
9073 hardcode_direct_absolute=no
9074 hardcode_libdir_flag_spec=
9075 hardcode_libdir_separator=
9076 hardcode_minus_L=no
9077 hardcode_shlibpath_var=unsupported
9078 inherit_rpath=no
9079 link_all_deplibs=unknown
9080 module_cmds=
9081 module_expsym_cmds=
9082 old_archive_from_new_cmds=
9083 old_archive_from_expsyms_cmds=
9084 thread_safe_flag_spec=
9085 whole_archive_flag_spec=
9086 # include_expsyms should be a list of space-separated symbols to be *always*
9087 # included in the symbol list
9088 include_expsyms=
9089 # exclude_expsyms can be an extended regexp of symbols to exclude
9090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9092 # as well as any symbol that contains `d'.
9093 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9095 # platforms (ab)use it in PIC code, but their linkers get confused if
9096 # the symbol is explicitly referenced. Since portable code cannot
9097 # rely on this symbol name, it's probably fine to never include it in
9098 # preloaded symbol tables.
9099 # Exclude shared library initialization/finalization symbols.
9100 extract_expsyms_cmds=
9102 case $host_os in
9103 cygwin* | mingw* | pw32* | cegcc*)
9104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9105 # When not using gcc, we currently assume that we are using
9106 # Microsoft Visual C++.
9107 if test "$GCC" != yes; then
9108 with_gnu_ld=no
9111 interix*)
9112 # we just hope/assume this is gcc and not c89 (= MSVC++)
9113 with_gnu_ld=yes
9115 openbsd*)
9116 with_gnu_ld=no
9118 esac
9120 ld_shlibs=yes
9122 # On some targets, GNU ld is compatible enough with the native linker
9123 # that we're better off using the native interface for both.
9124 lt_use_gnu_ld_interface=no
9125 if test "$with_gnu_ld" = yes; then
9126 case $host_os in
9127 aix*)
9128 # The AIX port of GNU ld has always aspired to compatibility
9129 # with the native linker. However, as the warning in the GNU ld
9130 # block says, versions before 2.19.5* couldn't really create working
9131 # shared libraries, regardless of the interface used.
9132 case `$LD -v 2>&1` in
9133 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9134 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9135 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9137 lt_use_gnu_ld_interface=yes
9139 esac
9142 lt_use_gnu_ld_interface=yes
9144 esac
9147 if test "$lt_use_gnu_ld_interface" = yes; then
9148 # If archive_cmds runs LD, not CC, wlarc should be empty
9149 wlarc='${wl}'
9151 # Set some defaults for GNU ld with shared library support. These
9152 # are reset later if shared libraries are not supported. Putting them
9153 # here allows them to be overridden if necessary.
9154 runpath_var=LD_RUN_PATH
9155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156 export_dynamic_flag_spec='${wl}--export-dynamic'
9157 # ancient GNU ld didn't support --whole-archive et. al.
9158 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9159 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9160 else
9161 whole_archive_flag_spec=
9163 supports_anon_versioning=no
9164 case `$LD -v 2>&1` in
9165 *GNU\ gold*) supports_anon_versioning=yes ;;
9166 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9167 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9168 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9169 *\ 2.11.*) ;; # other 2.11 versions
9170 *) supports_anon_versioning=yes ;;
9171 esac
9173 # See if GNU ld supports shared libraries.
9174 case $host_os in
9175 aix[3-9]*)
9176 # On AIX/PPC, the GNU linker is very broken
9177 if test "$host_cpu" != ia64; then
9178 ld_shlibs=no
9179 cat <<_LT_EOF 1>&2
9181 *** Warning: the GNU linker, at least up to release 2.19, is reported
9182 *** to be unable to reliably create shared libraries on AIX.
9183 *** Therefore, libtool is disabling shared libraries support. If you
9184 *** really care for shared libraries, you may want to install binutils
9185 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9186 *** You will then need to restart the configuration process.
9188 _LT_EOF
9192 amigaos*)
9193 case $host_cpu in
9194 powerpc)
9195 # see comment about AmigaOS4 .so support
9196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9197 archive_expsym_cmds=''
9199 m68k)
9200 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_minus_L=yes
9204 esac
9207 beos*)
9208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9209 allow_undefined_flag=unsupported
9210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9211 # support --undefined. This deserves some investigation. FIXME
9212 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213 else
9214 ld_shlibs=no
9218 cygwin* | mingw* | pw32* | cegcc*)
9219 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9220 # as there is no search path for DLLs.
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 export_dynamic_flag_spec='${wl}--export-all-symbols'
9223 allow_undefined_flag=unsupported
9224 always_export_symbols=no
9225 enable_shared_with_static_runtimes=yes
9226 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9227 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9231 # If the export-symbols file already is a .def file (1st line
9232 # is EXPORTS), use it as is; otherwise, prepend...
9233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9234 cp $export_symbols $output_objdir/$soname.def;
9235 else
9236 echo EXPORTS > $output_objdir/$soname.def;
9237 cat $export_symbols >> $output_objdir/$soname.def;
9239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9240 else
9241 ld_shlibs=no
9245 haiku*)
9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 link_all_deplibs=yes
9250 interix[3-9]*)
9251 hardcode_direct=no
9252 hardcode_shlibpath_var=no
9253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254 export_dynamic_flag_spec='${wl}-E'
9255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9256 # Instead, shared libraries are loaded at an image base (0x10000000 by
9257 # default) and relocated if they conflict, which is a slow very memory
9258 # consuming and fragmenting process. To avoid this, we pick a random,
9259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9261 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9262 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9265 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9266 tmp_diet=no
9267 if test "$host_os" = linux-dietlibc; then
9268 case $cc_basename in
9269 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9270 esac
9272 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9273 && test "$tmp_diet" = no
9274 then
9275 tmp_addflag=' $pic_flag'
9276 tmp_sharedflag='-shared'
9277 case $cc_basename,$host_cpu in
9278 pgcc*) # Portland Group C compiler
9279 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9280 tmp_addflag=' $pic_flag'
9282 pgf77* | pgf90* | pgf95* | pgfortran*)
9283 # Portland Group f77 and f90 compilers
9284 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9285 tmp_addflag=' $pic_flag -Mnomain' ;;
9286 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9287 tmp_addflag=' -i_dynamic' ;;
9288 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9289 tmp_addflag=' -i_dynamic -nofor_main' ;;
9290 ifc* | ifort*) # Intel Fortran compiler
9291 tmp_addflag=' -nofor_main' ;;
9292 lf95*) # Lahey Fortran 8.1
9293 whole_archive_flag_spec=
9294 tmp_sharedflag='--shared' ;;
9295 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9296 tmp_sharedflag='-qmkshrobj'
9297 tmp_addflag= ;;
9298 nvcc*) # Cuda Compiler Driver 2.2
9299 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9300 compiler_needs_object=yes
9302 esac
9303 case `$CC -V 2>&1 | sed 5q` in
9304 *Sun\ C*) # Sun C 5.9
9305 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9306 compiler_needs_object=yes
9307 tmp_sharedflag='-G' ;;
9308 *Sun\ F*) # Sun Fortran 8.3
9309 tmp_sharedflag='-G' ;;
9310 esac
9311 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 if test "x$supports_anon_versioning" = xyes; then
9314 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9316 echo "local: *; };" >> $output_objdir/$libname.ver~
9317 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9320 case $cc_basename in
9321 xlf* | bgf* | bgxlf* | mpixlf*)
9322 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9323 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9325 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9326 if test "x$supports_anon_versioning" = xyes; then
9327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9329 echo "local: *; };" >> $output_objdir/$libname.ver~
9330 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9333 esac
9334 else
9335 ld_shlibs=no
9339 netbsd*)
9340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9341 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9342 wlarc=
9343 else
9344 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9349 solaris*)
9350 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9351 ld_shlibs=no
9352 cat <<_LT_EOF 1>&2
9354 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9355 *** create shared libraries on Solaris systems. Therefore, libtool
9356 *** is disabling shared libraries support. We urge you to upgrade GNU
9357 *** binutils to release 2.9.1 or newer. Another option is to modify
9358 *** your PATH or compiler configuration so that the native linker is
9359 *** used, and then restart.
9361 _LT_EOF
9362 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365 else
9366 ld_shlibs=no
9370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9371 case `$LD -v 2>&1` in
9372 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9373 ld_shlibs=no
9374 cat <<_LT_EOF 1>&2
9376 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9377 *** reliably create shared libraries on SCO systems. Therefore, libtool
9378 *** is disabling shared libraries support. We urge you to upgrade GNU
9379 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9380 *** your PATH or compiler configuration so that the native linker is
9381 *** used, and then restart.
9383 _LT_EOF
9386 # For security reasons, it is highly recommended that you always
9387 # use absolute paths for naming shared libraries, and exclude the
9388 # DT_RUNPATH tag from executables and libraries. But doing so
9389 # requires that you compile everything twice, which is a pain.
9390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394 else
9395 ld_shlibs=no
9398 esac
9401 sunos4*)
9402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9403 wlarc=
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412 else
9413 ld_shlibs=no
9416 esac
9418 if test "$ld_shlibs" = no; then
9419 runpath_var=
9420 hardcode_libdir_flag_spec=
9421 export_dynamic_flag_spec=
9422 whole_archive_flag_spec=
9424 else
9425 # PORTME fill in a description of your system's linker (not GNU ld)
9426 case $host_os in
9427 aix3*)
9428 allow_undefined_flag=unsupported
9429 always_export_symbols=yes
9430 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9431 # Note: this linker hardcodes the directories in LIBPATH if there
9432 # are no directories specified by -L.
9433 hardcode_minus_L=yes
9434 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9435 # Neither direct hardcoding nor static linking is supported with a
9436 # broken collect2.
9437 hardcode_direct=unsupported
9441 aix[4-9]*)
9442 if test "$host_cpu" = ia64; then
9443 # On IA64, the linker does run time linking by default, so we don't
9444 # have to do anything special.
9445 aix_use_runtimelinking=no
9446 exp_sym_flag='-Bexport'
9447 no_entry_flag=""
9448 else
9449 # If we're using GNU nm, then we don't want the "-C" option.
9450 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9451 # Also, AIX nm treats weak defined symbols like other global
9452 # defined symbols, whereas GNU nm marks them as "W".
9453 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9454 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9455 else
9456 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9458 aix_use_runtimelinking=no
9460 # Test if we are trying to use run time linking or normal
9461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9462 # need to do runtime linking.
9463 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9464 for ld_flag in $LDFLAGS; do
9465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9466 aix_use_runtimelinking=yes
9467 break
9469 done
9471 esac
9473 exp_sym_flag='-bexport'
9474 no_entry_flag='-bnoentry'
9477 # When large executables or shared objects are built, AIX ld can
9478 # have problems creating the table of contents. If linking a library
9479 # or program results in "error TOC overflow" add -mminimal-toc to
9480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9483 archive_cmds=''
9484 hardcode_direct=yes
9485 hardcode_direct_absolute=yes
9486 hardcode_libdir_separator=':'
9487 link_all_deplibs=yes
9488 file_list_spec='${wl}-f,'
9490 if test "$GCC" = yes; then
9491 case $host_os in aix4.[012]|aix4.[012].*)
9492 # We only want to do this on AIX 4.2 and lower, the check
9493 # below for broken collect2 doesn't work under 4.3+
9494 collect2name=`${CC} -print-prog-name=collect2`
9495 if test -f "$collect2name" &&
9496 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9497 then
9498 # We have reworked collect2
9500 else
9501 # We have old collect2
9502 hardcode_direct=unsupported
9503 # It fails to find uninstalled libraries when the uninstalled
9504 # path is not listed in the libpath. Setting hardcode_minus_L
9505 # to unsupported forces relinking
9506 hardcode_minus_L=yes
9507 hardcode_libdir_flag_spec='-L$libdir'
9508 hardcode_libdir_separator=
9511 esac
9512 shared_flag='-shared'
9513 if test "$aix_use_runtimelinking" = yes; then
9514 shared_flag="$shared_flag "'${wl}-G'
9516 else
9517 # not using gcc
9518 if test "$host_cpu" = ia64; then
9519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9520 # chokes on -Wl,-G. The following line is correct:
9521 shared_flag='-G'
9522 else
9523 if test "$aix_use_runtimelinking" = yes; then
9524 shared_flag='${wl}-G'
9525 else
9526 shared_flag='${wl}-bM:SRE'
9531 export_dynamic_flag_spec='${wl}-bexpall'
9532 # It seems that -bexpall does not export symbols beginning with
9533 # underscore (_), so it is better to generate a list of symbols to export.
9534 always_export_symbols=yes
9535 if test "$aix_use_runtimelinking" = yes; then
9536 # Warning - without using the other runtime loading flags (-brtl),
9537 # -berok will link without error, but may produce a broken library.
9538 allow_undefined_flag='-berok'
9539 # Determine the default libpath from the value encoded in an
9540 # empty executable.
9541 if test "${lt_cv_aix_libpath+set}" = set; then
9542 aix_libpath=$lt_cv_aix_libpath
9543 else
9544 if ${lt_cv_aix_libpath_+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9551 main ()
9555 return 0;
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9560 lt_aix_libpath_sed='
9561 /Import File Strings/,/^$/ {
9562 /^0/ {
9563 s/^0 *\([^ ]*\) *$/\1/
9567 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9568 # Check for a 64-bit object if we didn't find anything.
9569 if test -z "$lt_cv_aix_libpath_"; then
9570 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573 rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 if test -z "$lt_cv_aix_libpath_"; then
9576 lt_cv_aix_libpath_="/usr/lib:/lib"
9581 aix_libpath=$lt_cv_aix_libpath_
9584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9585 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9586 else
9587 if test "$host_cpu" = ia64; then
9588 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9589 allow_undefined_flag="-z nodefs"
9590 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9591 else
9592 # Determine the default libpath from the value encoded in an
9593 # empty executable.
9594 if test "${lt_cv_aix_libpath+set}" = set; then
9595 aix_libpath=$lt_cv_aix_libpath
9596 else
9597 if ${lt_cv_aix_libpath_+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9604 main ()
9608 return 0;
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9613 lt_aix_libpath_sed='
9614 /Import File Strings/,/^$/ {
9615 /^0/ {
9616 s/^0 *\([^ ]*\) *$/\1/
9620 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 # Check for a 64-bit object if we didn't find anything.
9622 if test -z "$lt_cv_aix_libpath_"; then
9623 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 if test -z "$lt_cv_aix_libpath_"; then
9629 lt_cv_aix_libpath_="/usr/lib:/lib"
9634 aix_libpath=$lt_cv_aix_libpath_
9637 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9638 # Warning - without using the other run time loading flags,
9639 # -berok will link without error, but may produce a broken library.
9640 no_undefined_flag=' ${wl}-bernotok'
9641 allow_undefined_flag=' ${wl}-berok'
9642 if test "$with_gnu_ld" = yes; then
9643 # We only use this code for GNU lds that support --whole-archive.
9644 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9645 else
9646 # Exported symbols can be pulled into shared objects from archives
9647 whole_archive_flag_spec='$convenience'
9649 archive_cmds_need_lc=yes
9650 # This is similar to how AIX traditionally builds its shared libraries.
9651 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9656 amigaos*)
9657 case $host_cpu in
9658 powerpc)
9659 # see comment about AmigaOS4 .so support
9660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661 archive_expsym_cmds=''
9663 m68k)
9664 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_minus_L=yes
9668 esac
9671 bsdi[45]*)
9672 export_dynamic_flag_spec=-rdynamic
9675 cygwin* | mingw* | pw32* | cegcc*)
9676 # When not using gcc, we currently assume that we are using
9677 # Microsoft Visual C++.
9678 # hardcode_libdir_flag_spec is actually meaningless, as there is
9679 # no search path for DLLs.
9680 case $cc_basename in
9681 cl*)
9682 # Native MSVC
9683 hardcode_libdir_flag_spec=' '
9684 allow_undefined_flag=unsupported
9685 always_export_symbols=yes
9686 file_list_spec='@'
9687 # Tell ltmain to make .lib files, not .a files.
9688 libext=lib
9689 # Tell ltmain to make .dll files, not .so files.
9690 shrext_cmds=".dll"
9691 # FIXME: Setting linknames here is a bad hack.
9692 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9693 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9694 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9695 else
9696 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9698 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9699 linknames='
9700 # The linker will not automatically build a static lib if we build a DLL.
9701 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9702 enable_shared_with_static_runtimes=yes
9703 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9705 # Don't use ranlib
9706 old_postinstall_cmds='chmod 644 $oldlib'
9707 postlink_cmds='lt_outputfile="@OUTPUT@"~
9708 lt_tool_outputfile="@TOOL_OUTPUT@"~
9709 case $lt_outputfile in
9710 *.exe|*.EXE) ;;
9712 lt_outputfile="$lt_outputfile.exe"
9713 lt_tool_outputfile="$lt_tool_outputfile.exe"
9715 esac~
9716 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9717 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9718 $RM "$lt_outputfile.manifest";
9722 # Assume MSVC wrapper
9723 hardcode_libdir_flag_spec=' '
9724 allow_undefined_flag=unsupported
9725 # Tell ltmain to make .lib files, not .a files.
9726 libext=lib
9727 # Tell ltmain to make .dll files, not .so files.
9728 shrext_cmds=".dll"
9729 # FIXME: Setting linknames here is a bad hack.
9730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9731 # The linker will automatically build a .lib file if we build a DLL.
9732 old_archive_from_new_cmds='true'
9733 # FIXME: Should let the user specify the lib program.
9734 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9735 enable_shared_with_static_runtimes=yes
9737 esac
9740 darwin* | rhapsody*)
9743 archive_cmds_need_lc=no
9744 hardcode_direct=no
9745 hardcode_automatic=yes
9746 hardcode_shlibpath_var=unsupported
9747 if test "$lt_cv_ld_force_load" = "yes"; then
9748 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9750 else
9751 whole_archive_flag_spec=''
9753 link_all_deplibs=yes
9754 allow_undefined_flag="$_lt_dar_allow_undefined"
9755 case $cc_basename in
9756 ifort*) _lt_dar_can_shared=yes ;;
9757 *) _lt_dar_can_shared=$GCC ;;
9758 esac
9759 if test "$_lt_dar_can_shared" = "yes"; then
9760 output_verbose_link_cmd=func_echo_all
9761 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9762 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9763 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9764 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9766 else
9767 ld_shlibs=no
9772 dgux*)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_shlibpath_var=no
9778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9779 # support. Future versions do this automatically, but an explicit c++rt0.o
9780 # does not break anything, and helps significantly (at the cost of a little
9781 # extra space).
9782 freebsd2.2*)
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9784 hardcode_libdir_flag_spec='-R$libdir'
9785 hardcode_direct=yes
9786 hardcode_shlibpath_var=no
9789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9790 freebsd2.*)
9791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes
9793 hardcode_minus_L=yes
9794 hardcode_shlibpath_var=no
9797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9798 freebsd* | dragonfly*)
9799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9800 hardcode_libdir_flag_spec='-R$libdir'
9801 hardcode_direct=yes
9802 hardcode_shlibpath_var=no
9805 hpux9*)
9806 if test "$GCC" = yes; then
9807 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9808 else
9809 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 hardcode_direct=yes
9815 # hardcode_minus_L: Not really in the search PATH,
9816 # but as the default location of the library.
9817 hardcode_minus_L=yes
9818 export_dynamic_flag_spec='${wl}-E'
9821 hpux10*)
9822 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9823 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9824 else
9825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827 if test "$with_gnu_ld" = no; then
9828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9829 hardcode_libdir_separator=:
9830 hardcode_direct=yes
9831 hardcode_direct_absolute=yes
9832 export_dynamic_flag_spec='${wl}-E'
9833 # hardcode_minus_L: Not really in the search PATH,
9834 # but as the default location of the library.
9835 hardcode_minus_L=yes
9839 hpux11*)
9840 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9841 case $host_cpu in
9842 hppa*64*)
9843 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 ia64*)
9846 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851 esac
9852 else
9853 case $host_cpu in
9854 hppa*64*)
9855 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 ia64*)
9858 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862 # Older versions of the 11.00 compiler do not understand -b yet
9863 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9865 $as_echo_n "checking if $CC understands -b... " >&6; }
9866 if ${lt_cv_prog_compiler__b+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 lt_cv_prog_compiler__b=no
9870 save_LDFLAGS="$LDFLAGS"
9871 LDFLAGS="$LDFLAGS -b"
9872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9874 # The linker can only warn and ignore the option if not recognized
9875 # So say no if there are warnings
9876 if test -s conftest.err; then
9877 # Append any errors to the config.log.
9878 cat conftest.err 1>&5
9879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9881 if diff conftest.exp conftest.er2 >/dev/null; then
9882 lt_cv_prog_compiler__b=yes
9884 else
9885 lt_cv_prog_compiler__b=yes
9888 $RM -r conftest*
9889 LDFLAGS="$save_LDFLAGS"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9893 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9895 if test x"$lt_cv_prog_compiler__b" = xyes; then
9896 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897 else
9898 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9902 esac
9904 if test "$with_gnu_ld" = no; then
9905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9906 hardcode_libdir_separator=:
9908 case $host_cpu in
9909 hppa*64*|ia64*)
9910 hardcode_direct=no
9911 hardcode_shlibpath_var=no
9914 hardcode_direct=yes
9915 hardcode_direct_absolute=yes
9916 export_dynamic_flag_spec='${wl}-E'
9918 # hardcode_minus_L: Not really in the search PATH,
9919 # but as the default location of the library.
9920 hardcode_minus_L=yes
9922 esac
9926 irix5* | irix6* | nonstopux*)
9927 if test "$GCC" = yes; then
9928 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9929 # Try to use the -exported_symbol ld option, if it does not
9930 # work, assume that -exports_file does not work either and
9931 # implicitly export all symbols.
9932 # This should be the same for all languages, so no per-tag cache variable.
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9934 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9935 if ${lt_cv_irix_exported_symbol+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 save_LDFLAGS="$LDFLAGS"
9939 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 int foo (void) { return 0; }
9943 _ACEOF
9944 if ac_fn_c_try_link "$LINENO"; then :
9945 lt_cv_irix_exported_symbol=yes
9946 else
9947 lt_cv_irix_exported_symbol=no
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LDFLAGS="$save_LDFLAGS"
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9954 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9955 if test "$lt_cv_irix_exported_symbol" = yes; then
9956 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9958 else
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9962 archive_cmds_need_lc='no'
9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9964 hardcode_libdir_separator=:
9965 inherit_rpath=yes
9966 link_all_deplibs=yes
9969 netbsd*)
9970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9972 else
9973 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 hardcode_direct=yes
9977 hardcode_shlibpath_var=no
9980 newsos6)
9981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982 hardcode_direct=yes
9983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984 hardcode_libdir_separator=:
9985 hardcode_shlibpath_var=no
9988 *nto* | *qnx*)
9991 openbsd*)
9992 if test -f /usr/libexec/ld.so; then
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9995 hardcode_direct_absolute=yes
9996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10000 export_dynamic_flag_spec='${wl}-E'
10001 else
10002 case $host_os in
10003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_libdir_flag_spec='-R$libdir'
10008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10011 esac
10013 else
10014 ld_shlibs=no
10018 os2*)
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_minus_L=yes
10021 allow_undefined_flag=unsupported
10022 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10023 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10026 osf3*)
10027 if test "$GCC" = yes; then
10028 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10029 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10030 else
10031 allow_undefined_flag=' -expect_unresolved \*'
10032 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10034 archive_cmds_need_lc='no'
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator=:
10039 osf4* | osf5*) # as osf3* with the addition of -msym flag
10040 if test "$GCC" = yes; then
10041 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10042 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 else
10045 allow_undefined_flag=' -expect_unresolved \*'
10046 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10047 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10048 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10050 # Both c and cxx compiler support -rpath directly
10051 hardcode_libdir_flag_spec='-rpath $libdir'
10053 archive_cmds_need_lc='no'
10054 hardcode_libdir_separator=:
10057 solaris*)
10058 no_undefined_flag=' -z defs'
10059 if test "$GCC" = yes; then
10060 wlarc='${wl}'
10061 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10064 else
10065 case `$CC -V 2>&1` in
10066 *"Compilers 5.0"*)
10067 wlarc=''
10068 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10073 wlarc='${wl}'
10074 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10076 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10078 esac
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 hardcode_shlibpath_var=no
10082 case $host_os in
10083 solaris2.[0-5] | solaris2.[0-5].*) ;;
10085 # The compiler driver will combine and reorder linker options,
10086 # but understands `-z linker_flag'. GCC discards it without `$wl',
10087 # but is careful enough not to reorder.
10088 # Supported since Solaris 2.6 (maybe 2.5.1?)
10089 if test "$GCC" = yes; then
10090 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10091 else
10092 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10095 esac
10096 link_all_deplibs=yes
10099 sunos4*)
10100 if test "x$host_vendor" = xsequent; then
10101 # Use $CC to link under sequent, because it throws in some extra .o
10102 # files that make .init and .fini sections work.
10103 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104 else
10105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_libdir_flag_spec='-L$libdir'
10108 hardcode_direct=yes
10109 hardcode_minus_L=yes
10110 hardcode_shlibpath_var=no
10113 sysv4)
10114 case $host_vendor in
10115 sni)
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_direct=yes # is this really true???
10119 siemens)
10120 ## LD is ld it makes a PLAMLIB
10121 ## CC just makes a GrossModule.
10122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10123 reload_cmds='$CC -r -o $output$reload_objs'
10124 hardcode_direct=no
10126 motorola)
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10130 esac
10131 runpath_var='LD_RUN_PATH'
10132 hardcode_shlibpath_var=no
10135 sysv4.3*)
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_shlibpath_var=no
10138 export_dynamic_flag_spec='-Bexport'
10141 sysv4*MP*)
10142 if test -d /usr/nec; then
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_shlibpath_var=no
10145 runpath_var=LD_RUN_PATH
10146 hardcode_runpath_var=yes
10147 ld_shlibs=yes
10151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10152 no_undefined_flag='${wl}-z,text'
10153 archive_cmds_need_lc=no
10154 hardcode_shlibpath_var=no
10155 runpath_var='LD_RUN_PATH'
10157 if test "$GCC" = yes; then
10158 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 else
10161 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 sysv5* | sco3.2v5* | sco5v6*)
10167 # Note: We can NOT use -z defs as we might desire, because we do not
10168 # link with -lc, and that would cause any symbols used from libc to
10169 # always be unresolved, which means just about no library would
10170 # ever link correctly. If we're not using GNU ld we use -z text
10171 # though, which does catch some bad symbols but isn't as heavy-handed
10172 # as -z defs.
10173 no_undefined_flag='${wl}-z,text'
10174 allow_undefined_flag='${wl}-z,nodefs'
10175 archive_cmds_need_lc=no
10176 hardcode_shlibpath_var=no
10177 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10178 hardcode_libdir_separator=':'
10179 link_all_deplibs=yes
10180 export_dynamic_flag_spec='${wl}-Bexport'
10181 runpath_var='LD_RUN_PATH'
10183 if test "$GCC" = yes; then
10184 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 else
10187 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 uts4*)
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_shlibpath_var=no
10199 ld_shlibs=no
10201 esac
10203 if test x$host_vendor = xsni; then
10204 case $host in
10205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10206 export_dynamic_flag_spec='${wl}-Blargedynsym'
10208 esac
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10213 $as_echo "$ld_shlibs" >&6; }
10214 test "$ld_shlibs" = no && can_build_shared=no
10216 with_gnu_ld=$with_gnu_ld
10233 # Do we need to explicitly link libc?
10235 case "x$archive_cmds_need_lc" in
10236 x|xyes)
10237 # Assume -lc should be added
10238 archive_cmds_need_lc=yes
10240 if test "$enable_shared" = yes && test "$GCC" = yes; then
10241 case $archive_cmds in
10242 *'~'*)
10243 # FIXME: we may have to deal with multi-command sequences.
10245 '$CC '*)
10246 # Test whether the compiler implicitly links with -lc since on some
10247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10248 # to ld, don't add -lc before -lgcc.
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10250 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10251 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 $RM conftest*
10255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10261 test $ac_status = 0; } 2>conftest.err; then
10262 soname=conftest
10263 lib=conftest
10264 libobjs=conftest.$ac_objext
10265 deplibs=
10266 wl=$lt_prog_compiler_wl
10267 pic_flag=$lt_prog_compiler_pic
10268 compiler_flags=-v
10269 linker_flags=-v
10270 verstring=
10271 output_objdir=.
10272 libname=conftest
10273 lt_save_allow_undefined_flag=$allow_undefined_flag
10274 allow_undefined_flag=
10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10277 ac_status=$?
10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10279 test $ac_status = 0; }
10280 then
10281 lt_cv_archive_cmds_need_lc=no
10282 else
10283 lt_cv_archive_cmds_need_lc=yes
10285 allow_undefined_flag=$lt_save_allow_undefined_flag
10286 else
10287 cat conftest.err 1>&5
10289 $RM conftest*
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10293 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10294 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10296 esac
10299 esac
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10455 if test "$GCC" = yes; then
10456 case $host_os in
10457 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10458 *) lt_awk_arg="/^libraries:/" ;;
10459 esac
10460 case $host_os in
10461 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10462 *) lt_sed_strip_eq="s,=/,/,g" ;;
10463 esac
10464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10465 case $lt_search_path_spec in
10466 *\;*)
10467 # if the path contains ";" then we assume it to be the separator
10468 # otherwise default to the standard path separator (i.e. ":") - it is
10469 # assumed that no part of a normal pathname contains ";" but that should
10470 # okay in the real world where ";" in dirpaths is itself problematic.
10471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10476 esac
10477 # Ok, now we have the path, separated by spaces, we can step through it
10478 # and add multilib dir if necessary.
10479 lt_tmp_lt_search_path_spec=
10480 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10481 for lt_sys_path in $lt_search_path_spec; do
10482 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10483 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10484 else
10485 test -d "$lt_sys_path" && \
10486 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10488 done
10489 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10490 BEGIN {RS=" "; FS="/|\n";} {
10491 lt_foo="";
10492 lt_count=0;
10493 for (lt_i = NF; lt_i > 0; lt_i--) {
10494 if ($lt_i != "" && $lt_i != ".") {
10495 if ($lt_i == "..") {
10496 lt_count++;
10497 } else {
10498 if (lt_count == 0) {
10499 lt_foo="/" $lt_i lt_foo;
10500 } else {
10501 lt_count--;
10506 if (lt_foo != "") { lt_freq[lt_foo]++; }
10507 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10509 # AWK program above erroneously prepends '/' to C:/dos/paths
10510 # for these hosts.
10511 case $host_os in
10512 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10513 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10514 esac
10515 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10516 else
10517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10519 library_names_spec=
10520 libname_spec='lib$name'
10521 soname_spec=
10522 shrext_cmds=".so"
10523 postinstall_cmds=
10524 postuninstall_cmds=
10525 finish_cmds=
10526 finish_eval=
10527 shlibpath_var=
10528 shlibpath_overrides_runpath=unknown
10529 version_type=none
10530 dynamic_linker="$host_os ld.so"
10531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10532 need_lib_prefix=unknown
10533 hardcode_into_libs=no
10535 # when you set need_version to no, make sure it does not cause -set_version
10536 # flags to be left without arguments
10537 need_version=unknown
10539 case $host_os in
10540 aix3*)
10541 version_type=linux # correct to gnu/linux during the next big refactor
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10543 shlibpath_var=LIBPATH
10545 # AIX 3 has no versioning support, so we append a major version to the name.
10546 soname_spec='${libname}${release}${shared_ext}$major'
10549 aix[4-9]*)
10550 version_type=linux # correct to gnu/linux during the next big refactor
10551 need_lib_prefix=no
10552 need_version=no
10553 hardcode_into_libs=yes
10554 if test "$host_cpu" = ia64; then
10555 # AIX 5 supports IA64
10556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 else
10559 # With GCC up to 2.95.x, collect2 would create an import file
10560 # for dependence libraries. The import file would start with
10561 # the line `#! .'. This would cause the generated library to
10562 # depend on `.', always an invalid library. This was fixed in
10563 # development snapshots of GCC prior to 3.0.
10564 case $host_os in
10565 aix4 | aix4.[01] | aix4.[01].*)
10566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10567 echo ' yes '
10568 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10570 else
10571 can_build_shared=no
10574 esac
10575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10576 # soname into executable. Probably we can add versioning support to
10577 # collect2, so additional links can be useful in future.
10578 if test "$aix_use_runtimelinking" = yes; then
10579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10580 # instead of lib<name>.a to let people know that these are not
10581 # typical AIX shared libraries.
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 else
10584 # We preserve .a as extension for shared libraries through AIX4.2
10585 # and later when we are not doing run time linking.
10586 library_names_spec='${libname}${release}.a $libname.a'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LIBPATH
10593 amigaos*)
10594 case $host_cpu in
10595 powerpc)
10596 # Since July 2007 AmigaOS4 officially supports .so libraries.
10597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 m68k)
10601 library_names_spec='$libname.ixlibrary $libname.a'
10602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10603 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10605 esac
10608 beos*)
10609 library_names_spec='${libname}${shared_ext}'
10610 dynamic_linker="$host_os ld.so"
10611 shlibpath_var=LIBRARY_PATH
10614 bsdi[45]*)
10615 version_type=linux # correct to gnu/linux during the next big refactor
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10622 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10623 # the default ld.so.conf also contains /usr/contrib/lib and
10624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10625 # libtool to hard-code these into programs
10628 cygwin* | mingw* | pw32* | cegcc*)
10629 version_type=windows
10630 shrext_cmds=".dll"
10631 need_version=no
10632 need_lib_prefix=no
10634 case $GCC,$cc_basename in
10635 yes,*)
10636 # gcc
10637 library_names_spec='$libname.dll.a'
10638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639 postinstall_cmds='base_file=`basename \${file}`~
10640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641 dldir=$destdir/`dirname \$dlpath`~
10642 test -d \$dldir || mkdir -p \$dldir~
10643 $install_prog $dir/$dlname \$dldir/$dlname~
10644 chmod a+x \$dldir/$dlname~
10645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649 dlpath=$dir/\$dldll~
10650 $RM \$dlpath'
10651 shlibpath_overrides_runpath=yes
10653 case $host_os in
10654 cygwin*)
10655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10660 mingw* | cegcc*)
10661 # MinGW DLLs use traditional 'lib' prefix
10662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664 pw32*)
10665 # pw32 DLLs use 'pw' prefix rather than 'lib'
10666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10668 esac
10669 dynamic_linker='Win32 ld.exe'
10672 *,cl*)
10673 # Native MSVC
10674 libname_spec='$name'
10675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676 library_names_spec='${libname}.dll.lib'
10678 case $build_os in
10679 mingw*)
10680 sys_lib_search_path_spec=
10681 lt_save_ifs=$IFS
10682 IFS=';'
10683 for lt_path in $LIB
10685 IFS=$lt_save_ifs
10686 # Let DOS variable expansion print the short 8.3 style file name.
10687 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10688 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10689 done
10690 IFS=$lt_save_ifs
10691 # Convert to MSYS style.
10692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10694 cygwin*)
10695 # Convert to unix form, then to dos form, then back to unix form
10696 # but this time dos style (no spaces!) so that the unix form looks
10697 # like /cygdrive/c/PROGRA~1:/cygdr...
10698 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10699 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10700 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10703 sys_lib_search_path_spec="$LIB"
10704 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10705 # It is most probably a Windows format PATH.
10706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10707 else
10708 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10710 # FIXME: find the short name or the path components, as spaces are
10711 # common. (e.g. "Program Files" -> "PROGRA~1")
10713 esac
10715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 postinstall_cmds='base_file=`basename \${file}`~
10717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718 dldir=$destdir/`dirname \$dlpath`~
10719 test -d \$dldir || mkdir -p \$dldir~
10720 $install_prog $dir/$dlname \$dldir/$dlname'
10721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722 dlpath=$dir/\$dldll~
10723 $RM \$dlpath'
10724 shlibpath_overrides_runpath=yes
10725 dynamic_linker='Win32 link.exe'
10729 # Assume MSVC wrapper
10730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10731 dynamic_linker='Win32 ld.exe'
10733 esac
10734 # FIXME: first we should search . and the directory the executable is in
10735 shlibpath_var=PATH
10738 darwin* | rhapsody*)
10739 dynamic_linker="$host_os dyld"
10740 version_type=darwin
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10744 soname_spec='${libname}${release}${major}$shared_ext'
10745 shlibpath_overrides_runpath=yes
10746 shlibpath_var=DYLD_LIBRARY_PATH
10747 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10749 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10753 dgux*)
10754 version_type=linux # correct to gnu/linux during the next big refactor
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10762 freebsd* | dragonfly*)
10763 # DragonFly does not have aout. When/if they implement a new
10764 # versioning mechanism, adjust this.
10765 if test -x /usr/bin/objformat; then
10766 objformat=`/usr/bin/objformat`
10767 else
10768 case $host_os in
10769 freebsd[23].*) objformat=aout ;;
10770 *) objformat=elf ;;
10771 esac
10773 version_type=freebsd-$objformat
10774 case $version_type in
10775 freebsd-elf*)
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10777 need_version=no
10778 need_lib_prefix=no
10780 freebsd-*)
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10782 need_version=yes
10784 esac
10785 shlibpath_var=LD_LIBRARY_PATH
10786 case $host_os in
10787 freebsd2.*)
10788 shlibpath_overrides_runpath=yes
10790 freebsd3.[01]* | freebsdelf3.[01]*)
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10799 *) # from 4.6 on, and DragonFly
10800 shlibpath_overrides_runpath=yes
10801 hardcode_into_libs=yes
10803 esac
10806 gnu*)
10807 version_type=linux # correct to gnu/linux during the next big refactor
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10817 haiku*)
10818 version_type=linux # correct to gnu/linux during the next big refactor
10819 need_lib_prefix=no
10820 need_version=no
10821 dynamic_linker="$host_os runtime_loader"
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 shlibpath_var=LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10826 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10827 hardcode_into_libs=yes
10830 hpux9* | hpux10* | hpux11*)
10831 # Give a soname corresponding to the major version so that dld.sl refuses to
10832 # link against other versions.
10833 version_type=sunos
10834 need_lib_prefix=no
10835 need_version=no
10836 case $host_cpu in
10837 ia64*)
10838 shrext_cmds='.so'
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.so"
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 if test "X$HPUX_IA64_MODE" = X32; then
10846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10847 else
10848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852 hppa*64*)
10853 shrext_cmds='.sl'
10854 hardcode_into_libs=yes
10855 dynamic_linker="$host_os dld.sl"
10856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10864 shrext_cmds='.sl'
10865 dynamic_linker="$host_os dld.sl"
10866 shlibpath_var=SHLIB_PATH
10867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10871 esac
10872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10873 postinstall_cmds='chmod 555 $lib'
10874 # or fails outright, so override atomically:
10875 install_override_mode=555
10878 interix[3-9]*)
10879 version_type=linux # correct to gnu/linux during the next big refactor
10880 need_lib_prefix=no
10881 need_version=no
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=no
10887 hardcode_into_libs=yes
10890 irix5* | irix6* | nonstopux*)
10891 case $host_os in
10892 nonstopux*) version_type=nonstopux ;;
10894 if test "$lt_cv_prog_gnu_ld" = yes; then
10895 version_type=linux # correct to gnu/linux during the next big refactor
10896 else
10897 version_type=irix
10898 fi ;;
10899 esac
10900 need_lib_prefix=no
10901 need_version=no
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10904 case $host_os in
10905 irix5* | nonstopux*)
10906 libsuff= shlibsuff=
10909 case $LD in # libtool.m4 will add one of these switches to LD
10910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10911 libsuff= shlibsuff= libmagic=32-bit;;
10912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10913 libsuff=32 shlibsuff=N32 libmagic=N32;;
10914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10916 *) libsuff= shlibsuff= libmagic=never-match;;
10917 esac
10919 esac
10920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10921 shlibpath_overrides_runpath=no
10922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10924 hardcode_into_libs=yes
10927 # No shared lib support for Linux oldld, aout, or coff.
10928 linux*oldld* | linux*aout* | linux*coff*)
10929 dynamic_linker=no
10932 # This must be glibc/ELF.
10933 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10934 version_type=linux # correct to gnu/linux during the next big refactor
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=no
10943 # Some binutils ld are patched to set DT_RUNPATH
10944 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 lt_cv_shlibpath_overrides_runpath=no
10948 save_LDFLAGS=$LDFLAGS
10949 save_libdir=$libdir
10950 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10951 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10956 main ()
10960 return 0;
10962 _ACEOF
10963 if ac_fn_c_try_link "$LINENO"; then :
10964 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10965 lt_cv_shlibpath_overrides_runpath=yes
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LDFLAGS=$save_LDFLAGS
10971 libdir=$save_libdir
10975 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs=yes
10982 # Append ld.so.conf contents to the search path
10983 if test -f /etc/ld.so.conf; then
10984 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10988 # We used to test for /lib/ld.so.1 and disable shared libraries on
10989 # powerpc, because MkLinux only supported shared libraries with the
10990 # GNU dynamic linker. Since this was broken with cross compilers,
10991 # most powerpc-linux boxes support dynamic linking these days and
10992 # people can always --disable-shared, the test was removed, and we
10993 # assume the GNU/Linux dynamic linker is in use.
10994 dynamic_linker='GNU/Linux ld.so'
10997 netbsd*)
10998 version_type=sunos
10999 need_lib_prefix=no
11000 need_version=no
11001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11004 dynamic_linker='NetBSD (a.out) ld.so'
11005 else
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 dynamic_linker='NetBSD ld.elf_so'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 hardcode_into_libs=yes
11015 newsos6)
11016 version_type=linux # correct to gnu/linux during the next big refactor
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11022 *nto* | *qnx*)
11023 version_type=qnx
11024 need_lib_prefix=no
11025 need_version=no
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath=no
11030 hardcode_into_libs=yes
11031 dynamic_linker='ldqnx.so'
11034 openbsd*)
11035 version_type=sunos
11036 sys_lib_dlsearch_path_spec="/usr/lib"
11037 need_lib_prefix=no
11038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11039 case $host_os in
11040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11041 *) need_version=no ;;
11042 esac
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11047 case $host_os in
11048 openbsd2.[89] | openbsd2.[89].*)
11049 shlibpath_overrides_runpath=no
11052 shlibpath_overrides_runpath=yes
11054 esac
11055 else
11056 shlibpath_overrides_runpath=yes
11060 os2*)
11061 libname_spec='$name'
11062 shrext_cmds=".dll"
11063 need_lib_prefix=no
11064 library_names_spec='$libname${shared_ext} $libname.a'
11065 dynamic_linker='OS/2 ld.exe'
11066 shlibpath_var=LIBPATH
11069 osf3* | osf4* | osf5*)
11070 version_type=osf
11071 need_lib_prefix=no
11072 need_version=no
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11080 rdos*)
11081 dynamic_linker=no
11084 solaris*)
11085 version_type=linux # correct to gnu/linux during the next big refactor
11086 need_lib_prefix=no
11087 need_version=no
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11093 # ldd complains unless libraries are executable
11094 postinstall_cmds='chmod +x $lib'
11097 sunos4*)
11098 version_type=sunos
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath=yes
11103 if test "$with_gnu_ld" = yes; then
11104 need_lib_prefix=no
11106 need_version=yes
11109 sysv4 | sysv4.3*)
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 case $host_vendor in
11115 sni)
11116 shlibpath_overrides_runpath=no
11117 need_lib_prefix=no
11118 runpath_var=LD_RUN_PATH
11120 siemens)
11121 need_lib_prefix=no
11123 motorola)
11124 need_lib_prefix=no
11125 need_version=no
11126 shlibpath_overrides_runpath=no
11127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11129 esac
11132 sysv4*MP*)
11133 if test -d /usr/nec ;then
11134 version_type=linux # correct to gnu/linux during the next big refactor
11135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11136 soname_spec='$libname${shared_ext}.$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11142 version_type=freebsd-elf
11143 need_lib_prefix=no
11144 need_version=no
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 hardcode_into_libs=yes
11150 if test "$with_gnu_ld" = yes; then
11151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11152 else
11153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11154 case $host_os in
11155 sco3.2v5*)
11156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11158 esac
11160 sys_lib_dlsearch_path_spec='/usr/lib'
11163 tpf*)
11164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11165 version_type=linux # correct to gnu/linux during the next big refactor
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=no
11171 hardcode_into_libs=yes
11174 uts4*)
11175 version_type=linux # correct to gnu/linux during the next big refactor
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11182 dynamic_linker=no
11184 esac
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11186 $as_echo "$dynamic_linker" >&6; }
11187 test "$dynamic_linker" = no && can_build_shared=no
11189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11190 if test "$GCC" = yes; then
11191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11195 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11198 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11294 hardcode_action=
11295 if test -n "$hardcode_libdir_flag_spec" ||
11296 test -n "$runpath_var" ||
11297 test "X$hardcode_automatic" = "Xyes" ; then
11299 # We can hardcode non-existent directories.
11300 if test "$hardcode_direct" != no &&
11301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11302 # have to relink, otherwise we might link with an installed library
11303 # when we should be linking with a yet-to-be-installed one
11304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11305 test "$hardcode_minus_L" != no; then
11306 # Linking always hardcodes the temporary library directory.
11307 hardcode_action=relink
11308 else
11309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11310 hardcode_action=immediate
11312 else
11313 # We cannot hardcode anything, or else we can only hardcode existing
11314 # directories.
11315 hardcode_action=unsupported
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11318 $as_echo "$hardcode_action" >&6; }
11320 if test "$hardcode_action" = relink ||
11321 test "$inherit_rpath" = yes; then
11322 # Fast installation is not supported
11323 enable_fast_install=no
11324 elif test "$shlibpath_overrides_runpath" = yes ||
11325 test "$enable_shared" = no; then
11326 # Fast installation is not necessary
11327 enable_fast_install=needless
11335 if test "x$enable_dlopen" != xyes; then
11336 enable_dlopen=unknown
11337 enable_dlopen_self=unknown
11338 enable_dlopen_self_static=unknown
11339 else
11340 lt_cv_dlopen=no
11341 lt_cv_dlopen_libs=
11343 case $host_os in
11344 beos*)
11345 lt_cv_dlopen="load_add_on"
11346 lt_cv_dlopen_libs=
11347 lt_cv_dlopen_self=yes
11350 mingw* | pw32* | cegcc*)
11351 lt_cv_dlopen="LoadLibrary"
11352 lt_cv_dlopen_libs=
11355 cygwin*)
11356 lt_cv_dlopen="dlopen"
11357 lt_cv_dlopen_libs=
11360 darwin*)
11361 # if libdl is installed we need to link against it
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11363 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11364 if ${ac_cv_lib_dl_dlopen+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-ldl $LIBS"
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11372 /* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 char dlopen ();
11380 main ()
11382 return dlopen ();
11384 return 0;
11386 _ACEOF
11387 if ac_fn_c_try_link "$LINENO"; then :
11388 ac_cv_lib_dl_dlopen=yes
11389 else
11390 ac_cv_lib_dl_dlopen=no
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11397 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11398 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11400 else
11402 lt_cv_dlopen="dyld"
11403 lt_cv_dlopen_libs=
11404 lt_cv_dlopen_self=yes
11411 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11412 if test "x$ac_cv_func_shl_load" = xyes; then :
11413 lt_cv_dlopen="shl_load"
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11416 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11417 if ${ac_cv_lib_dld_shl_load+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 ac_check_lib_save_LIBS=$LIBS
11421 LIBS="-ldld $LIBS"
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char shl_load ();
11433 main ()
11435 return shl_load ();
11437 return 0;
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dld_shl_load=yes
11442 else
11443 ac_cv_lib_dld_shl_load=no
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11450 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11451 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11452 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11453 else
11454 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11455 if test "x$ac_cv_func_dlopen" = xyes; then :
11456 lt_cv_dlopen="dlopen"
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460 if ${ac_cv_lib_dl_dlopen+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldl $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char dlopen ();
11476 main ()
11478 return dlopen ();
11480 return 0;
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dl_dlopen=yes
11485 else
11486 ac_cv_lib_dl_dlopen=no
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11498 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11499 if ${ac_cv_lib_svld_dlopen+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 ac_check_lib_save_LIBS=$LIBS
11503 LIBS="-lsvld $LIBS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 char dlopen ();
11515 main ()
11517 return dlopen ();
11519 return 0;
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11523 ac_cv_lib_svld_dlopen=yes
11524 else
11525 ac_cv_lib_svld_dlopen=no
11527 rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 LIBS=$ac_check_lib_save_LIBS
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11532 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11533 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11537 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11538 if ${ac_cv_lib_dld_dld_link+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-ldld $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char dld_link ();
11554 main ()
11556 return dld_link ();
11558 return 0;
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_dld_dld_link=yes
11563 else
11564 ac_cv_lib_dld_dld_link=no
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11571 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11572 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11592 esac
11594 if test "x$lt_cv_dlopen" != xno; then
11595 enable_dlopen=yes
11596 else
11597 enable_dlopen=no
11600 case $lt_cv_dlopen in
11601 dlopen)
11602 save_CPPFLAGS="$CPPFLAGS"
11603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11605 save_LDFLAGS="$LDFLAGS"
11606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11608 save_LIBS="$LIBS"
11609 LIBS="$lt_cv_dlopen_libs $LIBS"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11612 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11613 if ${lt_cv_dlopen_self+:} false; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 if test "$cross_compiling" = yes; then :
11617 lt_cv_dlopen_self=cross
11618 else
11619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11620 lt_status=$lt_dlunknown
11621 cat > conftest.$ac_ext <<_LT_EOF
11622 #line $LINENO "configure"
11623 #include "confdefs.h"
11625 #if HAVE_DLFCN_H
11626 #include <dlfcn.h>
11627 #endif
11629 #include <stdio.h>
11631 #ifdef RTLD_GLOBAL
11632 # define LT_DLGLOBAL RTLD_GLOBAL
11633 #else
11634 # ifdef DL_GLOBAL
11635 # define LT_DLGLOBAL DL_GLOBAL
11636 # else
11637 # define LT_DLGLOBAL 0
11638 # endif
11639 #endif
11641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11642 find out it does not work in some platform. */
11643 #ifndef LT_DLLAZY_OR_NOW
11644 # ifdef RTLD_LAZY
11645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11646 # else
11647 # ifdef DL_LAZY
11648 # define LT_DLLAZY_OR_NOW DL_LAZY
11649 # else
11650 # ifdef RTLD_NOW
11651 # define LT_DLLAZY_OR_NOW RTLD_NOW
11652 # else
11653 # ifdef DL_NOW
11654 # define LT_DLLAZY_OR_NOW DL_NOW
11655 # else
11656 # define LT_DLLAZY_OR_NOW 0
11657 # endif
11658 # endif
11659 # endif
11660 # endif
11661 #endif
11663 /* When -fvisbility=hidden is used, assume the code has been annotated
11664 correspondingly for the symbols needed. */
11665 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11666 int fnord () __attribute__((visibility("default")));
11667 #endif
11669 int fnord () { return 42; }
11670 int main ()
11672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11673 int status = $lt_dlunknown;
11675 if (self)
11677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11678 else
11680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11681 else puts (dlerror ());
11683 /* dlclose (self); */
11685 else
11686 puts (dlerror ());
11688 return status;
11690 _LT_EOF
11691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692 (eval $ac_link) 2>&5
11693 ac_status=$?
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11696 (./conftest; exit; ) >&5 2>/dev/null
11697 lt_status=$?
11698 case x$lt_status in
11699 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11700 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11701 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11702 esac
11703 else :
11704 # compilation failed
11705 lt_cv_dlopen_self=no
11708 rm -fr conftest*
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11713 $as_echo "$lt_cv_dlopen_self" >&6; }
11715 if test "x$lt_cv_dlopen_self" = xyes; then
11716 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11718 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self_static+:} false; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if test "$cross_compiling" = yes; then :
11723 lt_cv_dlopen_self_static=cross
11724 else
11725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726 lt_status=$lt_dlunknown
11727 cat > conftest.$ac_ext <<_LT_EOF
11728 #line $LINENO "configure"
11729 #include "confdefs.h"
11731 #if HAVE_DLFCN_H
11732 #include <dlfcn.h>
11733 #endif
11735 #include <stdio.h>
11737 #ifdef RTLD_GLOBAL
11738 # define LT_DLGLOBAL RTLD_GLOBAL
11739 #else
11740 # ifdef DL_GLOBAL
11741 # define LT_DLGLOBAL DL_GLOBAL
11742 # else
11743 # define LT_DLGLOBAL 0
11744 # endif
11745 #endif
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748 find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11750 # ifdef RTLD_LAZY
11751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11752 # else
11753 # ifdef DL_LAZY
11754 # define LT_DLLAZY_OR_NOW DL_LAZY
11755 # else
11756 # ifdef RTLD_NOW
11757 # define LT_DLLAZY_OR_NOW RTLD_NOW
11758 # else
11759 # ifdef DL_NOW
11760 # define LT_DLLAZY_OR_NOW DL_NOW
11761 # else
11762 # define LT_DLLAZY_OR_NOW 0
11763 # endif
11764 # endif
11765 # endif
11766 # endif
11767 #endif
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770 correspondingly for the symbols needed. */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 int fnord () __attribute__((visibility("default")));
11773 #endif
11775 int fnord () { return 42; }
11776 int main ()
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11781 if (self)
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11784 else
11786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 else puts (dlerror ());
11789 /* dlclose (self); */
11791 else
11792 puts (dlerror ());
11794 return status;
11796 _LT_EOF
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798 (eval $ac_link) 2>&5
11799 ac_status=$?
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) >&5 2>/dev/null
11803 lt_status=$?
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11807 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11808 esac
11809 else :
11810 # compilation failed
11811 lt_cv_dlopen_self_static=no
11814 rm -fr conftest*
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11819 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11822 CPPFLAGS="$save_CPPFLAGS"
11823 LDFLAGS="$save_LDFLAGS"
11824 LIBS="$save_LIBS"
11826 esac
11828 case $lt_cv_dlopen_self in
11829 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11830 *) enable_dlopen_self=unknown ;;
11831 esac
11833 case $lt_cv_dlopen_self_static in
11834 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11835 *) enable_dlopen_self_static=unknown ;;
11836 esac
11855 striplib=
11856 old_striplib=
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11858 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11859 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11860 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11861 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11864 else
11865 # FIXME - insert some real tests, host_os isn't really good enough
11866 case $host_os in
11867 darwin*)
11868 if test -n "$STRIP" ; then
11869 striplib="$STRIP -x"
11870 old_striplib="$STRIP -S"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11882 esac
11896 # Report which library types will actually be built
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11898 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11900 $as_echo "$can_build_shared" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11903 $as_echo_n "checking whether to build shared libraries... " >&6; }
11904 test "$can_build_shared" = "no" && enable_shared=no
11906 # On AIX, shared libraries and static libraries use the same namespace, and
11907 # are all built from PIC.
11908 case $host_os in
11909 aix3*)
11910 test "$enable_shared" = yes && enable_static=no
11911 if test -n "$RANLIB"; then
11912 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11913 postinstall_cmds='$RANLIB $lib'
11917 aix[4-9]*)
11918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11919 test "$enable_shared" = yes && enable_static=no
11922 esac
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11924 $as_echo "$enable_shared" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11927 $as_echo_n "checking whether to build static libraries... " >&6; }
11928 # Make sure either enable_shared or enable_static is yes.
11929 test "$enable_shared" = yes || enable_static=yes
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11931 $as_echo "$enable_static" >&6; }
11937 ac_ext=c
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943 CC="$lt_save_CC"
11959 ac_config_commands="$ac_config_commands libtool"
11964 # Only expand once:
11968 # Checks for header files.
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11970 $as_echo_n "checking for ANSI C header files... " >&6; }
11971 if ${ac_cv_header_stdc+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #include <stdlib.h>
11977 #include <stdarg.h>
11978 #include <string.h>
11979 #include <float.h>
11982 main ()
11986 return 0;
11988 _ACEOF
11989 if ac_fn_c_try_compile "$LINENO"; then :
11990 ac_cv_header_stdc=yes
11991 else
11992 ac_cv_header_stdc=no
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 if test $ac_cv_header_stdc = yes; then
11997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 #include <string.h>
12002 _ACEOF
12003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12004 $EGREP "memchr" >/dev/null 2>&1; then :
12006 else
12007 ac_cv_header_stdc=no
12009 rm -f conftest*
12013 if test $ac_cv_header_stdc = yes; then
12014 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 #include <stdlib.h>
12019 _ACEOF
12020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12021 $EGREP "free" >/dev/null 2>&1; then :
12023 else
12024 ac_cv_header_stdc=no
12026 rm -f conftest*
12030 if test $ac_cv_header_stdc = yes; then
12031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12032 if test "$cross_compiling" = yes; then :
12034 else
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 #include <ctype.h>
12038 #include <stdlib.h>
12039 #if ((' ' & 0x0FF) == 0x020)
12040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12042 #else
12043 # define ISLOWER(c) \
12044 (('a' <= (c) && (c) <= 'i') \
12045 || ('j' <= (c) && (c) <= 'r') \
12046 || ('s' <= (c) && (c) <= 'z'))
12047 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12048 #endif
12050 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12052 main ()
12054 int i;
12055 for (i = 0; i < 256; i++)
12056 if (XOR (islower (i), ISLOWER (i))
12057 || toupper (i) != TOUPPER (i))
12058 return 2;
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_run "$LINENO"; then :
12064 else
12065 ac_cv_header_stdc=no
12067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12068 conftest.$ac_objext conftest.beam conftest.$ac_ext
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12074 $as_echo "$ac_cv_header_stdc" >&6; }
12075 if test $ac_cv_header_stdc = yes; then
12077 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12081 for ac_header in malloc.h stdlib.h string.h strings.h
12082 do :
12083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12086 cat >>confdefs.h <<_ACEOF
12087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12088 _ACEOF
12092 done
12095 # Checks for typedefs, structures, and compiler characteristics.
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12097 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12098 if ${ac_cv_c_const+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12105 main ()
12108 #ifndef __cplusplus
12109 /* Ultrix mips cc rejects this sort of thing. */
12110 typedef int charset[2];
12111 const charset cs = { 0, 0 };
12112 /* SunOS 4.1.1 cc rejects this. */
12113 char const *const *pcpcc;
12114 char **ppc;
12115 /* NEC SVR4.0.2 mips cc rejects this. */
12116 struct point {int x, y;};
12117 static struct point const zero = {0,0};
12118 /* AIX XL C 1.02.0.0 rejects this.
12119 It does not let you subtract one const X* pointer from another in
12120 an arm of an if-expression whose if-part is not a constant
12121 expression */
12122 const char *g = "string";
12123 pcpcc = &g + (g ? g-g : 0);
12124 /* HPUX 7.0 cc rejects these. */
12125 ++pcpcc;
12126 ppc = (char**) pcpcc;
12127 pcpcc = (char const *const *) ppc;
12128 { /* SCO 3.2v4 cc rejects this sort of thing. */
12129 char tx;
12130 char *t = &tx;
12131 char const *s = 0 ? (char *) 0 : (char const *) 0;
12133 *t++ = 0;
12134 if (s) return 0;
12136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12137 int x[] = {25, 17};
12138 const int *foo = &x[0];
12139 ++foo;
12141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12142 typedef const int *iptr;
12143 iptr p = 0;
12144 ++p;
12146 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12148 struct s { int j; const int *ap[3]; } bx;
12149 struct s *b = &bx; b->j = 5;
12151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12152 const int foo = 10;
12153 if (!foo) return 0;
12155 return !cs[0] && !zero.x;
12156 #endif
12159 return 0;
12161 _ACEOF
12162 if ac_fn_c_try_compile "$LINENO"; then :
12163 ac_cv_c_const=yes
12164 else
12165 ac_cv_c_const=no
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12170 $as_echo "$ac_cv_c_const" >&6; }
12171 if test $ac_cv_c_const = no; then
12173 $as_echo "#define const /**/" >>confdefs.h
12177 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12178 if test "x$ac_cv_type_size_t" = xyes; then :
12180 else
12182 cat >>confdefs.h <<_ACEOF
12183 #define size_t unsigned int
12184 _ACEOF
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12189 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12190 if ${ac_cv_struct_tm+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 #include <sys/types.h>
12196 #include <time.h>
12199 main ()
12201 struct tm tm;
12202 int *p = &tm.tm_sec;
12203 return !p;
12205 return 0;
12207 _ACEOF
12208 if ac_fn_c_try_compile "$LINENO"; then :
12209 ac_cv_struct_tm=time.h
12210 else
12211 ac_cv_struct_tm=sys/time.h
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12216 $as_echo "$ac_cv_struct_tm" >&6; }
12217 if test $ac_cv_struct_tm = sys/time.h; then
12219 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12224 # Checks for library functions.
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12226 $as_echo_n "checking for working strtod... " >&6; }
12227 if ${ac_cv_func_strtod+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test "$cross_compiling" = yes; then :
12231 ac_cv_func_strtod=no
12232 else
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12236 $ac_includes_default
12237 #ifndef strtod
12238 double strtod ();
12239 #endif
12241 main()
12244 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12245 char *string = " +69";
12246 char *term;
12247 double value;
12248 value = strtod (string, &term);
12249 if (value != 69 || term != (string + 4))
12250 return 1;
12254 /* Under Solaris 2.4, strtod returns the wrong value for the
12255 terminating character under some conditions. */
12256 char *string = "NaN";
12257 char *term;
12258 strtod (string, &term);
12259 if (term != string && *(term - 1) == 0)
12260 return 1;
12262 return 0;
12265 _ACEOF
12266 if ac_fn_c_try_run "$LINENO"; then :
12267 ac_cv_func_strtod=yes
12268 else
12269 ac_cv_func_strtod=no
12271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12272 conftest.$ac_objext conftest.beam conftest.$ac_ext
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12277 $as_echo "$ac_cv_func_strtod" >&6; }
12278 if test $ac_cv_func_strtod = no; then
12279 case " $LIBOBJS " in
12280 *" strtod.$ac_objext "* ) ;;
12281 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12283 esac
12285 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12286 if test "x$ac_cv_func_pow" = xyes; then :
12290 if test $ac_cv_func_pow = no; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12292 $as_echo_n "checking for pow in -lm... " >&6; }
12293 if ${ac_cv_lib_m_pow+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-lm $LIBS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char pow ();
12309 main ()
12311 return pow ();
12313 return 0;
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"; then :
12317 ac_cv_lib_m_pow=yes
12318 else
12319 ac_cv_lib_m_pow=no
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 LIBS=$ac_check_lib_save_LIBS
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12326 $as_echo "$ac_cv_lib_m_pow" >&6; }
12327 if test "x$ac_cv_lib_m_pow" = xyes; then :
12328 POW_LIB=-lm
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12331 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12338 for ac_func in memset
12339 do :
12340 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12341 if test "x$ac_cv_func_memset" = xyes; then :
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_MEMSET 1
12344 _ACEOF
12346 else
12347 as_fn_error $? "memset not found in libc" "$LINENO" 5
12349 done
12351 for ac_func in pow
12352 do :
12353 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12354 if test "x$ac_cv_func_pow" = xyes; then :
12355 cat >>confdefs.h <<_ACEOF
12356 #define HAVE_POW 1
12357 _ACEOF
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12361 $as_echo_n "checking for pow in -lm... " >&6; }
12362 if ${ac_cv_lib_m_pow+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 ac_check_lib_save_LIBS=$LIBS
12366 LIBS="-lm $LIBS"
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char pow ();
12378 main ()
12380 return pow ();
12382 return 0;
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 ac_cv_lib_m_pow=yes
12387 else
12388 ac_cv_lib_m_pow=no
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12395 $as_echo "$ac_cv_lib_m_pow" >&6; }
12396 if test "x$ac_cv_lib_m_pow" = xyes; then :
12397 cat >>confdefs.h <<_ACEOF
12398 #define HAVE_LIBM 1
12399 _ACEOF
12401 LIBS="-lm $LIBS"
12403 else
12404 as_fn_error $? "cannot find pow" "$LINENO" 5
12408 done
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12411 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12412 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-lz $LIBS"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12420 /* Override any GCC internal prototype to avoid an error.
12421 Use char because int might match the return type of a GCC
12422 builtin and then its argument prototype would still apply. */
12423 #ifdef __cplusplus
12424 extern "C"
12425 #endif
12426 char zlibVersion ();
12428 main ()
12430 return zlibVersion ();
12432 return 0;
12434 _ACEOF
12435 if ac_fn_c_try_link "$LINENO"; then :
12436 ac_cv_lib_z_zlibVersion=yes
12437 else
12438 ac_cv_lib_z_zlibVersion=no
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12445 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12446 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_LIBZ 1
12449 _ACEOF
12451 LIBS="-lz $LIBS"
12453 else
12454 as_fn_error $? "zlib not installed" "$LINENO" 5
12458 case $host_os in
12459 aix*)
12460 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG -D_ALL_SOURCE;;
12462 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG;;
12463 esac
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
12465 $as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468 #include "$srcdir/pnggccrd.c"
12470 main ()
12472 return 0;
12474 return 0;
12476 _ACEOF
12477 if ac_fn_c_try_compile "$LINENO"; then :
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12479 $as_echo "yes" >&6; }
12480 LIBPNG_NO_MMX=""
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12492 $as_echo_n "checking if libraries can be versioned... " >&6; }
12493 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12494 if test "$GLD"; then
12495 have_ld_version_script=yes
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12497 $as_echo "yes" >&6; }
12498 else
12499 have_ld_version_script=no
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12503 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12505 if test "$have_ld_version_script" = "yes"; then
12506 HAVE_LD_VERSION_SCRIPT_TRUE=
12507 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12508 else
12509 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12510 HAVE_LD_VERSION_SCRIPT_FALSE=
12514 if test "$have_ld_version_script" = "yes"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12516 $as_echo_n "checking for symbol prefix... " >&6; }
12517 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12518 | ${CPP-${CC-gcc} -E} - 2>&1 \
12519 | ${EGREP-grep} "^PREFIX=" \
12520 | ${SED-sed} "s:^PREFIX=::"`
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12523 $as_echo "$SYMBOL_PREFIX" >&6; }
12526 # Substitutions for .in files
12532 # Additional arguments (and substitutions)
12533 # Allow the pkg-config directory to be set
12535 # Check whether --with-pkgconfigdir was given.
12536 if test "${with_pkgconfigdir+set}" = set; then :
12537 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12538 else
12539 pkgconfigdir='${libdir}/pkgconfig'
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12545 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12547 # Make the *-config binary config scripts optional
12549 # Check whether --with-binconfigs was given.
12550 if test "${with_binconfigs+set}" = set; then :
12551 withval=$with_binconfigs; if test "${withval}" = no; then
12552 binconfigs=
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12554 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12555 else
12556 binconfigs='${binconfigs}'
12558 else
12559 binconfigs='${binconfigs}'
12564 # Allow the old version number library, libpng.so, to be removed from
12565 # the build
12567 # Check whether --with-libpng-compat was given.
12568 if test "${with_libpng_compat+set}" = set; then :
12569 withval=$with_libpng_compat; if test "${withval}" = no; then
12570 compatlib=
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng.so will not be built" >&5
12572 $as_echo "$as_me: libpng.so will not be built" >&6;}
12573 else
12574 compatlib=libpng.la
12576 else
12577 compatlib=libpng.la
12582 # Config files, substituting as above
12583 ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
12585 ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
12588 cat >confcache <<\_ACEOF
12589 # This file is a shell script that caches the results of configure
12590 # tests run on this system so they can be shared between configure
12591 # scripts and configure runs, see configure's option --config-cache.
12592 # It is not useful on other systems. If it contains results you don't
12593 # want to keep, you may remove or edit it.
12595 # config.status only pays attention to the cache file if you give it
12596 # the --recheck option to rerun configure.
12598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12600 # following values.
12602 _ACEOF
12604 # The following way of writing the cache mishandles newlines in values,
12605 # but we know of no workaround that is simple, portable, and efficient.
12606 # So, we kill variables containing newlines.
12607 # Ultrix sh set writes to stderr and can't be redirected directly,
12608 # and sets the high bit in the cache file unless we assign to the vars.
12610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12611 eval ac_val=\$$ac_var
12612 case $ac_val in #(
12613 *${as_nl}*)
12614 case $ac_var in #(
12615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12617 esac
12618 case $ac_var in #(
12619 _ | IFS | as_nl) ;; #(
12620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12621 *) { eval $ac_var=; unset $ac_var;} ;;
12622 esac ;;
12623 esac
12624 done
12626 (set) 2>&1 |
12627 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12628 *${as_nl}ac_space=\ *)
12629 # `set' does not quote correctly, so add quotes: double-quote
12630 # substitution turns \\\\ into \\, and sed turns \\ into \.
12631 sed -n \
12632 "s/'/'\\\\''/g;
12633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12634 ;; #(
12636 # `set' quotes correctly as required by POSIX, so do not add quotes.
12637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12639 esac |
12640 sort
12642 sed '
12643 /^ac_cv_env_/b end
12644 t clear
12645 :clear
12646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12647 t end
12648 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12649 :end' >>confcache
12650 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12651 if test -w "$cache_file"; then
12652 if test "x$cache_file" != "x/dev/null"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12654 $as_echo "$as_me: updating cache $cache_file" >&6;}
12655 if test ! -f "$cache_file" || test -h "$cache_file"; then
12656 cat confcache >"$cache_file"
12657 else
12658 case $cache_file in #(
12659 */* | ?:*)
12660 mv -f confcache "$cache_file"$$ &&
12661 mv -f "$cache_file"$$ "$cache_file" ;; #(
12663 mv -f confcache "$cache_file" ;;
12664 esac
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12669 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12672 rm -f confcache
12674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12675 # Let make expand exec_prefix.
12676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12678 DEFS=-DHAVE_CONFIG_H
12680 ac_libobjs=
12681 ac_ltlibobjs=
12683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12684 # 1. Remove the extension, and $U if already installed.
12685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12688 # will be set to the directory where LIBOBJS objects are built.
12689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12691 done
12692 LIBOBJS=$ac_libobjs
12694 LTLIBOBJS=$ac_ltlibobjs
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12698 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12699 if test -n "$am_sleep_pid"; then
12700 # Hide warnings about reused PIDs.
12701 wait $am_sleep_pid 2>/dev/null
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12704 $as_echo "done" >&6; }
12705 if test -n "$EXEEXT"; then
12706 am__EXEEXT_TRUE=
12707 am__EXEEXT_FALSE='#'
12708 else
12709 am__EXEEXT_TRUE='#'
12710 am__EXEEXT_FALSE=
12713 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12714 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12718 as_fn_error $? "conditional \"AMDEP\" was never defined.
12719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12722 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12725 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12726 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12730 : "${CONFIG_STATUS=./config.status}"
12731 ac_write_fail=0
12732 ac_clean_files_save=$ac_clean_files
12733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12736 as_write_fail=0
12737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12738 #! $SHELL
12739 # Generated by $as_me.
12740 # Run this file to recreate the current configuration.
12741 # Compiler output produced by configure, useful for debugging
12742 # configure, is in config.log if it exists.
12744 debug=false
12745 ac_cs_recheck=false
12746 ac_cs_silent=false
12748 SHELL=\${CONFIG_SHELL-$SHELL}
12749 export SHELL
12750 _ASEOF
12751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12752 ## -------------------- ##
12753 ## M4sh Initialization. ##
12754 ## -------------------- ##
12756 # Be more Bourne compatible
12757 DUALCASE=1; export DUALCASE # for MKS sh
12758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12759 emulate sh
12760 NULLCMD=:
12761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12762 # is contrary to our usage. Disable this feature.
12763 alias -g '${1+"$@"}'='"$@"'
12764 setopt NO_GLOB_SUBST
12765 else
12766 case `(set -o) 2>/dev/null` in #(
12767 *posix*) :
12768 set -o posix ;; #(
12769 *) :
12771 esac
12775 as_nl='
12777 export as_nl
12778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12782 # Prefer a ksh shell builtin over an external printf program on Solaris,
12783 # but without wasting forks for bash or zsh.
12784 if test -z "$BASH_VERSION$ZSH_VERSION" \
12785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12786 as_echo='print -r --'
12787 as_echo_n='print -rn --'
12788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12789 as_echo='printf %s\n'
12790 as_echo_n='printf %s'
12791 else
12792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12793 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12794 as_echo_n='/usr/ucb/echo -n'
12795 else
12796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12797 as_echo_n_body='eval
12798 arg=$1;
12799 case $arg in #(
12800 *"$as_nl"*)
12801 expr "X$arg" : "X\\(.*\\)$as_nl";
12802 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12803 esac;
12804 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12806 export as_echo_n_body
12807 as_echo_n='sh -c $as_echo_n_body as_echo'
12809 export as_echo_body
12810 as_echo='sh -c $as_echo_body as_echo'
12813 # The user is always right.
12814 if test "${PATH_SEPARATOR+set}" != set; then
12815 PATH_SEPARATOR=:
12816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12818 PATH_SEPARATOR=';'
12823 # IFS
12824 # We need space, tab and new line, in precisely that order. Quoting is
12825 # there to prevent editors from complaining about space-tab.
12826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12827 # splitting by setting IFS to empty value.)
12828 IFS=" "" $as_nl"
12830 # Find who we are. Look in the path if we contain no directory separator.
12831 as_myself=
12832 case $0 in #((
12833 *[\\/]* ) as_myself=$0 ;;
12834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
12839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12840 done
12841 IFS=$as_save_IFS
12844 esac
12845 # We did not find ourselves, most probably we were run as `sh COMMAND'
12846 # in which case we are not to be found in the path.
12847 if test "x$as_myself" = x; then
12848 as_myself=$0
12850 if test ! -f "$as_myself"; then
12851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12852 exit 1
12855 # Unset variables that we do not need and which cause bugs (e.g. in
12856 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12857 # suppresses any "Segmentation fault" message there. '((' could
12858 # trigger a bug in pdksh 5.2.14.
12859 for as_var in BASH_ENV ENV MAIL MAILPATH
12860 do eval test x\${$as_var+set} = xset \
12861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12862 done
12863 PS1='$ '
12864 PS2='> '
12865 PS4='+ '
12867 # NLS nuisances.
12868 LC_ALL=C
12869 export LC_ALL
12870 LANGUAGE=C
12871 export LANGUAGE
12873 # CDPATH.
12874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12877 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12878 # ----------------------------------------
12879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12881 # script with STATUS, using 1 if that was 0.
12882 as_fn_error ()
12884 as_status=$1; test $as_status -eq 0 && as_status=1
12885 if test "$4"; then
12886 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12889 $as_echo "$as_me: error: $2" >&2
12890 as_fn_exit $as_status
12891 } # as_fn_error
12894 # as_fn_set_status STATUS
12895 # -----------------------
12896 # Set $? to STATUS, without forking.
12897 as_fn_set_status ()
12899 return $1
12900 } # as_fn_set_status
12902 # as_fn_exit STATUS
12903 # -----------------
12904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12905 as_fn_exit ()
12907 set +e
12908 as_fn_set_status $1
12909 exit $1
12910 } # as_fn_exit
12912 # as_fn_unset VAR
12913 # ---------------
12914 # Portably unset VAR.
12915 as_fn_unset ()
12917 { eval $1=; unset $1;}
12919 as_unset=as_fn_unset
12920 # as_fn_append VAR VALUE
12921 # ----------------------
12922 # Append the text in VALUE to the end of the definition contained in VAR. Take
12923 # advantage of any shell optimizations that allow amortized linear growth over
12924 # repeated appends, instead of the typical quadratic growth present in naive
12925 # implementations.
12926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12927 eval 'as_fn_append ()
12929 eval $1+=\$2
12931 else
12932 as_fn_append ()
12934 eval $1=\$$1\$2
12936 fi # as_fn_append
12938 # as_fn_arith ARG...
12939 # ------------------
12940 # Perform arithmetic evaluation on the ARGs, and store the result in the
12941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12942 # must be portable across $(()) and expr.
12943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12944 eval 'as_fn_arith ()
12946 as_val=$(( $* ))
12948 else
12949 as_fn_arith ()
12951 as_val=`expr "$@" || test $? -eq 1`
12953 fi # as_fn_arith
12956 if expr a : '\(a\)' >/dev/null 2>&1 &&
12957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12958 as_expr=expr
12959 else
12960 as_expr=false
12963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12964 as_basename=basename
12965 else
12966 as_basename=false
12969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12970 as_dirname=dirname
12971 else
12972 as_dirname=false
12975 as_me=`$as_basename -- "$0" ||
12976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12977 X"$0" : 'X\(//\)$' \| \
12978 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12979 $as_echo X/"$0" |
12980 sed '/^.*\/\([^/][^/]*\)\/*$/{
12981 s//\1/
12984 /^X\/\(\/\/\)$/{
12985 s//\1/
12988 /^X\/\(\/\).*/{
12989 s//\1/
12992 s/.*/./; q'`
12994 # Avoid depending upon Character Ranges.
12995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12998 as_cr_digits='0123456789'
12999 as_cr_alnum=$as_cr_Letters$as_cr_digits
13001 ECHO_C= ECHO_N= ECHO_T=
13002 case `echo -n x` in #(((((
13003 -n*)
13004 case `echo 'xy\c'` in
13005 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13006 xy) ECHO_C='\c';;
13007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13008 ECHO_T=' ';;
13009 esac;;
13011 ECHO_N='-n';;
13012 esac
13014 rm -f conf$$ conf$$.exe conf$$.file
13015 if test -d conf$$.dir; then
13016 rm -f conf$$.dir/conf$$.file
13017 else
13018 rm -f conf$$.dir
13019 mkdir conf$$.dir 2>/dev/null
13021 if (echo >conf$$.file) 2>/dev/null; then
13022 if ln -s conf$$.file conf$$ 2>/dev/null; then
13023 as_ln_s='ln -s'
13024 # ... but there are two gotchas:
13025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13027 # In both cases, we have to default to `cp -pR'.
13028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13029 as_ln_s='cp -pR'
13030 elif ln conf$$.file conf$$ 2>/dev/null; then
13031 as_ln_s=ln
13032 else
13033 as_ln_s='cp -pR'
13035 else
13036 as_ln_s='cp -pR'
13038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13039 rmdir conf$$.dir 2>/dev/null
13042 # as_fn_mkdir_p
13043 # -------------
13044 # Create "$as_dir" as a directory, including parents if necessary.
13045 as_fn_mkdir_p ()
13048 case $as_dir in #(
13049 -*) as_dir=./$as_dir;;
13050 esac
13051 test -d "$as_dir" || eval $as_mkdir_p || {
13052 as_dirs=
13053 while :; do
13054 case $as_dir in #(
13055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13056 *) as_qdir=$as_dir;;
13057 esac
13058 as_dirs="'$as_qdir' $as_dirs"
13059 as_dir=`$as_dirname -- "$as_dir" ||
13060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13061 X"$as_dir" : 'X\(//\)[^/]' \| \
13062 X"$as_dir" : 'X\(//\)$' \| \
13063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13064 $as_echo X"$as_dir" |
13065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13066 s//\1/
13069 /^X\(\/\/\)[^/].*/{
13070 s//\1/
13073 /^X\(\/\/\)$/{
13074 s//\1/
13077 /^X\(\/\).*/{
13078 s//\1/
13081 s/.*/./; q'`
13082 test -d "$as_dir" && break
13083 done
13084 test -z "$as_dirs" || eval "mkdir $as_dirs"
13085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13088 } # as_fn_mkdir_p
13089 if mkdir -p . 2>/dev/null; then
13090 as_mkdir_p='mkdir -p "$as_dir"'
13091 else
13092 test -d ./-p && rmdir ./-p
13093 as_mkdir_p=false
13097 # as_fn_executable_p FILE
13098 # -----------------------
13099 # Test if FILE is an executable regular file.
13100 as_fn_executable_p ()
13102 test -f "$1" && test -x "$1"
13103 } # as_fn_executable_p
13104 as_test_x='test -x'
13105 as_executable_p=as_fn_executable_p
13107 # Sed expression to map a string onto a valid CPP name.
13108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13110 # Sed expression to map a string onto a valid variable name.
13111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13114 exec 6>&1
13115 ## ----------------------------------- ##
13116 ## Main body of $CONFIG_STATUS script. ##
13117 ## ----------------------------------- ##
13118 _ASEOF
13119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13122 # Save the log message, to keep $0 and so on meaningful, and to
13123 # report actual input values of CONFIG_FILES etc. instead of their
13124 # values after options handling.
13125 ac_log="
13126 This file was extended by libpng $as_me 1.2.51, which was
13127 generated by GNU Autoconf 2.69. Invocation command line was
13129 CONFIG_FILES = $CONFIG_FILES
13130 CONFIG_HEADERS = $CONFIG_HEADERS
13131 CONFIG_LINKS = $CONFIG_LINKS
13132 CONFIG_COMMANDS = $CONFIG_COMMANDS
13133 $ $0 $@
13135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13138 _ACEOF
13140 case $ac_config_files in *"
13141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13142 esac
13144 case $ac_config_headers in *"
13145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13146 esac
13149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150 # Files that config.status was made for.
13151 config_files="$ac_config_files"
13152 config_headers="$ac_config_headers"
13153 config_commands="$ac_config_commands"
13155 _ACEOF
13157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13158 ac_cs_usage="\
13159 \`$as_me' instantiates files and other configuration actions
13160 from templates according to the current configuration. Unless the files
13161 and actions are specified as TAGs, all are instantiated by default.
13163 Usage: $0 [OPTION]... [TAG]...
13165 -h, --help print this help, then exit
13166 -V, --version print version number and configuration settings, then exit
13167 --config print configuration, then exit
13168 -q, --quiet, --silent
13169 do not print progress messages
13170 -d, --debug don't remove temporary files
13171 --recheck update $as_me by reconfiguring in the same conditions
13172 --file=FILE[:TEMPLATE]
13173 instantiate the configuration file FILE
13174 --header=FILE[:TEMPLATE]
13175 instantiate the configuration header FILE
13177 Configuration files:
13178 $config_files
13180 Configuration headers:
13181 $config_headers
13183 Configuration commands:
13184 $config_commands
13186 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13188 _ACEOF
13189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13191 ac_cs_version="\\
13192 libpng config.status 1.2.51
13193 configured by $0, generated by GNU Autoconf 2.69,
13194 with options \\"\$ac_cs_config\\"
13196 Copyright (C) 2012 Free Software Foundation, Inc.
13197 This config.status script is free software; the Free Software Foundation
13198 gives unlimited permission to copy, distribute and modify it."
13200 ac_pwd='$ac_pwd'
13201 srcdir='$srcdir'
13202 INSTALL='$INSTALL'
13203 MKDIR_P='$MKDIR_P'
13204 AWK='$AWK'
13205 test -n "\$AWK" || AWK=awk
13206 _ACEOF
13208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209 # The default lists apply if the user does not specify any file.
13210 ac_need_defaults=:
13211 while test $# != 0
13213 case $1 in
13214 --*=?*)
13215 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13217 ac_shift=:
13219 --*=)
13220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13221 ac_optarg=
13222 ac_shift=:
13225 ac_option=$1
13226 ac_optarg=$2
13227 ac_shift=shift
13229 esac
13231 case $ac_option in
13232 # Handling of the options.
13233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13234 ac_cs_recheck=: ;;
13235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13236 $as_echo "$ac_cs_version"; exit ;;
13237 --config | --confi | --conf | --con | --co | --c )
13238 $as_echo "$ac_cs_config"; exit ;;
13239 --debug | --debu | --deb | --de | --d | -d )
13240 debug=: ;;
13241 --file | --fil | --fi | --f )
13242 $ac_shift
13243 case $ac_optarg in
13244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13245 '') as_fn_error $? "missing file argument" ;;
13246 esac
13247 as_fn_append CONFIG_FILES " '$ac_optarg'"
13248 ac_need_defaults=false;;
13249 --header | --heade | --head | --hea )
13250 $ac_shift
13251 case $ac_optarg in
13252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13253 esac
13254 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13255 ac_need_defaults=false;;
13256 --he | --h)
13257 # Conflict between --help and --header
13258 as_fn_error $? "ambiguous option: \`$1'
13259 Try \`$0 --help' for more information.";;
13260 --help | --hel | -h )
13261 $as_echo "$ac_cs_usage"; exit ;;
13262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13263 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13264 ac_cs_silent=: ;;
13266 # This is an error.
13267 -*) as_fn_error $? "unrecognized option: \`$1'
13268 Try \`$0 --help' for more information." ;;
13270 *) as_fn_append ac_config_targets " $1"
13271 ac_need_defaults=false ;;
13273 esac
13274 shift
13275 done
13277 ac_configure_extra_args=
13279 if $ac_cs_silent; then
13280 exec 6>/dev/null
13281 ac_configure_extra_args="$ac_configure_extra_args --silent"
13284 _ACEOF
13285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13286 if \$ac_cs_recheck; then
13287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13288 shift
13289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13290 CONFIG_SHELL='$SHELL'
13291 export CONFIG_SHELL
13292 exec "\$@"
13295 _ACEOF
13296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13297 exec 5>>config.log
13299 echo
13300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13301 ## Running $as_me. ##
13302 _ASBOX
13303 $as_echo "$ac_log"
13304 } >&5
13306 _ACEOF
13307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13309 # INIT-COMMANDS
13311 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13314 # The HP-UX ksh and POSIX shell print the target directory to stdout
13315 # if CDPATH is set.
13316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13318 sed_quote_subst='$sed_quote_subst'
13319 double_quote_subst='$double_quote_subst'
13320 delay_variable_subst='$delay_variable_subst'
13321 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13322 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13323 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13324 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13325 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13326 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13327 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13328 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13329 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13331 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13332 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13333 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13334 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13335 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13336 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13337 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13338 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13339 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13340 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13341 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13342 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13343 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13344 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13345 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13346 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13347 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13348 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13349 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13350 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13351 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13352 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13353 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13354 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13355 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13356 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13357 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13358 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13359 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13360 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13361 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13363 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13364 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13365 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13366 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13367 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13368 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13369 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13370 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13371 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13372 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13373 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13374 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13375 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13376 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13377 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13378 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13379 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13380 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13381 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13382 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13383 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13384 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13385 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13386 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13387 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13388 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13389 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13390 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13391 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13392 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13393 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13394 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13395 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13396 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13397 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13398 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13399 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13400 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13401 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13402 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13403 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13404 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13405 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13406 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13407 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13408 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13409 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13410 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13411 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13412 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13413 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13414 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13415 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13416 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13417 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13418 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13419 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13420 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13421 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13422 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13423 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13424 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13425 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13426 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13427 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13428 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13429 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13430 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13431 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13432 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13433 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13434 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13435 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13436 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13437 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13438 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13439 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13440 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13441 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13442 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13443 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13444 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13445 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13446 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13447 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13448 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13449 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13450 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13451 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13453 LTCC='$LTCC'
13454 LTCFLAGS='$LTCFLAGS'
13455 compiler='$compiler_DEFAULT'
13457 # A function that is used when there is no print builtin or printf.
13458 func_fallback_echo ()
13460 eval 'cat <<_LTECHO_EOF
13462 _LTECHO_EOF'
13465 # Quote evaled strings.
13466 for var in SED \
13467 GREP \
13468 EGREP \
13469 FGREP \
13470 SHELL \
13471 ECHO \
13472 LD \
13473 AS \
13474 DLLTOOL \
13475 OBJDUMP \
13476 PATH_SEPARATOR \
13477 NM \
13478 LN_S \
13479 lt_SP2NL \
13480 lt_NL2SP \
13481 reload_flag \
13482 deplibs_check_method \
13483 file_magic_cmd \
13484 file_magic_glob \
13485 want_nocaseglob \
13486 sharedlib_from_linklib_cmd \
13487 AR \
13488 AR_FLAGS \
13489 archiver_list_spec \
13490 STRIP \
13491 RANLIB \
13492 CC \
13493 CFLAGS \
13494 compiler \
13495 lt_cv_sys_global_symbol_pipe \
13496 lt_cv_sys_global_symbol_to_cdecl \
13497 lt_cv_sys_global_symbol_to_c_name_address \
13498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13499 nm_file_list_spec \
13500 lt_prog_compiler_no_builtin_flag \
13501 lt_prog_compiler_pic \
13502 lt_prog_compiler_wl \
13503 lt_prog_compiler_static \
13504 lt_cv_prog_compiler_c_o \
13505 need_locks \
13506 MANIFEST_TOOL \
13507 DSYMUTIL \
13508 NMEDIT \
13509 LIPO \
13510 OTOOL \
13511 OTOOL64 \
13512 shrext_cmds \
13513 export_dynamic_flag_spec \
13514 whole_archive_flag_spec \
13515 compiler_needs_object \
13516 with_gnu_ld \
13517 allow_undefined_flag \
13518 no_undefined_flag \
13519 hardcode_libdir_flag_spec \
13520 hardcode_libdir_separator \
13521 exclude_expsyms \
13522 include_expsyms \
13523 file_list_spec \
13524 variables_saved_for_relink \
13525 libname_spec \
13526 library_names_spec \
13527 soname_spec \
13528 install_override_mode \
13529 finish_eval \
13530 old_striplib \
13531 striplib; do
13532 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13533 *[\\\\\\\`\\"\\\$]*)
13534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13539 esac
13540 done
13542 # Double-quote double-evaled strings.
13543 for var in reload_cmds \
13544 old_postinstall_cmds \
13545 old_postuninstall_cmds \
13546 old_archive_cmds \
13547 extract_expsyms_cmds \
13548 old_archive_from_new_cmds \
13549 old_archive_from_expsyms_cmds \
13550 archive_cmds \
13551 archive_expsym_cmds \
13552 module_cmds \
13553 module_expsym_cmds \
13554 export_symbols_cmds \
13555 prelink_cmds \
13556 postlink_cmds \
13557 postinstall_cmds \
13558 postuninstall_cmds \
13559 finish_cmds \
13560 sys_lib_search_path_spec \
13561 sys_lib_dlsearch_path_spec; do
13562 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13563 *[\\\\\\\`\\"\\\$]*)
13564 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13567 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13569 esac
13570 done
13572 ac_aux_dir='$ac_aux_dir'
13573 xsi_shell='$xsi_shell'
13574 lt_shell_append='$lt_shell_append'
13576 # See if we are running on zsh, and set the options which allow our
13577 # commands through without removal of \ escapes INIT.
13578 if test -n "\${ZSH_VERSION+set}" ; then
13579 setopt NO_GLOB_SUBST
13583 PACKAGE='$PACKAGE'
13584 VERSION='$VERSION'
13585 TIMESTAMP='$TIMESTAMP'
13586 RM='$RM'
13587 ofile='$ofile'
13592 _ACEOF
13594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13596 # Handling of arguments.
13597 for ac_config_target in $ac_config_targets
13599 case $ac_config_target in
13600 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13601 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13602 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13603 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13604 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
13605 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
13607 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13608 esac
13609 done
13612 # If the user did not use the arguments to specify the items to instantiate,
13613 # then the envvar interface is used. Set only those that are not.
13614 # We use the long form for the default assignment because of an extremely
13615 # bizarre bug on SunOS 4.1.3.
13616 if $ac_need_defaults; then
13617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13622 # Have a temporary directory for convenience. Make it in the build tree
13623 # simply because there is no reason against having it here, and in addition,
13624 # creating and moving files from /tmp can sometimes cause problems.
13625 # Hook for its removal unless debugging.
13626 # Note that there is a small window in which the directory will not be cleaned:
13627 # after its creation but before its name has been assigned to `$tmp'.
13628 $debug ||
13630 tmp= ac_tmp=
13631 trap 'exit_status=$?
13632 : "${ac_tmp:=$tmp}"
13633 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13635 trap 'as_fn_exit 1' 1 2 13 15
13637 # Create a (secure) tmp directory for tmp files.
13640 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13641 test -d "$tmp"
13642 } ||
13644 tmp=./conf$$-$RANDOM
13645 (umask 077 && mkdir "$tmp")
13646 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13647 ac_tmp=$tmp
13649 # Set up the scripts for CONFIG_FILES section.
13650 # No need to generate them if there are no CONFIG_FILES.
13651 # This happens for instance with `./config.status config.h'.
13652 if test -n "$CONFIG_FILES"; then
13655 ac_cr=`echo X | tr X '\015'`
13656 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13657 # But we know of no other shell where ac_cr would be empty at this
13658 # point, so we can use a bashism as a fallback.
13659 if test "x$ac_cr" = x; then
13660 eval ac_cr=\$\'\\r\'
13662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13664 ac_cs_awk_cr='\\r'
13665 else
13666 ac_cs_awk_cr=$ac_cr
13669 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13670 _ACEOF
13674 echo "cat >conf$$subs.awk <<_ACEOF" &&
13675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13676 echo "_ACEOF"
13677 } >conf$$subs.sh ||
13678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13679 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13680 ac_delim='%!_!# '
13681 for ac_last_try in false false false false false :; do
13682 . ./conf$$subs.sh ||
13683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13685 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13686 if test $ac_delim_n = $ac_delim_num; then
13687 break
13688 elif $ac_last_try; then
13689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13690 else
13691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13693 done
13694 rm -f conf$$subs.sh
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13698 _ACEOF
13699 sed -n '
13701 s/^/S["/; s/!.*/"]=/
13704 s/^[^!]*!//
13705 :repl
13706 t repl
13707 s/'"$ac_delim"'$//
13708 t delim
13711 s/\(.\{148\}\)..*/\1/
13712 t more1
13713 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13716 b repl
13717 :more1
13718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13721 s/.\{148\}//
13722 t nl
13723 :delim
13725 s/\(.\{148\}\)..*/\1/
13726 t more2
13727 s/["\\]/\\&/g; s/^/"/; s/$/"/
13730 :more2
13731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13734 s/.\{148\}//
13735 t delim
13736 ' <conf$$subs.awk | sed '
13737 /^[^""]/{
13739 s/\n//
13741 ' >>$CONFIG_STATUS || ac_write_fail=1
13742 rm -f conf$$subs.awk
13743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13744 _ACAWK
13745 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13746 for (key in S) S_is_set[key] = 1
13747 FS = "\a"
13751 line = $ 0
13752 nfields = split(line, field, "@")
13753 substed = 0
13754 len = length(field[1])
13755 for (i = 2; i < nfields; i++) {
13756 key = field[i]
13757 keylen = length(key)
13758 if (S_is_set[key]) {
13759 value = S[key]
13760 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13761 len += length(value) + length(field[++i])
13762 substed = 1
13763 } else
13764 len += 1 + keylen
13767 print line
13770 _ACAWK
13771 _ACEOF
13772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13773 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13774 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13775 else
13777 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13778 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13779 _ACEOF
13781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13783 # trailing colons and then remove the whole line if VPATH becomes empty
13784 # (actually we leave an empty line to preserve line numbers).
13785 if test "x$srcdir" = x.; then
13786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13788 s///
13789 s/^/:/
13790 s/[ ]*$/:/
13791 s/:\$(srcdir):/:/g
13792 s/:\${srcdir}:/:/g
13793 s/:@srcdir@:/:/g
13794 s/^:*//
13795 s/:*$//
13797 s/\(=[ ]*\).*/\1/
13799 s/\n//
13800 s/^[^=]*=[ ]*$//
13804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13805 fi # test -n "$CONFIG_FILES"
13807 # Set up the scripts for CONFIG_HEADERS section.
13808 # No need to generate them if there are no CONFIG_HEADERS.
13809 # This happens for instance with `./config.status Makefile'.
13810 if test -n "$CONFIG_HEADERS"; then
13811 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13812 BEGIN {
13813 _ACEOF
13815 # Transform confdefs.h into an awk script `defines.awk', embedded as
13816 # here-document in config.status, that substitutes the proper values into
13817 # config.h.in to produce config.h.
13819 # Create a delimiter string that does not exist in confdefs.h, to ease
13820 # handling of long lines.
13821 ac_delim='%!_!# '
13822 for ac_last_try in false false :; do
13823 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13824 if test -z "$ac_tt"; then
13825 break
13826 elif $ac_last_try; then
13827 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13828 else
13829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13831 done
13833 # For the awk script, D is an array of macro values keyed by name,
13834 # likewise P contains macro parameters if any. Preserve backslash
13835 # newline sequences.
13837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13838 sed -n '
13839 s/.\{148\}/&'"$ac_delim"'/g
13840 t rset
13841 :rset
13842 s/^[ ]*#[ ]*define[ ][ ]*/ /
13843 t def
13845 :def
13846 s/\\$//
13847 t bsnl
13848 s/["\\]/\\&/g
13849 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13850 D["\1"]=" \3"/p
13851 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13853 :bsnl
13854 s/["\\]/\\&/g
13855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13856 D["\1"]=" \3\\\\\\n"\\/p
13857 t cont
13858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13859 t cont
13861 :cont
13863 s/.\{148\}/&'"$ac_delim"'/g
13864 t clear
13865 :clear
13866 s/\\$//
13867 t bsnlc
13868 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13870 :bsnlc
13871 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13872 b cont
13873 ' <confdefs.h | sed '
13874 s/'"$ac_delim"'/"\\\
13875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13878 for (key in D) D_is_set[key] = 1
13879 FS = "\a"
13881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13882 line = \$ 0
13883 split(line, arg, " ")
13884 if (arg[1] == "#") {
13885 defundef = arg[2]
13886 mac1 = arg[3]
13887 } else {
13888 defundef = substr(arg[1], 2)
13889 mac1 = arg[2]
13891 split(mac1, mac2, "(") #)
13892 macro = mac2[1]
13893 prefix = substr(line, 1, index(line, defundef) - 1)
13894 if (D_is_set[macro]) {
13895 # Preserve the white space surrounding the "#".
13896 print prefix "define", macro P[macro] D[macro]
13897 next
13898 } else {
13899 # Replace #undef with comments. This is necessary, for example,
13900 # in the case of _POSIX_SOURCE, which is predefined and required
13901 # on some systems where configure will not decide to define it.
13902 if (defundef == "undef") {
13903 print "/*", prefix defundef, macro, "*/"
13904 next
13908 { print }
13909 _ACAWK
13910 _ACEOF
13911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13912 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13913 fi # test -n "$CONFIG_HEADERS"
13916 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13917 shift
13918 for ac_tag
13920 case $ac_tag in
13921 :[FHLC]) ac_mode=$ac_tag; continue;;
13922 esac
13923 case $ac_mode$ac_tag in
13924 :[FHL]*:*);;
13925 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13926 :[FH]-) ac_tag=-:-;;
13927 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13928 esac
13929 ac_save_IFS=$IFS
13930 IFS=:
13931 set x $ac_tag
13932 IFS=$ac_save_IFS
13933 shift
13934 ac_file=$1
13935 shift
13937 case $ac_mode in
13938 :L) ac_source=$1;;
13939 :[FH])
13940 ac_file_inputs=
13941 for ac_f
13943 case $ac_f in
13944 -) ac_f="$ac_tmp/stdin";;
13945 *) # Look for the file first in the build tree, then in the source tree
13946 # (if the path is not absolute). The absolute path cannot be DOS-style,
13947 # because $ac_f cannot contain `:'.
13948 test -f "$ac_f" ||
13949 case $ac_f in
13950 [\\/$]*) false;;
13951 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13952 esac ||
13953 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13954 esac
13955 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13956 as_fn_append ac_file_inputs " '$ac_f'"
13957 done
13959 # Let's still pretend it is `configure' which instantiates (i.e., don't
13960 # use $as_me), people would be surprised to read:
13961 # /* config.h. Generated by config.status. */
13962 configure_input='Generated from '`
13963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13964 `' by configure.'
13965 if test x"$ac_file" != x-; then
13966 configure_input="$ac_file. $configure_input"
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13968 $as_echo "$as_me: creating $ac_file" >&6;}
13970 # Neutralize special characters interpreted by sed in replacement strings.
13971 case $configure_input in #(
13972 *\&* | *\|* | *\\* )
13973 ac_sed_conf_input=`$as_echo "$configure_input" |
13974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13975 *) ac_sed_conf_input=$configure_input;;
13976 esac
13978 case $ac_tag in
13979 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13981 esac
13983 esac
13985 ac_dir=`$as_dirname -- "$ac_file" ||
13986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13987 X"$ac_file" : 'X\(//\)[^/]' \| \
13988 X"$ac_file" : 'X\(//\)$' \| \
13989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13990 $as_echo X"$ac_file" |
13991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13992 s//\1/
13995 /^X\(\/\/\)[^/].*/{
13996 s//\1/
13999 /^X\(\/\/\)$/{
14000 s//\1/
14003 /^X\(\/\).*/{
14004 s//\1/
14007 s/.*/./; q'`
14008 as_dir="$ac_dir"; as_fn_mkdir_p
14009 ac_builddir=.
14011 case "$ac_dir" in
14012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14015 # A ".." for each directory in $ac_dir_suffix.
14016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14017 case $ac_top_builddir_sub in
14018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14020 esac ;;
14021 esac
14022 ac_abs_top_builddir=$ac_pwd
14023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14024 # for backward compatibility:
14025 ac_top_builddir=$ac_top_build_prefix
14027 case $srcdir in
14028 .) # We are building in place.
14029 ac_srcdir=.
14030 ac_top_srcdir=$ac_top_builddir_sub
14031 ac_abs_top_srcdir=$ac_pwd ;;
14032 [\\/]* | ?:[\\/]* ) # Absolute name.
14033 ac_srcdir=$srcdir$ac_dir_suffix;
14034 ac_top_srcdir=$srcdir
14035 ac_abs_top_srcdir=$srcdir ;;
14036 *) # Relative name.
14037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14038 ac_top_srcdir=$ac_top_build_prefix$srcdir
14039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14040 esac
14041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14044 case $ac_mode in
14047 # CONFIG_FILE
14050 case $INSTALL in
14051 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14052 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14053 esac
14054 ac_MKDIR_P=$MKDIR_P
14055 case $MKDIR_P in
14056 [\\/$]* | ?:[\\/]* ) ;;
14057 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14058 esac
14059 _ACEOF
14061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14062 # If the template does not know about datarootdir, expand it.
14063 # FIXME: This hack should be removed a few years after 2.60.
14064 ac_datarootdir_hack=; ac_datarootdir_seen=
14065 ac_sed_dataroot='
14066 /datarootdir/ {
14070 /@datadir@/p
14071 /@docdir@/p
14072 /@infodir@/p
14073 /@localedir@/p
14074 /@mandir@/p'
14075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14076 *datarootdir*) ac_datarootdir_seen=yes;;
14077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14080 _ACEOF
14081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082 ac_datarootdir_hack='
14083 s&@datadir@&$datadir&g
14084 s&@docdir@&$docdir&g
14085 s&@infodir@&$infodir&g
14086 s&@localedir@&$localedir&g
14087 s&@mandir@&$mandir&g
14088 s&\\\${datarootdir}&$datarootdir&g' ;;
14089 esac
14090 _ACEOF
14092 # Neutralize VPATH when `$srcdir' = `.'.
14093 # Shell code in configure.ac might set extrasub.
14094 # FIXME: do we really want to maintain this feature?
14095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14096 ac_sed_extra="$ac_vpsub
14097 $extrasub
14098 _ACEOF
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14102 s|@configure_input@|$ac_sed_conf_input|;t t
14103 s&@top_builddir@&$ac_top_builddir_sub&;t t
14104 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14105 s&@srcdir@&$ac_srcdir&;t t
14106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14107 s&@top_srcdir@&$ac_top_srcdir&;t t
14108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14109 s&@builddir@&$ac_builddir&;t t
14110 s&@abs_builddir@&$ac_abs_builddir&;t t
14111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14112 s&@INSTALL@&$ac_INSTALL&;t t
14113 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14114 $ac_datarootdir_hack
14116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14117 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14120 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14122 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14124 which seems to be undefined. Please make sure it is defined" >&5
14125 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14126 which seems to be undefined. Please make sure it is defined" >&2;}
14128 rm -f "$ac_tmp/stdin"
14129 case $ac_file in
14130 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14131 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14132 esac \
14133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14137 # CONFIG_HEADER
14139 if test x"$ac_file" != x-; then
14141 $as_echo "/* $configure_input */" \
14142 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14143 } >"$ac_tmp/config.h" \
14144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14145 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14147 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14148 else
14149 rm -f "$ac_file"
14150 mv "$ac_tmp/config.h" "$ac_file" \
14151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14153 else
14154 $as_echo "/* $configure_input */" \
14155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14156 || as_fn_error $? "could not create -" "$LINENO" 5
14158 # Compute "$ac_file"'s index in $config_headers.
14159 _am_arg="$ac_file"
14160 _am_stamp_count=1
14161 for _am_header in $config_headers :; do
14162 case $_am_header in
14163 $_am_arg | $_am_arg:* )
14164 break ;;
14166 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14167 esac
14168 done
14169 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14170 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14171 X"$_am_arg" : 'X\(//\)[^/]' \| \
14172 X"$_am_arg" : 'X\(//\)$' \| \
14173 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14174 $as_echo X"$_am_arg" |
14175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14176 s//\1/
14179 /^X\(\/\/\)[^/].*/{
14180 s//\1/
14183 /^X\(\/\/\)$/{
14184 s//\1/
14187 /^X\(\/\).*/{
14188 s//\1/
14191 s/.*/./; q'`/stamp-h$_am_stamp_count
14194 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14195 $as_echo "$as_me: executing $ac_file commands" >&6;}
14197 esac
14200 case $ac_file$ac_mode in
14201 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14202 # Older Autoconf quotes --file arguments for eval, but not when files
14203 # are listed without --file. Let's play safe and only enable the eval
14204 # if we detect the quoting.
14205 case $CONFIG_FILES in
14206 *\'*) eval set x "$CONFIG_FILES" ;;
14207 *) set x $CONFIG_FILES ;;
14208 esac
14209 shift
14210 for mf
14212 # Strip MF so we end up with the name of the file.
14213 mf=`echo "$mf" | sed -e 's/:.*$//'`
14214 # Check whether this is an Automake generated Makefile or not.
14215 # We used to match only the files named 'Makefile.in', but
14216 # some people rename them; so instead we look at the file content.
14217 # Grep'ing the first line is not enough: some people post-process
14218 # each Makefile.in and add a new line on top of each file to say so.
14219 # Grep'ing the whole file is not good either: AIX grep has a line
14220 # limit of 2048, but all sed's we know have understand at least 4000.
14221 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14222 dirpart=`$as_dirname -- "$mf" ||
14223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14224 X"$mf" : 'X\(//\)[^/]' \| \
14225 X"$mf" : 'X\(//\)$' \| \
14226 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14227 $as_echo X"$mf" |
14228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14229 s//\1/
14232 /^X\(\/\/\)[^/].*/{
14233 s//\1/
14236 /^X\(\/\/\)$/{
14237 s//\1/
14240 /^X\(\/\).*/{
14241 s//\1/
14244 s/.*/./; q'`
14245 else
14246 continue
14248 # Extract the definition of DEPDIR, am__include, and am__quote
14249 # from the Makefile without running 'make'.
14250 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14251 test -z "$DEPDIR" && continue
14252 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14253 test -z "$am__include" && continue
14254 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14255 # Find all dependency output files, they are included files with
14256 # $(DEPDIR) in their names. We invoke sed twice because it is the
14257 # simplest approach to changing $(DEPDIR) to its actual value in the
14258 # expansion.
14259 for file in `sed -n "
14260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14262 # Make sure the directory exists.
14263 test -f "$dirpart/$file" && continue
14264 fdir=`$as_dirname -- "$file" ||
14265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14266 X"$file" : 'X\(//\)[^/]' \| \
14267 X"$file" : 'X\(//\)$' \| \
14268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14269 $as_echo X"$file" |
14270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14271 s//\1/
14274 /^X\(\/\/\)[^/].*/{
14275 s//\1/
14278 /^X\(\/\/\)$/{
14279 s//\1/
14282 /^X\(\/\).*/{
14283 s//\1/
14286 s/.*/./; q'`
14287 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14288 # echo "creating $dirpart/$file"
14289 echo '# dummy' > "$dirpart/$file"
14290 done
14291 done
14294 "libtool":C)
14296 # See if we are running on zsh, and set the options which allow our
14297 # commands through without removal of \ escapes.
14298 if test -n "${ZSH_VERSION+set}" ; then
14299 setopt NO_GLOB_SUBST
14302 cfgfile="${ofile}T"
14303 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14304 $RM "$cfgfile"
14306 cat <<_LT_EOF >> "$cfgfile"
14307 #! $SHELL
14309 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14310 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14312 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14314 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14315 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14316 # Foundation, Inc.
14317 # Written by Gordon Matzigkeit, 1996
14319 # This file is part of GNU Libtool.
14321 # GNU Libtool is free software; you can redistribute it and/or
14322 # modify it under the terms of the GNU General Public License as
14323 # published by the Free Software Foundation; either version 2 of
14324 # the License, or (at your option) any later version.
14326 # As a special exception to the GNU General Public License,
14327 # if you distribute this file as part of a program or library that
14328 # is built using GNU Libtool, you may include this file under the
14329 # same distribution terms that you use for the rest of that program.
14331 # GNU Libtool is distributed in the hope that it will be useful,
14332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14334 # GNU General Public License for more details.
14336 # You should have received a copy of the GNU General Public License
14337 # along with GNU Libtool; see the file COPYING. If not, a copy
14338 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14339 # obtained by writing to the Free Software Foundation, Inc.,
14340 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14343 # The names of the tagged configurations supported by this script.
14344 available_tags=""
14346 # ### BEGIN LIBTOOL CONFIG
14348 # A sed program that does not truncate output.
14349 SED=$lt_SED
14351 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14352 Xsed="\$SED -e 1s/^X//"
14354 # A grep program that handles long lines.
14355 GREP=$lt_GREP
14357 # An ERE matcher.
14358 EGREP=$lt_EGREP
14360 # A literal string matcher.
14361 FGREP=$lt_FGREP
14363 # Shell to use when invoking shell scripts.
14364 SHELL=$lt_SHELL
14366 # An echo program that protects backslashes.
14367 ECHO=$lt_ECHO
14369 # Assembler program.
14370 AS=$lt_AS
14372 # DLL creation program.
14373 DLLTOOL=$lt_DLLTOOL
14375 # Object dumper program.
14376 OBJDUMP=$lt_OBJDUMP
14378 # Which release of libtool.m4 was used?
14379 macro_version=$macro_version
14380 macro_revision=$macro_revision
14382 # Whether or not to build shared libraries.
14383 build_libtool_libs=$enable_shared
14385 # Whether or not to build static libraries.
14386 build_old_libs=$enable_static
14388 # What type of objects to build.
14389 pic_mode=$pic_mode
14391 # Whether or not to optimize for fast installation.
14392 fast_install=$enable_fast_install
14394 # The PATH separator for the build system.
14395 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14397 # The host system.
14398 host_alias=$host_alias
14399 host=$host
14400 host_os=$host_os
14402 # The build system.
14403 build_alias=$build_alias
14404 build=$build
14405 build_os=$build_os
14407 # A BSD- or MS-compatible name lister.
14408 NM=$lt_NM
14410 # Whether we need soft or hard links.
14411 LN_S=$lt_LN_S
14413 # What is the maximum length of a command?
14414 max_cmd_len=$max_cmd_len
14416 # Object file suffix (normally "o").
14417 objext=$ac_objext
14419 # Executable file suffix (normally "").
14420 exeext=$exeext
14422 # whether the shell understands "unset".
14423 lt_unset=$lt_unset
14425 # turn spaces into newlines.
14426 SP2NL=$lt_lt_SP2NL
14428 # turn newlines into spaces.
14429 NL2SP=$lt_lt_NL2SP
14431 # convert \$build file names to \$host format.
14432 to_host_file_cmd=$lt_cv_to_host_file_cmd
14434 # convert \$build files to toolchain format.
14435 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14437 # Method to check whether dependent libraries are shared objects.
14438 deplibs_check_method=$lt_deplibs_check_method
14440 # Command to use when deplibs_check_method = "file_magic".
14441 file_magic_cmd=$lt_file_magic_cmd
14443 # How to find potential files when deplibs_check_method = "file_magic".
14444 file_magic_glob=$lt_file_magic_glob
14446 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14447 want_nocaseglob=$lt_want_nocaseglob
14449 # Command to associate shared and link libraries.
14450 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14452 # The archiver.
14453 AR=$lt_AR
14455 # Flags to create an archive.
14456 AR_FLAGS=$lt_AR_FLAGS
14458 # How to feed a file listing to the archiver.
14459 archiver_list_spec=$lt_archiver_list_spec
14461 # A symbol stripping program.
14462 STRIP=$lt_STRIP
14464 # Commands used to install an old-style archive.
14465 RANLIB=$lt_RANLIB
14466 old_postinstall_cmds=$lt_old_postinstall_cmds
14467 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14469 # Whether to use a lock for old archive extraction.
14470 lock_old_archive_extraction=$lock_old_archive_extraction
14472 # A C compiler.
14473 LTCC=$lt_CC
14475 # LTCC compiler flags.
14476 LTCFLAGS=$lt_CFLAGS
14478 # Take the output of nm and produce a listing of raw symbols and C names.
14479 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14481 # Transform the output of nm in a proper C declaration.
14482 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14484 # Transform the output of nm in a C name address pair.
14485 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14487 # Transform the output of nm in a C name address pair when lib prefix is needed.
14488 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14490 # Specify filename containing input files for \$NM.
14491 nm_file_list_spec=$lt_nm_file_list_spec
14493 # The root where to search for dependent libraries,and in which our libraries should be installed.
14494 lt_sysroot=$lt_sysroot
14496 # The name of the directory that contains temporary libtool files.
14497 objdir=$objdir
14499 # Used to examine libraries when file_magic_cmd begins with "file".
14500 MAGIC_CMD=$MAGIC_CMD
14502 # Must we lock files when doing compilation?
14503 need_locks=$lt_need_locks
14505 # Manifest tool.
14506 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14508 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14509 DSYMUTIL=$lt_DSYMUTIL
14511 # Tool to change global to local symbols on Mac OS X.
14512 NMEDIT=$lt_NMEDIT
14514 # Tool to manipulate fat objects and archives on Mac OS X.
14515 LIPO=$lt_LIPO
14517 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14518 OTOOL=$lt_OTOOL
14520 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14521 OTOOL64=$lt_OTOOL64
14523 # Old archive suffix (normally "a").
14524 libext=$libext
14526 # Shared library suffix (normally ".so").
14527 shrext_cmds=$lt_shrext_cmds
14529 # The commands to extract the exported symbol list from a shared archive.
14530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14532 # Variables whose values should be saved in libtool wrapper scripts and
14533 # restored at link time.
14534 variables_saved_for_relink=$lt_variables_saved_for_relink
14536 # Do we need the "lib" prefix for modules?
14537 need_lib_prefix=$need_lib_prefix
14539 # Do we need a version for libraries?
14540 need_version=$need_version
14542 # Library versioning type.
14543 version_type=$version_type
14545 # Shared library runtime path variable.
14546 runpath_var=$runpath_var
14548 # Shared library path variable.
14549 shlibpath_var=$shlibpath_var
14551 # Is shlibpath searched before the hard-coded library search path?
14552 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14554 # Format of library name prefix.
14555 libname_spec=$lt_libname_spec
14557 # List of archive names. First name is the real one, the rest are links.
14558 # The last name is the one that the linker finds with -lNAME
14559 library_names_spec=$lt_library_names_spec
14561 # The coded name of the library, if different from the real name.
14562 soname_spec=$lt_soname_spec
14564 # Permission mode override for installation of shared libraries.
14565 install_override_mode=$lt_install_override_mode
14567 # Command to use after installation of a shared archive.
14568 postinstall_cmds=$lt_postinstall_cmds
14570 # Command to use after uninstallation of a shared archive.
14571 postuninstall_cmds=$lt_postuninstall_cmds
14573 # Commands used to finish a libtool library installation in a directory.
14574 finish_cmds=$lt_finish_cmds
14576 # As "finish_cmds", except a single script fragment to be evaled but
14577 # not shown.
14578 finish_eval=$lt_finish_eval
14580 # Whether we should hardcode library paths into libraries.
14581 hardcode_into_libs=$hardcode_into_libs
14583 # Compile-time system search path for libraries.
14584 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14586 # Run-time system search path for libraries.
14587 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14589 # Whether dlopen is supported.
14590 dlopen_support=$enable_dlopen
14592 # Whether dlopen of programs is supported.
14593 dlopen_self=$enable_dlopen_self
14595 # Whether dlopen of statically linked programs is supported.
14596 dlopen_self_static=$enable_dlopen_self_static
14598 # Commands to strip libraries.
14599 old_striplib=$lt_old_striplib
14600 striplib=$lt_striplib
14603 # The linker used to build libraries.
14604 LD=$lt_LD
14606 # How to create reloadable object files.
14607 reload_flag=$lt_reload_flag
14608 reload_cmds=$lt_reload_cmds
14610 # Commands used to build an old-style archive.
14611 old_archive_cmds=$lt_old_archive_cmds
14613 # A language specific compiler.
14614 CC=$lt_compiler
14616 # Is the compiler the GNU compiler?
14617 with_gcc=$GCC
14619 # Compiler flag to turn off builtin functions.
14620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14622 # Additional compiler flags for building library objects.
14623 pic_flag=$lt_lt_prog_compiler_pic
14625 # How to pass a linker flag through the compiler.
14626 wl=$lt_lt_prog_compiler_wl
14628 # Compiler flag to prevent dynamic linking.
14629 link_static_flag=$lt_lt_prog_compiler_static
14631 # Does compiler simultaneously support -c and -o options?
14632 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14634 # Whether or not to add -lc for building shared libraries.
14635 build_libtool_need_lc=$archive_cmds_need_lc
14637 # Whether or not to disallow shared libs when runtime libs are static.
14638 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14640 # Compiler flag to allow reflexive dlopens.
14641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14643 # Compiler flag to generate shared objects directly from archives.
14644 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14646 # Whether the compiler copes with passing no objects directly.
14647 compiler_needs_object=$lt_compiler_needs_object
14649 # Create an old-style archive from a shared archive.
14650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14652 # Create a temporary old-style archive to link instead of a shared archive.
14653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14655 # Commands used to build a shared archive.
14656 archive_cmds=$lt_archive_cmds
14657 archive_expsym_cmds=$lt_archive_expsym_cmds
14659 # Commands used to build a loadable module if different from building
14660 # a shared archive.
14661 module_cmds=$lt_module_cmds
14662 module_expsym_cmds=$lt_module_expsym_cmds
14664 # Whether we are building with GNU ld or not.
14665 with_gnu_ld=$lt_with_gnu_ld
14667 # Flag that allows shared libraries with undefined symbols to be built.
14668 allow_undefined_flag=$lt_allow_undefined_flag
14670 # Flag that enforces no undefined symbols.
14671 no_undefined_flag=$lt_no_undefined_flag
14673 # Flag to hardcode \$libdir into a binary during linking.
14674 # This must work even if \$libdir does not exist
14675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14677 # Whether we need a single "-rpath" flag with a separated argument.
14678 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14681 # DIR into the resulting binary.
14682 hardcode_direct=$hardcode_direct
14684 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14685 # DIR into the resulting binary and the resulting library dependency is
14686 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14687 # library is relocated.
14688 hardcode_direct_absolute=$hardcode_direct_absolute
14690 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14691 # into the resulting binary.
14692 hardcode_minus_L=$hardcode_minus_L
14694 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14695 # into the resulting binary.
14696 hardcode_shlibpath_var=$hardcode_shlibpath_var
14698 # Set to "yes" if building a shared library automatically hardcodes DIR
14699 # into the library and all subsequent libraries and executables linked
14700 # against it.
14701 hardcode_automatic=$hardcode_automatic
14703 # Set to yes if linker adds runtime paths of dependent libraries
14704 # to runtime path list.
14705 inherit_rpath=$inherit_rpath
14707 # Whether libtool must link a program against all its dependency libraries.
14708 link_all_deplibs=$link_all_deplibs
14710 # Set to "yes" if exported symbols are required.
14711 always_export_symbols=$always_export_symbols
14713 # The commands to list exported symbols.
14714 export_symbols_cmds=$lt_export_symbols_cmds
14716 # Symbols that should not be listed in the preloaded symbols.
14717 exclude_expsyms=$lt_exclude_expsyms
14719 # Symbols that must always be exported.
14720 include_expsyms=$lt_include_expsyms
14722 # Commands necessary for linking programs (against libraries) with templates.
14723 prelink_cmds=$lt_prelink_cmds
14725 # Commands necessary for finishing linking programs.
14726 postlink_cmds=$lt_postlink_cmds
14728 # Specify filename containing input files.
14729 file_list_spec=$lt_file_list_spec
14731 # How to hardcode a shared library path into an executable.
14732 hardcode_action=$hardcode_action
14734 # ### END LIBTOOL CONFIG
14736 _LT_EOF
14738 case $host_os in
14739 aix3*)
14740 cat <<\_LT_EOF >> "$cfgfile"
14741 # AIX sometimes has problems with the GCC collect2 program. For some
14742 # reason, if we set the COLLECT_NAMES environment variable, the problems
14743 # vanish in a puff of smoke.
14744 if test "X${COLLECT_NAMES+set}" != Xset; then
14745 COLLECT_NAMES=
14746 export COLLECT_NAMES
14748 _LT_EOF
14750 esac
14753 ltmain="$ac_aux_dir/ltmain.sh"
14756 # We use sed instead of cat because bash on DJGPP gets confused if
14757 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14758 # text mode, it properly converts lines to CR/LF. This bash problem
14759 # is reportedly fixed, but why not run on old versions too?
14760 sed '$q' "$ltmain" >> "$cfgfile" \
14761 || (rm -f "$cfgfile"; exit 1)
14763 if test x"$xsi_shell" = xyes; then
14764 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14765 func_dirname ()\
14767 \ case ${1} in\
14768 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14769 \ * ) func_dirname_result="${3}" ;;\
14770 \ esac\
14771 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14772 && mv -f "$cfgfile.tmp" "$cfgfile" \
14773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14774 test 0 -eq $? || _lt_function_replace_fail=:
14777 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14778 func_basename ()\
14780 \ func_basename_result="${1##*/}"\
14781 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14782 && mv -f "$cfgfile.tmp" "$cfgfile" \
14783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14784 test 0 -eq $? || _lt_function_replace_fail=:
14787 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14788 func_dirname_and_basename ()\
14790 \ case ${1} in\
14791 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14792 \ * ) func_dirname_result="${3}" ;;\
14793 \ esac\
14794 \ func_basename_result="${1##*/}"\
14795 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14796 && mv -f "$cfgfile.tmp" "$cfgfile" \
14797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14798 test 0 -eq $? || _lt_function_replace_fail=:
14801 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14802 func_stripname ()\
14804 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14805 \ # positional parameters, so assign one to ordinary parameter first.\
14806 \ func_stripname_result=${3}\
14807 \ func_stripname_result=${func_stripname_result#"${1}"}\
14808 \ func_stripname_result=${func_stripname_result%"${2}"}\
14809 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14810 && mv -f "$cfgfile.tmp" "$cfgfile" \
14811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14812 test 0 -eq $? || _lt_function_replace_fail=:
14815 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14816 func_split_long_opt ()\
14818 \ func_split_long_opt_name=${1%%=*}\
14819 \ func_split_long_opt_arg=${1#*=}\
14820 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14821 && mv -f "$cfgfile.tmp" "$cfgfile" \
14822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14823 test 0 -eq $? || _lt_function_replace_fail=:
14826 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14827 func_split_short_opt ()\
14829 \ func_split_short_opt_arg=${1#??}\
14830 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14831 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14832 && mv -f "$cfgfile.tmp" "$cfgfile" \
14833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14834 test 0 -eq $? || _lt_function_replace_fail=:
14837 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14838 func_lo2o ()\
14840 \ case ${1} in\
14841 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14842 \ *) func_lo2o_result=${1} ;;\
14843 \ esac\
14844 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14845 && mv -f "$cfgfile.tmp" "$cfgfile" \
14846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14847 test 0 -eq $? || _lt_function_replace_fail=:
14850 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14851 func_xform ()\
14853 func_xform_result=${1%.*}.lo\
14854 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14855 && mv -f "$cfgfile.tmp" "$cfgfile" \
14856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857 test 0 -eq $? || _lt_function_replace_fail=:
14860 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14861 func_arith ()\
14863 func_arith_result=$(( $* ))\
14864 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14865 && mv -f "$cfgfile.tmp" "$cfgfile" \
14866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14867 test 0 -eq $? || _lt_function_replace_fail=:
14870 sed -e '/^func_len ()$/,/^} # func_len /c\
14871 func_len ()\
14873 func_len_result=${#1}\
14874 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14875 && mv -f "$cfgfile.tmp" "$cfgfile" \
14876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14877 test 0 -eq $? || _lt_function_replace_fail=:
14881 if test x"$lt_shell_append" = xyes; then
14882 sed -e '/^func_append ()$/,/^} # func_append /c\
14883 func_append ()\
14885 eval "${1}+=\\${2}"\
14886 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14887 && mv -f "$cfgfile.tmp" "$cfgfile" \
14888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14889 test 0 -eq $? || _lt_function_replace_fail=:
14892 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14893 func_append_quoted ()\
14895 \ func_quote_for_eval "${2}"\
14896 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14897 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14898 && mv -f "$cfgfile.tmp" "$cfgfile" \
14899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14900 test 0 -eq $? || _lt_function_replace_fail=:
14903 # Save a `func_append' function call where possible by direct use of '+='
14904 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14905 && mv -f "$cfgfile.tmp" "$cfgfile" \
14906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14907 test 0 -eq $? || _lt_function_replace_fail=:
14908 else
14909 # Save a `func_append' function call even when '+=' is not available
14910 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14911 && mv -f "$cfgfile.tmp" "$cfgfile" \
14912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14913 test 0 -eq $? || _lt_function_replace_fail=:
14916 if test x"$_lt_function_replace_fail" = x":"; then
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14918 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14922 mv -f "$cfgfile" "$ofile" ||
14923 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14924 chmod +x "$ofile"
14927 "libpng-config":F) chmod +x libpng-config ;;
14929 esac
14930 done # for ac_tag
14933 as_fn_exit 0
14934 _ACEOF
14935 ac_clean_files=$ac_clean_files_save
14937 test $ac_write_fail = 0 ||
14938 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14941 # configure is writing to config.log, and then calls config.status.
14942 # config.status does its own redirection, appending to config.log.
14943 # Unfortunately, on DOS this fails, as config.log is still kept open
14944 # by configure, so config.status won't be able to write to it; its
14945 # output is simply discarded. So we exec the FD to /dev/null,
14946 # effectively closing config.log, so it can be properly (re)opened and
14947 # appended to by config.status. When coming back to configure, we
14948 # need to make the FD available again.
14949 if test "$no_create" != yes; then
14950 ac_cs_success=:
14951 ac_config_status_args=
14952 test "$silent" = yes &&
14953 ac_config_status_args="$ac_config_status_args --quiet"
14954 exec 5>/dev/null
14955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14956 exec 5>>config.log
14957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14958 # would make configure fail if this is the last instruction.
14959 $ac_cs_success || as_fn_exit 1
14961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}