]> git.saurik.com Git - wxWidgets.git/blob - src/png/configure
Select the entire spin control contents when changing its value.
[wxWidgets.git] / src / png / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libpng 1.5.7.
4 #
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: png-mng-implement@lists.sourceforge.net about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libpng'
572 PACKAGE_TARNAME='libpng'
573 PACKAGE_VERSION='1.5.7'
574 PACKAGE_STRING='libpng 1.5.7'
575 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
576 PACKAGE_URL=''
577
578 ac_unique_file="pngget.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 PNG_ARM_NEON_FALSE
619 PNG_ARM_NEON_TRUE
620 AM_CCASFLAGS
621 binconfigs
622 pkgconfigdir
623 PNGLIB_RELEASE
624 PNGLIB_MINOR
625 PNGLIB_MAJOR
626 PNGLIB_VERSION
627 SYMBOL_PREFIX
628 HAVE_LD_VERSION_SCRIPT_FALSE
629 HAVE_LD_VERSION_SCRIPT_TRUE
630 HAVE_SOLARIS_LD_FALSE
631 HAVE_SOLARIS_LD_TRUE
632 LIBPNG_DEFINES
633 LIBOBJS
634 POW_LIB
635 DFNCPP
636 OTOOL64
637 OTOOL
638 LIPO
639 NMEDIT
640 DSYMUTIL
641 MANIFEST_TOOL
642 RANLIB
643 ac_ct_AR
644 AR
645 NM
646 ac_ct_DUMPBIN
647 DUMPBIN
648 LIBTOOL
649 OBJDUMP
650 DLLTOOL
651 AS
652 LN_S
653 CPP
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 am__fastdepCCAS_FALSE
668 am__fastdepCCAS_TRUE
669 CCASDEPMODE
670 CCASFLAGS
671 CCAS
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_maintainer_mode
756 enable_dependency_tracking
757 with_gnu_ld
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_sysroot
763 enable_libtool_lock
764 with_zlib_prefix
765 with_pkgconfigdir
766 with_binconfigs
767 enable_arm_neon
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CCAS
778 CCASFLAGS
779 CPP
780 CPPFLAGS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures libpng 1.5.7 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of libpng 1.5.7:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-maintainer-mode enable make rules and dependencies not useful
1402 (and sometimes confusing) to the casual installer
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410 --enable-arm-neon Enable ARM NEON optimizations
1411
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1417 both]
1418 --with-sysroot=DIR Search for dependent libraries within DIR
1419 (or the compiler's sysroot if not specified).
1420 --with-zlib-prefix prefix that may have been used in installed zlib
1421 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1422 libdir/pkgconfig)
1423 --with-binconfigs Generate shell libpng-config scripts as well as
1424 pkg-config data [default=yes]
1425
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CCAS assembler compiler command (defaults to CC)
1435 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1436 CPP C preprocessor
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454 case "$ac_dir" in
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464 esac
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1469
1470 case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483 esac
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499 fi
1500
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1503 cat <<\_ACEOF
1504 libpng configure 1.5.7
1505 generated by GNU Autoconf 2.68
1506
1507 Copyright (C) 2010 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1510 _ACEOF
1511 exit
1512 fi
1513
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1517
1518 # ac_fn_c_try_compile LINENO
1519 # --------------------------
1520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550 fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_compile
1555
1556 # ac_fn_c_try_cpp LINENO
1557 # ----------------------
1558 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_cpp ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } > conftest.i && {
1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 }; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_cpp
1592
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 $as_test_x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_link
1638
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668 } # ac_fn_c_check_header_compile
1669
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1674 ac_fn_c_try_run ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705 fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_run
1711
1712 # ac_fn_c_check_func LINENO FUNC VAR
1713 # ----------------------------------
1714 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1715 ac_fn_c_check_func ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807 else
1808 ac_header_compiler=no
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1813
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823 else
1824 ac_header_preproc=no
1825 fi
1826 rm -f conftest.err conftest.i conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1829
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ( $as_echo "## ------------------------------------------------------ ##
1850 ## Report this to png-mng-implement@lists.sourceforge.net ##
1851 ## ------------------------------------------------------ ##"
1852 ) | sed "s/^/$as_me: WARNING: /" >&2
1853 ;;
1854 esac
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 eval "$3=\$ac_header_compiler"
1861 fi
1862 eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_header_mongrel
1869
1870 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1871 # -------------------------------------------
1872 # Tests whether TYPE exists after having included INCLUDES, setting cache
1873 # variable VAR accordingly.
1874 ac_fn_c_check_type ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 eval "$3=no"
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 int
1887 main ()
1888 {
1889 if (sizeof ($2))
1890 return 0;
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 int
1900 main ()
1901 {
1902 if (sizeof (($2)))
1903 return 0;
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909
1910 else
1911 eval "$3=yes"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922 } # ac_fn_c_check_type
1923 cat >config.log <<_ACEOF
1924 This file contains any messages produced by compilers while
1925 running configure, to aid debugging if configure makes a mistake.
1926
1927 It was created by libpng $as_me 1.5.7, which was
1928 generated by GNU Autoconf 2.68. Invocation command line was
1929
1930 $ $0 $@
1931
1932 _ACEOF
1933 exec 5>>config.log
1934 {
1935 cat <<_ASUNAME
1936 ## --------- ##
1937 ## Platform. ##
1938 ## --------- ##
1939
1940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1945
1946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1947 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1948
1949 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1950 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1952 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1953 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1954 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1955 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1956
1957 _ASUNAME
1958
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 $as_echo "PATH: $as_dir"
1965 done
1966 IFS=$as_save_IFS
1967
1968 } >&5
1969
1970 cat >&5 <<_ACEOF
1971
1972
1973 ## ----------- ##
1974 ## Core tests. ##
1975 ## ----------- ##
1976
1977 _ACEOF
1978
1979
1980 # Keep a trace of the command line.
1981 # Strip out --no-create and --no-recursion so they do not pile up.
1982 # Strip out --silent because we don't want to record it for future runs.
1983 # Also quote any args containing shell meta-characters.
1984 # Make two passes to allow for proper duplicate-argument suppression.
1985 ac_configure_args=
1986 ac_configure_args0=
1987 ac_configure_args1=
1988 ac_must_keep_next=false
1989 for ac_pass in 1 2
1990 do
1991 for ac_arg
1992 do
1993 case $ac_arg in
1994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1996 | -silent | --silent | --silen | --sile | --sil)
1997 continue ;;
1998 *\'*)
1999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2000 esac
2001 case $ac_pass in
2002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2003 2)
2004 as_fn_append ac_configure_args1 " '$ac_arg'"
2005 if test $ac_must_keep_next = true; then
2006 ac_must_keep_next=false # Got value, back to normal.
2007 else
2008 case $ac_arg in
2009 *=* | --config-cache | -C | -disable-* | --disable-* \
2010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2012 | -with-* | --with-* | -without-* | --without-* | --x)
2013 case "$ac_configure_args0 " in
2014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2015 esac
2016 ;;
2017 -* ) ac_must_keep_next=true ;;
2018 esac
2019 fi
2020 as_fn_append ac_configure_args " '$ac_arg'"
2021 ;;
2022 esac
2023 done
2024 done
2025 { ac_configure_args0=; unset ac_configure_args0;}
2026 { ac_configure_args1=; unset ac_configure_args1;}
2027
2028 # When interrupted or exit'd, cleanup temporary files, and complete
2029 # config.log. We remove comments because anyway the quotes in there
2030 # would cause problems or look ugly.
2031 # WARNING: Use '\'' to represent an apostrophe within the trap.
2032 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2033 trap 'exit_status=$?
2034 # Save into config.log some information that might help in debugging.
2035 {
2036 echo
2037
2038 $as_echo "## ---------------- ##
2039 ## Cache variables. ##
2040 ## ---------------- ##"
2041 echo
2042 # The following way of writing the cache mishandles newlines in values,
2043 (
2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in #(
2047 *${as_nl}*)
2048 case $ac_var in #(
2049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2050 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2051 esac
2052 case $ac_var in #(
2053 _ | IFS | as_nl) ;; #(
2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2055 *) { eval $ac_var=; unset $ac_var;} ;;
2056 esac ;;
2057 esac
2058 done
2059 (set) 2>&1 |
2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061 *${as_nl}ac_space=\ *)
2062 sed -n \
2063 "s/'\''/'\''\\\\'\'''\''/g;
2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065 ;; #(
2066 *)
2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2068 ;;
2069 esac |
2070 sort
2071 )
2072 echo
2073
2074 $as_echo "## ----------------- ##
2075 ## Output variables. ##
2076 ## ----------------- ##"
2077 echo
2078 for ac_var in $ac_subst_vars
2079 do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2087
2088 if test -n "$ac_subst_files"; then
2089 $as_echo "## ------------------- ##
2090 ## File substitutions. ##
2091 ## ------------------- ##"
2092 echo
2093 for ac_var in $ac_subst_files
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102 fi
2103
2104 if test -s confdefs.h; then
2105 $as_echo "## ----------- ##
2106 ## confdefs.h. ##
2107 ## ----------- ##"
2108 echo
2109 cat confdefs.h
2110 echo
2111 fi
2112 test "$ac_signal" != 0 &&
2113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
2115 } >&5
2116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2118 exit $exit_status
2119 ' 0
2120 for ac_signal in 1 2 13 15; do
2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 done
2123 ac_signal=0
2124
2125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2126 rm -f -r conftest* confdefs.h
2127
2128 $as_echo "/* confdefs.h */" > confdefs.h
2129
2130 # Predefined preprocessor variables.
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_NAME "$PACKAGE_NAME"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_STRING "$PACKAGE_STRING"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_URL "$PACKAGE_URL"
2154 _ACEOF
2155
2156
2157 # Let the site file select an alternate cache file if it wants to.
2158 # Prefer an explicitly selected file to automatically selected ones.
2159 ac_site_file1=NONE
2160 ac_site_file2=NONE
2161 if test -n "$CONFIG_SITE"; then
2162 # We do not want a PATH search for config.site.
2163 case $CONFIG_SITE in #((
2164 -*) ac_site_file1=./$CONFIG_SITE;;
2165 */*) ac_site_file1=$CONFIG_SITE;;
2166 *) ac_site_file1=./$CONFIG_SITE;;
2167 esac
2168 elif test "x$prefix" != xNONE; then
2169 ac_site_file1=$prefix/share/config.site
2170 ac_site_file2=$prefix/etc/config.site
2171 else
2172 ac_site_file1=$ac_default_prefix/share/config.site
2173 ac_site_file2=$ac_default_prefix/etc/config.site
2174 fi
2175 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176 do
2177 test "x$ac_site_file" = xNONE && continue
2178 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2180 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2181 sed 's/^/| /' "$ac_site_file" >&5
2182 . "$ac_site_file" \
2183 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 as_fn_error $? "failed to load site script $ac_site_file
2186 See \`config.log' for more details" "$LINENO" 5; }
2187 fi
2188 done
2189
2190 if test -r "$cache_file"; then
2191 # Some versions of bash will fail to source /dev/null (special files
2192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2195 $as_echo "$as_me: loading cache $cache_file" >&6;}
2196 case $cache_file in
2197 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2198 *) . "./$cache_file";;
2199 esac
2200 fi
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2203 $as_echo "$as_me: creating cache $cache_file" >&6;}
2204 >$cache_file
2205 fi
2206
2207 # Check that the precious variables saved in the cache have kept the same
2208 # value.
2209 ac_cache_corrupted=false
2210 for ac_var in $ac_precious_vars; do
2211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2212 eval ac_new_set=\$ac_env_${ac_var}_set
2213 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2214 eval ac_new_val=\$ac_env_${ac_var}_value
2215 case $ac_old_set,$ac_new_set in
2216 set,)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2218 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,set)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,);;
2225 *)
2226 if test "x$ac_old_val" != "x$ac_new_val"; then
2227 # differences in whitespace do not lead to failure.
2228 ac_old_val_w=`echo x $ac_old_val`
2229 ac_new_val_w=`echo x $ac_new_val`
2230 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2232 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2233 ac_cache_corrupted=:
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2236 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2237 eval $ac_var=\$ac_old_val
2238 fi
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2240 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2242 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2243 fi;;
2244 esac
2245 # Pass precious variables to config.status.
2246 if test "$ac_new_set" = set; then
2247 case $ac_new_val in
2248 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 *) ac_arg=$ac_var=$ac_new_val ;;
2250 esac
2251 case " $ac_configure_args " in
2252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2253 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2254 esac
2255 fi
2256 done
2257 if $ac_cache_corrupted; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2261 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2262 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2263 fi
2264 ## -------------------- ##
2265 ## Main body of script. ##
2266 ## -------------------- ##
2267
2268 ac_ext=c
2269 ac_cpp='$CPP $CPPFLAGS'
2270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273
2274
2275 am__api_version='1.11'
2276
2277 ac_aux_dir=
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
2283 elif test -f "$ac_dir/install.sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
2287 elif test -f "$ac_dir/shtool"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2291 fi
2292 done
2293 if test -z "$ac_aux_dir"; then
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2295 fi
2296
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
2305
2306 # Find a good install program. We prefer a C program (faster),
2307 # so one script is as good as another. But avoid the broken or
2308 # incompatible versions:
2309 # SysV /etc/install, /usr/sbin/install
2310 # SunOS /usr/etc/install
2311 # IRIX /sbin/install
2312 # AIX /bin/install
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317 # OS/2's system install, which has a completely different semantic
2318 # ./install, which can be erroneously created by make from ./install.sh.
2319 # Reject install programs that cannot install multiple files.
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2322 if test -z "$INSTALL"; then
2323 if ${ac_cv_path_install+:} false; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 # Account for people who put trailing slashes in PATH elements.
2332 case $as_dir/ in #((
2333 ./ | .// | /[cC]/* | \
2334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336 /usr/ucb/* ) ;;
2337 *)
2338 # OSF1 and SCO ODT 3.0 have their own names for install.
2339 # Don't use installbsd from OSF since it installs stuff as root
2340 # by default.
2341 for ac_prog in ginstall scoinst install; do
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2344 if test $ac_prog = install &&
2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # AIX install. It has an incompatible calling convention.
2347 :
2348 elif test $ac_prog = install &&
2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # program-specific install script used by HP pwplus--don't use.
2351 :
2352 else
2353 rm -rf conftest.one conftest.two conftest.dir
2354 echo one > conftest.one
2355 echo two > conftest.two
2356 mkdir conftest.dir
2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358 test -s conftest.one && test -s conftest.two &&
2359 test -s conftest.dir/conftest.one &&
2360 test -s conftest.dir/conftest.two
2361 then
2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363 break 3
2364 fi
2365 fi
2366 fi
2367 done
2368 done
2369 ;;
2370 esac
2371
2372 done
2373 IFS=$as_save_IFS
2374
2375 rm -rf conftest.one conftest.two conftest.dir
2376
2377 fi
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2380 else
2381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
2383 # break other packages using the cache if that directory is
2384 # removed, or if the value is a relative name.
2385 INSTALL=$ac_install_sh
2386 fi
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389 $as_echo "$INSTALL" >&6; }
2390
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400 $as_echo_n "checking whether build environment is sane... " >&6; }
2401 # Just in case
2402 sleep 1
2403 echo timestamp > conftest.file
2404 # Reject unsafe characters in $srcdir or the absolute working directory
2405 # name. Accept space and tab only in the latter.
2406 am_lf='
2407 '
2408 case `pwd` in
2409 *[\\\"\#\$\&\'\`$am_lf]*)
2410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2411 esac
2412 case $srcdir in
2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2414 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2415 esac
2416
2417 # Do `set' in a subshell so we don't clobber the current shell's
2418 # arguments. Must try -L first in case configure is actually a
2419 # symlink; some systems play weird games with the mod time of symlinks
2420 # (eg FreeBSD returns the mod time of the symlink's containing
2421 # directory).
2422 if (
2423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424 if test "$*" = "X"; then
2425 # -L didn't work.
2426 set X `ls -t "$srcdir/configure" conftest.file`
2427 fi
2428 rm -f conftest.file
2429 if test "$*" != "X $srcdir/configure conftest.file" \
2430 && test "$*" != "X conftest.file $srcdir/configure"; then
2431
2432 # If neither matched, then we have a broken ls. This can happen
2433 # if, for instance, CONFIG_SHELL is bash and it inherits a
2434 # broken ls alias from the environment. This has actually
2435 # happened. Such a system could not be considered "sane".
2436 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2437 alias in your environment" "$LINENO" 5
2438 fi
2439
2440 test "$2" = conftest.file
2441 )
2442 then
2443 # Ok.
2444 :
2445 else
2446 as_fn_error $? "newly created file is older than distributed files!
2447 Check your system clock" "$LINENO" 5
2448 fi
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2450 $as_echo "yes" >&6; }
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461 # expand $ac_aux_dir to an absolute path
2462 am_aux_dir=`cd $ac_aux_dir && pwd`
2463
2464 if test x"${MISSING+set}" != xset; then
2465 case $am_aux_dir in
2466 *\ * | *\ *)
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2468 *)
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470 esac
2471 fi
2472 # Use eval to expand $SHELL
2473 if eval "$MISSING --run true"; then
2474 am_missing_run="$MISSING --run "
2475 else
2476 am_missing_run=
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2478 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2479 fi
2480
2481 if test x"${install_sh}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2485 *)
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2487 esac
2488 fi
2489
2490 # Installed binaries are usually stripped using `strip' when the user
2491 # run `make install-strip'. However `strip' might not be the right
2492 # tool to use in cross-compilation environments, therefore Automake
2493 # will honor the `STRIP' environment variable to overrule this program.
2494 if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 STRIP=$ac_cv_prog_STRIP
2524 if test -n "$STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526 $as_echo "$STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533 fi
2534 if test -z "$ac_cv_prog_STRIP"; then
2535 ac_ct_STRIP=$STRIP
2536 # Extract the first word of "strip", so it can be a program name with args.
2537 set dummy strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_ac_ct_STRIP="strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564 if test -n "$ac_ct_STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566 $as_echo "$ac_ct_STRIP" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572 if test "x$ac_ct_STRIP" = x; then
2573 STRIP=":"
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581 STRIP=$ac_ct_STRIP
2582 fi
2583 else
2584 STRIP="$ac_cv_prog_STRIP"
2585 fi
2586
2587 fi
2588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592 if test -z "$MKDIR_P"; then
2593 if ${ac_cv_path_mkdir+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in mkdir gmkdir; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609 break 3;;
2610 esac
2611 done
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617
2618 test -d ./--version && rmdir ./--version
2619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 MKDIR_P="$ac_install_sh -d"
2627 fi
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630 $as_echo "$MKDIR_P" >&6; }
2631
2632 mkdir_p="$MKDIR_P"
2633 case $mkdir_p in
2634 [\\/$]* | ?:[\\/]*) ;;
2635 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2636 esac
2637
2638 for ac_prog in gawk mawk nawk awk
2639 do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_AWK+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_AWK="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 AWK=$ac_cv_prog_AWK
2668 if test -n "$AWK"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670 $as_echo "$AWK" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 test -n "$AWK" && break
2678 done
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2681 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682 set x ${MAKE-make}
2683 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2684 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat >conftest.make <<\_ACEOF
2688 SHELL = /bin/sh
2689 all:
2690 @echo '@@@%%%=$(MAKE)=@@@%%%'
2691 _ACEOF
2692 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2693 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 *@@@%%%=?*=@@@%%%*)
2695 eval ac_cv_prog_make_${ac_make}_set=yes;;
2696 *)
2697 eval ac_cv_prog_make_${ac_make}_set=no;;
2698 esac
2699 rm -f conftest.make
2700 fi
2701 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703 $as_echo "yes" >&6; }
2704 SET_MAKE=
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 SET_MAKE="MAKE=${MAKE-make}"
2709 fi
2710
2711 rm -rf .tst 2>/dev/null
2712 mkdir .tst 2>/dev/null
2713 if test -d .tst; then
2714 am__leading_dot=.
2715 else
2716 am__leading_dot=_
2717 fi
2718 rmdir .tst 2>/dev/null
2719
2720 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2722 # is not polluted with repeated "-I."
2723 am__isrc=' -I$(srcdir)'
2724 # test to see if srcdir already configured
2725 if test -f $srcdir/config.status; then
2726 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2727 fi
2728 fi
2729
2730 # test whether we have cygpath
2731 if test -z "$CYGPATH_W"; then
2732 if (cygpath --version) >/dev/null 2>/dev/null; then
2733 CYGPATH_W='cygpath -w'
2734 else
2735 CYGPATH_W=echo
2736 fi
2737 fi
2738
2739
2740 # Define the identity of the package.
2741 PACKAGE='libpng'
2742 VERSION='1.5.7'
2743
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE "$PACKAGE"
2747 _ACEOF
2748
2749
2750 cat >>confdefs.h <<_ACEOF
2751 #define VERSION "$VERSION"
2752 _ACEOF
2753
2754 # Some tools Automake needs.
2755
2756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2757
2758
2759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2760
2761
2762 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2763
2764
2765 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2766
2767
2768 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2769
2770 # We need awk for the "check" target. The system "awk" is bad on
2771 # some platforms.
2772 # Always define AMTAR for backward compatibility.
2773
2774 AMTAR=${AMTAR-"${am_missing_run}tar"}
2775
2776 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2777
2778
2779
2780
2781
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2784 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2785 # Check whether --enable-maintainer-mode was given.
2786 if test "${enable_maintainer_mode+set}" = set; then :
2787 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2788 else
2789 USE_MAINTAINER_MODE=no
2790 fi
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2793 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2794 if test $USE_MAINTAINER_MODE = yes; then
2795 MAINTAINER_MODE_TRUE=
2796 MAINTAINER_MODE_FALSE='#'
2797 else
2798 MAINTAINER_MODE_TRUE='#'
2799 MAINTAINER_MODE_FALSE=
2800 fi
2801
2802 MAINT=$MAINTAINER_MODE_TRUE
2803
2804
2805
2806 PNGLIB_VERSION=1.5.7
2807 PNGLIB_MAJOR=1
2808 PNGLIB_MINOR=5
2809 PNGLIB_RELEASE=7
2810
2811
2812
2813 ac_config_headers="$ac_config_headers config.h"
2814
2815
2816 # Checks for programs.
2817 ac_ext=c
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2859 $as_echo "$CC" >&6; }
2860 else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865
2866 fi
2867 if test -z "$ac_cv_prog_CC"; then
2868 ac_ct_CC=$CC
2869 # Extract the first word of "gcc", so it can be a program name with args.
2870 set dummy gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_ac_ct_CC="gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897 if test -n "$ac_ct_CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2899 $as_echo "$ac_ct_CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905 if test "x$ac_ct_CC" = x; then
2906 CC=""
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned=yes ;;
2913 esac
2914 CC=$ac_ct_CC
2915 fi
2916 else
2917 CC="$ac_cv_prog_CC"
2918 fi
2919
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}cc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 fi
2961 if test -z "$CC"; then
2962 # Extract the first word of "cc", so it can be a program name with args.
2963 set dummy cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 ac_prog_rejected=no
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2981 ac_prog_rejected=yes
2982 continue
2983 fi
2984 ac_cv_prog_CC="cc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 if test $ac_prog_rejected = yes; then
2993 # We found a bogon in the path, so make sure we never use it.
2994 set dummy $ac_cv_prog_CC
2995 shift
2996 if test $# != 0; then
2997 # We chose a different compiler from the bogus one.
2998 # However, it has the same basename, so the bogon will be chosen
2999 # first if we set CC to just the basename; use the full file name.
3000 shift
3001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3002 fi
3003 fi
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 fi
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 for ac_prog in cl.exe
3020 do
3021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 test -n "$CC" && break
3059 done
3060 fi
3061 if test -z "$CC"; then
3062 ac_ct_CC=$CC
3063 for ac_prog in cl.exe
3064 do
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC="$ac_prog"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102 test -n "$ac_ct_CC" && break
3103 done
3104
3105 if test "x$ac_ct_CC" = x; then
3106 CC=""
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 CC=$ac_ct_CC
3115 fi
3116 fi
3117
3118 fi
3119
3120
3121 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error $? "no acceptable C compiler found in \$PATH
3124 See \`config.log' for more details" "$LINENO" 5; }
3125
3126 # Provide some information about the compiler.
3127 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3128 set X $ac_compile
3129 ac_compiler=$2
3130 for ac_option in --version -v -V -qversion; do
3131 { { ac_try="$ac_compiler $ac_option >&5"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3139 ac_status=$?
3140 if test -s conftest.err; then
3141 sed '10a\
3142 ... rest of stderr output deleted ...
3143 10q' conftest.err >conftest.er1
3144 cat conftest.er1 >&5
3145 fi
3146 rm -f conftest.er1 conftest.err
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }
3149 done
3150
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3153
3154 int
3155 main ()
3156 {
3157
3158 ;
3159 return 0;
3160 }
3161 _ACEOF
3162 ac_clean_files_save=$ac_clean_files
3163 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3164 # Try to create an executable without -o first, disregard a.out.
3165 # It will help us diagnose broken compilers, and finding out an intuition
3166 # of exeext.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168 $as_echo_n "checking whether the C compiler works... " >&6; }
3169 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3170
3171 # The possible output files:
3172 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3173
3174 ac_rmfiles=
3175 for ac_file in $ac_files
3176 do
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3179 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3180 esac
3181 done
3182 rm -f $ac_rmfiles
3183
3184 if { { ac_try="$ac_link_default"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link_default") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3198 # so that the user can short-circuit this test for compilers unknown to
3199 # Autoconf.
3200 for ac_file in $ac_files ''
3201 do
3202 test -f "$ac_file" || continue
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3205 ;;
3206 [ab].out )
3207 # We found the default executable, but exeext='' is most
3208 # certainly right.
3209 break;;
3210 *.* )
3211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3212 then :; else
3213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 fi
3215 # We set ac_cv_exeext here because the later test for it is not
3216 # safe: cross compilers may not add the suffix if given an `-o'
3217 # argument, so we may need to know it at that point already.
3218 # Even if this section looks crufty: it has the advantage of
3219 # actually working.
3220 break;;
3221 * )
3222 break;;
3223 esac
3224 done
3225 test "$ac_cv_exeext" = no && ac_cv_exeext=
3226
3227 else
3228 ac_file=''
3229 fi
3230 if test -z "$ac_file"; then :
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 $as_echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 as_fn_error 77 "C compiler cannot create executables
3239 See \`config.log' for more details" "$LINENO" 5; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3245 $as_echo_n "checking for C compiler default output file name... " >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3247 $as_echo "$ac_file" >&6; }
3248 ac_exeext=$ac_cv_exeext
3249
3250 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3251 ac_clean_files=$ac_clean_files_save
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3253 $as_echo_n "checking for suffix of executables... " >&6; }
3254 if { { ac_try="$ac_link"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3267 # work properly (i.e., refer to `conftest.exe'), while it won't with
3268 # `rm'.
3269 for ac_file in conftest.exe conftest conftest.*; do
3270 test -f "$ac_file" || continue
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 break;;
3275 * ) break;;
3276 esac
3277 done
3278 else
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details" "$LINENO" 5; }
3283 fi
3284 rm -f conftest conftest$ac_cv_exeext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3287
3288 rm -f conftest.$ac_ext
3289 EXEEXT=$ac_cv_exeext
3290 ac_exeext=$EXEEXT
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293 #include <stdio.h>
3294 int
3295 main ()
3296 {
3297 FILE *f = fopen ("conftest.out", "w");
3298 return ferror (f) || fclose (f) != 0;
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 ac_clean_files="$ac_clean_files conftest.out"
3305 # Check that the compiler produces executables we can run. If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3308 $as_echo_n "checking whether we are cross compiling... " >&6; }
3309 if test "$cross_compiling" != yes; then
3310 { { ac_try="$ac_link"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3321 if { ac_try='./conftest$ac_cv_exeext'
3322 { { case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_try") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; }; then
3332 cross_compiling=no
3333 else
3334 if test "$cross_compiling" = maybe; then
3335 cross_compiling=yes
3336 else
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot run C compiled programs.
3340 If you meant to cross compile, use \`--host'.
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343 fi
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3346 $as_echo "$cross_compiling" >&6; }
3347
3348 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3349 ac_clean_files=$ac_clean_files_save
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3351 $as_echo_n "checking for suffix of object files... " >&6; }
3352 if ${ac_cv_objext+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357
3358 int
3359 main ()
3360 {
3361
3362 ;
3363 return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.o conftest.obj
3367 if { { ac_try="$ac_compile"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compile") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }; then :
3378 for ac_file in conftest.o conftest.obj conftest.*; do
3379 test -f "$ac_file" || continue;
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3383 break;;
3384 esac
3385 done
3386 else
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot compute suffix of object files: cannot compile
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 fi
3395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3398 $as_echo "$ac_cv_objext" >&6; }
3399 OBJEXT=$ac_cv_objext
3400 ac_objext=$OBJEXT
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3402 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3403 if ${ac_cv_c_compiler_gnu+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3408
3409 int
3410 main ()
3411 {
3412 #ifndef __GNUC__
3413 choke me
3414 #endif
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 if ac_fn_c_try_compile "$LINENO"; then :
3421 ac_compiler_gnu=yes
3422 else
3423 ac_compiler_gnu=no
3424 fi
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3427
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3430 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3431 if test $ac_compiler_gnu = yes; then
3432 GCC=yes
3433 else
3434 GCC=
3435 fi
3436 ac_test_CFLAGS=${CFLAGS+set}
3437 ac_save_CFLAGS=$CFLAGS
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3439 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3440 if ${ac_cv_prog_cc_g+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 ac_save_c_werror_flag=$ac_c_werror_flag
3444 ac_c_werror_flag=yes
3445 ac_cv_prog_cc_g=no
3446 CFLAGS="-g"
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main ()
3452 {
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_cv_prog_cc_g=yes
3460 else
3461 CFLAGS=""
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474
3475 else
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3477 CFLAGS="-g"
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_g=yes
3491 fi
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3500 $as_echo "$ac_cv_prog_cc_g" >&6; }
3501 if test "$ac_test_CFLAGS" = set; then
3502 CFLAGS=$ac_save_CFLAGS
3503 elif test $ac_cv_prog_cc_g = yes; then
3504 if test "$GCC" = yes; then
3505 CFLAGS="-g -O2"
3506 else
3507 CFLAGS="-g"
3508 fi
3509 else
3510 if test "$GCC" = yes; then
3511 CFLAGS="-O2"
3512 else
3513 CFLAGS=
3514 fi
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3517 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3518 if ${ac_cv_prog_cc_c89+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 ac_cv_prog_cc_c89=no
3522 ac_save_CC=$CC
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 #include <stdarg.h>
3526 #include <stdio.h>
3527 #include <sys/types.h>
3528 #include <sys/stat.h>
3529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530 struct buf { int x; };
3531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532 static char *e (p, i)
3533 char **p;
3534 int i;
3535 {
3536 return p[i];
3537 }
3538 static char *f (char * (*g) (char **, int), char **p, ...)
3539 {
3540 char *s;
3541 va_list v;
3542 va_start (v,p);
3543 s = g (p, va_arg (v,int));
3544 va_end (v);
3545 return s;
3546 }
3547
3548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
3551 as 'x'. The following induces an error, until -std is added to get
3552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
3554 that's true only with -std. */
3555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556
3557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3559 #define FOO(x) 'x'
3560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561
3562 int test (int i, double x);
3563 struct s1 {int (*f) (int a);};
3564 struct s2 {int (*f) (double a);};
3565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3566 int argc;
3567 char **argv;
3568 int
3569 main ()
3570 {
3571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3578 do
3579 CC="$ac_save_CC $ac_arg"
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_c89=$ac_arg
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext
3584 test "x$ac_cv_prog_cc_c89" != "xno" && break
3585 done
3586 rm -f conftest.$ac_ext
3587 CC=$ac_save_CC
3588
3589 fi
3590 # AC_CACHE_VAL
3591 case "x$ac_cv_prog_cc_c89" in
3592 x)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3594 $as_echo "none needed" >&6; } ;;
3595 xno)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3597 $as_echo "unsupported" >&6; } ;;
3598 *)
3599 CC="$CC $ac_cv_prog_cc_c89"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3601 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3602 esac
3603 if test "x$ac_cv_prog_cc_c89" != xno; then :
3604
3605 fi
3606
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612 DEPDIR="${am__leading_dot}deps"
3613
3614 ac_config_commands="$ac_config_commands depfiles"
3615
3616
3617 am_make=${MAKE-make}
3618 cat > confinc << 'END'
3619 am__doit:
3620 @echo this is the am__doit target
3621 .PHONY: am__doit
3622 END
3623 # If we don't find an include directive, just comment out the code.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3625 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3626 am__include="#"
3627 am__quote=
3628 _am_result=none
3629 # First try GNU make style include.
3630 echo "include confinc" > confmf
3631 # Ignore all kinds of additional output from `make'.
3632 case `$am_make -s -f confmf 2> /dev/null` in #(
3633 *the\ am__doit\ target*)
3634 am__include=include
3635 am__quote=
3636 _am_result=GNU
3637 ;;
3638 esac
3639 # Now try BSD make style include.
3640 if test "$am__include" = "#"; then
3641 echo '.include "confinc"' > confmf
3642 case `$am_make -s -f confmf 2> /dev/null` in #(
3643 *the\ am__doit\ target*)
3644 am__include=.include
3645 am__quote="\""
3646 _am_result=BSD
3647 ;;
3648 esac
3649 fi
3650
3651
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3653 $as_echo "$_am_result" >&6; }
3654 rm -f confinc confmf
3655
3656 # Check whether --enable-dependency-tracking was given.
3657 if test "${enable_dependency_tracking+set}" = set; then :
3658 enableval=$enable_dependency_tracking;
3659 fi
3660
3661 if test "x$enable_dependency_tracking" != xno; then
3662 am_depcomp="$ac_aux_dir/depcomp"
3663 AMDEPBACKSLASH='\'
3664 fi
3665 if test "x$enable_dependency_tracking" != xno; then
3666 AMDEP_TRUE=
3667 AMDEP_FALSE='#'
3668 else
3669 AMDEP_TRUE='#'
3670 AMDEP_FALSE=
3671 fi
3672
3673
3674
3675 depcc="$CC" am_compiler_list=
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3678 $as_echo_n "checking dependency style of $depcc... " >&6; }
3679 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3683 # We make a subdir and do the tests there. Otherwise we can end up
3684 # making bogus files that we don't know about and never remove. For
3685 # instance it was reported that on HP-UX the gcc test will end up
3686 # making a dummy file named `D' -- because `-MD' means `put the output
3687 # in D'.
3688 mkdir conftest.dir
3689 # Copy depcomp to subdir because otherwise we won't find it if we're
3690 # using a relative directory.
3691 cp "$am_depcomp" conftest.dir
3692 cd conftest.dir
3693 # We will build objects and dependencies in a subdirectory because
3694 # it helps to detect inapplicable dependency modes. For instance
3695 # both Tru64's cc and ICC support -MD to output dependencies as a
3696 # side effect of compilation, but ICC will put the dependencies in
3697 # the current directory while Tru64 will put them in the object
3698 # directory.
3699 mkdir sub
3700
3701 am_cv_CC_dependencies_compiler_type=none
3702 if test "$am_compiler_list" = ""; then
3703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3704 fi
3705 am__universal=false
3706 case " $depcc " in #(
3707 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3708 esac
3709
3710 for depmode in $am_compiler_list; do
3711 # Setup a source with many dependencies, because some compilers
3712 # like to wrap large dependency lists on column 80 (with \), and
3713 # we should not choose a depcomp mode which is confused by this.
3714 #
3715 # We need to recreate these files for each test, as the compiler may
3716 # overwrite some of them when testing with obscure command lines.
3717 # This happens at least with the AIX C compiler.
3718 : > sub/conftest.c
3719 for i in 1 2 3 4 5 6; do
3720 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3721 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3722 # Solaris 8's {/usr,}/bin/sh.
3723 touch sub/conftst$i.h
3724 done
3725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3726
3727 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3728 # mode. It turns out that the SunPro C++ compiler does not properly
3729 # handle `-M -o', and we need to detect this. Also, some Intel
3730 # versions had trouble with output in subdirs
3731 am__obj=sub/conftest.${OBJEXT-o}
3732 am__minus_obj="-o $am__obj"
3733 case $depmode in
3734 gcc)
3735 # This depmode causes a compiler race in universal mode.
3736 test "$am__universal" = false || continue
3737 ;;
3738 nosideeffect)
3739 # after this tag, mechanisms are not by side-effect, so they'll
3740 # only be used when explicitly requested
3741 if test "x$enable_dependency_tracking" = xyes; then
3742 continue
3743 else
3744 break
3745 fi
3746 ;;
3747 msvisualcpp | msvcmsys)
3748 # This compiler won't grok `-c -o', but also, the minuso test has
3749 # not run yet. These depmodes are late enough in the game, and
3750 # so weak that their functioning should not be impacted.
3751 am__obj=conftest.${OBJEXT-o}
3752 am__minus_obj=
3753 ;;
3754 none) break ;;
3755 esac
3756 if depmode=$depmode \
3757 source=sub/conftest.c object=$am__obj \
3758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3759 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3760 >/dev/null 2>conftest.err &&
3761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3763 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3765 # icc doesn't choke on unknown options, it will just issue warnings
3766 # or remarks (even with -Werror). So we grep stderr for any message
3767 # that says an option was ignored or not supported.
3768 # When given -MP, icc 7.0 and 7.1 complain thusly:
3769 # icc: Command line warning: ignoring option '-M'; no argument required
3770 # The diagnosis changed in icc 8.0:
3771 # icc: Command line remark: option '-MP' not supported
3772 if (grep 'ignoring option' conftest.err ||
3773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3774 am_cv_CC_dependencies_compiler_type=$depmode
3775 break
3776 fi
3777 fi
3778 done
3779
3780 cd ..
3781 rm -rf conftest.dir
3782 else
3783 am_cv_CC_dependencies_compiler_type=none
3784 fi
3785
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3788 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3790
3791 if
3792 test "x$enable_dependency_tracking" != xno \
3793 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3794 am__fastdepCC_TRUE=
3795 am__fastdepCC_FALSE='#'
3796 else
3797 am__fastdepCC_TRUE='#'
3798 am__fastdepCC_FALSE=
3799 fi
3800
3801
3802 # By default we simply use the C compiler to build assembly code.
3803
3804 test "${CCAS+set}" = set || CCAS=$CC
3805 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3806
3807
3808
3809 depcc="$CCAS" am_compiler_list=
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named `D' -- because `-MD' means `put the output
3821 # in D'.
3822 mkdir conftest.dir
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3826 cd conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3832 # directory.
3833 mkdir sub
3834
3835 am_cv_CCAS_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838 fi
3839 am__universal=false
3840
3841
3842 for depmode in $am_compiler_list; do
3843 # Setup a source with many dependencies, because some compilers
3844 # like to wrap large dependency lists on column 80 (with \), and
3845 # we should not choose a depcomp mode which is confused by this.
3846 #
3847 # We need to recreate these files for each test, as the compiler may
3848 # overwrite some of them when testing with obscure command lines.
3849 # This happens at least with the AIX C compiler.
3850 : > sub/conftest.c
3851 for i in 1 2 3 4 5 6; do
3852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3854 # Solaris 8's {/usr,}/bin/sh.
3855 touch sub/conftst$i.h
3856 done
3857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3858
3859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3860 # mode. It turns out that the SunPro C++ compiler does not properly
3861 # handle `-M -o', and we need to detect this. Also, some Intel
3862 # versions had trouble with output in subdirs
3863 am__obj=sub/conftest.${OBJEXT-o}
3864 am__minus_obj="-o $am__obj"
3865 case $depmode in
3866 gcc)
3867 # This depmode causes a compiler race in universal mode.
3868 test "$am__universal" = false || continue
3869 ;;
3870 nosideeffect)
3871 # after this tag, mechanisms are not by side-effect, so they'll
3872 # only be used when explicitly requested
3873 if test "x$enable_dependency_tracking" = xyes; then
3874 continue
3875 else
3876 break
3877 fi
3878 ;;
3879 msvisualcpp | msvcmsys)
3880 # This compiler won't grok `-c -o', but also, the minuso test has
3881 # not run yet. These depmodes are late enough in the game, and
3882 # so weak that their functioning should not be impacted.
3883 am__obj=conftest.${OBJEXT-o}
3884 am__minus_obj=
3885 ;;
3886 none) break ;;
3887 esac
3888 if depmode=$depmode \
3889 source=sub/conftest.c object=$am__obj \
3890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3892 >/dev/null 2>conftest.err &&
3893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3897 # icc doesn't choke on unknown options, it will just issue warnings
3898 # or remarks (even with -Werror). So we grep stderr for any message
3899 # that says an option was ignored or not supported.
3900 # When given -MP, icc 7.0 and 7.1 complain thusly:
3901 # icc: Command line warning: ignoring option '-M'; no argument required
3902 # The diagnosis changed in icc 8.0:
3903 # icc: Command line remark: option '-MP' not supported
3904 if (grep 'ignoring option' conftest.err ||
3905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3906 am_cv_CCAS_dependencies_compiler_type=$depmode
3907 break
3908 fi
3909 fi
3910 done
3911
3912 cd ..
3913 rm -rf conftest.dir
3914 else
3915 am_cv_CCAS_dependencies_compiler_type=none
3916 fi
3917
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3920 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3921 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3922
3923 if
3924 test "x$enable_dependency_tracking" != xno \
3925 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3926 am__fastdepCCAS_TRUE=
3927 am__fastdepCCAS_FALSE='#'
3928 else
3929 am__fastdepCCAS_TRUE='#'
3930 am__fastdepCCAS_FALSE=
3931 fi
3932
3933
3934 # Make sure we can run config.sub.
3935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3936 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3939 $as_echo_n "checking build system type... " >&6; }
3940 if ${ac_cv_build+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 ac_build_alias=$build_alias
3944 test "x$ac_build_alias" = x &&
3945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3946 test "x$ac_build_alias" = x &&
3947 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3948 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3949 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3953 $as_echo "$ac_cv_build" >&6; }
3954 case $ac_cv_build in
3955 *-*-*) ;;
3956 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3957 esac
3958 build=$ac_cv_build
3959 ac_save_IFS=$IFS; IFS='-'
3960 set x $ac_cv_build
3961 shift
3962 build_cpu=$1
3963 build_vendor=$2
3964 shift; shift
3965 # Remember, the first character of IFS is used to create $*,
3966 # except with old shells:
3967 build_os=$*
3968 IFS=$ac_save_IFS
3969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3973 $as_echo_n "checking host system type... " >&6; }
3974 if ${ac_cv_host+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test "x$host_alias" = x; then
3978 ac_cv_host=$ac_cv_build
3979 else
3980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3982 fi
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3986 $as_echo "$ac_cv_host" >&6; }
3987 case $ac_cv_host in
3988 *-*-*) ;;
3989 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3990 esac
3991 host=$ac_cv_host
3992 ac_save_IFS=$IFS; IFS='-'
3993 set x $ac_cv_host
3994 shift
3995 host_cpu=$1
3996 host_vendor=$2
3997 shift; shift
3998 # Remember, the first character of IFS is used to create $*,
3999 # except with old shells:
4000 host_os=$*
4001 IFS=$ac_save_IFS
4002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4003
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4006 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4007 if ${ac_cv_path_SED+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4011 for ac_i in 1 2 3 4 5 6 7; do
4012 ac_script="$ac_script$as_nl$ac_script"
4013 done
4014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4015 { ac_script=; unset ac_script;}
4016 if test -z "$SED"; then
4017 ac_path_SED_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_prog in sed gsed; do
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4027 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4028 # Check for GNU ac_path_SED and select it if it is found.
4029 # Check for GNU $ac_path_SED
4030 case `"$ac_path_SED" --version 2>&1` in
4031 *GNU*)
4032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4033 *)
4034 ac_count=0
4035 $as_echo_n 0123456789 >"conftest.in"
4036 while :
4037 do
4038 cat "conftest.in" "conftest.in" >"conftest.tmp"
4039 mv "conftest.tmp" "conftest.in"
4040 cp "conftest.in" "conftest.nl"
4041 $as_echo '' >> "conftest.nl"
4042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044 as_fn_arith $ac_count + 1 && ac_count=$as_val
4045 if test $ac_count -gt ${ac_path_SED_max-0}; then
4046 # Best one so far, save it but keep looking for a better one
4047 ac_cv_path_SED="$ac_path_SED"
4048 ac_path_SED_max=$ac_count
4049 fi
4050 # 10*(2^10) chars as input seems more than enough
4051 test $ac_count -gt 10 && break
4052 done
4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054 esac
4055
4056 $ac_path_SED_found && break 3
4057 done
4058 done
4059 done
4060 IFS=$as_save_IFS
4061 if test -z "$ac_cv_path_SED"; then
4062 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4063 fi
4064 else
4065 ac_cv_path_SED=$SED
4066 fi
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4070 $as_echo "$ac_cv_path_SED" >&6; }
4071 SED="$ac_cv_path_SED"
4072 rm -f conftest.sed
4073
4074 test -z "$SED" && SED=sed
4075 Xsed="$SED -e 1s/^X//"
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4088 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4089 if ${ac_cv_path_GREP+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -z "$GREP"; then
4093 ac_path_GREP_found=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in grep ggrep; do
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4103 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4104 # Check for GNU ac_path_GREP and select it if it is found.
4105 # Check for GNU $ac_path_GREP
4106 case `"$ac_path_GREP" --version 2>&1` in
4107 *GNU*)
4108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4109 *)
4110 ac_count=0
4111 $as_echo_n 0123456789 >"conftest.in"
4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'GREP' >> "conftest.nl"
4118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 as_fn_arith $ac_count + 1 && ac_count=$as_val
4121 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_GREP="$ac_path_GREP"
4124 ac_path_GREP_max=$ac_count
4125 fi
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 esac
4131
4132 $ac_path_GREP_found && break 3
4133 done
4134 done
4135 done
4136 IFS=$as_save_IFS
4137 if test -z "$ac_cv_path_GREP"; then
4138 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 fi
4140 else
4141 ac_cv_path_GREP=$GREP
4142 fi
4143
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4146 $as_echo "$ac_cv_path_GREP" >&6; }
4147 GREP="$ac_cv_path_GREP"
4148
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4151 $as_echo_n "checking for egrep... " >&6; }
4152 if ${ac_cv_path_EGREP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4156 then ac_cv_path_EGREP="$GREP -E"
4157 else
4158 if test -z "$EGREP"; then
4159 ac_path_EGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in egrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4169 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4170 # Check for GNU ac_path_EGREP and select it if it is found.
4171 # Check for GNU $ac_path_EGREP
4172 case `"$ac_path_EGREP" --version 2>&1` in
4173 *GNU*)
4174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4175 *)
4176 ac_count=0
4177 $as_echo_n 0123456789 >"conftest.in"
4178 while :
4179 do
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo 'EGREP' >> "conftest.nl"
4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 as_fn_arith $ac_count + 1 && ac_count=$as_val
4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_EGREP="$ac_path_EGREP"
4190 ac_path_EGREP_max=$ac_count
4191 fi
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4194 done
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 esac
4197
4198 $ac_path_EGREP_found && break 3
4199 done
4200 done
4201 done
4202 IFS=$as_save_IFS
4203 if test -z "$ac_cv_path_EGREP"; then
4204 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205 fi
4206 else
4207 ac_cv_path_EGREP=$EGREP
4208 fi
4209
4210 fi
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4213 $as_echo "$ac_cv_path_EGREP" >&6; }
4214 EGREP="$ac_cv_path_EGREP"
4215
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4218 $as_echo_n "checking for fgrep... " >&6; }
4219 if ${ac_cv_path_FGREP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4223 then ac_cv_path_FGREP="$GREP -F"
4224 else
4225 if test -z "$FGREP"; then
4226 ac_path_FGREP_found=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_prog in fgrep; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4236 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4237 # Check for GNU ac_path_FGREP and select it if it is found.
4238 # Check for GNU $ac_path_FGREP
4239 case `"$ac_path_FGREP" --version 2>&1` in
4240 *GNU*)
4241 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4242 *)
4243 ac_count=0
4244 $as_echo_n 0123456789 >"conftest.in"
4245 while :
4246 do
4247 cat "conftest.in" "conftest.in" >"conftest.tmp"
4248 mv "conftest.tmp" "conftest.in"
4249 cp "conftest.in" "conftest.nl"
4250 $as_echo 'FGREP' >> "conftest.nl"
4251 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253 as_fn_arith $ac_count + 1 && ac_count=$as_val
4254 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4255 # Best one so far, save it but keep looking for a better one
4256 ac_cv_path_FGREP="$ac_path_FGREP"
4257 ac_path_FGREP_max=$ac_count
4258 fi
4259 # 10*(2^10) chars as input seems more than enough
4260 test $ac_count -gt 10 && break
4261 done
4262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263 esac
4264
4265 $ac_path_FGREP_found && break 3
4266 done
4267 done
4268 done
4269 IFS=$as_save_IFS
4270 if test -z "$ac_cv_path_FGREP"; then
4271 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4272 fi
4273 else
4274 ac_cv_path_FGREP=$FGREP
4275 fi
4276
4277 fi
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4280 $as_echo "$ac_cv_path_FGREP" >&6; }
4281 FGREP="$ac_cv_path_FGREP"
4282
4283
4284 test -z "$GREP" && GREP=grep
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4303 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4304 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4307 $as_echo_n "checking how to print strings... " >&6; }
4308 # Test print first, because it will be a builtin if present.
4309 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4310 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4311 ECHO='print -r --'
4312 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4313 ECHO='printf %s\n'
4314 else
4315 # Use this function as a fallback that always works.
4316 func_fallback_echo ()
4317 {
4318 eval 'cat <<_LTECHO_EOF
4319 $1
4320 _LTECHO_EOF'
4321 }
4322 ECHO='func_fallback_echo'
4323 fi
4324
4325 # func_echo_all arg...
4326 # Invoke $ECHO with all args, space-separated.
4327 func_echo_all ()
4328 {
4329 $ECHO ""
4330 }
4331
4332 case "$ECHO" in
4333 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4334 $as_echo "printf" >&6; } ;;
4335 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4336 $as_echo "print -r" >&6; } ;;
4337 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4338 $as_echo "cat" >&6; } ;;
4339 esac
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356 # Check whether --with-gnu-ld was given.
4357 if test "${with_gnu_ld+set}" = set; then :
4358 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4359 else
4360 with_gnu_ld=no
4361 fi
4362
4363 ac_prog=ld
4364 if test "$GCC" = yes; then
4365 # Check if gcc -print-prog-name=ld gives a path.
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4367 $as_echo_n "checking for ld used by $CC... " >&6; }
4368 case $host in
4369 *-*-mingw*)
4370 # gcc leaves a trailing carriage return which upsets mingw
4371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4372 *)
4373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4374 esac
4375 case $ac_prog in
4376 # Accept absolute paths.
4377 [\\/]* | ?:[\\/]*)
4378 re_direlt='/[^/][^/]*/\.\./'
4379 # Canonicalize the pathname of ld
4380 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4381 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4382 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4383 done
4384 test -z "$LD" && LD="$ac_prog"
4385 ;;
4386 "")
4387 # If it fails, then pretend we aren't using GCC.
4388 ac_prog=ld
4389 ;;
4390 *)
4391 # If it is relative, then search for the first ld in PATH.
4392 with_gnu_ld=unknown
4393 ;;
4394 esac
4395 elif test "$with_gnu_ld" = yes; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4397 $as_echo_n "checking for GNU ld... " >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4400 $as_echo_n "checking for non-GNU ld... " >&6; }
4401 fi
4402 if ${lt_cv_path_LD+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -z "$LD"; then
4406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4407 for ac_dir in $PATH; do
4408 IFS="$lt_save_ifs"
4409 test -z "$ac_dir" && ac_dir=.
4410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4411 lt_cv_path_LD="$ac_dir/$ac_prog"
4412 # Check to see if the program is GNU ld. I'd rather use --version,
4413 # but apparently some variants of GNU ld only accept -v.
4414 # Break only if it was the GNU/non-GNU ld that we prefer.
4415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4416 *GNU* | *'with BFD'*)
4417 test "$with_gnu_ld" != no && break
4418 ;;
4419 *)
4420 test "$with_gnu_ld" != yes && break
4421 ;;
4422 esac
4423 fi
4424 done
4425 IFS="$lt_save_ifs"
4426 else
4427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4428 fi
4429 fi
4430
4431 LD="$lt_cv_path_LD"
4432 if test -n "$LD"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4434 $as_echo "$LD" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4441 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4442 if ${lt_cv_prog_gnu_ld+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4446 case `$LD -v 2>&1 </dev/null` in
4447 *GNU* | *'with BFD'*)
4448 lt_cv_prog_gnu_ld=yes
4449 ;;
4450 *)
4451 lt_cv_prog_gnu_ld=no
4452 ;;
4453 esac
4454 fi
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4456 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4457 with_gnu_ld=$lt_cv_prog_gnu_ld
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467 ac_ext=c
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4474 # On Suns, sometimes $CPP names a directory.
4475 if test -n "$CPP" && test -d "$CPP"; then
4476 CPP=
4477 fi
4478 if test -z "$CPP"; then
4479 if ${ac_cv_prog_CPP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 # Double quotes because CPP needs to be expanded
4483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4484 do
4485 ac_preproc_ok=false
4486 for ac_c_preproc_warn_flag in '' yes
4487 do
4488 # Use a header file that comes with gcc, so configuring glibc
4489 # with a fresh cross-compiler works.
4490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4491 # <limits.h> exists even on freestanding compilers.
4492 # On the NeXT, cc -E runs the code through the compiler's parser,
4493 # not just through cpp. "Syntax error" is here to catch this case.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #ifdef __STDC__
4497 # include <limits.h>
4498 #else
4499 # include <assert.h>
4500 #endif
4501 Syntax error
4502 _ACEOF
4503 if ac_fn_c_try_cpp "$LINENO"; then :
4504
4505 else
4506 # Broken: fails on valid input.
4507 continue
4508 fi
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4510
4511 # OK, works on sane cases. Now check whether nonexistent headers
4512 # can be detected and how.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #include <ac_nonexistent.h>
4516 _ACEOF
4517 if ac_fn_c_try_cpp "$LINENO"; then :
4518 # Broken: success on invalid input.
4519 continue
4520 else
4521 # Passes both tests.
4522 ac_preproc_ok=:
4523 break
4524 fi
4525 rm -f conftest.err conftest.i conftest.$ac_ext
4526
4527 done
4528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529 rm -f conftest.i conftest.err conftest.$ac_ext
4530 if $ac_preproc_ok; then :
4531 break
4532 fi
4533
4534 done
4535 ac_cv_prog_CPP=$CPP
4536
4537 fi
4538 CPP=$ac_cv_prog_CPP
4539 else
4540 ac_cv_prog_CPP=$CPP
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4543 $as_echo "$CPP" >&6; }
4544 ac_preproc_ok=false
4545 for ac_c_preproc_warn_flag in '' yes
4546 do
4547 # Use a header file that comes with gcc, so configuring glibc
4548 # with a fresh cross-compiler works.
4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550 # <limits.h> exists even on freestanding compilers.
4551 # On the NeXT, cc -E runs the code through the compiler's parser,
4552 # not just through cpp. "Syntax error" is here to catch this case.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #ifdef __STDC__
4556 # include <limits.h>
4557 #else
4558 # include <assert.h>
4559 #endif
4560 Syntax error
4561 _ACEOF
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563
4564 else
4565 # Broken: fails on valid input.
4566 continue
4567 fi
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4569
4570 # OK, works on sane cases. Now check whether nonexistent headers
4571 # can be detected and how.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <ac_nonexistent.h>
4575 _ACEOF
4576 if ac_fn_c_try_cpp "$LINENO"; then :
4577 # Broken: success on invalid input.
4578 continue
4579 else
4580 # Passes both tests.
4581 ac_preproc_ok=:
4582 break
4583 fi
4584 rm -f conftest.err conftest.i conftest.$ac_ext
4585
4586 done
4587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588 rm -f conftest.i conftest.err conftest.$ac_ext
4589 if $ac_preproc_ok; then :
4590
4591 else
4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4595 See \`config.log' for more details" "$LINENO" 5; }
4596 fi
4597
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4606 set dummy ${ac_tool_prefix}sed; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_prog_SED+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$SED"; then
4613 ac_cv_prog_SED="$SED" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_SED="${ac_tool_prefix}sed"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 SED=$ac_cv_prog_SED
4633 if test -n "$SED"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4635 $as_echo "$SED" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640
4641
4642 fi
4643 if test -z "$ac_cv_prog_SED"; then
4644 ac_ct_SED=$SED
4645 # Extract the first word of "sed", so it can be a program name with args.
4646 set dummy sed; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_prog_ac_ct_SED+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_SED"; then
4653 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_SED="sed"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4673 if test -n "$ac_ct_SED"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4675 $as_echo "$ac_ct_SED" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681 if test "x$ac_ct_SED" = x; then
4682 SED=":"
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685 yes:)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned=yes ;;
4689 esac
4690 SED=$ac_ct_SED
4691 fi
4692 else
4693 SED="$ac_cv_prog_SED"
4694 fi
4695
4696 if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}awk", so it can be a program name with args.
4698 set dummy ${ac_tool_prefix}awk; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_AWK+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$AWK"; then
4705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_AWK="${ac_tool_prefix}awk"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 AWK=$ac_cv_prog_AWK
4725 if test -n "$AWK"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4727 $as_echo "$AWK" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 fi
4735 if test -z "$ac_cv_prog_AWK"; then
4736 ac_ct_AWK=$AWK
4737 # Extract the first word of "awk", so it can be a program name with args.
4738 set dummy awk; 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_ac_ct_AWK+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -n "$ac_ct_AWK"; then
4745 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_ac_ct_AWK="awk"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762 fi
4763 fi
4764 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
4765 if test -n "$ac_ct_AWK"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
4767 $as_echo "$ac_ct_AWK" >&6; }
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 fi
4772
4773 if test "x$ac_ct_AWK" = x; then
4774 AWK=":"
4775 else
4776 case $cross_compiling:$ac_tool_warned in
4777 yes:)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned=yes ;;
4781 esac
4782 AWK=$ac_ct_AWK
4783 fi
4784 else
4785 AWK="$ac_cv_prog_AWK"
4786 fi
4787
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4790 $as_echo_n "checking whether ln -s works... " >&6; }
4791 LN_S=$as_ln_s
4792 if test "$LN_S" = "ln -s"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4794 $as_echo "yes" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4797 $as_echo "no, using $LN_S" >&6; }
4798 fi
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4802 set x ${MAKE-make}
4803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4804 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat >conftest.make <<\_ACEOF
4808 SHELL = /bin/sh
4809 all:
4810 @echo '@@@%%%=$(MAKE)=@@@%%%'
4811 _ACEOF
4812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4814 *@@@%%%=?*=@@@%%%*)
4815 eval ac_cv_prog_make_${ac_make}_set=yes;;
4816 *)
4817 eval ac_cv_prog_make_${ac_make}_set=no;;
4818 esac
4819 rm -f conftest.make
4820 fi
4821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4823 $as_echo "yes" >&6; }
4824 SET_MAKE=
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 SET_MAKE="MAKE=${MAKE-make}"
4829 fi
4830
4831 case `pwd` in
4832 *\ * | *\ *)
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4834 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4835 esac
4836
4837
4838
4839 macro_version='2.4.2'
4840 macro_revision='1.3337'
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854 ltmain="$ac_aux_dir/ltmain.sh"
4855
4856 # Backslashify metacharacters that are still active within
4857 # double-quoted strings.
4858 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4859
4860 # Same as above, but do not quote variable references.
4861 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4862
4863 # Sed substitution to delay expansion of an escaped shell variable in a
4864 # double_quote_subst'ed string.
4865 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4866
4867 # Sed substitution to delay expansion of an escaped single quote.
4868 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4869
4870 # Sed substitution to avoid accidental globbing in evaled expressions
4871 no_glob_subst='s/\*/\\\*/g'
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4874 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4875 if ${lt_cv_path_NM+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$NM"; then
4879 # Let the user override the test.
4880 lt_cv_path_NM="$NM"
4881 else
4882 lt_nm_to_check="${ac_tool_prefix}nm"
4883 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4884 lt_nm_to_check="$lt_nm_to_check nm"
4885 fi
4886 for lt_tmp_nm in $lt_nm_to_check; do
4887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4888 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4889 IFS="$lt_save_ifs"
4890 test -z "$ac_dir" && ac_dir=.
4891 tmp_nm="$ac_dir/$lt_tmp_nm"
4892 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4893 # Check to see if the nm accepts a BSD-compat flag.
4894 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4895 # nm: unknown option "B" ignored
4896 # Tru64's nm complains that /dev/null is an invalid object file
4897 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4898 */dev/null* | *'Invalid file or object type'*)
4899 lt_cv_path_NM="$tmp_nm -B"
4900 break
4901 ;;
4902 *)
4903 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4904 */dev/null*)
4905 lt_cv_path_NM="$tmp_nm -p"
4906 break
4907 ;;
4908 *)
4909 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4910 continue # so that we can try to find one that supports BSD flags
4911 ;;
4912 esac
4913 ;;
4914 esac
4915 fi
4916 done
4917 IFS="$lt_save_ifs"
4918 done
4919 : ${lt_cv_path_NM=no}
4920 fi
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4923 $as_echo "$lt_cv_path_NM" >&6; }
4924 if test "$lt_cv_path_NM" != "no"; then
4925 NM="$lt_cv_path_NM"
4926 else
4927 # Didn't find any BSD compatible name lister, look for dumpbin.
4928 if test -n "$DUMPBIN"; then :
4929 # Let the user override the test.
4930 else
4931 if test -n "$ac_tool_prefix"; then
4932 for ac_prog in dumpbin "link -dump"
4933 do
4934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_DUMPBIN+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 if test -n "$DUMPBIN"; then
4942 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 DUMPBIN=$ac_cv_prog_DUMPBIN
4962 if test -n "$DUMPBIN"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4964 $as_echo "$DUMPBIN" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971 test -n "$DUMPBIN" && break
4972 done
4973 fi
4974 if test -z "$DUMPBIN"; then
4975 ac_ct_DUMPBIN=$DUMPBIN
4976 for ac_prog in dumpbin "link -dump"
4977 do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979 set dummy $ac_prog; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$ac_ct_DUMPBIN"; then
4986 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5006 if test -n "$ac_ct_DUMPBIN"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5008 $as_echo "$ac_ct_DUMPBIN" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 test -n "$ac_ct_DUMPBIN" && break
5016 done
5017
5018 if test "x$ac_ct_DUMPBIN" = x; then
5019 DUMPBIN=":"
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022 yes:)
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027 DUMPBIN=$ac_ct_DUMPBIN
5028 fi
5029 fi
5030
5031 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5032 *COFF*)
5033 DUMPBIN="$DUMPBIN -symbols"
5034 ;;
5035 *)
5036 DUMPBIN=:
5037 ;;
5038 esac
5039 fi
5040
5041 if test "$DUMPBIN" != ":"; then
5042 NM="$DUMPBIN"
5043 fi
5044 fi
5045 test -z "$NM" && NM=nm
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5053 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5054 if ${lt_cv_nm_interface+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 lt_cv_nm_interface="BSD nm"
5058 echo "int some_variable = 0;" > conftest.$ac_ext
5059 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5060 (eval "$ac_compile" 2>conftest.err)
5061 cat conftest.err >&5
5062 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5063 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5064 cat conftest.err >&5
5065 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5066 cat conftest.out >&5
5067 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5068 lt_cv_nm_interface="MS dumpbin"
5069 fi
5070 rm -f conftest*
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5073 $as_echo "$lt_cv_nm_interface" >&6; }
5074
5075 # find the maximum length of command line arguments
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5077 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5078 if ${lt_cv_sys_max_cmd_len+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 i=0
5082 teststring="ABCD"
5083
5084 case $build_os in
5085 msdosdjgpp*)
5086 # On DJGPP, this test can blow up pretty badly due to problems in libc
5087 # (any single argument exceeding 2000 bytes causes a buffer overrun
5088 # during glob expansion). Even if it were fixed, the result of this
5089 # check would be larger than it should be.
5090 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5091 ;;
5092
5093 gnu*)
5094 # Under GNU Hurd, this test is not required because there is
5095 # no limit to the length of command line arguments.
5096 # Libtool will interpret -1 as no limit whatsoever
5097 lt_cv_sys_max_cmd_len=-1;
5098 ;;
5099
5100 cygwin* | mingw* | cegcc*)
5101 # On Win9x/ME, this test blows up -- it succeeds, but takes
5102 # about 5 minutes as the teststring grows exponentially.
5103 # Worse, since 9x/ME are not pre-emptively multitasking,
5104 # you end up with a "frozen" computer, even though with patience
5105 # the test eventually succeeds (with a max line length of 256k).
5106 # Instead, let's just punt: use the minimum linelength reported by
5107 # all of the supported platforms: 8192 (on NT/2K/XP).
5108 lt_cv_sys_max_cmd_len=8192;
5109 ;;
5110
5111 mint*)
5112 # On MiNT this can take a long time and run out of memory.
5113 lt_cv_sys_max_cmd_len=8192;
5114 ;;
5115
5116 amigaos*)
5117 # On AmigaOS with pdksh, this test takes hours, literally.
5118 # So we just punt and use a minimum line length of 8192.
5119 lt_cv_sys_max_cmd_len=8192;
5120 ;;
5121
5122 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5123 # This has been around since 386BSD, at least. Likely further.
5124 if test -x /sbin/sysctl; then
5125 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5126 elif test -x /usr/sbin/sysctl; then
5127 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5128 else
5129 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5130 fi
5131 # And add a safety zone
5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5134 ;;
5135
5136 interix*)
5137 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5138 lt_cv_sys_max_cmd_len=196608
5139 ;;
5140
5141 os2*)
5142 # The test takes a long time on OS/2.
5143 lt_cv_sys_max_cmd_len=8192
5144 ;;
5145
5146 osf*)
5147 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5148 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5149 # nice to cause kernel panics so lets avoid the loop below.
5150 # First set a reasonable default.
5151 lt_cv_sys_max_cmd_len=16384
5152 #
5153 if test -x /sbin/sysconfig; then
5154 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5155 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5156 esac
5157 fi
5158 ;;
5159 sco3.2v5*)
5160 lt_cv_sys_max_cmd_len=102400
5161 ;;
5162 sysv5* | sco5v6* | sysv4.2uw2*)
5163 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5164 if test -n "$kargmax"; then
5165 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5166 else
5167 lt_cv_sys_max_cmd_len=32768
5168 fi
5169 ;;
5170 *)
5171 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5172 if test -n "$lt_cv_sys_max_cmd_len"; then
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5175 else
5176 # Make teststring a little bigger before we do anything with it.
5177 # a 1K string should be a reasonable start.
5178 for i in 1 2 3 4 5 6 7 8 ; do
5179 teststring=$teststring$teststring
5180 done
5181 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5182 # If test is not a shell built-in, we'll probably end up computing a
5183 # maximum length that is only half of the actual maximum length, but
5184 # we can't tell.
5185 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5186 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5187 test $i != 17 # 1/2 MB should be enough
5188 do
5189 i=`expr $i + 1`
5190 teststring=$teststring$teststring
5191 done
5192 # Only check the string length outside the loop.
5193 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5194 teststring=
5195 # Add a significant safety factor because C++ compilers can tack on
5196 # massive amounts of additional arguments before passing them to the
5197 # linker. It appears as though 1/2 is a usable value.
5198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5199 fi
5200 ;;
5201 esac
5202
5203 fi
5204
5205 if test -n $lt_cv_sys_max_cmd_len ; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5207 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5210 $as_echo "none" >&6; }
5211 fi
5212 max_cmd_len=$lt_cv_sys_max_cmd_len
5213
5214
5215
5216
5217
5218
5219 : ${CP="cp -f"}
5220 : ${MV="mv -f"}
5221 : ${RM="rm -f"}
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5224 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5225 # Try some XSI features
5226 xsi_shell=no
5227 ( _lt_dummy="a/b/c"
5228 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5229 = c,a/b,b/c, \
5230 && eval 'test $(( 1 + 1 )) -eq 2 \
5231 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5232 && xsi_shell=yes
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5234 $as_echo "$xsi_shell" >&6; }
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5238 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5239 lt_shell_append=no
5240 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5241 >/dev/null 2>&1 \
5242 && lt_shell_append=yes
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5244 $as_echo "$lt_shell_append" >&6; }
5245
5246
5247 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5248 lt_unset=unset
5249 else
5250 lt_unset=false
5251 fi
5252
5253
5254
5255
5256
5257 # test EBCDIC or ASCII
5258 case `echo X|tr X '\101'` in
5259 A) # ASCII based system
5260 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5261 lt_SP2NL='tr \040 \012'
5262 lt_NL2SP='tr \015\012 \040\040'
5263 ;;
5264 *) # EBCDIC based system
5265 lt_SP2NL='tr \100 \n'
5266 lt_NL2SP='tr \r\n \100\100'
5267 ;;
5268 esac
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5279 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5280 if ${lt_cv_to_host_file_cmd+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 case $host in
5284 *-*-mingw* )
5285 case $build in
5286 *-*-mingw* ) # actually msys
5287 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5288 ;;
5289 *-*-cygwin* )
5290 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5291 ;;
5292 * ) # otherwise, assume *nix
5293 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5294 ;;
5295 esac
5296 ;;
5297 *-*-cygwin* )
5298 case $build in
5299 *-*-mingw* ) # actually msys
5300 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5301 ;;
5302 *-*-cygwin* )
5303 lt_cv_to_host_file_cmd=func_convert_file_noop
5304 ;;
5305 * ) # otherwise, assume *nix
5306 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5307 ;;
5308 esac
5309 ;;
5310 * ) # unhandled hosts (and "normal" native builds)
5311 lt_cv_to_host_file_cmd=func_convert_file_noop
5312 ;;
5313 esac
5314
5315 fi
5316
5317 to_host_file_cmd=$lt_cv_to_host_file_cmd
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5319 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5320
5321
5322
5323
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5326 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5327 if ${lt_cv_to_tool_file_cmd+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 #assume ordinary cross tools, or native build.
5331 lt_cv_to_tool_file_cmd=func_convert_file_noop
5332 case $host in
5333 *-*-mingw* )
5334 case $build in
5335 *-*-mingw* ) # actually msys
5336 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5337 ;;
5338 esac
5339 ;;
5340 esac
5341
5342 fi
5343
5344 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5346 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5347
5348
5349
5350
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5353 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5354 if ${lt_cv_ld_reload_flag+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 lt_cv_ld_reload_flag='-r'
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5360 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5361 reload_flag=$lt_cv_ld_reload_flag
5362 case $reload_flag in
5363 "" | " "*) ;;
5364 *) reload_flag=" $reload_flag" ;;
5365 esac
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367 case $host_os in
5368 cygwin* | mingw* | pw32* | cegcc*)
5369 if test "$GCC" != yes; then
5370 reload_cmds=false
5371 fi
5372 ;;
5373 darwin*)
5374 if test "$GCC" = yes; then
5375 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5376 else
5377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5378 fi
5379 ;;
5380 esac
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390 if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5392 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_OBJDUMP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -n "$OBJDUMP"; then
5399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5411 fi
5412 done
5413 done
5414 IFS=$as_save_IFS
5415
5416 fi
5417 fi
5418 OBJDUMP=$ac_cv_prog_OBJDUMP
5419 if test -n "$OBJDUMP"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5421 $as_echo "$OBJDUMP" >&6; }
5422 else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5425 fi
5426
5427
5428 fi
5429 if test -z "$ac_cv_prog_OBJDUMP"; then
5430 ac_ct_OBJDUMP=$OBJDUMP
5431 # Extract the first word of "objdump", so it can be a program name with args.
5432 set dummy objdump; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$ac_ct_OBJDUMP"; then
5439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5459 if test -n "$ac_ct_OBJDUMP"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5461 $as_echo "$ac_ct_OBJDUMP" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467 if test "x$ac_ct_OBJDUMP" = x; then
5468 OBJDUMP="false"
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471 yes:)
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5475 esac
5476 OBJDUMP=$ac_ct_OBJDUMP
5477 fi
5478 else
5479 OBJDUMP="$ac_cv_prog_OBJDUMP"
5480 fi
5481
5482 test -z "$OBJDUMP" && OBJDUMP=objdump
5483
5484
5485
5486
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5490 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5491 if ${lt_cv_deplibs_check_method+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 lt_cv_file_magic_cmd='$MAGIC_CMD'
5495 lt_cv_file_magic_test_file=
5496 lt_cv_deplibs_check_method='unknown'
5497 # Need to set the preceding variable on all platforms that support
5498 # interlibrary dependencies.
5499 # 'none' -- dependencies not supported.
5500 # `unknown' -- same as none, but documents that we really don't know.
5501 # 'pass_all' -- all dependencies passed with no checks.
5502 # 'test_compile' -- check by making test program.
5503 # 'file_magic [[regex]]' -- check by looking for files in library path
5504 # which responds to the $file_magic_cmd with a given extended regex.
5505 # If you have `file' or equivalent on your system and you're not sure
5506 # whether `pass_all' will *always* work, you probably want this one.
5507
5508 case $host_os in
5509 aix[4-9]*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513 beos*)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517 bsdi[45]*)
5518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5519 lt_cv_file_magic_cmd='/usr/bin/file -L'
5520 lt_cv_file_magic_test_file=/shlib/libc.so
5521 ;;
5522
5523 cygwin*)
5524 # func_win32_libid is a shell function defined in ltmain.sh
5525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5526 lt_cv_file_magic_cmd='func_win32_libid'
5527 ;;
5528
5529 mingw* | pw32*)
5530 # Base MSYS/MinGW do not provide the 'file' command needed by
5531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5532 # unless we find 'file', for example because we are cross-compiling.
5533 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5534 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536 lt_cv_file_magic_cmd='func_win32_libid'
5537 else
5538 # Keep this pattern in sync with the one in func_win32_libid.
5539 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5540 lt_cv_file_magic_cmd='$OBJDUMP -f'
5541 fi
5542 ;;
5543
5544 cegcc*)
5545 # use the weaker test based on 'objdump'. See mingw*.
5546 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5547 lt_cv_file_magic_cmd='$OBJDUMP -f'
5548 ;;
5549
5550 darwin* | rhapsody*)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553
5554 freebsd* | dragonfly*)
5555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5556 case $host_cpu in
5557 i*86 )
5558 # Not sure whether the presence of OpenBSD here was a mistake.
5559 # Let's accept both of them until this is cleared up.
5560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5561 lt_cv_file_magic_cmd=/usr/bin/file
5562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5563 ;;
5564 esac
5565 else
5566 lt_cv_deplibs_check_method=pass_all
5567 fi
5568 ;;
5569
5570 gnu*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574 haiku*)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577
5578 hpux10.20* | hpux11*)
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 case $host_cpu in
5581 ia64*)
5582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5584 ;;
5585 hppa*64*)
5586 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]'
5587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5588 ;;
5589 *)
5590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5592 ;;
5593 esac
5594 ;;
5595
5596 interix[3-9]*)
5597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5599 ;;
5600
5601 irix5* | irix6* | nonstopux*)
5602 case $LD in
5603 *-32|*"-32 ") libmagic=32-bit;;
5604 *-n32|*"-n32 ") libmagic=N32;;
5605 *-64|*"-64 ") libmagic=64-bit;;
5606 *) libmagic=never-match;;
5607 esac
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 # This must be glibc/ELF.
5612 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5613 lt_cv_deplibs_check_method=pass_all
5614 ;;
5615
5616 netbsd*)
5617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619 else
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5621 fi
5622 ;;
5623
5624 newos6*)
5625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5626 lt_cv_file_magic_cmd=/usr/bin/file
5627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5628 ;;
5629
5630 *nto* | *qnx*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634 openbsd*)
5635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5637 else
5638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639 fi
5640 ;;
5641
5642 osf3* | osf4* | osf5*)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645
5646 rdos*)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650 solaris*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 sysv4 | sysv4.3*)
5659 case $host_vendor in
5660 motorola)
5661 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]'
5662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5663 ;;
5664 ncr)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667 sequent)
5668 lt_cv_file_magic_cmd='/bin/file'
5669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5670 ;;
5671 sni)
5672 lt_cv_file_magic_cmd='/bin/file'
5673 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5674 lt_cv_file_magic_test_file=/lib/libc.so
5675 ;;
5676 siemens)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679 pc)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682 esac
5683 ;;
5684
5685 tpf*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688 esac
5689
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5693
5694 file_magic_glob=
5695 want_nocaseglob=no
5696 if test "$build" = "$host"; then
5697 case $host_os in
5698 mingw* | pw32*)
5699 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5700 want_nocaseglob=yes
5701 else
5702 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5703 fi
5704 ;;
5705 esac
5706 fi
5707
5708 file_magic_cmd=$lt_cv_file_magic_cmd
5709 deplibs_check_method=$lt_cv_deplibs_check_method
5710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 if test -n "$ac_tool_prefix"; then
5734 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5735 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_DLLTOOL+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$DLLTOOL"; then
5742 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 DLLTOOL=$ac_cv_prog_DLLTOOL
5762 if test -n "$DLLTOOL"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5764 $as_echo "$DLLTOOL" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771 fi
5772 if test -z "$ac_cv_prog_DLLTOOL"; then
5773 ac_ct_DLLTOOL=$DLLTOOL
5774 # Extract the first word of "dlltool", so it can be a program name with args.
5775 set dummy dlltool; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$ac_ct_DLLTOOL"; then
5782 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5802 if test -n "$ac_ct_DLLTOOL"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5804 $as_echo "$ac_ct_DLLTOOL" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810 if test "x$ac_ct_DLLTOOL" = x; then
5811 DLLTOOL="false"
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814 yes:)
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817 ac_tool_warned=yes ;;
5818 esac
5819 DLLTOOL=$ac_ct_DLLTOOL
5820 fi
5821 else
5822 DLLTOOL="$ac_cv_prog_DLLTOOL"
5823 fi
5824
5825 test -z "$DLLTOOL" && DLLTOOL=dlltool
5826
5827
5828
5829
5830
5831
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5834 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5835 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 lt_cv_sharedlib_from_linklib_cmd='unknown'
5839
5840 case $host_os in
5841 cygwin* | mingw* | pw32* | cegcc*)
5842 # two different shell functions defined in ltmain.sh
5843 # decide which to use based on capabilities of $DLLTOOL
5844 case `$DLLTOOL --help 2>&1` in
5845 *--identify-strict*)
5846 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5847 ;;
5848 *)
5849 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5850 ;;
5851 esac
5852 ;;
5853 *)
5854 # fallback: assume linklib IS sharedlib
5855 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5856 ;;
5857 esac
5858
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5861 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5862 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5863 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5864
5865
5866
5867
5868
5869
5870
5871
5872 if test -n "$ac_tool_prefix"; then
5873 for ac_prog in ar
5874 do
5875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_prog_AR+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test -n "$AR"; then
5883 ac_cv_prog_AR="$AR" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 AR=$ac_cv_prog_AR
5903 if test -n "$AR"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5905 $as_echo "$AR" >&6; }
5906 else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5909 fi
5910
5911
5912 test -n "$AR" && break
5913 done
5914 fi
5915 if test -z "$AR"; then
5916 ac_ct_AR=$AR
5917 for ac_prog in ar
5918 do
5919 # Extract the first word of "$ac_prog", so it can be a program name with args.
5920 set dummy $ac_prog; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$ac_ct_AR"; then
5927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_ac_ct_AR="$ac_prog"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5947 if test -n "$ac_ct_AR"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5949 $as_echo "$ac_ct_AR" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954
5955
5956 test -n "$ac_ct_AR" && break
5957 done
5958
5959 if test "x$ac_ct_AR" = x; then
5960 AR="false"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968 AR=$ac_ct_AR
5969 fi
5970 fi
5971
5972 : ${AR=ar}
5973 : ${AR_FLAGS=cru}
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5986 $as_echo_n "checking for archiver @FILE support... " >&6; }
5987 if ${lt_cv_ar_at_file+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 lt_cv_ar_at_file=no
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993
5994 int
5995 main ()
5996 {
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 echo conftest.$ac_objext > conftest.lst
6004 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6006 (eval $lt_ar_try) 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }
6010 if test "$ac_status" -eq 0; then
6011 # Ensure the archiver fails upon bogus file names.
6012 rm -f conftest.$ac_objext libconftest.a
6013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6014 (eval $lt_ar_try) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }
6018 if test "$ac_status" -ne 0; then
6019 lt_cv_ar_at_file=@
6020 fi
6021 fi
6022 rm -f conftest.* libconftest.a
6023
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6029 $as_echo "$lt_cv_ar_at_file" >&6; }
6030
6031 if test "x$lt_cv_ar_at_file" = xno; then
6032 archiver_list_spec=
6033 else
6034 archiver_list_spec=$lt_cv_ar_at_file
6035 fi
6036
6037
6038
6039
6040
6041
6042
6043 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6045 set dummy ${ac_tool_prefix}strip; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_STRIP+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test -n "$STRIP"; then
6052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065 done
6066 done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 STRIP=$ac_cv_prog_STRIP
6072 if test -n "$STRIP"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6074 $as_echo "$STRIP" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081 fi
6082 if test -z "$ac_cv_prog_STRIP"; then
6083 ac_ct_STRIP=$STRIP
6084 # Extract the first word of "strip", so it can be a program name with args.
6085 set dummy strip; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 if test -n "$ac_ct_STRIP"; then
6092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_ac_ct_STRIP="strip"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6112 if test -n "$ac_ct_STRIP"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6114 $as_echo "$ac_ct_STRIP" >&6; }
6115 else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119
6120 if test "x$ac_ct_STRIP" = x; then
6121 STRIP=":"
6122 else
6123 case $cross_compiling:$ac_tool_warned in
6124 yes:)
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127 ac_tool_warned=yes ;;
6128 esac
6129 STRIP=$ac_ct_STRIP
6130 fi
6131 else
6132 STRIP="$ac_cv_prog_STRIP"
6133 fi
6134
6135 test -z "$STRIP" && STRIP=:
6136
6137
6138
6139
6140
6141
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_RANLIB+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$RANLIB"; then
6151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 RANLIB=$ac_cv_prog_RANLIB
6171 if test -n "$RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6173 $as_echo "$RANLIB" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179
6180 fi
6181 if test -z "$ac_cv_prog_RANLIB"; then
6182 ac_ct_RANLIB=$RANLIB
6183 # Extract the first word of "ranlib", so it can be a program name with args.
6184 set dummy ranlib; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_RANLIB"; then
6191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_RANLIB="ranlib"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6211 if test -n "$ac_ct_RANLIB"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6213 $as_echo "$ac_ct_RANLIB" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219 if test "x$ac_ct_RANLIB" = x; then
6220 RANLIB=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 RANLIB=$ac_ct_RANLIB
6229 fi
6230 else
6231 RANLIB="$ac_cv_prog_RANLIB"
6232 fi
6233
6234 test -z "$RANLIB" && RANLIB=:
6235
6236
6237
6238
6239
6240
6241 # Determine commands to create old-style static archives.
6242 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6243 old_postinstall_cmds='chmod 644 $oldlib'
6244 old_postuninstall_cmds=
6245
6246 if test -n "$RANLIB"; then
6247 case $host_os in
6248 openbsd*)
6249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6250 ;;
6251 *)
6252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6253 ;;
6254 esac
6255 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6256 fi
6257
6258 case $host_os in
6259 darwin*)
6260 lock_old_archive_extraction=yes ;;
6261 *)
6262 lock_old_archive_extraction=no ;;
6263 esac
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 # If no C compiler was specified, use CC.
6304 LTCC=${LTCC-"$CC"}
6305
6306 # If no C compiler flags were specified, use CFLAGS.
6307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6308
6309 # Allow CC to be a program name with arguments.
6310 compiler=$CC
6311
6312
6313 # Check for command to grab the raw symbol name followed by C symbol from nm.
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6315 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6316 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319
6320 # These are sane defaults that work on at least a few old systems.
6321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6322
6323 # Character class describing NM global symbol codes.
6324 symcode='[BCDEGRST]'
6325
6326 # Regexp to match symbols that can be accessed directly from C.
6327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6328
6329 # Define system-specific variables.
6330 case $host_os in
6331 aix*)
6332 symcode='[BCDT]'
6333 ;;
6334 cygwin* | mingw* | pw32* | cegcc*)
6335 symcode='[ABCDGISTW]'
6336 ;;
6337 hpux*)
6338 if test "$host_cpu" = ia64; then
6339 symcode='[ABCDEGRST]'
6340 fi
6341 ;;
6342 irix* | nonstopux*)
6343 symcode='[BCDEGRST]'
6344 ;;
6345 osf*)
6346 symcode='[BCDEGQRST]'
6347 ;;
6348 solaris*)
6349 symcode='[BDRT]'
6350 ;;
6351 sco3.2v5*)
6352 symcode='[DT]'
6353 ;;
6354 sysv4.2uw2*)
6355 symcode='[DT]'
6356 ;;
6357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6358 symcode='[ABDT]'
6359 ;;
6360 sysv4)
6361 symcode='[DFNSTU]'
6362 ;;
6363 esac
6364
6365 # If we're using GNU nm, then use its standard symbol codes.
6366 case `$NM -V 2>&1` in
6367 *GNU* | *'with BFD'*)
6368 symcode='[ABCDGIRSTW]' ;;
6369 esac
6370
6371 # Transform an extracted symbol line into a proper C declaration.
6372 # Some systems (esp. on ia64) link data and code symbols differently,
6373 # so use this general approach.
6374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6375
6376 # Transform an extracted symbol line into symbol name and symbol address
6377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6378 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'"
6379
6380 # Handle CRLF in mingw tool chain
6381 opt_cr=
6382 case $build_os in
6383 mingw*)
6384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6385 ;;
6386 esac
6387
6388 # Try without a prefix underscore, then with it.
6389 for ac_symprfx in "" "_"; do
6390
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6393
6394 # Write the raw and C identifiers.
6395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6396 # Fake it for dumpbin and say T for any non-static function
6397 # and D for any global variable.
6398 # Also find C++ and __fastcall symbols from MSVC++,
6399 # which start with @ or ?.
6400 lt_cv_sys_global_symbol_pipe="$AWK '"\
6401 " {last_section=section; section=\$ 3};"\
6402 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6403 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6404 " \$ 0!~/External *\|/{next};"\
6405 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6406 " {if(hide[section]) next};"\
6407 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6408 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6409 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6410 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6411 " ' prfx=^$ac_symprfx"
6412 else
6413 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6414 fi
6415 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6416
6417 # Check to see that the pipe works correctly.
6418 pipe_works=no
6419
6420 rm -f conftest*
6421 cat > conftest.$ac_ext <<_LT_EOF
6422 #ifdef __cplusplus
6423 extern "C" {
6424 #endif
6425 char nm_test_var;
6426 void nm_test_func(void);
6427 void nm_test_func(void){}
6428 #ifdef __cplusplus
6429 }
6430 #endif
6431 int main(){nm_test_var='a';nm_test_func();return(0);}
6432 _LT_EOF
6433
6434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6436 ac_status=$?
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 # Now try to grab the symbols.
6440 nlist=conftest.nm
6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6443 ac_status=$?
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; } && test -s "$nlist"; then
6446 # Try sorting and uniquifying the output.
6447 if sort "$nlist" | uniq > "$nlist"T; then
6448 mv -f "$nlist"T "$nlist"
6449 else
6450 rm -f "$nlist"T
6451 fi
6452
6453 # Make sure that we snagged all the symbols we need.
6454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6456 cat <<_LT_EOF > conftest.$ac_ext
6457 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6458 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6459 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6460 relocations are performed -- see ld's documentation on pseudo-relocs. */
6461 # define LT_DLSYM_CONST
6462 #elif defined(__osf__)
6463 /* This system does not cope well with relocations in const data. */
6464 # define LT_DLSYM_CONST
6465 #else
6466 # define LT_DLSYM_CONST const
6467 #endif
6468
6469 #ifdef __cplusplus
6470 extern "C" {
6471 #endif
6472
6473 _LT_EOF
6474 # Now generate the symbol file.
6475 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6476
6477 cat <<_LT_EOF >> conftest.$ac_ext
6478
6479 /* The mapping between symbol names and symbols. */
6480 LT_DLSYM_CONST struct {
6481 const char *name;
6482 void *address;
6483 }
6484 lt__PROGRAM__LTX_preloaded_symbols[] =
6485 {
6486 { "@PROGRAM@", (void *) 0 },
6487 _LT_EOF
6488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6489 cat <<\_LT_EOF >> conftest.$ac_ext
6490 {0, (void *) 0}
6491 };
6492
6493 /* This works around a problem in FreeBSD linker */
6494 #ifdef FREEBSD_WORKAROUND
6495 static const void *lt_preloaded_setup() {
6496 return lt__PROGRAM__LTX_preloaded_symbols;
6497 }
6498 #endif
6499
6500 #ifdef __cplusplus
6501 }
6502 #endif
6503 _LT_EOF
6504 # Now try linking the two files.
6505 mv conftest.$ac_objext conftstm.$ac_objext
6506 lt_globsym_save_LIBS=$LIBS
6507 lt_globsym_save_CFLAGS=$CFLAGS
6508 LIBS="conftstm.$ac_objext"
6509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6515 pipe_works=yes
6516 fi
6517 LIBS=$lt_globsym_save_LIBS
6518 CFLAGS=$lt_globsym_save_CFLAGS
6519 else
6520 echo "cannot find nm_test_func in $nlist" >&5
6521 fi
6522 else
6523 echo "cannot find nm_test_var in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6527 fi
6528 else
6529 echo "$progname: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 fi
6532 rm -rf conftest* conftst*
6533
6534 # Do not use the global_symbol_pipe unless it works.
6535 if test "$pipe_works" = yes; then
6536 break
6537 else
6538 lt_cv_sys_global_symbol_pipe=
6539 fi
6540 done
6541
6542 fi
6543
6544 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6545 lt_cv_sys_global_symbol_to_cdecl=
6546 fi
6547 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6549 $as_echo "failed" >&6; }
6550 else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6552 $as_echo "ok" >&6; }
6553 fi
6554
6555 # Response file support.
6556 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6557 nm_file_list_spec='@'
6558 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6559 nm_file_list_spec='@'
6560 fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6589 $as_echo_n "checking for sysroot... " >&6; }
6590
6591 # Check whether --with-sysroot was given.
6592 if test "${with_sysroot+set}" = set; then :
6593 withval=$with_sysroot;
6594 else
6595 with_sysroot=no
6596 fi
6597
6598
6599 lt_sysroot=
6600 case ${with_sysroot} in #(
6601 yes)
6602 if test "$GCC" = yes; then
6603 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6604 fi
6605 ;; #(
6606 /*)
6607 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6608 ;; #(
6609 no|'')
6610 ;; #(
6611 *)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6613 $as_echo "${with_sysroot}" >&6; }
6614 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6615 ;;
6616 esac
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6619 $as_echo "${lt_sysroot:-no}" >&6; }
6620
6621
6622
6623
6624
6625 # Check whether --enable-libtool-lock was given.
6626 if test "${enable_libtool_lock+set}" = set; then :
6627 enableval=$enable_libtool_lock;
6628 fi
6629
6630 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6631
6632 # Some flags need to be propagated to the compiler or linker for good
6633 # libtool support.
6634 case $host in
6635 ia64-*-hpux*)
6636 # Find out which ABI we are using.
6637 echo 'int i;' > conftest.$ac_ext
6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6639 (eval $ac_compile) 2>&5
6640 ac_status=$?
6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }; then
6643 case `/usr/bin/file conftest.$ac_objext` in
6644 *ELF-32*)
6645 HPUX_IA64_MODE="32"
6646 ;;
6647 *ELF-64*)
6648 HPUX_IA64_MODE="64"
6649 ;;
6650 esac
6651 fi
6652 rm -rf conftest*
6653 ;;
6654 *-*-irix6*)
6655 # Find out which ABI we are using.
6656 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661 test $ac_status = 0; }; then
6662 if test "$lt_cv_prog_gnu_ld" = yes; then
6663 case `/usr/bin/file conftest.$ac_objext` in
6664 *32-bit*)
6665 LD="${LD-ld} -melf32bsmip"
6666 ;;
6667 *N32*)
6668 LD="${LD-ld} -melf32bmipn32"
6669 ;;
6670 *64-bit*)
6671 LD="${LD-ld} -melf64bmip"
6672 ;;
6673 esac
6674 else
6675 case `/usr/bin/file conftest.$ac_objext` in
6676 *32-bit*)
6677 LD="${LD-ld} -32"
6678 ;;
6679 *N32*)
6680 LD="${LD-ld} -n32"
6681 ;;
6682 *64-bit*)
6683 LD="${LD-ld} -64"
6684 ;;
6685 esac
6686 fi
6687 fi
6688 rm -rf conftest*
6689 ;;
6690
6691 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6692 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6693 # Find out which ABI we are using.
6694 echo 'int i;' > conftest.$ac_ext
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 case `/usr/bin/file conftest.o` in
6701 *32-bit*)
6702 case $host in
6703 x86_64-*kfreebsd*-gnu)
6704 LD="${LD-ld} -m elf_i386_fbsd"
6705 ;;
6706 x86_64-*linux*)
6707 LD="${LD-ld} -m elf_i386"
6708 ;;
6709 ppc64-*linux*|powerpc64-*linux*)
6710 LD="${LD-ld} -m elf32ppclinux"
6711 ;;
6712 s390x-*linux*)
6713 LD="${LD-ld} -m elf_s390"
6714 ;;
6715 sparc64-*linux*)
6716 LD="${LD-ld} -m elf32_sparc"
6717 ;;
6718 esac
6719 ;;
6720 *64-bit*)
6721 case $host in
6722 x86_64-*kfreebsd*-gnu)
6723 LD="${LD-ld} -m elf_x86_64_fbsd"
6724 ;;
6725 x86_64-*linux*)
6726 LD="${LD-ld} -m elf_x86_64"
6727 ;;
6728 ppc*-*linux*|powerpc*-*linux*)
6729 LD="${LD-ld} -m elf64ppc"
6730 ;;
6731 s390*-*linux*|s390*-*tpf*)
6732 LD="${LD-ld} -m elf64_s390"
6733 ;;
6734 sparc*-*linux*)
6735 LD="${LD-ld} -m elf64_sparc"
6736 ;;
6737 esac
6738 ;;
6739 esac
6740 fi
6741 rm -rf conftest*
6742 ;;
6743
6744 *-*-sco3.2v5*)
6745 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6746 SAVE_CFLAGS="$CFLAGS"
6747 CFLAGS="$CFLAGS -belf"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6749 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6750 if ${lt_cv_cc_needs_belf+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 ac_ext=c
6754 ac_cpp='$CPP $CPPFLAGS'
6755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761
6762 int
6763 main ()
6764 {
6765
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 lt_cv_cc_needs_belf=yes
6772 else
6773 lt_cv_cc_needs_belf=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 ac_ext=c
6778 ac_cpp='$CPP $CPPFLAGS'
6779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6785 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6786 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6787 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6788 CFLAGS="$SAVE_CFLAGS"
6789 fi
6790 ;;
6791 *-*solaris*)
6792 # Find out which ABI we are using.
6793 echo 'int i;' > conftest.$ac_ext
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795 (eval $ac_compile) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; }; then
6799 case `/usr/bin/file conftest.o` in
6800 *64-bit*)
6801 case $lt_cv_prog_gnu_ld in
6802 yes*)
6803 case $host in
6804 i?86-*-solaris*)
6805 LD="${LD-ld} -m elf_x86_64"
6806 ;;
6807 sparc*-*-solaris*)
6808 LD="${LD-ld} -m elf64_sparc"
6809 ;;
6810 esac
6811 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6812 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6813 LD="${LD-ld}_sol2"
6814 fi
6815 ;;
6816 *)
6817 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6818 LD="${LD-ld} -64"
6819 fi
6820 ;;
6821 esac
6822 ;;
6823 esac
6824 fi
6825 rm -rf conftest*
6826 ;;
6827 esac
6828
6829 need_locks="$enable_libtool_lock"
6830
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6833 set dummy ${ac_tool_prefix}mt; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$MANIFEST_TOOL"; then
6840 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6860 if test -n "$MANIFEST_TOOL"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6862 $as_echo "$MANIFEST_TOOL" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868
6869 fi
6870 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6871 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6872 # Extract the first word of "mt", so it can be a program name with args.
6873 set dummy mt; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$ac_ct_MANIFEST_TOOL"; then
6880 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6900 if test -n "$ac_ct_MANIFEST_TOOL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6902 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6909 MANIFEST_TOOL=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912 yes:)
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6918 fi
6919 else
6920 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6921 fi
6922
6923 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6925 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6926 if ${lt_cv_path_mainfest_tool+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 lt_cv_path_mainfest_tool=no
6930 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6931 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6932 cat conftest.err >&5
6933 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6934 lt_cv_path_mainfest_tool=yes
6935 fi
6936 rm -f conftest*
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6939 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6940 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6941 MANIFEST_TOOL=:
6942 fi
6943
6944
6945
6946
6947
6948
6949 case $host_os in
6950 rhapsody* | darwin*)
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$DSYMUTIL"; then
6960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6980 if test -n "$DSYMUTIL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6982 $as_echo "$DSYMUTIL" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988
6989 fi
6990 if test -z "$ac_cv_prog_DSYMUTIL"; then
6991 ac_ct_DSYMUTIL=$DSYMUTIL
6992 # Extract the first word of "dsymutil", so it can be a program name with args.
6993 set dummy dsymutil; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$ac_ct_DSYMUTIL"; then
7000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7020 if test -n "$ac_ct_DSYMUTIL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028 if test "x$ac_ct_DSYMUTIL" = x; then
7029 DSYMUTIL=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032 yes:)
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037 DSYMUTIL=$ac_ct_DSYMUTIL
7038 fi
7039 else
7040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7041 fi
7042
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if ${ac_cv_prog_NMEDIT+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$NMEDIT"; then
7052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 NMEDIT=$ac_cv_prog_NMEDIT
7072 if test -n "$NMEDIT"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7074 $as_echo "$NMEDIT" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080
7081 fi
7082 if test -z "$ac_cv_prog_NMEDIT"; then
7083 ac_ct_NMEDIT=$NMEDIT
7084 # Extract the first word of "nmedit", so it can be a program name with args.
7085 set dummy nmedit; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$ac_ct_NMEDIT"; then
7092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7112 if test -n "$ac_ct_NMEDIT"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7114 $as_echo "$ac_ct_NMEDIT" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120 if test "x$ac_ct_NMEDIT" = x; then
7121 NMEDIT=":"
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124 yes:)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127 ac_tool_warned=yes ;;
7128 esac
7129 NMEDIT=$ac_ct_NMEDIT
7130 fi
7131 else
7132 NMEDIT="$ac_cv_prog_NMEDIT"
7133 fi
7134
7135 if test -n "$ac_tool_prefix"; then
7136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_LIPO+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$LIPO"; then
7144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 LIPO=$ac_cv_prog_LIPO
7164 if test -n "$LIPO"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7166 $as_echo "$LIPO" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172
7173 fi
7174 if test -z "$ac_cv_prog_LIPO"; then
7175 ac_ct_LIPO=$LIPO
7176 # Extract the first word of "lipo", so it can be a program name with args.
7177 set dummy lipo; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$ac_ct_LIPO"; then
7184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_prog_ac_ct_LIPO="lipo"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7204 if test -n "$ac_ct_LIPO"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7206 $as_echo "$ac_ct_LIPO" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212 if test "x$ac_ct_LIPO" = x; then
7213 LIPO=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 LIPO=$ac_ct_LIPO
7222 fi
7223 else
7224 LIPO="$ac_cv_prog_LIPO"
7225 fi
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}otool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_OTOOL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$OTOOL"; then
7236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 OTOOL=$ac_cv_prog_OTOOL
7256 if test -n "$OTOOL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7258 $as_echo "$OTOOL" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_OTOOL"; then
7267 ac_ct_OTOOL=$OTOOL
7268 # Extract the first word of "otool", so it can be a program name with args.
7269 set dummy otool; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$ac_ct_OTOOL"; then
7276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_OTOOL="otool"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7296 if test -n "$ac_ct_OTOOL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7298 $as_echo "$ac_ct_OTOOL" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304 if test "x$ac_ct_OTOOL" = x; then
7305 OTOOL=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313 OTOOL=$ac_ct_OTOOL
7314 fi
7315 else
7316 OTOOL="$ac_cv_prog_OTOOL"
7317 fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_OTOOL64+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$OTOOL64"; then
7328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 OTOOL64=$ac_cv_prog_OTOOL64
7348 if test -n "$OTOOL64"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7350 $as_echo "$OTOOL64" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_OTOOL64"; then
7359 ac_ct_OTOOL64=$OTOOL64
7360 # Extract the first word of "otool64", so it can be a program name with args.
7361 set dummy otool64; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_OTOOL64"; then
7368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_OTOOL64="otool64"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7388 if test -n "$ac_ct_OTOOL64"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7390 $as_echo "$ac_ct_OTOOL64" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_OTOOL64" = x; then
7397 OTOOL64=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 OTOOL64=$ac_ct_OTOOL64
7406 fi
7407 else
7408 OTOOL64="$ac_cv_prog_OTOOL64"
7409 fi
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7438 $as_echo_n "checking for -single_module linker flag... " >&6; }
7439 if ${lt_cv_apple_cc_single_mod+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 lt_cv_apple_cc_single_mod=no
7443 if test -z "${LT_MULTI_MODULE}"; then
7444 # By default we will add the -single_module flag. You can override
7445 # by either setting the environment variable LT_MULTI_MODULE
7446 # non-empty at configure time, or by adding -multi_module to the
7447 # link flags.
7448 rm -rf libconftest.dylib*
7449 echo "int foo(void){return 1;}" > conftest.c
7450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7451 -dynamiclib -Wl,-single_module conftest.c" >&5
7452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7454 _lt_result=$?
7455 # If there is a non-empty error log, and "single_module"
7456 # appears in it, assume the flag caused a linker warning
7457 if test -s conftest.err && $GREP single_module conftest.err; then
7458 cat conftest.err >&5
7459 # Otherwise, if the output was created with a 0 exit code from
7460 # the compiler, it worked.
7461 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7462 lt_cv_apple_cc_single_mod=yes
7463 else
7464 cat conftest.err >&5
7465 fi
7466 rm -rf libconftest.dylib*
7467 rm -f conftest.*
7468 fi
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7471 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7474 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7475 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 lt_cv_ld_exported_symbols_list=no
7479 save_LDFLAGS=$LDFLAGS
7480 echo "_main" > conftest.sym
7481 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484
7485 int
7486 main ()
7487 {
7488
7489 ;
7490 return 0;
7491 }
7492 _ACEOF
7493 if ac_fn_c_try_link "$LINENO"; then :
7494 lt_cv_ld_exported_symbols_list=yes
7495 else
7496 lt_cv_ld_exported_symbols_list=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext \
7499 conftest$ac_exeext conftest.$ac_ext
7500 LDFLAGS="$save_LDFLAGS"
7501
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7504 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7507 $as_echo_n "checking for -force_load linker flag... " >&6; }
7508 if ${lt_cv_ld_force_load+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 lt_cv_ld_force_load=no
7512 cat > conftest.c << _LT_EOF
7513 int forced_loaded() { return 2;}
7514 _LT_EOF
7515 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7516 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7517 echo "$AR cru libconftest.a conftest.o" >&5
7518 $AR cru libconftest.a conftest.o 2>&5
7519 echo "$RANLIB libconftest.a" >&5
7520 $RANLIB libconftest.a 2>&5
7521 cat > conftest.c << _LT_EOF
7522 int main() { return 0;}
7523 _LT_EOF
7524 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7525 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7526 _lt_result=$?
7527 if test -s conftest.err && $GREP force_load conftest.err; then
7528 cat conftest.err >&5
7529 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7530 lt_cv_ld_force_load=yes
7531 else
7532 cat conftest.err >&5
7533 fi
7534 rm -f conftest.err libconftest.a conftest conftest.c
7535 rm -rf conftest.dSYM
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7539 $as_echo "$lt_cv_ld_force_load" >&6; }
7540 case $host_os in
7541 rhapsody* | darwin1.[012])
7542 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7543 darwin1.*)
7544 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7545 darwin*) # darwin 5.x on
7546 # if running on 10.5 or later, the deployment target defaults
7547 # to the OS version, if on x86, and 10.4, the deployment
7548 # target defaults to 10.4. Don't you love it?
7549 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7550 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7551 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552 10.[012]*)
7553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7554 10.*)
7555 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7556 esac
7557 ;;
7558 esac
7559 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7560 _lt_dar_single_mod='$single_module'
7561 fi
7562 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7563 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7564 else
7565 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7566 fi
7567 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7568 _lt_dsymutil='~$DSYMUTIL $lib || :'
7569 else
7570 _lt_dsymutil=
7571 fi
7572 ;;
7573 esac
7574
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7577 $as_echo_n "checking for ANSI C header files... " >&6; }
7578 if ${ac_cv_header_stdc+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #include <stdlib.h>
7584 #include <stdarg.h>
7585 #include <string.h>
7586 #include <float.h>
7587
7588 int
7589 main ()
7590 {
7591
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_header_stdc=yes
7598 else
7599 ac_cv_header_stdc=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602
7603 if test $ac_cv_header_stdc = yes; then
7604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <string.h>
7608
7609 _ACEOF
7610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7611 $EGREP "memchr" >/dev/null 2>&1; then :
7612
7613 else
7614 ac_cv_header_stdc=no
7615 fi
7616 rm -f conftest*
7617
7618 fi
7619
7620 if test $ac_cv_header_stdc = yes; then
7621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <stdlib.h>
7625
7626 _ACEOF
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "free" >/dev/null 2>&1; then :
7629
7630 else
7631 ac_cv_header_stdc=no
7632 fi
7633 rm -f conftest*
7634
7635 fi
7636
7637 if test $ac_cv_header_stdc = yes; then
7638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7639 if test "$cross_compiling" = yes; then :
7640 :
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <ctype.h>
7645 #include <stdlib.h>
7646 #if ((' ' & 0x0FF) == 0x020)
7647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7649 #else
7650 # define ISLOWER(c) \
7651 (('a' <= (c) && (c) <= 'i') \
7652 || ('j' <= (c) && (c) <= 'r') \
7653 || ('s' <= (c) && (c) <= 'z'))
7654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7655 #endif
7656
7657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7658 int
7659 main ()
7660 {
7661 int i;
7662 for (i = 0; i < 256; i++)
7663 if (XOR (islower (i), ISLOWER (i))
7664 || toupper (i) != TOUPPER (i))
7665 return 2;
7666 return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_run "$LINENO"; then :
7670
7671 else
7672 ac_cv_header_stdc=no
7673 fi
7674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7675 conftest.$ac_objext conftest.beam conftest.$ac_ext
7676 fi
7677
7678 fi
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7681 $as_echo "$ac_cv_header_stdc" >&6; }
7682 if test $ac_cv_header_stdc = yes; then
7683
7684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7685
7686 fi
7687
7688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7690 inttypes.h stdint.h unistd.h
7691 do :
7692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7694 "
7695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7696 cat >>confdefs.h <<_ACEOF
7697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 _ACEOF
7699
7700 fi
7701
7702 done
7703
7704
7705 for ac_header in dlfcn.h
7706 do :
7707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7708 "
7709 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DLFCN_H 1
7712 _ACEOF
7713
7714 fi
7715
7716 done
7717
7718
7719
7720
7721
7722 # Set options
7723 enable_win32_dll=yes
7724
7725 case $host in
7726 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7729 set dummy ${ac_tool_prefix}as; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_AS+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$AS"; then
7736 ac_cv_prog_AS="$AS" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_AS="${ac_tool_prefix}as"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 AS=$ac_cv_prog_AS
7756 if test -n "$AS"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7758 $as_echo "$AS" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764
7765 fi
7766 if test -z "$ac_cv_prog_AS"; then
7767 ac_ct_AS=$AS
7768 # Extract the first word of "as", so it can be a program name with args.
7769 set dummy as; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 if test -n "$ac_ct_AS"; then
7776 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_ac_ct_AS="as"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789 done
7790 done
7791 IFS=$as_save_IFS
7792
7793 fi
7794 fi
7795 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7796 if test -n "$ac_ct_AS"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7798 $as_echo "$ac_ct_AS" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804 if test "x$ac_ct_AS" = x; then
7805 AS="false"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808 yes:)
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7812 esac
7813 AS=$ac_ct_AS
7814 fi
7815 else
7816 AS="$ac_cv_prog_AS"
7817 fi
7818
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_DLLTOOL+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$DLLTOOL"; then
7828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 DLLTOOL=$ac_cv_prog_DLLTOOL
7848 if test -n "$DLLTOOL"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7850 $as_echo "$DLLTOOL" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856
7857 fi
7858 if test -z "$ac_cv_prog_DLLTOOL"; then
7859 ac_ct_DLLTOOL=$DLLTOOL
7860 # Extract the first word of "dlltool", so it can be a program name with args.
7861 set dummy dlltool; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 if test -n "$ac_ct_DLLTOOL"; then
7868 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7888 if test -n "$ac_ct_DLLTOOL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7890 $as_echo "$ac_ct_DLLTOOL" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896 if test "x$ac_ct_DLLTOOL" = x; then
7897 DLLTOOL="false"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900 yes:)
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7904 esac
7905 DLLTOOL=$ac_ct_DLLTOOL
7906 fi
7907 else
7908 DLLTOOL="$ac_cv_prog_DLLTOOL"
7909 fi
7910
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_OBJDUMP+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$OBJDUMP"; then
7920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 OBJDUMP=$ac_cv_prog_OBJDUMP
7940 if test -n "$OBJDUMP"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7942 $as_echo "$OBJDUMP" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_OBJDUMP"; then
7951 ac_ct_OBJDUMP=$OBJDUMP
7952 # Extract the first word of "objdump", so it can be a program name with args.
7953 set dummy objdump; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 if test -n "$ac_ct_OBJDUMP"; then
7960 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7980 if test -n "$ac_ct_OBJDUMP"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7982 $as_echo "$ac_ct_OBJDUMP" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988 if test "x$ac_ct_OBJDUMP" = x; then
7989 OBJDUMP="false"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992 yes:)
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997 OBJDUMP=$ac_ct_OBJDUMP
7998 fi
7999 else
8000 OBJDUMP="$ac_cv_prog_OBJDUMP"
8001 fi
8002
8003 ;;
8004 esac
8005
8006 test -z "$AS" && AS=as
8007
8008
8009
8010
8011
8012 test -z "$DLLTOOL" && DLLTOOL=dlltool
8013
8014
8015
8016
8017
8018 test -z "$OBJDUMP" && OBJDUMP=objdump
8019
8020
8021
8022
8023
8024
8025
8026 enable_dlopen=no
8027
8028
8029
8030 # Check whether --enable-shared was given.
8031 if test "${enable_shared+set}" = set; then :
8032 enableval=$enable_shared; p=${PACKAGE-default}
8033 case $enableval in
8034 yes) enable_shared=yes ;;
8035 no) enable_shared=no ;;
8036 *)
8037 enable_shared=no
8038 # Look at the argument we got. We use all the common list separators.
8039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8040 for pkg in $enableval; do
8041 IFS="$lt_save_ifs"
8042 if test "X$pkg" = "X$p"; then
8043 enable_shared=yes
8044 fi
8045 done
8046 IFS="$lt_save_ifs"
8047 ;;
8048 esac
8049 else
8050 enable_shared=yes
8051 fi
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061 # Check whether --enable-static was given.
8062 if test "${enable_static+set}" = set; then :
8063 enableval=$enable_static; p=${PACKAGE-default}
8064 case $enableval in
8065 yes) enable_static=yes ;;
8066 no) enable_static=no ;;
8067 *)
8068 enable_static=no
8069 # Look at the argument we got. We use all the common list separators.
8070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071 for pkg in $enableval; do
8072 IFS="$lt_save_ifs"
8073 if test "X$pkg" = "X$p"; then
8074 enable_static=yes
8075 fi
8076 done
8077 IFS="$lt_save_ifs"
8078 ;;
8079 esac
8080 else
8081 enable_static=yes
8082 fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 # Check whether --with-pic was given.
8094 if test "${with_pic+set}" = set; then :
8095 withval=$with_pic; lt_p=${PACKAGE-default}
8096 case $withval in
8097 yes|no) pic_mode=$withval ;;
8098 *)
8099 pic_mode=default
8100 # Look at the argument we got. We use all the common list separators.
8101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8102 for lt_pkg in $withval; do
8103 IFS="$lt_save_ifs"
8104 if test "X$lt_pkg" = "X$lt_p"; then
8105 pic_mode=yes
8106 fi
8107 done
8108 IFS="$lt_save_ifs"
8109 ;;
8110 esac
8111 else
8112 pic_mode=default
8113 fi
8114
8115
8116 test -z "$pic_mode" && pic_mode=default
8117
8118
8119
8120
8121
8122
8123
8124 # Check whether --enable-fast-install was given.
8125 if test "${enable_fast_install+set}" = set; then :
8126 enableval=$enable_fast_install; p=${PACKAGE-default}
8127 case $enableval in
8128 yes) enable_fast_install=yes ;;
8129 no) enable_fast_install=no ;;
8130 *)
8131 enable_fast_install=no
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134 for pkg in $enableval; do
8135 IFS="$lt_save_ifs"
8136 if test "X$pkg" = "X$p"; then
8137 enable_fast_install=yes
8138 fi
8139 done
8140 IFS="$lt_save_ifs"
8141 ;;
8142 esac
8143 else
8144 enable_fast_install=yes
8145 fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157 # This can be used to rebuild libtool when needed
8158 LIBTOOL_DEPS="$ltmain"
8159
8160 # Always use our own libtool.
8161 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 test -z "$LN_S" && LN_S="ln -s"
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 if test -n "${ZSH_VERSION+set}" ; then
8208 setopt NO_GLOB_SUBST
8209 fi
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8212 $as_echo_n "checking for objdir... " >&6; }
8213 if ${lt_cv_objdir+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 rm -f .libs 2>/dev/null
8217 mkdir .libs 2>/dev/null
8218 if test -d .libs; then
8219 lt_cv_objdir=.libs
8220 else
8221 # MS-DOS does not allow filenames that begin with a dot.
8222 lt_cv_objdir=_libs
8223 fi
8224 rmdir .libs 2>/dev/null
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8227 $as_echo "$lt_cv_objdir" >&6; }
8228 objdir=$lt_cv_objdir
8229
8230
8231
8232
8233
8234 cat >>confdefs.h <<_ACEOF
8235 #define LT_OBJDIR "$lt_cv_objdir/"
8236 _ACEOF
8237
8238
8239
8240
8241 case $host_os in
8242 aix3*)
8243 # AIX sometimes has problems with the GCC collect2 program. For some
8244 # reason, if we set the COLLECT_NAMES environment variable, the problems
8245 # vanish in a puff of smoke.
8246 if test "X${COLLECT_NAMES+set}" != Xset; then
8247 COLLECT_NAMES=
8248 export COLLECT_NAMES
8249 fi
8250 ;;
8251 esac
8252
8253 # Global variables:
8254 ofile=libtool
8255 can_build_shared=yes
8256
8257 # All known linkers require a `.a' archive for static linking (except MSVC,
8258 # which needs '.lib').
8259 libext=a
8260
8261 with_gnu_ld="$lt_cv_prog_gnu_ld"
8262
8263 old_CC="$CC"
8264 old_CFLAGS="$CFLAGS"
8265
8266 # Set sane defaults for various variables
8267 test -z "$CC" && CC=cc
8268 test -z "$LTCC" && LTCC=$CC
8269 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8270 test -z "$LD" && LD=ld
8271 test -z "$ac_objext" && ac_objext=o
8272
8273 for cc_temp in $compiler""; do
8274 case $cc_temp in
8275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8277 \-*) ;;
8278 *) break;;
8279 esac
8280 done
8281 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8282
8283
8284 # Only perform the check for file, if the check method requires it
8285 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8286 case $deplibs_check_method in
8287 file_magic*)
8288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8290 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8291 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 case $MAGIC_CMD in
8295 [\\/*] | ?:[\\/]*)
8296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8297 ;;
8298 *)
8299 lt_save_MAGIC_CMD="$MAGIC_CMD"
8300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302 for ac_dir in $ac_dummy; do
8303 IFS="$lt_save_ifs"
8304 test -z "$ac_dir" && ac_dir=.
8305 if test -f $ac_dir/${ac_tool_prefix}file; then
8306 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8307 if test -n "$file_magic_test_file"; then
8308 case $deplibs_check_method in
8309 "file_magic "*)
8310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313 $EGREP "$file_magic_regex" > /dev/null; then
8314 :
8315 else
8316 cat <<_LT_EOF 1>&2
8317
8318 *** Warning: the command libtool uses to detect shared libraries,
8319 *** $file_magic_cmd, produces output that libtool cannot recognize.
8320 *** The result is that libtool may fail to recognize shared libraries
8321 *** as such. This will affect the creation of libtool libraries that
8322 *** depend on shared libraries, but programs linked with such libtool
8323 *** libraries will work regardless of this problem. Nevertheless, you
8324 *** may want to report the problem to your system manager and/or to
8325 *** bug-libtool@gnu.org
8326
8327 _LT_EOF
8328 fi ;;
8329 esac
8330 fi
8331 break
8332 fi
8333 done
8334 IFS="$lt_save_ifs"
8335 MAGIC_CMD="$lt_save_MAGIC_CMD"
8336 ;;
8337 esac
8338 fi
8339
8340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341 if test -n "$MAGIC_CMD"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8343 $as_echo "$MAGIC_CMD" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347 fi
8348
8349
8350
8351
8352
8353 if test -z "$lt_cv_path_MAGIC_CMD"; then
8354 if test -n "$ac_tool_prefix"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8356 $as_echo_n "checking for file... " >&6; }
8357 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 case $MAGIC_CMD in
8361 [\\/*] | ?:[\\/]*)
8362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8363 ;;
8364 *)
8365 lt_save_MAGIC_CMD="$MAGIC_CMD"
8366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8368 for ac_dir in $ac_dummy; do
8369 IFS="$lt_save_ifs"
8370 test -z "$ac_dir" && ac_dir=.
8371 if test -f $ac_dir/file; then
8372 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8373 if test -n "$file_magic_test_file"; then
8374 case $deplibs_check_method in
8375 "file_magic "*)
8376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8379 $EGREP "$file_magic_regex" > /dev/null; then
8380 :
8381 else
8382 cat <<_LT_EOF 1>&2
8383
8384 *** Warning: the command libtool uses to detect shared libraries,
8385 *** $file_magic_cmd, produces output that libtool cannot recognize.
8386 *** The result is that libtool may fail to recognize shared libraries
8387 *** as such. This will affect the creation of libtool libraries that
8388 *** depend on shared libraries, but programs linked with such libtool
8389 *** libraries will work regardless of this problem. Nevertheless, you
8390 *** may want to report the problem to your system manager and/or to
8391 *** bug-libtool@gnu.org
8392
8393 _LT_EOF
8394 fi ;;
8395 esac
8396 fi
8397 break
8398 fi
8399 done
8400 IFS="$lt_save_ifs"
8401 MAGIC_CMD="$lt_save_MAGIC_CMD"
8402 ;;
8403 esac
8404 fi
8405
8406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8407 if test -n "$MAGIC_CMD"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8409 $as_echo "$MAGIC_CMD" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414
8415
8416 else
8417 MAGIC_CMD=:
8418 fi
8419 fi
8420
8421 fi
8422 ;;
8423 esac
8424
8425 # Use C for the default configuration in the libtool script
8426
8427 lt_save_CC="$CC"
8428 ac_ext=c
8429 ac_cpp='$CPP $CPPFLAGS'
8430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433
8434
8435 # Source file extension for C test sources.
8436 ac_ext=c
8437
8438 # Object file extension for compiled C test sources.
8439 objext=o
8440 objext=$objext
8441
8442 # Code to be used in simple compile tests
8443 lt_simple_compile_test_code="int some_variable = 0;"
8444
8445 # Code to be used in simple link tests
8446 lt_simple_link_test_code='int main(){return(0);}'
8447
8448
8449
8450
8451
8452
8453
8454 # If no C compiler was specified, use CC.
8455 LTCC=${LTCC-"$CC"}
8456
8457 # If no C compiler flags were specified, use CFLAGS.
8458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8459
8460 # Allow CC to be a program name with arguments.
8461 compiler=$CC
8462
8463 # Save the default compiler, since it gets overwritten when the other
8464 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8465 compiler_DEFAULT=$CC
8466
8467 # save warnings/boilerplate of simple test code
8468 ac_outfile=conftest.$ac_objext
8469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8471 _lt_compiler_boilerplate=`cat conftest.err`
8472 $RM conftest*
8473
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8477 _lt_linker_boilerplate=`cat conftest.err`
8478 $RM -r conftest*
8479
8480
8481 if test -n "$compiler"; then
8482
8483 lt_prog_compiler_no_builtin_flag=
8484
8485 if test "$GCC" = yes; then
8486 case $cc_basename in
8487 nvcc*)
8488 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8489 *)
8490 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8491 esac
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8494 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8495 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 lt_cv_prog_compiler_rtti_exceptions=no
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501 lt_compiler_flag="-fno-rtti -fno-exceptions"
8502 # Insert the option either (1) after the last *FLAGS variable, or
8503 # (2) before a word containing "conftest.", or (3) at the end.
8504 # Note that $ac_compile itself does not contain backslashes and begins
8505 # with a dollar sign (not a hyphen), so the echo should work correctly.
8506 # The option is referenced via a variable to avoid confusing sed.
8507 lt_compile=`echo "$ac_compile" | $SED \
8508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510 -e 's:$: $lt_compiler_flag:'`
8511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8512 (eval "$lt_compile" 2>conftest.err)
8513 ac_status=$?
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 if (exit $ac_status) && test -s "$ac_outfile"; then
8517 # The compiler can only warn and ignore the option if not recognized
8518 # So say no if there are warnings other than the usual output.
8519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8522 lt_cv_prog_compiler_rtti_exceptions=yes
8523 fi
8524 fi
8525 $RM conftest*
8526
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8529 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8530
8531 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8533 else
8534 :
8535 fi
8536
8537 fi
8538
8539
8540
8541
8542
8543
8544 lt_prog_compiler_wl=
8545 lt_prog_compiler_pic=
8546 lt_prog_compiler_static=
8547
8548
8549 if test "$GCC" = yes; then
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_static='-static'
8552
8553 case $host_os in
8554 aix*)
8555 # All AIX code is PIC.
8556 if test "$host_cpu" = ia64; then
8557 # AIX 5 now supports IA64 processor
8558 lt_prog_compiler_static='-Bstatic'
8559 fi
8560 ;;
8561
8562 amigaos*)
8563 case $host_cpu in
8564 powerpc)
8565 # see comment about AmigaOS4 .so support
8566 lt_prog_compiler_pic='-fPIC'
8567 ;;
8568 m68k)
8569 # FIXME: we need at least 68020 code to build shared libraries, but
8570 # adding the `-m68020' flag to GCC prevents building anything better,
8571 # like `-m68040'.
8572 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8573 ;;
8574 esac
8575 ;;
8576
8577 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8578 # PIC is the default for these OSes.
8579 ;;
8580
8581 mingw* | cygwin* | pw32* | os2* | cegcc*)
8582 # This hack is so that the source file can tell whether it is being
8583 # built for inclusion in a dll (and should export symbols for example).
8584 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8585 # (--disable-auto-import) libraries
8586 lt_prog_compiler_pic='-DDLL_EXPORT'
8587 ;;
8588
8589 darwin* | rhapsody*)
8590 # PIC is the default on this platform
8591 # Common symbols not allowed in MH_DYLIB files
8592 lt_prog_compiler_pic='-fno-common'
8593 ;;
8594
8595 haiku*)
8596 # PIC is the default for Haiku.
8597 # The "-static" flag exists, but is broken.
8598 lt_prog_compiler_static=
8599 ;;
8600
8601 hpux*)
8602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8604 # sets the default TLS model and affects inlining.
8605 case $host_cpu in
8606 hppa*64*)
8607 # +Z the default
8608 ;;
8609 *)
8610 lt_prog_compiler_pic='-fPIC'
8611 ;;
8612 esac
8613 ;;
8614
8615 interix[3-9]*)
8616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8617 # Instead, we relocate shared libraries at runtime.
8618 ;;
8619
8620 msdosdjgpp*)
8621 # Just because we use GCC doesn't mean we suddenly get shared libraries
8622 # on systems that don't support them.
8623 lt_prog_compiler_can_build_shared=no
8624 enable_shared=no
8625 ;;
8626
8627 *nto* | *qnx*)
8628 # QNX uses GNU C++, but need to define -shared option too, otherwise
8629 # it will coredump.
8630 lt_prog_compiler_pic='-fPIC -shared'
8631 ;;
8632
8633 sysv4*MP*)
8634 if test -d /usr/nec; then
8635 lt_prog_compiler_pic=-Kconform_pic
8636 fi
8637 ;;
8638
8639 *)
8640 lt_prog_compiler_pic='-fPIC'
8641 ;;
8642 esac
8643
8644 case $cc_basename in
8645 nvcc*) # Cuda Compiler Driver 2.2
8646 lt_prog_compiler_wl='-Xlinker '
8647 if test -n "$lt_prog_compiler_pic"; then
8648 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8649 fi
8650 ;;
8651 esac
8652 else
8653 # PORTME Check for flag to pass linker flags through the system compiler.
8654 case $host_os in
8655 aix*)
8656 lt_prog_compiler_wl='-Wl,'
8657 if test "$host_cpu" = ia64; then
8658 # AIX 5 now supports IA64 processor
8659 lt_prog_compiler_static='-Bstatic'
8660 else
8661 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8662 fi
8663 ;;
8664
8665 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 lt_prog_compiler_pic='-DDLL_EXPORT'
8669 ;;
8670
8671 hpux9* | hpux10* | hpux11*)
8672 lt_prog_compiler_wl='-Wl,'
8673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8674 # not for PA HP-UX.
8675 case $host_cpu in
8676 hppa*64*|ia64*)
8677 # +Z the default
8678 ;;
8679 *)
8680 lt_prog_compiler_pic='+Z'
8681 ;;
8682 esac
8683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8684 lt_prog_compiler_static='${wl}-a ${wl}archive'
8685 ;;
8686
8687 irix5* | irix6* | nonstopux*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # PIC (with -KPIC) is the default.
8690 lt_prog_compiler_static='-non_shared'
8691 ;;
8692
8693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8694 case $cc_basename in
8695 # old Intel for x86_64 which still supported -KPIC.
8696 ecc*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-static'
8700 ;;
8701 # icc used to be incompatible with GCC.
8702 # ICC 10 doesn't accept -KPIC any more.
8703 icc* | ifort*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-fPIC'
8706 lt_prog_compiler_static='-static'
8707 ;;
8708 # Lahey Fortran 8.1.
8709 lf95*)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='--shared'
8712 lt_prog_compiler_static='--static'
8713 ;;
8714 nagfor*)
8715 # NAG Fortran compiler
8716 lt_prog_compiler_wl='-Wl,-Wl,,'
8717 lt_prog_compiler_pic='-PIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 ;;
8720 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8721 # Portland Group compilers (*not* the Pentium gcc compiler,
8722 # which looks to be a dead project)
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-fpic'
8725 lt_prog_compiler_static='-Bstatic'
8726 ;;
8727 ccc*)
8728 lt_prog_compiler_wl='-Wl,'
8729 # All Alpha code is PIC.
8730 lt_prog_compiler_static='-non_shared'
8731 ;;
8732 xl* | bgxl* | bgf* | mpixl*)
8733 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-qpic'
8736 lt_prog_compiler_static='-qstaticlink'
8737 ;;
8738 *)
8739 case `$CC -V 2>&1 | sed 5q` in
8740 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_wl=''
8745 ;;
8746 *Sun\ F* | *Sun*Fortran*)
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 lt_prog_compiler_wl='-Qoption ld '
8750 ;;
8751 *Sun\ C*)
8752 # Sun C 5.9
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 lt_prog_compiler_wl='-Wl,'
8756 ;;
8757 *Intel*\ [CF]*Compiler*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fPIC'
8760 lt_prog_compiler_static='-static'
8761 ;;
8762 *Portland\ Group*)
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='-fpic'
8765 lt_prog_compiler_static='-Bstatic'
8766 ;;
8767 esac
8768 ;;
8769 esac
8770 ;;
8771
8772 newsos6)
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 *nto* | *qnx*)
8778 # QNX uses GNU C++, but need to define -shared option too, otherwise
8779 # it will coredump.
8780 lt_prog_compiler_pic='-fPIC -shared'
8781 ;;
8782
8783 osf3* | osf4* | osf5*)
8784 lt_prog_compiler_wl='-Wl,'
8785 # All OSF/1 code is PIC.
8786 lt_prog_compiler_static='-non_shared'
8787 ;;
8788
8789 rdos*)
8790 lt_prog_compiler_static='-non_shared'
8791 ;;
8792
8793 solaris*)
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 case $cc_basename in
8797 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8798 lt_prog_compiler_wl='-Qoption ld ';;
8799 *)
8800 lt_prog_compiler_wl='-Wl,';;
8801 esac
8802 ;;
8803
8804 sunos4*)
8805 lt_prog_compiler_wl='-Qoption ld '
8806 lt_prog_compiler_pic='-PIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 ;;
8809
8810 sysv4 | sysv4.2uw2* | sysv4.3*)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815
8816 sysv4*MP*)
8817 if test -d /usr/nec ;then
8818 lt_prog_compiler_pic='-Kconform_pic'
8819 lt_prog_compiler_static='-Bstatic'
8820 fi
8821 ;;
8822
8823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-Bstatic'
8827 ;;
8828
8829 unicos*)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_can_build_shared=no
8832 ;;
8833
8834 uts4*)
8835 lt_prog_compiler_pic='-pic'
8836 lt_prog_compiler_static='-Bstatic'
8837 ;;
8838
8839 *)
8840 lt_prog_compiler_can_build_shared=no
8841 ;;
8842 esac
8843 fi
8844
8845 case $host_os in
8846 # For platforms which do not support PIC, -DPIC is meaningless:
8847 *djgpp*)
8848 lt_prog_compiler_pic=
8849 ;;
8850 *)
8851 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8852 ;;
8853 esac
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8856 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8857 if ${lt_cv_prog_compiler_pic+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8863 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8864 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8865
8866 #
8867 # Check to make sure the PIC flag actually works.
8868 #
8869 if test -n "$lt_prog_compiler_pic"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8872 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 lt_cv_prog_compiler_pic_works=no
8876 ac_outfile=conftest.$ac_objext
8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8879 # Insert the option either (1) after the last *FLAGS variable, or
8880 # (2) before a word containing "conftest.", or (3) at the end.
8881 # Note that $ac_compile itself does not contain backslashes and begins
8882 # with a dollar sign (not a hyphen), so the echo should work correctly.
8883 # The option is referenced via a variable to avoid confusing sed.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889 (eval "$lt_compile" 2>conftest.err)
8890 ac_status=$?
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 if (exit $ac_status) && test -s "$ac_outfile"; then
8894 # The compiler can only warn and ignore the option if not recognized
8895 # So say no if there are warnings other than the usual output.
8896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8899 lt_cv_prog_compiler_pic_works=yes
8900 fi
8901 fi
8902 $RM conftest*
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8906 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8907
8908 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8909 case $lt_prog_compiler_pic in
8910 "" | " "*) ;;
8911 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8912 esac
8913 else
8914 lt_prog_compiler_pic=
8915 lt_prog_compiler_can_build_shared=no
8916 fi
8917
8918 fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930 #
8931 # Check to make sure the static flag actually works.
8932 #
8933 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8936 if ${lt_cv_prog_compiler_static_works+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 lt_cv_prog_compiler_static_works=no
8940 save_LDFLAGS="$LDFLAGS"
8941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8944 # The linker can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 if test -s conftest.err; then
8947 # Append any errors to the config.log.
8948 cat conftest.err 1>&5
8949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_static_works=yes
8953 fi
8954 else
8955 lt_cv_prog_compiler_static_works=yes
8956 fi
8957 fi
8958 $RM -r conftest*
8959 LDFLAGS="$save_LDFLAGS"
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8963 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8964
8965 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8966 :
8967 else
8968 lt_prog_compiler_static=
8969 fi
8970
8971
8972
8973
8974
8975
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979 if ${lt_cv_prog_compiler_c_o+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 lt_cv_prog_compiler_c_o=no
8983 $RM -r conftest 2>/dev/null
8984 mkdir conftest
8985 cd conftest
8986 mkdir out
8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989 lt_compiler_flag="-o out/conftest2.$ac_objext"
8990 # Insert the option either (1) after the last *FLAGS variable, or
8991 # (2) before a word containing "conftest.", or (3) at the end.
8992 # Note that $ac_compile itself does not contain backslashes and begins
8993 # with a dollar sign (not a hyphen), so the echo should work correctly.
8994 lt_compile=`echo "$ac_compile" | $SED \
8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997 -e 's:$: $lt_compiler_flag:'`
8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999 (eval "$lt_compile" 2>out/conftest.err)
9000 ac_status=$?
9001 cat out/conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004 then
9005 # The compiler can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010 lt_cv_prog_compiler_c_o=yes
9011 fi
9012 fi
9013 chmod u+w . 2>&5
9014 $RM conftest*
9015 # SGI C++ compiler will create directory out/ii_files/ for
9016 # template instantiation
9017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018 $RM out/* && rmdir out
9019 cd ..
9020 $RM -r conftest
9021 $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9034 if ${lt_cv_prog_compiler_c_o+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 lt_cv_prog_compiler_c_o=no
9038 $RM -r conftest 2>/dev/null
9039 mkdir conftest
9040 cd conftest
9041 mkdir out
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043
9044 lt_compiler_flag="-o out/conftest2.$ac_objext"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>out/conftest.err)
9055 ac_status=$?
9056 cat out/conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9059 then
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings
9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_c_o=yes
9066 fi
9067 fi
9068 chmod u+w . 2>&5
9069 $RM conftest*
9070 # SGI C++ compiler will create directory out/ii_files/ for
9071 # template instantiation
9072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9073 $RM out/* && rmdir out
9074 cd ..
9075 $RM -r conftest
9076 $RM conftest*
9077
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9080 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081
9082
9083
9084
9085 hard_links="nottested"
9086 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9087 # do not overwrite the value of need_locks provided by the user
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9089 $as_echo_n "checking if we can lock with hard links... " >&6; }
9090 hard_links=yes
9091 $RM conftest*
9092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9093 touch conftest.a
9094 ln conftest.a conftest.b 2>&5 || hard_links=no
9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9097 $as_echo "$hard_links" >&6; }
9098 if test "$hard_links" = no; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9100 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9101 need_locks=warn
9102 fi
9103 else
9104 need_locks=no
9105 fi
9106
9107
9108
9109
9110
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9114
9115 runpath_var=
9116 allow_undefined_flag=
9117 always_export_symbols=no
9118 archive_cmds=
9119 archive_expsym_cmds=
9120 compiler_needs_object=no
9121 enable_shared_with_static_runtimes=no
9122 export_dynamic_flag_spec=
9123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9124 hardcode_automatic=no
9125 hardcode_direct=no
9126 hardcode_direct_absolute=no
9127 hardcode_libdir_flag_spec=
9128 hardcode_libdir_separator=
9129 hardcode_minus_L=no
9130 hardcode_shlibpath_var=unsupported
9131 inherit_rpath=no
9132 link_all_deplibs=unknown
9133 module_cmds=
9134 module_expsym_cmds=
9135 old_archive_from_new_cmds=
9136 old_archive_from_expsyms_cmds=
9137 thread_safe_flag_spec=
9138 whole_archive_flag_spec=
9139 # include_expsyms should be a list of space-separated symbols to be *always*
9140 # included in the symbol list
9141 include_expsyms=
9142 # exclude_expsyms can be an extended regexp of symbols to exclude
9143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9145 # as well as any symbol that contains `d'.
9146 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9148 # platforms (ab)use it in PIC code, but their linkers get confused if
9149 # the symbol is explicitly referenced. Since portable code cannot
9150 # rely on this symbol name, it's probably fine to never include it in
9151 # preloaded symbol tables.
9152 # Exclude shared library initialization/finalization symbols.
9153 extract_expsyms_cmds=
9154
9155 case $host_os in
9156 cygwin* | mingw* | pw32* | cegcc*)
9157 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9158 # When not using gcc, we currently assume that we are using
9159 # Microsoft Visual C++.
9160 if test "$GCC" != yes; then
9161 with_gnu_ld=no
9162 fi
9163 ;;
9164 interix*)
9165 # we just hope/assume this is gcc and not c89 (= MSVC++)
9166 with_gnu_ld=yes
9167 ;;
9168 openbsd*)
9169 with_gnu_ld=no
9170 ;;
9171 esac
9172
9173 ld_shlibs=yes
9174
9175 # On some targets, GNU ld is compatible enough with the native linker
9176 # that we're better off using the native interface for both.
9177 lt_use_gnu_ld_interface=no
9178 if test "$with_gnu_ld" = yes; then
9179 case $host_os in
9180 aix*)
9181 # The AIX port of GNU ld has always aspired to compatibility
9182 # with the native linker. However, as the warning in the GNU ld
9183 # block says, versions before 2.19.5* couldn't really create working
9184 # shared libraries, regardless of the interface used.
9185 case `$LD -v 2>&1` in
9186 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9187 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9188 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9189 *)
9190 lt_use_gnu_ld_interface=yes
9191 ;;
9192 esac
9193 ;;
9194 *)
9195 lt_use_gnu_ld_interface=yes
9196 ;;
9197 esac
9198 fi
9199
9200 if test "$lt_use_gnu_ld_interface" = yes; then
9201 # If archive_cmds runs LD, not CC, wlarc should be empty
9202 wlarc='${wl}'
9203
9204 # Set some defaults for GNU ld with shared library support. These
9205 # are reset later if shared libraries are not supported. Putting them
9206 # here allows them to be overridden if necessary.
9207 runpath_var=LD_RUN_PATH
9208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9209 export_dynamic_flag_spec='${wl}--export-dynamic'
9210 # ancient GNU ld didn't support --whole-archive et. al.
9211 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9212 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9213 else
9214 whole_archive_flag_spec=
9215 fi
9216 supports_anon_versioning=no
9217 case `$LD -v 2>&1` in
9218 *GNU\ gold*) supports_anon_versioning=yes ;;
9219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9222 *\ 2.11.*) ;; # other 2.11 versions
9223 *) supports_anon_versioning=yes ;;
9224 esac
9225
9226 # See if GNU ld supports shared libraries.
9227 case $host_os in
9228 aix[3-9]*)
9229 # On AIX/PPC, the GNU linker is very broken
9230 if test "$host_cpu" != ia64; then
9231 ld_shlibs=no
9232 cat <<_LT_EOF 1>&2
9233
9234 *** Warning: the GNU linker, at least up to release 2.19, is reported
9235 *** to be unable to reliably create shared libraries on AIX.
9236 *** Therefore, libtool is disabling shared libraries support. If you
9237 *** really care for shared libraries, you may want to install binutils
9238 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9239 *** You will then need to restart the configuration process.
9240
9241 _LT_EOF
9242 fi
9243 ;;
9244
9245 amigaos*)
9246 case $host_cpu in
9247 powerpc)
9248 # see comment about AmigaOS4 .so support
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 archive_expsym_cmds=''
9251 ;;
9252 m68k)
9253 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)'
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 hardcode_minus_L=yes
9256 ;;
9257 esac
9258 ;;
9259
9260 beos*)
9261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9262 allow_undefined_flag=unsupported
9263 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9264 # support --undefined. This deserves some investigation. FIXME
9265 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9273 # as there is no search path for DLLs.
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 export_dynamic_flag_spec='${wl}--export-all-symbols'
9276 allow_undefined_flag=unsupported
9277 always_export_symbols=no
9278 enable_shared_with_static_runtimes=yes
9279 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'
9280 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9281
9282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9284 # If the export-symbols file already is a .def file (1st line
9285 # is EXPORTS), use it as is; otherwise, prepend...
9286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9287 cp $export_symbols $output_objdir/$soname.def;
9288 else
9289 echo EXPORTS > $output_objdir/$soname.def;
9290 cat $export_symbols >> $output_objdir/$soname.def;
9291 fi~
9292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 haiku*)
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 link_all_deplibs=yes
9301 ;;
9302
9303 interix[3-9]*)
9304 hardcode_direct=no
9305 hardcode_shlibpath_var=no
9306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9307 export_dynamic_flag_spec='${wl}-E'
9308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9309 # Instead, shared libraries are loaded at an image base (0x10000000 by
9310 # default) and relocated if they conflict, which is a slow very memory
9311 # consuming and fragmenting process. To avoid this, we pick a random,
9312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9315 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'
9316 ;;
9317
9318 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9319 tmp_diet=no
9320 if test "$host_os" = linux-dietlibc; then
9321 case $cc_basename in
9322 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9323 esac
9324 fi
9325 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9326 && test "$tmp_diet" = no
9327 then
9328 tmp_addflag=' $pic_flag'
9329 tmp_sharedflag='-shared'
9330 case $cc_basename,$host_cpu in
9331 pgcc*) # Portland Group C compiler
9332 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'
9333 tmp_addflag=' $pic_flag'
9334 ;;
9335 pgf77* | pgf90* | pgf95* | pgfortran*)
9336 # Portland Group f77 and f90 compilers
9337 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'
9338 tmp_addflag=' $pic_flag -Mnomain' ;;
9339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9340 tmp_addflag=' -i_dynamic' ;;
9341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9342 tmp_addflag=' -i_dynamic -nofor_main' ;;
9343 ifc* | ifort*) # Intel Fortran compiler
9344 tmp_addflag=' -nofor_main' ;;
9345 lf95*) # Lahey Fortran 8.1
9346 whole_archive_flag_spec=
9347 tmp_sharedflag='--shared' ;;
9348 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9349 tmp_sharedflag='-qmkshrobj'
9350 tmp_addflag= ;;
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 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'
9353 compiler_needs_object=yes
9354 ;;
9355 esac
9356 case `$CC -V 2>&1 | sed 5q` in
9357 *Sun\ C*) # Sun C 5.9
9358 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'
9359 compiler_needs_object=yes
9360 tmp_sharedflag='-G' ;;
9361 *Sun\ F*) # Sun Fortran 8.3
9362 tmp_sharedflag='-G' ;;
9363 esac
9364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365
9366 if test "x$supports_anon_versioning" = xyes; then
9367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9369 echo "local: *; };" >> $output_objdir/$libname.ver~
9370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9371 fi
9372
9373 case $cc_basename in
9374 xlf* | bgf* | bgxlf* | mpixlf*)
9375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9379 if test "x$supports_anon_versioning" = xyes; then
9380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9382 echo "local: *; };" >> $output_objdir/$libname.ver~
9383 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9384 fi
9385 ;;
9386 esac
9387 else
9388 ld_shlibs=no
9389 fi
9390 ;;
9391
9392 netbsd*)
9393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9395 wlarc=
9396 else
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 fi
9400 ;;
9401
9402 solaris*)
9403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9404 ld_shlibs=no
9405 cat <<_LT_EOF 1>&2
9406
9407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9408 *** create shared libraries on Solaris systems. Therefore, libtool
9409 *** is disabling shared libraries support. We urge you to upgrade GNU
9410 *** binutils to release 2.9.1 or newer. Another option is to modify
9411 *** your PATH or compiler configuration so that the native linker is
9412 *** used, and then restart.
9413
9414 _LT_EOF
9415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418 else
9419 ld_shlibs=no
9420 fi
9421 ;;
9422
9423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9424 case `$LD -v 2>&1` in
9425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9426 ld_shlibs=no
9427 cat <<_LT_EOF 1>&2
9428
9429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9430 *** reliably create shared libraries on SCO systems. Therefore, libtool
9431 *** is disabling shared libraries support. We urge you to upgrade GNU
9432 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9433 *** your PATH or compiler configuration so that the native linker is
9434 *** used, and then restart.
9435
9436 _LT_EOF
9437 ;;
9438 *)
9439 # For security reasons, it is highly recommended that you always
9440 # use absolute paths for naming shared libraries, and exclude the
9441 # DT_RUNPATH tag from executables and libraries. But doing so
9442 # requires that you compile everything twice, which is a pain.
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
9451 esac
9452 ;;
9453
9454 sunos4*)
9455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9456 wlarc=
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 *)
9462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465 else
9466 ld_shlibs=no
9467 fi
9468 ;;
9469 esac
9470
9471 if test "$ld_shlibs" = no; then
9472 runpath_var=
9473 hardcode_libdir_flag_spec=
9474 export_dynamic_flag_spec=
9475 whole_archive_flag_spec=
9476 fi
9477 else
9478 # PORTME fill in a description of your system's linker (not GNU ld)
9479 case $host_os in
9480 aix3*)
9481 allow_undefined_flag=unsupported
9482 always_export_symbols=yes
9483 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'
9484 # Note: this linker hardcodes the directories in LIBPATH if there
9485 # are no directories specified by -L.
9486 hardcode_minus_L=yes
9487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9488 # Neither direct hardcoding nor static linking is supported with a
9489 # broken collect2.
9490 hardcode_direct=unsupported
9491 fi
9492 ;;
9493
9494 aix[4-9]*)
9495 if test "$host_cpu" = ia64; then
9496 # On IA64, the linker does run time linking by default, so we don't
9497 # have to do anything special.
9498 aix_use_runtimelinking=no
9499 exp_sym_flag='-Bexport'
9500 no_entry_flag=""
9501 else
9502 # If we're using GNU nm, then we don't want the "-C" option.
9503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9504 # Also, AIX nm treats weak defined symbols like other global
9505 # defined symbols, whereas GNU nm marks them as "W".
9506 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9507 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'
9508 else
9509 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'
9510 fi
9511 aix_use_runtimelinking=no
9512
9513 # Test if we are trying to use run time linking or normal
9514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9515 # need to do runtime linking.
9516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9517 for ld_flag in $LDFLAGS; do
9518 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9519 aix_use_runtimelinking=yes
9520 break
9521 fi
9522 done
9523 ;;
9524 esac
9525
9526 exp_sym_flag='-bexport'
9527 no_entry_flag='-bnoentry'
9528 fi
9529
9530 # When large executables or shared objects are built, AIX ld can
9531 # have problems creating the table of contents. If linking a library
9532 # or program results in "error TOC overflow" add -mminimal-toc to
9533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9535
9536 archive_cmds=''
9537 hardcode_direct=yes
9538 hardcode_direct_absolute=yes
9539 hardcode_libdir_separator=':'
9540 link_all_deplibs=yes
9541 file_list_spec='${wl}-f,'
9542
9543 if test "$GCC" = yes; then
9544 case $host_os in aix4.[012]|aix4.[012].*)
9545 # We only want to do this on AIX 4.2 and lower, the check
9546 # below for broken collect2 doesn't work under 4.3+
9547 collect2name=`${CC} -print-prog-name=collect2`
9548 if test -f "$collect2name" &&
9549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9550 then
9551 # We have reworked collect2
9552 :
9553 else
9554 # We have old collect2
9555 hardcode_direct=unsupported
9556 # It fails to find uninstalled libraries when the uninstalled
9557 # path is not listed in the libpath. Setting hardcode_minus_L
9558 # to unsupported forces relinking
9559 hardcode_minus_L=yes
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_libdir_separator=
9562 fi
9563 ;;
9564 esac
9565 shared_flag='-shared'
9566 if test "$aix_use_runtimelinking" = yes; then
9567 shared_flag="$shared_flag "'${wl}-G'
9568 fi
9569 else
9570 # not using gcc
9571 if test "$host_cpu" = ia64; then
9572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9573 # chokes on -Wl,-G. The following line is correct:
9574 shared_flag='-G'
9575 else
9576 if test "$aix_use_runtimelinking" = yes; then
9577 shared_flag='${wl}-G'
9578 else
9579 shared_flag='${wl}-bM:SRE'
9580 fi
9581 fi
9582 fi
9583
9584 export_dynamic_flag_spec='${wl}-bexpall'
9585 # It seems that -bexpall does not export symbols beginning with
9586 # underscore (_), so it is better to generate a list of symbols to export.
9587 always_export_symbols=yes
9588 if test "$aix_use_runtimelinking" = yes; then
9589 # Warning - without using the other runtime loading flags (-brtl),
9590 # -berok will link without error, but may produce a broken library.
9591 allow_undefined_flag='-berok'
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. */
9602
9603 int
9604 main ()
9605 {
9606
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612
9613 lt_aix_libpath_sed='
9614 /Import File Strings/,/^$/ {
9615 /^0/ {
9616 s/^0 *\([^ ]*\) *$/\1/
9617 p
9618 }
9619 }'
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"`
9624 fi
9625 fi
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"
9630 fi
9631
9632 fi
9633
9634 aix_libpath=$lt_cv_aix_libpath_
9635 fi
9636
9637 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9638 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"
9639 else
9640 if test "$host_cpu" = ia64; then
9641 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9642 allow_undefined_flag="-z nodefs"
9643 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"
9644 else
9645 # Determine the default libpath from the value encoded in an
9646 # empty executable.
9647 if test "${lt_cv_aix_libpath+set}" = set; then
9648 aix_libpath=$lt_cv_aix_libpath
9649 else
9650 if ${lt_cv_aix_libpath_+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655
9656 int
9657 main ()
9658 {
9659
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 if ac_fn_c_try_link "$LINENO"; then :
9665
9666 lt_aix_libpath_sed='
9667 /Import File Strings/,/^$/ {
9668 /^0/ {
9669 s/^0 *\([^ ]*\) *$/\1/
9670 p
9671 }
9672 }'
9673 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674 # Check for a 64-bit object if we didn't find anything.
9675 if test -z "$lt_cv_aix_libpath_"; then
9676 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677 fi
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 if test -z "$lt_cv_aix_libpath_"; then
9682 lt_cv_aix_libpath_="/usr/lib:/lib"
9683 fi
9684
9685 fi
9686
9687 aix_libpath=$lt_cv_aix_libpath_
9688 fi
9689
9690 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9691 # Warning - without using the other run time loading flags,
9692 # -berok will link without error, but may produce a broken library.
9693 no_undefined_flag=' ${wl}-bernotok'
9694 allow_undefined_flag=' ${wl}-berok'
9695 if test "$with_gnu_ld" = yes; then
9696 # We only use this code for GNU lds that support --whole-archive.
9697 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9698 else
9699 # Exported symbols can be pulled into shared objects from archives
9700 whole_archive_flag_spec='$convenience'
9701 fi
9702 archive_cmds_need_lc=yes
9703 # This is similar to how AIX traditionally builds its shared libraries.
9704 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'
9705 fi
9706 fi
9707 ;;
9708
9709 amigaos*)
9710 case $host_cpu in
9711 powerpc)
9712 # see comment about AmigaOS4 .so support
9713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714 archive_expsym_cmds=''
9715 ;;
9716 m68k)
9717 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)'
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_minus_L=yes
9720 ;;
9721 esac
9722 ;;
9723
9724 bsdi[45]*)
9725 export_dynamic_flag_spec=-rdynamic
9726 ;;
9727
9728 cygwin* | mingw* | pw32* | cegcc*)
9729 # When not using gcc, we currently assume that we are using
9730 # Microsoft Visual C++.
9731 # hardcode_libdir_flag_spec is actually meaningless, as there is
9732 # no search path for DLLs.
9733 case $cc_basename in
9734 cl*)
9735 # Native MSVC
9736 hardcode_libdir_flag_spec=' '
9737 allow_undefined_flag=unsupported
9738 always_export_symbols=yes
9739 file_list_spec='@'
9740 # Tell ltmain to make .lib files, not .a files.
9741 libext=lib
9742 # Tell ltmain to make .dll files, not .so files.
9743 shrext_cmds=".dll"
9744 # FIXME: Setting linknames here is a bad hack.
9745 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9747 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9748 else
9749 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9750 fi~
9751 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9752 linknames='
9753 # The linker will not automatically build a static lib if we build a DLL.
9754 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9755 enable_shared_with_static_runtimes=yes
9756 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9758 # Don't use ranlib
9759 old_postinstall_cmds='chmod 644 $oldlib'
9760 postlink_cmds='lt_outputfile="@OUTPUT@"~
9761 lt_tool_outputfile="@TOOL_OUTPUT@"~
9762 case $lt_outputfile in
9763 *.exe|*.EXE) ;;
9764 *)
9765 lt_outputfile="$lt_outputfile.exe"
9766 lt_tool_outputfile="$lt_tool_outputfile.exe"
9767 ;;
9768 esac~
9769 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9770 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9771 $RM "$lt_outputfile.manifest";
9772 fi'
9773 ;;
9774 *)
9775 # Assume MSVC wrapper
9776 hardcode_libdir_flag_spec=' '
9777 allow_undefined_flag=unsupported
9778 # Tell ltmain to make .lib files, not .a files.
9779 libext=lib
9780 # Tell ltmain to make .dll files, not .so files.
9781 shrext_cmds=".dll"
9782 # FIXME: Setting linknames here is a bad hack.
9783 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9784 # The linker will automatically build a .lib file if we build a DLL.
9785 old_archive_from_new_cmds='true'
9786 # FIXME: Should let the user specify the lib program.
9787 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9788 enable_shared_with_static_runtimes=yes
9789 ;;
9790 esac
9791 ;;
9792
9793 darwin* | rhapsody*)
9794
9795
9796 archive_cmds_need_lc=no
9797 hardcode_direct=no
9798 hardcode_automatic=yes
9799 hardcode_shlibpath_var=unsupported
9800 if test "$lt_cv_ld_force_load" = "yes"; then
9801 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\"`'
9802
9803 else
9804 whole_archive_flag_spec=''
9805 fi
9806 link_all_deplibs=yes
9807 allow_undefined_flag="$_lt_dar_allow_undefined"
9808 case $cc_basename in
9809 ifort*) _lt_dar_can_shared=yes ;;
9810 *) _lt_dar_can_shared=$GCC ;;
9811 esac
9812 if test "$_lt_dar_can_shared" = "yes"; then
9813 output_verbose_link_cmd=func_echo_all
9814 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9815 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9816 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}"
9817 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}"
9818
9819 else
9820 ld_shlibs=no
9821 fi
9822
9823 ;;
9824
9825 dgux*)
9826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_libdir_flag_spec='-L$libdir'
9828 hardcode_shlibpath_var=no
9829 ;;
9830
9831 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9832 # support. Future versions do this automatically, but an explicit c++rt0.o
9833 # does not break anything, and helps significantly (at the cost of a little
9834 # extra space).
9835 freebsd2.2*)
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9837 hardcode_libdir_flag_spec='-R$libdir'
9838 hardcode_direct=yes
9839 hardcode_shlibpath_var=no
9840 ;;
9841
9842 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9843 freebsd2.*)
9844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_direct=yes
9846 hardcode_minus_L=yes
9847 hardcode_shlibpath_var=no
9848 ;;
9849
9850 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9851 freebsd* | dragonfly*)
9852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9853 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9856 ;;
9857
9858 hpux9*)
9859 if test "$GCC" = yes; then
9860 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'
9861 else
9862 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'
9863 fi
9864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9865 hardcode_libdir_separator=:
9866 hardcode_direct=yes
9867
9868 # hardcode_minus_L: Not really in the search PATH,
9869 # but as the default location of the library.
9870 hardcode_minus_L=yes
9871 export_dynamic_flag_spec='${wl}-E'
9872 ;;
9873
9874 hpux10*)
9875 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9876 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9877 else
9878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879 fi
9880 if test "$with_gnu_ld" = no; then
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 hardcode_direct=yes
9884 hardcode_direct_absolute=yes
9885 export_dynamic_flag_spec='${wl}-E'
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9889 fi
9890 ;;
9891
9892 hpux11*)
9893 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894 case $host_cpu in
9895 hppa*64*)
9896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 ;;
9898 ia64*)
9899 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9900 ;;
9901 *)
9902 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 ;;
9904 esac
9905 else
9906 case $host_cpu in
9907 hppa*64*)
9908 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 ;;
9910 ia64*)
9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9912 ;;
9913 *)
9914
9915 # Older versions of the 11.00 compiler do not understand -b yet
9916 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9918 $as_echo_n "checking if $CC understands -b... " >&6; }
9919 if ${lt_cv_prog_compiler__b+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 lt_cv_prog_compiler__b=no
9923 save_LDFLAGS="$LDFLAGS"
9924 LDFLAGS="$LDFLAGS -b"
9925 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9927 # The linker can only warn and ignore the option if not recognized
9928 # So say no if there are warnings
9929 if test -s conftest.err; then
9930 # Append any errors to the config.log.
9931 cat conftest.err 1>&5
9932 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9934 if diff conftest.exp conftest.er2 >/dev/null; then
9935 lt_cv_prog_compiler__b=yes
9936 fi
9937 else
9938 lt_cv_prog_compiler__b=yes
9939 fi
9940 fi
9941 $RM -r conftest*
9942 LDFLAGS="$save_LDFLAGS"
9943
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9946 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9947
9948 if test x"$lt_cv_prog_compiler__b" = xyes; then
9949 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9950 else
9951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9952 fi
9953
9954 ;;
9955 esac
9956 fi
9957 if test "$with_gnu_ld" = no; then
9958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9959 hardcode_libdir_separator=:
9960
9961 case $host_cpu in
9962 hppa*64*|ia64*)
9963 hardcode_direct=no
9964 hardcode_shlibpath_var=no
9965 ;;
9966 *)
9967 hardcode_direct=yes
9968 hardcode_direct_absolute=yes
9969 export_dynamic_flag_spec='${wl}-E'
9970
9971 # hardcode_minus_L: Not really in the search PATH,
9972 # but as the default location of the library.
9973 hardcode_minus_L=yes
9974 ;;
9975 esac
9976 fi
9977 ;;
9978
9979 irix5* | irix6* | nonstopux*)
9980 if test "$GCC" = yes; then
9981 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'
9982 # Try to use the -exported_symbol ld option, if it does not
9983 # work, assume that -exports_file does not work either and
9984 # implicitly export all symbols.
9985 # This should be the same for all languages, so no per-tag cache variable.
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9987 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9988 if ${lt_cv_irix_exported_symbol+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 save_LDFLAGS="$LDFLAGS"
9992 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 int foo (void) { return 0; }
9996 _ACEOF
9997 if ac_fn_c_try_link "$LINENO"; then :
9998 lt_cv_irix_exported_symbol=yes
9999 else
10000 lt_cv_irix_exported_symbol=no
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LDFLAGS="$save_LDFLAGS"
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10007 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10008 if test "$lt_cv_irix_exported_symbol" = yes; then
10009 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'
10010 fi
10011 else
10012 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'
10013 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'
10014 fi
10015 archive_cmds_need_lc='no'
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator=:
10018 inherit_rpath=yes
10019 link_all_deplibs=yes
10020 ;;
10021
10022 netbsd*)
10023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10025 else
10026 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10027 fi
10028 hardcode_libdir_flag_spec='-R$libdir'
10029 hardcode_direct=yes
10030 hardcode_shlibpath_var=no
10031 ;;
10032
10033 newsos6)
10034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_direct=yes
10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037 hardcode_libdir_separator=:
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 *nto* | *qnx*)
10042 ;;
10043
10044 openbsd*)
10045 if test -f /usr/libexec/ld.so; then
10046 hardcode_direct=yes
10047 hardcode_shlibpath_var=no
10048 hardcode_direct_absolute=yes
10049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10050 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10053 export_dynamic_flag_spec='${wl}-E'
10054 else
10055 case $host_os in
10056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_libdir_flag_spec='-R$libdir'
10059 ;;
10060 *)
10061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10063 ;;
10064 esac
10065 fi
10066 else
10067 ld_shlibs=no
10068 fi
10069 ;;
10070
10071 os2*)
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_minus_L=yes
10074 allow_undefined_flag=unsupported
10075 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'
10076 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10077 ;;
10078
10079 osf3*)
10080 if test "$GCC" = yes; then
10081 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10082 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'
10083 else
10084 allow_undefined_flag=' -expect_unresolved \*'
10085 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'
10086 fi
10087 archive_cmds_need_lc='no'
10088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089 hardcode_libdir_separator=:
10090 ;;
10091
10092 osf4* | osf5*) # as osf3* with the addition of -msym flag
10093 if test "$GCC" = yes; then
10094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10095 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'
10096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10097 else
10098 allow_undefined_flag=' -expect_unresolved \*'
10099 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'
10100 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~
10101 $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'
10102
10103 # Both c and cxx compiler support -rpath directly
10104 hardcode_libdir_flag_spec='-rpath $libdir'
10105 fi
10106 archive_cmds_need_lc='no'
10107 hardcode_libdir_separator=:
10108 ;;
10109
10110 solaris*)
10111 no_undefined_flag=' -z defs'
10112 if test "$GCC" = yes; then
10113 wlarc='${wl}'
10114 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116 $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'
10117 else
10118 case `$CC -V 2>&1` in
10119 *"Compilers 5.0"*)
10120 wlarc=''
10121 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10123 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10124 ;;
10125 *)
10126 wlarc='${wl}'
10127 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10130 ;;
10131 esac
10132 fi
10133 hardcode_libdir_flag_spec='-R$libdir'
10134 hardcode_shlibpath_var=no
10135 case $host_os in
10136 solaris2.[0-5] | solaris2.[0-5].*) ;;
10137 *)
10138 # The compiler driver will combine and reorder linker options,
10139 # but understands `-z linker_flag'. GCC discards it without `$wl',
10140 # but is careful enough not to reorder.
10141 # Supported since Solaris 2.6 (maybe 2.5.1?)
10142 if test "$GCC" = yes; then
10143 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10144 else
10145 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10146 fi
10147 ;;
10148 esac
10149 link_all_deplibs=yes
10150 ;;
10151
10152 sunos4*)
10153 if test "x$host_vendor" = xsequent; then
10154 # Use $CC to link under sequent, because it throws in some extra .o
10155 # files that make .init and .fini sections work.
10156 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10157 else
10158 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10159 fi
10160 hardcode_libdir_flag_spec='-L$libdir'
10161 hardcode_direct=yes
10162 hardcode_minus_L=yes
10163 hardcode_shlibpath_var=no
10164 ;;
10165
10166 sysv4)
10167 case $host_vendor in
10168 sni)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_direct=yes # is this really true???
10171 ;;
10172 siemens)
10173 ## LD is ld it makes a PLAMLIB
10174 ## CC just makes a GrossModule.
10175 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10176 reload_cmds='$CC -r -o $output$reload_objs'
10177 hardcode_direct=no
10178 ;;
10179 motorola)
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10182 ;;
10183 esac
10184 runpath_var='LD_RUN_PATH'
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 sysv4.3*)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_shlibpath_var=no
10191 export_dynamic_flag_spec='-Bexport'
10192 ;;
10193
10194 sysv4*MP*)
10195 if test -d /usr/nec; then
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_shlibpath_var=no
10198 runpath_var=LD_RUN_PATH
10199 hardcode_runpath_var=yes
10200 ld_shlibs=yes
10201 fi
10202 ;;
10203
10204 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10205 no_undefined_flag='${wl}-z,text'
10206 archive_cmds_need_lc=no
10207 hardcode_shlibpath_var=no
10208 runpath_var='LD_RUN_PATH'
10209
10210 if test "$GCC" = yes; then
10211 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 else
10214 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 fi
10217 ;;
10218
10219 sysv5* | sco3.2v5* | sco5v6*)
10220 # Note: We can NOT use -z defs as we might desire, because we do not
10221 # link with -lc, and that would cause any symbols used from libc to
10222 # always be unresolved, which means just about no library would
10223 # ever link correctly. If we're not using GNU ld we use -z text
10224 # though, which does catch some bad symbols but isn't as heavy-handed
10225 # as -z defs.
10226 no_undefined_flag='${wl}-z,text'
10227 allow_undefined_flag='${wl}-z,nodefs'
10228 archive_cmds_need_lc=no
10229 hardcode_shlibpath_var=no
10230 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10231 hardcode_libdir_separator=':'
10232 link_all_deplibs=yes
10233 export_dynamic_flag_spec='${wl}-Bexport'
10234 runpath_var='LD_RUN_PATH'
10235
10236 if test "$GCC" = yes; then
10237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 else
10240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 fi
10243 ;;
10244
10245 uts4*)
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_libdir_flag_spec='-L$libdir'
10248 hardcode_shlibpath_var=no
10249 ;;
10250
10251 *)
10252 ld_shlibs=no
10253 ;;
10254 esac
10255
10256 if test x$host_vendor = xsni; then
10257 case $host in
10258 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10259 export_dynamic_flag_spec='${wl}-Blargedynsym'
10260 ;;
10261 esac
10262 fi
10263 fi
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10266 $as_echo "$ld_shlibs" >&6; }
10267 test "$ld_shlibs" = no && can_build_shared=no
10268
10269 with_gnu_ld=$with_gnu_ld
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285 #
10286 # Do we need to explicitly link libc?
10287 #
10288 case "x$archive_cmds_need_lc" in
10289 x|xyes)
10290 # Assume -lc should be added
10291 archive_cmds_need_lc=yes
10292
10293 if test "$enable_shared" = yes && test "$GCC" = yes; then
10294 case $archive_cmds in
10295 *'~'*)
10296 # FIXME: we may have to deal with multi-command sequences.
10297 ;;
10298 '$CC '*)
10299 # Test whether the compiler implicitly links with -lc since on some
10300 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10301 # to ld, don't add -lc before -lgcc.
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10303 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10304 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 $RM conftest*
10308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10309
10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311 (eval $ac_compile) 2>&5
10312 ac_status=$?
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; } 2>conftest.err; then
10315 soname=conftest
10316 lib=conftest
10317 libobjs=conftest.$ac_objext
10318 deplibs=
10319 wl=$lt_prog_compiler_wl
10320 pic_flag=$lt_prog_compiler_pic
10321 compiler_flags=-v
10322 linker_flags=-v
10323 verstring=
10324 output_objdir=.
10325 libname=conftest
10326 lt_save_allow_undefined_flag=$allow_undefined_flag
10327 allow_undefined_flag=
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10329 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10330 ac_status=$?
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; }
10333 then
10334 lt_cv_archive_cmds_need_lc=no
10335 else
10336 lt_cv_archive_cmds_need_lc=yes
10337 fi
10338 allow_undefined_flag=$lt_save_allow_undefined_flag
10339 else
10340 cat conftest.err 1>&5
10341 fi
10342 $RM conftest*
10343
10344 fi
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10346 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10347 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10348 ;;
10349 esac
10350 fi
10351 ;;
10352 esac
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10506 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10507
10508 if test "$GCC" = yes; then
10509 case $host_os in
10510 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10511 *) lt_awk_arg="/^libraries:/" ;;
10512 esac
10513 case $host_os in
10514 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10515 *) lt_sed_strip_eq="s,=/,/,g" ;;
10516 esac
10517 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10518 case $lt_search_path_spec in
10519 *\;*)
10520 # if the path contains ";" then we assume it to be the separator
10521 # otherwise default to the standard path separator (i.e. ":") - it is
10522 # assumed that no part of a normal pathname contains ";" but that should
10523 # okay in the real world where ";" in dirpaths is itself problematic.
10524 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10525 ;;
10526 *)
10527 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10528 ;;
10529 esac
10530 # Ok, now we have the path, separated by spaces, we can step through it
10531 # and add multilib dir if necessary.
10532 lt_tmp_lt_search_path_spec=
10533 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10534 for lt_sys_path in $lt_search_path_spec; do
10535 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10537 else
10538 test -d "$lt_sys_path" && \
10539 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10540 fi
10541 done
10542 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10543 BEGIN {RS=" "; FS="/|\n";} {
10544 lt_foo="";
10545 lt_count=0;
10546 for (lt_i = NF; lt_i > 0; lt_i--) {
10547 if ($lt_i != "" && $lt_i != ".") {
10548 if ($lt_i == "..") {
10549 lt_count++;
10550 } else {
10551 if (lt_count == 0) {
10552 lt_foo="/" $lt_i lt_foo;
10553 } else {
10554 lt_count--;
10555 }
10556 }
10557 }
10558 }
10559 if (lt_foo != "") { lt_freq[lt_foo]++; }
10560 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10561 }'`
10562 # AWK program above erroneously prepends '/' to C:/dos/paths
10563 # for these hosts.
10564 case $host_os in
10565 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10566 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10567 esac
10568 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10569 else
10570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10571 fi
10572 library_names_spec=
10573 libname_spec='lib$name'
10574 soname_spec=
10575 shrext_cmds=".so"
10576 postinstall_cmds=
10577 postuninstall_cmds=
10578 finish_cmds=
10579 finish_eval=
10580 shlibpath_var=
10581 shlibpath_overrides_runpath=unknown
10582 version_type=none
10583 dynamic_linker="$host_os ld.so"
10584 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10585 need_lib_prefix=unknown
10586 hardcode_into_libs=no
10587
10588 # when you set need_version to no, make sure it does not cause -set_version
10589 # flags to be left without arguments
10590 need_version=unknown
10591
10592 case $host_os in
10593 aix3*)
10594 version_type=linux # correct to gnu/linux during the next big refactor
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10596 shlibpath_var=LIBPATH
10597
10598 # AIX 3 has no versioning support, so we append a major version to the name.
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 ;;
10601
10602 aix[4-9]*)
10603 version_type=linux # correct to gnu/linux during the next big refactor
10604 need_lib_prefix=no
10605 need_version=no
10606 hardcode_into_libs=yes
10607 if test "$host_cpu" = ia64; then
10608 # AIX 5 supports IA64
10609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 else
10612 # With GCC up to 2.95.x, collect2 would create an import file
10613 # for dependence libraries. The import file would start with
10614 # the line `#! .'. This would cause the generated library to
10615 # depend on `.', always an invalid library. This was fixed in
10616 # development snapshots of GCC prior to 3.0.
10617 case $host_os in
10618 aix4 | aix4.[01] | aix4.[01].*)
10619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10620 echo ' yes '
10621 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10622 :
10623 else
10624 can_build_shared=no
10625 fi
10626 ;;
10627 esac
10628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10629 # soname into executable. Probably we can add versioning support to
10630 # collect2, so additional links can be useful in future.
10631 if test "$aix_use_runtimelinking" = yes; then
10632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10633 # instead of lib<name>.a to let people know that these are not
10634 # typical AIX shared libraries.
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 else
10637 # We preserve .a as extension for shared libraries through AIX4.2
10638 # and later when we are not doing run time linking.
10639 library_names_spec='${libname}${release}.a $libname.a'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 fi
10642 shlibpath_var=LIBPATH
10643 fi
10644 ;;
10645
10646 amigaos*)
10647 case $host_cpu in
10648 powerpc)
10649 # Since July 2007 AmigaOS4 officially supports .so libraries.
10650 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 ;;
10653 m68k)
10654 library_names_spec='$libname.ixlibrary $libname.a'
10655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10656 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'
10657 ;;
10658 esac
10659 ;;
10660
10661 beos*)
10662 library_names_spec='${libname}${shared_ext}'
10663 dynamic_linker="$host_os ld.so"
10664 shlibpath_var=LIBRARY_PATH
10665 ;;
10666
10667 bsdi[45]*)
10668 version_type=linux # correct to gnu/linux during the next big refactor
10669 need_version=no
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10676 # the default ld.so.conf also contains /usr/contrib/lib and
10677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678 # libtool to hard-code these into programs
10679 ;;
10680
10681 cygwin* | mingw* | pw32* | cegcc*)
10682 version_type=windows
10683 shrext_cmds=".dll"
10684 need_version=no
10685 need_lib_prefix=no
10686
10687 case $GCC,$cc_basename in
10688 yes,*)
10689 # gcc
10690 library_names_spec='$libname.dll.a'
10691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10692 postinstall_cmds='base_file=`basename \${file}`~
10693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10694 dldir=$destdir/`dirname \$dlpath`~
10695 test -d \$dldir || mkdir -p \$dldir~
10696 $install_prog $dir/$dlname \$dldir/$dlname~
10697 chmod a+x \$dldir/$dlname~
10698 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10699 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10700 fi'
10701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10702 dlpath=$dir/\$dldll~
10703 $RM \$dlpath'
10704 shlibpath_overrides_runpath=yes
10705
10706 case $host_os in
10707 cygwin*)
10708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10710
10711 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10712 ;;
10713 mingw* | cegcc*)
10714 # MinGW DLLs use traditional 'lib' prefix
10715 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716 ;;
10717 pw32*)
10718 # pw32 DLLs use 'pw' prefix rather than 'lib'
10719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720 ;;
10721 esac
10722 dynamic_linker='Win32 ld.exe'
10723 ;;
10724
10725 *,cl*)
10726 # Native MSVC
10727 libname_spec='$name'
10728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 library_names_spec='${libname}.dll.lib'
10730
10731 case $build_os in
10732 mingw*)
10733 sys_lib_search_path_spec=
10734 lt_save_ifs=$IFS
10735 IFS=';'
10736 for lt_path in $LIB
10737 do
10738 IFS=$lt_save_ifs
10739 # Let DOS variable expansion print the short 8.3 style file name.
10740 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10741 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10742 done
10743 IFS=$lt_save_ifs
10744 # Convert to MSYS style.
10745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10746 ;;
10747 cygwin*)
10748 # Convert to unix form, then to dos form, then back to unix form
10749 # but this time dos style (no spaces!) so that the unix form looks
10750 # like /cygdrive/c/PROGRA~1:/cygdr...
10751 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10752 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10753 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10754 ;;
10755 *)
10756 sys_lib_search_path_spec="$LIB"
10757 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10758 # It is most probably a Windows format PATH.
10759 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10760 else
10761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10762 fi
10763 # FIXME: find the short name or the path components, as spaces are
10764 # common. (e.g. "Program Files" -> "PROGRA~1")
10765 ;;
10766 esac
10767
10768 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10769 postinstall_cmds='base_file=`basename \${file}`~
10770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10771 dldir=$destdir/`dirname \$dlpath`~
10772 test -d \$dldir || mkdir -p \$dldir~
10773 $install_prog $dir/$dlname \$dldir/$dlname'
10774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10775 dlpath=$dir/\$dldll~
10776 $RM \$dlpath'
10777 shlibpath_overrides_runpath=yes
10778 dynamic_linker='Win32 link.exe'
10779 ;;
10780
10781 *)
10782 # Assume MSVC wrapper
10783 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10784 dynamic_linker='Win32 ld.exe'
10785 ;;
10786 esac
10787 # FIXME: first we should search . and the directory the executable is in
10788 shlibpath_var=PATH
10789 ;;
10790
10791 darwin* | rhapsody*)
10792 dynamic_linker="$host_os dyld"
10793 version_type=darwin
10794 need_lib_prefix=no
10795 need_version=no
10796 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10797 soname_spec='${libname}${release}${major}$shared_ext'
10798 shlibpath_overrides_runpath=yes
10799 shlibpath_var=DYLD_LIBRARY_PATH
10800 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10801
10802 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10804 ;;
10805
10806 dgux*)
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 ;;
10814
10815 freebsd* | dragonfly*)
10816 # DragonFly does not have aout. When/if they implement a new
10817 # versioning mechanism, adjust this.
10818 if test -x /usr/bin/objformat; then
10819 objformat=`/usr/bin/objformat`
10820 else
10821 case $host_os in
10822 freebsd[23].*) objformat=aout ;;
10823 *) objformat=elf ;;
10824 esac
10825 fi
10826 version_type=freebsd-$objformat
10827 case $version_type in
10828 freebsd-elf*)
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 need_version=no
10831 need_lib_prefix=no
10832 ;;
10833 freebsd-*)
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10835 need_version=yes
10836 ;;
10837 esac
10838 shlibpath_var=LD_LIBRARY_PATH
10839 case $host_os in
10840 freebsd2.*)
10841 shlibpath_overrides_runpath=yes
10842 ;;
10843 freebsd3.[01]* | freebsdelf3.[01]*)
10844 shlibpath_overrides_runpath=yes
10845 hardcode_into_libs=yes
10846 ;;
10847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10849 shlibpath_overrides_runpath=no
10850 hardcode_into_libs=yes
10851 ;;
10852 *) # from 4.6 on, and DragonFly
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10855 ;;
10856 esac
10857 ;;
10858
10859 gnu*)
10860 version_type=linux # correct to gnu/linux during the next big refactor
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=no
10867 hardcode_into_libs=yes
10868 ;;
10869
10870 haiku*)
10871 version_type=linux # correct to gnu/linux during the next big refactor
10872 need_lib_prefix=no
10873 need_version=no
10874 dynamic_linker="$host_os runtime_loader"
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 shlibpath_var=LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10879 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10880 hardcode_into_libs=yes
10881 ;;
10882
10883 hpux9* | hpux10* | hpux11*)
10884 # Give a soname corresponding to the major version so that dld.sl refuses to
10885 # link against other versions.
10886 version_type=sunos
10887 need_lib_prefix=no
10888 need_version=no
10889 case $host_cpu in
10890 ia64*)
10891 shrext_cmds='.so'
10892 hardcode_into_libs=yes
10893 dynamic_linker="$host_os dld.so"
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 if test "X$HPUX_IA64_MODE" = X32; then
10899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10900 else
10901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10902 fi
10903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10904 ;;
10905 hppa*64*)
10906 shrext_cmds='.sl'
10907 hardcode_into_libs=yes
10908 dynamic_linker="$host_os dld.sl"
10909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10915 ;;
10916 *)
10917 shrext_cmds='.sl'
10918 dynamic_linker="$host_os dld.sl"
10919 shlibpath_var=SHLIB_PATH
10920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 ;;
10924 esac
10925 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10926 postinstall_cmds='chmod 555 $lib'
10927 # or fails outright, so override atomically:
10928 install_override_mode=555
10929 ;;
10930
10931 interix[3-9]*)
10932 version_type=linux # correct to gnu/linux during the next big refactor
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 hardcode_into_libs=yes
10941 ;;
10942
10943 irix5* | irix6* | nonstopux*)
10944 case $host_os in
10945 nonstopux*) version_type=nonstopux ;;
10946 *)
10947 if test "$lt_cv_prog_gnu_ld" = yes; then
10948 version_type=linux # correct to gnu/linux during the next big refactor
10949 else
10950 version_type=irix
10951 fi ;;
10952 esac
10953 need_lib_prefix=no
10954 need_version=no
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 case $host_os in
10958 irix5* | nonstopux*)
10959 libsuff= shlibsuff=
10960 ;;
10961 *)
10962 case $LD in # libtool.m4 will add one of these switches to LD
10963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10964 libsuff= shlibsuff= libmagic=32-bit;;
10965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10966 libsuff=32 shlibsuff=N32 libmagic=N32;;
10967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10969 *) libsuff= shlibsuff= libmagic=never-match;;
10970 esac
10971 ;;
10972 esac
10973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10974 shlibpath_overrides_runpath=no
10975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10977 hardcode_into_libs=yes
10978 ;;
10979
10980 # No shared lib support for Linux oldld, aout, or coff.
10981 linux*oldld* | linux*aout* | linux*coff*)
10982 dynamic_linker=no
10983 ;;
10984
10985 # This must be glibc/ELF.
10986 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10987 version_type=linux # correct to gnu/linux during the next big refactor
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=no
10995
10996 # Some binutils ld are patched to set DT_RUNPATH
10997 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 lt_cv_shlibpath_overrides_runpath=no
11001 save_LDFLAGS=$LDFLAGS
11002 save_libdir=$libdir
11003 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11004 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007
11008 int
11009 main ()
11010 {
11011
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11018 lt_cv_shlibpath_overrides_runpath=yes
11019 fi
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LDFLAGS=$save_LDFLAGS
11024 libdir=$save_libdir
11025
11026 fi
11027
11028 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11029
11030 # This implies no fast_install, which is unacceptable.
11031 # Some rework will be needed to allow for fast_install
11032 # before this can be enabled.
11033 hardcode_into_libs=yes
11034
11035 # Append ld.so.conf contents to the search path
11036 if test -f /etc/ld.so.conf; then
11037 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' ' '`
11038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11039 fi
11040
11041 # We used to test for /lib/ld.so.1 and disable shared libraries on
11042 # powerpc, because MkLinux only supported shared libraries with the
11043 # GNU dynamic linker. Since this was broken with cross compilers,
11044 # most powerpc-linux boxes support dynamic linking these days and
11045 # people can always --disable-shared, the test was removed, and we
11046 # assume the GNU/Linux dynamic linker is in use.
11047 dynamic_linker='GNU/Linux ld.so'
11048 ;;
11049
11050 netbsd*)
11051 version_type=sunos
11052 need_lib_prefix=no
11053 need_version=no
11054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11057 dynamic_linker='NetBSD (a.out) ld.so'
11058 else
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 dynamic_linker='NetBSD ld.elf_so'
11062 fi
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11066 ;;
11067
11068 newsos6)
11069 version_type=linux # correct to gnu/linux during the next big refactor
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes
11073 ;;
11074
11075 *nto* | *qnx*)
11076 version_type=qnx
11077 need_lib_prefix=no
11078 need_version=no
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=no
11083 hardcode_into_libs=yes
11084 dynamic_linker='ldqnx.so'
11085 ;;
11086
11087 openbsd*)
11088 version_type=sunos
11089 sys_lib_dlsearch_path_spec="/usr/lib"
11090 need_lib_prefix=no
11091 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11092 case $host_os in
11093 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11094 *) need_version=no ;;
11095 esac
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11100 case $host_os in
11101 openbsd2.[89] | openbsd2.[89].*)
11102 shlibpath_overrides_runpath=no
11103 ;;
11104 *)
11105 shlibpath_overrides_runpath=yes
11106 ;;
11107 esac
11108 else
11109 shlibpath_overrides_runpath=yes
11110 fi
11111 ;;
11112
11113 os2*)
11114 libname_spec='$name'
11115 shrext_cmds=".dll"
11116 need_lib_prefix=no
11117 library_names_spec='$libname${shared_ext} $libname.a'
11118 dynamic_linker='OS/2 ld.exe'
11119 shlibpath_var=LIBPATH
11120 ;;
11121
11122 osf3* | osf4* | osf5*)
11123 version_type=osf
11124 need_lib_prefix=no
11125 need_version=no
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11131 ;;
11132
11133 rdos*)
11134 dynamic_linker=no
11135 ;;
11136
11137 solaris*)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 # ldd complains unless libraries are executable
11147 postinstall_cmds='chmod +x $lib'
11148 ;;
11149
11150 sunos4*)
11151 version_type=sunos
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 if test "$with_gnu_ld" = yes; then
11157 need_lib_prefix=no
11158 fi
11159 need_version=yes
11160 ;;
11161
11162 sysv4 | sysv4.3*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 case $host_vendor in
11168 sni)
11169 shlibpath_overrides_runpath=no
11170 need_lib_prefix=no
11171 runpath_var=LD_RUN_PATH
11172 ;;
11173 siemens)
11174 need_lib_prefix=no
11175 ;;
11176 motorola)
11177 need_lib_prefix=no
11178 need_version=no
11179 shlibpath_overrides_runpath=no
11180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11181 ;;
11182 esac
11183 ;;
11184
11185 sysv4*MP*)
11186 if test -d /usr/nec ;then
11187 version_type=linux # correct to gnu/linux during the next big refactor
11188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11189 soname_spec='$libname${shared_ext}.$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 fi
11192 ;;
11193
11194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11195 version_type=freebsd-elf
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 if test "$with_gnu_ld" = yes; then
11204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11205 else
11206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11207 case $host_os in
11208 sco3.2v5*)
11209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11210 ;;
11211 esac
11212 fi
11213 sys_lib_dlsearch_path_spec='/usr/lib'
11214 ;;
11215
11216 tpf*)
11217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=no
11224 hardcode_into_libs=yes
11225 ;;
11226
11227 uts4*)
11228 version_type=linux # correct to gnu/linux during the next big refactor
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 ;;
11233
11234 *)
11235 dynamic_linker=no
11236 ;;
11237 esac
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11239 $as_echo "$dynamic_linker" >&6; }
11240 test "$dynamic_linker" = no && can_build_shared=no
11241
11242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11243 if test "$GCC" = yes; then
11244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11245 fi
11246
11247 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11248 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11249 fi
11250 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11251 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11252 fi
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11346 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11347 hardcode_action=
11348 if test -n "$hardcode_libdir_flag_spec" ||
11349 test -n "$runpath_var" ||
11350 test "X$hardcode_automatic" = "Xyes" ; then
11351
11352 # We can hardcode non-existent directories.
11353 if test "$hardcode_direct" != no &&
11354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11355 # have to relink, otherwise we might link with an installed library
11356 # when we should be linking with a yet-to-be-installed one
11357 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11358 test "$hardcode_minus_L" != no; then
11359 # Linking always hardcodes the temporary library directory.
11360 hardcode_action=relink
11361 else
11362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11363 hardcode_action=immediate
11364 fi
11365 else
11366 # We cannot hardcode anything, or else we can only hardcode existing
11367 # directories.
11368 hardcode_action=unsupported
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11371 $as_echo "$hardcode_action" >&6; }
11372
11373 if test "$hardcode_action" = relink ||
11374 test "$inherit_rpath" = yes; then
11375 # Fast installation is not supported
11376 enable_fast_install=no
11377 elif test "$shlibpath_overrides_runpath" = yes ||
11378 test "$enable_shared" = no; then
11379 # Fast installation is not necessary
11380 enable_fast_install=needless
11381 fi
11382
11383
11384
11385
11386
11387
11388 if test "x$enable_dlopen" != xyes; then
11389 enable_dlopen=unknown
11390 enable_dlopen_self=unknown
11391 enable_dlopen_self_static=unknown
11392 else
11393 lt_cv_dlopen=no
11394 lt_cv_dlopen_libs=
11395
11396 case $host_os in
11397 beos*)
11398 lt_cv_dlopen="load_add_on"
11399 lt_cv_dlopen_libs=
11400 lt_cv_dlopen_self=yes
11401 ;;
11402
11403 mingw* | pw32* | cegcc*)
11404 lt_cv_dlopen="LoadLibrary"
11405 lt_cv_dlopen_libs=
11406 ;;
11407
11408 cygwin*)
11409 lt_cv_dlopen="dlopen"
11410 lt_cv_dlopen_libs=
11411 ;;
11412
11413 darwin*)
11414 # if libdl is installed we need to link against it
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11417 if ${ac_cv_lib_dl_dlopen+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 ac_check_lib_save_LIBS=$LIBS
11421 LIBS="-ldl $LIBS"
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424
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 dlopen ();
11432 int
11433 main ()
11434 {
11435 return dlopen ();
11436 ;
11437 return 0;
11438 }
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dl_dlopen=yes
11442 else
11443 ac_cv_lib_dl_dlopen=no
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11451 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11453 else
11454
11455 lt_cv_dlopen="dyld"
11456 lt_cv_dlopen_libs=
11457 lt_cv_dlopen_self=yes
11458
11459 fi
11460
11461 ;;
11462
11463 *)
11464 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11465 if test "x$ac_cv_func_shl_load" = xyes; then :
11466 lt_cv_dlopen="shl_load"
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11469 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11470 if ${ac_cv_lib_dld_shl_load+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 ac_check_lib_save_LIBS=$LIBS
11474 LIBS="-ldld $LIBS"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char shl_load ();
11485 int
11486 main ()
11487 {
11488 return shl_load ();
11489 ;
11490 return 0;
11491 }
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_dld_shl_load=yes
11495 else
11496 ac_cv_lib_dld_shl_load=no
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11503 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11504 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11505 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11506 else
11507 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11508 if test "x$ac_cv_func_dlopen" = xyes; then :
11509 lt_cv_dlopen="dlopen"
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11512 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11513 if ${ac_cv_lib_dl_dlopen+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-ldl $LIBS"
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char dlopen ();
11528 int
11529 main ()
11530 {
11531 return dlopen ();
11532 ;
11533 return 0;
11534 }
11535 _ACEOF
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_dl_dlopen=yes
11538 else
11539 ac_cv_lib_dl_dlopen=no
11540 fi
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11544 fi
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11546 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11547 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11551 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11552 if ${ac_cv_lib_svld_dlopen+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 ac_check_lib_save_LIBS=$LIBS
11556 LIBS="-lsvld $LIBS"
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char dlopen ();
11567 int
11568 main ()
11569 {
11570 return dlopen ();
11571 ;
11572 return 0;
11573 }
11574 _ACEOF
11575 if ac_fn_c_try_link "$LINENO"; then :
11576 ac_cv_lib_svld_dlopen=yes
11577 else
11578 ac_cv_lib_svld_dlopen=no
11579 fi
11580 rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11583 fi
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11585 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11586 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11590 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11591 if ${ac_cv_lib_dld_dld_link+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-ldld $LIBS"
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char dld_link ();
11606 int
11607 main ()
11608 {
11609 return dld_link ();
11610 ;
11611 return 0;
11612 }
11613 _ACEOF
11614 if ac_fn_c_try_link "$LINENO"; then :
11615 ac_cv_lib_dld_dld_link=yes
11616 else
11617 ac_cv_lib_dld_dld_link=no
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11622 fi
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11624 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11625 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11626 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11627 fi
11628
11629
11630 fi
11631
11632
11633 fi
11634
11635
11636 fi
11637
11638
11639 fi
11640
11641
11642 fi
11643
11644 ;;
11645 esac
11646
11647 if test "x$lt_cv_dlopen" != xno; then
11648 enable_dlopen=yes
11649 else
11650 enable_dlopen=no
11651 fi
11652
11653 case $lt_cv_dlopen in
11654 dlopen)
11655 save_CPPFLAGS="$CPPFLAGS"
11656 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11657
11658 save_LDFLAGS="$LDFLAGS"
11659 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11660
11661 save_LIBS="$LIBS"
11662 LIBS="$lt_cv_dlopen_libs $LIBS"
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11665 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11666 if ${lt_cv_dlopen_self+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 if test "$cross_compiling" = yes; then :
11670 lt_cv_dlopen_self=cross
11671 else
11672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11673 lt_status=$lt_dlunknown
11674 cat > conftest.$ac_ext <<_LT_EOF
11675 #line $LINENO "configure"
11676 #include "confdefs.h"
11677
11678 #if HAVE_DLFCN_H
11679 #include <dlfcn.h>
11680 #endif
11681
11682 #include <stdio.h>
11683
11684 #ifdef RTLD_GLOBAL
11685 # define LT_DLGLOBAL RTLD_GLOBAL
11686 #else
11687 # ifdef DL_GLOBAL
11688 # define LT_DLGLOBAL DL_GLOBAL
11689 # else
11690 # define LT_DLGLOBAL 0
11691 # endif
11692 #endif
11693
11694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11695 find out it does not work in some platform. */
11696 #ifndef LT_DLLAZY_OR_NOW
11697 # ifdef RTLD_LAZY
11698 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11699 # else
11700 # ifdef DL_LAZY
11701 # define LT_DLLAZY_OR_NOW DL_LAZY
11702 # else
11703 # ifdef RTLD_NOW
11704 # define LT_DLLAZY_OR_NOW RTLD_NOW
11705 # else
11706 # ifdef DL_NOW
11707 # define LT_DLLAZY_OR_NOW DL_NOW
11708 # else
11709 # define LT_DLLAZY_OR_NOW 0
11710 # endif
11711 # endif
11712 # endif
11713 # endif
11714 #endif
11715
11716 /* When -fvisbility=hidden is used, assume the code has been annotated
11717 correspondingly for the symbols needed. */
11718 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11719 int fnord () __attribute__((visibility("default")));
11720 #endif
11721
11722 int fnord () { return 42; }
11723 int main ()
11724 {
11725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11726 int status = $lt_dlunknown;
11727
11728 if (self)
11729 {
11730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11731 else
11732 {
11733 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734 else puts (dlerror ());
11735 }
11736 /* dlclose (self); */
11737 }
11738 else
11739 puts (dlerror ());
11740
11741 return status;
11742 }
11743 _LT_EOF
11744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11745 (eval $ac_link) 2>&5
11746 ac_status=$?
11747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11749 (./conftest; exit; ) >&5 2>/dev/null
11750 lt_status=$?
11751 case x$lt_status in
11752 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11753 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11754 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11755 esac
11756 else :
11757 # compilation failed
11758 lt_cv_dlopen_self=no
11759 fi
11760 fi
11761 rm -fr conftest*
11762
11763
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11766 $as_echo "$lt_cv_dlopen_self" >&6; }
11767
11768 if test "x$lt_cv_dlopen_self" = xyes; then
11769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11771 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11772 if ${lt_cv_dlopen_self_static+:} false; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775 if test "$cross_compiling" = yes; then :
11776 lt_cv_dlopen_self_static=cross
11777 else
11778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11779 lt_status=$lt_dlunknown
11780 cat > conftest.$ac_ext <<_LT_EOF
11781 #line $LINENO "configure"
11782 #include "confdefs.h"
11783
11784 #if HAVE_DLFCN_H
11785 #include <dlfcn.h>
11786 #endif
11787
11788 #include <stdio.h>
11789
11790 #ifdef RTLD_GLOBAL
11791 # define LT_DLGLOBAL RTLD_GLOBAL
11792 #else
11793 # ifdef DL_GLOBAL
11794 # define LT_DLGLOBAL DL_GLOBAL
11795 # else
11796 # define LT_DLGLOBAL 0
11797 # endif
11798 #endif
11799
11800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11801 find out it does not work in some platform. */
11802 #ifndef LT_DLLAZY_OR_NOW
11803 # ifdef RTLD_LAZY
11804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11805 # else
11806 # ifdef DL_LAZY
11807 # define LT_DLLAZY_OR_NOW DL_LAZY
11808 # else
11809 # ifdef RTLD_NOW
11810 # define LT_DLLAZY_OR_NOW RTLD_NOW
11811 # else
11812 # ifdef DL_NOW
11813 # define LT_DLLAZY_OR_NOW DL_NOW
11814 # else
11815 # define LT_DLLAZY_OR_NOW 0
11816 # endif
11817 # endif
11818 # endif
11819 # endif
11820 #endif
11821
11822 /* When -fvisbility=hidden is used, assume the code has been annotated
11823 correspondingly for the symbols needed. */
11824 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11825 int fnord () __attribute__((visibility("default")));
11826 #endif
11827
11828 int fnord () { return 42; }
11829 int main ()
11830 {
11831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11832 int status = $lt_dlunknown;
11833
11834 if (self)
11835 {
11836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11837 else
11838 {
11839 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11840 else puts (dlerror ());
11841 }
11842 /* dlclose (self); */
11843 }
11844 else
11845 puts (dlerror ());
11846
11847 return status;
11848 }
11849 _LT_EOF
11850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11851 (eval $ac_link) 2>&5
11852 ac_status=$?
11853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11854 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11855 (./conftest; exit; ) >&5 2>/dev/null
11856 lt_status=$?
11857 case x$lt_status in
11858 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11859 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11860 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11861 esac
11862 else :
11863 # compilation failed
11864 lt_cv_dlopen_self_static=no
11865 fi
11866 fi
11867 rm -fr conftest*
11868
11869
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11872 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11873 fi
11874
11875 CPPFLAGS="$save_CPPFLAGS"
11876 LDFLAGS="$save_LDFLAGS"
11877 LIBS="$save_LIBS"
11878 ;;
11879 esac
11880
11881 case $lt_cv_dlopen_self in
11882 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11883 *) enable_dlopen_self=unknown ;;
11884 esac
11885
11886 case $lt_cv_dlopen_self_static in
11887 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11888 *) enable_dlopen_self_static=unknown ;;
11889 esac
11890 fi
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908 striplib=
11909 old_striplib=
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11911 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11912 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916 $as_echo "yes" >&6; }
11917 else
11918 # FIXME - insert some real tests, host_os isn't really good enough
11919 case $host_os in
11920 darwin*)
11921 if test -n "$STRIP" ; then
11922 striplib="$STRIP -x"
11923 old_striplib="$STRIP -S"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 fi
11930 ;;
11931 *)
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 ;;
11935 esac
11936 fi
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949 # Report which library types will actually be built
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11951 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11953 $as_echo "$can_build_shared" >&6; }
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11956 $as_echo_n "checking whether to build shared libraries... " >&6; }
11957 test "$can_build_shared" = "no" && enable_shared=no
11958
11959 # On AIX, shared libraries and static libraries use the same namespace, and
11960 # are all built from PIC.
11961 case $host_os in
11962 aix3*)
11963 test "$enable_shared" = yes && enable_static=no
11964 if test -n "$RANLIB"; then
11965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11966 postinstall_cmds='$RANLIB $lib'
11967 fi
11968 ;;
11969
11970 aix[4-9]*)
11971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11972 test "$enable_shared" = yes && enable_static=no
11973 fi
11974 ;;
11975 esac
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11977 $as_echo "$enable_shared" >&6; }
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11980 $as_echo_n "checking whether to build static libraries... " >&6; }
11981 # Make sure either enable_shared or enable_static is yes.
11982 test "$enable_shared" = yes || enable_static=yes
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11984 $as_echo "$enable_static" >&6; }
11985
11986
11987
11988
11989 fi
11990 ac_ext=c
11991 ac_cpp='$CPP $CPPFLAGS'
11992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11995
11996 CC="$lt_save_CC"
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 ac_config_commands="$ac_config_commands libtool"
12013
12014
12015
12016
12017 # Only expand once:
12018
12019
12020
12021 # On Solaris 10 and 12 CPP gets set to cc -E, however this still
12022 # does some input parsing. We need strict ANSI-C style tokenization,
12023 # check this:
12024
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C preprocessor that does not parse its input" >&5
12026 $as_echo_n "checking for a C preprocessor that does not parse its input... " >&6; }
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 1.5.0 16BIT
12030 _ACEOF
12031 if ac_fn_c_try_cpp "$LINENO"; then :
12032 DFNCPP="$CPP"
12033 else
12034 DFNCPP=""
12035 sav_CPP="$CPP"
12036 for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" "cpp"; do
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039 1.5.0 16BIT
12040 _ACEOF
12041 if ac_fn_c_try_cpp "$LINENO"; then :
12042 DFNCPP="$CPP"
12043 break
12044 fi
12045 rm -f conftest.err conftest.i conftest.$ac_ext
12046 done
12047 CPP="$sav_CPP"
12048 fi
12049 rm -f conftest.err conftest.i conftest.$ac_ext
12050 if test -n "$DFNCPP"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DFNCPP" >&5
12052 $as_echo "$DFNCPP" >&6; }
12053
12054 else
12055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12057 as_fn_error 1 "not found
12058 See \`config.log' for more details" "$LINENO" 5; }
12059 fi
12060
12061 # Checks for header files.
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12063 $as_echo_n "checking for ANSI C header files... " >&6; }
12064 if ${ac_cv_header_stdc+:} false; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 #include <stdlib.h>
12070 #include <stdarg.h>
12071 #include <string.h>
12072 #include <float.h>
12073
12074 int
12075 main ()
12076 {
12077
12078 ;
12079 return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_compile "$LINENO"; then :
12083 ac_cv_header_stdc=yes
12084 else
12085 ac_cv_header_stdc=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088
12089 if test $ac_cv_header_stdc = yes; then
12090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #include <string.h>
12094
12095 _ACEOF
12096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12097 $EGREP "memchr" >/dev/null 2>&1; then :
12098
12099 else
12100 ac_cv_header_stdc=no
12101 fi
12102 rm -f conftest*
12103
12104 fi
12105
12106 if test $ac_cv_header_stdc = yes; then
12107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #include <stdlib.h>
12111
12112 _ACEOF
12113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12114 $EGREP "free" >/dev/null 2>&1; then :
12115
12116 else
12117 ac_cv_header_stdc=no
12118 fi
12119 rm -f conftest*
12120
12121 fi
12122
12123 if test $ac_cv_header_stdc = yes; then
12124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12125 if test "$cross_compiling" = yes; then :
12126 :
12127 else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 #include <ctype.h>
12131 #include <stdlib.h>
12132 #if ((' ' & 0x0FF) == 0x020)
12133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12135 #else
12136 # define ISLOWER(c) \
12137 (('a' <= (c) && (c) <= 'i') \
12138 || ('j' <= (c) && (c) <= 'r') \
12139 || ('s' <= (c) && (c) <= 'z'))
12140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12141 #endif
12142
12143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12144 int
12145 main ()
12146 {
12147 int i;
12148 for (i = 0; i < 256; i++)
12149 if (XOR (islower (i), ISLOWER (i))
12150 || toupper (i) != TOUPPER (i))
12151 return 2;
12152 return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_run "$LINENO"; then :
12156
12157 else
12158 ac_cv_header_stdc=no
12159 fi
12160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12161 conftest.$ac_objext conftest.beam conftest.$ac_ext
12162 fi
12163
12164 fi
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12167 $as_echo "$ac_cv_header_stdc" >&6; }
12168 if test $ac_cv_header_stdc = yes; then
12169
12170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12171
12172 fi
12173
12174 for ac_header in malloc.h stdlib.h string.h strings.h
12175 do :
12176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12179 cat >>confdefs.h <<_ACEOF
12180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12181 _ACEOF
12182
12183 fi
12184
12185 done
12186
12187
12188 # Checks for typedefs, structures, and compiler characteristics.
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12190 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12191 if ${ac_cv_c_const+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196
12197 int
12198 main ()
12199 {
12200 /* FIXME: Include the comments suggested by Paul. */
12201 #ifndef __cplusplus
12202 /* Ultrix mips cc rejects this. */
12203 typedef int charset[2];
12204 const charset cs;
12205 /* SunOS 4.1.1 cc rejects this. */
12206 char const *const *pcpcc;
12207 char **ppc;
12208 /* NEC SVR4.0.2 mips cc rejects this. */
12209 struct point {int x, y;};
12210 static struct point const zero = {0,0};
12211 /* AIX XL C 1.02.0.0 rejects this.
12212 It does not let you subtract one const X* pointer from another in
12213 an arm of an if-expression whose if-part is not a constant
12214 expression */
12215 const char *g = "string";
12216 pcpcc = &g + (g ? g-g : 0);
12217 /* HPUX 7.0 cc rejects these. */
12218 ++pcpcc;
12219 ppc = (char**) pcpcc;
12220 pcpcc = (char const *const *) ppc;
12221 { /* SCO 3.2v4 cc rejects this. */
12222 char *t;
12223 char const *s = 0 ? (char *) 0 : (char const *) 0;
12224
12225 *t++ = 0;
12226 if (s) return 0;
12227 }
12228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12229 int x[] = {25, 17};
12230 const int *foo = &x[0];
12231 ++foo;
12232 }
12233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12234 typedef const int *iptr;
12235 iptr p = 0;
12236 ++p;
12237 }
12238 { /* AIX XL C 1.02.0.0 rejects this saying
12239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12240 struct s { int j; const int *ap[3]; };
12241 struct s *b; b->j = 5;
12242 }
12243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12244 const int foo = 10;
12245 if (!foo) return 0;
12246 }
12247 return !cs[0] && !zero.x;
12248 #endif
12249
12250 ;
12251 return 0;
12252 }
12253 _ACEOF
12254 if ac_fn_c_try_compile "$LINENO"; then :
12255 ac_cv_c_const=yes
12256 else
12257 ac_cv_c_const=no
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12262 $as_echo "$ac_cv_c_const" >&6; }
12263 if test $ac_cv_c_const = no; then
12264
12265 $as_echo "#define const /**/" >>confdefs.h
12266
12267 fi
12268
12269 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12270 if test "x$ac_cv_type_size_t" = xyes; then :
12271
12272 else
12273
12274 cat >>confdefs.h <<_ACEOF
12275 #define size_t unsigned int
12276 _ACEOF
12277
12278 fi
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12281 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12282 if ${ac_cv_struct_tm+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287 #include <sys/types.h>
12288 #include <time.h>
12289
12290 int
12291 main ()
12292 {
12293 struct tm tm;
12294 int *p = &tm.tm_sec;
12295 return !p;
12296 ;
12297 return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_c_try_compile "$LINENO"; then :
12301 ac_cv_struct_tm=time.h
12302 else
12303 ac_cv_struct_tm=sys/time.h
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12308 $as_echo "$ac_cv_struct_tm" >&6; }
12309 if test $ac_cv_struct_tm = sys/time.h; then
12310
12311 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12312
12313 fi
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12316 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12317 if ${ac_cv_c_restrict+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 ac_cv_c_restrict=no
12321 # The order here caters to the fact that C++ does not require restrict.
12322 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 typedef int * int_ptr;
12326 int foo (int_ptr $ac_kw ip) {
12327 return ip[0];
12328 }
12329 int
12330 main ()
12331 {
12332 int s[1];
12333 int * $ac_kw t = s;
12334 t[0] = 0;
12335 return foo(t)
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341 ac_cv_c_restrict=$ac_kw
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 test "$ac_cv_c_restrict" != no && break
12345 done
12346
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12349 $as_echo "$ac_cv_c_restrict" >&6; }
12350
12351 case $ac_cv_c_restrict in
12352 restrict) ;;
12353 no) $as_echo "#define restrict /**/" >>confdefs.h
12354 ;;
12355 *) cat >>confdefs.h <<_ACEOF
12356 #define restrict $ac_cv_c_restrict
12357 _ACEOF
12358 ;;
12359 esac
12360
12361
12362 # Checks for library functions.
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12364 $as_echo_n "checking for working strtod... " >&6; }
12365 if ${ac_cv_func_strtod+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test "$cross_compiling" = yes; then :
12369 ac_cv_func_strtod=no
12370 else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 $ac_includes_default
12375 #ifndef strtod
12376 double strtod ();
12377 #endif
12378 int
12379 main()
12380 {
12381 {
12382 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12383 char *string = " +69";
12384 char *term;
12385 double value;
12386 value = strtod (string, &term);
12387 if (value != 69 || term != (string + 4))
12388 return 1;
12389 }
12390
12391 {
12392 /* Under Solaris 2.4, strtod returns the wrong value for the
12393 terminating character under some conditions. */
12394 char *string = "NaN";
12395 char *term;
12396 strtod (string, &term);
12397 if (term != string && *(term - 1) == 0)
12398 return 1;
12399 }
12400 return 0;
12401 }
12402
12403 _ACEOF
12404 if ac_fn_c_try_run "$LINENO"; then :
12405 ac_cv_func_strtod=yes
12406 else
12407 ac_cv_func_strtod=no
12408 fi
12409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12410 conftest.$ac_objext conftest.beam conftest.$ac_ext
12411 fi
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12415 $as_echo "$ac_cv_func_strtod" >&6; }
12416 if test $ac_cv_func_strtod = no; then
12417 case " $LIBOBJS " in
12418 *" strtod.$ac_objext "* ) ;;
12419 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12420 ;;
12421 esac
12422
12423 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12424 if test "x$ac_cv_func_pow" = xyes; then :
12425
12426 fi
12427
12428 if test $ac_cv_func_pow = no; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12430 $as_echo_n "checking for pow in -lm... " >&6; }
12431 if ${ac_cv_lib_m_pow+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-lm $LIBS"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char pow ();
12446 int
12447 main ()
12448 {
12449 return pow ();
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_m_pow=yes
12456 else
12457 ac_cv_lib_m_pow=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12464 $as_echo "$ac_cv_lib_m_pow" >&6; }
12465 if test "x$ac_cv_lib_m_pow" = xyes; then :
12466 POW_LIB=-lm
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12469 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12470 fi
12471
12472 fi
12473
12474 fi
12475
12476 for ac_func in memset
12477 do :
12478 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12479 if test "x$ac_cv_func_memset" = xyes; then :
12480 cat >>confdefs.h <<_ACEOF
12481 #define HAVE_MEMSET 1
12482 _ACEOF
12483
12484 else
12485 as_fn_error $? "memset not found in libc" "$LINENO" 5
12486 fi
12487 done
12488
12489 for ac_func in pow
12490 do :
12491 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12492 if test "x$ac_cv_func_pow" = xyes; then :
12493 cat >>confdefs.h <<_ACEOF
12494 #define HAVE_POW 1
12495 _ACEOF
12496
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12499 $as_echo_n "checking for pow in -lm... " >&6; }
12500 if ${ac_cv_lib_m_pow+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-lm $LIBS"
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507
12508 /* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 char pow ();
12515 int
12516 main ()
12517 {
12518 return pow ();
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_lib_m_pow=yes
12525 else
12526 ac_cv_lib_m_pow=no
12527 fi
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12533 $as_echo "$ac_cv_lib_m_pow" >&6; }
12534 if test "x$ac_cv_lib_m_pow" = xyes; then :
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_LIBM 1
12537 _ACEOF
12538
12539 LIBS="-lm $LIBS"
12540
12541 else
12542 as_fn_error $? "cannot find pow" "$LINENO" 5
12543 fi
12544
12545 fi
12546 done
12547
12548
12549 # Check whether --with-zlib-prefix was given.
12550 if test "${with_zlib_prefix+set}" = set; then :
12551 withval=$with_zlib_prefix; ZPREFIX=${withval}
12552 else
12553 ZPREFIX='z_'
12554 fi
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12557 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12558 if ${ac_cv_lib_z_zlibVersion+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-lz $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char zlibVersion ();
12573 int
12574 main ()
12575 {
12576 return zlibVersion ();
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_link "$LINENO"; then :
12582 ac_cv_lib_z_zlibVersion=yes
12583 else
12584 ac_cv_lib_z_zlibVersion=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12591 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12592 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12593 cat >>confdefs.h <<_ACEOF
12594 #define HAVE_LIBZ 1
12595 _ACEOF
12596
12597 LIBS="-lz $LIBS"
12598
12599 else
12600 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12602 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12603 if eval \${$as_ac_Lib+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 ac_check_lib_save_LIBS=$LIBS
12607 LIBS="-lz $LIBS"
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char ${ZPREFIX}zlibVersion ();
12618 int
12619 main ()
12620 {
12621 return ${ZPREFIX}zlibVersion ();
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 eval "$as_ac_Lib=yes"
12628 else
12629 eval "$as_ac_Lib=no"
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 LIBS=$ac_check_lib_save_LIBS
12634 fi
12635 eval ac_res=\$$as_ac_Lib
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12637 $as_echo "$ac_res" >&6; }
12638 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12639 cat >>confdefs.h <<_ACEOF
12640 #define HAVE_LIBZ 1
12641 _ACEOF
12642
12643 LIBS="-lz $LIBS"
12644
12645 else
12646 as_fn_error $? "zlib not installed" "$LINENO" 5
12647 fi
12648
12649 fi
12650
12651
12652 # The following is for pngvalid, to ensure it catches FP errors even on
12653 # platforms that don't enable FP exceptions, the function appears in the math
12654 # library (typically), it's not an error if it is not found.
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12656 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
12657 if ${ac_cv_lib_m_feenableexcept+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-lm $LIBS"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char feenableexcept ();
12672 int
12673 main ()
12674 {
12675 return feenableexcept ();
12676 ;
12677 return 0;
12678 }
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_lib_m_feenableexcept=yes
12682 else
12683 ac_cv_lib_m_feenableexcept=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12690 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12691 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12692 cat >>confdefs.h <<_ACEOF
12693 #define HAVE_LIBM 1
12694 _ACEOF
12695
12696 LIBS="-lm $LIBS"
12697
12698 fi
12699
12700 for ac_func in feenableexcept
12701 do :
12702 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12703 if test "x$ac_cv_func_feenableexcept" = xyes; then :
12704 cat >>confdefs.h <<_ACEOF
12705 #define HAVE_FEENABLEEXCEPT 1
12706 _ACEOF
12707
12708 fi
12709 done
12710
12711
12712 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12713 LIBPNG_DEFINES=$LIBPNG_DEFINES
12714
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12717 $as_echo_n "checking if libraries can be versioned... " >&6; }
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12720 $as_echo_n "checking if using Solaris linker... " >&6; }
12721 SLD=`$LD --version 2>&1 | grep Solaris`
12722 if test "$SLD"; then
12723 have_solaris_ld=yes
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12726 else
12727 have_solaris_ld=no
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731 if test "$have_solaris_ld" = "yes"; then
12732 HAVE_SOLARIS_LD_TRUE=
12733 HAVE_SOLARIS_LD_FALSE='#'
12734 else
12735 HAVE_SOLARIS_LD_TRUE='#'
12736 HAVE_SOLARIS_LD_FALSE=
12737 fi
12738
12739
12740 # Special case for PE/COFF platforms: ld reports
12741 # support for version-script, but doesn't actually
12742 # DO anything with it.
12743 case $host in
12744 *cygwin* | *mingw32* | *interix* )
12745 have_ld_version_script=no
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748 ;;
12749 * )
12750
12751 if test "$have_solaris_ld" = "yes"; then
12752 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12753 else
12754 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12755 fi
12756
12757 if test "$GLD"; then
12758 have_ld_version_script=yes
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760 $as_echo "yes" >&6; }
12761 else
12762 have_ld_version_script=no
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12766 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12767 fi
12768 ;;
12769 esac
12770
12771 if test "$have_ld_version_script" = "yes"; then
12772 HAVE_LD_VERSION_SCRIPT_TRUE=
12773 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12774 else
12775 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12776 HAVE_LD_VERSION_SCRIPT_FALSE=
12777 fi
12778
12779
12780 if test "$have_ld_version_script" = "yes"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12782 $as_echo_n "checking for symbol prefix... " >&6; }
12783 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12784 | ${CPP-${CC-gcc} -E} - 2>&1 \
12785 | ${EGREP-grep} "^PREFIX=" \
12786 | ${SED-sed} "s:^PREFIX=::"`
12787
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12789 $as_echo "$SYMBOL_PREFIX" >&6; }
12790 fi
12791
12792 # Substitutions for .in files
12793
12794
12795
12796
12797
12798 # Additional arguments (and substitutions)
12799 # Allow the pkg-config directory to be set
12800
12801 # Check whether --with-pkgconfigdir was given.
12802 if test "${with_pkgconfigdir+set}" = set; then :
12803 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12804 else
12805 pkgconfigdir='${libdir}/pkgconfig'
12806 fi
12807
12808
12809
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12811 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12812
12813 # Make the *-config binary config scripts optional
12814
12815 # Check whether --with-binconfigs was given.
12816 if test "${with_binconfigs+set}" = set; then :
12817 withval=$with_binconfigs; if test "${withval}" = no; then
12818 binconfigs=
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12820 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12821 else
12822 binconfigs='${binconfigs}'
12823 fi
12824 else
12825 binconfigs='${binconfigs}'
12826 fi
12827
12828
12829
12830 # Because GCC by default assembles code with an executable stack, even though it
12831 # compiles C code with a non-executable stack, it is necessary to do a fixup
12832 # here (this may by GCC specific)
12833 AM_CCASFLAGS=-Wa,--noexecstack
12834
12835
12836 # Check whether --enable-arm-neon was given.
12837 if test "${enable_arm_neon+set}" = set; then :
12838 enableval=$enable_arm_neon; if test "${enableval}" = yes; then
12839
12840 $as_echo "#define PNG_ARM_NEON 1" >>confdefs.h
12841
12842
12843 $as_echo "#define PNG_ALIGNED_MEMORY_SUPPORTED 1" >>confdefs.h
12844
12845 fi
12846 fi
12847
12848 if test "${enable_arm_neon:-no}" = yes; then
12849 PNG_ARM_NEON_TRUE=
12850 PNG_ARM_NEON_FALSE='#'
12851 else
12852 PNG_ARM_NEON_TRUE='#'
12853 PNG_ARM_NEON_FALSE=
12854 fi
12855
12856
12857 # Config files, substituting as above
12858 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12859
12860 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
12861
12862
12863 cat >confcache <<\_ACEOF
12864 # This file is a shell script that caches the results of configure
12865 # tests run on this system so they can be shared between configure
12866 # scripts and configure runs, see configure's option --config-cache.
12867 # It is not useful on other systems. If it contains results you don't
12868 # want to keep, you may remove or edit it.
12869 #
12870 # config.status only pays attention to the cache file if you give it
12871 # the --recheck option to rerun configure.
12872 #
12873 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12874 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12875 # following values.
12876
12877 _ACEOF
12878
12879 # The following way of writing the cache mishandles newlines in values,
12880 # but we know of no workaround that is simple, portable, and efficient.
12881 # So, we kill variables containing newlines.
12882 # Ultrix sh set writes to stderr and can't be redirected directly,
12883 # and sets the high bit in the cache file unless we assign to the vars.
12884 (
12885 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12886 eval ac_val=\$$ac_var
12887 case $ac_val in #(
12888 *${as_nl}*)
12889 case $ac_var in #(
12890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12892 esac
12893 case $ac_var in #(
12894 _ | IFS | as_nl) ;; #(
12895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12896 *) { eval $ac_var=; unset $ac_var;} ;;
12897 esac ;;
12898 esac
12899 done
12900
12901 (set) 2>&1 |
12902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12903 *${as_nl}ac_space=\ *)
12904 # `set' does not quote correctly, so add quotes: double-quote
12905 # substitution turns \\\\ into \\, and sed turns \\ into \.
12906 sed -n \
12907 "s/'/'\\\\''/g;
12908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12909 ;; #(
12910 *)
12911 # `set' quotes correctly as required by POSIX, so do not add quotes.
12912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12913 ;;
12914 esac |
12915 sort
12916 ) |
12917 sed '
12918 /^ac_cv_env_/b end
12919 t clear
12920 :clear
12921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12922 t end
12923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12924 :end' >>confcache
12925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12926 if test -w "$cache_file"; then
12927 if test "x$cache_file" != "x/dev/null"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12929 $as_echo "$as_me: updating cache $cache_file" >&6;}
12930 if test ! -f "$cache_file" || test -h "$cache_file"; then
12931 cat confcache >"$cache_file"
12932 else
12933 case $cache_file in #(
12934 */* | ?:*)
12935 mv -f confcache "$cache_file"$$ &&
12936 mv -f "$cache_file"$$ "$cache_file" ;; #(
12937 *)
12938 mv -f confcache "$cache_file" ;;
12939 esac
12940 fi
12941 fi
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12944 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12945 fi
12946 fi
12947 rm -f confcache
12948
12949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12950 # Let make expand exec_prefix.
12951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12952
12953 DEFS=-DHAVE_CONFIG_H
12954
12955 ac_libobjs=
12956 ac_ltlibobjs=
12957 U=
12958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12959 # 1. Remove the extension, and $U if already installed.
12960 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12961 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12963 # will be set to the directory where LIBOBJS objects are built.
12964 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12965 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12966 done
12967 LIBOBJS=$ac_libobjs
12968
12969 LTLIBOBJS=$ac_ltlibobjs
12970
12971
12972 if test -n "$EXEEXT"; then
12973 am__EXEEXT_TRUE=
12974 am__EXEEXT_FALSE='#'
12975 else
12976 am__EXEEXT_TRUE='#'
12977 am__EXEEXT_FALSE=
12978 fi
12979
12980 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12981 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12983 fi
12984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12985 as_fn_error $? "conditional \"AMDEP\" was never defined.
12986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12987 fi
12988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12989 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12991 fi
12992 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12993 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12995 fi
12996 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
12997 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
12998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12999 fi
13000 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13001 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13003 fi
13004 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13005 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13007 fi
13008
13009 : "${CONFIG_STATUS=./config.status}"
13010 ac_write_fail=0
13011 ac_clean_files_save=$ac_clean_files
13012 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13014 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13015 as_write_fail=0
13016 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13017 #! $SHELL
13018 # Generated by $as_me.
13019 # Run this file to recreate the current configuration.
13020 # Compiler output produced by configure, useful for debugging
13021 # configure, is in config.log if it exists.
13022
13023 debug=false
13024 ac_cs_recheck=false
13025 ac_cs_silent=false
13026
13027 SHELL=\${CONFIG_SHELL-$SHELL}
13028 export SHELL
13029 _ASEOF
13030 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13031 ## -------------------- ##
13032 ## M4sh Initialization. ##
13033 ## -------------------- ##
13034
13035 # Be more Bourne compatible
13036 DUALCASE=1; export DUALCASE # for MKS sh
13037 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13038 emulate sh
13039 NULLCMD=:
13040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13041 # is contrary to our usage. Disable this feature.
13042 alias -g '${1+"$@"}'='"$@"'
13043 setopt NO_GLOB_SUBST
13044 else
13045 case `(set -o) 2>/dev/null` in #(
13046 *posix*) :
13047 set -o posix ;; #(
13048 *) :
13049 ;;
13050 esac
13051 fi
13052
13053
13054 as_nl='
13055 '
13056 export as_nl
13057 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13058 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13061 # Prefer a ksh shell builtin over an external printf program on Solaris,
13062 # but without wasting forks for bash or zsh.
13063 if test -z "$BASH_VERSION$ZSH_VERSION" \
13064 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13065 as_echo='print -r --'
13066 as_echo_n='print -rn --'
13067 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13068 as_echo='printf %s\n'
13069 as_echo_n='printf %s'
13070 else
13071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13072 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13073 as_echo_n='/usr/ucb/echo -n'
13074 else
13075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13076 as_echo_n_body='eval
13077 arg=$1;
13078 case $arg in #(
13079 *"$as_nl"*)
13080 expr "X$arg" : "X\\(.*\\)$as_nl";
13081 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13082 esac;
13083 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13084 '
13085 export as_echo_n_body
13086 as_echo_n='sh -c $as_echo_n_body as_echo'
13087 fi
13088 export as_echo_body
13089 as_echo='sh -c $as_echo_body as_echo'
13090 fi
13091
13092 # The user is always right.
13093 if test "${PATH_SEPARATOR+set}" != set; then
13094 PATH_SEPARATOR=:
13095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13096 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13097 PATH_SEPARATOR=';'
13098 }
13099 fi
13100
13101
13102 # IFS
13103 # We need space, tab and new line, in precisely that order. Quoting is
13104 # there to prevent editors from complaining about space-tab.
13105 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13106 # splitting by setting IFS to empty value.)
13107 IFS=" "" $as_nl"
13108
13109 # Find who we are. Look in the path if we contain no directory separator.
13110 as_myself=
13111 case $0 in #((
13112 *[\\/]* ) as_myself=$0 ;;
13113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13119 done
13120 IFS=$as_save_IFS
13121
13122 ;;
13123 esac
13124 # We did not find ourselves, most probably we were run as `sh COMMAND'
13125 # in which case we are not to be found in the path.
13126 if test "x$as_myself" = x; then
13127 as_myself=$0
13128 fi
13129 if test ! -f "$as_myself"; then
13130 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13131 exit 1
13132 fi
13133
13134 # Unset variables that we do not need and which cause bugs (e.g. in
13135 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13136 # suppresses any "Segmentation fault" message there. '((' could
13137 # trigger a bug in pdksh 5.2.14.
13138 for as_var in BASH_ENV ENV MAIL MAILPATH
13139 do eval test x\${$as_var+set} = xset \
13140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13141 done
13142 PS1='$ '
13143 PS2='> '
13144 PS4='+ '
13145
13146 # NLS nuisances.
13147 LC_ALL=C
13148 export LC_ALL
13149 LANGUAGE=C
13150 export LANGUAGE
13151
13152 # CDPATH.
13153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13154
13155
13156 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13157 # ----------------------------------------
13158 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13159 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13160 # script with STATUS, using 1 if that was 0.
13161 as_fn_error ()
13162 {
13163 as_status=$1; test $as_status -eq 0 && as_status=1
13164 if test "$4"; then
13165 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13166 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13167 fi
13168 $as_echo "$as_me: error: $2" >&2
13169 as_fn_exit $as_status
13170 } # as_fn_error
13171
13172
13173 # as_fn_set_status STATUS
13174 # -----------------------
13175 # Set $? to STATUS, without forking.
13176 as_fn_set_status ()
13177 {
13178 return $1
13179 } # as_fn_set_status
13180
13181 # as_fn_exit STATUS
13182 # -----------------
13183 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13184 as_fn_exit ()
13185 {
13186 set +e
13187 as_fn_set_status $1
13188 exit $1
13189 } # as_fn_exit
13190
13191 # as_fn_unset VAR
13192 # ---------------
13193 # Portably unset VAR.
13194 as_fn_unset ()
13195 {
13196 { eval $1=; unset $1;}
13197 }
13198 as_unset=as_fn_unset
13199 # as_fn_append VAR VALUE
13200 # ----------------------
13201 # Append the text in VALUE to the end of the definition contained in VAR. Take
13202 # advantage of any shell optimizations that allow amortized linear growth over
13203 # repeated appends, instead of the typical quadratic growth present in naive
13204 # implementations.
13205 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13206 eval 'as_fn_append ()
13207 {
13208 eval $1+=\$2
13209 }'
13210 else
13211 as_fn_append ()
13212 {
13213 eval $1=\$$1\$2
13214 }
13215 fi # as_fn_append
13216
13217 # as_fn_arith ARG...
13218 # ------------------
13219 # Perform arithmetic evaluation on the ARGs, and store the result in the
13220 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13221 # must be portable across $(()) and expr.
13222 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13223 eval 'as_fn_arith ()
13224 {
13225 as_val=$(( $* ))
13226 }'
13227 else
13228 as_fn_arith ()
13229 {
13230 as_val=`expr "$@" || test $? -eq 1`
13231 }
13232 fi # as_fn_arith
13233
13234
13235 if expr a : '\(a\)' >/dev/null 2>&1 &&
13236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13237 as_expr=expr
13238 else
13239 as_expr=false
13240 fi
13241
13242 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13243 as_basename=basename
13244 else
13245 as_basename=false
13246 fi
13247
13248 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13249 as_dirname=dirname
13250 else
13251 as_dirname=false
13252 fi
13253
13254 as_me=`$as_basename -- "$0" ||
13255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13256 X"$0" : 'X\(//\)$' \| \
13257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13258 $as_echo X/"$0" |
13259 sed '/^.*\/\([^/][^/]*\)\/*$/{
13260 s//\1/
13261 q
13262 }
13263 /^X\/\(\/\/\)$/{
13264 s//\1/
13265 q
13266 }
13267 /^X\/\(\/\).*/{
13268 s//\1/
13269 q
13270 }
13271 s/.*/./; q'`
13272
13273 # Avoid depending upon Character Ranges.
13274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13277 as_cr_digits='0123456789'
13278 as_cr_alnum=$as_cr_Letters$as_cr_digits
13279
13280 ECHO_C= ECHO_N= ECHO_T=
13281 case `echo -n x` in #(((((
13282 -n*)
13283 case `echo 'xy\c'` in
13284 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13285 xy) ECHO_C='\c';;
13286 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13287 ECHO_T=' ';;
13288 esac;;
13289 *)
13290 ECHO_N='-n';;
13291 esac
13292
13293 rm -f conf$$ conf$$.exe conf$$.file
13294 if test -d conf$$.dir; then
13295 rm -f conf$$.dir/conf$$.file
13296 else
13297 rm -f conf$$.dir
13298 mkdir conf$$.dir 2>/dev/null
13299 fi
13300 if (echo >conf$$.file) 2>/dev/null; then
13301 if ln -s conf$$.file conf$$ 2>/dev/null; then
13302 as_ln_s='ln -s'
13303 # ... but there are two gotchas:
13304 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13305 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13306 # In both cases, we have to default to `cp -p'.
13307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13308 as_ln_s='cp -p'
13309 elif ln conf$$.file conf$$ 2>/dev/null; then
13310 as_ln_s=ln
13311 else
13312 as_ln_s='cp -p'
13313 fi
13314 else
13315 as_ln_s='cp -p'
13316 fi
13317 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13318 rmdir conf$$.dir 2>/dev/null
13319
13320
13321 # as_fn_mkdir_p
13322 # -------------
13323 # Create "$as_dir" as a directory, including parents if necessary.
13324 as_fn_mkdir_p ()
13325 {
13326
13327 case $as_dir in #(
13328 -*) as_dir=./$as_dir;;
13329 esac
13330 test -d "$as_dir" || eval $as_mkdir_p || {
13331 as_dirs=
13332 while :; do
13333 case $as_dir in #(
13334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13335 *) as_qdir=$as_dir;;
13336 esac
13337 as_dirs="'$as_qdir' $as_dirs"
13338 as_dir=`$as_dirname -- "$as_dir" ||
13339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13340 X"$as_dir" : 'X\(//\)[^/]' \| \
13341 X"$as_dir" : 'X\(//\)$' \| \
13342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13343 $as_echo X"$as_dir" |
13344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13345 s//\1/
13346 q
13347 }
13348 /^X\(\/\/\)[^/].*/{
13349 s//\1/
13350 q
13351 }
13352 /^X\(\/\/\)$/{
13353 s//\1/
13354 q
13355 }
13356 /^X\(\/\).*/{
13357 s//\1/
13358 q
13359 }
13360 s/.*/./; q'`
13361 test -d "$as_dir" && break
13362 done
13363 test -z "$as_dirs" || eval "mkdir $as_dirs"
13364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13365
13366
13367 } # as_fn_mkdir_p
13368 if mkdir -p . 2>/dev/null; then
13369 as_mkdir_p='mkdir -p "$as_dir"'
13370 else
13371 test -d ./-p && rmdir ./-p
13372 as_mkdir_p=false
13373 fi
13374
13375 if test -x / >/dev/null 2>&1; then
13376 as_test_x='test -x'
13377 else
13378 if ls -dL / >/dev/null 2>&1; then
13379 as_ls_L_option=L
13380 else
13381 as_ls_L_option=
13382 fi
13383 as_test_x='
13384 eval sh -c '\''
13385 if test -d "$1"; then
13386 test -d "$1/.";
13387 else
13388 case $1 in #(
13389 -*)set "./$1";;
13390 esac;
13391 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13392 ???[sx]*):;;*)false;;esac;fi
13393 '\'' sh
13394 '
13395 fi
13396 as_executable_p=$as_test_x
13397
13398 # Sed expression to map a string onto a valid CPP name.
13399 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13400
13401 # Sed expression to map a string onto a valid variable name.
13402 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13403
13404
13405 exec 6>&1
13406 ## ----------------------------------- ##
13407 ## Main body of $CONFIG_STATUS script. ##
13408 ## ----------------------------------- ##
13409 _ASEOF
13410 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13411
13412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413 # Save the log message, to keep $0 and so on meaningful, and to
13414 # report actual input values of CONFIG_FILES etc. instead of their
13415 # values after options handling.
13416 ac_log="
13417 This file was extended by libpng $as_me 1.5.7, which was
13418 generated by GNU Autoconf 2.68. Invocation command line was
13419
13420 CONFIG_FILES = $CONFIG_FILES
13421 CONFIG_HEADERS = $CONFIG_HEADERS
13422 CONFIG_LINKS = $CONFIG_LINKS
13423 CONFIG_COMMANDS = $CONFIG_COMMANDS
13424 $ $0 $@
13425
13426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13427 "
13428
13429 _ACEOF
13430
13431 case $ac_config_files in *"
13432 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13433 esac
13434
13435 case $ac_config_headers in *"
13436 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13437 esac
13438
13439
13440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13441 # Files that config.status was made for.
13442 config_files="$ac_config_files"
13443 config_headers="$ac_config_headers"
13444 config_commands="$ac_config_commands"
13445
13446 _ACEOF
13447
13448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449 ac_cs_usage="\
13450 \`$as_me' instantiates files and other configuration actions
13451 from templates according to the current configuration. Unless the files
13452 and actions are specified as TAGs, all are instantiated by default.
13453
13454 Usage: $0 [OPTION]... [TAG]...
13455
13456 -h, --help print this help, then exit
13457 -V, --version print version number and configuration settings, then exit
13458 --config print configuration, then exit
13459 -q, --quiet, --silent
13460 do not print progress messages
13461 -d, --debug don't remove temporary files
13462 --recheck update $as_me by reconfiguring in the same conditions
13463 --file=FILE[:TEMPLATE]
13464 instantiate the configuration file FILE
13465 --header=FILE[:TEMPLATE]
13466 instantiate the configuration header FILE
13467
13468 Configuration files:
13469 $config_files
13470
13471 Configuration headers:
13472 $config_headers
13473
13474 Configuration commands:
13475 $config_commands
13476
13477 Report bugs to <png-mng-implement@lists.sourceforge.net>."
13478
13479 _ACEOF
13480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13481 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13482 ac_cs_version="\\
13483 libpng config.status 1.5.7
13484 configured by $0, generated by GNU Autoconf 2.68,
13485 with options \\"\$ac_cs_config\\"
13486
13487 Copyright (C) 2010 Free Software Foundation, Inc.
13488 This config.status script is free software; the Free Software Foundation
13489 gives unlimited permission to copy, distribute and modify it."
13490
13491 ac_pwd='$ac_pwd'
13492 srcdir='$srcdir'
13493 INSTALL='$INSTALL'
13494 MKDIR_P='$MKDIR_P'
13495 AWK='$AWK'
13496 test -n "\$AWK" || AWK=awk
13497 _ACEOF
13498
13499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500 # The default lists apply if the user does not specify any file.
13501 ac_need_defaults=:
13502 while test $# != 0
13503 do
13504 case $1 in
13505 --*=?*)
13506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13508 ac_shift=:
13509 ;;
13510 --*=)
13511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13512 ac_optarg=
13513 ac_shift=:
13514 ;;
13515 *)
13516 ac_option=$1
13517 ac_optarg=$2
13518 ac_shift=shift
13519 ;;
13520 esac
13521
13522 case $ac_option in
13523 # Handling of the options.
13524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13525 ac_cs_recheck=: ;;
13526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13527 $as_echo "$ac_cs_version"; exit ;;
13528 --config | --confi | --conf | --con | --co | --c )
13529 $as_echo "$ac_cs_config"; exit ;;
13530 --debug | --debu | --deb | --de | --d | -d )
13531 debug=: ;;
13532 --file | --fil | --fi | --f )
13533 $ac_shift
13534 case $ac_optarg in
13535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13536 '') as_fn_error $? "missing file argument" ;;
13537 esac
13538 as_fn_append CONFIG_FILES " '$ac_optarg'"
13539 ac_need_defaults=false;;
13540 --header | --heade | --head | --hea )
13541 $ac_shift
13542 case $ac_optarg in
13543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13544 esac
13545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13546 ac_need_defaults=false;;
13547 --he | --h)
13548 # Conflict between --help and --header
13549 as_fn_error $? "ambiguous option: \`$1'
13550 Try \`$0 --help' for more information.";;
13551 --help | --hel | -h )
13552 $as_echo "$ac_cs_usage"; exit ;;
13553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13555 ac_cs_silent=: ;;
13556
13557 # This is an error.
13558 -*) as_fn_error $? "unrecognized option: \`$1'
13559 Try \`$0 --help' for more information." ;;
13560
13561 *) as_fn_append ac_config_targets " $1"
13562 ac_need_defaults=false ;;
13563
13564 esac
13565 shift
13566 done
13567
13568 ac_configure_extra_args=
13569
13570 if $ac_cs_silent; then
13571 exec 6>/dev/null
13572 ac_configure_extra_args="$ac_configure_extra_args --silent"
13573 fi
13574
13575 _ACEOF
13576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13577 if \$ac_cs_recheck; then
13578 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13579 shift
13580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13581 CONFIG_SHELL='$SHELL'
13582 export CONFIG_SHELL
13583 exec "\$@"
13584 fi
13585
13586 _ACEOF
13587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13588 exec 5>>config.log
13589 {
13590 echo
13591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13592 ## Running $as_me. ##
13593 _ASBOX
13594 $as_echo "$ac_log"
13595 } >&5
13596
13597 _ACEOF
13598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13599 #
13600 # INIT-COMMANDS
13601 #
13602 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13603
13604
13605 # The HP-UX ksh and POSIX shell print the target directory to stdout
13606 # if CDPATH is set.
13607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13608
13609 sed_quote_subst='$sed_quote_subst'
13610 double_quote_subst='$double_quote_subst'
13611 delay_variable_subst='$delay_variable_subst'
13612 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13613 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13614 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13615 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13616 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13617 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13618 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13619 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13620 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13621 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13622 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13623 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13624 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13625 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13626 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13627 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13628 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13629 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13630 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13631 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13632 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13633 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13634 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13635 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13636 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13637 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13638 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13639 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13640 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13641 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13642 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13643 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13644 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13645 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13646 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13647 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13648 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13649 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13650 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13651 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13652 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13653 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13654 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13655 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13656 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13657 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13658 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13659 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13660 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13661 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13662 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13663 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13664 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13665 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13666 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13667 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13668 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13669 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"`'
13670 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13671 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13672 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13673 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13674 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13675 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13676 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13677 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13678 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13679 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13680 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13681 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13682 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13683 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13684 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13685 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13686 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13687 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13688 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13689 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13690 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13691 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13692 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13693 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13694 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13695 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13696 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13697 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13698 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13699 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13700 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13701 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13702 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13703 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13704 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13705 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13706 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13707 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13708 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13709 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13710 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13711 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13712 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13713 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13714 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13715 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13716 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13717 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13718 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13719 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13720 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13721 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13722 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13723 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13724 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13725 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13726 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13727 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13728 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13729 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13730 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13731 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13732 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13733 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13734 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13735 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13736 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13737 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13738 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13739 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13740 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13741 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13742 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13743
13744 LTCC='$LTCC'
13745 LTCFLAGS='$LTCFLAGS'
13746 compiler='$compiler_DEFAULT'
13747
13748 # A function that is used when there is no print builtin or printf.
13749 func_fallback_echo ()
13750 {
13751 eval 'cat <<_LTECHO_EOF
13752 \$1
13753 _LTECHO_EOF'
13754 }
13755
13756 # Quote evaled strings.
13757 for var in SED \
13758 GREP \
13759 EGREP \
13760 FGREP \
13761 SHELL \
13762 ECHO \
13763 LD \
13764 AS \
13765 DLLTOOL \
13766 OBJDUMP \
13767 PATH_SEPARATOR \
13768 NM \
13769 LN_S \
13770 lt_SP2NL \
13771 lt_NL2SP \
13772 reload_flag \
13773 deplibs_check_method \
13774 file_magic_cmd \
13775 file_magic_glob \
13776 want_nocaseglob \
13777 sharedlib_from_linklib_cmd \
13778 AR \
13779 AR_FLAGS \
13780 archiver_list_spec \
13781 STRIP \
13782 RANLIB \
13783 CC \
13784 CFLAGS \
13785 compiler \
13786 lt_cv_sys_global_symbol_pipe \
13787 lt_cv_sys_global_symbol_to_cdecl \
13788 lt_cv_sys_global_symbol_to_c_name_address \
13789 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13790 nm_file_list_spec \
13791 lt_prog_compiler_no_builtin_flag \
13792 lt_prog_compiler_pic \
13793 lt_prog_compiler_wl \
13794 lt_prog_compiler_static \
13795 lt_cv_prog_compiler_c_o \
13796 need_locks \
13797 MANIFEST_TOOL \
13798 DSYMUTIL \
13799 NMEDIT \
13800 LIPO \
13801 OTOOL \
13802 OTOOL64 \
13803 shrext_cmds \
13804 export_dynamic_flag_spec \
13805 whole_archive_flag_spec \
13806 compiler_needs_object \
13807 with_gnu_ld \
13808 allow_undefined_flag \
13809 no_undefined_flag \
13810 hardcode_libdir_flag_spec \
13811 hardcode_libdir_separator \
13812 exclude_expsyms \
13813 include_expsyms \
13814 file_list_spec \
13815 variables_saved_for_relink \
13816 libname_spec \
13817 library_names_spec \
13818 soname_spec \
13819 install_override_mode \
13820 finish_eval \
13821 old_striplib \
13822 striplib; do
13823 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13824 *[\\\\\\\`\\"\\\$]*)
13825 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13826 ;;
13827 *)
13828 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13829 ;;
13830 esac
13831 done
13832
13833 # Double-quote double-evaled strings.
13834 for var in reload_cmds \
13835 old_postinstall_cmds \
13836 old_postuninstall_cmds \
13837 old_archive_cmds \
13838 extract_expsyms_cmds \
13839 old_archive_from_new_cmds \
13840 old_archive_from_expsyms_cmds \
13841 archive_cmds \
13842 archive_expsym_cmds \
13843 module_cmds \
13844 module_expsym_cmds \
13845 export_symbols_cmds \
13846 prelink_cmds \
13847 postlink_cmds \
13848 postinstall_cmds \
13849 postuninstall_cmds \
13850 finish_cmds \
13851 sys_lib_search_path_spec \
13852 sys_lib_dlsearch_path_spec; do
13853 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13854 *[\\\\\\\`\\"\\\$]*)
13855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13856 ;;
13857 *)
13858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13859 ;;
13860 esac
13861 done
13862
13863 ac_aux_dir='$ac_aux_dir'
13864 xsi_shell='$xsi_shell'
13865 lt_shell_append='$lt_shell_append'
13866
13867 # See if we are running on zsh, and set the options which allow our
13868 # commands through without removal of \ escapes INIT.
13869 if test -n "\${ZSH_VERSION+set}" ; then
13870 setopt NO_GLOB_SUBST
13871 fi
13872
13873
13874 PACKAGE='$PACKAGE'
13875 VERSION='$VERSION'
13876 TIMESTAMP='$TIMESTAMP'
13877 RM='$RM'
13878 ofile='$ofile'
13879
13880
13881
13882
13883 _ACEOF
13884
13885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13886
13887 # Handling of arguments.
13888 for ac_config_target in $ac_config_targets
13889 do
13890 case $ac_config_target in
13891 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13892 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13893 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13894 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13895 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
13896 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
13897
13898 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13899 esac
13900 done
13901
13902
13903 # If the user did not use the arguments to specify the items to instantiate,
13904 # then the envvar interface is used. Set only those that are not.
13905 # We use the long form for the default assignment because of an extremely
13906 # bizarre bug on SunOS 4.1.3.
13907 if $ac_need_defaults; then
13908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13911 fi
13912
13913 # Have a temporary directory for convenience. Make it in the build tree
13914 # simply because there is no reason against having it here, and in addition,
13915 # creating and moving files from /tmp can sometimes cause problems.
13916 # Hook for its removal unless debugging.
13917 # Note that there is a small window in which the directory will not be cleaned:
13918 # after its creation but before its name has been assigned to `$tmp'.
13919 $debug ||
13920 {
13921 tmp= ac_tmp=
13922 trap 'exit_status=$?
13923 : "${ac_tmp:=$tmp}"
13924 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13925 ' 0
13926 trap 'as_fn_exit 1' 1 2 13 15
13927 }
13928 # Create a (secure) tmp directory for tmp files.
13929
13930 {
13931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13932 test -d "$tmp"
13933 } ||
13934 {
13935 tmp=./conf$$-$RANDOM
13936 (umask 077 && mkdir "$tmp")
13937 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13938 ac_tmp=$tmp
13939
13940 # Set up the scripts for CONFIG_FILES section.
13941 # No need to generate them if there are no CONFIG_FILES.
13942 # This happens for instance with `./config.status config.h'.
13943 if test -n "$CONFIG_FILES"; then
13944
13945
13946 ac_cr=`echo X | tr X '\015'`
13947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13948 # But we know of no other shell where ac_cr would be empty at this
13949 # point, so we can use a bashism as a fallback.
13950 if test "x$ac_cr" = x; then
13951 eval ac_cr=\$\'\\r\'
13952 fi
13953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13955 ac_cs_awk_cr='\\r'
13956 else
13957 ac_cs_awk_cr=$ac_cr
13958 fi
13959
13960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13961 _ACEOF
13962
13963
13964 {
13965 echo "cat >conf$$subs.awk <<_ACEOF" &&
13966 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13967 echo "_ACEOF"
13968 } >conf$$subs.sh ||
13969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13970 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13971 ac_delim='%!_!# '
13972 for ac_last_try in false false false false false :; do
13973 . ./conf$$subs.sh ||
13974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13975
13976 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13977 if test $ac_delim_n = $ac_delim_num; then
13978 break
13979 elif $ac_last_try; then
13980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13981 else
13982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13983 fi
13984 done
13985 rm -f conf$$subs.sh
13986
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13989 _ACEOF
13990 sed -n '
13991 h
13992 s/^/S["/; s/!.*/"]=/
13993 p
13994 g
13995 s/^[^!]*!//
13996 :repl
13997 t repl
13998 s/'"$ac_delim"'$//
13999 t delim
14000 :nl
14001 h
14002 s/\(.\{148\}\)..*/\1/
14003 t more1
14004 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14005 p
14006 n
14007 b repl
14008 :more1
14009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14010 p
14011 g
14012 s/.\{148\}//
14013 t nl
14014 :delim
14015 h
14016 s/\(.\{148\}\)..*/\1/
14017 t more2
14018 s/["\\]/\\&/g; s/^/"/; s/$/"/
14019 p
14020 b
14021 :more2
14022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14023 p
14024 g
14025 s/.\{148\}//
14026 t delim
14027 ' <conf$$subs.awk | sed '
14028 /^[^""]/{
14029 N
14030 s/\n//
14031 }
14032 ' >>$CONFIG_STATUS || ac_write_fail=1
14033 rm -f conf$$subs.awk
14034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14035 _ACAWK
14036 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14037 for (key in S) S_is_set[key] = 1
14038 FS = "\a"
14039
14040 }
14041 {
14042 line = $ 0
14043 nfields = split(line, field, "@")
14044 substed = 0
14045 len = length(field[1])
14046 for (i = 2; i < nfields; i++) {
14047 key = field[i]
14048 keylen = length(key)
14049 if (S_is_set[key]) {
14050 value = S[key]
14051 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14052 len += length(value) + length(field[++i])
14053 substed = 1
14054 } else
14055 len += 1 + keylen
14056 }
14057
14058 print line
14059 }
14060
14061 _ACAWK
14062 _ACEOF
14063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14064 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14065 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14066 else
14067 cat
14068 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14069 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14070 _ACEOF
14071
14072 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14073 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14074 # trailing colons and then remove the whole line if VPATH becomes empty
14075 # (actually we leave an empty line to preserve line numbers).
14076 if test "x$srcdir" = x.; then
14077 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14078 h
14079 s///
14080 s/^/:/
14081 s/[ ]*$/:/
14082 s/:\$(srcdir):/:/g
14083 s/:\${srcdir}:/:/g
14084 s/:@srcdir@:/:/g
14085 s/^:*//
14086 s/:*$//
14087 x
14088 s/\(=[ ]*\).*/\1/
14089 G
14090 s/\n//
14091 s/^[^=]*=[ ]*$//
14092 }'
14093 fi
14094
14095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096 fi # test -n "$CONFIG_FILES"
14097
14098 # Set up the scripts for CONFIG_HEADERS section.
14099 # No need to generate them if there are no CONFIG_HEADERS.
14100 # This happens for instance with `./config.status Makefile'.
14101 if test -n "$CONFIG_HEADERS"; then
14102 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14103 BEGIN {
14104 _ACEOF
14105
14106 # Transform confdefs.h into an awk script `defines.awk', embedded as
14107 # here-document in config.status, that substitutes the proper values into
14108 # config.h.in to produce config.h.
14109
14110 # Create a delimiter string that does not exist in confdefs.h, to ease
14111 # handling of long lines.
14112 ac_delim='%!_!# '
14113 for ac_last_try in false false :; do
14114 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14115 if test -z "$ac_tt"; then
14116 break
14117 elif $ac_last_try; then
14118 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14119 else
14120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14121 fi
14122 done
14123
14124 # For the awk script, D is an array of macro values keyed by name,
14125 # likewise P contains macro parameters if any. Preserve backslash
14126 # newline sequences.
14127
14128 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14129 sed -n '
14130 s/.\{148\}/&'"$ac_delim"'/g
14131 t rset
14132 :rset
14133 s/^[ ]*#[ ]*define[ ][ ]*/ /
14134 t def
14135 d
14136 :def
14137 s/\\$//
14138 t bsnl
14139 s/["\\]/\\&/g
14140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14141 D["\1"]=" \3"/p
14142 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14143 d
14144 :bsnl
14145 s/["\\]/\\&/g
14146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14147 D["\1"]=" \3\\\\\\n"\\/p
14148 t cont
14149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14150 t cont
14151 d
14152 :cont
14153 n
14154 s/.\{148\}/&'"$ac_delim"'/g
14155 t clear
14156 :clear
14157 s/\\$//
14158 t bsnlc
14159 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14160 d
14161 :bsnlc
14162 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14163 b cont
14164 ' <confdefs.h | sed '
14165 s/'"$ac_delim"'/"\\\
14166 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14167
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 for (key in D) D_is_set[key] = 1
14170 FS = "\a"
14171 }
14172 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14173 line = \$ 0
14174 split(line, arg, " ")
14175 if (arg[1] == "#") {
14176 defundef = arg[2]
14177 mac1 = arg[3]
14178 } else {
14179 defundef = substr(arg[1], 2)
14180 mac1 = arg[2]
14181 }
14182 split(mac1, mac2, "(") #)
14183 macro = mac2[1]
14184 prefix = substr(line, 1, index(line, defundef) - 1)
14185 if (D_is_set[macro]) {
14186 # Preserve the white space surrounding the "#".
14187 print prefix "define", macro P[macro] D[macro]
14188 next
14189 } else {
14190 # Replace #undef with comments. This is necessary, for example,
14191 # in the case of _POSIX_SOURCE, which is predefined and required
14192 # on some systems where configure will not decide to define it.
14193 if (defundef == "undef") {
14194 print "/*", prefix defundef, macro, "*/"
14195 next
14196 }
14197 }
14198 }
14199 { print }
14200 _ACAWK
14201 _ACEOF
14202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14204 fi # test -n "$CONFIG_HEADERS"
14205
14206
14207 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14208 shift
14209 for ac_tag
14210 do
14211 case $ac_tag in
14212 :[FHLC]) ac_mode=$ac_tag; continue;;
14213 esac
14214 case $ac_mode$ac_tag in
14215 :[FHL]*:*);;
14216 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14217 :[FH]-) ac_tag=-:-;;
14218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14219 esac
14220 ac_save_IFS=$IFS
14221 IFS=:
14222 set x $ac_tag
14223 IFS=$ac_save_IFS
14224 shift
14225 ac_file=$1
14226 shift
14227
14228 case $ac_mode in
14229 :L) ac_source=$1;;
14230 :[FH])
14231 ac_file_inputs=
14232 for ac_f
14233 do
14234 case $ac_f in
14235 -) ac_f="$ac_tmp/stdin";;
14236 *) # Look for the file first in the build tree, then in the source tree
14237 # (if the path is not absolute). The absolute path cannot be DOS-style,
14238 # because $ac_f cannot contain `:'.
14239 test -f "$ac_f" ||
14240 case $ac_f in
14241 [\\/$]*) false;;
14242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14243 esac ||
14244 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14245 esac
14246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14247 as_fn_append ac_file_inputs " '$ac_f'"
14248 done
14249
14250 # Let's still pretend it is `configure' which instantiates (i.e., don't
14251 # use $as_me), people would be surprised to read:
14252 # /* config.h. Generated by config.status. */
14253 configure_input='Generated from '`
14254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14255 `' by configure.'
14256 if test x"$ac_file" != x-; then
14257 configure_input="$ac_file. $configure_input"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14259 $as_echo "$as_me: creating $ac_file" >&6;}
14260 fi
14261 # Neutralize special characters interpreted by sed in replacement strings.
14262 case $configure_input in #(
14263 *\&* | *\|* | *\\* )
14264 ac_sed_conf_input=`$as_echo "$configure_input" |
14265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14266 *) ac_sed_conf_input=$configure_input;;
14267 esac
14268
14269 case $ac_tag in
14270 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14272 esac
14273 ;;
14274 esac
14275
14276 ac_dir=`$as_dirname -- "$ac_file" ||
14277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14278 X"$ac_file" : 'X\(//\)[^/]' \| \
14279 X"$ac_file" : 'X\(//\)$' \| \
14280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14281 $as_echo X"$ac_file" |
14282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14283 s//\1/
14284 q
14285 }
14286 /^X\(\/\/\)[^/].*/{
14287 s//\1/
14288 q
14289 }
14290 /^X\(\/\/\)$/{
14291 s//\1/
14292 q
14293 }
14294 /^X\(\/\).*/{
14295 s//\1/
14296 q
14297 }
14298 s/.*/./; q'`
14299 as_dir="$ac_dir"; as_fn_mkdir_p
14300 ac_builddir=.
14301
14302 case "$ac_dir" in
14303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14304 *)
14305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14306 # A ".." for each directory in $ac_dir_suffix.
14307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14308 case $ac_top_builddir_sub in
14309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14311 esac ;;
14312 esac
14313 ac_abs_top_builddir=$ac_pwd
14314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14315 # for backward compatibility:
14316 ac_top_builddir=$ac_top_build_prefix
14317
14318 case $srcdir in
14319 .) # We are building in place.
14320 ac_srcdir=.
14321 ac_top_srcdir=$ac_top_builddir_sub
14322 ac_abs_top_srcdir=$ac_pwd ;;
14323 [\\/]* | ?:[\\/]* ) # Absolute name.
14324 ac_srcdir=$srcdir$ac_dir_suffix;
14325 ac_top_srcdir=$srcdir
14326 ac_abs_top_srcdir=$srcdir ;;
14327 *) # Relative name.
14328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14329 ac_top_srcdir=$ac_top_build_prefix$srcdir
14330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14331 esac
14332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14333
14334
14335 case $ac_mode in
14336 :F)
14337 #
14338 # CONFIG_FILE
14339 #
14340
14341 case $INSTALL in
14342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14344 esac
14345 ac_MKDIR_P=$MKDIR_P
14346 case $MKDIR_P in
14347 [\\/$]* | ?:[\\/]* ) ;;
14348 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14349 esac
14350 _ACEOF
14351
14352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353 # If the template does not know about datarootdir, expand it.
14354 # FIXME: This hack should be removed a few years after 2.60.
14355 ac_datarootdir_hack=; ac_datarootdir_seen=
14356 ac_sed_dataroot='
14357 /datarootdir/ {
14358 p
14359 q
14360 }
14361 /@datadir@/p
14362 /@docdir@/p
14363 /@infodir@/p
14364 /@localedir@/p
14365 /@mandir@/p'
14366 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14367 *datarootdir*) ac_datarootdir_seen=yes;;
14368 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14370 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14371 _ACEOF
14372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14373 ac_datarootdir_hack='
14374 s&@datadir@&$datadir&g
14375 s&@docdir@&$docdir&g
14376 s&@infodir@&$infodir&g
14377 s&@localedir@&$localedir&g
14378 s&@mandir@&$mandir&g
14379 s&\\\${datarootdir}&$datarootdir&g' ;;
14380 esac
14381 _ACEOF
14382
14383 # Neutralize VPATH when `$srcdir' = `.'.
14384 # Shell code in configure.ac might set extrasub.
14385 # FIXME: do we really want to maintain this feature?
14386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387 ac_sed_extra="$ac_vpsub
14388 $extrasub
14389 _ACEOF
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 :t
14392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14393 s|@configure_input@|$ac_sed_conf_input|;t t
14394 s&@top_builddir@&$ac_top_builddir_sub&;t t
14395 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14396 s&@srcdir@&$ac_srcdir&;t t
14397 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14398 s&@top_srcdir@&$ac_top_srcdir&;t t
14399 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14400 s&@builddir@&$ac_builddir&;t t
14401 s&@abs_builddir@&$ac_abs_builddir&;t t
14402 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14403 s&@INSTALL@&$ac_INSTALL&;t t
14404 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14405 $ac_datarootdir_hack
14406 "
14407 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14408 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14409
14410 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14411 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14413 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14415 which seems to be undefined. Please make sure it is defined" >&5
14416 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14417 which seems to be undefined. Please make sure it is defined" >&2;}
14418
14419 rm -f "$ac_tmp/stdin"
14420 case $ac_file in
14421 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14422 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14423 esac \
14424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14425 ;;
14426 :H)
14427 #
14428 # CONFIG_HEADER
14429 #
14430 if test x"$ac_file" != x-; then
14431 {
14432 $as_echo "/* $configure_input */" \
14433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14434 } >"$ac_tmp/config.h" \
14435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14436 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14438 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14439 else
14440 rm -f "$ac_file"
14441 mv "$ac_tmp/config.h" "$ac_file" \
14442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14443 fi
14444 else
14445 $as_echo "/* $configure_input */" \
14446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14447 || as_fn_error $? "could not create -" "$LINENO" 5
14448 fi
14449 # Compute "$ac_file"'s index in $config_headers.
14450 _am_arg="$ac_file"
14451 _am_stamp_count=1
14452 for _am_header in $config_headers :; do
14453 case $_am_header in
14454 $_am_arg | $_am_arg:* )
14455 break ;;
14456 * )
14457 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14458 esac
14459 done
14460 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14461 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14462 X"$_am_arg" : 'X\(//\)[^/]' \| \
14463 X"$_am_arg" : 'X\(//\)$' \| \
14464 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14465 $as_echo X"$_am_arg" |
14466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14467 s//\1/
14468 q
14469 }
14470 /^X\(\/\/\)[^/].*/{
14471 s//\1/
14472 q
14473 }
14474 /^X\(\/\/\)$/{
14475 s//\1/
14476 q
14477 }
14478 /^X\(\/\).*/{
14479 s//\1/
14480 q
14481 }
14482 s/.*/./; q'`/stamp-h$_am_stamp_count
14483 ;;
14484
14485 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14486 $as_echo "$as_me: executing $ac_file commands" >&6;}
14487 ;;
14488 esac
14489
14490
14491 case $ac_file$ac_mode in
14492 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14493 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14494 # are listed without --file. Let's play safe and only enable the eval
14495 # if we detect the quoting.
14496 case $CONFIG_FILES in
14497 *\'*) eval set x "$CONFIG_FILES" ;;
14498 *) set x $CONFIG_FILES ;;
14499 esac
14500 shift
14501 for mf
14502 do
14503 # Strip MF so we end up with the name of the file.
14504 mf=`echo "$mf" | sed -e 's/:.*$//'`
14505 # Check whether this is an Automake generated Makefile or not.
14506 # We used to match only the files named `Makefile.in', but
14507 # some people rename them; so instead we look at the file content.
14508 # Grep'ing the first line is not enough: some people post-process
14509 # each Makefile.in and add a new line on top of each file to say so.
14510 # Grep'ing the whole file is not good either: AIX grep has a line
14511 # limit of 2048, but all sed's we know have understand at least 4000.
14512 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14513 dirpart=`$as_dirname -- "$mf" ||
14514 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14515 X"$mf" : 'X\(//\)[^/]' \| \
14516 X"$mf" : 'X\(//\)$' \| \
14517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14518 $as_echo X"$mf" |
14519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14520 s//\1/
14521 q
14522 }
14523 /^X\(\/\/\)[^/].*/{
14524 s//\1/
14525 q
14526 }
14527 /^X\(\/\/\)$/{
14528 s//\1/
14529 q
14530 }
14531 /^X\(\/\).*/{
14532 s//\1/
14533 q
14534 }
14535 s/.*/./; q'`
14536 else
14537 continue
14538 fi
14539 # Extract the definition of DEPDIR, am__include, and am__quote
14540 # from the Makefile without running `make'.
14541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14542 test -z "$DEPDIR" && continue
14543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14544 test -z "am__include" && continue
14545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14546 # When using ansi2knr, U may be empty or an underscore; expand it
14547 U=`sed -n 's/^U = //p' < "$mf"`
14548 # Find all dependency output files, they are included files with
14549 # $(DEPDIR) in their names. We invoke sed twice because it is the
14550 # simplest approach to changing $(DEPDIR) to its actual value in the
14551 # expansion.
14552 for file in `sed -n "
14553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14555 # Make sure the directory exists.
14556 test -f "$dirpart/$file" && continue
14557 fdir=`$as_dirname -- "$file" ||
14558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14559 X"$file" : 'X\(//\)[^/]' \| \
14560 X"$file" : 'X\(//\)$' \| \
14561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14562 $as_echo X"$file" |
14563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\/\)[^/].*/{
14568 s//\1/
14569 q
14570 }
14571 /^X\(\/\/\)$/{
14572 s//\1/
14573 q
14574 }
14575 /^X\(\/\).*/{
14576 s//\1/
14577 q
14578 }
14579 s/.*/./; q'`
14580 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14581 # echo "creating $dirpart/$file"
14582 echo '# dummy' > "$dirpart/$file"
14583 done
14584 done
14585 }
14586 ;;
14587 "libtool":C)
14588
14589 # See if we are running on zsh, and set the options which allow our
14590 # commands through without removal of \ escapes.
14591 if test -n "${ZSH_VERSION+set}" ; then
14592 setopt NO_GLOB_SUBST
14593 fi
14594
14595 cfgfile="${ofile}T"
14596 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14597 $RM "$cfgfile"
14598
14599 cat <<_LT_EOF >> "$cfgfile"
14600 #! $SHELL
14601
14602 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14603 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14605 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14606 #
14607 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14608 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14609 # Foundation, Inc.
14610 # Written by Gordon Matzigkeit, 1996
14611 #
14612 # This file is part of GNU Libtool.
14613 #
14614 # GNU Libtool is free software; you can redistribute it and/or
14615 # modify it under the terms of the GNU General Public License as
14616 # published by the Free Software Foundation; either version 2 of
14617 # the License, or (at your option) any later version.
14618 #
14619 # As a special exception to the GNU General Public License,
14620 # if you distribute this file as part of a program or library that
14621 # is built using GNU Libtool, you may include this file under the
14622 # same distribution terms that you use for the rest of that program.
14623 #
14624 # GNU Libtool is distributed in the hope that it will be useful,
14625 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14627 # GNU General Public License for more details.
14628 #
14629 # You should have received a copy of the GNU General Public License
14630 # along with GNU Libtool; see the file COPYING. If not, a copy
14631 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14632 # obtained by writing to the Free Software Foundation, Inc.,
14633 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14634
14635
14636 # The names of the tagged configurations supported by this script.
14637 available_tags=""
14638
14639 # ### BEGIN LIBTOOL CONFIG
14640
14641 # A sed program that does not truncate output.
14642 SED=$lt_SED
14643
14644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14645 Xsed="\$SED -e 1s/^X//"
14646
14647 # A grep program that handles long lines.
14648 GREP=$lt_GREP
14649
14650 # An ERE matcher.
14651 EGREP=$lt_EGREP
14652
14653 # A literal string matcher.
14654 FGREP=$lt_FGREP
14655
14656 # Shell to use when invoking shell scripts.
14657 SHELL=$lt_SHELL
14658
14659 # An echo program that protects backslashes.
14660 ECHO=$lt_ECHO
14661
14662 # Which release of libtool.m4 was used?
14663 macro_version=$macro_version
14664 macro_revision=$macro_revision
14665
14666 # Assembler program.
14667 AS=$lt_AS
14668
14669 # DLL creation program.
14670 DLLTOOL=$lt_DLLTOOL
14671
14672 # Object dumper program.
14673 OBJDUMP=$lt_OBJDUMP
14674
14675 # Whether or not to build shared libraries.
14676 build_libtool_libs=$enable_shared
14677
14678 # Whether or not to build static libraries.
14679 build_old_libs=$enable_static
14680
14681 # What type of objects to build.
14682 pic_mode=$pic_mode
14683
14684 # Whether or not to optimize for fast installation.
14685 fast_install=$enable_fast_install
14686
14687 # The PATH separator for the build system.
14688 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14689
14690 # The host system.
14691 host_alias=$host_alias
14692 host=$host
14693 host_os=$host_os
14694
14695 # The build system.
14696 build_alias=$build_alias
14697 build=$build
14698 build_os=$build_os
14699
14700 # A BSD- or MS-compatible name lister.
14701 NM=$lt_NM
14702
14703 # Whether we need soft or hard links.
14704 LN_S=$lt_LN_S
14705
14706 # What is the maximum length of a command?
14707 max_cmd_len=$max_cmd_len
14708
14709 # Object file suffix (normally "o").
14710 objext=$ac_objext
14711
14712 # Executable file suffix (normally "").
14713 exeext=$exeext
14714
14715 # whether the shell understands "unset".
14716 lt_unset=$lt_unset
14717
14718 # turn spaces into newlines.
14719 SP2NL=$lt_lt_SP2NL
14720
14721 # turn newlines into spaces.
14722 NL2SP=$lt_lt_NL2SP
14723
14724 # convert \$build file names to \$host format.
14725 to_host_file_cmd=$lt_cv_to_host_file_cmd
14726
14727 # convert \$build files to toolchain format.
14728 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14729
14730 # Method to check whether dependent libraries are shared objects.
14731 deplibs_check_method=$lt_deplibs_check_method
14732
14733 # Command to use when deplibs_check_method = "file_magic".
14734 file_magic_cmd=$lt_file_magic_cmd
14735
14736 # How to find potential files when deplibs_check_method = "file_magic".
14737 file_magic_glob=$lt_file_magic_glob
14738
14739 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14740 want_nocaseglob=$lt_want_nocaseglob
14741
14742 # Command to associate shared and link libraries.
14743 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14744
14745 # The archiver.
14746 AR=$lt_AR
14747
14748 # Flags to create an archive.
14749 AR_FLAGS=$lt_AR_FLAGS
14750
14751 # How to feed a file listing to the archiver.
14752 archiver_list_spec=$lt_archiver_list_spec
14753
14754 # A symbol stripping program.
14755 STRIP=$lt_STRIP
14756
14757 # Commands used to install an old-style archive.
14758 RANLIB=$lt_RANLIB
14759 old_postinstall_cmds=$lt_old_postinstall_cmds
14760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14761
14762 # Whether to use a lock for old archive extraction.
14763 lock_old_archive_extraction=$lock_old_archive_extraction
14764
14765 # A C compiler.
14766 LTCC=$lt_CC
14767
14768 # LTCC compiler flags.
14769 LTCFLAGS=$lt_CFLAGS
14770
14771 # Take the output of nm and produce a listing of raw symbols and C names.
14772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14773
14774 # Transform the output of nm in a proper C declaration.
14775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14776
14777 # Transform the output of nm in a C name address pair.
14778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14779
14780 # Transform the output of nm in a C name address pair when lib prefix is needed.
14781 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14782
14783 # Specify filename containing input files for \$NM.
14784 nm_file_list_spec=$lt_nm_file_list_spec
14785
14786 # The root where to search for dependent libraries,and in which our libraries should be installed.
14787 lt_sysroot=$lt_sysroot
14788
14789 # The name of the directory that contains temporary libtool files.
14790 objdir=$objdir
14791
14792 # Used to examine libraries when file_magic_cmd begins with "file".
14793 MAGIC_CMD=$MAGIC_CMD
14794
14795 # Must we lock files when doing compilation?
14796 need_locks=$lt_need_locks
14797
14798 # Manifest tool.
14799 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14800
14801 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14802 DSYMUTIL=$lt_DSYMUTIL
14803
14804 # Tool to change global to local symbols on Mac OS X.
14805 NMEDIT=$lt_NMEDIT
14806
14807 # Tool to manipulate fat objects and archives on Mac OS X.
14808 LIPO=$lt_LIPO
14809
14810 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14811 OTOOL=$lt_OTOOL
14812
14813 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14814 OTOOL64=$lt_OTOOL64
14815
14816 # Old archive suffix (normally "a").
14817 libext=$libext
14818
14819 # Shared library suffix (normally ".so").
14820 shrext_cmds=$lt_shrext_cmds
14821
14822 # The commands to extract the exported symbol list from a shared archive.
14823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14824
14825 # Variables whose values should be saved in libtool wrapper scripts and
14826 # restored at link time.
14827 variables_saved_for_relink=$lt_variables_saved_for_relink
14828
14829 # Do we need the "lib" prefix for modules?
14830 need_lib_prefix=$need_lib_prefix
14831
14832 # Do we need a version for libraries?
14833 need_version=$need_version
14834
14835 # Library versioning type.
14836 version_type=$version_type
14837
14838 # Shared library runtime path variable.
14839 runpath_var=$runpath_var
14840
14841 # Shared library path variable.
14842 shlibpath_var=$shlibpath_var
14843
14844 # Is shlibpath searched before the hard-coded library search path?
14845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14846
14847 # Format of library name prefix.
14848 libname_spec=$lt_libname_spec
14849
14850 # List of archive names. First name is the real one, the rest are links.
14851 # The last name is the one that the linker finds with -lNAME
14852 library_names_spec=$lt_library_names_spec
14853
14854 # The coded name of the library, if different from the real name.
14855 soname_spec=$lt_soname_spec
14856
14857 # Permission mode override for installation of shared libraries.
14858 install_override_mode=$lt_install_override_mode
14859
14860 # Command to use after installation of a shared archive.
14861 postinstall_cmds=$lt_postinstall_cmds
14862
14863 # Command to use after uninstallation of a shared archive.
14864 postuninstall_cmds=$lt_postuninstall_cmds
14865
14866 # Commands used to finish a libtool library installation in a directory.
14867 finish_cmds=$lt_finish_cmds
14868
14869 # As "finish_cmds", except a single script fragment to be evaled but
14870 # not shown.
14871 finish_eval=$lt_finish_eval
14872
14873 # Whether we should hardcode library paths into libraries.
14874 hardcode_into_libs=$hardcode_into_libs
14875
14876 # Compile-time system search path for libraries.
14877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14878
14879 # Run-time system search path for libraries.
14880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14881
14882 # Whether dlopen is supported.
14883 dlopen_support=$enable_dlopen
14884
14885 # Whether dlopen of programs is supported.
14886 dlopen_self=$enable_dlopen_self
14887
14888 # Whether dlopen of statically linked programs is supported.
14889 dlopen_self_static=$enable_dlopen_self_static
14890
14891 # Commands to strip libraries.
14892 old_striplib=$lt_old_striplib
14893 striplib=$lt_striplib
14894
14895
14896 # The linker used to build libraries.
14897 LD=$lt_LD
14898
14899 # How to create reloadable object files.
14900 reload_flag=$lt_reload_flag
14901 reload_cmds=$lt_reload_cmds
14902
14903 # Commands used to build an old-style archive.
14904 old_archive_cmds=$lt_old_archive_cmds
14905
14906 # A language specific compiler.
14907 CC=$lt_compiler
14908
14909 # Is the compiler the GNU compiler?
14910 with_gcc=$GCC
14911
14912 # Compiler flag to turn off builtin functions.
14913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14914
14915 # Additional compiler flags for building library objects.
14916 pic_flag=$lt_lt_prog_compiler_pic
14917
14918 # How to pass a linker flag through the compiler.
14919 wl=$lt_lt_prog_compiler_wl
14920
14921 # Compiler flag to prevent dynamic linking.
14922 link_static_flag=$lt_lt_prog_compiler_static
14923
14924 # Does compiler simultaneously support -c and -o options?
14925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14926
14927 # Whether or not to add -lc for building shared libraries.
14928 build_libtool_need_lc=$archive_cmds_need_lc
14929
14930 # Whether or not to disallow shared libs when runtime libs are static.
14931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14932
14933 # Compiler flag to allow reflexive dlopens.
14934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14935
14936 # Compiler flag to generate shared objects directly from archives.
14937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14938
14939 # Whether the compiler copes with passing no objects directly.
14940 compiler_needs_object=$lt_compiler_needs_object
14941
14942 # Create an old-style archive from a shared archive.
14943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14944
14945 # Create a temporary old-style archive to link instead of a shared archive.
14946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14947
14948 # Commands used to build a shared archive.
14949 archive_cmds=$lt_archive_cmds
14950 archive_expsym_cmds=$lt_archive_expsym_cmds
14951
14952 # Commands used to build a loadable module if different from building
14953 # a shared archive.
14954 module_cmds=$lt_module_cmds
14955 module_expsym_cmds=$lt_module_expsym_cmds
14956
14957 # Whether we are building with GNU ld or not.
14958 with_gnu_ld=$lt_with_gnu_ld
14959
14960 # Flag that allows shared libraries with undefined symbols to be built.
14961 allow_undefined_flag=$lt_allow_undefined_flag
14962
14963 # Flag that enforces no undefined symbols.
14964 no_undefined_flag=$lt_no_undefined_flag
14965
14966 # Flag to hardcode \$libdir into a binary during linking.
14967 # This must work even if \$libdir does not exist
14968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14969
14970 # Whether we need a single "-rpath" flag with a separated argument.
14971 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14972
14973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14974 # DIR into the resulting binary.
14975 hardcode_direct=$hardcode_direct
14976
14977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14978 # DIR into the resulting binary and the resulting library dependency is
14979 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14980 # library is relocated.
14981 hardcode_direct_absolute=$hardcode_direct_absolute
14982
14983 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14984 # into the resulting binary.
14985 hardcode_minus_L=$hardcode_minus_L
14986
14987 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14988 # into the resulting binary.
14989 hardcode_shlibpath_var=$hardcode_shlibpath_var
14990
14991 # Set to "yes" if building a shared library automatically hardcodes DIR
14992 # into the library and all subsequent libraries and executables linked
14993 # against it.
14994 hardcode_automatic=$hardcode_automatic
14995
14996 # Set to yes if linker adds runtime paths of dependent libraries
14997 # to runtime path list.
14998 inherit_rpath=$inherit_rpath
14999
15000 # Whether libtool must link a program against all its dependency libraries.
15001 link_all_deplibs=$link_all_deplibs
15002
15003 # Set to "yes" if exported symbols are required.
15004 always_export_symbols=$always_export_symbols
15005
15006 # The commands to list exported symbols.
15007 export_symbols_cmds=$lt_export_symbols_cmds
15008
15009 # Symbols that should not be listed in the preloaded symbols.
15010 exclude_expsyms=$lt_exclude_expsyms
15011
15012 # Symbols that must always be exported.
15013 include_expsyms=$lt_include_expsyms
15014
15015 # Commands necessary for linking programs (against libraries) with templates.
15016 prelink_cmds=$lt_prelink_cmds
15017
15018 # Commands necessary for finishing linking programs.
15019 postlink_cmds=$lt_postlink_cmds
15020
15021 # Specify filename containing input files.
15022 file_list_spec=$lt_file_list_spec
15023
15024 # How to hardcode a shared library path into an executable.
15025 hardcode_action=$hardcode_action
15026
15027 # ### END LIBTOOL CONFIG
15028
15029 _LT_EOF
15030
15031 case $host_os in
15032 aix3*)
15033 cat <<\_LT_EOF >> "$cfgfile"
15034 # AIX sometimes has problems with the GCC collect2 program. For some
15035 # reason, if we set the COLLECT_NAMES environment variable, the problems
15036 # vanish in a puff of smoke.
15037 if test "X${COLLECT_NAMES+set}" != Xset; then
15038 COLLECT_NAMES=
15039 export COLLECT_NAMES
15040 fi
15041 _LT_EOF
15042 ;;
15043 esac
15044
15045
15046 ltmain="$ac_aux_dir/ltmain.sh"
15047
15048
15049 # We use sed instead of cat because bash on DJGPP gets confused if
15050 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15051 # text mode, it properly converts lines to CR/LF. This bash problem
15052 # is reportedly fixed, but why not run on old versions too?
15053 sed '$q' "$ltmain" >> "$cfgfile" \
15054 || (rm -f "$cfgfile"; exit 1)
15055
15056 if test x"$xsi_shell" = xyes; then
15057 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15058 func_dirname ()\
15059 {\
15060 \ case ${1} in\
15061 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15062 \ * ) func_dirname_result="${3}" ;;\
15063 \ esac\
15064 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15065 && mv -f "$cfgfile.tmp" "$cfgfile" \
15066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15067 test 0 -eq $? || _lt_function_replace_fail=:
15068
15069
15070 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15071 func_basename ()\
15072 {\
15073 \ func_basename_result="${1##*/}"\
15074 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15075 && mv -f "$cfgfile.tmp" "$cfgfile" \
15076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15077 test 0 -eq $? || _lt_function_replace_fail=:
15078
15079
15080 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15081 func_dirname_and_basename ()\
15082 {\
15083 \ case ${1} in\
15084 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15085 \ * ) func_dirname_result="${3}" ;;\
15086 \ esac\
15087 \ func_basename_result="${1##*/}"\
15088 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15089 && mv -f "$cfgfile.tmp" "$cfgfile" \
15090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15091 test 0 -eq $? || _lt_function_replace_fail=:
15092
15093
15094 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15095 func_stripname ()\
15096 {\
15097 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15098 \ # positional parameters, so assign one to ordinary parameter first.\
15099 \ func_stripname_result=${3}\
15100 \ func_stripname_result=${func_stripname_result#"${1}"}\
15101 \ func_stripname_result=${func_stripname_result%"${2}"}\
15102 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15103 && mv -f "$cfgfile.tmp" "$cfgfile" \
15104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15105 test 0 -eq $? || _lt_function_replace_fail=:
15106
15107
15108 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15109 func_split_long_opt ()\
15110 {\
15111 \ func_split_long_opt_name=${1%%=*}\
15112 \ func_split_long_opt_arg=${1#*=}\
15113 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15114 && mv -f "$cfgfile.tmp" "$cfgfile" \
15115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15116 test 0 -eq $? || _lt_function_replace_fail=:
15117
15118
15119 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15120 func_split_short_opt ()\
15121 {\
15122 \ func_split_short_opt_arg=${1#??}\
15123 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15124 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15125 && mv -f "$cfgfile.tmp" "$cfgfile" \
15126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15127 test 0 -eq $? || _lt_function_replace_fail=:
15128
15129
15130 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15131 func_lo2o ()\
15132 {\
15133 \ case ${1} in\
15134 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15135 \ *) func_lo2o_result=${1} ;;\
15136 \ esac\
15137 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15138 && mv -f "$cfgfile.tmp" "$cfgfile" \
15139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15140 test 0 -eq $? || _lt_function_replace_fail=:
15141
15142
15143 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15144 func_xform ()\
15145 {\
15146 func_xform_result=${1%.*}.lo\
15147 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15148 && mv -f "$cfgfile.tmp" "$cfgfile" \
15149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15150 test 0 -eq $? || _lt_function_replace_fail=:
15151
15152
15153 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15154 func_arith ()\
15155 {\
15156 func_arith_result=$(( $* ))\
15157 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15158 && mv -f "$cfgfile.tmp" "$cfgfile" \
15159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15160 test 0 -eq $? || _lt_function_replace_fail=:
15161
15162
15163 sed -e '/^func_len ()$/,/^} # func_len /c\
15164 func_len ()\
15165 {\
15166 func_len_result=${#1}\
15167 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15168 && mv -f "$cfgfile.tmp" "$cfgfile" \
15169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15170 test 0 -eq $? || _lt_function_replace_fail=:
15171
15172 fi
15173
15174 if test x"$lt_shell_append" = xyes; then
15175 sed -e '/^func_append ()$/,/^} # func_append /c\
15176 func_append ()\
15177 {\
15178 eval "${1}+=\\${2}"\
15179 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15180 && mv -f "$cfgfile.tmp" "$cfgfile" \
15181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15182 test 0 -eq $? || _lt_function_replace_fail=:
15183
15184
15185 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15186 func_append_quoted ()\
15187 {\
15188 \ func_quote_for_eval "${2}"\
15189 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15190 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15191 && mv -f "$cfgfile.tmp" "$cfgfile" \
15192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15193 test 0 -eq $? || _lt_function_replace_fail=:
15194
15195
15196 # Save a `func_append' function call where possible by direct use of '+='
15197 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15198 && mv -f "$cfgfile.tmp" "$cfgfile" \
15199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15200 test 0 -eq $? || _lt_function_replace_fail=:
15201 else
15202 # Save a `func_append' function call even when '+=' is not available
15203 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15204 && mv -f "$cfgfile.tmp" "$cfgfile" \
15205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15206 test 0 -eq $? || _lt_function_replace_fail=:
15207 fi
15208
15209 if test x"$_lt_function_replace_fail" = x":"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15211 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15212 fi
15213
15214
15215 mv -f "$cfgfile" "$ofile" ||
15216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15217 chmod +x "$ofile"
15218
15219 ;;
15220 "libpng-config":F) chmod +x libpng-config ;;
15221
15222 esac
15223 done # for ac_tag
15224
15225
15226 as_fn_exit 0
15227 _ACEOF
15228 ac_clean_files=$ac_clean_files_save
15229
15230 test $ac_write_fail = 0 ||
15231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15232
15233
15234 # configure is writing to config.log, and then calls config.status.
15235 # config.status does its own redirection, appending to config.log.
15236 # Unfortunately, on DOS this fails, as config.log is still kept open
15237 # by configure, so config.status won't be able to write to it; its
15238 # output is simply discarded. So we exec the FD to /dev/null,
15239 # effectively closing config.log, so it can be properly (re)opened and
15240 # appended to by config.status. When coming back to configure, we
15241 # need to make the FD available again.
15242 if test "$no_create" != yes; then
15243 ac_cs_success=:
15244 ac_config_status_args=
15245 test "$silent" = yes &&
15246 ac_config_status_args="$ac_config_status_args --quiet"
15247 exec 5>/dev/null
15248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15249 exec 5>>config.log
15250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15251 # would make configure fail if this is the last instruction.
15252 $ac_cs_success || as_fn_exit 1
15253 fi
15254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15257 fi
15258