]> git.saurik.com Git - wxWidgets.git/blob - src/png/configure
Make GTK callbacks passed to GTKConnectWidget() extern "C".
[wxWidgets.git] / src / png / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libpng 1.4.4.
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 Free Software Foundation,
10 # 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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210 fi
211 fi
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: png-mng-implement@lists.sourceforge.net about your
243 $0: system, including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
368
369
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
544
545 # Name of the host.
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
561
562 # Identity of this package.
563 PACKAGE_NAME='libpng'
564 PACKAGE_TARNAME='libpng'
565 PACKAGE_VERSION='1.4.4'
566 PACKAGE_STRING='libpng 1.4.4'
567 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
568 PACKAGE_URL=''
569
570 ac_unique_file="pngget.c"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 # include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 # include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
606
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 binconfigs
611 pkgconfigdir
612 PNGLIB_RELEASE
613 PNGLIB_MINOR
614 PNGLIB_MAJOR
615 PNGLIB_VERSION
616 SYMBOL_PREFIX
617 HAVE_LD_VERSION_SCRIPT_FALSE
618 HAVE_LD_VERSION_SCRIPT_TRUE
619 LIBPNG_DEFINES
620 LIBOBJS
621 POW_LIB
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 RANLIB
628 AR
629 NM
630 ac_ct_DUMPBIN
631 DUMPBIN
632 LIBTOOL
633 OBJDUMP
634 DLLTOOL
635 AS
636 LN_S
637 CPP
638 LD
639 FGREP
640 EGREP
641 GREP
642 SED
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 MAINT
668 MAINTAINER_MODE_FALSE
669 MAINTAINER_MODE_TRUE
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_maintainer_mode
735 enable_dependency_tracking
736 with_gnu_ld
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 enable_libtool_lock
742 with_pkgconfigdir
743 with_binconfigs
744 '
745 ac_precious_vars='build_alias
746 host_alias
747 target_alias
748 CC
749 CFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
753 CPP'
754
755
756 # Initialize some variables set by options.
757 ac_init_help=
758 ac_init_version=false
759 ac_unrecognized_opts=
760 ac_unrecognized_sep=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
813 fi
814
815 case $ac_option in
816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *) ac_optarg=yes ;;
818 esac
819
820 # Accept the important Cygnus configure options, so we can diagnose typos.
821
822 case $ac_dashdash$ac_option in
823 --)
824 ac_dashdash=yes ;;
825
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 ac_prev=bindir ;;
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 bindir=$ac_optarg ;;
830
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
835
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
842
843 --config-cache | -C)
844 cache_file=config.cache ;;
845
846 -datadir | --datadir | --datadi | --datad)
847 ac_prev=datadir ;;
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
850
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
857
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=no ;;
873
874 -docdir | --docdir | --docdi | --doc | --do)
875 ac_prev=docdir ;;
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 docdir=$ac_optarg ;;
878
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 ac_prev=dvidir ;;
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 dvidir=$ac_optarg ;;
883
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=\$ac_optarg ;;
899
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
908
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
911 with_gas=yes ;;
912
913 -help | --help | --hel | --he | -h)
914 ac_init_help=long ;;
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
919
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
924
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 ac_prev=htmldir ;;
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 | --ht=*)
929 htmldir=$ac_optarg ;;
930
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
937
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 ac_prev=infodir ;;
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
942
943 -libdir | --libdir | --libdi | --libd)
944 ac_prev=libdir ;;
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 libdir=$ac_optarg ;;
947
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
954
955 -localedir | --localedir | --localedi | --localed | --locale)
956 ac_prev=localedir ;;
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
959
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
966
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 ac_prev=mandir ;;
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 mandir=$ac_optarg ;;
971
972 -nfp | --nfp | --nf)
973 # Obsolete; use --without-fp.
974 with_fp=no ;;
975
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
978 no_create=yes ;;
979
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 no_recursion=yes ;;
983
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
992
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 ac_prev=prefix ;;
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 prefix=$ac_optarg ;;
997
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1004
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1011
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1028
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 ac_prev=pdfdir ;;
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1033
1034 -psdir | --psdir | --psdi | --psd | --ps)
1035 ac_prev=psdir ;;
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 psdir=$ac_optarg ;;
1038
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 silent=yes ;;
1042
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 ac_prev=sbindir ;;
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 | --sbi=* | --sb=*)
1047 sbindir=$ac_optarg ;;
1048
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1052 | --sha | --sh)
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 | --sha=* | --sh=*)
1058 sharedstatedir=$ac_optarg ;;
1059
1060 -site | --site | --sit)
1061 ac_prev=site ;;
1062 -site=* | --site=* | --sit=*)
1063 site=$ac_optarg ;;
1064
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 ac_prev=srcdir ;;
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1069
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1076
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1081
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 verbose=yes ;;
1084
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1087
1088 -with-* | --with-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=\$ac_optarg ;;
1103
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=no ;;
1119
1120 --x)
1121 # Obsolete; use --with-x.
1122 with_x=yes ;;
1123
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1130
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1137
1138 -*) as_fn_error "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information."
1140 ;;
1141
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1148 esac
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1151
1152 *)
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 ;;
1159
1160 esac
1161 done
1162
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error "missing argument to $ac_option"
1166 fi
1167
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
1171 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1181 do
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1184 case $ac_val in
1185 */ )
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1188 esac
1189 # Be sure to have absolute directory names.
1190 case $ac_val in
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 esac
1194 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1195 done
1196
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1200 build=$build_alias
1201 host=$host_alias
1202 target=$target_alias
1203
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used." >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1211 cross_compiling=yes
1212 fi
1213 fi
1214
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217
1218 test "$silent" = yes && exec 6>/dev/null
1219
1220
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error "pwd does not report name of working directory"
1227
1228
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\).*/{
1252 s//\1/
1253 q
1254 }
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1259 fi
1260 else
1261 ac_srcdir_defaulted=no
1262 fi
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1266 fi
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274 fi
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1287
1288 #
1289 # Report the --help message.
1290 #
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures libpng 1.4.4 to adapt to many kinds of systems.
1296
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302 Defaults for the options are specified in brackets.
1303
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1325
1326 For better control, use the options below.
1327
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1349
1350 cat <<\_ACEOF
1351
1352 Program names:
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356
1357 System types:
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 _ACEOF
1361 fi
1362
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of libpng 1.4.4:";;
1366 esac
1367 cat <<\_ACEOF
1368
1369 Optional Features:
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --enable-maintainer-mode enable make rules and dependencies not useful
1374 (and sometimes confusing) to the casual installer
1375 --disable-dependency-tracking speeds up one-time build
1376 --enable-dependency-tracking do not reject slow dependency extractors
1377 --enable-shared[=PKGS] build shared libraries [default=yes]
1378 --enable-static[=PKGS] build static libraries [default=yes]
1379 --enable-fast-install[=PKGS]
1380 optimize for fast installation [default=yes]
1381 --disable-libtool-lock avoid locking (might break parallel builds)
1382
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1387 --with-pic try to use only PIC/non-PIC objects [default=use
1388 both]
1389 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1390 libdir/pkgconfig)
1391 --with-binconfigs Generate shell libpng-config scripts as well as
1392 pkg-config data [default=yes]
1393
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403
1404 Use these variables to override the choices made by `configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1406
1407 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1408 _ACEOF
1409 ac_status=$?
1410 fi
1411
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417 continue
1418 ac_builddir=.
1419
1420 case "$ac_dir" in
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *)
1423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 esac ;;
1430 esac
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1435
1436 case $srcdir in
1437 .) # We are building in place.
1438 ac_srcdir=.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1445 *) # Relative name.
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 esac
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1460 else
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 fi || ac_status=$?
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1464 done
1465 fi
1466
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1469 cat <<\_ACEOF
1470 libpng configure 1.4.4
1471 generated by GNU Autoconf 2.65
1472
1473 Copyright (C) 2009 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1476 _ACEOF
1477 exit
1478 fi
1479
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1483
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile ()
1488 {
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1492 case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495 esac
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1499 ac_status=$?
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1504 fi
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1510 ac_retval=0
1511 else
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=1
1516 fi
1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518 as_fn_set_status $ac_retval
1519
1520 } # ac_fn_c_try_compile
1521
1522 # ac_fn_c_try_cpp LINENO
1523 # ----------------------
1524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_cpp ()
1526 {
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 if { { ac_try="$ac_cpp conftest.$ac_ext"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } >/dev/null && {
1544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 }; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_cpp
1558
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 $as_test_x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_link
1604
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_c_try_run LINENO
1637 # ----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639 # that executables *can* be run.
1640 ac_fn_c_try_run ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>&5
1651 ac_status=$?
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654 { { case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_try") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; }; }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: program exited with status $ac_status" >&5
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=$ac_status
1671 fi
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_run
1677
1678 # ac_fn_c_check_func LINENO FUNC VAR
1679 # ----------------------------------
1680 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1681 ac_fn_c_check_func ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1693 #define $2 innocuous_$2
1694
1695 /* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char $2 (); below.
1697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698 <limits.h> exists even on freestanding compilers. */
1699
1700 #ifdef __STDC__
1701 # include <limits.h>
1702 #else
1703 # include <assert.h>
1704 #endif
1705
1706 #undef $2
1707
1708 /* Override any GCC internal prototype to avoid an error.
1709 Use char because int might match the return type of a GCC
1710 builtin and then its argument prototype would still apply. */
1711 #ifdef __cplusplus
1712 extern "C"
1713 #endif
1714 char $2 ();
1715 /* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718 #if defined __stub_$2 || defined __stub___$2
1719 choke me
1720 #endif
1721
1722 int
1723 main ()
1724 {
1725 return $2 ();
1726 ;
1727 return 0;
1728 }
1729 _ACEOF
1730 if ac_fn_c_try_link "$LINENO"; then :
1731 eval "$3=yes"
1732 else
1733 eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext \
1736 conftest$ac_exeext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742
1743 } # ac_fn_c_check_func
1744
1745 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1748 # the include files in INCLUDES and setting the cache variable VAR
1749 # accordingly.
1750 ac_fn_c_check_header_mongrel ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758 fi
1759 eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 else
1763 # Is the header compilable?
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1765 $as_echo_n "checking $2 usability... " >&6; }
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_header_compiler=yes
1773 else
1774 ac_header_compiler=no
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1778 $as_echo "$ac_header_compiler" >&6; }
1779
1780 # Is the header present?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1782 $as_echo_n "checking $2 presence... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_cpp "$LINENO"; then :
1788 ac_header_preproc=yes
1789 else
1790 ac_header_preproc=no
1791 fi
1792 rm -f conftest.err conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1794 $as_echo "$ac_header_preproc" >&6; }
1795
1796 # So? What about this header?
1797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1798 yes:no: )
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1800 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ;;
1804 no:yes:* )
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1806 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1808 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1810 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1812 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ( cat <<\_ASBOX
1816 ## ------------------------------------------------------ ##
1817 ## Report this to png-mng-implement@lists.sourceforge.net ##
1818 ## ------------------------------------------------------ ##
1819 _ASBOX
1820 ) | sed "s/^/$as_me: WARNING: /" >&2
1821 ;;
1822 esac
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 eval "$3=\$ac_header_compiler"
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 fi
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836 } # ac_fn_c_check_header_mongrel
1837
1838 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1839 # -------------------------------------------
1840 # Tests whether TYPE exists after having included INCLUDES, setting cache
1841 # variable VAR accordingly.
1842 ac_fn_c_check_type ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 int
1855 main ()
1856 {
1857 if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 int
1868 main ()
1869 {
1870 if (sizeof (($2)))
1871 return 0;
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877
1878 else
1879 eval "$3=yes"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889
1890 } # ac_fn_c_check_type
1891 cat >config.log <<_ACEOF
1892 This file contains any messages produced by compilers while
1893 running configure, to aid debugging if configure makes a mistake.
1894
1895 It was created by libpng $as_me 1.4.4, which was
1896 generated by GNU Autoconf 2.65. Invocation command line was
1897
1898 $ $0 $@
1899
1900 _ACEOF
1901 exec 5>>config.log
1902 {
1903 cat <<_ASUNAME
1904 ## --------- ##
1905 ## Platform. ##
1906 ## --------- ##
1907
1908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916
1917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924
1925 _ASUNAME
1926
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 $as_echo "PATH: $as_dir"
1933 done
1934 IFS=$as_save_IFS
1935
1936 } >&5
1937
1938 cat >&5 <<_ACEOF
1939
1940
1941 ## ----------- ##
1942 ## Core tests. ##
1943 ## ----------- ##
1944
1945 _ACEOF
1946
1947
1948 # Keep a trace of the command line.
1949 # Strip out --no-create and --no-recursion so they do not pile up.
1950 # Strip out --silent because we don't want to record it for future runs.
1951 # Also quote any args containing shell meta-characters.
1952 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_configure_args=
1954 ac_configure_args0=
1955 ac_configure_args1=
1956 ac_must_keep_next=false
1957 for ac_pass in 1 2
1958 do
1959 for ac_arg
1960 do
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 esac
1969 case $ac_pass in
1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971 2)
1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1984 ;;
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1987 fi
1988 as_fn_append ac_configure_args " '$ac_arg'"
1989 ;;
1990 esac
1991 done
1992 done
1993 { ac_configure_args0=; unset ac_configure_args0;}
1994 { ac_configure_args1=; unset ac_configure_args1;}
1995
1996 # When interrupted or exit'd, cleanup temporary files, and complete
1997 # config.log. We remove comments because anyway the quotes in there
1998 # would cause problems or look ugly.
1999 # WARNING: Use '\'' to represent an apostrophe within the trap.
2000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001 trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2003 {
2004 echo
2005
2006 cat <<\_ASBOX
2007 ## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##
2010 _ASBOX
2011 echo
2012 # The following way of writing the cache mishandles newlines in values,
2013 (
2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2015 eval ac_val=\$$ac_var
2016 case $ac_val in #(
2017 *${as_nl}*)
2018 case $ac_var in #(
2019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2021 esac
2022 case $ac_var in #(
2023 _ | IFS | as_nl) ;; #(
2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2025 *) { eval $ac_var=; unset $ac_var;} ;;
2026 esac ;;
2027 esac
2028 done
2029 (set) 2>&1 |
2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2031 *${as_nl}ac_space=\ *)
2032 sed -n \
2033 "s/'\''/'\''\\\\'\'''\''/g;
2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2035 ;; #(
2036 *)
2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2038 ;;
2039 esac |
2040 sort
2041 )
2042 echo
2043
2044 cat <<\_ASBOX
2045 ## ----------------- ##
2046 ## Output variables. ##
2047 ## ----------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 cat <<\_ASBOX
2062 ## ------------------- ##
2063 ## File substitutions. ##
2064 ## ------------------- ##
2065 _ASBOX
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 cat <<\_ASBOX
2080 ## ----------- ##
2081 ## confdefs.h. ##
2082 ## ----------- ##
2083 _ASBOX
2084 echo
2085 cat confdefs.h
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2095 ' 0
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2100
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2103
2104 $as_echo "/* confdefs.h */" > confdefs.h
2105
2106 # Predefined preprocessor variables.
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138 ac_site_file1=$CONFIG_SITE
2139 elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142 else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
2145 fi
2146 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147 do
2148 test "x$ac_site_file" = xNONE && continue
2149 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2152 sed 's/^/| /' "$ac_site_file" >&5
2153 . "$ac_site_file"
2154 fi
2155 done
2156
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special files
2159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 case $cache_file in
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2166 esac
2167 fi
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 >$cache_file
2172 fi
2173
2174 # Check that the precious variables saved in the cache have kept the same
2175 # value.
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
2182 case $ac_old_set,$ac_new_set in
2183 set,)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,set)
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190 ac_cache_corrupted=: ;;
2191 ,);;
2192 *)
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2210 fi;;
2211 esac
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2214 case $ac_new_val in
2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2217 esac
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221 esac
2222 fi
2223 done
2224 if $ac_cache_corrupted; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 fi
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242 am__api_version='1.11'
2243
2244 ac_aux_dir=
2245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2246 for ac_t in install-sh install.sh shtool; do
2247 if test -f "$ac_dir/$ac_t"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/$ac_t -c"
2250 break 2
2251 fi
2252 done
2253 done
2254 if test -z "$ac_aux_dir"; then
2255 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256 fi
2257
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if test "${ac_cv_path_install+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Just in case
2363 sleep 1
2364 echo timestamp > conftest.file
2365 # Reject unsafe characters in $srcdir or the absolute working directory
2366 # name. Accept space and tab only in the latter.
2367 am_lf='
2368 '
2369 case `pwd` in
2370 *[\\\"\#\$\&\'\`$am_lf]*)
2371 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2372 esac
2373 case $srcdir in
2374 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2375 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2376 esac
2377
2378 # Do `set' in a subshell so we don't clobber the current shell's
2379 # arguments. Must try -L first in case configure is actually a
2380 # symlink; some systems play weird games with the mod time of symlinks
2381 # (eg FreeBSD returns the mod time of the symlink's containing
2382 # directory).
2383 if (
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 rm -f conftest.file
2390 if test "$*" != "X $srcdir/configure conftest.file" \
2391 && test "$*" != "X conftest.file $srcdir/configure"; then
2392
2393 # If neither matched, then we have a broken ls. This can happen
2394 # if, for instance, CONFIG_SHELL is bash and it inherits a
2395 # broken ls alias from the environment. This has actually
2396 # happened. Such a system could not be considered "sane".
2397 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2398 alias in your environment" "$LINENO" 5
2399 fi
2400
2401 test "$2" = conftest.file
2402 )
2403 then
2404 # Ok.
2405 :
2406 else
2407 as_fn_error "newly created file is older than distributed files!
2408 Check your system clock" "$LINENO" 5
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2411 $as_echo "yes" >&6; }
2412 test "$program_prefix" != NONE &&
2413 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2414 # Use a double $ so make ignores it.
2415 test "$program_suffix" != NONE &&
2416 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2417 # Double any \ or $.
2418 # By default was `s,x,x', remove it if useless.
2419 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2420 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2421
2422 # expand $ac_aux_dir to an absolute path
2423 am_aux_dir=`cd $ac_aux_dir && pwd`
2424
2425 if test x"${MISSING+set}" != xset; then
2426 case $am_aux_dir in
2427 *\ * | *\ *)
2428 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2429 *)
2430 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2431 esac
2432 fi
2433 # Use eval to expand $SHELL
2434 if eval "$MISSING --run true"; then
2435 am_missing_run="$MISSING --run "
2436 else
2437 am_missing_run=
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2439 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2440 fi
2441
2442 if test x"${install_sh}" != xset; then
2443 case $am_aux_dir in
2444 *\ * | *\ *)
2445 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2446 *)
2447 install_sh="\${SHELL} $am_aux_dir/install-sh"
2448 esac
2449 fi
2450
2451 # Installed binaries are usually stripped using `strip' when the user
2452 # run `make install-strip'. However `strip' might not be the right
2453 # tool to use in cross-compilation environments, therefore Automake
2454 # will honor the `STRIP' environment variable to overrule this program.
2455 if test "$cross_compiling" != no; then
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}strip; ac_word=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if test "${ac_cv_prog_STRIP+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test -n "$STRIP"; then
2465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2477 fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 STRIP=$ac_cv_prog_STRIP
2485 if test -n "$STRIP"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2487 $as_echo "$STRIP" >&6; }
2488 else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490 $as_echo "no" >&6; }
2491 fi
2492
2493
2494 fi
2495 if test -z "$ac_cv_prog_STRIP"; then
2496 ac_ct_STRIP=$STRIP
2497 # Extract the first word of "strip", so it can be a program name with args.
2498 set dummy strip; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$ac_ct_STRIP"; then
2505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_STRIP="strip"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2525 if test -n "$ac_ct_STRIP"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2527 $as_echo "$ac_ct_STRIP" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533 if test "x$ac_ct_STRIP" = x; then
2534 STRIP=":"
2535 else
2536 case $cross_compiling:$ac_tool_warned in
2537 yes:)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540 ac_tool_warned=yes ;;
2541 esac
2542 STRIP=$ac_ct_STRIP
2543 fi
2544 else
2545 STRIP="$ac_cv_prog_STRIP"
2546 fi
2547
2548 fi
2549 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2550
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2552 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2553 if test -z "$MKDIR_P"; then
2554 if test "${ac_cv_path_mkdir+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_prog in mkdir gmkdir; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2565 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2566 'mkdir (GNU coreutils) '* | \
2567 'mkdir (coreutils) '* | \
2568 'mkdir (fileutils) '4.1*)
2569 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2570 break 3;;
2571 esac
2572 done
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578
2579 test -d ./--version && rmdir ./--version
2580 if test "${ac_cv_path_mkdir+set}" = set; then
2581 MKDIR_P="$ac_cv_path_mkdir -p"
2582 else
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for MKDIR_P within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the value is a relative name.
2587 MKDIR_P="$ac_install_sh -d"
2588 fi
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2591 $as_echo "$MKDIR_P" >&6; }
2592
2593 mkdir_p="$MKDIR_P"
2594 case $mkdir_p in
2595 [\\/$]* | ?:[\\/]*) ;;
2596 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2597 esac
2598
2599 for ac_prog in gawk mawk nawk awk
2600 do
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_AWK+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test -n "$AWK"; then
2609 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_AWK="$ac_prog"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 AWK=$ac_cv_prog_AWK
2629 if test -n "$AWK"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2631 $as_echo "$AWK" >&6; }
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638 test -n "$AWK" && break
2639 done
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2642 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2643 set x ${MAKE-make}
2644 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2645 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 cat >conftest.make <<\_ACEOF
2649 SHELL = /bin/sh
2650 all:
2651 @echo '@@@%%%=$(MAKE)=@@@%%%'
2652 _ACEOF
2653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2654 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2655 *@@@%%%=?*=@@@%%%*)
2656 eval ac_cv_prog_make_${ac_make}_set=yes;;
2657 *)
2658 eval ac_cv_prog_make_${ac_make}_set=no;;
2659 esac
2660 rm -f conftest.make
2661 fi
2662 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2664 $as_echo "yes" >&6; }
2665 SET_MAKE=
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 SET_MAKE="MAKE=${MAKE-make}"
2670 fi
2671
2672 rm -rf .tst 2>/dev/null
2673 mkdir .tst 2>/dev/null
2674 if test -d .tst; then
2675 am__leading_dot=.
2676 else
2677 am__leading_dot=_
2678 fi
2679 rmdir .tst 2>/dev/null
2680
2681 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2682 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2683 # is not polluted with repeated "-I."
2684 am__isrc=' -I$(srcdir)'
2685 # test to see if srcdir already configured
2686 if test -f $srcdir/config.status; then
2687 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2688 fi
2689 fi
2690
2691 # test whether we have cygpath
2692 if test -z "$CYGPATH_W"; then
2693 if (cygpath --version) >/dev/null 2>/dev/null; then
2694 CYGPATH_W='cygpath -w'
2695 else
2696 CYGPATH_W=echo
2697 fi
2698 fi
2699
2700
2701 # Define the identity of the package.
2702 PACKAGE='libpng'
2703 VERSION='1.4.4'
2704
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE "$PACKAGE"
2708 _ACEOF
2709
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define VERSION "$VERSION"
2713 _ACEOF
2714
2715 # Some tools Automake needs.
2716
2717 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2718
2719
2720 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2721
2722
2723 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2724
2725
2726 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2727
2728
2729 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2730
2731 # We need awk for the "check" target. The system "awk" is bad on
2732 # some platforms.
2733 # Always define AMTAR for backward compatibility.
2734
2735 AMTAR=${AMTAR-"${am_missing_run}tar"}
2736
2737 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2738
2739
2740
2741
2742
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2745 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2746 # Check whether --enable-maintainer-mode was given.
2747 if test "${enable_maintainer_mode+set}" = set; then :
2748 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2749 else
2750 USE_MAINTAINER_MODE=no
2751 fi
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2754 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2755 if test $USE_MAINTAINER_MODE = yes; then
2756 MAINTAINER_MODE_TRUE=
2757 MAINTAINER_MODE_FALSE='#'
2758 else
2759 MAINTAINER_MODE_TRUE='#'
2760 MAINTAINER_MODE_FALSE=
2761 fi
2762
2763 MAINT=$MAINTAINER_MODE_TRUE
2764
2765
2766
2767 PNGLIB_VERSION=1.4.4
2768 PNGLIB_MAJOR=1
2769 PNGLIB_MINOR=4
2770 PNGLIB_RELEASE=4
2771
2772
2773
2774 ac_config_headers="$ac_config_headers config.h"
2775
2776
2777 # Checks for programs.
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_CC"; then
2823 ac_ct_CC=$CC
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860 if test "x$ac_ct_CC" = x; then
2861 CC=""
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869 CC=$ac_ct_CC
2870 fi
2871 else
2872 CC="$ac_cv_prog_CC"
2873 fi
2874
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914 fi
2915 fi
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 ac_prog_rejected=no
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2937 continue
2938 fi
2939 ac_cv_prog_CC="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 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2950 shift
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2955 shift
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957 fi
2958 fi
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2975 do
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 test -n "$CC" && break
3014 done
3015 fi
3016 if test -z "$CC"; then
3017 ac_ct_CC=$CC
3018 for ac_prog in cl.exe
3019 do
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 test -n "$ac_ct_CC" && break
3058 done
3059
3060 if test "x$ac_ct_CC" = x; then
3061 CC=""
3062 else
3063 case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069 CC=$ac_ct_CC
3070 fi
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error "no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." "$LINENO" 5; }
3080
3081 # Provide some information about the compiler.
3082 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 set X $ac_compile
3084 ac_compiler=$2
3085 for ac_option in --version -v -V -qversion; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 ac_status=$?
3095 if test -s conftest.err; then
3096 sed '10a\
3097 ... rest of stderr output deleted ...
3098 10q' conftest.err >conftest.er1
3099 cat conftest.er1 >&5
3100 fi
3101 rm -f conftest.er1 conftest.err
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3104 done
3105
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3121 # of exeext.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123 $as_echo_n "checking whether the C compiler works... " >&6; }
3124 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129 ac_rmfiles=
3130 for ac_file in $ac_files
3131 do
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 esac
3136 done
3137 rm -f $ac_rmfiles
3138
3139 if { { ac_try="$ac_link_default"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link_default") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3153 # so that the user can short-circuit this test for compilers unknown to
3154 # Autoconf.
3155 for ac_file in $ac_files ''
3156 do
3157 test -f "$ac_file" || continue
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 ;;
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 then :; else
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 fi
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3174 # actually working.
3175 break;;
3176 * )
3177 break;;
3178 esac
3179 done
3180 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182 else
3183 ac_file=''
3184 fi
3185 if test -z "$ac_file"; then :
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 { as_fn_set_status 77
3194 as_fn_error "C compiler cannot create executables
3195 See \`config.log' for more details." "$LINENO" 5; }; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198 $as_echo "yes" >&6; }
3199 fi
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3201 $as_echo_n "checking for C compiler default output file name... " >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3203 $as_echo "$ac_file" >&6; }
3204 ac_exeext=$ac_cv_exeext
3205
3206 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3207 ac_clean_files=$ac_clean_files_save
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3209 $as_echo_n "checking for suffix of executables... " >&6; }
3210 if { { ac_try="$ac_link"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3223 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 # `rm'.
3225 for ac_file in conftest.exe conftest conftest.*; do
3226 test -f "$ac_file" || continue
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 break;;
3231 * ) break;;
3232 esac
3233 done
3234 else
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error "cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." "$LINENO" 5; }
3239 fi
3240 rm -f conftest conftest$ac_cv_exeext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3242 $as_echo "$ac_cv_exeext" >&6; }
3243
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3246 ac_exeext=$EXEEXT
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249 #include <stdio.h>
3250 int
3251 main ()
3252 {
3253 FILE *f = fopen ("conftest.out", "w");
3254 return ferror (f) || fclose (f) != 0;
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 ac_clean_files="$ac_clean_files conftest.out"
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3264 $as_echo_n "checking whether we are cross compiling... " >&6; }
3265 if test "$cross_compiling" != yes; then
3266 { { ac_try="$ac_link"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 if { ac_try='./conftest$ac_cv_exeext'
3278 { { case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_try") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; }; then
3288 cross_compiling=no
3289 else
3290 if test "$cross_compiling" = maybe; then
3291 cross_compiling=yes
3292 else
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error "cannot run C compiled programs.
3296 If you meant to cross compile, use \`--host'.
3297 See \`config.log' for more details." "$LINENO" 5; }
3298 fi
3299 fi
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3302 $as_echo "$cross_compiling" >&6; }
3303
3304 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3307 $as_echo_n "checking for suffix of object files... " >&6; }
3308 if test "${ac_cv_objext+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.o conftest.obj
3323 if { { ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compile") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 for ac_file in conftest.o conftest.obj conftest.*; do
3335 test -f "$ac_file" || continue;
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3339 break;;
3340 esac
3341 done
3342 else
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error "cannot compute suffix of object files: cannot compile
3349 See \`config.log' for more details." "$LINENO" 5; }
3350 fi
3351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3352 fi
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3354 $as_echo "$ac_cv_objext" >&6; }
3355 OBJEXT=$ac_cv_objext
3356 ac_objext=$OBJEXT
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3358 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3359 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368 #ifndef __GNUC__
3369 choke me
3370 #endif
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_compiler_gnu=yes
3378 else
3379 ac_compiler_gnu=no
3380 fi
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3386 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3387 if test $ac_compiler_gnu = yes; then
3388 GCC=yes
3389 else
3390 GCC=
3391 fi
3392 ac_test_CFLAGS=${CFLAGS+set}
3393 ac_save_CFLAGS=$CFLAGS
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3395 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3396 if test "${ac_cv_prog_cc_g+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3401 ac_cv_prog_cc_g=no
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_g=yes
3416 else
3417 CFLAGS=""
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420
3421 int
3422 main ()
3423 {
3424
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430
3431 else
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3433 CFLAGS="-g"
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_prog_cc_g=yes
3447 fi
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3456 $as_echo "$ac_cv_prog_cc_g" >&6; }
3457 if test "$ac_test_CFLAGS" = set; then
3458 CFLAGS=$ac_save_CFLAGS
3459 elif test $ac_cv_prog_cc_g = yes; then
3460 if test "$GCC" = yes; then
3461 CFLAGS="-g -O2"
3462 else
3463 CFLAGS="-g"
3464 fi
3465 else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3470 fi
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3473 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3474 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_cv_prog_cc_c89=no
3478 ac_save_CC=$CC
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <stdarg.h>
3482 #include <stdio.h>
3483 #include <sys/types.h>
3484 #include <sys/stat.h>
3485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3486 struct buf { int x; };
3487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3488 static char *e (p, i)
3489 char **p;
3490 int i;
3491 {
3492 return p[i];
3493 }
3494 static char *f (char * (*g) (char **, int), char **p, ...)
3495 {
3496 char *s;
3497 va_list v;
3498 va_start (v,p);
3499 s = g (p, va_arg (v,int));
3500 va_end (v);
3501 return s;
3502 }
3503
3504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3505 function prototypes and stuff, but not '\xHH' hex character constants.
3506 These don't provoke an error unfortunately, instead are silently treated
3507 as 'x'. The following induces an error, until -std is added to get
3508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3509 array size at least. It's necessary to write '\x00'==0 to get something
3510 that's true only with -std. */
3511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512
3513 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3514 inside strings and character constants. */
3515 #define FOO(x) 'x'
3516 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517
3518 int test (int i, double x);
3519 struct s1 {int (*f) (int a);};
3520 struct s2 {int (*f) (double a);};
3521 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3522 int argc;
3523 char **argv;
3524 int
3525 main ()
3526 {
3527 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3533 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534 do
3535 CC="$ac_save_CC $ac_arg"
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_cv_prog_cc_c89=$ac_arg
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext
3540 test "x$ac_cv_prog_cc_c89" != "xno" && break
3541 done
3542 rm -f conftest.$ac_ext
3543 CC=$ac_save_CC
3544
3545 fi
3546 # AC_CACHE_VAL
3547 case "x$ac_cv_prog_cc_c89" in
3548 x)
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3550 $as_echo "none needed" >&6; } ;;
3551 xno)
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3553 $as_echo "unsupported" >&6; } ;;
3554 *)
3555 CC="$CC $ac_cv_prog_cc_c89"
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3557 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558 esac
3559 if test "x$ac_cv_prog_cc_c89" != xno; then :
3560
3561 fi
3562
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 DEPDIR="${am__leading_dot}deps"
3569
3570 ac_config_commands="$ac_config_commands depfiles"
3571
3572
3573 am_make=${MAKE-make}
3574 cat > confinc << 'END'
3575 am__doit:
3576 @echo this is the am__doit target
3577 .PHONY: am__doit
3578 END
3579 # If we don't find an include directive, just comment out the code.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3581 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3582 am__include="#"
3583 am__quote=
3584 _am_result=none
3585 # First try GNU make style include.
3586 echo "include confinc" > confmf
3587 # Ignore all kinds of additional output from `make'.
3588 case `$am_make -s -f confmf 2> /dev/null` in #(
3589 *the\ am__doit\ target*)
3590 am__include=include
3591 am__quote=
3592 _am_result=GNU
3593 ;;
3594 esac
3595 # Now try BSD make style include.
3596 if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
3598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=.include
3601 am__quote="\""
3602 _am_result=BSD
3603 ;;
3604 esac
3605 fi
3606
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3609 $as_echo "$_am_result" >&6; }
3610 rm -f confinc confmf
3611
3612 # Check whether --enable-dependency-tracking was given.
3613 if test "${enable_dependency_tracking+set}" = set; then :
3614 enableval=$enable_dependency_tracking;
3615 fi
3616
3617 if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
3620 fi
3621 if test "x$enable_dependency_tracking" != xno; then
3622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624 else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627 fi
3628
3629
3630
3631 depcc="$CC" am_compiler_list=
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3634 $as_echo_n "checking dependency style of $depcc... " >&6; }
3635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639 # We make a subdir and do the tests there. Otherwise we can end up
3640 # making bogus files that we don't know about and never remove. For
3641 # instance it was reported that on HP-UX the gcc test will end up
3642 # making a dummy file named `D' -- because `-MD' means `put the output
3643 # in D'.
3644 mkdir conftest.dir
3645 # Copy depcomp to subdir because otherwise we won't find it if we're
3646 # using a relative directory.
3647 cp "$am_depcomp" conftest.dir
3648 cd conftest.dir
3649 # We will build objects and dependencies in a subdirectory because
3650 # it helps to detect inapplicable dependency modes. For instance
3651 # both Tru64's cc and ICC support -MD to output dependencies as a
3652 # side effect of compilation, but ICC will put the dependencies in
3653 # the current directory while Tru64 will put them in the object
3654 # directory.
3655 mkdir sub
3656
3657 am_cv_CC_dependencies_compiler_type=none
3658 if test "$am_compiler_list" = ""; then
3659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660 fi
3661 am__universal=false
3662 case " $depcc " in #(
3663 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3664 esac
3665
3666 for depmode in $am_compiler_list; do
3667 # Setup a source with many dependencies, because some compilers
3668 # like to wrap large dependency lists on column 80 (with \), and
3669 # we should not choose a depcomp mode which is confused by this.
3670 #
3671 # We need to recreate these files for each test, as the compiler may
3672 # overwrite some of them when testing with obscure command lines.
3673 # This happens at least with the AIX C compiler.
3674 : > sub/conftest.c
3675 for i in 1 2 3 4 5 6; do
3676 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3678 # Solaris 8's {/usr,}/bin/sh.
3679 touch sub/conftst$i.h
3680 done
3681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3682
3683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3684 # mode. It turns out that the SunPro C++ compiler does not properly
3685 # handle `-M -o', and we need to detect this. Also, some Intel
3686 # versions had trouble with output in subdirs
3687 am__obj=sub/conftest.${OBJEXT-o}
3688 am__minus_obj="-o $am__obj"
3689 case $depmode in
3690 gcc)
3691 # This depmode causes a compiler race in universal mode.
3692 test "$am__universal" = false || continue
3693 ;;
3694 nosideeffect)
3695 # after this tag, mechanisms are not by side-effect, so they'll
3696 # only be used when explicitly requested
3697 if test "x$enable_dependency_tracking" = xyes; then
3698 continue
3699 else
3700 break
3701 fi
3702 ;;
3703 msvisualcpp | msvcmsys)
3704 # This compiler won't grok `-c -o', but also, the minuso test has
3705 # not run yet. These depmodes are late enough in the game, and
3706 # so weak that their functioning should not be impacted.
3707 am__obj=conftest.${OBJEXT-o}
3708 am__minus_obj=
3709 ;;
3710 none) break ;;
3711 esac
3712 if depmode=$depmode \
3713 source=sub/conftest.c object=$am__obj \
3714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3716 >/dev/null 2>conftest.err &&
3717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3721 # icc doesn't choke on unknown options, it will just issue warnings
3722 # or remarks (even with -Werror). So we grep stderr for any message
3723 # that says an option was ignored or not supported.
3724 # When given -MP, icc 7.0 and 7.1 complain thusly:
3725 # icc: Command line warning: ignoring option '-M'; no argument required
3726 # The diagnosis changed in icc 8.0:
3727 # icc: Command line remark: option '-MP' not supported
3728 if (grep 'ignoring option' conftest.err ||
3729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3730 am_cv_CC_dependencies_compiler_type=$depmode
3731 break
3732 fi
3733 fi
3734 done
3735
3736 cd ..
3737 rm -rf conftest.dir
3738 else
3739 am_cv_CC_dependencies_compiler_type=none
3740 fi
3741
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3744 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3745 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3746
3747 if
3748 test "x$enable_dependency_tracking" != xno \
3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750 am__fastdepCC_TRUE=
3751 am__fastdepCC_FALSE='#'
3752 else
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3755 fi
3756
3757
3758 # Make sure we can run config.sub.
3759 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3760 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3763 $as_echo_n "checking build system type... " >&6; }
3764 if test "${ac_cv_build+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_build_alias=$build_alias
3768 test "x$ac_build_alias" = x &&
3769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3770 test "x$ac_build_alias" = x &&
3771 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3772 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3773 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3774
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3777 $as_echo "$ac_cv_build" >&6; }
3778 case $ac_cv_build in
3779 *-*-*) ;;
3780 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3781 esac
3782 build=$ac_cv_build
3783 ac_save_IFS=$IFS; IFS='-'
3784 set x $ac_cv_build
3785 shift
3786 build_cpu=$1
3787 build_vendor=$2
3788 shift; shift
3789 # Remember, the first character of IFS is used to create $*,
3790 # except with old shells:
3791 build_os=$*
3792 IFS=$ac_save_IFS
3793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3794
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3797 $as_echo_n "checking host system type... " >&6; }
3798 if test "${ac_cv_host+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test "x$host_alias" = x; then
3802 ac_cv_host=$ac_cv_build
3803 else
3804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3805 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3806 fi
3807
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3810 $as_echo "$ac_cv_host" >&6; }
3811 case $ac_cv_host in
3812 *-*-*) ;;
3813 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3814 esac
3815 host=$ac_cv_host
3816 ac_save_IFS=$IFS; IFS='-'
3817 set x $ac_cv_host
3818 shift
3819 host_cpu=$1
3820 host_vendor=$2
3821 shift; shift
3822 # Remember, the first character of IFS is used to create $*,
3823 # except with old shells:
3824 host_os=$*
3825 IFS=$ac_save_IFS
3826 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3827
3828
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3830 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3831 if test "${ac_cv_path_SED+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3835 for ac_i in 1 2 3 4 5 6 7; do
3836 ac_script="$ac_script$as_nl$ac_script"
3837 done
3838 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3839 { ac_script=; unset ac_script;}
3840 if test -z "$SED"; then
3841 ac_path_SED_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in sed gsed; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3852 # Check for GNU ac_path_SED and select it if it is found.
3853 # Check for GNU $ac_path_SED
3854 case `"$ac_path_SED" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3857 *)
3858 ac_count=0
3859 $as_echo_n 0123456789 >"conftest.in"
3860 while :
3861 do
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo '' >> "conftest.nl"
3866 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
3869 if test $ac_count -gt ${ac_path_SED_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_SED="$ac_path_SED"
3872 ac_path_SED_max=$ac_count
3873 fi
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3879
3880 $ac_path_SED_found && break 3
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 if test -z "$ac_cv_path_SED"; then
3886 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3887 fi
3888 else
3889 ac_cv_path_SED=$SED
3890 fi
3891
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3894 $as_echo "$ac_cv_path_SED" >&6; }
3895 SED="$ac_cv_path_SED"
3896 rm -f conftest.sed
3897
3898 test -z "$SED" && SED=sed
3899 Xsed="$SED -e 1s/^X//"
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3913 if test "${ac_cv_path_GREP+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -z "$GREP"; then
3917 ac_path_GREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_prog in grep ggrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
3929 # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3931 *GNU*)
3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933 *)
3934 ac_count=0
3935 $as_echo_n 0123456789 >"conftest.in"
3936 while :
3937 do
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 $as_echo 'GREP' >> "conftest.nl"
3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944 as_fn_arith $ac_count + 1 && ac_count=$as_val
3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP="$ac_path_GREP"
3948 ac_path_GREP_max=$ac_count
3949 fi
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3952 done
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 esac
3955
3956 $ac_path_GREP_found && break 3
3957 done
3958 done
3959 done
3960 IFS=$as_save_IFS
3961 if test -z "$ac_cv_path_GREP"; then
3962 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3963 fi
3964 else
3965 ac_cv_path_GREP=$GREP
3966 fi
3967
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3970 $as_echo "$ac_cv_path_GREP" >&6; }
3971 GREP="$ac_cv_path_GREP"
3972
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3975 $as_echo_n "checking for egrep... " >&6; }
3976 if test "${ac_cv_path_EGREP+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3980 then ac_cv_path_EGREP="$GREP -E"
3981 else
3982 if test -z "$EGREP"; then
3983 ac_path_EGREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in egrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3994 # Check for GNU ac_path_EGREP and select it if it is found.
3995 # Check for GNU $ac_path_EGREP
3996 case `"$ac_path_EGREP" --version 2>&1` in
3997 *GNU*)
3998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999 *)
4000 ac_count=0
4001 $as_echo_n 0123456789 >"conftest.in"
4002 while :
4003 do
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'EGREP' >> "conftest.nl"
4008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 as_fn_arith $ac_count + 1 && ac_count=$as_val
4011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_EGREP="$ac_path_EGREP"
4014 ac_path_EGREP_max=$ac_count
4015 fi
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022 $ac_path_EGREP_found && break 3
4023 done
4024 done
4025 done
4026 IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_EGREP"; then
4028 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4029 fi
4030 else
4031 ac_cv_path_EGREP=$EGREP
4032 fi
4033
4034 fi
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4037 $as_echo "$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4039
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4042 $as_echo_n "checking for fgrep... " >&6; }
4043 if test "${ac_cv_path_FGREP+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4047 then ac_cv_path_FGREP="$GREP -F"
4048 else
4049 if test -z "$FGREP"; then
4050 ac_path_FGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in fgrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4061 # Check for GNU ac_path_FGREP and select it if it is found.
4062 # Check for GNU $ac_path_FGREP
4063 case `"$ac_path_FGREP" --version 2>&1` in
4064 *GNU*)
4065 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4066 *)
4067 ac_count=0
4068 $as_echo_n 0123456789 >"conftest.in"
4069 while :
4070 do
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 $as_echo 'FGREP' >> "conftest.nl"
4075 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 as_fn_arith $ac_count + 1 && ac_count=$as_val
4078 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_FGREP="$ac_path_FGREP"
4081 ac_path_FGREP_max=$ac_count
4082 fi
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4085 done
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089 $ac_path_FGREP_found && break 3
4090 done
4091 done
4092 done
4093 IFS=$as_save_IFS
4094 if test -z "$ac_cv_path_FGREP"; then
4095 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096 fi
4097 else
4098 ac_cv_path_FGREP=$FGREP
4099 fi
4100
4101 fi
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4104 $as_echo "$ac_cv_path_FGREP" >&6; }
4105 FGREP="$ac_cv_path_FGREP"
4106
4107
4108 test -z "$GREP" && GREP=grep
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4127 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4131 $as_echo_n "checking how to print strings... " >&6; }
4132 # Test print first, because it will be a builtin if present.
4133 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4134 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4135 ECHO='print -r --'
4136 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4137 ECHO='printf %s\n'
4138 else
4139 # Use this function as a fallback that always works.
4140 func_fallback_echo ()
4141 {
4142 eval 'cat <<_LTECHO_EOF
4143 $1
4144 _LTECHO_EOF'
4145 }
4146 ECHO='func_fallback_echo'
4147 fi
4148
4149 # func_echo_all arg...
4150 # Invoke $ECHO with all args, space-separated.
4151 func_echo_all ()
4152 {
4153 $ECHO ""
4154 }
4155
4156 case "$ECHO" in
4157 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4158 $as_echo "printf" >&6; } ;;
4159 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4160 $as_echo "print -r" >&6; } ;;
4161 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4162 $as_echo "cat" >&6; } ;;
4163 esac
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180 # Check whether --with-gnu-ld was given.
4181 if test "${with_gnu_ld+set}" = set; then :
4182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4183 else
4184 with_gnu_ld=no
4185 fi
4186
4187 ac_prog=ld
4188 if test "$GCC" = yes; then
4189 # Check if gcc -print-prog-name=ld gives a path.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4191 $as_echo_n "checking for ld used by $CC... " >&6; }
4192 case $host in
4193 *-*-mingw*)
4194 # gcc leaves a trailing carriage return which upsets mingw
4195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4196 *)
4197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4198 esac
4199 case $ac_prog in
4200 # Accept absolute paths.
4201 [\\/]* | ?:[\\/]*)
4202 re_direlt='/[^/][^/]*/\.\./'
4203 # Canonicalize the pathname of ld
4204 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4205 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4206 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4207 done
4208 test -z "$LD" && LD="$ac_prog"
4209 ;;
4210 "")
4211 # If it fails, then pretend we aren't using GCC.
4212 ac_prog=ld
4213 ;;
4214 *)
4215 # If it is relative, then search for the first ld in PATH.
4216 with_gnu_ld=unknown
4217 ;;
4218 esac
4219 elif test "$with_gnu_ld" = yes; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4221 $as_echo_n "checking for GNU ld... " >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4224 $as_echo_n "checking for non-GNU ld... " >&6; }
4225 fi
4226 if test "${lt_cv_path_LD+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -z "$LD"; then
4230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4231 for ac_dir in $PATH; do
4232 IFS="$lt_save_ifs"
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4235 lt_cv_path_LD="$ac_dir/$ac_prog"
4236 # Check to see if the program is GNU ld. I'd rather use --version,
4237 # but apparently some variants of GNU ld only accept -v.
4238 # Break only if it was the GNU/non-GNU ld that we prefer.
4239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4240 *GNU* | *'with BFD'*)
4241 test "$with_gnu_ld" != no && break
4242 ;;
4243 *)
4244 test "$with_gnu_ld" != yes && break
4245 ;;
4246 esac
4247 fi
4248 done
4249 IFS="$lt_save_ifs"
4250 else
4251 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4252 fi
4253 fi
4254
4255 LD="$lt_cv_path_LD"
4256 if test -n "$LD"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4258 $as_echo "$LD" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4266 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4270 case `$LD -v 2>&1 </dev/null` in
4271 *GNU* | *'with BFD'*)
4272 lt_cv_prog_gnu_ld=yes
4273 ;;
4274 *)
4275 lt_cv_prog_gnu_ld=no
4276 ;;
4277 esac
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4280 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4281 with_gnu_ld=$lt_cv_prog_gnu_ld
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4298 # On Suns, sometimes $CPP names a directory.
4299 if test -n "$CPP" && test -d "$CPP"; then
4300 CPP=
4301 fi
4302 if test -z "$CPP"; then
4303 if test "${ac_cv_prog_CPP+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 # Double quotes because CPP needs to be expanded
4307 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4308 do
4309 ac_preproc_ok=false
4310 for ac_c_preproc_warn_flag in '' yes
4311 do
4312 # Use a header file that comes with gcc, so configuring glibc
4313 # with a fresh cross-compiler works.
4314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315 # <limits.h> exists even on freestanding compilers.
4316 # On the NeXT, cc -E runs the code through the compiler's parser,
4317 # not just through cpp. "Syntax error" is here to catch this case.
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #ifdef __STDC__
4321 # include <limits.h>
4322 #else
4323 # include <assert.h>
4324 #endif
4325 Syntax error
4326 _ACEOF
4327 if ac_fn_c_try_cpp "$LINENO"; then :
4328
4329 else
4330 # Broken: fails on valid input.
4331 continue
4332 fi
4333 rm -f conftest.err conftest.$ac_ext
4334
4335 # OK, works on sane cases. Now check whether nonexistent headers
4336 # can be detected and how.
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #include <ac_nonexistent.h>
4340 _ACEOF
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4342 # Broken: success on invalid input.
4343 continue
4344 else
4345 # Passes both tests.
4346 ac_preproc_ok=:
4347 break
4348 fi
4349 rm -f conftest.err conftest.$ac_ext
4350
4351 done
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then :
4355 break
4356 fi
4357
4358 done
4359 ac_cv_prog_CPP=$CPP
4360
4361 fi
4362 CPP=$ac_cv_prog_CPP
4363 else
4364 ac_cv_prog_CPP=$CPP
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4367 $as_echo "$CPP" >&6; }
4368 ac_preproc_ok=false
4369 for ac_c_preproc_warn_flag in '' yes
4370 do
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 #ifdef __STDC__
4380 # include <limits.h>
4381 #else
4382 # include <assert.h>
4383 #endif
4384 Syntax error
4385 _ACEOF
4386 if ac_fn_c_try_cpp "$LINENO"; then :
4387
4388 else
4389 # Broken: fails on valid input.
4390 continue
4391 fi
4392 rm -f conftest.err conftest.$ac_ext
4393
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4399 _ACEOF
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4402 continue
4403 else
4404 # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4407 fi
4408 rm -f conftest.err conftest.$ac_ext
4409
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then :
4414
4415 else
4416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4418 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4419 See \`config.log' for more details." "$LINENO" 5; }
4420 fi
4421
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428 if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4430 set dummy ${ac_tool_prefix}sed; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if test "${ac_cv_prog_SED+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$SED"; then
4437 ac_cv_prog_SED="$SED" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_SED="${ac_tool_prefix}sed"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 SED=$ac_cv_prog_SED
4457 if test -n "$SED"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4459 $as_echo "$SED" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466 fi
4467 if test -z "$ac_cv_prog_SED"; then
4468 ac_ct_SED=$SED
4469 # Extract the first word of "sed", so it can be a program name with args.
4470 set dummy sed; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if test "${ac_cv_prog_ac_ct_SED+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$ac_ct_SED"; then
4477 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_ac_ct_SED="sed"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 ac_ct_SED=$ac_cv_prog_ac_ct_SED
4497 if test -n "$ac_ct_SED"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4499 $as_echo "$ac_ct_SED" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504
4505 if test "x$ac_ct_SED" = x; then
4506 SED=":"
4507 else
4508 case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514 SED=$ac_ct_SED
4515 fi
4516 else
4517 SED="$ac_cv_prog_SED"
4518 fi
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4522 $as_echo_n "checking whether ln -s works... " >&6; }
4523 LN_S=$as_ln_s
4524 if test "$LN_S" = "ln -s"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526 $as_echo "yes" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4529 $as_echo "no, using $LN_S" >&6; }
4530 fi
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4533 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4534 set x ${MAKE-make}
4535 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4536 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 cat >conftest.make <<\_ACEOF
4540 SHELL = /bin/sh
4541 all:
4542 @echo '@@@%%%=$(MAKE)=@@@%%%'
4543 _ACEOF
4544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4545 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4546 *@@@%%%=?*=@@@%%%*)
4547 eval ac_cv_prog_make_${ac_make}_set=yes;;
4548 *)
4549 eval ac_cv_prog_make_${ac_make}_set=no;;
4550 esac
4551 rm -f conftest.make
4552 fi
4553 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4555 $as_echo "yes" >&6; }
4556 SET_MAKE=
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 SET_MAKE="MAKE=${MAKE-make}"
4561 fi
4562
4563 case `pwd` in
4564 *\ * | *\ *)
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4566 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4567 esac
4568
4569
4570
4571 macro_version='2.2.10'
4572 macro_revision='1.3175'
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 ltmain="$ac_aux_dir/ltmain.sh"
4587
4588 # Backslashify metacharacters that are still active within
4589 # double-quoted strings.
4590 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4591
4592 # Same as above, but do not quote variable references.
4593 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4594
4595 # Sed substitution to delay expansion of an escaped shell variable in a
4596 # double_quote_subst'ed string.
4597 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4598
4599 # Sed substitution to delay expansion of an escaped single quote.
4600 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4601
4602 # Sed substitution to avoid accidental globbing in evaled expressions
4603 no_glob_subst='s/\*/\\\*/g'
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4606 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4607 if test "${lt_cv_path_NM+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$NM"; then
4611 # Let the user override the test.
4612 lt_cv_path_NM="$NM"
4613 else
4614 lt_nm_to_check="${ac_tool_prefix}nm"
4615 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4616 lt_nm_to_check="$lt_nm_to_check nm"
4617 fi
4618 for lt_tmp_nm in $lt_nm_to_check; do
4619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4620 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4621 IFS="$lt_save_ifs"
4622 test -z "$ac_dir" && ac_dir=.
4623 tmp_nm="$ac_dir/$lt_tmp_nm"
4624 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4625 # Check to see if the nm accepts a BSD-compat flag.
4626 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4627 # nm: unknown option "B" ignored
4628 # Tru64's nm complains that /dev/null is an invalid object file
4629 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4630 */dev/null* | *'Invalid file or object type'*)
4631 lt_cv_path_NM="$tmp_nm -B"
4632 break
4633 ;;
4634 *)
4635 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4636 */dev/null*)
4637 lt_cv_path_NM="$tmp_nm -p"
4638 break
4639 ;;
4640 *)
4641 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4642 continue # so that we can try to find one that supports BSD flags
4643 ;;
4644 esac
4645 ;;
4646 esac
4647 fi
4648 done
4649 IFS="$lt_save_ifs"
4650 done
4651 : ${lt_cv_path_NM=no}
4652 fi
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4655 $as_echo "$lt_cv_path_NM" >&6; }
4656 if test "$lt_cv_path_NM" != "no"; then
4657 NM="$lt_cv_path_NM"
4658 else
4659 # Didn't find any BSD compatible name lister, look for dumpbin.
4660 if test -n "$DUMPBIN"; then :
4661 # Let the user override the test.
4662 else
4663 if test -n "$ac_tool_prefix"; then
4664 for ac_prog in dumpbin "link -dump"
4665 do
4666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$DUMPBIN"; then
4674 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 DUMPBIN=$ac_cv_prog_DUMPBIN
4694 if test -n "$DUMPBIN"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4696 $as_echo "$DUMPBIN" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 $as_echo "no" >&6; }
4700 fi
4701
4702
4703 test -n "$DUMPBIN" && break
4704 done
4705 fi
4706 if test -z "$DUMPBIN"; then
4707 ac_ct_DUMPBIN=$DUMPBIN
4708 for ac_prog in dumpbin "link -dump"
4709 do
4710 # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$ac_ct_DUMPBIN"; then
4718 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4738 if test -n "$ac_ct_DUMPBIN"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4740 $as_echo "$ac_ct_DUMPBIN" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 test -n "$ac_ct_DUMPBIN" && break
4748 done
4749
4750 if test "x$ac_ct_DUMPBIN" = x; then
4751 DUMPBIN=":"
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754 yes:)
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757 ac_tool_warned=yes ;;
4758 esac
4759 DUMPBIN=$ac_ct_DUMPBIN
4760 fi
4761 fi
4762
4763 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4764 *COFF*)
4765 DUMPBIN="$DUMPBIN -symbols"
4766 ;;
4767 *)
4768 DUMPBIN=:
4769 ;;
4770 esac
4771 fi
4772
4773 if test "$DUMPBIN" != ":"; then
4774 NM="$DUMPBIN"
4775 fi
4776 fi
4777 test -z "$NM" && NM=nm
4778
4779
4780
4781
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4785 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4786 if test "${lt_cv_nm_interface+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 lt_cv_nm_interface="BSD nm"
4790 echo "int some_variable = 0;" > conftest.$ac_ext
4791 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4792 (eval "$ac_compile" 2>conftest.err)
4793 cat conftest.err >&5
4794 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4796 cat conftest.err >&5
4797 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4798 cat conftest.out >&5
4799 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4800 lt_cv_nm_interface="MS dumpbin"
4801 fi
4802 rm -f conftest*
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4805 $as_echo "$lt_cv_nm_interface" >&6; }
4806
4807 # find the maximum length of command line arguments
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4809 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4810 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 i=0
4814 teststring="ABCD"
4815
4816 case $build_os in
4817 msdosdjgpp*)
4818 # On DJGPP, this test can blow up pretty badly due to problems in libc
4819 # (any single argument exceeding 2000 bytes causes a buffer overrun
4820 # during glob expansion). Even if it were fixed, the result of this
4821 # check would be larger than it should be.
4822 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4823 ;;
4824
4825 gnu*)
4826 # Under GNU Hurd, this test is not required because there is
4827 # no limit to the length of command line arguments.
4828 # Libtool will interpret -1 as no limit whatsoever
4829 lt_cv_sys_max_cmd_len=-1;
4830 ;;
4831
4832 cygwin* | mingw* | cegcc*)
4833 # On Win9x/ME, this test blows up -- it succeeds, but takes
4834 # about 5 minutes as the teststring grows exponentially.
4835 # Worse, since 9x/ME are not pre-emptively multitasking,
4836 # you end up with a "frozen" computer, even though with patience
4837 # the test eventually succeeds (with a max line length of 256k).
4838 # Instead, let's just punt: use the minimum linelength reported by
4839 # all of the supported platforms: 8192 (on NT/2K/XP).
4840 lt_cv_sys_max_cmd_len=8192;
4841 ;;
4842
4843 mint*)
4844 # On MiNT this can take a long time and run out of memory.
4845 lt_cv_sys_max_cmd_len=8192;
4846 ;;
4847
4848 amigaos*)
4849 # On AmigaOS with pdksh, this test takes hours, literally.
4850 # So we just punt and use a minimum line length of 8192.
4851 lt_cv_sys_max_cmd_len=8192;
4852 ;;
4853
4854 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4855 # This has been around since 386BSD, at least. Likely further.
4856 if test -x /sbin/sysctl; then
4857 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4858 elif test -x /usr/sbin/sysctl; then
4859 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4860 else
4861 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4862 fi
4863 # And add a safety zone
4864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4866 ;;
4867
4868 interix*)
4869 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4870 lt_cv_sys_max_cmd_len=196608
4871 ;;
4872
4873 osf*)
4874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4876 # nice to cause kernel panics so lets avoid the loop below.
4877 # First set a reasonable default.
4878 lt_cv_sys_max_cmd_len=16384
4879 #
4880 if test -x /sbin/sysconfig; then
4881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4882 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4883 esac
4884 fi
4885 ;;
4886 sco3.2v5*)
4887 lt_cv_sys_max_cmd_len=102400
4888 ;;
4889 sysv5* | sco5v6* | sysv4.2uw2*)
4890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4891 if test -n "$kargmax"; then
4892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4893 else
4894 lt_cv_sys_max_cmd_len=32768
4895 fi
4896 ;;
4897 *)
4898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4899 if test -n "$lt_cv_sys_max_cmd_len"; then
4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4902 else
4903 # Make teststring a little bigger before we do anything with it.
4904 # a 1K string should be a reasonable start.
4905 for i in 1 2 3 4 5 6 7 8 ; do
4906 teststring=$teststring$teststring
4907 done
4908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4909 # If test is not a shell built-in, we'll probably end up computing a
4910 # maximum length that is only half of the actual maximum length, but
4911 # we can't tell.
4912 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4913 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4914 test $i != 17 # 1/2 MB should be enough
4915 do
4916 i=`expr $i + 1`
4917 teststring=$teststring$teststring
4918 done
4919 # Only check the string length outside the loop.
4920 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4921 teststring=
4922 # Add a significant safety factor because C++ compilers can tack on
4923 # massive amounts of additional arguments before passing them to the
4924 # linker. It appears as though 1/2 is a usable value.
4925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4926 fi
4927 ;;
4928 esac
4929
4930 fi
4931
4932 if test -n $lt_cv_sys_max_cmd_len ; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4934 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4937 $as_echo "none" >&6; }
4938 fi
4939 max_cmd_len=$lt_cv_sys_max_cmd_len
4940
4941
4942
4943
4944
4945
4946 : ${CP="cp -f"}
4947 : ${MV="mv -f"}
4948 : ${RM="rm -f"}
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4951 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4952 # Try some XSI features
4953 xsi_shell=no
4954 ( _lt_dummy="a/b/c"
4955 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4956 = c,a/b,, \
4957 && eval 'test $(( 1 + 1 )) -eq 2 \
4958 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4959 && xsi_shell=yes
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4961 $as_echo "$xsi_shell" >&6; }
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4965 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4966 lt_shell_append=no
4967 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4968 >/dev/null 2>&1 \
4969 && lt_shell_append=yes
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4971 $as_echo "$lt_shell_append" >&6; }
4972
4973
4974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4975 lt_unset=unset
4976 else
4977 lt_unset=false
4978 fi
4979
4980
4981
4982
4983
4984 # test EBCDIC or ASCII
4985 case `echo X|tr X '\101'` in
4986 A) # ASCII based system
4987 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4988 lt_SP2NL='tr \040 \012'
4989 lt_NL2SP='tr \015\012 \040\040'
4990 ;;
4991 *) # EBCDIC based system
4992 lt_SP2NL='tr \100 \n'
4993 lt_NL2SP='tr \r\n \100\100'
4994 ;;
4995 esac
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5006 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5007 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 lt_cv_ld_reload_flag='-r'
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5013 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5014 reload_flag=$lt_cv_ld_reload_flag
5015 case $reload_flag in
5016 "" | " "*) ;;
5017 *) reload_flag=" $reload_flag" ;;
5018 esac
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020 case $host_os in
5021 darwin*)
5022 if test "$GCC" = yes; then
5023 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5024 else
5025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 fi
5027 ;;
5028 esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 if test -n "$ac_tool_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$OBJDUMP"; then
5047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 OBJDUMP=$ac_cv_prog_OBJDUMP
5067 if test -n "$OBJDUMP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5069 $as_echo "$OBJDUMP" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 fi
5077 if test -z "$ac_cv_prog_OBJDUMP"; then
5078 ac_ct_OBJDUMP=$OBJDUMP
5079 # Extract the first word of "objdump", so it can be a program name with args.
5080 set dummy objdump; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$ac_ct_OBJDUMP"; then
5087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5107 if test -n "$ac_ct_OBJDUMP"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5109 $as_echo "$ac_ct_OBJDUMP" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115 if test "x$ac_ct_OBJDUMP" = x; then
5116 OBJDUMP="false"
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124 OBJDUMP=$ac_ct_OBJDUMP
5125 fi
5126 else
5127 OBJDUMP="$ac_cv_prog_OBJDUMP"
5128 fi
5129
5130 test -z "$OBJDUMP" && OBJDUMP=objdump
5131
5132
5133
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5138 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5139 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 lt_cv_file_magic_cmd='$MAGIC_CMD'
5143 lt_cv_file_magic_test_file=
5144 lt_cv_deplibs_check_method='unknown'
5145 # Need to set the preceding variable on all platforms that support
5146 # interlibrary dependencies.
5147 # 'none' -- dependencies not supported.
5148 # `unknown' -- same as none, but documents that we really don't know.
5149 # 'pass_all' -- all dependencies passed with no checks.
5150 # 'test_compile' -- check by making test program.
5151 # 'file_magic [[regex]]' -- check by looking for files in library path
5152 # which responds to the $file_magic_cmd with a given extended regex.
5153 # If you have `file' or equivalent on your system and you're not sure
5154 # whether `pass_all' will *always* work, you probably want this one.
5155
5156 case $host_os in
5157 aix[4-9]*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
5160
5161 beos*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 bsdi[45]*)
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5167 lt_cv_file_magic_cmd='/usr/bin/file -L'
5168 lt_cv_file_magic_test_file=/shlib/libc.so
5169 ;;
5170
5171 cygwin*)
5172 # func_win32_libid is a shell function defined in ltmain.sh
5173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5174 lt_cv_file_magic_cmd='func_win32_libid'
5175 ;;
5176
5177 mingw* | pw32*)
5178 # Base MSYS/MinGW do not provide the 'file' command needed by
5179 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5180 # unless we find 'file', for example because we are cross-compiling.
5181 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5182 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5184 lt_cv_file_magic_cmd='func_win32_libid'
5185 else
5186 # Keep this pattern in sync with the one in func_win32_libid.
5187 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5188 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 fi
5190 ;;
5191
5192 cegcc*)
5193 # use the weaker test based on 'objdump'. See mingw*.
5194 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5195 lt_cv_file_magic_cmd='$OBJDUMP -f'
5196 ;;
5197
5198 darwin* | rhapsody*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 freebsd* | dragonfly*)
5203 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5204 case $host_cpu in
5205 i*86 )
5206 # Not sure whether the presence of OpenBSD here was a mistake.
5207 # Let's accept both of them until this is cleared up.
5208 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5209 lt_cv_file_magic_cmd=/usr/bin/file
5210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5211 ;;
5212 esac
5213 else
5214 lt_cv_deplibs_check_method=pass_all
5215 fi
5216 ;;
5217
5218 gnu*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222 haiku*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
5226 hpux10.20* | hpux11*)
5227 lt_cv_file_magic_cmd=/usr/bin/file
5228 case $host_cpu in
5229 ia64*)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5231 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5232 ;;
5233 hppa*64*)
5234 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]'
5235 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5236 ;;
5237 *)
5238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5239 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5240 ;;
5241 esac
5242 ;;
5243
5244 interix[3-9]*)
5245 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5247 ;;
5248
5249 irix5* | irix6* | nonstopux*)
5250 case $LD in
5251 *-32|*"-32 ") libmagic=32-bit;;
5252 *-n32|*"-n32 ") libmagic=N32;;
5253 *-64|*"-64 ") libmagic=64-bit;;
5254 *) libmagic=never-match;;
5255 esac
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258
5259 # This must be Linux ELF.
5260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 netbsd*)
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267 else
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5269 fi
5270 ;;
5271
5272 newos6*)
5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5274 lt_cv_file_magic_cmd=/usr/bin/file
5275 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5276 ;;
5277
5278 *nto* | *qnx*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282 openbsd*)
5283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5285 else
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287 fi
5288 ;;
5289
5290 osf3* | osf4* | osf5*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 rdos*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 solaris*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 sysv4 | sysv4.3*)
5307 case $host_vendor in
5308 motorola)
5309 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]'
5310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5311 ;;
5312 ncr)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315 sequent)
5316 lt_cv_file_magic_cmd='/bin/file'
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5318 ;;
5319 sni)
5320 lt_cv_file_magic_cmd='/bin/file'
5321 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5322 lt_cv_file_magic_test_file=/lib/libc.so
5323 ;;
5324 siemens)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327 pc)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330 esac
5331 ;;
5332
5333 tpf*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336 esac
5337
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5340 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5341 file_magic_cmd=$lt_cv_file_magic_cmd
5342 deplibs_check_method=$lt_cv_deplibs_check_method
5343 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}ar; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_AR+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$AR"; then
5365 ac_cv_prog_AR="$AR" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_AR="${ac_tool_prefix}ar"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 AR=$ac_cv_prog_AR
5385 if test -n "$AR"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5387 $as_echo "$AR" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_prog_AR"; then
5396 ac_ct_AR=$AR
5397 # Extract the first word of "ar", so it can be a program name with args.
5398 set dummy ar; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_AR="ar"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425 if test -n "$ac_ct_AR"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5427 $as_echo "$ac_ct_AR" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433 if test "x$ac_ct_AR" = x; then
5434 AR="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 AR=$ac_ct_AR
5443 fi
5444 else
5445 AR="$ac_cv_prog_AR"
5446 fi
5447
5448 test -z "$AR" && AR=ar
5449 test -z "$AR_FLAGS" && AR_FLAGS=cru
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463 set dummy ${ac_tool_prefix}strip; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if test "${ac_cv_prog_STRIP+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 STRIP=$ac_cv_prog_STRIP
5490 if test -n "$STRIP"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5492 $as_echo "$STRIP" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499 fi
5500 if test -z "$ac_cv_prog_STRIP"; then
5501 ac_ct_STRIP=$STRIP
5502 # Extract the first word of "strip", so it can be a program name with args.
5503 set dummy strip; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523 done
5524 done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530 if test -n "$ac_ct_STRIP"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5532 $as_echo "$ac_ct_STRIP" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536 fi
5537
5538 if test "x$ac_ct_STRIP" = x; then
5539 STRIP=":"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 STRIP=$ac_ct_STRIP
5548 fi
5549 else
5550 STRIP="$ac_cv_prog_STRIP"
5551 fi
5552
5553 test -z "$STRIP" && STRIP=:
5554
5555
5556
5557
5558
5559
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582 done
5583 done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 RANLIB=$ac_cv_prog_RANLIB
5589 if test -n "$RANLIB"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5591 $as_echo "$RANLIB" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 fi
5599 if test -z "$ac_cv_prog_RANLIB"; then
5600 ac_ct_RANLIB=$RANLIB
5601 # Extract the first word of "ranlib", so it can be a program name with args.
5602 set dummy ranlib; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_RANLIB="ranlib"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629 if test -n "$ac_ct_RANLIB"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5631 $as_echo "$ac_ct_RANLIB" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637 if test "x$ac_ct_RANLIB" = x; then
5638 RANLIB=":"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 RANLIB=$ac_ct_RANLIB
5647 fi
5648 else
5649 RANLIB="$ac_cv_prog_RANLIB"
5650 fi
5651
5652 test -z "$RANLIB" && RANLIB=:
5653
5654
5655
5656
5657
5658
5659 # Determine commands to create old-style static archives.
5660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661 old_postinstall_cmds='chmod 644 $oldlib'
5662 old_postuninstall_cmds=
5663
5664 if test -n "$RANLIB"; then
5665 case $host_os in
5666 openbsd*)
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5668 ;;
5669 *)
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5671 ;;
5672 esac
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5674 fi
5675
5676 case $host_os in
5677 darwin*)
5678 lock_old_archive_extraction=yes ;;
5679 *)
5680 lock_old_archive_extraction=no ;;
5681 esac
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721 # If no C compiler was specified, use CC.
5722 LTCC=${LTCC-"$CC"}
5723
5724 # If no C compiler flags were specified, use CFLAGS.
5725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5726
5727 # Allow CC to be a program name with arguments.
5728 compiler=$CC
5729
5730
5731 # Check for command to grab the raw symbol name followed by C symbol from nm.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5733 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5734 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737
5738 # These are sane defaults that work on at least a few old systems.
5739 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5740
5741 # Character class describing NM global symbol codes.
5742 symcode='[BCDEGRST]'
5743
5744 # Regexp to match symbols that can be accessed directly from C.
5745 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5746
5747 # Define system-specific variables.
5748 case $host_os in
5749 aix*)
5750 symcode='[BCDT]'
5751 ;;
5752 cygwin* | mingw* | pw32* | cegcc*)
5753 symcode='[ABCDGISTW]'
5754 ;;
5755 hpux*)
5756 if test "$host_cpu" = ia64; then
5757 symcode='[ABCDEGRST]'
5758 fi
5759 ;;
5760 irix* | nonstopux*)
5761 symcode='[BCDEGRST]'
5762 ;;
5763 osf*)
5764 symcode='[BCDEGQRST]'
5765 ;;
5766 solaris*)
5767 symcode='[BDRT]'
5768 ;;
5769 sco3.2v5*)
5770 symcode='[DT]'
5771 ;;
5772 sysv4.2uw2*)
5773 symcode='[DT]'
5774 ;;
5775 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5776 symcode='[ABDT]'
5777 ;;
5778 sysv4)
5779 symcode='[DFNSTU]'
5780 ;;
5781 esac
5782
5783 # If we're using GNU nm, then use its standard symbol codes.
5784 case `$NM -V 2>&1` in
5785 *GNU* | *'with BFD'*)
5786 symcode='[ABCDGIRSTW]' ;;
5787 esac
5788
5789 # Transform an extracted symbol line into a proper C declaration.
5790 # Some systems (esp. on ia64) link data and code symbols differently,
5791 # so use this general approach.
5792 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5793
5794 # Transform an extracted symbol line into symbol name and symbol address
5795 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5796 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'"
5797
5798 # Handle CRLF in mingw tool chain
5799 opt_cr=
5800 case $build_os in
5801 mingw*)
5802 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5803 ;;
5804 esac
5805
5806 # Try without a prefix underscore, then with it.
5807 for ac_symprfx in "" "_"; do
5808
5809 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5810 symxfrm="\\1 $ac_symprfx\\2 \\2"
5811
5812 # Write the raw and C identifiers.
5813 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5814 # Fake it for dumpbin and say T for any non-static function
5815 # and D for any global variable.
5816 # Also find C++ and __fastcall symbols from MSVC++,
5817 # which start with @ or ?.
5818 lt_cv_sys_global_symbol_pipe="$AWK '"\
5819 " {last_section=section; section=\$ 3};"\
5820 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5821 " \$ 0!~/External *\|/{next};"\
5822 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5823 " {if(hide[section]) next};"\
5824 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5825 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5826 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5827 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5828 " ' prfx=^$ac_symprfx"
5829 else
5830 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5831 fi
5832
5833 # Check to see that the pipe works correctly.
5834 pipe_works=no
5835
5836 rm -f conftest*
5837 cat > conftest.$ac_ext <<_LT_EOF
5838 #ifdef __cplusplus
5839 extern "C" {
5840 #endif
5841 char nm_test_var;
5842 void nm_test_func(void);
5843 void nm_test_func(void){}
5844 #ifdef __cplusplus
5845 }
5846 #endif
5847 int main(){nm_test_var='a';nm_test_func();return(0);}
5848 _LT_EOF
5849
5850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5851 (eval $ac_compile) 2>&5
5852 ac_status=$?
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; }; then
5855 # Now try to grab the symbols.
5856 nlist=conftest.nm
5857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5858 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5859 ac_status=$?
5860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5861 test $ac_status = 0; } && test -s "$nlist"; then
5862 # Try sorting and uniquifying the output.
5863 if sort "$nlist" | uniq > "$nlist"T; then
5864 mv -f "$nlist"T "$nlist"
5865 else
5866 rm -f "$nlist"T
5867 fi
5868
5869 # Make sure that we snagged all the symbols we need.
5870 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5871 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5872 cat <<_LT_EOF > conftest.$ac_ext
5873 #ifdef __cplusplus
5874 extern "C" {
5875 #endif
5876
5877 _LT_EOF
5878 # Now generate the symbol file.
5879 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5880
5881 cat <<_LT_EOF >> conftest.$ac_ext
5882
5883 /* The mapping between symbol names and symbols. */
5884 const struct {
5885 const char *name;
5886 void *address;
5887 }
5888 lt__PROGRAM__LTX_preloaded_symbols[] =
5889 {
5890 { "@PROGRAM@", (void *) 0 },
5891 _LT_EOF
5892 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5893 cat <<\_LT_EOF >> conftest.$ac_ext
5894 {0, (void *) 0}
5895 };
5896
5897 /* This works around a problem in FreeBSD linker */
5898 #ifdef FREEBSD_WORKAROUND
5899 static const void *lt_preloaded_setup() {
5900 return lt__PROGRAM__LTX_preloaded_symbols;
5901 }
5902 #endif
5903
5904 #ifdef __cplusplus
5905 }
5906 #endif
5907 _LT_EOF
5908 # Now try linking the two files.
5909 mv conftest.$ac_objext conftstm.$ac_objext
5910 lt_save_LIBS="$LIBS"
5911 lt_save_CFLAGS="$CFLAGS"
5912 LIBS="conftstm.$ac_objext"
5913 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5915 (eval $ac_link) 2>&5
5916 ac_status=$?
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5919 pipe_works=yes
5920 fi
5921 LIBS="$lt_save_LIBS"
5922 CFLAGS="$lt_save_CFLAGS"
5923 else
5924 echo "cannot find nm_test_func in $nlist" >&5
5925 fi
5926 else
5927 echo "cannot find nm_test_var in $nlist" >&5
5928 fi
5929 else
5930 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5931 fi
5932 else
5933 echo "$progname: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5935 fi
5936 rm -rf conftest* conftst*
5937
5938 # Do not use the global_symbol_pipe unless it works.
5939 if test "$pipe_works" = yes; then
5940 break
5941 else
5942 lt_cv_sys_global_symbol_pipe=
5943 fi
5944 done
5945
5946 fi
5947
5948 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5949 lt_cv_sys_global_symbol_to_cdecl=
5950 fi
5951 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5953 $as_echo "failed" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5956 $as_echo "ok" >&6; }
5957 fi
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 # Check whether --enable-libtool-lock was given.
5982 if test "${enable_libtool_lock+set}" = set; then :
5983 enableval=$enable_libtool_lock;
5984 fi
5985
5986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5987
5988 # Some flags need to be propagated to the compiler or linker for good
5989 # libtool support.
5990 case $host in
5991 ia64-*-hpux*)
5992 # Find out which ABI we are using.
5993 echo 'int i;' > conftest.$ac_ext
5994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995 (eval $ac_compile) 2>&5
5996 ac_status=$?
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }; then
5999 case `/usr/bin/file conftest.$ac_objext` in
6000 *ELF-32*)
6001 HPUX_IA64_MODE="32"
6002 ;;
6003 *ELF-64*)
6004 HPUX_IA64_MODE="64"
6005 ;;
6006 esac
6007 fi
6008 rm -rf conftest*
6009 ;;
6010 *-*-irix6*)
6011 # Find out which ABI we are using.
6012 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; then
6018 if test "$lt_cv_prog_gnu_ld" = yes; then
6019 case `/usr/bin/file conftest.$ac_objext` in
6020 *32-bit*)
6021 LD="${LD-ld} -melf32bsmip"
6022 ;;
6023 *N32*)
6024 LD="${LD-ld} -melf32bmipn32"
6025 ;;
6026 *64-bit*)
6027 LD="${LD-ld} -melf64bmip"
6028 ;;
6029 esac
6030 else
6031 case `/usr/bin/file conftest.$ac_objext` in
6032 *32-bit*)
6033 LD="${LD-ld} -32"
6034 ;;
6035 *N32*)
6036 LD="${LD-ld} -n32"
6037 ;;
6038 *64-bit*)
6039 LD="${LD-ld} -64"
6040 ;;
6041 esac
6042 fi
6043 fi
6044 rm -rf conftest*
6045 ;;
6046
6047 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6048 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6049 # Find out which ABI we are using.
6050 echo 'int i;' > conftest.$ac_ext
6051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }; then
6056 case `/usr/bin/file conftest.o` in
6057 *32-bit*)
6058 case $host in
6059 x86_64-*kfreebsd*-gnu)
6060 LD="${LD-ld} -m elf_i386_fbsd"
6061 ;;
6062 x86_64-*linux*)
6063 LD="${LD-ld} -m elf_i386"
6064 ;;
6065 ppc64-*linux*|powerpc64-*linux*)
6066 LD="${LD-ld} -m elf32ppclinux"
6067 ;;
6068 s390x-*linux*)
6069 LD="${LD-ld} -m elf_s390"
6070 ;;
6071 sparc64-*linux*)
6072 LD="${LD-ld} -m elf32_sparc"
6073 ;;
6074 esac
6075 ;;
6076 *64-bit*)
6077 case $host in
6078 x86_64-*kfreebsd*-gnu)
6079 LD="${LD-ld} -m elf_x86_64_fbsd"
6080 ;;
6081 x86_64-*linux*)
6082 LD="${LD-ld} -m elf_x86_64"
6083 ;;
6084 ppc*-*linux*|powerpc*-*linux*)
6085 LD="${LD-ld} -m elf64ppc"
6086 ;;
6087 s390*-*linux*|s390*-*tpf*)
6088 LD="${LD-ld} -m elf64_s390"
6089 ;;
6090 sparc*-*linux*)
6091 LD="${LD-ld} -m elf64_sparc"
6092 ;;
6093 esac
6094 ;;
6095 esac
6096 fi
6097 rm -rf conftest*
6098 ;;
6099
6100 *-*-sco3.2v5*)
6101 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6102 SAVE_CFLAGS="$CFLAGS"
6103 CFLAGS="$CFLAGS -belf"
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6105 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6106 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 ac_ext=c
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117
6118 int
6119 main ()
6120 {
6121
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 if ac_fn_c_try_link "$LINENO"; then :
6127 lt_cv_cc_needs_belf=yes
6128 else
6129 lt_cv_cc_needs_belf=no
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext \
6132 conftest$ac_exeext conftest.$ac_ext
6133 ac_ext=c
6134 ac_cpp='$CPP $CPPFLAGS'
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139 fi
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6141 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6142 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6144 CFLAGS="$SAVE_CFLAGS"
6145 fi
6146 ;;
6147 sparc*-*solaris*)
6148 # Find out which ABI we are using.
6149 echo 'int i;' > conftest.$ac_ext
6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6151 (eval $ac_compile) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }; then
6155 case `/usr/bin/file conftest.o` in
6156 *64-bit*)
6157 case $lt_cv_prog_gnu_ld in
6158 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6159 *)
6160 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6161 LD="${LD-ld} -64"
6162 fi
6163 ;;
6164 esac
6165 ;;
6166 esac
6167 fi
6168 rm -rf conftest*
6169 ;;
6170 esac
6171
6172 need_locks="$enable_libtool_lock"
6173
6174
6175 case $host_os in
6176 rhapsody* | darwin*)
6177 if test -n "$ac_tool_prefix"; then
6178 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6179 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$DSYMUTIL"; then
6186 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6206 if test -n "$DSYMUTIL"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6208 $as_echo "$DSYMUTIL" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214
6215 fi
6216 if test -z "$ac_cv_prog_DSYMUTIL"; then
6217 ac_ct_DSYMUTIL=$DSYMUTIL
6218 # Extract the first word of "dsymutil", so it can be a program name with args.
6219 set dummy dsymutil; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 if test -n "$ac_ct_DSYMUTIL"; then
6226 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6242
6243 fi
6244 fi
6245 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6246 if test -n "$ac_ct_DSYMUTIL"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6248 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6249 else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6252 fi
6253
6254 if test "x$ac_ct_DSYMUTIL" = x; then
6255 DSYMUTIL=":"
6256 else
6257 case $cross_compiling:$ac_tool_warned in
6258 yes:)
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261 ac_tool_warned=yes ;;
6262 esac
6263 DSYMUTIL=$ac_ct_DSYMUTIL
6264 fi
6265 else
6266 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6267 fi
6268
6269 if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 if test -n "$NMEDIT"; then
6278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 NMEDIT=$ac_cv_prog_NMEDIT
6298 if test -n "$NMEDIT"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6300 $as_echo "$NMEDIT" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306
6307 fi
6308 if test -z "$ac_cv_prog_NMEDIT"; then
6309 ac_ct_NMEDIT=$NMEDIT
6310 # Extract the first word of "nmedit", so it can be a program name with args.
6311 set dummy nmedit; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 if test -n "$ac_ct_NMEDIT"; then
6318 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6338 if test -n "$ac_ct_NMEDIT"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6340 $as_echo "$ac_ct_NMEDIT" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346 if test "x$ac_ct_NMEDIT" = x; then
6347 NMEDIT=":"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353 ac_tool_warned=yes ;;
6354 esac
6355 NMEDIT=$ac_ct_NMEDIT
6356 fi
6357 else
6358 NMEDIT="$ac_cv_prog_NMEDIT"
6359 fi
6360
6361 if test -n "$ac_tool_prefix"; then
6362 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6363 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_LIPO+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -n "$LIPO"; then
6370 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 LIPO=$ac_cv_prog_LIPO
6390 if test -n "$LIPO"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6392 $as_echo "$LIPO" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398
6399 fi
6400 if test -z "$ac_cv_prog_LIPO"; then
6401 ac_ct_LIPO=$LIPO
6402 # Extract the first word of "lipo", so it can be a program name with args.
6403 set dummy lipo; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 if test -n "$ac_ct_LIPO"; then
6410 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_ac_ct_LIPO="lipo"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6422 fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6430 if test -n "$ac_ct_LIPO"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6432 $as_echo "$ac_ct_LIPO" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438 if test "x$ac_ct_LIPO" = x; then
6439 LIPO=":"
6440 else
6441 case $cross_compiling:$ac_tool_warned in
6442 yes:)
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6445 ac_tool_warned=yes ;;
6446 esac
6447 LIPO=$ac_ct_LIPO
6448 fi
6449 else
6450 LIPO="$ac_cv_prog_LIPO"
6451 fi
6452
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}otool; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$OTOOL"; then
6462 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 OTOOL=$ac_cv_prog_OTOOL
6482 if test -n "$OTOOL"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6484 $as_echo "$OTOOL" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_OTOOL"; then
6493 ac_ct_OTOOL=$OTOOL
6494 # Extract the first word of "otool", so it can be a program name with args.
6495 set dummy otool; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$ac_ct_OTOOL"; then
6502 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_OTOOL="otool"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6522 if test -n "$ac_ct_OTOOL"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6524 $as_echo "$ac_ct_OTOOL" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530 if test "x$ac_ct_OTOOL" = x; then
6531 OTOOL=":"
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539 OTOOL=$ac_ct_OTOOL
6540 fi
6541 else
6542 OTOOL="$ac_cv_prog_OTOOL"
6543 fi
6544
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$OTOOL64"; then
6554 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 OTOOL64=$ac_cv_prog_OTOOL64
6574 if test -n "$OTOOL64"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6576 $as_echo "$OTOOL64" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_OTOOL64"; then
6585 ac_ct_OTOOL64=$OTOOL64
6586 # Extract the first word of "otool64", so it can be a program name with args.
6587 set dummy otool64; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_OTOOL64"; then
6594 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_OTOOL64="otool64"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6614 if test -n "$ac_ct_OTOOL64"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6616 $as_echo "$ac_ct_OTOOL64" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_OTOOL64" = x; then
6623 OTOOL64=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 OTOOL64=$ac_ct_OTOOL64
6632 fi
6633 else
6634 OTOOL64="$ac_cv_prog_OTOOL64"
6635 fi
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6664 $as_echo_n "checking for -single_module linker flag... " >&6; }
6665 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 lt_cv_apple_cc_single_mod=no
6669 if test -z "${LT_MULTI_MODULE}"; then
6670 # By default we will add the -single_module flag. You can override
6671 # by either setting the environment variable LT_MULTI_MODULE
6672 # non-empty at configure time, or by adding -multi_module to the
6673 # link flags.
6674 rm -rf libconftest.dylib*
6675 echo "int foo(void){return 1;}" > conftest.c
6676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6677 -dynamiclib -Wl,-single_module conftest.c" >&5
6678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6680 _lt_result=$?
6681 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6682 lt_cv_apple_cc_single_mod=yes
6683 else
6684 cat conftest.err >&5
6685 fi
6686 rm -rf libconftest.dylib*
6687 rm -f conftest.*
6688 fi
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6691 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6693 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6694 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 lt_cv_ld_exported_symbols_list=no
6698 save_LDFLAGS=$LDFLAGS
6699 echo "_main" > conftest.sym
6700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703
6704 int
6705 main ()
6706 {
6707
6708 ;
6709 return 0;
6710 }
6711 _ACEOF
6712 if ac_fn_c_try_link "$LINENO"; then :
6713 lt_cv_ld_exported_symbols_list=yes
6714 else
6715 lt_cv_ld_exported_symbols_list=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LDFLAGS="$save_LDFLAGS"
6720
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6723 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6725 $as_echo_n "checking for -force_load linker flag... " >&6; }
6726 if test "${lt_cv_ld_force_load+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 lt_cv_ld_force_load=no
6730 cat > conftest.c << _LT_EOF
6731 int forced_loaded() { return 2;}
6732 _LT_EOF
6733 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6734 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6735 echo "$AR cru libconftest.a conftest.o" >&5
6736 $AR cru libconftest.a conftest.o 2>&5
6737 echo "$RANLIB libconftest.a" >&5
6738 $RANLIB libconftest.a 2>&5
6739 cat > conftest.c << _LT_EOF
6740 int main() { return 0;}
6741 _LT_EOF
6742 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6743 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6744 _lt_result=$?
6745 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6746 lt_cv_ld_force_load=yes
6747 else
6748 cat conftest.err >&5
6749 fi
6750 rm -f conftest.err libconftest.a conftest conftest.c
6751 rm -rf conftest.dSYM
6752
6753 fi
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6755 $as_echo "$lt_cv_ld_force_load" >&6; }
6756 case $host_os in
6757 rhapsody* | darwin1.[012])
6758 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6759 darwin1.*)
6760 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6761 darwin*) # darwin 5.x on
6762 # if running on 10.5 or later, the deployment target defaults
6763 # to the OS version, if on x86, and 10.4, the deployment
6764 # target defaults to 10.4. Don't you love it?
6765 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6766 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6767 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6768 10.[012]*)
6769 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6770 10.*)
6771 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6772 esac
6773 ;;
6774 esac
6775 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6776 _lt_dar_single_mod='$single_module'
6777 fi
6778 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6779 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6780 else
6781 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6782 fi
6783 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6784 _lt_dsymutil='~$DSYMUTIL $lib || :'
6785 else
6786 _lt_dsymutil=
6787 fi
6788 ;;
6789 esac
6790
6791
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6793 $as_echo_n "checking for ANSI C header files... " >&6; }
6794 if test "${ac_cv_header_stdc+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <stdlib.h>
6800 #include <stdarg.h>
6801 #include <string.h>
6802 #include <float.h>
6803
6804 int
6805 main ()
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813 ac_cv_header_stdc=yes
6814 else
6815 ac_cv_header_stdc=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818
6819 if test $ac_cv_header_stdc = yes; then
6820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #include <string.h>
6824
6825 _ACEOF
6826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6827 $EGREP "memchr" >/dev/null 2>&1; then :
6828
6829 else
6830 ac_cv_header_stdc=no
6831 fi
6832 rm -f conftest*
6833
6834 fi
6835
6836 if test $ac_cv_header_stdc = yes; then
6837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <stdlib.h>
6841
6842 _ACEOF
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 $EGREP "free" >/dev/null 2>&1; then :
6845
6846 else
6847 ac_cv_header_stdc=no
6848 fi
6849 rm -f conftest*
6850
6851 fi
6852
6853 if test $ac_cv_header_stdc = yes; then
6854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6855 if test "$cross_compiling" = yes; then :
6856 :
6857 else
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #include <ctype.h>
6861 #include <stdlib.h>
6862 #if ((' ' & 0x0FF) == 0x020)
6863 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6864 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6865 #else
6866 # define ISLOWER(c) \
6867 (('a' <= (c) && (c) <= 'i') \
6868 || ('j' <= (c) && (c) <= 'r') \
6869 || ('s' <= (c) && (c) <= 'z'))
6870 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6871 #endif
6872
6873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6874 int
6875 main ()
6876 {
6877 int i;
6878 for (i = 0; i < 256; i++)
6879 if (XOR (islower (i), ISLOWER (i))
6880 || toupper (i) != TOUPPER (i))
6881 return 2;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_run "$LINENO"; then :
6886
6887 else
6888 ac_cv_header_stdc=no
6889 fi
6890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6891 conftest.$ac_objext conftest.beam conftest.$ac_ext
6892 fi
6893
6894 fi
6895 fi
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6897 $as_echo "$ac_cv_header_stdc" >&6; }
6898 if test $ac_cv_header_stdc = yes; then
6899
6900 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6901
6902 fi
6903
6904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6906 inttypes.h stdint.h unistd.h
6907 do :
6908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6909 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6910 "
6911 eval as_val=\$$as_ac_Header
6912 if test "x$as_val" = x""yes; then :
6913 cat >>confdefs.h <<_ACEOF
6914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6915 _ACEOF
6916
6917 fi
6918
6919 done
6920
6921
6922 for ac_header in dlfcn.h
6923 do :
6924 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6925 "
6926 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_DLFCN_H 1
6929 _ACEOF
6930
6931 fi
6932
6933 done
6934
6935
6936
6937
6938
6939 # Set options
6940 enable_win32_dll=yes
6941
6942 case $host in
6943 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}as; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_prog_AS+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -n "$AS"; then
6953 ac_cv_prog_AS="$AS" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_AS="${ac_tool_prefix}as"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 AS=$ac_cv_prog_AS
6973 if test -n "$AS"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6975 $as_echo "$AS" >&6; }
6976 else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981
6982 fi
6983 if test -z "$ac_cv_prog_AS"; then
6984 ac_ct_AS=$AS
6985 # Extract the first word of "as", so it can be a program name with args.
6986 set dummy as; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$ac_ct_AS"; then
6993 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_ac_ct_AS="as"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7013 if test -n "$ac_ct_AS"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7015 $as_echo "$ac_ct_AS" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021 if test "x$ac_ct_AS" = x; then
7022 AS="false"
7023 else
7024 case $cross_compiling:$ac_tool_warned in
7025 yes:)
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7028 ac_tool_warned=yes ;;
7029 esac
7030 AS=$ac_ct_AS
7031 fi
7032 else
7033 AS="$ac_cv_prog_AS"
7034 fi
7035
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$DLLTOOL"; then
7045 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 DLLTOOL=$ac_cv_prog_DLLTOOL
7065 if test -n "$DLLTOOL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7067 $as_echo "$DLLTOOL" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073
7074 fi
7075 if test -z "$ac_cv_prog_DLLTOOL"; then
7076 ac_ct_DLLTOOL=$DLLTOOL
7077 # Extract the first word of "dlltool", so it can be a program name with args.
7078 set dummy dlltool; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$ac_ct_DLLTOOL"; then
7085 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7105 if test -n "$ac_ct_DLLTOOL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7107 $as_echo "$ac_ct_DLLTOOL" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113 if test "x$ac_ct_DLLTOOL" = x; then
7114 DLLTOOL="false"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 DLLTOOL=$ac_ct_DLLTOOL
7123 fi
7124 else
7125 DLLTOOL="$ac_cv_prog_DLLTOOL"
7126 fi
7127
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$OBJDUMP"; then
7137 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 OBJDUMP=$ac_cv_prog_OBJDUMP
7157 if test -n "$OBJDUMP"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7159 $as_echo "$OBJDUMP" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_OBJDUMP"; then
7168 ac_ct_OBJDUMP=$OBJDUMP
7169 # Extract the first word of "objdump", so it can be a program name with args.
7170 set dummy objdump; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_OBJDUMP"; then
7177 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7197 if test -n "$ac_ct_OBJDUMP"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7199 $as_echo "$ac_ct_OBJDUMP" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205 if test "x$ac_ct_OBJDUMP" = x; then
7206 OBJDUMP="false"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 OBJDUMP=$ac_ct_OBJDUMP
7215 fi
7216 else
7217 OBJDUMP="$ac_cv_prog_OBJDUMP"
7218 fi
7219
7220 ;;
7221 esac
7222
7223 test -z "$AS" && AS=as
7224
7225
7226
7227
7228
7229 test -z "$DLLTOOL" && DLLTOOL=dlltool
7230
7231
7232
7233
7234
7235 test -z "$OBJDUMP" && OBJDUMP=objdump
7236
7237
7238
7239
7240
7241
7242
7243 enable_dlopen=no
7244
7245
7246
7247 # Check whether --enable-shared was given.
7248 if test "${enable_shared+set}" = set; then :
7249 enableval=$enable_shared; p=${PACKAGE-default}
7250 case $enableval in
7251 yes) enable_shared=yes ;;
7252 no) enable_shared=no ;;
7253 *)
7254 enable_shared=no
7255 # Look at the argument we got. We use all the common list separators.
7256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7257 for pkg in $enableval; do
7258 IFS="$lt_save_ifs"
7259 if test "X$pkg" = "X$p"; then
7260 enable_shared=yes
7261 fi
7262 done
7263 IFS="$lt_save_ifs"
7264 ;;
7265 esac
7266 else
7267 enable_shared=yes
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 # Check whether --enable-static was given.
7279 if test "${enable_static+set}" = set; then :
7280 enableval=$enable_static; p=${PACKAGE-default}
7281 case $enableval in
7282 yes) enable_static=yes ;;
7283 no) enable_static=no ;;
7284 *)
7285 enable_static=no
7286 # Look at the argument we got. We use all the common list separators.
7287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7288 for pkg in $enableval; do
7289 IFS="$lt_save_ifs"
7290 if test "X$pkg" = "X$p"; then
7291 enable_static=yes
7292 fi
7293 done
7294 IFS="$lt_save_ifs"
7295 ;;
7296 esac
7297 else
7298 enable_static=yes
7299 fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 # Check whether --with-pic was given.
7311 if test "${with_pic+set}" = set; then :
7312 withval=$with_pic; pic_mode="$withval"
7313 else
7314 pic_mode=default
7315 fi
7316
7317
7318 test -z "$pic_mode" && pic_mode=default
7319
7320
7321
7322
7323
7324
7325
7326 # Check whether --enable-fast-install was given.
7327 if test "${enable_fast_install+set}" = set; then :
7328 enableval=$enable_fast_install; p=${PACKAGE-default}
7329 case $enableval in
7330 yes) enable_fast_install=yes ;;
7331 no) enable_fast_install=no ;;
7332 *)
7333 enable_fast_install=no
7334 # Look at the argument we got. We use all the common list separators.
7335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7336 for pkg in $enableval; do
7337 IFS="$lt_save_ifs"
7338 if test "X$pkg" = "X$p"; then
7339 enable_fast_install=yes
7340 fi
7341 done
7342 IFS="$lt_save_ifs"
7343 ;;
7344 esac
7345 else
7346 enable_fast_install=yes
7347 fi
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359 # This can be used to rebuild libtool when needed
7360 LIBTOOL_DEPS="$ltmain"
7361
7362 # Always use our own libtool.
7363 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 test -z "$LN_S" && LN_S="ln -s"
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 if test -n "${ZSH_VERSION+set}" ; then
7406 setopt NO_GLOB_SUBST
7407 fi
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7410 $as_echo_n "checking for objdir... " >&6; }
7411 if test "${lt_cv_objdir+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 rm -f .libs 2>/dev/null
7415 mkdir .libs 2>/dev/null
7416 if test -d .libs; then
7417 lt_cv_objdir=.libs
7418 else
7419 # MS-DOS does not allow filenames that begin with a dot.
7420 lt_cv_objdir=_libs
7421 fi
7422 rmdir .libs 2>/dev/null
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7425 $as_echo "$lt_cv_objdir" >&6; }
7426 objdir=$lt_cv_objdir
7427
7428
7429
7430
7431
7432 cat >>confdefs.h <<_ACEOF
7433 #define LT_OBJDIR "$lt_cv_objdir/"
7434 _ACEOF
7435
7436
7437
7438
7439 case $host_os in
7440 aix3*)
7441 # AIX sometimes has problems with the GCC collect2 program. For some
7442 # reason, if we set the COLLECT_NAMES environment variable, the problems
7443 # vanish in a puff of smoke.
7444 if test "X${COLLECT_NAMES+set}" != Xset; then
7445 COLLECT_NAMES=
7446 export COLLECT_NAMES
7447 fi
7448 ;;
7449 esac
7450
7451 # Global variables:
7452 ofile=libtool
7453 can_build_shared=yes
7454
7455 # All known linkers require a `.a' archive for static linking (except MSVC,
7456 # which needs '.lib').
7457 libext=a
7458
7459 with_gnu_ld="$lt_cv_prog_gnu_ld"
7460
7461 old_CC="$CC"
7462 old_CFLAGS="$CFLAGS"
7463
7464 # Set sane defaults for various variables
7465 test -z "$CC" && CC=cc
7466 test -z "$LTCC" && LTCC=$CC
7467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7468 test -z "$LD" && LD=ld
7469 test -z "$ac_objext" && ac_objext=o
7470
7471 for cc_temp in $compiler""; do
7472 case $cc_temp in
7473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7475 \-*) ;;
7476 *) break;;
7477 esac
7478 done
7479 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7480
7481
7482 # Only perform the check for file, if the check method requires it
7483 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7484 case $deplibs_check_method in
7485 file_magic*)
7486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7488 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7489 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 case $MAGIC_CMD in
7493 [\\/*] | ?:[\\/]*)
7494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7495 ;;
7496 *)
7497 lt_save_MAGIC_CMD="$MAGIC_CMD"
7498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7500 for ac_dir in $ac_dummy; do
7501 IFS="$lt_save_ifs"
7502 test -z "$ac_dir" && ac_dir=.
7503 if test -f $ac_dir/${ac_tool_prefix}file; then
7504 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7505 if test -n "$file_magic_test_file"; then
7506 case $deplibs_check_method in
7507 "file_magic "*)
7508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7511 $EGREP "$file_magic_regex" > /dev/null; then
7512 :
7513 else
7514 cat <<_LT_EOF 1>&2
7515
7516 *** Warning: the command libtool uses to detect shared libraries,
7517 *** $file_magic_cmd, produces output that libtool cannot recognize.
7518 *** The result is that libtool may fail to recognize shared libraries
7519 *** as such. This will affect the creation of libtool libraries that
7520 *** depend on shared libraries, but programs linked with such libtool
7521 *** libraries will work regardless of this problem. Nevertheless, you
7522 *** may want to report the problem to your system manager and/or to
7523 *** bug-libtool@gnu.org
7524
7525 _LT_EOF
7526 fi ;;
7527 esac
7528 fi
7529 break
7530 fi
7531 done
7532 IFS="$lt_save_ifs"
7533 MAGIC_CMD="$lt_save_MAGIC_CMD"
7534 ;;
7535 esac
7536 fi
7537
7538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539 if test -n "$MAGIC_CMD"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7541 $as_echo "$MAGIC_CMD" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547
7548
7549
7550
7551 if test -z "$lt_cv_path_MAGIC_CMD"; then
7552 if test -n "$ac_tool_prefix"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7554 $as_echo_n "checking for file... " >&6; }
7555 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 case $MAGIC_CMD in
7559 [\\/*] | ?:[\\/]*)
7560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 lt_save_MAGIC_CMD="$MAGIC_CMD"
7564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7566 for ac_dir in $ac_dummy; do
7567 IFS="$lt_save_ifs"
7568 test -z "$ac_dir" && ac_dir=.
7569 if test -f $ac_dir/file; then
7570 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7571 if test -n "$file_magic_test_file"; then
7572 case $deplibs_check_method in
7573 "file_magic "*)
7574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7577 $EGREP "$file_magic_regex" > /dev/null; then
7578 :
7579 else
7580 cat <<_LT_EOF 1>&2
7581
7582 *** Warning: the command libtool uses to detect shared libraries,
7583 *** $file_magic_cmd, produces output that libtool cannot recognize.
7584 *** The result is that libtool may fail to recognize shared libraries
7585 *** as such. This will affect the creation of libtool libraries that
7586 *** depend on shared libraries, but programs linked with such libtool
7587 *** libraries will work regardless of this problem. Nevertheless, you
7588 *** may want to report the problem to your system manager and/or to
7589 *** bug-libtool@gnu.org
7590
7591 _LT_EOF
7592 fi ;;
7593 esac
7594 fi
7595 break
7596 fi
7597 done
7598 IFS="$lt_save_ifs"
7599 MAGIC_CMD="$lt_save_MAGIC_CMD"
7600 ;;
7601 esac
7602 fi
7603
7604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605 if test -n "$MAGIC_CMD"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7607 $as_echo "$MAGIC_CMD" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613
7614 else
7615 MAGIC_CMD=:
7616 fi
7617 fi
7618
7619 fi
7620 ;;
7621 esac
7622
7623 # Use C for the default configuration in the libtool script
7624
7625 lt_save_CC="$CC"
7626 ac_ext=c
7627 ac_cpp='$CPP $CPPFLAGS'
7628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633 # Source file extension for C test sources.
7634 ac_ext=c
7635
7636 # Object file extension for compiled C test sources.
7637 objext=o
7638 objext=$objext
7639
7640 # Code to be used in simple compile tests
7641 lt_simple_compile_test_code="int some_variable = 0;"
7642
7643 # Code to be used in simple link tests
7644 lt_simple_link_test_code='int main(){return(0);}'
7645
7646
7647
7648
7649
7650
7651
7652 # If no C compiler was specified, use CC.
7653 LTCC=${LTCC-"$CC"}
7654
7655 # If no C compiler flags were specified, use CFLAGS.
7656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657
7658 # Allow CC to be a program name with arguments.
7659 compiler=$CC
7660
7661 # Save the default compiler, since it gets overwritten when the other
7662 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7663 compiler_DEFAULT=$CC
7664
7665 # save warnings/boilerplate of simple test code
7666 ac_outfile=conftest.$ac_objext
7667 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7668 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7669 _lt_compiler_boilerplate=`cat conftest.err`
7670 $RM conftest*
7671
7672 ac_outfile=conftest.$ac_objext
7673 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7674 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7675 _lt_linker_boilerplate=`cat conftest.err`
7676 $RM -r conftest*
7677
7678
7679 if test -n "$compiler"; then
7680
7681 lt_prog_compiler_no_builtin_flag=
7682
7683 if test "$GCC" = yes; then
7684 case $cc_basename in
7685 nvcc*)
7686 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7687 *)
7688 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7689 esac
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7692 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7693 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 lt_cv_prog_compiler_rtti_exceptions=no
7697 ac_outfile=conftest.$ac_objext
7698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7699 lt_compiler_flag="-fno-rtti -fno-exceptions"
7700 # Insert the option either (1) after the last *FLAGS variable, or
7701 # (2) before a word containing "conftest.", or (3) at the end.
7702 # Note that $ac_compile itself does not contain backslashes and begins
7703 # with a dollar sign (not a hyphen), so the echo should work correctly.
7704 # The option is referenced via a variable to avoid confusing sed.
7705 lt_compile=`echo "$ac_compile" | $SED \
7706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7708 -e 's:$: $lt_compiler_flag:'`
7709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7710 (eval "$lt_compile" 2>conftest.err)
7711 ac_status=$?
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 if (exit $ac_status) && test -s "$ac_outfile"; then
7715 # The compiler can only warn and ignore the option if not recognized
7716 # So say no if there are warnings other than the usual output.
7717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7720 lt_cv_prog_compiler_rtti_exceptions=yes
7721 fi
7722 fi
7723 $RM conftest*
7724
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7727 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7728
7729 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7730 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7731 else
7732 :
7733 fi
7734
7735 fi
7736
7737
7738
7739
7740
7741
7742 lt_prog_compiler_wl=
7743 lt_prog_compiler_pic=
7744 lt_prog_compiler_static=
7745
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7747 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7748
7749 if test "$GCC" = yes; then
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_static='-static'
7752
7753 case $host_os in
7754 aix*)
7755 # All AIX code is PIC.
7756 if test "$host_cpu" = ia64; then
7757 # AIX 5 now supports IA64 processor
7758 lt_prog_compiler_static='-Bstatic'
7759 fi
7760 ;;
7761
7762 amigaos*)
7763 case $host_cpu in
7764 powerpc)
7765 # see comment about AmigaOS4 .so support
7766 lt_prog_compiler_pic='-fPIC'
7767 ;;
7768 m68k)
7769 # FIXME: we need at least 68020 code to build shared libraries, but
7770 # adding the `-m68020' flag to GCC prevents building anything better,
7771 # like `-m68040'.
7772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7773 ;;
7774 esac
7775 ;;
7776
7777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7778 # PIC is the default for these OSes.
7779 ;;
7780
7781 mingw* | cygwin* | pw32* | os2* | cegcc*)
7782 # This hack is so that the source file can tell whether it is being
7783 # built for inclusion in a dll (and should export symbols for example).
7784 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7785 # (--disable-auto-import) libraries
7786 lt_prog_compiler_pic='-DDLL_EXPORT'
7787 ;;
7788
7789 darwin* | rhapsody*)
7790 # PIC is the default on this platform
7791 # Common symbols not allowed in MH_DYLIB files
7792 lt_prog_compiler_pic='-fno-common'
7793 ;;
7794
7795 haiku*)
7796 # PIC is the default for Haiku.
7797 # The "-static" flag exists, but is broken.
7798 lt_prog_compiler_static=
7799 ;;
7800
7801 hpux*)
7802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7804 # sets the default TLS model and affects inlining.
7805 case $host_cpu in
7806 hppa*64*)
7807 # +Z the default
7808 ;;
7809 *)
7810 lt_prog_compiler_pic='-fPIC'
7811 ;;
7812 esac
7813 ;;
7814
7815 interix[3-9]*)
7816 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7817 # Instead, we relocate shared libraries at runtime.
7818 ;;
7819
7820 msdosdjgpp*)
7821 # Just because we use GCC doesn't mean we suddenly get shared libraries
7822 # on systems that don't support them.
7823 lt_prog_compiler_can_build_shared=no
7824 enable_shared=no
7825 ;;
7826
7827 *nto* | *qnx*)
7828 # QNX uses GNU C++, but need to define -shared option too, otherwise
7829 # it will coredump.
7830 lt_prog_compiler_pic='-fPIC -shared'
7831 ;;
7832
7833 sysv4*MP*)
7834 if test -d /usr/nec; then
7835 lt_prog_compiler_pic=-Kconform_pic
7836 fi
7837 ;;
7838
7839 *)
7840 lt_prog_compiler_pic='-fPIC'
7841 ;;
7842 esac
7843
7844 case $cc_basename in
7845 nvcc*) # Cuda Compiler Driver 2.2
7846 lt_prog_compiler_wl='-Xlinker '
7847 lt_prog_compiler_pic='-Xcompiler -fPIC'
7848 ;;
7849 esac
7850 else
7851 # PORTME Check for flag to pass linker flags through the system compiler.
7852 case $host_os in
7853 aix*)
7854 lt_prog_compiler_wl='-Wl,'
7855 if test "$host_cpu" = ia64; then
7856 # AIX 5 now supports IA64 processor
7857 lt_prog_compiler_static='-Bstatic'
7858 else
7859 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7860 fi
7861 ;;
7862
7863 mingw* | cygwin* | pw32* | os2* | cegcc*)
7864 # This hack is so that the source file can tell whether it is being
7865 # built for inclusion in a dll (and should export symbols for example).
7866 lt_prog_compiler_pic='-DDLL_EXPORT'
7867 ;;
7868
7869 hpux9* | hpux10* | hpux11*)
7870 lt_prog_compiler_wl='-Wl,'
7871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7872 # not for PA HP-UX.
7873 case $host_cpu in
7874 hppa*64*|ia64*)
7875 # +Z the default
7876 ;;
7877 *)
7878 lt_prog_compiler_pic='+Z'
7879 ;;
7880 esac
7881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7882 lt_prog_compiler_static='${wl}-a ${wl}archive'
7883 ;;
7884
7885 irix5* | irix6* | nonstopux*)
7886 lt_prog_compiler_wl='-Wl,'
7887 # PIC (with -KPIC) is the default.
7888 lt_prog_compiler_static='-non_shared'
7889 ;;
7890
7891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7892 case $cc_basename in
7893 # old Intel for x86_64 which still supported -KPIC.
7894 ecc*)
7895 lt_prog_compiler_wl='-Wl,'
7896 lt_prog_compiler_pic='-KPIC'
7897 lt_prog_compiler_static='-static'
7898 ;;
7899 # icc used to be incompatible with GCC.
7900 # ICC 10 doesn't accept -KPIC any more.
7901 icc* | ifort*)
7902 lt_prog_compiler_wl='-Wl,'
7903 lt_prog_compiler_pic='-fPIC'
7904 lt_prog_compiler_static='-static'
7905 ;;
7906 # Lahey Fortran 8.1.
7907 lf95*)
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_pic='--shared'
7910 lt_prog_compiler_static='--static'
7911 ;;
7912 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7913 # Portland Group compilers (*not* the Pentium gcc compiler,
7914 # which looks to be a dead project)
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_pic='-fpic'
7917 lt_prog_compiler_static='-Bstatic'
7918 ;;
7919 ccc*)
7920 lt_prog_compiler_wl='-Wl,'
7921 # All Alpha code is PIC.
7922 lt_prog_compiler_static='-non_shared'
7923 ;;
7924 xl* | bgxl* | bgf* | mpixl*)
7925 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-qpic'
7928 lt_prog_compiler_static='-qstaticlink'
7929 ;;
7930 *)
7931 case `$CC -V 2>&1 | sed 5q` in
7932 *Sun\ F* | *Sun*Fortran*)
7933 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7934 lt_prog_compiler_pic='-KPIC'
7935 lt_prog_compiler_static='-Bstatic'
7936 lt_prog_compiler_wl=''
7937 ;;
7938 *Sun\ C*)
7939 # Sun C 5.9
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
7942 lt_prog_compiler_wl='-Wl,'
7943 ;;
7944 esac
7945 ;;
7946 esac
7947 ;;
7948
7949 newsos6)
7950 lt_prog_compiler_pic='-KPIC'
7951 lt_prog_compiler_static='-Bstatic'
7952 ;;
7953
7954 *nto* | *qnx*)
7955 # QNX uses GNU C++, but need to define -shared option too, otherwise
7956 # it will coredump.
7957 lt_prog_compiler_pic='-fPIC -shared'
7958 ;;
7959
7960 osf3* | osf4* | osf5*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # All OSF/1 code is PIC.
7963 lt_prog_compiler_static='-non_shared'
7964 ;;
7965
7966 rdos*)
7967 lt_prog_compiler_static='-non_shared'
7968 ;;
7969
7970 solaris*)
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7973 case $cc_basename in
7974 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7975 lt_prog_compiler_wl='-Qoption ld ';;
7976 *)
7977 lt_prog_compiler_wl='-Wl,';;
7978 esac
7979 ;;
7980
7981 sunos4*)
7982 lt_prog_compiler_wl='-Qoption ld '
7983 lt_prog_compiler_pic='-PIC'
7984 lt_prog_compiler_static='-Bstatic'
7985 ;;
7986
7987 sysv4 | sysv4.2uw2* | sysv4.3*)
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7991 ;;
7992
7993 sysv4*MP*)
7994 if test -d /usr/nec ;then
7995 lt_prog_compiler_pic='-Kconform_pic'
7996 lt_prog_compiler_static='-Bstatic'
7997 fi
7998 ;;
7999
8000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-Bstatic'
8004 ;;
8005
8006 unicos*)
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_can_build_shared=no
8009 ;;
8010
8011 uts4*)
8012 lt_prog_compiler_pic='-pic'
8013 lt_prog_compiler_static='-Bstatic'
8014 ;;
8015
8016 *)
8017 lt_prog_compiler_can_build_shared=no
8018 ;;
8019 esac
8020 fi
8021
8022 case $host_os in
8023 # For platforms which do not support PIC, -DPIC is meaningless:
8024 *djgpp*)
8025 lt_prog_compiler_pic=
8026 ;;
8027 *)
8028 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8029 ;;
8030 esac
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8032 $as_echo "$lt_prog_compiler_pic" >&6; }
8033
8034
8035
8036
8037
8038
8039 #
8040 # Check to make sure the PIC flag actually works.
8041 #
8042 if test -n "$lt_prog_compiler_pic"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8044 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8045 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 lt_cv_prog_compiler_pic_works=no
8049 ac_outfile=conftest.$ac_objext
8050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8052 # Insert the option either (1) after the last *FLAGS variable, or
8053 # (2) before a word containing "conftest.", or (3) at the end.
8054 # Note that $ac_compile itself does not contain backslashes and begins
8055 # with a dollar sign (not a hyphen), so the echo should work correctly.
8056 # The option is referenced via a variable to avoid confusing sed.
8057 lt_compile=`echo "$ac_compile" | $SED \
8058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8060 -e 's:$: $lt_compiler_flag:'`
8061 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8062 (eval "$lt_compile" 2>conftest.err)
8063 ac_status=$?
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 if (exit $ac_status) && test -s "$ac_outfile"; then
8067 # The compiler can only warn and ignore the option if not recognized
8068 # So say no if there are warnings other than the usual output.
8069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8072 lt_cv_prog_compiler_pic_works=yes
8073 fi
8074 fi
8075 $RM conftest*
8076
8077 fi
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8079 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8080
8081 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8082 case $lt_prog_compiler_pic in
8083 "" | " "*) ;;
8084 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8085 esac
8086 else
8087 lt_prog_compiler_pic=
8088 lt_prog_compiler_can_build_shared=no
8089 fi
8090
8091 fi
8092
8093
8094
8095
8096
8097
8098 #
8099 # Check to make sure the static flag actually works.
8100 #
8101 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8103 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8104 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 lt_cv_prog_compiler_static_works=no
8108 save_LDFLAGS="$LDFLAGS"
8109 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8110 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8111 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8112 # The linker can only warn and ignore the option if not recognized
8113 # So say no if there are warnings
8114 if test -s conftest.err; then
8115 # Append any errors to the config.log.
8116 cat conftest.err 1>&5
8117 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119 if diff conftest.exp conftest.er2 >/dev/null; then
8120 lt_cv_prog_compiler_static_works=yes
8121 fi
8122 else
8123 lt_cv_prog_compiler_static_works=yes
8124 fi
8125 fi
8126 $RM -r conftest*
8127 LDFLAGS="$save_LDFLAGS"
8128
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8131 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8132
8133 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8134 :
8135 else
8136 lt_prog_compiler_static=
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8147 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 lt_cv_prog_compiler_c_o=no
8151 $RM -r conftest 2>/dev/null
8152 mkdir conftest
8153 cd conftest
8154 mkdir out
8155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8156
8157 lt_compiler_flag="-o out/conftest2.$ac_objext"
8158 # Insert the option either (1) after the last *FLAGS variable, or
8159 # (2) before a word containing "conftest.", or (3) at the end.
8160 # Note that $ac_compile itself does not contain backslashes and begins
8161 # with a dollar sign (not a hyphen), so the echo should work correctly.
8162 lt_compile=`echo "$ac_compile" | $SED \
8163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8165 -e 's:$: $lt_compiler_flag:'`
8166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8167 (eval "$lt_compile" 2>out/conftest.err)
8168 ac_status=$?
8169 cat out/conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8172 then
8173 # The compiler can only warn and ignore the option if not recognized
8174 # So say no if there are warnings
8175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8178 lt_cv_prog_compiler_c_o=yes
8179 fi
8180 fi
8181 chmod u+w . 2>&5
8182 $RM conftest*
8183 # SGI C++ compiler will create directory out/ii_files/ for
8184 # template instantiation
8185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8186 $RM out/* && rmdir out
8187 cd ..
8188 $RM -r conftest
8189 $RM conftest*
8190
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8194
8195
8196
8197
8198
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8202 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_prog_compiler_c_o=no
8206 $RM -r conftest 2>/dev/null
8207 mkdir conftest
8208 cd conftest
8209 mkdir out
8210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8211
8212 lt_compiler_flag="-o out/conftest2.$ac_objext"
8213 # Insert the option either (1) after the last *FLAGS variable, or
8214 # (2) before a word containing "conftest.", or (3) at the end.
8215 # Note that $ac_compile itself does not contain backslashes and begins
8216 # with a dollar sign (not a hyphen), so the echo should work correctly.
8217 lt_compile=`echo "$ac_compile" | $SED \
8218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220 -e 's:$: $lt_compiler_flag:'`
8221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8222 (eval "$lt_compile" 2>out/conftest.err)
8223 ac_status=$?
8224 cat out/conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8227 then
8228 # The compiler can only warn and ignore the option if not recognized
8229 # So say no if there are warnings
8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_c_o=yes
8234 fi
8235 fi
8236 chmod u+w . 2>&5
8237 $RM conftest*
8238 # SGI C++ compiler will create directory out/ii_files/ for
8239 # template instantiation
8240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8241 $RM out/* && rmdir out
8242 cd ..
8243 $RM -r conftest
8244 $RM conftest*
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8249
8250
8251
8252
8253 hard_links="nottested"
8254 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8255 # do not overwrite the value of need_locks provided by the user
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8257 $as_echo_n "checking if we can lock with hard links... " >&6; }
8258 hard_links=yes
8259 $RM conftest*
8260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8261 touch conftest.a
8262 ln conftest.a conftest.b 2>&5 || hard_links=no
8263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8265 $as_echo "$hard_links" >&6; }
8266 if test "$hard_links" = no; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8268 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8269 need_locks=warn
8270 fi
8271 else
8272 need_locks=no
8273 fi
8274
8275
8276
8277
8278
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8281 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8282
8283 runpath_var=
8284 allow_undefined_flag=
8285 always_export_symbols=no
8286 archive_cmds=
8287 archive_expsym_cmds=
8288 compiler_needs_object=no
8289 enable_shared_with_static_runtimes=no
8290 export_dynamic_flag_spec=
8291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8292 hardcode_automatic=no
8293 hardcode_direct=no
8294 hardcode_direct_absolute=no
8295 hardcode_libdir_flag_spec=
8296 hardcode_libdir_flag_spec_ld=
8297 hardcode_libdir_separator=
8298 hardcode_minus_L=no
8299 hardcode_shlibpath_var=unsupported
8300 inherit_rpath=no
8301 link_all_deplibs=unknown
8302 module_cmds=
8303 module_expsym_cmds=
8304 old_archive_from_new_cmds=
8305 old_archive_from_expsyms_cmds=
8306 thread_safe_flag_spec=
8307 whole_archive_flag_spec=
8308 # include_expsyms should be a list of space-separated symbols to be *always*
8309 # included in the symbol list
8310 include_expsyms=
8311 # exclude_expsyms can be an extended regexp of symbols to exclude
8312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8314 # as well as any symbol that contains `d'.
8315 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8317 # platforms (ab)use it in PIC code, but their linkers get confused if
8318 # the symbol is explicitly referenced. Since portable code cannot
8319 # rely on this symbol name, it's probably fine to never include it in
8320 # preloaded symbol tables.
8321 # Exclude shared library initialization/finalization symbols.
8322 extract_expsyms_cmds=
8323
8324 case $host_os in
8325 cygwin* | mingw* | pw32* | cegcc*)
8326 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8327 # When not using gcc, we currently assume that we are using
8328 # Microsoft Visual C++.
8329 if test "$GCC" != yes; then
8330 with_gnu_ld=no
8331 fi
8332 ;;
8333 interix*)
8334 # we just hope/assume this is gcc and not c89 (= MSVC++)
8335 with_gnu_ld=yes
8336 ;;
8337 openbsd*)
8338 with_gnu_ld=no
8339 ;;
8340 esac
8341
8342 ld_shlibs=yes
8343
8344 # On some targets, GNU ld is compatible enough with the native linker
8345 # that we're better off using the native interface for both.
8346 lt_use_gnu_ld_interface=no
8347 if test "$with_gnu_ld" = yes; then
8348 case $host_os in
8349 aix*)
8350 # The AIX port of GNU ld has always aspired to compatibility
8351 # with the native linker. However, as the warning in the GNU ld
8352 # block says, versions before 2.19.5* couldn't really create working
8353 # shared libraries, regardless of the interface used.
8354 case `$LD -v 2>&1` in
8355 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8356 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8357 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8358 *)
8359 lt_use_gnu_ld_interface=yes
8360 ;;
8361 esac
8362 ;;
8363 *)
8364 lt_use_gnu_ld_interface=yes
8365 ;;
8366 esac
8367 fi
8368
8369 if test "$lt_use_gnu_ld_interface" = yes; then
8370 # If archive_cmds runs LD, not CC, wlarc should be empty
8371 wlarc='${wl}'
8372
8373 # Set some defaults for GNU ld with shared library support. These
8374 # are reset later if shared libraries are not supported. Putting them
8375 # here allows them to be overridden if necessary.
8376 runpath_var=LD_RUN_PATH
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 export_dynamic_flag_spec='${wl}--export-dynamic'
8379 # ancient GNU ld didn't support --whole-archive et. al.
8380 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8381 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8382 else
8383 whole_archive_flag_spec=
8384 fi
8385 supports_anon_versioning=no
8386 case `$LD -v 2>&1` in
8387 *GNU\ gold*) supports_anon_versioning=yes ;;
8388 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8389 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8390 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8391 *\ 2.11.*) ;; # other 2.11 versions
8392 *) supports_anon_versioning=yes ;;
8393 esac
8394
8395 # See if GNU ld supports shared libraries.
8396 case $host_os in
8397 aix[3-9]*)
8398 # On AIX/PPC, the GNU linker is very broken
8399 if test "$host_cpu" != ia64; then
8400 ld_shlibs=no
8401 cat <<_LT_EOF 1>&2
8402
8403 *** Warning: the GNU linker, at least up to release 2.19, is reported
8404 *** to be unable to reliably create shared libraries on AIX.
8405 *** Therefore, libtool is disabling shared libraries support. If you
8406 *** really care for shared libraries, you may want to install binutils
8407 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8408 *** You will then need to restart the configuration process.
8409
8410 _LT_EOF
8411 fi
8412 ;;
8413
8414 amigaos*)
8415 case $host_cpu in
8416 powerpc)
8417 # see comment about AmigaOS4 .so support
8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419 archive_expsym_cmds=''
8420 ;;
8421 m68k)
8422 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)'
8423 hardcode_libdir_flag_spec='-L$libdir'
8424 hardcode_minus_L=yes
8425 ;;
8426 esac
8427 ;;
8428
8429 beos*)
8430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8431 allow_undefined_flag=unsupported
8432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8433 # support --undefined. This deserves some investigation. FIXME
8434 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435 else
8436 ld_shlibs=no
8437 fi
8438 ;;
8439
8440 cygwin* | mingw* | pw32* | cegcc*)
8441 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8442 # as there is no search path for DLLs.
8443 hardcode_libdir_flag_spec='-L$libdir'
8444 export_dynamic_flag_spec='${wl}--export-all-symbols'
8445 allow_undefined_flag=unsupported
8446 always_export_symbols=no
8447 enable_shared_with_static_runtimes=yes
8448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8449
8450 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8452 # If the export-symbols file already is a .def file (1st line
8453 # is EXPORTS), use it as is; otherwise, prepend...
8454 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8455 cp $export_symbols $output_objdir/$soname.def;
8456 else
8457 echo EXPORTS > $output_objdir/$soname.def;
8458 cat $export_symbols >> $output_objdir/$soname.def;
8459 fi~
8460 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8461 else
8462 ld_shlibs=no
8463 fi
8464 ;;
8465
8466 haiku*)
8467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468 link_all_deplibs=yes
8469 ;;
8470
8471 interix[3-9]*)
8472 hardcode_direct=no
8473 hardcode_shlibpath_var=no
8474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8475 export_dynamic_flag_spec='${wl}-E'
8476 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8477 # Instead, shared libraries are loaded at an image base (0x10000000 by
8478 # default) and relocated if they conflict, which is a slow very memory
8479 # consuming and fragmenting process. To avoid this, we pick a random,
8480 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8481 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8483 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'
8484 ;;
8485
8486 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8487 tmp_diet=no
8488 if test "$host_os" = linux-dietlibc; then
8489 case $cc_basename in
8490 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8491 esac
8492 fi
8493 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8494 && test "$tmp_diet" = no
8495 then
8496 tmp_addflag=
8497 tmp_sharedflag='-shared'
8498 case $cc_basename,$host_cpu in
8499 pgcc*) # Portland Group C compiler
8500 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'
8501 tmp_addflag=' $pic_flag'
8502 ;;
8503 pgf77* | pgf90* | pgf95* | pgfortran*)
8504 # Portland Group f77 and f90 compilers
8505 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'
8506 tmp_addflag=' $pic_flag -Mnomain' ;;
8507 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8508 tmp_addflag=' -i_dynamic' ;;
8509 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8510 tmp_addflag=' -i_dynamic -nofor_main' ;;
8511 ifc* | ifort*) # Intel Fortran compiler
8512 tmp_addflag=' -nofor_main' ;;
8513 lf95*) # Lahey Fortran 8.1
8514 whole_archive_flag_spec=
8515 tmp_sharedflag='--shared' ;;
8516 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8517 tmp_sharedflag='-qmkshrobj'
8518 tmp_addflag= ;;
8519 nvcc*) # Cuda Compiler Driver 2.2
8520 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'
8521 compiler_needs_object=yes
8522 ;;
8523 esac
8524 case `$CC -V 2>&1 | sed 5q` in
8525 *Sun\ C*) # Sun C 5.9
8526 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'
8527 compiler_needs_object=yes
8528 tmp_sharedflag='-G' ;;
8529 *Sun\ F*) # Sun Fortran 8.3
8530 tmp_sharedflag='-G' ;;
8531 esac
8532 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8533
8534 if test "x$supports_anon_versioning" = xyes; then
8535 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8537 echo "local: *; };" >> $output_objdir/$libname.ver~
8538 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8539 fi
8540
8541 case $cc_basename in
8542 xlf* | bgf* | bgxlf* | mpixlf*)
8543 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8544 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8545 hardcode_libdir_flag_spec=
8546 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8547 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8548 if test "x$supports_anon_versioning" = xyes; then
8549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8551 echo "local: *; };" >> $output_objdir/$libname.ver~
8552 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8553 fi
8554 ;;
8555 esac
8556 else
8557 ld_shlibs=no
8558 fi
8559 ;;
8560
8561 netbsd*)
8562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8563 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8564 wlarc=
8565 else
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568 fi
8569 ;;
8570
8571 solaris*)
8572 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8573 ld_shlibs=no
8574 cat <<_LT_EOF 1>&2
8575
8576 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8577 *** create shared libraries on Solaris systems. Therefore, libtool
8578 *** is disabling shared libraries support. We urge you to upgrade GNU
8579 *** binutils to release 2.9.1 or newer. Another option is to modify
8580 *** your PATH or compiler configuration so that the native linker is
8581 *** used, and then restart.
8582
8583 _LT_EOF
8584 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8587 else
8588 ld_shlibs=no
8589 fi
8590 ;;
8591
8592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8593 case `$LD -v 2>&1` in
8594 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8595 ld_shlibs=no
8596 cat <<_LT_EOF 1>&2
8597
8598 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8599 *** reliably create shared libraries on SCO systems. Therefore, libtool
8600 *** is disabling shared libraries support. We urge you to upgrade GNU
8601 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8602 *** your PATH or compiler configuration so that the native linker is
8603 *** used, and then restart.
8604
8605 _LT_EOF
8606 ;;
8607 *)
8608 # For security reasons, it is highly recommended that you always
8609 # use absolute paths for naming shared libraries, and exclude the
8610 # DT_RUNPATH tag from executables and libraries. But doing so
8611 # requires that you compile everything twice, which is a pain.
8612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620 esac
8621 ;;
8622
8623 sunos4*)
8624 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8625 wlarc=
8626 hardcode_direct=yes
8627 hardcode_shlibpath_var=no
8628 ;;
8629
8630 *)
8631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634 else
8635 ld_shlibs=no
8636 fi
8637 ;;
8638 esac
8639
8640 if test "$ld_shlibs" = no; then
8641 runpath_var=
8642 hardcode_libdir_flag_spec=
8643 export_dynamic_flag_spec=
8644 whole_archive_flag_spec=
8645 fi
8646 else
8647 # PORTME fill in a description of your system's linker (not GNU ld)
8648 case $host_os in
8649 aix3*)
8650 allow_undefined_flag=unsupported
8651 always_export_symbols=yes
8652 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'
8653 # Note: this linker hardcodes the directories in LIBPATH if there
8654 # are no directories specified by -L.
8655 hardcode_minus_L=yes
8656 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8657 # Neither direct hardcoding nor static linking is supported with a
8658 # broken collect2.
8659 hardcode_direct=unsupported
8660 fi
8661 ;;
8662
8663 aix[4-9]*)
8664 if test "$host_cpu" = ia64; then
8665 # On IA64, the linker does run time linking by default, so we don't
8666 # have to do anything special.
8667 aix_use_runtimelinking=no
8668 exp_sym_flag='-Bexport'
8669 no_entry_flag=""
8670 else
8671 # If we're using GNU nm, then we don't want the "-C" option.
8672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8673 # Also, AIX nm treats weak defined symbols like other global
8674 # defined symbols, whereas GNU nm marks them as "W".
8675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8676 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'
8677 else
8678 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'
8679 fi
8680 aix_use_runtimelinking=no
8681
8682 # Test if we are trying to use run time linking or normal
8683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8684 # need to do runtime linking.
8685 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8686 for ld_flag in $LDFLAGS; do
8687 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8688 aix_use_runtimelinking=yes
8689 break
8690 fi
8691 done
8692 ;;
8693 esac
8694
8695 exp_sym_flag='-bexport'
8696 no_entry_flag='-bnoentry'
8697 fi
8698
8699 # When large executables or shared objects are built, AIX ld can
8700 # have problems creating the table of contents. If linking a library
8701 # or program results in "error TOC overflow" add -mminimal-toc to
8702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8704
8705 archive_cmds=''
8706 hardcode_direct=yes
8707 hardcode_direct_absolute=yes
8708 hardcode_libdir_separator=':'
8709 link_all_deplibs=yes
8710 file_list_spec='${wl}-f,'
8711
8712 if test "$GCC" = yes; then
8713 case $host_os in aix4.[012]|aix4.[012].*)
8714 # We only want to do this on AIX 4.2 and lower, the check
8715 # below for broken collect2 doesn't work under 4.3+
8716 collect2name=`${CC} -print-prog-name=collect2`
8717 if test -f "$collect2name" &&
8718 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8719 then
8720 # We have reworked collect2
8721 :
8722 else
8723 # We have old collect2
8724 hardcode_direct=unsupported
8725 # It fails to find uninstalled libraries when the uninstalled
8726 # path is not listed in the libpath. Setting hardcode_minus_L
8727 # to unsupported forces relinking
8728 hardcode_minus_L=yes
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 hardcode_libdir_separator=
8731 fi
8732 ;;
8733 esac
8734 shared_flag='-shared'
8735 if test "$aix_use_runtimelinking" = yes; then
8736 shared_flag="$shared_flag "'${wl}-G'
8737 fi
8738 else
8739 # not using gcc
8740 if test "$host_cpu" = ia64; then
8741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8742 # chokes on -Wl,-G. The following line is correct:
8743 shared_flag='-G'
8744 else
8745 if test "$aix_use_runtimelinking" = yes; then
8746 shared_flag='${wl}-G'
8747 else
8748 shared_flag='${wl}-bM:SRE'
8749 fi
8750 fi
8751 fi
8752
8753 export_dynamic_flag_spec='${wl}-bexpall'
8754 # It seems that -bexpall does not export symbols beginning with
8755 # underscore (_), so it is better to generate a list of symbols to export.
8756 always_export_symbols=yes
8757 if test "$aix_use_runtimelinking" = yes; then
8758 # Warning - without using the other runtime loading flags (-brtl),
8759 # -berok will link without error, but may produce a broken library.
8760 allow_undefined_flag='-berok'
8761 # Determine the default libpath from the value encoded in an
8762 # empty executable.
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765
8766 int
8767 main ()
8768 {
8769
8770 ;
8771 return 0;
8772 }
8773 _ACEOF
8774 if ac_fn_c_try_link "$LINENO"; then :
8775
8776 lt_aix_libpath_sed='
8777 /Import File Strings/,/^$/ {
8778 /^0/ {
8779 s/^0 *\(.*\)$/\1/
8780 p
8781 }
8782 }'
8783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8784 # Check for a 64-bit object if we didn't find anything.
8785 if test -z "$aix_libpath"; then
8786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8787 fi
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8792
8793 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8794 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"
8795 else
8796 if test "$host_cpu" = ia64; then
8797 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8798 allow_undefined_flag="-z nodefs"
8799 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"
8800 else
8801 # Determine the default libpath from the value encoded in an
8802 # empty executable.
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805
8806 int
8807 main ()
8808 {
8809
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_c_try_link "$LINENO"; then :
8815
8816 lt_aix_libpath_sed='
8817 /Import File Strings/,/^$/ {
8818 /^0/ {
8819 s/^0 *\(.*\)$/\1/
8820 p
8821 }
8822 }'
8823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8824 # Check for a 64-bit object if we didn't find anything.
8825 if test -z "$aix_libpath"; then
8826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827 fi
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8832
8833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8834 # Warning - without using the other run time loading flags,
8835 # -berok will link without error, but may produce a broken library.
8836 no_undefined_flag=' ${wl}-bernotok'
8837 allow_undefined_flag=' ${wl}-berok'
8838 if test "$with_gnu_ld" = yes; then
8839 # We only use this code for GNU lds that support --whole-archive.
8840 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8841 else
8842 # Exported symbols can be pulled into shared objects from archives
8843 whole_archive_flag_spec='$convenience'
8844 fi
8845 archive_cmds_need_lc=yes
8846 # This is similar to how AIX traditionally builds its shared libraries.
8847 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'
8848 fi
8849 fi
8850 ;;
8851
8852 amigaos*)
8853 case $host_cpu in
8854 powerpc)
8855 # see comment about AmigaOS4 .so support
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857 archive_expsym_cmds=''
8858 ;;
8859 m68k)
8860 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)'
8861 hardcode_libdir_flag_spec='-L$libdir'
8862 hardcode_minus_L=yes
8863 ;;
8864 esac
8865 ;;
8866
8867 bsdi[45]*)
8868 export_dynamic_flag_spec=-rdynamic
8869 ;;
8870
8871 cygwin* | mingw* | pw32* | cegcc*)
8872 # When not using gcc, we currently assume that we are using
8873 # Microsoft Visual C++.
8874 # hardcode_libdir_flag_spec is actually meaningless, as there is
8875 # no search path for DLLs.
8876 hardcode_libdir_flag_spec=' '
8877 allow_undefined_flag=unsupported
8878 # Tell ltmain to make .lib files, not .a files.
8879 libext=lib
8880 # Tell ltmain to make .dll files, not .so files.
8881 shrext_cmds=".dll"
8882 # FIXME: Setting linknames here is a bad hack.
8883 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8884 # The linker will automatically build a .lib file if we build a DLL.
8885 old_archive_from_new_cmds='true'
8886 # FIXME: Should let the user specify the lib program.
8887 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8888 fix_srcfile_path='`cygpath -w "$srcfile"`'
8889 enable_shared_with_static_runtimes=yes
8890 ;;
8891
8892 darwin* | rhapsody*)
8893
8894
8895 archive_cmds_need_lc=no
8896 hardcode_direct=no
8897 hardcode_automatic=yes
8898 hardcode_shlibpath_var=unsupported
8899 if test "$lt_cv_ld_force_load" = "yes"; then
8900 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\"`'
8901 else
8902 whole_archive_flag_spec=''
8903 fi
8904 link_all_deplibs=yes
8905 allow_undefined_flag="$_lt_dar_allow_undefined"
8906 case $cc_basename in
8907 ifort*) _lt_dar_can_shared=yes ;;
8908 *) _lt_dar_can_shared=$GCC ;;
8909 esac
8910 if test "$_lt_dar_can_shared" = "yes"; then
8911 output_verbose_link_cmd=func_echo_all
8912 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8913 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8914 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}"
8915 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}"
8916
8917 else
8918 ld_shlibs=no
8919 fi
8920
8921 ;;
8922
8923 dgux*)
8924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_libdir_flag_spec='-L$libdir'
8926 hardcode_shlibpath_var=no
8927 ;;
8928
8929 freebsd1*)
8930 ld_shlibs=no
8931 ;;
8932
8933 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8934 # support. Future versions do this automatically, but an explicit c++rt0.o
8935 # does not break anything, and helps significantly (at the cost of a little
8936 # extra space).
8937 freebsd2.2*)
8938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8939 hardcode_libdir_flag_spec='-R$libdir'
8940 hardcode_direct=yes
8941 hardcode_shlibpath_var=no
8942 ;;
8943
8944 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8945 freebsd2*)
8946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_direct=yes
8948 hardcode_minus_L=yes
8949 hardcode_shlibpath_var=no
8950 ;;
8951
8952 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8953 freebsd* | dragonfly*)
8954 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8955 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_direct=yes
8957 hardcode_shlibpath_var=no
8958 ;;
8959
8960 hpux9*)
8961 if test "$GCC" = yes; then
8962 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8963 else
8964 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'
8965 fi
8966 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 hardcode_direct=yes
8969
8970 # hardcode_minus_L: Not really in the search PATH,
8971 # but as the default location of the library.
8972 hardcode_minus_L=yes
8973 export_dynamic_flag_spec='${wl}-E'
8974 ;;
8975
8976 hpux10*)
8977 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8978 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8979 else
8980 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8981 fi
8982 if test "$with_gnu_ld" = no; then
8983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8984 hardcode_libdir_flag_spec_ld='+b $libdir'
8985 hardcode_libdir_separator=:
8986 hardcode_direct=yes
8987 hardcode_direct_absolute=yes
8988 export_dynamic_flag_spec='${wl}-E'
8989 # hardcode_minus_L: Not really in the search PATH,
8990 # but as the default location of the library.
8991 hardcode_minus_L=yes
8992 fi
8993 ;;
8994
8995 hpux11*)
8996 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8997 case $host_cpu in
8998 hppa*64*)
8999 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9000 ;;
9001 ia64*)
9002 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9003 ;;
9004 *)
9005 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9006 ;;
9007 esac
9008 else
9009 case $host_cpu in
9010 hppa*64*)
9011 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012 ;;
9013 ia64*)
9014 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9015 ;;
9016 *)
9017
9018 # Older versions of the 11.00 compiler do not understand -b yet
9019 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9021 $as_echo_n "checking if $CC understands -b... " >&6; }
9022 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 lt_cv_prog_compiler__b=no
9026 save_LDFLAGS="$LDFLAGS"
9027 LDFLAGS="$LDFLAGS -b"
9028 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9029 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9030 # The linker can only warn and ignore the option if not recognized
9031 # So say no if there are warnings
9032 if test -s conftest.err; then
9033 # Append any errors to the config.log.
9034 cat conftest.err 1>&5
9035 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037 if diff conftest.exp conftest.er2 >/dev/null; then
9038 lt_cv_prog_compiler__b=yes
9039 fi
9040 else
9041 lt_cv_prog_compiler__b=yes
9042 fi
9043 fi
9044 $RM -r conftest*
9045 LDFLAGS="$save_LDFLAGS"
9046
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9049 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9050
9051 if test x"$lt_cv_prog_compiler__b" = xyes; then
9052 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9053 else
9054 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9055 fi
9056
9057 ;;
9058 esac
9059 fi
9060 if test "$with_gnu_ld" = no; then
9061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9062 hardcode_libdir_separator=:
9063
9064 case $host_cpu in
9065 hppa*64*|ia64*)
9066 hardcode_direct=no
9067 hardcode_shlibpath_var=no
9068 ;;
9069 *)
9070 hardcode_direct=yes
9071 hardcode_direct_absolute=yes
9072 export_dynamic_flag_spec='${wl}-E'
9073
9074 # hardcode_minus_L: Not really in the search PATH,
9075 # but as the default location of the library.
9076 hardcode_minus_L=yes
9077 ;;
9078 esac
9079 fi
9080 ;;
9081
9082 irix5* | irix6* | nonstopux*)
9083 if test "$GCC" = yes; then
9084 archive_cmds='$CC -shared $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'
9085 # Try to use the -exported_symbol ld option, if it does not
9086 # work, assume that -exports_file does not work either and
9087 # implicitly export all symbols.
9088 save_LDFLAGS="$LDFLAGS"
9089 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092 int foo(void) {}
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 archive_expsym_cmds='$CC -shared $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'
9096
9097 fi
9098 rm -f core conftest.err conftest.$ac_objext \
9099 conftest$ac_exeext conftest.$ac_ext
9100 LDFLAGS="$save_LDFLAGS"
9101 else
9102 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'
9103 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'
9104 fi
9105 archive_cmds_need_lc='no'
9106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9107 hardcode_libdir_separator=:
9108 inherit_rpath=yes
9109 link_all_deplibs=yes
9110 ;;
9111
9112 netbsd*)
9113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9115 else
9116 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9117 fi
9118 hardcode_libdir_flag_spec='-R$libdir'
9119 hardcode_direct=yes
9120 hardcode_shlibpath_var=no
9121 ;;
9122
9123 newsos6)
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_direct=yes
9126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9127 hardcode_libdir_separator=:
9128 hardcode_shlibpath_var=no
9129 ;;
9130
9131 *nto* | *qnx*)
9132 ;;
9133
9134 openbsd*)
9135 if test -f /usr/libexec/ld.so; then
9136 hardcode_direct=yes
9137 hardcode_shlibpath_var=no
9138 hardcode_direct_absolute=yes
9139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9143 export_dynamic_flag_spec='${wl}-E'
9144 else
9145 case $host_os in
9146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9149 ;;
9150 *)
9151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9153 ;;
9154 esac
9155 fi
9156 else
9157 ld_shlibs=no
9158 fi
9159 ;;
9160
9161 os2*)
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_minus_L=yes
9164 allow_undefined_flag=unsupported
9165 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'
9166 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9167 ;;
9168
9169 osf3*)
9170 if test "$GCC" = yes; then
9171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9172 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'
9173 else
9174 allow_undefined_flag=' -expect_unresolved \*'
9175 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'
9176 fi
9177 archive_cmds_need_lc='no'
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 hardcode_libdir_separator=:
9180 ;;
9181
9182 osf4* | osf5*) # as osf3* with the addition of -msym flag
9183 if test "$GCC" = yes; then
9184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9185 archive_cmds='$CC -shared${allow_undefined_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'
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 else
9188 allow_undefined_flag=' -expect_unresolved \*'
9189 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'
9190 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~
9191 $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'
9192
9193 # Both c and cxx compiler support -rpath directly
9194 hardcode_libdir_flag_spec='-rpath $libdir'
9195 fi
9196 archive_cmds_need_lc='no'
9197 hardcode_libdir_separator=:
9198 ;;
9199
9200 solaris*)
9201 no_undefined_flag=' -z defs'
9202 if test "$GCC" = yes; then
9203 wlarc='${wl}'
9204 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9206 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9207 else
9208 case `$CC -V 2>&1` in
9209 *"Compilers 5.0"*)
9210 wlarc=''
9211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9214 ;;
9215 *)
9216 wlarc='${wl}'
9217 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9219 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9220 ;;
9221 esac
9222 fi
9223 hardcode_libdir_flag_spec='-R$libdir'
9224 hardcode_shlibpath_var=no
9225 case $host_os in
9226 solaris2.[0-5] | solaris2.[0-5].*) ;;
9227 *)
9228 # The compiler driver will combine and reorder linker options,
9229 # but understands `-z linker_flag'. GCC discards it without `$wl',
9230 # but is careful enough not to reorder.
9231 # Supported since Solaris 2.6 (maybe 2.5.1?)
9232 if test "$GCC" = yes; then
9233 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9234 else
9235 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9236 fi
9237 ;;
9238 esac
9239 link_all_deplibs=yes
9240 ;;
9241
9242 sunos4*)
9243 if test "x$host_vendor" = xsequent; then
9244 # Use $CC to link under sequent, because it throws in some extra .o
9245 # files that make .init and .fini sections work.
9246 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9247 else
9248 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9249 fi
9250 hardcode_libdir_flag_spec='-L$libdir'
9251 hardcode_direct=yes
9252 hardcode_minus_L=yes
9253 hardcode_shlibpath_var=no
9254 ;;
9255
9256 sysv4)
9257 case $host_vendor in
9258 sni)
9259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 hardcode_direct=yes # is this really true???
9261 ;;
9262 siemens)
9263 ## LD is ld it makes a PLAMLIB
9264 ## CC just makes a GrossModule.
9265 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9266 reload_cmds='$CC -r -o $output$reload_objs'
9267 hardcode_direct=no
9268 ;;
9269 motorola)
9270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9272 ;;
9273 esac
9274 runpath_var='LD_RUN_PATH'
9275 hardcode_shlibpath_var=no
9276 ;;
9277
9278 sysv4.3*)
9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 hardcode_shlibpath_var=no
9281 export_dynamic_flag_spec='-Bexport'
9282 ;;
9283
9284 sysv4*MP*)
9285 if test -d /usr/nec; then
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_shlibpath_var=no
9288 runpath_var=LD_RUN_PATH
9289 hardcode_runpath_var=yes
9290 ld_shlibs=yes
9291 fi
9292 ;;
9293
9294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9295 no_undefined_flag='${wl}-z,text'
9296 archive_cmds_need_lc=no
9297 hardcode_shlibpath_var=no
9298 runpath_var='LD_RUN_PATH'
9299
9300 if test "$GCC" = yes; then
9301 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9303 else
9304 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306 fi
9307 ;;
9308
9309 sysv5* | sco3.2v5* | sco5v6*)
9310 # Note: We can NOT use -z defs as we might desire, because we do not
9311 # link with -lc, and that would cause any symbols used from libc to
9312 # always be unresolved, which means just about no library would
9313 # ever link correctly. If we're not using GNU ld we use -z text
9314 # though, which does catch some bad symbols but isn't as heavy-handed
9315 # as -z defs.
9316 no_undefined_flag='${wl}-z,text'
9317 allow_undefined_flag='${wl}-z,nodefs'
9318 archive_cmds_need_lc=no
9319 hardcode_shlibpath_var=no
9320 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9321 hardcode_libdir_separator=':'
9322 link_all_deplibs=yes
9323 export_dynamic_flag_spec='${wl}-Bexport'
9324 runpath_var='LD_RUN_PATH'
9325
9326 if test "$GCC" = yes; then
9327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 else
9330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9332 fi
9333 ;;
9334
9335 uts4*)
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_shlibpath_var=no
9339 ;;
9340
9341 *)
9342 ld_shlibs=no
9343 ;;
9344 esac
9345
9346 if test x$host_vendor = xsni; then
9347 case $host in
9348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9349 export_dynamic_flag_spec='${wl}-Blargedynsym'
9350 ;;
9351 esac
9352 fi
9353 fi
9354
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9356 $as_echo "$ld_shlibs" >&6; }
9357 test "$ld_shlibs" = no && can_build_shared=no
9358
9359 with_gnu_ld=$with_gnu_ld
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375 #
9376 # Do we need to explicitly link libc?
9377 #
9378 case "x$archive_cmds_need_lc" in
9379 x|xyes)
9380 # Assume -lc should be added
9381 archive_cmds_need_lc=yes
9382
9383 if test "$enable_shared" = yes && test "$GCC" = yes; then
9384 case $archive_cmds in
9385 *'~'*)
9386 # FIXME: we may have to deal with multi-command sequences.
9387 ;;
9388 '$CC '*)
9389 # Test whether the compiler implicitly links with -lc since on some
9390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9391 # to ld, don't add -lc before -lgcc.
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9394 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 $RM conftest*
9398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9399
9400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9401 (eval $ac_compile) 2>&5
9402 ac_status=$?
9403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9404 test $ac_status = 0; } 2>conftest.err; then
9405 soname=conftest
9406 lib=conftest
9407 libobjs=conftest.$ac_objext
9408 deplibs=
9409 wl=$lt_prog_compiler_wl
9410 pic_flag=$lt_prog_compiler_pic
9411 compiler_flags=-v
9412 linker_flags=-v
9413 verstring=
9414 output_objdir=.
9415 libname=conftest
9416 lt_save_allow_undefined_flag=$allow_undefined_flag
9417 allow_undefined_flag=
9418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9419 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9420 ac_status=$?
9421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9422 test $ac_status = 0; }
9423 then
9424 lt_cv_archive_cmds_need_lc=no
9425 else
9426 lt_cv_archive_cmds_need_lc=yes
9427 fi
9428 allow_undefined_flag=$lt_save_allow_undefined_flag
9429 else
9430 cat conftest.err 1>&5
9431 fi
9432 $RM conftest*
9433
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9436 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9437 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9438 ;;
9439 esac
9440 fi
9441 ;;
9442 esac
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9601 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9602
9603 if test "$GCC" = yes; then
9604 case $host_os in
9605 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9606 *) lt_awk_arg="/^libraries:/" ;;
9607 esac
9608 case $host_os in
9609 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9610 *) lt_sed_strip_eq="s,=/,/,g" ;;
9611 esac
9612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9613 case $lt_search_path_spec in
9614 *\;*)
9615 # if the path contains ";" then we assume it to be the separator
9616 # otherwise default to the standard path separator (i.e. ":") - it is
9617 # assumed that no part of a normal pathname contains ";" but that should
9618 # okay in the real world where ";" in dirpaths is itself problematic.
9619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9620 ;;
9621 *)
9622 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9623 ;;
9624 esac
9625 # Ok, now we have the path, separated by spaces, we can step through it
9626 # and add multilib dir if necessary.
9627 lt_tmp_lt_search_path_spec=
9628 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9629 for lt_sys_path in $lt_search_path_spec; do
9630 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9632 else
9633 test -d "$lt_sys_path" && \
9634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9635 fi
9636 done
9637 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9638 BEGIN {RS=" "; FS="/|\n";} {
9639 lt_foo="";
9640 lt_count=0;
9641 for (lt_i = NF; lt_i > 0; lt_i--) {
9642 if ($lt_i != "" && $lt_i != ".") {
9643 if ($lt_i == "..") {
9644 lt_count++;
9645 } else {
9646 if (lt_count == 0) {
9647 lt_foo="/" $lt_i lt_foo;
9648 } else {
9649 lt_count--;
9650 }
9651 }
9652 }
9653 }
9654 if (lt_foo != "") { lt_freq[lt_foo]++; }
9655 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9656 }'`
9657 # AWK program above erroneously prepends '/' to C:/dos/paths
9658 # for these hosts.
9659 case $host_os in
9660 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9661 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9662 esac
9663 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9664 else
9665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9666 fi
9667 library_names_spec=
9668 libname_spec='lib$name'
9669 soname_spec=
9670 shrext_cmds=".so"
9671 postinstall_cmds=
9672 postuninstall_cmds=
9673 finish_cmds=
9674 finish_eval=
9675 shlibpath_var=
9676 shlibpath_overrides_runpath=unknown
9677 version_type=none
9678 dynamic_linker="$host_os ld.so"
9679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9680 need_lib_prefix=unknown
9681 hardcode_into_libs=no
9682
9683 # when you set need_version to no, make sure it does not cause -set_version
9684 # flags to be left without arguments
9685 need_version=unknown
9686
9687 case $host_os in
9688 aix3*)
9689 version_type=linux
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9691 shlibpath_var=LIBPATH
9692
9693 # AIX 3 has no versioning support, so we append a major version to the name.
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 ;;
9696
9697 aix[4-9]*)
9698 version_type=linux
9699 need_lib_prefix=no
9700 need_version=no
9701 hardcode_into_libs=yes
9702 if test "$host_cpu" = ia64; then
9703 # AIX 5 supports IA64
9704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 else
9707 # With GCC up to 2.95.x, collect2 would create an import file
9708 # for dependence libraries. The import file would start with
9709 # the line `#! .'. This would cause the generated library to
9710 # depend on `.', always an invalid library. This was fixed in
9711 # development snapshots of GCC prior to 3.0.
9712 case $host_os in
9713 aix4 | aix4.[01] | aix4.[01].*)
9714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9715 echo ' yes '
9716 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9717 :
9718 else
9719 can_build_shared=no
9720 fi
9721 ;;
9722 esac
9723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9724 # soname into executable. Probably we can add versioning support to
9725 # collect2, so additional links can be useful in future.
9726 if test "$aix_use_runtimelinking" = yes; then
9727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9728 # instead of lib<name>.a to let people know that these are not
9729 # typical AIX shared libraries.
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 else
9732 # We preserve .a as extension for shared libraries through AIX4.2
9733 # and later when we are not doing run time linking.
9734 library_names_spec='${libname}${release}.a $libname.a'
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 fi
9737 shlibpath_var=LIBPATH
9738 fi
9739 ;;
9740
9741 amigaos*)
9742 case $host_cpu in
9743 powerpc)
9744 # Since July 2007 AmigaOS4 officially supports .so libraries.
9745 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 ;;
9748 m68k)
9749 library_names_spec='$libname.ixlibrary $libname.a'
9750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9751 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'
9752 ;;
9753 esac
9754 ;;
9755
9756 beos*)
9757 library_names_spec='${libname}${shared_ext}'
9758 dynamic_linker="$host_os ld.so"
9759 shlibpath_var=LIBRARY_PATH
9760 ;;
9761
9762 bsdi[45]*)
9763 version_type=linux
9764 need_version=no
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9771 # the default ld.so.conf also contains /usr/contrib/lib and
9772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9773 # libtool to hard-code these into programs
9774 ;;
9775
9776 cygwin* | mingw* | pw32* | cegcc*)
9777 version_type=windows
9778 shrext_cmds=".dll"
9779 need_version=no
9780 need_lib_prefix=no
9781
9782 case $GCC,$host_os in
9783 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9784 library_names_spec='$libname.dll.a'
9785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9786 postinstall_cmds='base_file=`basename \${file}`~
9787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9788 dldir=$destdir/`dirname \$dlpath`~
9789 test -d \$dldir || mkdir -p \$dldir~
9790 $install_prog $dir/$dlname \$dldir/$dlname~
9791 chmod a+x \$dldir/$dlname~
9792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9794 fi'
9795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9796 dlpath=$dir/\$dldll~
9797 $RM \$dlpath'
9798 shlibpath_overrides_runpath=yes
9799
9800 case $host_os in
9801 cygwin*)
9802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9804
9805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9806 ;;
9807 mingw* | cegcc*)
9808 # MinGW DLLs use traditional 'lib' prefix
9809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9810 ;;
9811 pw32*)
9812 # pw32 DLLs use 'pw' prefix rather than 'lib'
9813 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9814 ;;
9815 esac
9816 ;;
9817
9818 *)
9819 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9820 ;;
9821 esac
9822 dynamic_linker='Win32 ld.exe'
9823 # FIXME: first we should search . and the directory the executable is in
9824 shlibpath_var=PATH
9825 ;;
9826
9827 darwin* | rhapsody*)
9828 dynamic_linker="$host_os dyld"
9829 version_type=darwin
9830 need_lib_prefix=no
9831 need_version=no
9832 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9833 soname_spec='${libname}${release}${major}$shared_ext'
9834 shlibpath_overrides_runpath=yes
9835 shlibpath_var=DYLD_LIBRARY_PATH
9836 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9837
9838 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9840 ;;
9841
9842 dgux*)
9843 version_type=linux
9844 need_lib_prefix=no
9845 need_version=no
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 shlibpath_var=LD_LIBRARY_PATH
9849 ;;
9850
9851 freebsd1*)
9852 dynamic_linker=no
9853 ;;
9854
9855 freebsd* | dragonfly*)
9856 # DragonFly does not have aout. When/if they implement a new
9857 # versioning mechanism, adjust this.
9858 if test -x /usr/bin/objformat; then
9859 objformat=`/usr/bin/objformat`
9860 else
9861 case $host_os in
9862 freebsd[123]*) objformat=aout ;;
9863 *) objformat=elf ;;
9864 esac
9865 fi
9866 version_type=freebsd-$objformat
9867 case $version_type in
9868 freebsd-elf*)
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9870 need_version=no
9871 need_lib_prefix=no
9872 ;;
9873 freebsd-*)
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9875 need_version=yes
9876 ;;
9877 esac
9878 shlibpath_var=LD_LIBRARY_PATH
9879 case $host_os in
9880 freebsd2*)
9881 shlibpath_overrides_runpath=yes
9882 ;;
9883 freebsd3.[01]* | freebsdelf3.[01]*)
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9886 ;;
9887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9891 ;;
9892 *) # from 4.6 on, and DragonFly
9893 shlibpath_overrides_runpath=yes
9894 hardcode_into_libs=yes
9895 ;;
9896 esac
9897 ;;
9898
9899 gnu*)
9900 version_type=linux
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 hardcode_into_libs=yes
9907 ;;
9908
9909 haiku*)
9910 version_type=linux
9911 need_lib_prefix=no
9912 need_version=no
9913 dynamic_linker="$host_os runtime_loader"
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 shlibpath_var=LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9919 hardcode_into_libs=yes
9920 ;;
9921
9922 hpux9* | hpux10* | hpux11*)
9923 # Give a soname corresponding to the major version so that dld.sl refuses to
9924 # link against other versions.
9925 version_type=sunos
9926 need_lib_prefix=no
9927 need_version=no
9928 case $host_cpu in
9929 ia64*)
9930 shrext_cmds='.so'
9931 hardcode_into_libs=yes
9932 dynamic_linker="$host_os dld.so"
9933 shlibpath_var=LD_LIBRARY_PATH
9934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 if test "X$HPUX_IA64_MODE" = X32; then
9938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9939 else
9940 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9941 fi
9942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9943 ;;
9944 hppa*64*)
9945 shrext_cmds='.sl'
9946 hardcode_into_libs=yes
9947 dynamic_linker="$host_os dld.sl"
9948 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9952 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9954 ;;
9955 *)
9956 shrext_cmds='.sl'
9957 dynamic_linker="$host_os dld.sl"
9958 shlibpath_var=SHLIB_PATH
9959 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 ;;
9963 esac
9964 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9965 postinstall_cmds='chmod 555 $lib'
9966 # or fails outright, so override atomically:
9967 install_override_mode=555
9968 ;;
9969
9970 interix[3-9]*)
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 shlibpath_overrides_runpath=no
9979 hardcode_into_libs=yes
9980 ;;
9981
9982 irix5* | irix6* | nonstopux*)
9983 case $host_os in
9984 nonstopux*) version_type=nonstopux ;;
9985 *)
9986 if test "$lt_cv_prog_gnu_ld" = yes; then
9987 version_type=linux
9988 else
9989 version_type=irix
9990 fi ;;
9991 esac
9992 need_lib_prefix=no
9993 need_version=no
9994 soname_spec='${libname}${release}${shared_ext}$major'
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9996 case $host_os in
9997 irix5* | nonstopux*)
9998 libsuff= shlibsuff=
9999 ;;
10000 *)
10001 case $LD in # libtool.m4 will add one of these switches to LD
10002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10003 libsuff= shlibsuff= libmagic=32-bit;;
10004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10005 libsuff=32 shlibsuff=N32 libmagic=N32;;
10006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10007 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10008 *) libsuff= shlibsuff= libmagic=never-match;;
10009 esac
10010 ;;
10011 esac
10012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10013 shlibpath_overrides_runpath=no
10014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10016 hardcode_into_libs=yes
10017 ;;
10018
10019 # No shared lib support for Linux oldld, aout, or coff.
10020 linux*oldld* | linux*aout* | linux*coff*)
10021 dynamic_linker=no
10022 ;;
10023
10024 # This must be Linux ELF.
10025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034
10035 # Some binutils ld are patched to set DT_RUNPATH
10036 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 lt_cv_shlibpath_overrides_runpath=no
10040 save_LDFLAGS=$LDFLAGS
10041 save_libdir=$libdir
10042 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10043 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046
10047 int
10048 main ()
10049 {
10050
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10057 lt_cv_shlibpath_overrides_runpath=yes
10058 fi
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LDFLAGS=$save_LDFLAGS
10063 libdir=$save_libdir
10064
10065 fi
10066
10067 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10068
10069 # This implies no fast_install, which is unacceptable.
10070 # Some rework will be needed to allow for fast_install
10071 # before this can be enabled.
10072 hardcode_into_libs=yes
10073
10074 # Append ld.so.conf contents to the search path
10075 if test -f /etc/ld.so.conf; then
10076 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' ' '`
10077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10078 fi
10079
10080 # We used to test for /lib/ld.so.1 and disable shared libraries on
10081 # powerpc, because MkLinux only supported shared libraries with the
10082 # GNU dynamic linker. Since this was broken with cross compilers,
10083 # most powerpc-linux boxes support dynamic linking these days and
10084 # people can always --disable-shared, the test was removed, and we
10085 # assume the GNU/Linux dynamic linker is in use.
10086 dynamic_linker='GNU/Linux ld.so'
10087 ;;
10088
10089 netbsd*)
10090 version_type=sunos
10091 need_lib_prefix=no
10092 need_version=no
10093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10096 dynamic_linker='NetBSD (a.out) ld.so'
10097 else
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 dynamic_linker='NetBSD ld.elf_so'
10101 fi
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes
10104 hardcode_into_libs=yes
10105 ;;
10106
10107 newsos6)
10108 version_type=linux
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=yes
10112 ;;
10113
10114 *nto* | *qnx*)
10115 version_type=qnx
10116 need_lib_prefix=no
10117 need_version=no
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=no
10122 hardcode_into_libs=yes
10123 dynamic_linker='ldqnx.so'
10124 ;;
10125
10126 openbsd*)
10127 version_type=sunos
10128 sys_lib_dlsearch_path_spec="/usr/lib"
10129 need_lib_prefix=no
10130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10131 case $host_os in
10132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10133 *) need_version=no ;;
10134 esac
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10139 case $host_os in
10140 openbsd2.[89] | openbsd2.[89].*)
10141 shlibpath_overrides_runpath=no
10142 ;;
10143 *)
10144 shlibpath_overrides_runpath=yes
10145 ;;
10146 esac
10147 else
10148 shlibpath_overrides_runpath=yes
10149 fi
10150 ;;
10151
10152 os2*)
10153 libname_spec='$name'
10154 shrext_cmds=".dll"
10155 need_lib_prefix=no
10156 library_names_spec='$libname${shared_ext} $libname.a'
10157 dynamic_linker='OS/2 ld.exe'
10158 shlibpath_var=LIBPATH
10159 ;;
10160
10161 osf3* | osf4* | osf5*)
10162 version_type=osf
10163 need_lib_prefix=no
10164 need_version=no
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10170 ;;
10171
10172 rdos*)
10173 dynamic_linker=no
10174 ;;
10175
10176 solaris*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10184 hardcode_into_libs=yes
10185 # ldd complains unless libraries are executable
10186 postinstall_cmds='chmod +x $lib'
10187 ;;
10188
10189 sunos4*)
10190 version_type=sunos
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=yes
10195 if test "$with_gnu_ld" = yes; then
10196 need_lib_prefix=no
10197 fi
10198 need_version=yes
10199 ;;
10200
10201 sysv4 | sysv4.3*)
10202 version_type=linux
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 case $host_vendor in
10207 sni)
10208 shlibpath_overrides_runpath=no
10209 need_lib_prefix=no
10210 runpath_var=LD_RUN_PATH
10211 ;;
10212 siemens)
10213 need_lib_prefix=no
10214 ;;
10215 motorola)
10216 need_lib_prefix=no
10217 need_version=no
10218 shlibpath_overrides_runpath=no
10219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10220 ;;
10221 esac
10222 ;;
10223
10224 sysv4*MP*)
10225 if test -d /usr/nec ;then
10226 version_type=linux
10227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10228 soname_spec='$libname${shared_ext}.$major'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 fi
10231 ;;
10232
10233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10234 version_type=freebsd-elf
10235 need_lib_prefix=no
10236 need_version=no
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10241 hardcode_into_libs=yes
10242 if test "$with_gnu_ld" = yes; then
10243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10244 else
10245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10246 case $host_os in
10247 sco3.2v5*)
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10249 ;;
10250 esac
10251 fi
10252 sys_lib_dlsearch_path_spec='/usr/lib'
10253 ;;
10254
10255 tpf*)
10256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath=no
10263 hardcode_into_libs=yes
10264 ;;
10265
10266 uts4*)
10267 version_type=linux
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 ;;
10272
10273 *)
10274 dynamic_linker=no
10275 ;;
10276 esac
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10278 $as_echo "$dynamic_linker" >&6; }
10279 test "$dynamic_linker" = no && can_build_shared=no
10280
10281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10282 if test "$GCC" = yes; then
10283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10284 fi
10285
10286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10288 fi
10289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10291 fi
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10385 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10386 hardcode_action=
10387 if test -n "$hardcode_libdir_flag_spec" ||
10388 test -n "$runpath_var" ||
10389 test "X$hardcode_automatic" = "Xyes" ; then
10390
10391 # We can hardcode non-existent directories.
10392 if test "$hardcode_direct" != no &&
10393 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10394 # have to relink, otherwise we might link with an installed library
10395 # when we should be linking with a yet-to-be-installed one
10396 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10397 test "$hardcode_minus_L" != no; then
10398 # Linking always hardcodes the temporary library directory.
10399 hardcode_action=relink
10400 else
10401 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10402 hardcode_action=immediate
10403 fi
10404 else
10405 # We cannot hardcode anything, or else we can only hardcode existing
10406 # directories.
10407 hardcode_action=unsupported
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10410 $as_echo "$hardcode_action" >&6; }
10411
10412 if test "$hardcode_action" = relink ||
10413 test "$inherit_rpath" = yes; then
10414 # Fast installation is not supported
10415 enable_fast_install=no
10416 elif test "$shlibpath_overrides_runpath" = yes ||
10417 test "$enable_shared" = no; then
10418 # Fast installation is not necessary
10419 enable_fast_install=needless
10420 fi
10421
10422
10423
10424
10425
10426
10427 if test "x$enable_dlopen" != xyes; then
10428 enable_dlopen=unknown
10429 enable_dlopen_self=unknown
10430 enable_dlopen_self_static=unknown
10431 else
10432 lt_cv_dlopen=no
10433 lt_cv_dlopen_libs=
10434
10435 case $host_os in
10436 beos*)
10437 lt_cv_dlopen="load_add_on"
10438 lt_cv_dlopen_libs=
10439 lt_cv_dlopen_self=yes
10440 ;;
10441
10442 mingw* | pw32* | cegcc*)
10443 lt_cv_dlopen="LoadLibrary"
10444 lt_cv_dlopen_libs=
10445 ;;
10446
10447 cygwin*)
10448 lt_cv_dlopen="dlopen"
10449 lt_cv_dlopen_libs=
10450 ;;
10451
10452 darwin*)
10453 # if libdl is installed we need to link against it
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10455 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 ac_check_lib_save_LIBS=$LIBS
10460 LIBS="-ldl $LIBS"
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463
10464 /* Override any GCC internal prototype to avoid an error.
10465 Use char because int might match the return type of a GCC
10466 builtin and then its argument prototype would still apply. */
10467 #ifdef __cplusplus
10468 extern "C"
10469 #endif
10470 char dlopen ();
10471 int
10472 main ()
10473 {
10474 return dlopen ();
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 ac_cv_lib_dl_dlopen=yes
10481 else
10482 ac_cv_lib_dl_dlopen=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10487 fi
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10489 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10490 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10492 else
10493
10494 lt_cv_dlopen="dyld"
10495 lt_cv_dlopen_libs=
10496 lt_cv_dlopen_self=yes
10497
10498 fi
10499
10500 ;;
10501
10502 *)
10503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10504 if test "x$ac_cv_func_shl_load" = x""yes; then :
10505 lt_cv_dlopen="shl_load"
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10508 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10509 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-ldld $LIBS"
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516
10517 /* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 char shl_load ();
10524 int
10525 main ()
10526 {
10527 return shl_load ();
10528 ;
10529 return 0;
10530 }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 ac_cv_lib_dld_shl_load=yes
10534 else
10535 ac_cv_lib_dld_shl_load=no
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10542 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10543 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10545 else
10546 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10547 if test "x$ac_cv_func_dlopen" = x""yes; then :
10548 lt_cv_dlopen="dlopen"
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-ldl $LIBS"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559
10560 /* Override any GCC internal prototype to avoid an error.
10561 Use char because int might match the return type of a GCC
10562 builtin and then its argument prototype would still apply. */
10563 #ifdef __cplusplus
10564 extern "C"
10565 #endif
10566 char dlopen ();
10567 int
10568 main ()
10569 {
10570 return dlopen ();
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 ac_cv_lib_dl_dlopen=yes
10577 else
10578 ac_cv_lib_dl_dlopen=no
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10585 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10586 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10588 else
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10590 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10591 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lsvld $LIBS"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598
10599 /* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 char dlopen ();
10606 int
10607 main ()
10608 {
10609 return dlopen ();
10610 ;
10611 return 0;
10612 }
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"; then :
10615 ac_cv_lib_svld_dlopen=yes
10616 else
10617 ac_cv_lib_svld_dlopen=no
10618 fi
10619 rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10622 fi
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10624 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10625 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10627 else
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10629 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10630 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 ac_check_lib_save_LIBS=$LIBS
10634 LIBS="-ldld $LIBS"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637
10638 /* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 char dld_link ();
10645 int
10646 main ()
10647 {
10648 return dld_link ();
10649 ;
10650 return 0;
10651 }
10652 _ACEOF
10653 if ac_fn_c_try_link "$LINENO"; then :
10654 ac_cv_lib_dld_dld_link=yes
10655 else
10656 ac_cv_lib_dld_dld_link=no
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10660 LIBS=$ac_check_lib_save_LIBS
10661 fi
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10663 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10664 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10665 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10666 fi
10667
10668
10669 fi
10670
10671
10672 fi
10673
10674
10675 fi
10676
10677
10678 fi
10679
10680
10681 fi
10682
10683 ;;
10684 esac
10685
10686 if test "x$lt_cv_dlopen" != xno; then
10687 enable_dlopen=yes
10688 else
10689 enable_dlopen=no
10690 fi
10691
10692 case $lt_cv_dlopen in
10693 dlopen)
10694 save_CPPFLAGS="$CPPFLAGS"
10695 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10696
10697 save_LDFLAGS="$LDFLAGS"
10698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10699
10700 save_LIBS="$LIBS"
10701 LIBS="$lt_cv_dlopen_libs $LIBS"
10702
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10704 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10705 if test "${lt_cv_dlopen_self+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 if test "$cross_compiling" = yes; then :
10709 lt_cv_dlopen_self=cross
10710 else
10711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10712 lt_status=$lt_dlunknown
10713 cat > conftest.$ac_ext <<_LT_EOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10716
10717 #if HAVE_DLFCN_H
10718 #include <dlfcn.h>
10719 #endif
10720
10721 #include <stdio.h>
10722
10723 #ifdef RTLD_GLOBAL
10724 # define LT_DLGLOBAL RTLD_GLOBAL
10725 #else
10726 # ifdef DL_GLOBAL
10727 # define LT_DLGLOBAL DL_GLOBAL
10728 # else
10729 # define LT_DLGLOBAL 0
10730 # endif
10731 #endif
10732
10733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10734 find out it does not work in some platform. */
10735 #ifndef LT_DLLAZY_OR_NOW
10736 # ifdef RTLD_LAZY
10737 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10738 # else
10739 # ifdef DL_LAZY
10740 # define LT_DLLAZY_OR_NOW DL_LAZY
10741 # else
10742 # ifdef RTLD_NOW
10743 # define LT_DLLAZY_OR_NOW RTLD_NOW
10744 # else
10745 # ifdef DL_NOW
10746 # define LT_DLLAZY_OR_NOW DL_NOW
10747 # else
10748 # define LT_DLLAZY_OR_NOW 0
10749 # endif
10750 # endif
10751 # endif
10752 # endif
10753 #endif
10754
10755 /* When -fvisbility=hidden is used, assume the code has been annotated
10756 correspondingly for the symbols needed. */
10757 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10758 void fnord () __attribute__((visibility("default")));
10759 #endif
10760
10761 void fnord () { int i=42; }
10762 int main ()
10763 {
10764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10765 int status = $lt_dlunknown;
10766
10767 if (self)
10768 {
10769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10770 else
10771 {
10772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10773 else puts (dlerror ());
10774 }
10775 /* dlclose (self); */
10776 }
10777 else
10778 puts (dlerror ());
10779
10780 return status;
10781 }
10782 _LT_EOF
10783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10784 (eval $ac_link) 2>&5
10785 ac_status=$?
10786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10788 (./conftest; exit; ) >&5 2>/dev/null
10789 lt_status=$?
10790 case x$lt_status in
10791 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10792 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10793 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10794 esac
10795 else :
10796 # compilation failed
10797 lt_cv_dlopen_self=no
10798 fi
10799 fi
10800 rm -fr conftest*
10801
10802
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10805 $as_echo "$lt_cv_dlopen_self" >&6; }
10806
10807 if test "x$lt_cv_dlopen_self" = xyes; then
10808 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10810 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10811 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 if test "$cross_compiling" = yes; then :
10815 lt_cv_dlopen_self_static=cross
10816 else
10817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10818 lt_status=$lt_dlunknown
10819 cat > conftest.$ac_ext <<_LT_EOF
10820 #line $LINENO "configure"
10821 #include "confdefs.h"
10822
10823 #if HAVE_DLFCN_H
10824 #include <dlfcn.h>
10825 #endif
10826
10827 #include <stdio.h>
10828
10829 #ifdef RTLD_GLOBAL
10830 # define LT_DLGLOBAL RTLD_GLOBAL
10831 #else
10832 # ifdef DL_GLOBAL
10833 # define LT_DLGLOBAL DL_GLOBAL
10834 # else
10835 # define LT_DLGLOBAL 0
10836 # endif
10837 #endif
10838
10839 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10840 find out it does not work in some platform. */
10841 #ifndef LT_DLLAZY_OR_NOW
10842 # ifdef RTLD_LAZY
10843 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10844 # else
10845 # ifdef DL_LAZY
10846 # define LT_DLLAZY_OR_NOW DL_LAZY
10847 # else
10848 # ifdef RTLD_NOW
10849 # define LT_DLLAZY_OR_NOW RTLD_NOW
10850 # else
10851 # ifdef DL_NOW
10852 # define LT_DLLAZY_OR_NOW DL_NOW
10853 # else
10854 # define LT_DLLAZY_OR_NOW 0
10855 # endif
10856 # endif
10857 # endif
10858 # endif
10859 #endif
10860
10861 /* When -fvisbility=hidden is used, assume the code has been annotated
10862 correspondingly for the symbols needed. */
10863 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10864 void fnord () __attribute__((visibility("default")));
10865 #endif
10866
10867 void fnord () { int i=42; }
10868 int main ()
10869 {
10870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10871 int status = $lt_dlunknown;
10872
10873 if (self)
10874 {
10875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10876 else
10877 {
10878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10879 else puts (dlerror ());
10880 }
10881 /* dlclose (self); */
10882 }
10883 else
10884 puts (dlerror ());
10885
10886 return status;
10887 }
10888 _LT_EOF
10889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10890 (eval $ac_link) 2>&5
10891 ac_status=$?
10892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10894 (./conftest; exit; ) >&5 2>/dev/null
10895 lt_status=$?
10896 case x$lt_status in
10897 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10898 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10899 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10900 esac
10901 else :
10902 # compilation failed
10903 lt_cv_dlopen_self_static=no
10904 fi
10905 fi
10906 rm -fr conftest*
10907
10908
10909 fi
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10911 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10912 fi
10913
10914 CPPFLAGS="$save_CPPFLAGS"
10915 LDFLAGS="$save_LDFLAGS"
10916 LIBS="$save_LIBS"
10917 ;;
10918 esac
10919
10920 case $lt_cv_dlopen_self in
10921 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10922 *) enable_dlopen_self=unknown ;;
10923 esac
10924
10925 case $lt_cv_dlopen_self_static in
10926 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10927 *) enable_dlopen_self_static=unknown ;;
10928 esac
10929 fi
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947 striplib=
10948 old_striplib=
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10950 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10951 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10952 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10953 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955 $as_echo "yes" >&6; }
10956 else
10957 # FIXME - insert some real tests, host_os isn't really good enough
10958 case $host_os in
10959 darwin*)
10960 if test -n "$STRIP" ; then
10961 striplib="$STRIP -x"
10962 old_striplib="$STRIP -S"
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964 $as_echo "yes" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10968 fi
10969 ;;
10970 *)
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 ;;
10974 esac
10975 fi
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988 # Report which library types will actually be built
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10990 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10992 $as_echo "$can_build_shared" >&6; }
10993
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10995 $as_echo_n "checking whether to build shared libraries... " >&6; }
10996 test "$can_build_shared" = "no" && enable_shared=no
10997
10998 # On AIX, shared libraries and static libraries use the same namespace, and
10999 # are all built from PIC.
11000 case $host_os in
11001 aix3*)
11002 test "$enable_shared" = yes && enable_static=no
11003 if test -n "$RANLIB"; then
11004 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11005 postinstall_cmds='$RANLIB $lib'
11006 fi
11007 ;;
11008
11009 aix[4-9]*)
11010 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11011 test "$enable_shared" = yes && enable_static=no
11012 fi
11013 ;;
11014 esac
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11016 $as_echo "$enable_shared" >&6; }
11017
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11019 $as_echo_n "checking whether to build static libraries... " >&6; }
11020 # Make sure either enable_shared or enable_static is yes.
11021 test "$enable_shared" = yes || enable_static=yes
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11023 $as_echo "$enable_static" >&6; }
11024
11025
11026
11027
11028 fi
11029 ac_ext=c
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11034
11035 CC="$lt_save_CC"
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049 ac_config_commands="$ac_config_commands libtool"
11050
11051
11052
11053
11054 # Only expand once:
11055
11056
11057
11058 # Checks for header files.
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11060 $as_echo_n "checking for ANSI C header files... " >&6; }
11061 if test "${ac_cv_header_stdc+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <stdlib.h>
11067 #include <stdarg.h>
11068 #include <string.h>
11069 #include <float.h>
11070
11071 int
11072 main ()
11073 {
11074
11075 ;
11076 return 0;
11077 }
11078 _ACEOF
11079 if ac_fn_c_try_compile "$LINENO"; then :
11080 ac_cv_header_stdc=yes
11081 else
11082 ac_cv_header_stdc=no
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085
11086 if test $ac_cv_header_stdc = yes; then
11087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 #include <string.h>
11091
11092 _ACEOF
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094 $EGREP "memchr" >/dev/null 2>&1; then :
11095
11096 else
11097 ac_cv_header_stdc=no
11098 fi
11099 rm -f conftest*
11100
11101 fi
11102
11103 if test $ac_cv_header_stdc = yes; then
11104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11107 #include <stdlib.h>
11108
11109 _ACEOF
11110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11111 $EGREP "free" >/dev/null 2>&1; then :
11112
11113 else
11114 ac_cv_header_stdc=no
11115 fi
11116 rm -f conftest*
11117
11118 fi
11119
11120 if test $ac_cv_header_stdc = yes; then
11121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11122 if test "$cross_compiling" = yes; then :
11123 :
11124 else
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11127 #include <ctype.h>
11128 #include <stdlib.h>
11129 #if ((' ' & 0x0FF) == 0x020)
11130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11132 #else
11133 # define ISLOWER(c) \
11134 (('a' <= (c) && (c) <= 'i') \
11135 || ('j' <= (c) && (c) <= 'r') \
11136 || ('s' <= (c) && (c) <= 'z'))
11137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11138 #endif
11139
11140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11141 int
11142 main ()
11143 {
11144 int i;
11145 for (i = 0; i < 256; i++)
11146 if (XOR (islower (i), ISLOWER (i))
11147 || toupper (i) != TOUPPER (i))
11148 return 2;
11149 return 0;
11150 }
11151 _ACEOF
11152 if ac_fn_c_try_run "$LINENO"; then :
11153
11154 else
11155 ac_cv_header_stdc=no
11156 fi
11157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11158 conftest.$ac_objext conftest.beam conftest.$ac_ext
11159 fi
11160
11161 fi
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11164 $as_echo "$ac_cv_header_stdc" >&6; }
11165 if test $ac_cv_header_stdc = yes; then
11166
11167 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11168
11169 fi
11170
11171 for ac_header in malloc.h stdlib.h string.h strings.h
11172 do :
11173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11175 eval as_val=\$$as_ac_Header
11176 if test "x$as_val" = x""yes; then :
11177 cat >>confdefs.h <<_ACEOF
11178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11179 _ACEOF
11180
11181 fi
11182
11183 done
11184
11185
11186 # Checks for typedefs, structures, and compiler characteristics.
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11188 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11189 if test "${ac_cv_c_const+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194
11195 int
11196 main ()
11197 {
11198 /* FIXME: Include the comments suggested by Paul. */
11199 #ifndef __cplusplus
11200 /* Ultrix mips cc rejects this. */
11201 typedef int charset[2];
11202 const charset cs;
11203 /* SunOS 4.1.1 cc rejects this. */
11204 char const *const *pcpcc;
11205 char **ppc;
11206 /* NEC SVR4.0.2 mips cc rejects this. */
11207 struct point {int x, y;};
11208 static struct point const zero = {0,0};
11209 /* AIX XL C 1.02.0.0 rejects this.
11210 It does not let you subtract one const X* pointer from another in
11211 an arm of an if-expression whose if-part is not a constant
11212 expression */
11213 const char *g = "string";
11214 pcpcc = &g + (g ? g-g : 0);
11215 /* HPUX 7.0 cc rejects these. */
11216 ++pcpcc;
11217 ppc = (char**) pcpcc;
11218 pcpcc = (char const *const *) ppc;
11219 { /* SCO 3.2v4 cc rejects this. */
11220 char *t;
11221 char const *s = 0 ? (char *) 0 : (char const *) 0;
11222
11223 *t++ = 0;
11224 if (s) return 0;
11225 }
11226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11227 int x[] = {25, 17};
11228 const int *foo = &x[0];
11229 ++foo;
11230 }
11231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11232 typedef const int *iptr;
11233 iptr p = 0;
11234 ++p;
11235 }
11236 { /* AIX XL C 1.02.0.0 rejects this saying
11237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11238 struct s { int j; const int *ap[3]; };
11239 struct s *b; b->j = 5;
11240 }
11241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11242 const int foo = 10;
11243 if (!foo) return 0;
11244 }
11245 return !cs[0] && !zero.x;
11246 #endif
11247
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_compile "$LINENO"; then :
11253 ac_cv_c_const=yes
11254 else
11255 ac_cv_c_const=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11260 $as_echo "$ac_cv_c_const" >&6; }
11261 if test $ac_cv_c_const = no; then
11262
11263 $as_echo "#define const /**/" >>confdefs.h
11264
11265 fi
11266
11267 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11268 if test "x$ac_cv_type_size_t" = x""yes; then :
11269
11270 else
11271
11272 cat >>confdefs.h <<_ACEOF
11273 #define size_t unsigned int
11274 _ACEOF
11275
11276 fi
11277
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11279 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11280 if test "${ac_cv_struct_tm+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #include <sys/types.h>
11286 #include <time.h>
11287
11288 int
11289 main ()
11290 {
11291 struct tm tm;
11292 int *p = &tm.tm_sec;
11293 return !p;
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_compile "$LINENO"; then :
11299 ac_cv_struct_tm=time.h
11300 else
11301 ac_cv_struct_tm=sys/time.h
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11306 $as_echo "$ac_cv_struct_tm" >&6; }
11307 if test $ac_cv_struct_tm = sys/time.h; then
11308
11309 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11310
11311 fi
11312
11313
11314 # Checks for library functions.
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11316 $as_echo_n "checking for working strtod... " >&6; }
11317 if test "${ac_cv_func_strtod+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test "$cross_compiling" = yes; then :
11321 ac_cv_func_strtod=no
11322 else
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325
11326 $ac_includes_default
11327 #ifndef strtod
11328 double strtod ();
11329 #endif
11330 int
11331 main()
11332 {
11333 {
11334 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11335 char *string = " +69";
11336 char *term;
11337 double value;
11338 value = strtod (string, &term);
11339 if (value != 69 || term != (string + 4))
11340 return 1;
11341 }
11342
11343 {
11344 /* Under Solaris 2.4, strtod returns the wrong value for the
11345 terminating character under some conditions. */
11346 char *string = "NaN";
11347 char *term;
11348 strtod (string, &term);
11349 if (term != string && *(term - 1) == 0)
11350 return 1;
11351 }
11352 return 0;
11353 }
11354
11355 _ACEOF
11356 if ac_fn_c_try_run "$LINENO"; then :
11357 ac_cv_func_strtod=yes
11358 else
11359 ac_cv_func_strtod=no
11360 fi
11361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11362 conftest.$ac_objext conftest.beam conftest.$ac_ext
11363 fi
11364
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11367 $as_echo "$ac_cv_func_strtod" >&6; }
11368 if test $ac_cv_func_strtod = no; then
11369 case " $LIBOBJS " in
11370 *" strtod.$ac_objext "* ) ;;
11371 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11372 ;;
11373 esac
11374
11375 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11376 if test "x$ac_cv_func_pow" = x""yes; then :
11377
11378 fi
11379
11380 if test $ac_cv_func_pow = no; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11382 $as_echo_n "checking for pow in -lm... " >&6; }
11383 if test "${ac_cv_lib_m_pow+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lm $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char pow ();
11398 int
11399 main ()
11400 {
11401 return pow ();
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_m_pow=yes
11408 else
11409 ac_cv_lib_m_pow=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11416 $as_echo "$ac_cv_lib_m_pow" >&6; }
11417 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11418 POW_LIB=-lm
11419 else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11421 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11422 fi
11423
11424 fi
11425
11426 fi
11427
11428 for ac_func in memset
11429 do :
11430 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
11431 if test "x$ac_cv_func_memset" = x""yes; then :
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_MEMSET 1
11434 _ACEOF
11435
11436 else
11437 as_fn_error "memset not found in libc" "$LINENO" 5
11438 fi
11439 done
11440
11441 for ac_func in pow
11442 do :
11443 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11444 if test "x$ac_cv_func_pow" = x""yes; then :
11445 cat >>confdefs.h <<_ACEOF
11446 #define HAVE_POW 1
11447 _ACEOF
11448
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11451 $as_echo_n "checking for pow in -lm... " >&6; }
11452 if test "${ac_cv_lib_m_pow+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 ac_check_lib_save_LIBS=$LIBS
11456 LIBS="-lm $LIBS"
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char pow ();
11467 int
11468 main ()
11469 {
11470 return pow ();
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 ac_cv_lib_m_pow=yes
11477 else
11478 ac_cv_lib_m_pow=no
11479 fi
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11483 fi
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11485 $as_echo "$ac_cv_lib_m_pow" >&6; }
11486 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11487 cat >>confdefs.h <<_ACEOF
11488 #define HAVE_LIBM 1
11489 _ACEOF
11490
11491 LIBS="-lm $LIBS"
11492
11493 else
11494 as_fn_error "cannot find pow" "$LINENO" 5
11495 fi
11496
11497 fi
11498 done
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
11501 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
11502 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-lz $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char zlibVersion ();
11517 int
11518 main ()
11519 {
11520 return zlibVersion ();
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526 ac_cv_lib_z_zlibVersion=yes
11527 else
11528 ac_cv_lib_z_zlibVersion=no
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
11535 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
11536 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_LIBZ 1
11539 _ACEOF
11540
11541 LIBS="-lz $LIBS"
11542
11543 else
11544 as_fn_error "zlib not installed" "$LINENO" 5
11545 fi
11546
11547
11548 case $host_os in
11549 aix*)
11550 LIBPNG_DEFINES="-DPNG_CONFIGURE_LIBPNG -D_ALL_SOURCE";;
11551 *)
11552 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG;;
11553 esac
11554 LIBPNG_DEFINES=$LIBPNG_DEFINES
11555
11556
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
11558 $as_echo_n "checking if libraries can be versioned... " >&6; }
11559 # Special case for PE/COFF platforms: ld reports
11560 # support for version-script, but doesn't actually
11561 # DO anything with it.
11562 case $host in
11563 *cygwin* | *mingw32* )
11564 have_ld_version_script=no
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11567 ;;
11568 * )
11569 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
11570 if test "$GLD"; then
11571 have_ld_version_script=yes
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11573 $as_echo "yes" >&6; }
11574 else
11575 have_ld_version_script=no
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
11579 $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
11580 fi
11581 ;;
11582 esac
11583
11584 if test "$have_ld_version_script" = "yes"; then
11585 HAVE_LD_VERSION_SCRIPT_TRUE=
11586 HAVE_LD_VERSION_SCRIPT_FALSE='#'
11587 else
11588 HAVE_LD_VERSION_SCRIPT_TRUE='#'
11589 HAVE_LD_VERSION_SCRIPT_FALSE=
11590 fi
11591
11592
11593 if test "$have_ld_version_script" = "yes"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
11595 $as_echo_n "checking for symbol prefix... " >&6; }
11596 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
11597 | ${CPP-${CC-gcc} -E} - 2>&1 \
11598 | ${EGREP-grep} "^PREFIX=" \
11599 | ${SED-sed} "s:^PREFIX=::"`
11600
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
11602 $as_echo "$SYMBOL_PREFIX" >&6; }
11603 fi
11604
11605 # Substitutions for .in files
11606
11607
11608
11609
11610
11611 # Additional arguments (and substitutions)
11612 # Allow the pkg-config directory to be set
11613
11614 # Check whether --with-pkgconfigdir was given.
11615 if test "${with_pkgconfigdir+set}" = set; then :
11616 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
11617 else
11618 pkgconfigdir='${libdir}/pkgconfig'
11619 fi
11620
11621
11622
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
11624 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
11625
11626 # Make the *-config binary config scripts optional
11627
11628 # Check whether --with-binconfigs was given.
11629 if test "${with_binconfigs+set}" = set; then :
11630 withval=$with_binconfigs; if test "${withval}" = no; then
11631 binconfigs=
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
11633 $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
11634 else
11635 binconfigs='${binconfigs}'
11636 fi
11637 else
11638 binconfigs='${binconfigs}'
11639 fi
11640
11641
11642
11643 # Config files, substituting as above
11644 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
11645
11646 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
11647
11648
11649 cat >confcache <<\_ACEOF
11650 # This file is a shell script that caches the results of configure
11651 # tests run on this system so they can be shared between configure
11652 # scripts and configure runs, see configure's option --config-cache.
11653 # It is not useful on other systems. If it contains results you don't
11654 # want to keep, you may remove or edit it.
11655 #
11656 # config.status only pays attention to the cache file if you give it
11657 # the --recheck option to rerun configure.
11658 #
11659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11661 # following values.
11662
11663 _ACEOF
11664
11665 # The following way of writing the cache mishandles newlines in values,
11666 # but we know of no workaround that is simple, portable, and efficient.
11667 # So, we kill variables containing newlines.
11668 # Ultrix sh set writes to stderr and can't be redirected directly,
11669 # and sets the high bit in the cache file unless we assign to the vars.
11670 (
11671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11672 eval ac_val=\$$ac_var
11673 case $ac_val in #(
11674 *${as_nl}*)
11675 case $ac_var in #(
11676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11678 esac
11679 case $ac_var in #(
11680 _ | IFS | as_nl) ;; #(
11681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11682 *) { eval $ac_var=; unset $ac_var;} ;;
11683 esac ;;
11684 esac
11685 done
11686
11687 (set) 2>&1 |
11688 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11689 *${as_nl}ac_space=\ *)
11690 # `set' does not quote correctly, so add quotes: double-quote
11691 # substitution turns \\\\ into \\, and sed turns \\ into \.
11692 sed -n \
11693 "s/'/'\\\\''/g;
11694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11695 ;; #(
11696 *)
11697 # `set' quotes correctly as required by POSIX, so do not add quotes.
11698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11699 ;;
11700 esac |
11701 sort
11702 ) |
11703 sed '
11704 /^ac_cv_env_/b end
11705 t clear
11706 :clear
11707 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11708 t end
11709 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11710 :end' >>confcache
11711 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11712 if test -w "$cache_file"; then
11713 test "x$cache_file" != "x/dev/null" &&
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11715 $as_echo "$as_me: updating cache $cache_file" >&6;}
11716 cat confcache >$cache_file
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11719 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11720 fi
11721 fi
11722 rm -f confcache
11723
11724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11725 # Let make expand exec_prefix.
11726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11727
11728 DEFS=-DHAVE_CONFIG_H
11729
11730 ac_libobjs=
11731 ac_ltlibobjs=
11732 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11733 # 1. Remove the extension, and $U if already installed.
11734 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11735 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11737 # will be set to the directory where LIBOBJS objects are built.
11738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11740 done
11741 LIBOBJS=$ac_libobjs
11742
11743 LTLIBOBJS=$ac_ltlibobjs
11744
11745
11746 if test -n "$EXEEXT"; then
11747 am__EXEEXT_TRUE=
11748 am__EXEEXT_FALSE='#'
11749 else
11750 am__EXEEXT_TRUE='#'
11751 am__EXEEXT_FALSE=
11752 fi
11753
11754 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11755 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11757 fi
11758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11759 as_fn_error "conditional \"AMDEP\" was never defined.
11760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11761 fi
11762 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11763 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11765 fi
11766 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
11767 as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
11768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11769 fi
11770
11771 : ${CONFIG_STATUS=./config.status}
11772 ac_write_fail=0
11773 ac_clean_files_save=$ac_clean_files
11774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11776 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11777 as_write_fail=0
11778 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11779 #! $SHELL
11780 # Generated by $as_me.
11781 # Run this file to recreate the current configuration.
11782 # Compiler output produced by configure, useful for debugging
11783 # configure, is in config.log if it exists.
11784
11785 debug=false
11786 ac_cs_recheck=false
11787 ac_cs_silent=false
11788
11789 SHELL=\${CONFIG_SHELL-$SHELL}
11790 export SHELL
11791 _ASEOF
11792 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11793 ## -------------------- ##
11794 ## M4sh Initialization. ##
11795 ## -------------------- ##
11796
11797 # Be more Bourne compatible
11798 DUALCASE=1; export DUALCASE # for MKS sh
11799 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11800 emulate sh
11801 NULLCMD=:
11802 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11803 # is contrary to our usage. Disable this feature.
11804 alias -g '${1+"$@"}'='"$@"'
11805 setopt NO_GLOB_SUBST
11806 else
11807 case `(set -o) 2>/dev/null` in #(
11808 *posix*) :
11809 set -o posix ;; #(
11810 *) :
11811 ;;
11812 esac
11813 fi
11814
11815
11816 as_nl='
11817 '
11818 export as_nl
11819 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11820 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11822 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11823 # Prefer a ksh shell builtin over an external printf program on Solaris,
11824 # but without wasting forks for bash or zsh.
11825 if test -z "$BASH_VERSION$ZSH_VERSION" \
11826 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11827 as_echo='print -r --'
11828 as_echo_n='print -rn --'
11829 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11830 as_echo='printf %s\n'
11831 as_echo_n='printf %s'
11832 else
11833 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11834 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11835 as_echo_n='/usr/ucb/echo -n'
11836 else
11837 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11838 as_echo_n_body='eval
11839 arg=$1;
11840 case $arg in #(
11841 *"$as_nl"*)
11842 expr "X$arg" : "X\\(.*\\)$as_nl";
11843 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11844 esac;
11845 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11846 '
11847 export as_echo_n_body
11848 as_echo_n='sh -c $as_echo_n_body as_echo'
11849 fi
11850 export as_echo_body
11851 as_echo='sh -c $as_echo_body as_echo'
11852 fi
11853
11854 # The user is always right.
11855 if test "${PATH_SEPARATOR+set}" != set; then
11856 PATH_SEPARATOR=:
11857 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11858 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11859 PATH_SEPARATOR=';'
11860 }
11861 fi
11862
11863
11864 # IFS
11865 # We need space, tab and new line, in precisely that order. Quoting is
11866 # there to prevent editors from complaining about space-tab.
11867 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11868 # splitting by setting IFS to empty value.)
11869 IFS=" "" $as_nl"
11870
11871 # Find who we are. Look in the path if we contain no directory separator.
11872 case $0 in #((
11873 *[\\/]* ) as_myself=$0 ;;
11874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11876 do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11880 done
11881 IFS=$as_save_IFS
11882
11883 ;;
11884 esac
11885 # We did not find ourselves, most probably we were run as `sh COMMAND'
11886 # in which case we are not to be found in the path.
11887 if test "x$as_myself" = x; then
11888 as_myself=$0
11889 fi
11890 if test ! -f "$as_myself"; then
11891 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11892 exit 1
11893 fi
11894
11895 # Unset variables that we do not need and which cause bugs (e.g. in
11896 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11897 # suppresses any "Segmentation fault" message there. '((' could
11898 # trigger a bug in pdksh 5.2.14.
11899 for as_var in BASH_ENV ENV MAIL MAILPATH
11900 do eval test x\${$as_var+set} = xset \
11901 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11902 done
11903 PS1='$ '
11904 PS2='> '
11905 PS4='+ '
11906
11907 # NLS nuisances.
11908 LC_ALL=C
11909 export LC_ALL
11910 LANGUAGE=C
11911 export LANGUAGE
11912
11913 # CDPATH.
11914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11915
11916
11917 # as_fn_error ERROR [LINENO LOG_FD]
11918 # ---------------------------------
11919 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11920 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11921 # script with status $?, using 1 if that was 0.
11922 as_fn_error ()
11923 {
11924 as_status=$?; test $as_status -eq 0 && as_status=1
11925 if test "$3"; then
11926 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11927 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11928 fi
11929 $as_echo "$as_me: error: $1" >&2
11930 as_fn_exit $as_status
11931 } # as_fn_error
11932
11933
11934 # as_fn_set_status STATUS
11935 # -----------------------
11936 # Set $? to STATUS, without forking.
11937 as_fn_set_status ()
11938 {
11939 return $1
11940 } # as_fn_set_status
11941
11942 # as_fn_exit STATUS
11943 # -----------------
11944 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11945 as_fn_exit ()
11946 {
11947 set +e
11948 as_fn_set_status $1
11949 exit $1
11950 } # as_fn_exit
11951
11952 # as_fn_unset VAR
11953 # ---------------
11954 # Portably unset VAR.
11955 as_fn_unset ()
11956 {
11957 { eval $1=; unset $1;}
11958 }
11959 as_unset=as_fn_unset
11960 # as_fn_append VAR VALUE
11961 # ----------------------
11962 # Append the text in VALUE to the end of the definition contained in VAR. Take
11963 # advantage of any shell optimizations that allow amortized linear growth over
11964 # repeated appends, instead of the typical quadratic growth present in naive
11965 # implementations.
11966 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11967 eval 'as_fn_append ()
11968 {
11969 eval $1+=\$2
11970 }'
11971 else
11972 as_fn_append ()
11973 {
11974 eval $1=\$$1\$2
11975 }
11976 fi # as_fn_append
11977
11978 # as_fn_arith ARG...
11979 # ------------------
11980 # Perform arithmetic evaluation on the ARGs, and store the result in the
11981 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11982 # must be portable across $(()) and expr.
11983 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11984 eval 'as_fn_arith ()
11985 {
11986 as_val=$(( $* ))
11987 }'
11988 else
11989 as_fn_arith ()
11990 {
11991 as_val=`expr "$@" || test $? -eq 1`
11992 }
11993 fi # as_fn_arith
11994
11995
11996 if expr a : '\(a\)' >/dev/null 2>&1 &&
11997 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11998 as_expr=expr
11999 else
12000 as_expr=false
12001 fi
12002
12003 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12004 as_basename=basename
12005 else
12006 as_basename=false
12007 fi
12008
12009 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12010 as_dirname=dirname
12011 else
12012 as_dirname=false
12013 fi
12014
12015 as_me=`$as_basename -- "$0" ||
12016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12017 X"$0" : 'X\(//\)$' \| \
12018 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12019 $as_echo X/"$0" |
12020 sed '/^.*\/\([^/][^/]*\)\/*$/{
12021 s//\1/
12022 q
12023 }
12024 /^X\/\(\/\/\)$/{
12025 s//\1/
12026 q
12027 }
12028 /^X\/\(\/\).*/{
12029 s//\1/
12030 q
12031 }
12032 s/.*/./; q'`
12033
12034 # Avoid depending upon Character Ranges.
12035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12038 as_cr_digits='0123456789'
12039 as_cr_alnum=$as_cr_Letters$as_cr_digits
12040
12041 ECHO_C= ECHO_N= ECHO_T=
12042 case `echo -n x` in #(((((
12043 -n*)
12044 case `echo 'xy\c'` in
12045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12046 xy) ECHO_C='\c';;
12047 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12048 ECHO_T=' ';;
12049 esac;;
12050 *)
12051 ECHO_N='-n';;
12052 esac
12053
12054 rm -f conf$$ conf$$.exe conf$$.file
12055 if test -d conf$$.dir; then
12056 rm -f conf$$.dir/conf$$.file
12057 else
12058 rm -f conf$$.dir
12059 mkdir conf$$.dir 2>/dev/null
12060 fi
12061 if (echo >conf$$.file) 2>/dev/null; then
12062 if ln -s conf$$.file conf$$ 2>/dev/null; then
12063 as_ln_s='ln -s'
12064 # ... but there are two gotchas:
12065 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12066 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12067 # In both cases, we have to default to `cp -p'.
12068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12069 as_ln_s='cp -p'
12070 elif ln conf$$.file conf$$ 2>/dev/null; then
12071 as_ln_s=ln
12072 else
12073 as_ln_s='cp -p'
12074 fi
12075 else
12076 as_ln_s='cp -p'
12077 fi
12078 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12079 rmdir conf$$.dir 2>/dev/null
12080
12081
12082 # as_fn_mkdir_p
12083 # -------------
12084 # Create "$as_dir" as a directory, including parents if necessary.
12085 as_fn_mkdir_p ()
12086 {
12087
12088 case $as_dir in #(
12089 -*) as_dir=./$as_dir;;
12090 esac
12091 test -d "$as_dir" || eval $as_mkdir_p || {
12092 as_dirs=
12093 while :; do
12094 case $as_dir in #(
12095 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12096 *) as_qdir=$as_dir;;
12097 esac
12098 as_dirs="'$as_qdir' $as_dirs"
12099 as_dir=`$as_dirname -- "$as_dir" ||
12100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12101 X"$as_dir" : 'X\(//\)[^/]' \| \
12102 X"$as_dir" : 'X\(//\)$' \| \
12103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12104 $as_echo X"$as_dir" |
12105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12106 s//\1/
12107 q
12108 }
12109 /^X\(\/\/\)[^/].*/{
12110 s//\1/
12111 q
12112 }
12113 /^X\(\/\/\)$/{
12114 s//\1/
12115 q
12116 }
12117 /^X\(\/\).*/{
12118 s//\1/
12119 q
12120 }
12121 s/.*/./; q'`
12122 test -d "$as_dir" && break
12123 done
12124 test -z "$as_dirs" || eval "mkdir $as_dirs"
12125 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12126
12127
12128 } # as_fn_mkdir_p
12129 if mkdir -p . 2>/dev/null; then
12130 as_mkdir_p='mkdir -p "$as_dir"'
12131 else
12132 test -d ./-p && rmdir ./-p
12133 as_mkdir_p=false
12134 fi
12135
12136 if test -x / >/dev/null 2>&1; then
12137 as_test_x='test -x'
12138 else
12139 if ls -dL / >/dev/null 2>&1; then
12140 as_ls_L_option=L
12141 else
12142 as_ls_L_option=
12143 fi
12144 as_test_x='
12145 eval sh -c '\''
12146 if test -d "$1"; then
12147 test -d "$1/.";
12148 else
12149 case $1 in #(
12150 -*)set "./$1";;
12151 esac;
12152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12153 ???[sx]*):;;*)false;;esac;fi
12154 '\'' sh
12155 '
12156 fi
12157 as_executable_p=$as_test_x
12158
12159 # Sed expression to map a string onto a valid CPP name.
12160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12161
12162 # Sed expression to map a string onto a valid variable name.
12163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12164
12165
12166 exec 6>&1
12167 ## ----------------------------------- ##
12168 ## Main body of $CONFIG_STATUS script. ##
12169 ## ----------------------------------- ##
12170 _ASEOF
12171 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12172
12173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12174 # Save the log message, to keep $0 and so on meaningful, and to
12175 # report actual input values of CONFIG_FILES etc. instead of their
12176 # values after options handling.
12177 ac_log="
12178 This file was extended by libpng $as_me 1.4.4, which was
12179 generated by GNU Autoconf 2.65. Invocation command line was
12180
12181 CONFIG_FILES = $CONFIG_FILES
12182 CONFIG_HEADERS = $CONFIG_HEADERS
12183 CONFIG_LINKS = $CONFIG_LINKS
12184 CONFIG_COMMANDS = $CONFIG_COMMANDS
12185 $ $0 $@
12186
12187 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12188 "
12189
12190 _ACEOF
12191
12192 case $ac_config_files in *"
12193 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12194 esac
12195
12196 case $ac_config_headers in *"
12197 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12198 esac
12199
12200
12201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12202 # Files that config.status was made for.
12203 config_files="$ac_config_files"
12204 config_headers="$ac_config_headers"
12205 config_commands="$ac_config_commands"
12206
12207 _ACEOF
12208
12209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12210 ac_cs_usage="\
12211 \`$as_me' instantiates files and other configuration actions
12212 from templates according to the current configuration. Unless the files
12213 and actions are specified as TAGs, all are instantiated by default.
12214
12215 Usage: $0 [OPTION]... [TAG]...
12216
12217 -h, --help print this help, then exit
12218 -V, --version print version number and configuration settings, then exit
12219 --config print configuration, then exit
12220 -q, --quiet, --silent
12221 do not print progress messages
12222 -d, --debug don't remove temporary files
12223 --recheck update $as_me by reconfiguring in the same conditions
12224 --file=FILE[:TEMPLATE]
12225 instantiate the configuration file FILE
12226 --header=FILE[:TEMPLATE]
12227 instantiate the configuration header FILE
12228
12229 Configuration files:
12230 $config_files
12231
12232 Configuration headers:
12233 $config_headers
12234
12235 Configuration commands:
12236 $config_commands
12237
12238 Report bugs to <png-mng-implement@lists.sourceforge.net>."
12239
12240 _ACEOF
12241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12242 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12243 ac_cs_version="\\
12244 libpng config.status 1.4.4
12245 configured by $0, generated by GNU Autoconf 2.65,
12246 with options \\"\$ac_cs_config\\"
12247
12248 Copyright (C) 2009 Free Software Foundation, Inc.
12249 This config.status script is free software; the Free Software Foundation
12250 gives unlimited permission to copy, distribute and modify it."
12251
12252 ac_pwd='$ac_pwd'
12253 srcdir='$srcdir'
12254 INSTALL='$INSTALL'
12255 MKDIR_P='$MKDIR_P'
12256 AWK='$AWK'
12257 test -n "\$AWK" || AWK=awk
12258 _ACEOF
12259
12260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12261 # The default lists apply if the user does not specify any file.
12262 ac_need_defaults=:
12263 while test $# != 0
12264 do
12265 case $1 in
12266 --*=*)
12267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12269 ac_shift=:
12270 ;;
12271 *)
12272 ac_option=$1
12273 ac_optarg=$2
12274 ac_shift=shift
12275 ;;
12276 esac
12277
12278 case $ac_option in
12279 # Handling of the options.
12280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12281 ac_cs_recheck=: ;;
12282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12283 $as_echo "$ac_cs_version"; exit ;;
12284 --config | --confi | --conf | --con | --co | --c )
12285 $as_echo "$ac_cs_config"; exit ;;
12286 --debug | --debu | --deb | --de | --d | -d )
12287 debug=: ;;
12288 --file | --fil | --fi | --f )
12289 $ac_shift
12290 case $ac_optarg in
12291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12292 esac
12293 as_fn_append CONFIG_FILES " '$ac_optarg'"
12294 ac_need_defaults=false;;
12295 --header | --heade | --head | --hea )
12296 $ac_shift
12297 case $ac_optarg in
12298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12299 esac
12300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12301 ac_need_defaults=false;;
12302 --he | --h)
12303 # Conflict between --help and --header
12304 as_fn_error "ambiguous option: \`$1'
12305 Try \`$0 --help' for more information.";;
12306 --help | --hel | -h )
12307 $as_echo "$ac_cs_usage"; exit ;;
12308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12310 ac_cs_silent=: ;;
12311
12312 # This is an error.
12313 -*) as_fn_error "unrecognized option: \`$1'
12314 Try \`$0 --help' for more information." ;;
12315
12316 *) as_fn_append ac_config_targets " $1"
12317 ac_need_defaults=false ;;
12318
12319 esac
12320 shift
12321 done
12322
12323 ac_configure_extra_args=
12324
12325 if $ac_cs_silent; then
12326 exec 6>/dev/null
12327 ac_configure_extra_args="$ac_configure_extra_args --silent"
12328 fi
12329
12330 _ACEOF
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332 if \$ac_cs_recheck; then
12333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12334 shift
12335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12336 CONFIG_SHELL='$SHELL'
12337 export CONFIG_SHELL
12338 exec "\$@"
12339 fi
12340
12341 _ACEOF
12342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12343 exec 5>>config.log
12344 {
12345 echo
12346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12347 ## Running $as_me. ##
12348 _ASBOX
12349 $as_echo "$ac_log"
12350 } >&5
12351
12352 _ACEOF
12353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354 #
12355 # INIT-COMMANDS
12356 #
12357 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12358
12359
12360 # The HP-UX ksh and POSIX shell print the target directory to stdout
12361 # if CDPATH is set.
12362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12363
12364 sed_quote_subst='$sed_quote_subst'
12365 double_quote_subst='$double_quote_subst'
12366 delay_variable_subst='$delay_variable_subst'
12367 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12368 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12369 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12370 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12371 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12372 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12373 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12374 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12375 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12376 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12377 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12378 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12379 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12380 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12381 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12382 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12383 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12384 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12385 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12386 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12387 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12388 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12389 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12390 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12391 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12392 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12393 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12394 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12395 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12396 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12397 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12398 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12399 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12400 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12401 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12402 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12403 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12404 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12405 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12406 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12407 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12408 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12409 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12410 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12411 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12412 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12413 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12414 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12415 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12416 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12417 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"`'
12418 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12419 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12420 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12421 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12422 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12423 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12424 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12425 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12426 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12427 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12428 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12429 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12430 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12431 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12432 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12433 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12434 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12435 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12436 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12437 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12438 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12439 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12440 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12441 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12442 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12443 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12444 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12445 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12446 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12447 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12448 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12449 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12450 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12451 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12452 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12453 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12454 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12455 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12456 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12457 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12458 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12459 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12460 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12461 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12462 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12463 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12464 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12465 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12466 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12467 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12468 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12469 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12470 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12471 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12472 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12473 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12474 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12475 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12476 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12477 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12478 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12479 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12480 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12481 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12482 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12483 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12484 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12485 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12486 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12487 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12488 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12489
12490 LTCC='$LTCC'
12491 LTCFLAGS='$LTCFLAGS'
12492 compiler='$compiler_DEFAULT'
12493
12494 # A function that is used when there is no print builtin or printf.
12495 func_fallback_echo ()
12496 {
12497 eval 'cat <<_LTECHO_EOF
12498 \$1
12499 _LTECHO_EOF'
12500 }
12501
12502 # Quote evaled strings.
12503 for var in SED \
12504 GREP \
12505 EGREP \
12506 FGREP \
12507 SHELL \
12508 ECHO \
12509 LD \
12510 AS \
12511 DLLTOOL \
12512 OBJDUMP \
12513 NM \
12514 LN_S \
12515 lt_SP2NL \
12516 lt_NL2SP \
12517 reload_flag \
12518 deplibs_check_method \
12519 file_magic_cmd \
12520 AR \
12521 AR_FLAGS \
12522 STRIP \
12523 RANLIB \
12524 CC \
12525 CFLAGS \
12526 compiler \
12527 lt_cv_sys_global_symbol_pipe \
12528 lt_cv_sys_global_symbol_to_cdecl \
12529 lt_cv_sys_global_symbol_to_c_name_address \
12530 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12531 lt_prog_compiler_no_builtin_flag \
12532 lt_prog_compiler_wl \
12533 lt_prog_compiler_pic \
12534 lt_prog_compiler_static \
12535 lt_cv_prog_compiler_c_o \
12536 need_locks \
12537 DSYMUTIL \
12538 NMEDIT \
12539 LIPO \
12540 OTOOL \
12541 OTOOL64 \
12542 shrext_cmds \
12543 export_dynamic_flag_spec \
12544 whole_archive_flag_spec \
12545 compiler_needs_object \
12546 with_gnu_ld \
12547 allow_undefined_flag \
12548 no_undefined_flag \
12549 hardcode_libdir_flag_spec \
12550 hardcode_libdir_flag_spec_ld \
12551 hardcode_libdir_separator \
12552 fix_srcfile_path \
12553 exclude_expsyms \
12554 include_expsyms \
12555 file_list_spec \
12556 variables_saved_for_relink \
12557 libname_spec \
12558 library_names_spec \
12559 soname_spec \
12560 install_override_mode \
12561 finish_eval \
12562 old_striplib \
12563 striplib; do
12564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12565 *[\\\\\\\`\\"\\\$]*)
12566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12567 ;;
12568 *)
12569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12570 ;;
12571 esac
12572 done
12573
12574 # Double-quote double-evaled strings.
12575 for var in reload_cmds \
12576 old_postinstall_cmds \
12577 old_postuninstall_cmds \
12578 old_archive_cmds \
12579 extract_expsyms_cmds \
12580 old_archive_from_new_cmds \
12581 old_archive_from_expsyms_cmds \
12582 archive_cmds \
12583 archive_expsym_cmds \
12584 module_cmds \
12585 module_expsym_cmds \
12586 export_symbols_cmds \
12587 prelink_cmds \
12588 postinstall_cmds \
12589 postuninstall_cmds \
12590 finish_cmds \
12591 sys_lib_search_path_spec \
12592 sys_lib_dlsearch_path_spec; do
12593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12594 *[\\\\\\\`\\"\\\$]*)
12595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12596 ;;
12597 *)
12598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12599 ;;
12600 esac
12601 done
12602
12603 ac_aux_dir='$ac_aux_dir'
12604 xsi_shell='$xsi_shell'
12605 lt_shell_append='$lt_shell_append'
12606
12607 # See if we are running on zsh, and set the options which allow our
12608 # commands through without removal of \ escapes INIT.
12609 if test -n "\${ZSH_VERSION+set}" ; then
12610 setopt NO_GLOB_SUBST
12611 fi
12612
12613
12614 PACKAGE='$PACKAGE'
12615 VERSION='$VERSION'
12616 TIMESTAMP='$TIMESTAMP'
12617 RM='$RM'
12618 ofile='$ofile'
12619
12620
12621
12622
12623 _ACEOF
12624
12625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12626
12627 # Handling of arguments.
12628 for ac_config_target in $ac_config_targets
12629 do
12630 case $ac_config_target in
12631 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12632 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12633 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12634 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12635 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
12636 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
12637
12638 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12639 esac
12640 done
12641
12642
12643 # If the user did not use the arguments to specify the items to instantiate,
12644 # then the envvar interface is used. Set only those that are not.
12645 # We use the long form for the default assignment because of an extremely
12646 # bizarre bug on SunOS 4.1.3.
12647 if $ac_need_defaults; then
12648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12650 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12651 fi
12652
12653 # Have a temporary directory for convenience. Make it in the build tree
12654 # simply because there is no reason against having it here, and in addition,
12655 # creating and moving files from /tmp can sometimes cause problems.
12656 # Hook for its removal unless debugging.
12657 # Note that there is a small window in which the directory will not be cleaned:
12658 # after its creation but before its name has been assigned to `$tmp'.
12659 $debug ||
12660 {
12661 tmp=
12662 trap 'exit_status=$?
12663 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12664 ' 0
12665 trap 'as_fn_exit 1' 1 2 13 15
12666 }
12667 # Create a (secure) tmp directory for tmp files.
12668
12669 {
12670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12671 test -n "$tmp" && test -d "$tmp"
12672 } ||
12673 {
12674 tmp=./conf$$-$RANDOM
12675 (umask 077 && mkdir "$tmp")
12676 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12677
12678 # Set up the scripts for CONFIG_FILES section.
12679 # No need to generate them if there are no CONFIG_FILES.
12680 # This happens for instance with `./config.status config.h'.
12681 if test -n "$CONFIG_FILES"; then
12682
12683
12684 ac_cr=`echo X | tr X '\015'`
12685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12686 # But we know of no other shell where ac_cr would be empty at this
12687 # point, so we can use a bashism as a fallback.
12688 if test "x$ac_cr" = x; then
12689 eval ac_cr=\$\'\\r\'
12690 fi
12691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12693 ac_cs_awk_cr='\r'
12694 else
12695 ac_cs_awk_cr=$ac_cr
12696 fi
12697
12698 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12699 _ACEOF
12700
12701
12702 {
12703 echo "cat >conf$$subs.awk <<_ACEOF" &&
12704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12705 echo "_ACEOF"
12706 } >conf$$subs.sh ||
12707 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12709 ac_delim='%!_!# '
12710 for ac_last_try in false false false false false :; do
12711 . ./conf$$subs.sh ||
12712 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12713
12714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12715 if test $ac_delim_n = $ac_delim_num; then
12716 break
12717 elif $ac_last_try; then
12718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12719 else
12720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12721 fi
12722 done
12723 rm -f conf$$subs.sh
12724
12725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12726 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12727 _ACEOF
12728 sed -n '
12729 h
12730 s/^/S["/; s/!.*/"]=/
12731 p
12732 g
12733 s/^[^!]*!//
12734 :repl
12735 t repl
12736 s/'"$ac_delim"'$//
12737 t delim
12738 :nl
12739 h
12740 s/\(.\{148\}\)..*/\1/
12741 t more1
12742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12743 p
12744 n
12745 b repl
12746 :more1
12747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12748 p
12749 g
12750 s/.\{148\}//
12751 t nl
12752 :delim
12753 h
12754 s/\(.\{148\}\)..*/\1/
12755 t more2
12756 s/["\\]/\\&/g; s/^/"/; s/$/"/
12757 p
12758 b
12759 :more2
12760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12761 p
12762 g
12763 s/.\{148\}//
12764 t delim
12765 ' <conf$$subs.awk | sed '
12766 /^[^""]/{
12767 N
12768 s/\n//
12769 }
12770 ' >>$CONFIG_STATUS || ac_write_fail=1
12771 rm -f conf$$subs.awk
12772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12773 _ACAWK
12774 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12775 for (key in S) S_is_set[key] = 1
12776 FS = "\a"
12777
12778 }
12779 {
12780 line = $ 0
12781 nfields = split(line, field, "@")
12782 substed = 0
12783 len = length(field[1])
12784 for (i = 2; i < nfields; i++) {
12785 key = field[i]
12786 keylen = length(key)
12787 if (S_is_set[key]) {
12788 value = S[key]
12789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12790 len += length(value) + length(field[++i])
12791 substed = 1
12792 } else
12793 len += 1 + keylen
12794 }
12795
12796 print line
12797 }
12798
12799 _ACAWK
12800 _ACEOF
12801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12804 else
12805 cat
12806 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12807 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12808 _ACEOF
12809
12810 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12811 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12812 # trailing colons and then remove the whole line if VPATH becomes empty
12813 # (actually we leave an empty line to preserve line numbers).
12814 if test "x$srcdir" = x.; then
12815 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12816 s/:*\$(srcdir):*/:/
12817 s/:*\${srcdir}:*/:/
12818 s/:*@srcdir@:*/:/
12819 s/^\([^=]*=[ ]*\):*/\1/
12820 s/:*$//
12821 s/^[^=]*=[ ]*$//
12822 }'
12823 fi
12824
12825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12826 fi # test -n "$CONFIG_FILES"
12827
12828 # Set up the scripts for CONFIG_HEADERS section.
12829 # No need to generate them if there are no CONFIG_HEADERS.
12830 # This happens for instance with `./config.status Makefile'.
12831 if test -n "$CONFIG_HEADERS"; then
12832 cat >"$tmp/defines.awk" <<\_ACAWK ||
12833 BEGIN {
12834 _ACEOF
12835
12836 # Transform confdefs.h into an awk script `defines.awk', embedded as
12837 # here-document in config.status, that substitutes the proper values into
12838 # config.h.in to produce config.h.
12839
12840 # Create a delimiter string that does not exist in confdefs.h, to ease
12841 # handling of long lines.
12842 ac_delim='%!_!# '
12843 for ac_last_try in false false :; do
12844 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12845 if test -z "$ac_t"; then
12846 break
12847 elif $ac_last_try; then
12848 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12849 else
12850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12851 fi
12852 done
12853
12854 # For the awk script, D is an array of macro values keyed by name,
12855 # likewise P contains macro parameters if any. Preserve backslash
12856 # newline sequences.
12857
12858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12859 sed -n '
12860 s/.\{148\}/&'"$ac_delim"'/g
12861 t rset
12862 :rset
12863 s/^[ ]*#[ ]*define[ ][ ]*/ /
12864 t def
12865 d
12866 :def
12867 s/\\$//
12868 t bsnl
12869 s/["\\]/\\&/g
12870 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12871 D["\1"]=" \3"/p
12872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12873 d
12874 :bsnl
12875 s/["\\]/\\&/g
12876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12877 D["\1"]=" \3\\\\\\n"\\/p
12878 t cont
12879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12880 t cont
12881 d
12882 :cont
12883 n
12884 s/.\{148\}/&'"$ac_delim"'/g
12885 t clear
12886 :clear
12887 s/\\$//
12888 t bsnlc
12889 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12890 d
12891 :bsnlc
12892 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12893 b cont
12894 ' <confdefs.h | sed '
12895 s/'"$ac_delim"'/"\\\
12896 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12897
12898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12899 for (key in D) D_is_set[key] = 1
12900 FS = "\a"
12901 }
12902 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12903 line = \$ 0
12904 split(line, arg, " ")
12905 if (arg[1] == "#") {
12906 defundef = arg[2]
12907 mac1 = arg[3]
12908 } else {
12909 defundef = substr(arg[1], 2)
12910 mac1 = arg[2]
12911 }
12912 split(mac1, mac2, "(") #)
12913 macro = mac2[1]
12914 prefix = substr(line, 1, index(line, defundef) - 1)
12915 if (D_is_set[macro]) {
12916 # Preserve the white space surrounding the "#".
12917 print prefix "define", macro P[macro] D[macro]
12918 next
12919 } else {
12920 # Replace #undef with comments. This is necessary, for example,
12921 # in the case of _POSIX_SOURCE, which is predefined and required
12922 # on some systems where configure will not decide to define it.
12923 if (defundef == "undef") {
12924 print "/*", prefix defundef, macro, "*/"
12925 next
12926 }
12927 }
12928 }
12929 { print }
12930 _ACAWK
12931 _ACEOF
12932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12933 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12934 fi # test -n "$CONFIG_HEADERS"
12935
12936
12937 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12938 shift
12939 for ac_tag
12940 do
12941 case $ac_tag in
12942 :[FHLC]) ac_mode=$ac_tag; continue;;
12943 esac
12944 case $ac_mode$ac_tag in
12945 :[FHL]*:*);;
12946 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12947 :[FH]-) ac_tag=-:-;;
12948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12949 esac
12950 ac_save_IFS=$IFS
12951 IFS=:
12952 set x $ac_tag
12953 IFS=$ac_save_IFS
12954 shift
12955 ac_file=$1
12956 shift
12957
12958 case $ac_mode in
12959 :L) ac_source=$1;;
12960 :[FH])
12961 ac_file_inputs=
12962 for ac_f
12963 do
12964 case $ac_f in
12965 -) ac_f="$tmp/stdin";;
12966 *) # Look for the file first in the build tree, then in the source tree
12967 # (if the path is not absolute). The absolute path cannot be DOS-style,
12968 # because $ac_f cannot contain `:'.
12969 test -f "$ac_f" ||
12970 case $ac_f in
12971 [\\/$]*) false;;
12972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12973 esac ||
12974 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12975 esac
12976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12977 as_fn_append ac_file_inputs " '$ac_f'"
12978 done
12979
12980 # Let's still pretend it is `configure' which instantiates (i.e., don't
12981 # use $as_me), people would be surprised to read:
12982 # /* config.h. Generated by config.status. */
12983 configure_input='Generated from '`
12984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12985 `' by configure.'
12986 if test x"$ac_file" != x-; then
12987 configure_input="$ac_file. $configure_input"
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12989 $as_echo "$as_me: creating $ac_file" >&6;}
12990 fi
12991 # Neutralize special characters interpreted by sed in replacement strings.
12992 case $configure_input in #(
12993 *\&* | *\|* | *\\* )
12994 ac_sed_conf_input=`$as_echo "$configure_input" |
12995 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12996 *) ac_sed_conf_input=$configure_input;;
12997 esac
12998
12999 case $ac_tag in
13000 *:-:* | *:-) cat >"$tmp/stdin" \
13001 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13002 esac
13003 ;;
13004 esac
13005
13006 ac_dir=`$as_dirname -- "$ac_file" ||
13007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13008 X"$ac_file" : 'X\(//\)[^/]' \| \
13009 X"$ac_file" : 'X\(//\)$' \| \
13010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13011 $as_echo X"$ac_file" |
13012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13013 s//\1/
13014 q
13015 }
13016 /^X\(\/\/\)[^/].*/{
13017 s//\1/
13018 q
13019 }
13020 /^X\(\/\/\)$/{
13021 s//\1/
13022 q
13023 }
13024 /^X\(\/\).*/{
13025 s//\1/
13026 q
13027 }
13028 s/.*/./; q'`
13029 as_dir="$ac_dir"; as_fn_mkdir_p
13030 ac_builddir=.
13031
13032 case "$ac_dir" in
13033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13034 *)
13035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13036 # A ".." for each directory in $ac_dir_suffix.
13037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13038 case $ac_top_builddir_sub in
13039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13041 esac ;;
13042 esac
13043 ac_abs_top_builddir=$ac_pwd
13044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13045 # for backward compatibility:
13046 ac_top_builddir=$ac_top_build_prefix
13047
13048 case $srcdir in
13049 .) # We are building in place.
13050 ac_srcdir=.
13051 ac_top_srcdir=$ac_top_builddir_sub
13052 ac_abs_top_srcdir=$ac_pwd ;;
13053 [\\/]* | ?:[\\/]* ) # Absolute name.
13054 ac_srcdir=$srcdir$ac_dir_suffix;
13055 ac_top_srcdir=$srcdir
13056 ac_abs_top_srcdir=$srcdir ;;
13057 *) # Relative name.
13058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13059 ac_top_srcdir=$ac_top_build_prefix$srcdir
13060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13061 esac
13062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13063
13064
13065 case $ac_mode in
13066 :F)
13067 #
13068 # CONFIG_FILE
13069 #
13070
13071 case $INSTALL in
13072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13074 esac
13075 ac_MKDIR_P=$MKDIR_P
13076 case $MKDIR_P in
13077 [\\/$]* | ?:[\\/]* ) ;;
13078 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13079 esac
13080 _ACEOF
13081
13082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083 # If the template does not know about datarootdir, expand it.
13084 # FIXME: This hack should be removed a few years after 2.60.
13085 ac_datarootdir_hack=; ac_datarootdir_seen=
13086 ac_sed_dataroot='
13087 /datarootdir/ {
13088 p
13089 q
13090 }
13091 /@datadir@/p
13092 /@docdir@/p
13093 /@infodir@/p
13094 /@localedir@/p
13095 /@mandir@/p'
13096 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13097 *datarootdir*) ac_datarootdir_seen=yes;;
13098 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13100 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13101 _ACEOF
13102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13103 ac_datarootdir_hack='
13104 s&@datadir@&$datadir&g
13105 s&@docdir@&$docdir&g
13106 s&@infodir@&$infodir&g
13107 s&@localedir@&$localedir&g
13108 s&@mandir@&$mandir&g
13109 s&\\\${datarootdir}&$datarootdir&g' ;;
13110 esac
13111 _ACEOF
13112
13113 # Neutralize VPATH when `$srcdir' = `.'.
13114 # Shell code in configure.ac might set extrasub.
13115 # FIXME: do we really want to maintain this feature?
13116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13117 ac_sed_extra="$ac_vpsub
13118 $extrasub
13119 _ACEOF
13120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13121 :t
13122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13123 s|@configure_input@|$ac_sed_conf_input|;t t
13124 s&@top_builddir@&$ac_top_builddir_sub&;t t
13125 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13126 s&@srcdir@&$ac_srcdir&;t t
13127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13128 s&@top_srcdir@&$ac_top_srcdir&;t t
13129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13130 s&@builddir@&$ac_builddir&;t t
13131 s&@abs_builddir@&$ac_abs_builddir&;t t
13132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13133 s&@INSTALL@&$ac_INSTALL&;t t
13134 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13135 $ac_datarootdir_hack
13136 "
13137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13138 || as_fn_error "could not create $ac_file" "$LINENO" 5
13139
13140 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13141 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13142 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13144 which seems to be undefined. Please make sure it is defined." >&5
13145 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13146 which seems to be undefined. Please make sure it is defined." >&2;}
13147
13148 rm -f "$tmp/stdin"
13149 case $ac_file in
13150 -) cat "$tmp/out" && rm -f "$tmp/out";;
13151 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13152 esac \
13153 || as_fn_error "could not create $ac_file" "$LINENO" 5
13154 ;;
13155 :H)
13156 #
13157 # CONFIG_HEADER
13158 #
13159 if test x"$ac_file" != x-; then
13160 {
13161 $as_echo "/* $configure_input */" \
13162 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13163 } >"$tmp/config.h" \
13164 || as_fn_error "could not create $ac_file" "$LINENO" 5
13165 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13167 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13168 else
13169 rm -f "$ac_file"
13170 mv "$tmp/config.h" "$ac_file" \
13171 || as_fn_error "could not create $ac_file" "$LINENO" 5
13172 fi
13173 else
13174 $as_echo "/* $configure_input */" \
13175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13176 || as_fn_error "could not create -" "$LINENO" 5
13177 fi
13178 # Compute "$ac_file"'s index in $config_headers.
13179 _am_arg="$ac_file"
13180 _am_stamp_count=1
13181 for _am_header in $config_headers :; do
13182 case $_am_header in
13183 $_am_arg | $_am_arg:* )
13184 break ;;
13185 * )
13186 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13187 esac
13188 done
13189 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13190 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13191 X"$_am_arg" : 'X\(//\)[^/]' \| \
13192 X"$_am_arg" : 'X\(//\)$' \| \
13193 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13194 $as_echo X"$_am_arg" |
13195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13196 s//\1/
13197 q
13198 }
13199 /^X\(\/\/\)[^/].*/{
13200 s//\1/
13201 q
13202 }
13203 /^X\(\/\/\)$/{
13204 s//\1/
13205 q
13206 }
13207 /^X\(\/\).*/{
13208 s//\1/
13209 q
13210 }
13211 s/.*/./; q'`/stamp-h$_am_stamp_count
13212 ;;
13213
13214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13215 $as_echo "$as_me: executing $ac_file commands" >&6;}
13216 ;;
13217 esac
13218
13219
13220 case $ac_file$ac_mode in
13221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13222 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13223 # are listed without --file. Let's play safe and only enable the eval
13224 # if we detect the quoting.
13225 case $CONFIG_FILES in
13226 *\'*) eval set x "$CONFIG_FILES" ;;
13227 *) set x $CONFIG_FILES ;;
13228 esac
13229 shift
13230 for mf
13231 do
13232 # Strip MF so we end up with the name of the file.
13233 mf=`echo "$mf" | sed -e 's/:.*$//'`
13234 # Check whether this is an Automake generated Makefile or not.
13235 # We used to match only the files named `Makefile.in', but
13236 # some people rename them; so instead we look at the file content.
13237 # Grep'ing the first line is not enough: some people post-process
13238 # each Makefile.in and add a new line on top of each file to say so.
13239 # Grep'ing the whole file is not good either: AIX grep has a line
13240 # limit of 2048, but all sed's we know have understand at least 4000.
13241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13242 dirpart=`$as_dirname -- "$mf" ||
13243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13244 X"$mf" : 'X\(//\)[^/]' \| \
13245 X"$mf" : 'X\(//\)$' \| \
13246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13247 $as_echo X"$mf" |
13248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13249 s//\1/
13250 q
13251 }
13252 /^X\(\/\/\)[^/].*/{
13253 s//\1/
13254 q
13255 }
13256 /^X\(\/\/\)$/{
13257 s//\1/
13258 q
13259 }
13260 /^X\(\/\).*/{
13261 s//\1/
13262 q
13263 }
13264 s/.*/./; q'`
13265 else
13266 continue
13267 fi
13268 # Extract the definition of DEPDIR, am__include, and am__quote
13269 # from the Makefile without running `make'.
13270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13271 test -z "$DEPDIR" && continue
13272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13273 test -z "am__include" && continue
13274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13275 # When using ansi2knr, U may be empty or an underscore; expand it
13276 U=`sed -n 's/^U = //p' < "$mf"`
13277 # Find all dependency output files, they are included files with
13278 # $(DEPDIR) in their names. We invoke sed twice because it is the
13279 # simplest approach to changing $(DEPDIR) to its actual value in the
13280 # expansion.
13281 for file in `sed -n "
13282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13284 # Make sure the directory exists.
13285 test -f "$dirpart/$file" && continue
13286 fdir=`$as_dirname -- "$file" ||
13287 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13288 X"$file" : 'X\(//\)[^/]' \| \
13289 X"$file" : 'X\(//\)$' \| \
13290 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13291 $as_echo X"$file" |
13292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13293 s//\1/
13294 q
13295 }
13296 /^X\(\/\/\)[^/].*/{
13297 s//\1/
13298 q
13299 }
13300 /^X\(\/\/\)$/{
13301 s//\1/
13302 q
13303 }
13304 /^X\(\/\).*/{
13305 s//\1/
13306 q
13307 }
13308 s/.*/./; q'`
13309 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13310 # echo "creating $dirpart/$file"
13311 echo '# dummy' > "$dirpart/$file"
13312 done
13313 done
13314 }
13315 ;;
13316 "libtool":C)
13317
13318 # See if we are running on zsh, and set the options which allow our
13319 # commands through without removal of \ escapes.
13320 if test -n "${ZSH_VERSION+set}" ; then
13321 setopt NO_GLOB_SUBST
13322 fi
13323
13324 cfgfile="${ofile}T"
13325 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13326 $RM "$cfgfile"
13327
13328 cat <<_LT_EOF >> "$cfgfile"
13329 #! $SHELL
13330
13331 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13332 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13334 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13335 #
13336 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13337 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13338 # Inc.
13339 # Written by Gordon Matzigkeit, 1996
13340 #
13341 # This file is part of GNU Libtool.
13342 #
13343 # GNU Libtool is free software; you can redistribute it and/or
13344 # modify it under the terms of the GNU General Public License as
13345 # published by the Free Software Foundation; either version 2 of
13346 # the License, or (at your option) any later version.
13347 #
13348 # As a special exception to the GNU General Public License,
13349 # if you distribute this file as part of a program or library that
13350 # is built using GNU Libtool, you may include this file under the
13351 # same distribution terms that you use for the rest of that program.
13352 #
13353 # GNU Libtool is distributed in the hope that it will be useful,
13354 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13355 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13356 # GNU General Public License for more details.
13357 #
13358 # You should have received a copy of the GNU General Public License
13359 # along with GNU Libtool; see the file COPYING. If not, a copy
13360 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13361 # obtained by writing to the Free Software Foundation, Inc.,
13362 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13363
13364
13365 # The names of the tagged configurations supported by this script.
13366 available_tags=""
13367
13368 # ### BEGIN LIBTOOL CONFIG
13369
13370 # A sed program that does not truncate output.
13371 SED=$lt_SED
13372
13373 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13374 Xsed="\$SED -e 1s/^X//"
13375
13376 # A grep program that handles long lines.
13377 GREP=$lt_GREP
13378
13379 # An ERE matcher.
13380 EGREP=$lt_EGREP
13381
13382 # A literal string matcher.
13383 FGREP=$lt_FGREP
13384
13385 # Shell to use when invoking shell scripts.
13386 SHELL=$lt_SHELL
13387
13388 # An echo program that protects backslashes.
13389 ECHO=$lt_ECHO
13390
13391 # Which release of libtool.m4 was used?
13392 macro_version=$macro_version
13393 macro_revision=$macro_revision
13394
13395 # Assembler program.
13396 AS=$lt_AS
13397
13398 # DLL creation program.
13399 DLLTOOL=$lt_DLLTOOL
13400
13401 # Object dumper program.
13402 OBJDUMP=$lt_OBJDUMP
13403
13404 # Whether or not to build shared libraries.
13405 build_libtool_libs=$enable_shared
13406
13407 # Whether or not to build static libraries.
13408 build_old_libs=$enable_static
13409
13410 # What type of objects to build.
13411 pic_mode=$pic_mode
13412
13413 # Whether or not to optimize for fast installation.
13414 fast_install=$enable_fast_install
13415
13416 # The host system.
13417 host_alias=$host_alias
13418 host=$host
13419 host_os=$host_os
13420
13421 # The build system.
13422 build_alias=$build_alias
13423 build=$build
13424 build_os=$build_os
13425
13426 # A BSD- or MS-compatible name lister.
13427 NM=$lt_NM
13428
13429 # Whether we need soft or hard links.
13430 LN_S=$lt_LN_S
13431
13432 # What is the maximum length of a command?
13433 max_cmd_len=$max_cmd_len
13434
13435 # Object file suffix (normally "o").
13436 objext=$ac_objext
13437
13438 # Executable file suffix (normally "").
13439 exeext=$exeext
13440
13441 # whether the shell understands "unset".
13442 lt_unset=$lt_unset
13443
13444 # turn spaces into newlines.
13445 SP2NL=$lt_lt_SP2NL
13446
13447 # turn newlines into spaces.
13448 NL2SP=$lt_lt_NL2SP
13449
13450 # Method to check whether dependent libraries are shared objects.
13451 deplibs_check_method=$lt_deplibs_check_method
13452
13453 # Command to use when deplibs_check_method == "file_magic".
13454 file_magic_cmd=$lt_file_magic_cmd
13455
13456 # The archiver.
13457 AR=$lt_AR
13458 AR_FLAGS=$lt_AR_FLAGS
13459
13460 # A symbol stripping program.
13461 STRIP=$lt_STRIP
13462
13463 # Commands used to install an old-style archive.
13464 RANLIB=$lt_RANLIB
13465 old_postinstall_cmds=$lt_old_postinstall_cmds
13466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13467
13468 # Whether to use a lock for old archive extraction.
13469 lock_old_archive_extraction=$lock_old_archive_extraction
13470
13471 # A C compiler.
13472 LTCC=$lt_CC
13473
13474 # LTCC compiler flags.
13475 LTCFLAGS=$lt_CFLAGS
13476
13477 # Take the output of nm and produce a listing of raw symbols and C names.
13478 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13479
13480 # Transform the output of nm in a proper C declaration.
13481 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13482
13483 # Transform the output of nm in a C name address pair.
13484 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13485
13486 # Transform the output of nm in a C name address pair when lib prefix is needed.
13487 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13488
13489 # The name of the directory that contains temporary libtool files.
13490 objdir=$objdir
13491
13492 # Used to examine libraries when file_magic_cmd begins with "file".
13493 MAGIC_CMD=$MAGIC_CMD
13494
13495 # Must we lock files when doing compilation?
13496 need_locks=$lt_need_locks
13497
13498 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13499 DSYMUTIL=$lt_DSYMUTIL
13500
13501 # Tool to change global to local symbols on Mac OS X.
13502 NMEDIT=$lt_NMEDIT
13503
13504 # Tool to manipulate fat objects and archives on Mac OS X.
13505 LIPO=$lt_LIPO
13506
13507 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13508 OTOOL=$lt_OTOOL
13509
13510 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13511 OTOOL64=$lt_OTOOL64
13512
13513 # Old archive suffix (normally "a").
13514 libext=$libext
13515
13516 # Shared library suffix (normally ".so").
13517 shrext_cmds=$lt_shrext_cmds
13518
13519 # The commands to extract the exported symbol list from a shared archive.
13520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13521
13522 # Variables whose values should be saved in libtool wrapper scripts and
13523 # restored at link time.
13524 variables_saved_for_relink=$lt_variables_saved_for_relink
13525
13526 # Do we need the "lib" prefix for modules?
13527 need_lib_prefix=$need_lib_prefix
13528
13529 # Do we need a version for libraries?
13530 need_version=$need_version
13531
13532 # Library versioning type.
13533 version_type=$version_type
13534
13535 # Shared library runtime path variable.
13536 runpath_var=$runpath_var
13537
13538 # Shared library path variable.
13539 shlibpath_var=$shlibpath_var
13540
13541 # Is shlibpath searched before the hard-coded library search path?
13542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13543
13544 # Format of library name prefix.
13545 libname_spec=$lt_libname_spec
13546
13547 # List of archive names. First name is the real one, the rest are links.
13548 # The last name is the one that the linker finds with -lNAME
13549 library_names_spec=$lt_library_names_spec
13550
13551 # The coded name of the library, if different from the real name.
13552 soname_spec=$lt_soname_spec
13553
13554 # Permission mode override for installation of shared libraries.
13555 install_override_mode=$lt_install_override_mode
13556
13557 # Command to use after installation of a shared archive.
13558 postinstall_cmds=$lt_postinstall_cmds
13559
13560 # Command to use after uninstallation of a shared archive.
13561 postuninstall_cmds=$lt_postuninstall_cmds
13562
13563 # Commands used to finish a libtool library installation in a directory.
13564 finish_cmds=$lt_finish_cmds
13565
13566 # As "finish_cmds", except a single script fragment to be evaled but
13567 # not shown.
13568 finish_eval=$lt_finish_eval
13569
13570 # Whether we should hardcode library paths into libraries.
13571 hardcode_into_libs=$hardcode_into_libs
13572
13573 # Compile-time system search path for libraries.
13574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13575
13576 # Run-time system search path for libraries.
13577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13578
13579 # Whether dlopen is supported.
13580 dlopen_support=$enable_dlopen
13581
13582 # Whether dlopen of programs is supported.
13583 dlopen_self=$enable_dlopen_self
13584
13585 # Whether dlopen of statically linked programs is supported.
13586 dlopen_self_static=$enable_dlopen_self_static
13587
13588 # Commands to strip libraries.
13589 old_striplib=$lt_old_striplib
13590 striplib=$lt_striplib
13591
13592
13593 # The linker used to build libraries.
13594 LD=$lt_LD
13595
13596 # How to create reloadable object files.
13597 reload_flag=$lt_reload_flag
13598 reload_cmds=$lt_reload_cmds
13599
13600 # Commands used to build an old-style archive.
13601 old_archive_cmds=$lt_old_archive_cmds
13602
13603 # A language specific compiler.
13604 CC=$lt_compiler
13605
13606 # Is the compiler the GNU compiler?
13607 with_gcc=$GCC
13608
13609 # Compiler flag to turn off builtin functions.
13610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13611
13612 # How to pass a linker flag through the compiler.
13613 wl=$lt_lt_prog_compiler_wl
13614
13615 # Additional compiler flags for building library objects.
13616 pic_flag=$lt_lt_prog_compiler_pic
13617
13618 # Compiler flag to prevent dynamic linking.
13619 link_static_flag=$lt_lt_prog_compiler_static
13620
13621 # Does compiler simultaneously support -c and -o options?
13622 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13623
13624 # Whether or not to add -lc for building shared libraries.
13625 build_libtool_need_lc=$archive_cmds_need_lc
13626
13627 # Whether or not to disallow shared libs when runtime libs are static.
13628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13629
13630 # Compiler flag to allow reflexive dlopens.
13631 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13632
13633 # Compiler flag to generate shared objects directly from archives.
13634 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13635
13636 # Whether the compiler copes with passing no objects directly.
13637 compiler_needs_object=$lt_compiler_needs_object
13638
13639 # Create an old-style archive from a shared archive.
13640 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13641
13642 # Create a temporary old-style archive to link instead of a shared archive.
13643 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13644
13645 # Commands used to build a shared archive.
13646 archive_cmds=$lt_archive_cmds
13647 archive_expsym_cmds=$lt_archive_expsym_cmds
13648
13649 # Commands used to build a loadable module if different from building
13650 # a shared archive.
13651 module_cmds=$lt_module_cmds
13652 module_expsym_cmds=$lt_module_expsym_cmds
13653
13654 # Whether we are building with GNU ld or not.
13655 with_gnu_ld=$lt_with_gnu_ld
13656
13657 # Flag that allows shared libraries with undefined symbols to be built.
13658 allow_undefined_flag=$lt_allow_undefined_flag
13659
13660 # Flag that enforces no undefined symbols.
13661 no_undefined_flag=$lt_no_undefined_flag
13662
13663 # Flag to hardcode \$libdir into a binary during linking.
13664 # This must work even if \$libdir does not exist
13665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13666
13667 # If ld is used when linking, flag to hardcode \$libdir into a binary
13668 # during linking. This must work even if \$libdir does not exist.
13669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13670
13671 # Whether we need a single "-rpath" flag with a separated argument.
13672 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13673
13674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13675 # DIR into the resulting binary.
13676 hardcode_direct=$hardcode_direct
13677
13678 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13679 # DIR into the resulting binary and the resulting library dependency is
13680 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13681 # library is relocated.
13682 hardcode_direct_absolute=$hardcode_direct_absolute
13683
13684 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13685 # into the resulting binary.
13686 hardcode_minus_L=$hardcode_minus_L
13687
13688 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13689 # into the resulting binary.
13690 hardcode_shlibpath_var=$hardcode_shlibpath_var
13691
13692 # Set to "yes" if building a shared library automatically hardcodes DIR
13693 # into the library and all subsequent libraries and executables linked
13694 # against it.
13695 hardcode_automatic=$hardcode_automatic
13696
13697 # Set to yes if linker adds runtime paths of dependent libraries
13698 # to runtime path list.
13699 inherit_rpath=$inherit_rpath
13700
13701 # Whether libtool must link a program against all its dependency libraries.
13702 link_all_deplibs=$link_all_deplibs
13703
13704 # Fix the shell variable \$srcfile for the compiler.
13705 fix_srcfile_path=$lt_fix_srcfile_path
13706
13707 # Set to "yes" if exported symbols are required.
13708 always_export_symbols=$always_export_symbols
13709
13710 # The commands to list exported symbols.
13711 export_symbols_cmds=$lt_export_symbols_cmds
13712
13713 # Symbols that should not be listed in the preloaded symbols.
13714 exclude_expsyms=$lt_exclude_expsyms
13715
13716 # Symbols that must always be exported.
13717 include_expsyms=$lt_include_expsyms
13718
13719 # Commands necessary for linking programs (against libraries) with templates.
13720 prelink_cmds=$lt_prelink_cmds
13721
13722 # Specify filename containing input files.
13723 file_list_spec=$lt_file_list_spec
13724
13725 # How to hardcode a shared library path into an executable.
13726 hardcode_action=$hardcode_action
13727
13728 # ### END LIBTOOL CONFIG
13729
13730 _LT_EOF
13731
13732 case $host_os in
13733 aix3*)
13734 cat <<\_LT_EOF >> "$cfgfile"
13735 # AIX sometimes has problems with the GCC collect2 program. For some
13736 # reason, if we set the COLLECT_NAMES environment variable, the problems
13737 # vanish in a puff of smoke.
13738 if test "X${COLLECT_NAMES+set}" != Xset; then
13739 COLLECT_NAMES=
13740 export COLLECT_NAMES
13741 fi
13742 _LT_EOF
13743 ;;
13744 esac
13745
13746
13747 ltmain="$ac_aux_dir/ltmain.sh"
13748
13749
13750 # We use sed instead of cat because bash on DJGPP gets confused if
13751 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13752 # text mode, it properly converts lines to CR/LF. This bash problem
13753 # is reportedly fixed, but why not run on old versions too?
13754 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13755 || (rm -f "$cfgfile"; exit 1)
13756
13757 case $xsi_shell in
13758 yes)
13759 cat << \_LT_EOF >> "$cfgfile"
13760
13761 # func_dirname file append nondir_replacement
13762 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13763 # otherwise set result to NONDIR_REPLACEMENT.
13764 func_dirname ()
13765 {
13766 case ${1} in
13767 */*) func_dirname_result="${1%/*}${2}" ;;
13768 * ) func_dirname_result="${3}" ;;
13769 esac
13770 }
13771
13772 # func_basename file
13773 func_basename ()
13774 {
13775 func_basename_result="${1##*/}"
13776 }
13777
13778 # func_dirname_and_basename file append nondir_replacement
13779 # perform func_basename and func_dirname in a single function
13780 # call:
13781 # dirname: Compute the dirname of FILE. If nonempty,
13782 # add APPEND to the result, otherwise set result
13783 # to NONDIR_REPLACEMENT.
13784 # value returned in "$func_dirname_result"
13785 # basename: Compute filename of FILE.
13786 # value retuned in "$func_basename_result"
13787 # Implementation must be kept synchronized with func_dirname
13788 # and func_basename. For efficiency, we do not delegate to
13789 # those functions but instead duplicate the functionality here.
13790 func_dirname_and_basename ()
13791 {
13792 case ${1} in
13793 */*) func_dirname_result="${1%/*}${2}" ;;
13794 * ) func_dirname_result="${3}" ;;
13795 esac
13796 func_basename_result="${1##*/}"
13797 }
13798
13799 # func_stripname prefix suffix name
13800 # strip PREFIX and SUFFIX off of NAME.
13801 # PREFIX and SUFFIX must not contain globbing or regex special
13802 # characters, hashes, percent signs, but SUFFIX may contain a leading
13803 # dot (in which case that matches only a dot).
13804 func_stripname ()
13805 {
13806 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13807 # positional parameters, so assign one to ordinary parameter first.
13808 func_stripname_result=${3}
13809 func_stripname_result=${func_stripname_result#"${1}"}
13810 func_stripname_result=${func_stripname_result%"${2}"}
13811 }
13812
13813 # func_opt_split
13814 func_opt_split ()
13815 {
13816 func_opt_split_opt=${1%%=*}
13817 func_opt_split_arg=${1#*=}
13818 }
13819
13820 # func_lo2o object
13821 func_lo2o ()
13822 {
13823 case ${1} in
13824 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13825 *) func_lo2o_result=${1} ;;
13826 esac
13827 }
13828
13829 # func_xform libobj-or-source
13830 func_xform ()
13831 {
13832 func_xform_result=${1%.*}.lo
13833 }
13834
13835 # func_arith arithmetic-term...
13836 func_arith ()
13837 {
13838 func_arith_result=$(( $* ))
13839 }
13840
13841 # func_len string
13842 # STRING may not start with a hyphen.
13843 func_len ()
13844 {
13845 func_len_result=${#1}
13846 }
13847
13848 _LT_EOF
13849 ;;
13850 *) # Bourne compatible functions.
13851 cat << \_LT_EOF >> "$cfgfile"
13852
13853 # func_dirname file append nondir_replacement
13854 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13855 # otherwise set result to NONDIR_REPLACEMENT.
13856 func_dirname ()
13857 {
13858 # Extract subdirectory from the argument.
13859 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13860 if test "X$func_dirname_result" = "X${1}"; then
13861 func_dirname_result="${3}"
13862 else
13863 func_dirname_result="$func_dirname_result${2}"
13864 fi
13865 }
13866
13867 # func_basename file
13868 func_basename ()
13869 {
13870 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13871 }
13872
13873
13874 # func_stripname prefix suffix name
13875 # strip PREFIX and SUFFIX off of NAME.
13876 # PREFIX and SUFFIX must not contain globbing or regex special
13877 # characters, hashes, percent signs, but SUFFIX may contain a leading
13878 # dot (in which case that matches only a dot).
13879 # func_strip_suffix prefix name
13880 func_stripname ()
13881 {
13882 case ${2} in
13883 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13884 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13885 esac
13886 }
13887
13888 # sed scripts:
13889 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13890 my_sed_long_arg='1s/^-[^=]*=//'
13891
13892 # func_opt_split
13893 func_opt_split ()
13894 {
13895 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13896 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13897 }
13898
13899 # func_lo2o object
13900 func_lo2o ()
13901 {
13902 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13903 }
13904
13905 # func_xform libobj-or-source
13906 func_xform ()
13907 {
13908 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13909 }
13910
13911 # func_arith arithmetic-term...
13912 func_arith ()
13913 {
13914 func_arith_result=`expr "$@"`
13915 }
13916
13917 # func_len string
13918 # STRING may not start with a hyphen.
13919 func_len ()
13920 {
13921 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13922 }
13923
13924 _LT_EOF
13925 esac
13926
13927 case $lt_shell_append in
13928 yes)
13929 cat << \_LT_EOF >> "$cfgfile"
13930
13931 # func_append var value
13932 # Append VALUE to the end of shell variable VAR.
13933 func_append ()
13934 {
13935 eval "$1+=\$2"
13936 }
13937 _LT_EOF
13938 ;;
13939 *)
13940 cat << \_LT_EOF >> "$cfgfile"
13941
13942 # func_append var value
13943 # Append VALUE to the end of shell variable VAR.
13944 func_append ()
13945 {
13946 eval "$1=\$$1\$2"
13947 }
13948
13949 _LT_EOF
13950 ;;
13951 esac
13952
13953
13954 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13955 || (rm -f "$cfgfile"; exit 1)
13956
13957 mv -f "$cfgfile" "$ofile" ||
13958 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13959 chmod +x "$ofile"
13960
13961 ;;
13962 "libpng-config":F) chmod +x libpng-config ;;
13963
13964 esac
13965 done # for ac_tag
13966
13967
13968 as_fn_exit 0
13969 _ACEOF
13970 ac_clean_files=$ac_clean_files_save
13971
13972 test $ac_write_fail = 0 ||
13973 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13974
13975
13976 # configure is writing to config.log, and then calls config.status.
13977 # config.status does its own redirection, appending to config.log.
13978 # Unfortunately, on DOS this fails, as config.log is still kept open
13979 # by configure, so config.status won't be able to write to it; its
13980 # output is simply discarded. So we exec the FD to /dev/null,
13981 # effectively closing config.log, so it can be properly (re)opened and
13982 # appended to by config.status. When coming back to configure, we
13983 # need to make the FD available again.
13984 if test "$no_create" != yes; then
13985 ac_cs_success=:
13986 ac_config_status_args=
13987 test "$silent" = yes &&
13988 ac_config_status_args="$ac_config_status_args --quiet"
13989 exec 5>/dev/null
13990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13991 exec 5>>config.log
13992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13993 # would make configure fail if this is the last instruction.
13994 $ac_cs_success || as_fn_exit $?
13995 fi
13996 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13998 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13999 fi
14000